File: enums.c

package info (click to toggle)
gnome-xcf-thumbnailer 1.0-1.1
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd, squeeze, wheezy
  • size: 584 kB
  • ctags: 376
  • sloc: ansic: 3,010; sh: 1,072; makefile: 38
file content (116 lines) | stat: -rw-r--r-- 4,259 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
/* Autogenerated from enums.h */
#include "enums.h"
#define N_
#include <stdio.h>
const char*
showGimpLayerModeEffects(GimpLayerModeEffects x)
{
  static char buf[35];
  switch(x) {
    case GIMP_NORMAL_MODE: return N_("Normal");
    case GIMP_DISSOLVE_MODE: return N_("Dissolve");
    case GIMP_BEHIND_MODE: return N_("Behind");
    case GIMP_MULTIPLY_MODE: return N_("Multiply");
    case GIMP_SCREEN_MODE: return N_("Screen");
    case GIMP_OVERLAY_MODE: return N_("Overlay");
    case GIMP_DIFFERENCE_MODE: return N_("Difference");
    case GIMP_ADDITION_MODE: return N_("Addition");
    case GIMP_SUBTRACT_MODE: return N_("Subtract");
    case GIMP_DARKEN_ONLY_MODE: return N_("DarkenOnly");
    case GIMP_LIGHTEN_ONLY_MODE: return N_("LightenOnly");
    case GIMP_HUE_MODE: return N_("Hue");
    case GIMP_SATURATION_MODE: return N_("Saturation");
    case GIMP_COLOR_MODE: return N_("Color");
    case GIMP_VALUE_MODE: return N_("Value");
    case GIMP_DIVIDE_MODE: return N_("Divide");
    case GIMP_DODGE_MODE: return N_("Dodge");
    case GIMP_BURN_MODE: return N_("Burn");
    case GIMP_HARDLIGHT_MODE: return N_("Hardlight");
    case GIMP_SOFTLIGHT_MODE: return N_("Softlight");
    case GIMP_GRAIN_EXTRACT_MODE: return N_("GrainExtract");
    case GIMP_GRAIN_MERGE_MODE: return N_("GrainMerge");
    case GIMP_COLOR_ERASE_MODE: return N_("ColorErase");
    case GIMP_ERASE_MODE: return N_("Erase");
    case GIMP_REPLACE_MODE: return N_("Replace");
    case GIMP_ANTI_ERASE_MODE: return N_("AntiErase");
    case GIMP_NORMAL_NOPARTIAL_MODE: return N_("NormalNopartial");
    default: sprintf(buf,"(GimpLayerModeEffects:%d)",(int)x);
             return buf;
  }
}
const char*
showGimpImageBaseType(GimpImageBaseType x)
{
  static char buf[32];
  switch(x) {
    case GIMP_RGB: return N_("RGB color");
    case GIMP_GRAY: return N_("Grayscale");
    case GIMP_INDEXED: return N_("Indexed color");
    default: sprintf(buf,"(GimpImageBaseType:%d)",(int)x);
             return buf;
  }
}
const char*
showGimpImageType(GimpImageType x)
{
  static char buf[28];
  switch(x) {
    case GIMP_RGB_IMAGE: return N_("RGB");
    case GIMP_RGBA_IMAGE: return N_("RGB-alpha");
    case GIMP_GRAY_IMAGE: return N_("Grayscale");
    case GIMP_GRAYA_IMAGE: return N_("Grayscale-alpha");
    case GIMP_INDEXED_IMAGE: return N_("Indexed");
    case GIMP_INDEXEDA_IMAGE: return N_("Indexed-alpha");
    default: sprintf(buf,"(GimpImageType:%d)",(int)x);
             return buf;
  }
}
const char*
showPropType(PropType x)
{
  static char buf[23];
  switch(x) {
    case PROP_END: return ("End");
    case PROP_COLORMAP: return ("Colormap");
    case PROP_ACTIVE_LAYER: return ("ActiveLayer");
    case PROP_ACTIVE_CHANNEL: return ("ActiveChannel");
    case PROP_SELECTION: return ("Selection");
    case PROP_FLOATING_SELECTION: return ("FloatingSelection");
    case PROP_OPACITY: return ("Opacity");
    case PROP_MODE: return ("Mode");
    case PROP_VISIBLE: return ("Visible");
    case PROP_LINKED: return ("Linked");
    case PROP_PRESERVE_TRANSPARENCY: return ("PreserveTransparency");
    case PROP_APPLY_MASK: return ("ApplyMask");
    case PROP_EDIT_MASK: return ("EditMask");
    case PROP_SHOW_MASK: return ("ShowMask");
    case PROP_SHOW_MASKED: return ("ShowMasked");
    case PROP_OFFSETS: return ("Offsets");
    case PROP_COLOR: return ("Color");
    case PROP_COMPRESSION: return ("Compression");
    case PROP_GUIDES: return ("Guides");
    case PROP_RESOLUTION: return ("Resolution");
    case PROP_TATTOO: return ("Tattoo");
    case PROP_PARASITES: return ("Parasites");
    case PROP_UNIT: return ("Unit");
    case PROP_PATHS: return ("Paths");
    case PROP_USER_UNIT: return ("UserUnit");
    case PROP_VECTORS: return ("Vectors");
    case PROP_TEXT_LAYER_FLAGS: return ("TextLayerFlags");
    default: sprintf(buf,"(PropType:%d)",(int)x);
             return buf;
  }
}
const char*
showXcfCompressionType(XcfCompressionType x)
{
  static char buf[33];
  switch(x) {
    case COMPRESS_NONE: return N_("None");
    case COMPRESS_RLE: return N_("RLE");
    case COMPRESS_ZLIB: return N_("Zlib");
    case COMPRESS_FRACTAL: return N_("Fractal");
    default: sprintf(buf,"(XcfCompressionType:%d)",(int)x);
             return buf;
  }
}