summaryrefslogtreecommitdiffstats
path: root/src/enums.h
blob: 3ea78a9950358195229b37efc7a0aa66ded8f68c (plain)
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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
// SPDX-License-Identifier: GPL-2.0-or-later
#ifndef __SP_ENUMS_H__
#define __SP_ENUMS_H__

/*
 * Main program enumerated types
 *
 * Authors:
 *   Lauris Kaplinski <lauris@kaplinski.com>
 *
 * Copyright (C) 1999-2003 Lauris Kaplinski
 *
 * Released under GNU GPL v2+, read the file 'COPYING' for more information.
 */

/* Anchor types (imported from Gtk) */
enum SPAnchorType
{
  // CLOCKWISE Don't change order without changing canvas-item-ctrl.cpp (CanvasItemCtrl::update()).
  SP_ANCHOR_EAST,
  SP_ANCHOR_SOUTH_EAST,
  SP_ANCHOR_SOUTH,
  SP_ANCHOR_SOUTH_WEST,
  SP_ANCHOR_WEST,
  SP_ANCHOR_NORTH_WEST,
  SP_ANCHOR_NORTH,
  SP_ANCHOR_NORTH_EAST,
  SP_ANCHOR_CENTER,
  SP_ANCHOR_E		= SP_ANCHOR_EAST,
  SP_ANCHOR_SE		= SP_ANCHOR_SOUTH_EAST,
  SP_ANCHOR_S		= SP_ANCHOR_SOUTH,
  SP_ANCHOR_SW		= SP_ANCHOR_SOUTH_WEST,
  SP_ANCHOR_W		= SP_ANCHOR_WEST,
  SP_ANCHOR_NW		= SP_ANCHOR_NORTH_WEST,
  SP_ANCHOR_N		= SP_ANCHOR_NORTH,
  SP_ANCHOR_NE		= SP_ANCHOR_NORTH_EAST,
};

/* preserveAspectRatio */

enum {
	SP_ASPECT_NONE,
	SP_ASPECT_XMIN_YMIN,
	SP_ASPECT_XMID_YMIN,
	SP_ASPECT_XMAX_YMIN,
	SP_ASPECT_XMIN_YMID,
	SP_ASPECT_XMID_YMID,
	SP_ASPECT_XMAX_YMID,
	SP_ASPECT_XMIN_YMAX,
	SP_ASPECT_XMID_YMAX,
	SP_ASPECT_XMAX_YMAX
};

enum {
	SP_ASPECT_MEET,
	SP_ASPECT_SLICE
};

/* maskUnits */
/* maskContentUnits */

enum {
	SP_CONTENT_UNITS_USERSPACEONUSE,
	SP_CONTENT_UNITS_OBJECTBOUNDINGBOX
};

/* markerUnits */

enum {
	SP_MARKER_UNITS_STROKEWIDTH,
	SP_MARKER_UNITS_USERSPACEONUSE
};

/* stroke-linejoin */
/* stroke-linecap */

/* markers */

enum {
  SP_MARKER_NONE,
  SP_MARKER_TRIANGLE,
  SP_MARKER_ARROW
};

/* fill-rule */
/* clip-rule */

enum {
	SP_CLONE_COMPENSATION_PARALLEL,
	SP_CLONE_COMPENSATION_UNMOVED,
	SP_CLONE_COMPENSATION_NONE
};

enum {
	SP_CLONE_ORPHANS_UNLINK,
	SP_CLONE_ORPHANS_DELETE,
	SP_CLONE_ORPHANS_ASKME
};

/* "inlayer" preference values */

enum PrefsSelectionContext {
    PREFS_SELECTION_ALL = 0,
    PREFS_SELECTION_LAYER = 1,
    PREFS_SELECTION_LAYER_RECURSIVE = 2,
};

/* clip/mask group enclosing behavior preference values */

enum PrefsMaskobjectGrouping {
    PREFS_MASKOBJECT_GROUPING_NONE = 0,
    PREFS_MASKOBJECT_GROUPING_SEPARATE = 1,
    PREFS_MASKOBJECT_GROUPING_ALL = 2,
};

/* save window geometry preference values (/options/savewindowgeometry/value) */

enum PrefsSaveWindowGeometry {
    PREFS_WINDOW_GEOMETRY_NONE = 0,
    PREFS_WINDOW_GEOMETRY_FILE = 1,
    PREFS_WINDOW_GEOMETRY_LAST = 2,
};

/* save container dialogs state preference values (/options/savedialogposition/value) */

enum PrefsSaveDialogsState {
    PREFS_DIALOGS_STATE_NONE = 0,
    PREFS_DIALOGS_STATE_SAVE = 1,
};

/* save dialogs docking behavior preference values (/options/dialogtype/value) */

enum PrefsDialogsBehavior {
    PREFS_DIALOGS_BEHAVIOR_FLOATING = 0,
    PREFS_DIALOGS_BEHAVIOR_DOCKABLE = 1,
};

/* save dialog windows type preference values (/options/transientpolicy/value) */

enum PrefsDialogsWindowsType {
    PREFS_DIALOGS_WINDOWS_NONE = 0,
    PREFS_DIALOGS_WINDOWS_NORMAL = 1,
    PREFS_DIALOGS_WINDOWS_AGGRESSIVE = 2,
};

/* save notebook labels behavior preference value (/options/notebooklabels/value) */

enum PrefsDialogNotebookLabelsBehavior {
    PREFS_NOTEBOOK_LABELS_AUTO = 0,
    PREFS_NOTEBOOK_LABELS_ACTIVE = 1,
    PREFS_NOTEBOOK_LABELS_OFF = 2,
};

/* default window size preference values (/options/defaultwindowsize/value) */

enum PrefsDefaultWindowSize {
    PREFS_WINDOW_SIZE_NATURAL = -1,
    PREFS_WINDOW_SIZE_SMALL = 0,
    PREFS_WINDOW_SIZE_LARGE = 1,
    PREFS_WINDOW_SIZE_MAXIMIZED = 2,
};

#endif