Engauge Digitizer 2
Loading...
Searching...
No Matches
ColorPalette.cpp
1/******************************************************************************************************
2 * (C) 2014 markummitchell@github.com. This file is part of Engauge Digitizer, which is released *
3 * under GNU General Public License version 2 (GPLv2) or (at your option) any later version. See file *
4 * LICENSE or go to gnu.org/licenses for details. Distribution requires prior written permission. *
5 ******************************************************************************************************/
6
7#include "ColorPalette.h"
8
9QString colorPaletteToString (ColorPalette colorPalette)
10{
11 switch (colorPalette) {
12 case COLOR_PALETTE_BLACK:
13 return "Black";
14
15 case COLOR_PALETTE_BLUE:
16 return "Blue";
17
18 case COLOR_PALETTE_CYAN:
19 return "Cyan";
20
21 case COLOR_PALETTE_GOLD:
22 return "Gold";
23
24 case COLOR_PALETTE_GREEN:
25 return "Green";
26
27 case COLOR_PALETTE_MAGENTA:
28 return "Magenta";
29
30 case COLOR_PALETTE_RED:
31 return "Red";
32
33 case COLOR_PALETTE_TRANSPARENT:
34 return "Transparent";
35
36 case COLOR_PALETTE_YELLOW:
37 return "Yellow";
38
39 default:
40 return "Unknown";
41 }
42}