summaryrefslogtreecommitdiffstats
path: root/src/enums.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/enums.h164
1 files changed, 164 insertions, 0 deletions
diff --git a/src/enums.h b/src/enums.h
new file mode 100644
index 0000000..3ea78a9
--- /dev/null
+++ b/src/enums.h
@@ -0,0 +1,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
+