widgets-enums.h 8.59 KB
Newer Older
1
/* GIMP - The GNU Image Manipulation Program
2 3
 * Copyright (C) 1995 Spencer Kimball and Peter Mattis
 *
4
 * This program is free software: you can redistribute it and/or modify
5
 * it under the terms of the GNU General Public License as published by
6
 * the Free Software Foundation; either version 3 of the License, or
7 8 9 10 11 12 13 14
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
15
 * along with this program.  If not, see <https://www.gnu.org/licenses/>.
16 17 18 19 20 21
 */

#ifndef __WIDGETS_ENUMS_H__
#define __WIDGETS_ENUMS_H__


22
/*
23
 * enums that are registered with the type system
24 25
 */

26 27 28 29 30 31 32 33 34 35 36
#define GIMP_TYPE_ACTIVE_COLOR (gimp_active_color_get_type ())

GType gimp_active_color_get_type (void) G_GNUC_CONST;

typedef enum
{
  GIMP_ACTIVE_COLOR_FOREGROUND, /*< desc="Foreground" >*/
  GIMP_ACTIVE_COLOR_BACKGROUND  /*< desc="Background" >*/
} GimpActiveColor;


37 38 39 40 41 42 43 44 45 46 47
#define GIMP_TYPE_CIRCLE_BACKGROUND (gimp_circle_background_get_type ())

GType gimp_circle_background_get_type (void) G_GNUC_CONST;

typedef enum
{
  GIMP_CIRCLE_BACKGROUND_PLAIN, /*< desc="Plain" >*/
  GIMP_CIRCLE_BACKGROUND_HSV    /*< desc="HSV"   >*/
} GimpCircleBackground;


48 49 50 51 52 53 54 55 56 57 58 59
#define GIMP_TYPE_COLOR_DIALOG_STATE (gimp_color_dialog_state_get_type ())

GType gimp_color_dialog_state_get_type (void) G_GNUC_CONST;

typedef enum
{
  GIMP_COLOR_DIALOG_OK,
  GIMP_COLOR_DIALOG_CANCEL,
  GIMP_COLOR_DIALOG_UPDATE
} GimpColorDialogState;


60
#define GIMP_TYPE_COLOR_PICK_TARGET (gimp_color_pick_target_get_type ())
61

62
GType gimp_color_pick_target_get_type (void) G_GNUC_CONST;
63 64 65

typedef enum
{
66 67 68 69 70
  GIMP_COLOR_PICK_TARGET_NONE,       /*< desc="Pick only"            >*/
  GIMP_COLOR_PICK_TARGET_FOREGROUND, /*< desc="Set foreground color" >*/
  GIMP_COLOR_PICK_TARGET_BACKGROUND, /*< desc="Set background color" >*/
  GIMP_COLOR_PICK_TARGET_PALETTE     /*< desc="Add to palette"       >*/
} GimpColorPickTarget;
71 72


73 74 75 76 77 78
#define GIMP_TYPE_COLOR_PICK_STATE (gimp_color_pick_state_get_type ())

GType gimp_color_pick_state_get_type (void) G_GNUC_CONST;

typedef enum
{
79 80 81
  GIMP_COLOR_PICK_STATE_START,
  GIMP_COLOR_PICK_STATE_UPDATE,
  GIMP_COLOR_PICK_STATE_END
82 83 84
} GimpColorPickState;


85 86 87 88 89 90
#define GIMP_TYPE_HISTOGRAM_SCALE (gimp_histogram_scale_get_type ())

GType gimp_histogram_scale_get_type (void) G_GNUC_CONST;

typedef enum
{
91 92
  GIMP_HISTOGRAM_SCALE_LINEAR,       /*< desc="Linear histogram"      >*/
  GIMP_HISTOGRAM_SCALE_LOGARITHMIC   /*< desc="Logarithmic histogram" >*/
93 94 95
} GimpHistogramScale;


96 97 98 99 100 101
#define GIMP_TYPE_TAB_STYLE (gimp_tab_style_get_type ())

GType gimp_tab_style_get_type (void) G_GNUC_CONST;

typedef enum
{
102
  GIMP_TAB_STYLE_ICON,          /*< desc="Icon"           >*/
103
  GIMP_TAB_STYLE_PREVIEW,       /*< desc="Current status" >*/
104 105
  GIMP_TAB_STYLE_NAME,          /*< desc="Text"           >*/
  GIMP_TAB_STYLE_BLURB,         /*< desc="Description"    >*/
106 107 108
  GIMP_TAB_STYLE_ICON_NAME,     /*< desc="Icon & text"    >*/
  GIMP_TAB_STYLE_ICON_BLURB,    /*< desc="Icon & desc"    >*/
  GIMP_TAB_STYLE_PREVIEW_NAME,  /*< desc="Status & text"  >*/
109
  GIMP_TAB_STYLE_PREVIEW_BLURB  /*< desc="Status & desc"  >*/
110 111 112
} GimpTabStyle;


Sven Neumann's avatar
Sven Neumann committed
113 114 115 116 117 118 119 120 121 122 123
#define GIMP_TYPE_TAG_ENTRY_MODE       (gimp_tag_entry_mode_get_type ())

GType gimp_tag_entry_mode_get_type (void) G_GNUC_CONST;

typedef enum
{
  GIMP_TAG_ENTRY_MODE_QUERY,
  GIMP_TAG_ENTRY_MODE_ASSIGN,
} GimpTagEntryMode;


124 125 126 127
/*
 * non-registered enums; register them if needed
 */

128 129
typedef enum  /*< skip >*/
{
130 131 132
  GIMP_VIEW_BG_CHECKS,
  GIMP_VIEW_BG_WHITE
} GimpViewBG;
133

134 135
typedef enum  /*< skip >*/
{
136 137 138 139 140
  GIMP_VIEW_BORDER_BLACK,
  GIMP_VIEW_BORDER_WHITE,
  GIMP_VIEW_BORDER_RED,
  GIMP_VIEW_BORDER_GREEN
} GimpViewBorderType;
141

142 143 144 145 146 147
typedef enum  /*< skip >*/
{
  GIMP_DND_TYPE_NONE         = 0,
  GIMP_DND_TYPE_URI_LIST     = 1,
  GIMP_DND_TYPE_TEXT_PLAIN   = 2,
  GIMP_DND_TYPE_NETSCAPE_URL = 3,
148 149
  GIMP_DND_TYPE_XDS          = 4,
  GIMP_DND_TYPE_COLOR        = 5,
150 151 152
  GIMP_DND_TYPE_SVG          = 6,
  GIMP_DND_TYPE_SVG_XML      = 7,
  GIMP_DND_TYPE_PIXBUF       = 8,
153 154 155 156 157 158 159 160 161 162 163 164 165 166
  GIMP_DND_TYPE_IMAGE        = 9,
  GIMP_DND_TYPE_COMPONENT    = 10,
  GIMP_DND_TYPE_LAYER        = 11,
  GIMP_DND_TYPE_CHANNEL      = 12,
  GIMP_DND_TYPE_LAYER_MASK   = 13,
  GIMP_DND_TYPE_VECTORS      = 14,
  GIMP_DND_TYPE_BRUSH        = 15,
  GIMP_DND_TYPE_PATTERN      = 16,
  GIMP_DND_TYPE_GRADIENT     = 17,
  GIMP_DND_TYPE_PALETTE      = 18,
  GIMP_DND_TYPE_FONT         = 19,
  GIMP_DND_TYPE_BUFFER       = 20,
  GIMP_DND_TYPE_IMAGEFILE    = 21,
  GIMP_DND_TYPE_TEMPLATE     = 22,
167
  GIMP_DND_TYPE_TOOL_INFO    = 23,
168
  GIMP_DND_TYPE_NOTEBOOK_TAB = 24,
169

170
  GIMP_DND_TYPE_LAST         = GIMP_DND_TYPE_NOTEBOOK_TAB
171 172
} GimpDndType;

173 174 175 176 177 178 179 180 181
typedef enum  /*< skip >*/
{
  GIMP_DROP_NONE,
  GIMP_DROP_ABOVE,
  GIMP_DROP_BELOW
} GimpDropType;

typedef enum  /*< skip >*/
{
182 183 184 185 186
  GIMP_CURSOR_NONE = 1024,  /* (GDK_LAST_CURSOR + 2) yes, this is insane */
  GIMP_CURSOR_MOUSE,
  GIMP_CURSOR_CROSSHAIR,
  GIMP_CURSOR_CROSSHAIR_SMALL,
  GIMP_CURSOR_BAD,
187
  GIMP_CURSOR_MOVE,
188 189
  GIMP_CURSOR_ZOOM,
  GIMP_CURSOR_COLOR_PICKER,
190
  GIMP_CURSOR_CORNER_TOP,
191
  GIMP_CURSOR_CORNER_TOP_RIGHT,
192
  GIMP_CURSOR_CORNER_RIGHT,
193
  GIMP_CURSOR_CORNER_BOTTOM_RIGHT,
194 195 196 197
  GIMP_CURSOR_CORNER_BOTTOM,
  GIMP_CURSOR_CORNER_BOTTOM_LEFT,
  GIMP_CURSOR_CORNER_LEFT,
  GIMP_CURSOR_CORNER_TOP_LEFT,
198
  GIMP_CURSOR_SIDE_TOP,
199
  GIMP_CURSOR_SIDE_TOP_RIGHT,
200
  GIMP_CURSOR_SIDE_RIGHT,
201
  GIMP_CURSOR_SIDE_BOTTOM_RIGHT,
202 203 204 205
  GIMP_CURSOR_SIDE_BOTTOM,
  GIMP_CURSOR_SIDE_BOTTOM_LEFT,
  GIMP_CURSOR_SIDE_LEFT,
  GIMP_CURSOR_SIDE_TOP_LEFT,
206
  GIMP_CURSOR_LAST
207 208
} GimpCursorType;

209
typedef enum  /*< skip >*/
210 211
{
  GIMP_TOOL_CURSOR_NONE,
212 213 214
  GIMP_TOOL_CURSOR_RECT_SELECT,
  GIMP_TOOL_CURSOR_ELLIPSE_SELECT,
  GIMP_TOOL_CURSOR_FREE_SELECT,
215
  GIMP_TOOL_CURSOR_POLYGON_SELECT,
216 217
  GIMP_TOOL_CURSOR_FUZZY_SELECT,
  GIMP_TOOL_CURSOR_PATHS,
218 219 220
  GIMP_TOOL_CURSOR_PATHS_ANCHOR,
  GIMP_TOOL_CURSOR_PATHS_CONTROL,
  GIMP_TOOL_CURSOR_PATHS_SEGMENT,
221 222 223 224 225 226 227 228 229 230 231 232 233
  GIMP_TOOL_CURSOR_ISCISSORS,
  GIMP_TOOL_CURSOR_MOVE,
  GIMP_TOOL_CURSOR_ZOOM,
  GIMP_TOOL_CURSOR_CROP,
  GIMP_TOOL_CURSOR_RESIZE,
  GIMP_TOOL_CURSOR_ROTATE,
  GIMP_TOOL_CURSOR_SHEAR,
  GIMP_TOOL_CURSOR_PERSPECTIVE,
  GIMP_TOOL_CURSOR_FLIP_HORIZONTAL,
  GIMP_TOOL_CURSOR_FLIP_VERTICAL,
  GIMP_TOOL_CURSOR_TEXT,
  GIMP_TOOL_CURSOR_COLOR_PICKER,
  GIMP_TOOL_CURSOR_BUCKET_FILL,
234
  GIMP_TOOL_CURSOR_GRADIENT,
235 236 237 238 239
  GIMP_TOOL_CURSOR_PENCIL,
  GIMP_TOOL_CURSOR_PAINTBRUSH,
  GIMP_TOOL_CURSOR_AIRBRUSH,
  GIMP_TOOL_CURSOR_INK,
  GIMP_TOOL_CURSOR_CLONE,
240
  GIMP_TOOL_CURSOR_HEAL,
241 242 243 244 245 246
  GIMP_TOOL_CURSOR_ERASER,
  GIMP_TOOL_CURSOR_SMUDGE,
  GIMP_TOOL_CURSOR_BLUR,
  GIMP_TOOL_CURSOR_DODGE,
  GIMP_TOOL_CURSOR_BURN,
  GIMP_TOOL_CURSOR_MEASURE,
247
  GIMP_TOOL_CURSOR_WARP,
248 249
  GIMP_TOOL_CURSOR_HAND,
  GIMP_TOOL_CURSOR_LAST
250 251 252 253 254
} GimpToolCursorType;

typedef enum  /*< skip >*/
{
  GIMP_CURSOR_MODIFIER_NONE,
255
  GIMP_CURSOR_MODIFIER_BAD,
256 257 258 259 260
  GIMP_CURSOR_MODIFIER_PLUS,
  GIMP_CURSOR_MODIFIER_MINUS,
  GIMP_CURSOR_MODIFIER_INTERSECT,
  GIMP_CURSOR_MODIFIER_MOVE,
  GIMP_CURSOR_MODIFIER_RESIZE,
261
  GIMP_CURSOR_MODIFIER_ROTATE,
262
  GIMP_CURSOR_MODIFIER_ZOOM,
263 264 265 266 267
  GIMP_CURSOR_MODIFIER_CONTROL,
  GIMP_CURSOR_MODIFIER_ANCHOR,
  GIMP_CURSOR_MODIFIER_FOREGROUND,
  GIMP_CURSOR_MODIFIER_BACKGROUND,
  GIMP_CURSOR_MODIFIER_PATTERN,
268
  GIMP_CURSOR_MODIFIER_JOIN,
269
  GIMP_CURSOR_MODIFIER_SELECT,
270
  GIMP_CURSOR_MODIFIER_LAST
271 272
} GimpCursorModifier;

273
typedef enum  /*< skip >*/
274 275 276 277 278 279 280 281 282 283 284 285
{
  GIMP_DEVICE_VALUE_MODE       = 1 << 0,
  GIMP_DEVICE_VALUE_AXES       = 1 << 1,
  GIMP_DEVICE_VALUE_KEYS       = 1 << 2,
  GIMP_DEVICE_VALUE_TOOL       = 1 << 3,
  GIMP_DEVICE_VALUE_FOREGROUND = 1 << 4,
  GIMP_DEVICE_VALUE_BACKGROUND = 1 << 5,
  GIMP_DEVICE_VALUE_BRUSH      = 1 << 6,
  GIMP_DEVICE_VALUE_PATTERN    = 1 << 7,
  GIMP_DEVICE_VALUE_GRADIENT   = 1 << 8
} GimpDeviceValues;

286 287 288 289 290 291 292
typedef enum  /*< skip >*/
{
  GIMP_DIALOGS_SHOWN,
  GIMP_DIALOGS_HIDDEN_EXPLICITLY,  /* user used the Tab key to hide dialogs */
  GIMP_DIALOGS_HIDDEN_WITH_DISPLAY /* dialogs are hidden with the display   */
} GimpDialogsState;

293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310
typedef enum  /*< skip >*/
{
  GIMP_DASHBOARD_UPDATE_INTERVAL_0_25_SEC =    250,
  GIMP_DASHBOARD_UPDATE_INTERVAL_0_5_SEC  =    500,
  GIMP_DASHBOARD_UPDATE_INTERVAL_1_SEC    =   1000,
  GIMP_DASHBOARD_UPDATE_INTERVAL_2_SEC    =   2000,
  GIMP_DASHBOARD_UPDATE_INTERVAL_4_SEC    =   4000
} GimpDashboardUpdateInteval;

typedef enum  /*< skip >*/
{
  GIMP_DASHBOARD_HISTORY_DURATION_15_SEC  =  15000,
  GIMP_DASHBOARD_HISTORY_DURATION_30_SEC  =  30000,
  GIMP_DASHBOARD_HISTORY_DURATION_60_SEC  =  60000,
  GIMP_DASHBOARD_HISTORY_DURATION_120_SEC = 120000,
  GIMP_DASHBOARD_HISTORY_DURATION_240_SEC = 240000
} GimpDashboardHistoryDuration;

311

312
#endif /* __WIDGETS_ENUMS_H__ */