26
26
#include "libgimpbase/gimpbase.h"
27
27
#include "libgimpmath/gimpmath.h"
28
28
#include "libgimpcolor/gimpcolor.h"
29
#include "libgimpconfig/gimpconfig.h"
30
31
#include "core/core-types.h"
31
32
#include "display-enums.h"
33
#include "config/gimpconfig.h"
34
#include "config/gimpconfig.h"
35
#include "config/gimpconfig-params.h"
36
34
#include "config/gimprc-blurbs.h"
38
36
#include "gimpdisplayoptions.h"
51
49
PROP_SHOW_LAYER_BOUNDARY,
52
PROP_SHOW_SAMPLE_POINTS,
59
static void gimp_display_options_class_init (GimpDisplayOptionsClass *klass);
60
static void gimp_display_options_fs_class_init (GimpDisplayOptionsClass *klass);
61
static void gimp_display_options_init (GimpDisplayOptions *options);
63
static void gimp_display_options_set_property (GObject *object,
67
static void gimp_display_options_get_property (GObject *object,
74
gimp_display_options_get_type (void)
76
static GType options_type = 0;
80
static const GTypeInfo options_info =
82
sizeof (GimpDisplayOptionsClass),
84
(GBaseFinalizeFunc) NULL,
85
(GClassInitFunc) gimp_display_options_class_init,
86
NULL, /* class_finalize */
87
NULL, /* class_data */
88
sizeof (GimpDisplayOptions),
90
(GInstanceInitFunc) gimp_display_options_init
92
static const GInterfaceInfo config_iface_info =
94
NULL, /* iface_init */
95
NULL, /* iface_finalize */
99
options_type = g_type_register_static (G_TYPE_OBJECT,
100
"GimpDisplayOptions",
103
g_type_add_interface_static (options_type, GIMP_TYPE_CONFIG,
111
gimp_display_options_fullscreen_get_type (void)
113
static GType options_type = 0;
117
static const GTypeInfo options_info =
119
sizeof (GimpDisplayOptionsClass),
120
(GBaseInitFunc) NULL,
121
(GBaseFinalizeFunc) NULL,
122
(GClassInitFunc) gimp_display_options_fs_class_init,
123
NULL, /* class_finalize */
124
NULL, /* class_data */
125
sizeof (GimpDisplayOptions),
127
NULL /* instance_init */
129
static const GInterfaceInfo config_iface_info =
131
NULL, /* iface_init */
132
NULL, /* iface_finalize */
133
NULL /* iface_data */
136
options_type = g_type_register_static (GIMP_TYPE_DISPLAY_OPTIONS,
137
"GimpDisplayOptionsFullscreen",
140
g_type_add_interface_static (options_type, GIMP_TYPE_CONFIG,
58
static void gimp_display_options_set_property (GObject *object,
62
static void gimp_display_options_get_property (GObject *object,
68
G_DEFINE_TYPE_WITH_CODE (GimpDisplayOptions,
71
G_IMPLEMENT_INTERFACE (GIMP_TYPE_CONFIG, NULL))
73
typedef struct _GimpDisplayOptions GimpDisplayOptionsFullscreen;
74
typedef struct _GimpDisplayOptionsClass GimpDisplayOptionsFullscreenClass;
76
#define gimp_display_options_fullscreen_init gimp_display_options_init
78
G_DEFINE_TYPE_WITH_CODE (GimpDisplayOptionsFullscreen,
79
gimp_display_options_fullscreen,
80
GIMP_TYPE_DISPLAY_OPTIONS,
81
G_IMPLEMENT_INTERFACE (GIMP_TYPE_CONFIG, NULL))
148
85
gimp_display_options_class_init (GimpDisplayOptionsClass *klass)
158
95
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_SHOW_MENUBAR,
159
96
"show-menubar", SHOW_MENUBAR_BLURB,
98
GIMP_PARAM_STATIC_STRINGS);
162
99
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_SHOW_RULERS,
163
100
"show-rulers", SHOW_RULERS_BLURB,
102
GIMP_PARAM_STATIC_STRINGS);
166
103
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_SHOW_SCROLLBARS,
167
104
"show-scrollbars", SHOW_SCROLLBARS_BLURB,
106
GIMP_PARAM_STATIC_STRINGS);
170
107
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_SHOW_STATUSBAR,
171
108
"show-statusbar", SHOW_STATUSBAR_BLURB,
110
GIMP_PARAM_STATIC_STRINGS);
174
111
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_SHOW_SELECTION,
175
112
"show-selection", SHOW_SELECTION_BLURB,
114
GIMP_PARAM_STATIC_STRINGS);
178
115
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_SHOW_LAYER_BOUNDARY,
179
116
"show-layer-boundary", SHOW_LAYER_BOUNDARY_BLURB,
118
GIMP_PARAM_STATIC_STRINGS);
182
119
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_SHOW_GUIDES,
183
120
"show-guides", SHOW_GUIDES_BLURB,
122
GIMP_PARAM_STATIC_STRINGS);
186
123
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_SHOW_GRID,
187
124
"show-grid", SHOW_GRID_BLURB,
126
GIMP_PARAM_STATIC_STRINGS);
127
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_SHOW_SAMPLE_POINTS,
128
"show-sample-points", SHOW_SAMPLE_POINTS_BLURB,
130
GIMP_PARAM_STATIC_STRINGS);
190
131
GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, PROP_PADDING_MODE,
191
132
"padding-mode", CANVAS_PADDING_MODE_BLURB,
192
133
GIMP_TYPE_CANVAS_PADDING_MODE,
193
134
GIMP_CANVAS_PADDING_MODE_DEFAULT,
135
GIMP_PARAM_STATIC_STRINGS);
195
136
GIMP_CONFIG_INSTALL_PROP_RGB (object_class, PROP_PADDING_COLOR,
196
137
"padding-color", CANVAS_PADDING_COLOR_BLURB,
139
GIMP_PARAM_STATIC_STRINGS);
202
gimp_display_options_fs_class_init (GimpDisplayOptionsClass *klass)
143
gimp_display_options_fullscreen_class_init (GimpDisplayOptionsFullscreenClass *klass)
204
145
GObjectClass *object_class = G_OBJECT_CLASS (klass);
212
153
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_SHOW_MENUBAR,
213
154
"show-menubar", SHOW_MENUBAR_BLURB,
156
GIMP_PARAM_STATIC_STRINGS);
216
157
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_SHOW_RULERS,
217
158
"show-rulers", SHOW_RULERS_BLURB,
160
GIMP_PARAM_STATIC_STRINGS);
220
161
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_SHOW_SCROLLBARS,
221
162
"show-scrollbars", SHOW_SCROLLBARS_BLURB,
164
GIMP_PARAM_STATIC_STRINGS);
224
165
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_SHOW_STATUSBAR,
225
166
"show-statusbar", SHOW_STATUSBAR_BLURB,
168
GIMP_PARAM_STATIC_STRINGS);
228
169
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_SHOW_SELECTION,
229
170
"show-selection", SHOW_SELECTION_BLURB,
172
GIMP_PARAM_STATIC_STRINGS);
232
173
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_SHOW_LAYER_BOUNDARY,
233
174
"show-layer-boundary", SHOW_LAYER_BOUNDARY_BLURB,
176
GIMP_PARAM_STATIC_STRINGS);
236
177
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_SHOW_GUIDES,
237
178
"show-guides", SHOW_GUIDES_BLURB,
180
GIMP_PARAM_STATIC_STRINGS);
240
181
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_SHOW_GRID,
241
182
"show-grid", SHOW_GRID_BLURB,
184
GIMP_PARAM_STATIC_STRINGS);
185
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_SHOW_SAMPLE_POINTS,
186
"show-sample-points", SHOW_SAMPLE_POINTS_BLURB,
188
GIMP_PARAM_STATIC_STRINGS);
244
189
GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, PROP_PADDING_MODE,
245
190
"padding-mode", CANVAS_PADDING_MODE_BLURB,
246
191
GIMP_TYPE_CANVAS_PADDING_MODE,
247
192
GIMP_CANVAS_PADDING_MODE_CUSTOM,
193
GIMP_PARAM_STATIC_STRINGS);
249
194
GIMP_CONFIG_INSTALL_PROP_RGB (object_class, PROP_PADDING_COLOR,
250
195
"padding-color", CANVAS_PADDING_COLOR_BLURB,
197
GIMP_PARAM_STATIC_STRINGS);