Mercurial > geeqie
annotate src/typedefs.h @ 385:2c06e06f4236
Clean up and simplify.
author | zas_ |
---|---|
date | Wed, 16 Apr 2008 18:57:50 +0000 |
parents | 392dd6541d51 |
children | c4080362d619 |
rev | line source |
---|---|
9 | 1 /* |
196 | 2 * Geeqie |
115
53b2bfdcff69
Tue Nov 28 11:54:30 2006 John Ellis <johne@verizon.net>
gqview
parents:
113
diff
changeset
|
3 * (C) 2006 John Ellis |
9 | 4 * |
5 * Author: John Ellis | |
6 * | |
7 * This software is released under the GNU General Public License (GNU GPL). | |
8 * Please read the included file COPYING for more information. | |
9 * This software comes with no warranty of any kind, use at your own risk! | |
10 */ | |
11 | |
12 | |
13 #ifndef TYPEDEFS_H | |
14 #define TYPEDEFS_H | |
15 | |
134
9009856628f7
started implementation of external commands; external Delete should work
nadvornik
parents:
132
diff
changeset
|
16 typedef enum { |
380
5afe77bb563a
Introduce a new struct ViewDir to handle directory views common
zas_
parents:
373
diff
changeset
|
17 DIRVIEW_LIST, |
5afe77bb563a
Introduce a new struct ViewDir to handle directory views common
zas_
parents:
373
diff
changeset
|
18 DIRVIEW_TREE |
5afe77bb563a
Introduce a new struct ViewDir to handle directory views common
zas_
parents:
373
diff
changeset
|
19 } DirViewType; |
5afe77bb563a
Introduce a new struct ViewDir to handle directory views common
zas_
parents:
373
diff
changeset
|
20 |
5afe77bb563a
Introduce a new struct ViewDir to handle directory views common
zas_
parents:
373
diff
changeset
|
21 typedef enum { |
283 | 22 CMD_COPY = GQ_EDITOR_GENERIC_SLOTS, |
134
9009856628f7
started implementation of external commands; external Delete should work
nadvornik
parents:
132
diff
changeset
|
23 CMD_MOVE, |
9009856628f7
started implementation of external commands; external Delete should work
nadvornik
parents:
132
diff
changeset
|
24 CMD_RENAME, |
9009856628f7
started implementation of external commands; external Delete should work
nadvornik
parents:
132
diff
changeset
|
25 CMD_DELETE, |
9009856628f7
started implementation of external commands; external Delete should work
nadvornik
parents:
132
diff
changeset
|
26 CMD_FOLDER, |
283 | 27 GQ_EDITOR_SLOTS |
134
9009856628f7
started implementation of external commands; external Delete should work
nadvornik
parents:
132
diff
changeset
|
28 } SpecialEditor; |
9 | 29 |
30 typedef enum { | |
31 SORT_NONE, | |
32 SORT_NAME, | |
33 SORT_SIZE, | |
34 SORT_TIME, | |
35 SORT_PATH, | |
36 SORT_NUMBER | |
37 } SortType; | |
38 | |
39 typedef enum { | |
40 ALTER_NONE, /* do nothing */ | |
41 ALTER_ROTATE_90, | |
42 ALTER_ROTATE_90_CC, /* counterclockwise */ | |
43 ALTER_ROTATE_180, | |
44 ALTER_MIRROR, | |
82
a4c1b7014e6e
Thu Oct 19 15:20:51 2006 John Ellis <johne@verizon.net>
gqview
parents:
41
diff
changeset
|
45 ALTER_FLIP, |
a4c1b7014e6e
Thu Oct 19 15:20:51 2006 John Ellis <johne@verizon.net>
gqview
parents:
41
diff
changeset
|
46 ALTER_DESATURATE |
9 | 47 } AlterType; |
48 | |
49 typedef enum { | |
50 LAYOUT_HIDE = 0, | |
51 LAYOUT_LEFT = 1 << 0, | |
52 LAYOUT_RIGHT = 1 << 1, | |
53 LAYOUT_TOP = 1 << 2, | |
54 LAYOUT_BOTTOM = 1 << 3 | |
55 } LayoutLocation; | |
56 | |
57 | |
113
55166d93498d
Fri Nov 24 21:37:01 2006 John Ellis <johne@verizon.net>
gqview
parents:
82
diff
changeset
|
58 typedef enum { |
55166d93498d
Fri Nov 24 21:37:01 2006 John Ellis <johne@verizon.net>
gqview
parents:
82
diff
changeset
|
59 IMAGE_STATE_NONE = 0, |
55166d93498d
Fri Nov 24 21:37:01 2006 John Ellis <johne@verizon.net>
gqview
parents:
82
diff
changeset
|
60 IMAGE_STATE_IMAGE = 1 << 0, |
55166d93498d
Fri Nov 24 21:37:01 2006 John Ellis <johne@verizon.net>
gqview
parents:
82
diff
changeset
|
61 IMAGE_STATE_LOADING = 1 << 1, |
55166d93498d
Fri Nov 24 21:37:01 2006 John Ellis <johne@verizon.net>
gqview
parents:
82
diff
changeset
|
62 IMAGE_STATE_ERROR = 1 << 2, |
55166d93498d
Fri Nov 24 21:37:01 2006 John Ellis <johne@verizon.net>
gqview
parents:
82
diff
changeset
|
63 IMAGE_STATE_COLOR_ADJ = 1 << 3, |
55166d93498d
Fri Nov 24 21:37:01 2006 John Ellis <johne@verizon.net>
gqview
parents:
82
diff
changeset
|
64 IMAGE_STATE_ROTATE_AUTO = 1 << 4, |
55166d93498d
Fri Nov 24 21:37:01 2006 John Ellis <johne@verizon.net>
gqview
parents:
82
diff
changeset
|
65 IMAGE_STATE_ROTATE_USER = 1 << 5, |
55166d93498d
Fri Nov 24 21:37:01 2006 John Ellis <johne@verizon.net>
gqview
parents:
82
diff
changeset
|
66 IMAGE_STATE_DELAY_FLIP = 1 << 6 |
55166d93498d
Fri Nov 24 21:37:01 2006 John Ellis <johne@verizon.net>
gqview
parents:
82
diff
changeset
|
67 } ImageState; |
55166d93498d
Fri Nov 24 21:37:01 2006 John Ellis <johne@verizon.net>
gqview
parents:
82
diff
changeset
|
68 |
127 | 69 typedef enum { |
70 SPLIT_NONE = 0, | |
71 SPLIT_VERT, | |
72 SPLIT_HOR, | |
73 SPLIT_QUAD, | |
74 } ImageSplitMode; | |
75 | |
143
0d1bf3ac6cd8
improved FileDataChangeInfo structure, check for another file operation in progress
nadvornik
parents:
141
diff
changeset
|
76 typedef enum { |
0d1bf3ac6cd8
improved FileDataChangeInfo structure, check for another file operation in progress
nadvornik
parents:
141
diff
changeset
|
77 FILEDATA_CHANGE_DELETE, |
0d1bf3ac6cd8
improved FileDataChangeInfo structure, check for another file operation in progress
nadvornik
parents:
141
diff
changeset
|
78 FILEDATA_CHANGE_MOVE, |
0d1bf3ac6cd8
improved FileDataChangeInfo structure, check for another file operation in progress
nadvornik
parents:
141
diff
changeset
|
79 FILEDATA_CHANGE_RENAME, |
0d1bf3ac6cd8
improved FileDataChangeInfo structure, check for another file operation in progress
nadvornik
parents:
141
diff
changeset
|
80 FILEDATA_CHANGE_COPY |
0d1bf3ac6cd8
improved FileDataChangeInfo structure, check for another file operation in progress
nadvornik
parents:
141
diff
changeset
|
81 } FileDataChangeType; |
0d1bf3ac6cd8
improved FileDataChangeInfo structure, check for another file operation in progress
nadvornik
parents:
141
diff
changeset
|
82 |
161 | 83 typedef enum { |
84 MTS_MODE_MINUS, | |
85 MTS_MODE_SET, | |
86 MTS_MODE_OR, | |
87 MTS_MODE_AND | |
88 } MarkToSelectionMode; | |
89 | |
90 typedef enum { | |
91 STM_MODE_RESET, | |
92 STM_MODE_SET, | |
93 STM_MODE_TOGGLE | |
94 } SelectionToMarkMode; | |
95 | |
212
c7021159079d
differentiate among normal image, raw image and metadata
nadvornik
parents:
196
diff
changeset
|
96 typedef enum { |
c7021159079d
differentiate among normal image, raw image and metadata
nadvornik
parents:
196
diff
changeset
|
97 FORMAT_CLASS_UNKNOWN, |
c7021159079d
differentiate among normal image, raw image and metadata
nadvornik
parents:
196
diff
changeset
|
98 FORMAT_CLASS_IMAGE, |
c7021159079d
differentiate among normal image, raw image and metadata
nadvornik
parents:
196
diff
changeset
|
99 FORMAT_CLASS_RAWIMAGE, |
c7021159079d
differentiate among normal image, raw image and metadata
nadvornik
parents:
196
diff
changeset
|
100 FORMAT_CLASS_META, |
c7021159079d
differentiate among normal image, raw image and metadata
nadvornik
parents:
196
diff
changeset
|
101 FILE_FORMAT_CLASSES |
c7021159079d
differentiate among normal image, raw image and metadata
nadvornik
parents:
196
diff
changeset
|
102 } FileFormatClass; |
c7021159079d
differentiate among normal image, raw image and metadata
nadvornik
parents:
196
diff
changeset
|
103 |
276 | 104 typedef enum { |
105 SS_ERR_NONE = 0, | |
106 SS_ERR_DISABLED, /**< secsave is disabled. */ | |
107 SS_ERR_OUT_OF_MEM, /**< memory allocation failure */ | |
108 | |
109 /* see err field in SecureSaveInfo */ | |
110 SS_ERR_OPEN_READ, | |
111 SS_ERR_OPEN_WRITE, | |
112 SS_ERR_STAT, | |
113 SS_ERR_ACCESS, | |
114 SS_ERR_MKSTEMP, | |
115 SS_ERR_RENAME, | |
116 SS_ERR_OTHER, | |
117 } SecureSaveErrno; | |
118 | |
143
0d1bf3ac6cd8
improved FileDataChangeInfo structure, check for another file operation in progress
nadvornik
parents:
141
diff
changeset
|
119 |
127 | 120 #define MAX_SPLIT_IMAGES 4 |
121 | |
9 | 122 typedef struct _ImageLoader ImageLoader; |
123 typedef struct _ThumbLoader ThumbLoader; | |
124 | |
125 typedef struct _CollectInfo CollectInfo; | |
126 typedef struct _CollectionData CollectionData; | |
127 typedef struct _CollectTable CollectTable; | |
128 typedef struct _CollectWindow CollectWindow; | |
129 | |
130 typedef struct _ImageWindow ImageWindow; | |
131 | |
132 typedef struct _FileData FileData; | |
138 | 133 typedef struct _FileDataChangeInfo FileDataChangeInfo; |
9 | 134 |
135 typedef struct _LayoutWindow LayoutWindow; | |
380
5afe77bb563a
Introduce a new struct ViewDir to handle directory views common
zas_
parents:
373
diff
changeset
|
136 typedef struct _ViewDir ViewDir; |
5afe77bb563a
Introduce a new struct ViewDir to handle directory views common
zas_
parents:
373
diff
changeset
|
137 typedef struct _ViewDirInfoList ViewDirInfoList; |
5afe77bb563a
Introduce a new struct ViewDir to handle directory views common
zas_
parents:
373
diff
changeset
|
138 typedef struct _ViewDirInfoTree ViewDirInfoTree; |
9 | 139 typedef struct _ViewFileList ViewFileList; |
140 typedef struct _ViewFileIcon ViewFileIcon; | |
141 | |
142 typedef struct _SlideShowData SlideShowData; | |
143 typedef struct _FullScreenData FullScreenData; | |
144 | |
145 typedef struct _PixmapFolders PixmapFolders; | |
273
e0e2c2b72c5a
reworked the histogram patch by Uwe Ohse, most of the code is in
nadvornik
parents:
212
diff
changeset
|
146 typedef struct _Histogram Histogram; |
e0e2c2b72c5a
reworked the histogram patch by Uwe Ohse, most of the code is in
nadvornik
parents:
212
diff
changeset
|
147 |
276 | 148 typedef struct _SecureSaveInfo SecureSaveInfo; |
9 | 149 |
318 | 150 typedef struct _ConfOptions ConfOptions; |
9 | 151 |
152 struct _ImageLoader | |
153 { | |
154 GdkPixbuf *pixbuf; | |
138 | 155 FileData *fd; |
9 | 156 gchar *path; |
157 | |
158 gint bytes_read; | |
159 gint bytes_total; | |
160 | |
161 guint buffer_size; | |
162 | |
163 gint requested_width; | |
164 gint requested_height; | |
14
25335c62cd9b
##### Note: GQview CVS on sourceforge is not always up to date, please use #####
gqview
parents:
12
diff
changeset
|
165 gint shrunk; |
9 | 166 |
167 gint done; | |
168 gint idle_id; | |
169 gint idle_priority; | |
170 | |
171 GdkPixbufLoader *loader; | |
172 gint load_fd; | |
173 | |
174 void (*func_area_ready)(ImageLoader *, guint x, guint y, guint w, guint h, gpointer); | |
175 void (*func_error)(ImageLoader *, gpointer); | |
176 void (*func_done)(ImageLoader *, gpointer); | |
177 void (*func_percent)(ImageLoader *, gdouble, gpointer); | |
178 | |
179 gpointer data_area_ready; | |
180 gpointer data_error; | |
181 gpointer data_done; | |
182 gpointer data_percent; | |
183 | |
184 gint idle_done_id; | |
185 }; | |
186 | |
187 typedef void (* ThumbLoaderFunc)(ThumbLoader *tl, gpointer data); | |
188 | |
189 struct _ThumbLoader | |
190 { | |
191 gint standard_loader; | |
192 | |
193 GdkPixbuf *pixbuf; /* contains final (scaled) image when done */ | |
194 ImageLoader *il; | |
195 gchar *path; | |
196 | |
197 gint cache_enable; | |
198 gint cache_hit; | |
199 gdouble percent_done; | |
200 | |
201 gint max_w; | |
202 gint max_h; | |
203 | |
204 ThumbLoaderFunc func_done; | |
205 ThumbLoaderFunc func_error; | |
206 ThumbLoaderFunc func_progress; | |
207 | |
208 gpointer data; | |
209 | |
210 gint idle_done_id; | |
211 }; | |
212 | |
213 struct _CollectInfo | |
214 { | |
138 | 215 FileData *fd; |
9 | 216 GdkPixbuf *pixbuf; |
217 gint flag_mask; | |
218 }; | |
219 | |
220 struct _CollectionData | |
221 { | |
222 gchar *path; | |
223 gchar *name; | |
224 GList *list; | |
225 SortType sort_method; | |
226 | |
227 ThumbLoader *thumb_loader; | |
228 CollectInfo *thumb_info; | |
229 | |
230 void (*info_updated_func)(CollectionData *, CollectInfo *, gpointer); | |
231 gpointer info_updated_data; | |
232 | |
233 gint ref; | |
234 | |
235 /* geometry */ | |
236 gint window_read; | |
237 gint window_x; | |
238 gint window_y; | |
239 gint window_w; | |
240 gint window_h; | |
241 | |
242 /* contents changed since save flag */ | |
243 gint changed; | |
303
6ff0bc50ac46
Prevent multiple insertion of the same file in a collection.
zas_
parents:
290
diff
changeset
|
244 |
6ff0bc50ac46
Prevent multiple insertion of the same file in a collection.
zas_
parents:
290
diff
changeset
|
245 GHashTable *existence; |
9 | 246 }; |
247 | |
248 struct _CollectTable | |
249 { | |
250 GtkWidget *scrolled; | |
251 GtkWidget *listview; | |
252 gint columns; | |
253 gint rows; | |
254 | |
255 CollectionData *cd; | |
256 | |
257 GList *selection; | |
258 CollectInfo *prev_selection; | |
259 | |
260 CollectInfo *click_info; | |
261 | |
262 GtkWidget *tip_window; | |
263 gint tip_delay_id; | |
264 CollectInfo *tip_info; | |
265 | |
266 GdkWindow *marker_window; | |
267 CollectInfo *marker_info; | |
268 | |
269 GtkWidget *status_label; | |
270 GtkWidget *extra_label; | |
271 | |
272 gint focus_row; | |
273 gint focus_column; | |
274 CollectInfo *focus_info; | |
275 | |
276 GtkWidget *popup; | |
277 CollectInfo *drop_info; | |
278 GList *drop_list; | |
279 | |
280 gint sync_idle_id; | |
281 gint drop_idle_id; | |
282 | |
283 gint show_text; | |
284 }; | |
285 | |
286 struct _CollectWindow | |
287 { | |
288 GtkWidget *window; | |
289 CollectTable *table; | |
290 GtkWidget *status_box; | |
291 GList *list; | |
292 | |
293 GtkWidget *close_dialog; | |
294 | |
295 CollectionData *cd; | |
296 }; | |
297 | |
12
147f4c4b9025
##### Note: GQview CVS on sourceforge is not always up to date, please use #####
gqview
parents:
9
diff
changeset
|
298 typedef gint (* ImageTileRequestFunc)(ImageWindow *imd, gint x, gint y, |
147f4c4b9025
##### Note: GQview CVS on sourceforge is not always up to date, please use #####
gqview
parents:
9
diff
changeset
|
299 gint width, gint height, GdkPixbuf *pixbuf, gpointer); |
147f4c4b9025
##### Note: GQview CVS on sourceforge is not always up to date, please use #####
gqview
parents:
9
diff
changeset
|
300 typedef void (* ImageTileDisposeFunc)(ImageWindow *imd, gint x, gint y, |
147f4c4b9025
##### Note: GQview CVS on sourceforge is not always up to date, please use #####
gqview
parents:
9
diff
changeset
|
301 gint width, gint height, GdkPixbuf *pixbuf, gpointer); |
147f4c4b9025
##### Note: GQview CVS on sourceforge is not always up to date, please use #####
gqview
parents:
9
diff
changeset
|
302 |
9 | 303 struct _ImageWindow |
304 { | |
305 GtkWidget *widget; /* use this to add it and show it */ | |
23
17acca639a86
##### Note: GQview CVS on sourceforge is not always up to date, please use #####
gqview
parents:
14
diff
changeset
|
306 GtkWidget *pr; |
17acca639a86
##### Note: GQview CVS on sourceforge is not always up to date, please use #####
gqview
parents:
14
diff
changeset
|
307 GtkWidget *frame; |
9 | 308 |
138 | 309 FileData *image_fd; |
9 | 310 |
311 gint64 size; /* file size (bytes) */ | |
312 time_t mtime; /* file modified time stamp */ | |
313 gint unknown; /* failed to load image */ | |
314 | |
315 ImageLoader *il; | |
316 | |
317 gint has_frame; | |
318 | |
319 /* top level (not necessarily parent) window */ | |
23
17acca639a86
##### Note: GQview CVS on sourceforge is not always up to date, please use #####
gqview
parents:
14
diff
changeset
|
320 gint top_window_sync; /* resize top_window when image dimensions change */ |
9 | 321 GtkWidget *top_window; /* window that gets title, and window to resize when 'fitting' */ |
322 gchar *title; /* window title to display left of file name */ | |
323 gchar *title_right; /* window title to display right of file name */ | |
324 gint title_show_zoom; /* option to include zoom in window title */ | |
325 | |
326 gint completed; | |
113
55166d93498d
Fri Nov 24 21:37:01 2006 John Ellis <johne@verizon.net>
gqview
parents:
82
diff
changeset
|
327 ImageState state; /* mask of IMAGE_STATE_* flags about current image */ |
9 | 328 |
117
0c2e1f0a001b
Wed Nov 29 14:28:30 2006 John Ellis <johne@verizon.net>
gqview
parents:
115
diff
changeset
|
329 void (*func_update)(ImageWindow *imd, gpointer data); |
0c2e1f0a001b
Wed Nov 29 14:28:30 2006 John Ellis <johne@verizon.net>
gqview
parents:
115
diff
changeset
|
330 void (*func_complete)(ImageWindow *imd, gint preload, gpointer data); |
0c2e1f0a001b
Wed Nov 29 14:28:30 2006 John Ellis <johne@verizon.net>
gqview
parents:
115
diff
changeset
|
331 void (*func_state)(ImageWindow *imd, ImageState state, gpointer data); |
12
147f4c4b9025
##### Note: GQview CVS on sourceforge is not always up to date, please use #####
gqview
parents:
9
diff
changeset
|
332 ImageTileRequestFunc func_tile_request; |
147f4c4b9025
##### Note: GQview CVS on sourceforge is not always up to date, please use #####
gqview
parents:
9
diff
changeset
|
333 ImageTileDisposeFunc func_tile_dispose; |
9 | 334 |
335 gpointer data_update; | |
336 gpointer data_complete; | |
117
0c2e1f0a001b
Wed Nov 29 14:28:30 2006 John Ellis <johne@verizon.net>
gqview
parents:
115
diff
changeset
|
337 gpointer data_state; |
12
147f4c4b9025
##### Note: GQview CVS on sourceforge is not always up to date, please use #####
gqview
parents:
9
diff
changeset
|
338 gpointer data_tile; |
9 | 339 |
340 /* button, scroll functions */ | |
341 void (*func_button)(ImageWindow *, gint button, | |
342 guint32 time, gdouble x, gdouble y, guint state, gpointer); | |
128
98e2632b5d3d
improved connected scroll and active image switching
nadvornik
parents:
127
diff
changeset
|
343 void (*func_drag)(ImageWindow *, gint button, |
98e2632b5d3d
improved connected scroll and active image switching
nadvornik
parents:
127
diff
changeset
|
344 guint32 time, gdouble x, gdouble y, guint state, gdouble dx, gdouble dy,gpointer); |
9 | 345 void (*func_scroll)(ImageWindow *, GdkScrollDirection direction, |
346 guint32 time, gdouble x, gdouble y, guint state, gpointer); | |
347 | |
348 gpointer data_button; | |
128
98e2632b5d3d
improved connected scroll and active image switching
nadvornik
parents:
127
diff
changeset
|
349 gpointer data_drag; |
9 | 350 gpointer data_scroll; |
351 | |
12
147f4c4b9025
##### Note: GQview CVS on sourceforge is not always up to date, please use #####
gqview
parents:
9
diff
changeset
|
352 /* scroll notification (for scroll bar implementation) */ |
147f4c4b9025
##### Note: GQview CVS on sourceforge is not always up to date, please use #####
gqview
parents:
9
diff
changeset
|
353 void (*func_scroll_notify)(ImageWindow *, gint x, gint y, gint width, gint height, gpointer); |
147f4c4b9025
##### Note: GQview CVS on sourceforge is not always up to date, please use #####
gqview
parents:
9
diff
changeset
|
354 |
147f4c4b9025
##### Note: GQview CVS on sourceforge is not always up to date, please use #####
gqview
parents:
9
diff
changeset
|
355 gpointer data_scroll_notify; |
147f4c4b9025
##### Note: GQview CVS on sourceforge is not always up to date, please use #####
gqview
parents:
9
diff
changeset
|
356 |
9 | 357 /* collection info */ |
358 CollectionData *collection; | |
359 CollectInfo *collection_info; | |
360 | |
113
55166d93498d
Fri Nov 24 21:37:01 2006 John Ellis <johne@verizon.net>
gqview
parents:
82
diff
changeset
|
361 /* color profiles */ |
55166d93498d
Fri Nov 24 21:37:01 2006 John Ellis <johne@verizon.net>
gqview
parents:
82
diff
changeset
|
362 gint color_profile_enable; |
55166d93498d
Fri Nov 24 21:37:01 2006 John Ellis <johne@verizon.net>
gqview
parents:
82
diff
changeset
|
363 gint color_profile_input; |
55166d93498d
Fri Nov 24 21:37:01 2006 John Ellis <johne@verizon.net>
gqview
parents:
82
diff
changeset
|
364 gint color_profile_screen; |
55166d93498d
Fri Nov 24 21:37:01 2006 John Ellis <johne@verizon.net>
gqview
parents:
82
diff
changeset
|
365 gint color_profile_use_image; |
115
53b2bfdcff69
Tue Nov 28 11:54:30 2006 John Ellis <johne@verizon.net>
gqview
parents:
113
diff
changeset
|
366 gpointer cm; |
113
55166d93498d
Fri Nov 24 21:37:01 2006 John Ellis <johne@verizon.net>
gqview
parents:
82
diff
changeset
|
367 |
9 | 368 AlterType delay_alter_type; |
369 | |
370 ImageLoader *read_ahead_il; | |
371 GdkPixbuf *read_ahead_pixbuf; | |
138 | 372 FileData *read_ahead_fd; |
9 | 373 |
374 GdkPixbuf *prev_pixbuf; | |
138 | 375 FileData *prev_fd; |
113
55166d93498d
Fri Nov 24 21:37:01 2006 John Ellis <johne@verizon.net>
gqview
parents:
82
diff
changeset
|
376 gint prev_color_row; |
9 | 377 |
378 gint auto_refresh_id; | |
379 gint auto_refresh_interval; | |
380 | |
381 gint delay_flip; | |
382 }; | |
383 | |
149 | 384 #define FILEDATA_MARKS_SIZE 6 |
132 | 385 |
138 | 386 struct _FileDataChangeInfo { |
143
0d1bf3ac6cd8
improved FileDataChangeInfo structure, check for another file operation in progress
nadvornik
parents:
141
diff
changeset
|
387 FileDataChangeType type; |
138 | 388 gchar *source; |
389 gchar *dest; | |
390 }; | |
137
be3328a58875
started support for sidecar files like xmp, raw+jpeg etc.
nadvornik
parents:
134
diff
changeset
|
391 |
be3328a58875
started support for sidecar files like xmp, raw+jpeg etc.
nadvornik
parents:
134
diff
changeset
|
392 struct _FileData { |
138 | 393 gint magick; |
137
be3328a58875
started support for sidecar files like xmp, raw+jpeg etc.
nadvornik
parents:
134
diff
changeset
|
394 gint type; |
138 | 395 gchar *original_path; /* key to file_data_pool hash table */ |
137
be3328a58875
started support for sidecar files like xmp, raw+jpeg etc.
nadvornik
parents:
134
diff
changeset
|
396 gchar *path; |
be3328a58875
started support for sidecar files like xmp, raw+jpeg etc.
nadvornik
parents:
134
diff
changeset
|
397 const gchar *name; |
be3328a58875
started support for sidecar files like xmp, raw+jpeg etc.
nadvornik
parents:
134
diff
changeset
|
398 const gchar *extension; |
be3328a58875
started support for sidecar files like xmp, raw+jpeg etc.
nadvornik
parents:
134
diff
changeset
|
399 gint64 size; |
be3328a58875
started support for sidecar files like xmp, raw+jpeg etc.
nadvornik
parents:
134
diff
changeset
|
400 time_t date; |
be3328a58875
started support for sidecar files like xmp, raw+jpeg etc.
nadvornik
parents:
134
diff
changeset
|
401 gboolean marks[FILEDATA_MARKS_SIZE]; |
be3328a58875
started support for sidecar files like xmp, raw+jpeg etc.
nadvornik
parents:
134
diff
changeset
|
402 GList *sidecar_files; |
141 | 403 FileData *parent; /* parent file if this is a sidecar file, NULL otherwise */ |
138 | 404 FileDataChangeInfo *change; /* for rename, move ... */ |
9 | 405 GdkPixbuf *pixbuf; |
138 | 406 gint ref; |
9 | 407 }; |
408 | |
409 struct _LayoutWindow | |
410 { | |
411 gchar *path; | |
412 | |
413 /* base */ | |
414 | |
415 GtkWidget *window; | |
416 | |
417 GtkWidget *main_box; | |
418 | |
419 GtkWidget *group_box; | |
420 GtkWidget *h_pane; | |
421 GtkWidget *v_pane; | |
422 | |
423 /* menus, path selector */ | |
424 | |
425 GtkActionGroup *action_group; | |
426 GtkUIManager *ui_manager; | |
427 | |
428 GtkWidget *path_entry; | |
429 | |
430 /* image */ | |
431 | |
432 LayoutLocation image_location; | |
433 | |
434 ImageWindow *image; | |
435 | |
127 | 436 ImageWindow *split_images[MAX_SPLIT_IMAGES]; |
437 ImageSplitMode split_mode; | |
438 gint active_split_image; | |
439 | |
440 GtkWidget *split_image_widget; | |
441 | |
442 gint connect_zoom, connect_scroll; | |
443 | |
9 | 444 /* tools window (float) */ |
445 | |
446 GtkWidget *tools; | |
447 GtkWidget *tools_pane; | |
448 | |
449 gint tools_float; | |
450 gint tools_hidden; | |
451 | |
452 /* toolbar */ | |
453 | |
454 GtkWidget *toolbar; | |
455 gint toolbar_hidden; | |
456 | |
457 GtkWidget *thumb_button; | |
458 gint thumbs_enabled; | |
137
be3328a58875
started support for sidecar files like xmp, raw+jpeg etc.
nadvornik
parents:
134
diff
changeset
|
459 gint marks_enabled; |
132 | 460 |
9 | 461 /* dir view */ |
462 | |
463 LayoutLocation dir_location; | |
464 | |
380
5afe77bb563a
Introduce a new struct ViewDir to handle directory views common
zas_
parents:
373
diff
changeset
|
465 ViewDir *vd; |
9 | 466 GtkWidget *dir_view; |
467 | |
380
5afe77bb563a
Introduce a new struct ViewDir to handle directory views common
zas_
parents:
373
diff
changeset
|
468 DirViewType dir_view_type; |
9 | 469 |
470 /* file view */ | |
471 | |
472 LayoutLocation file_location; | |
473 | |
474 ViewFileList *vfl; | |
475 ViewFileIcon *vfi; | |
476 GtkWidget *file_view; | |
477 | |
478 gint icon_view; | |
479 SortType sort_method; | |
480 gint sort_ascend; | |
481 | |
482 /* status bar */ | |
483 | |
484 GtkWidget *info_box; | |
485 GtkWidget *info_progress_bar; | |
486 GtkWidget *info_sort; | |
113
55166d93498d
Fri Nov 24 21:37:01 2006 John Ellis <johne@verizon.net>
gqview
parents:
82
diff
changeset
|
487 GtkWidget *info_color; |
9 | 488 GtkWidget *info_status; |
489 GtkWidget *info_details; | |
490 GtkWidget *info_zoom; | |
491 | |
492 /* slide show */ | |
493 | |
494 SlideShowData *slideshow; | |
495 | |
496 /* full screen */ | |
497 | |
498 FullScreenData *full_screen; | |
499 | |
500 /* dividers */ | |
501 | |
502 gint div_h; | |
503 gint div_v; | |
504 gint div_float; | |
505 | |
506 /* directory update check */ | |
507 | |
508 gint last_time_id; | |
509 time_t last_time; | |
510 | |
511 /* misc */ | |
512 | |
513 GtkWidget *utility_box; | |
514 GtkWidget *bar_sort; | |
515 GtkWidget *bar_exif; | |
516 GtkWidget *bar_info; | |
517 | |
273
e0e2c2b72c5a
reworked the histogram patch by Uwe Ohse, most of the code is in
nadvornik
parents:
212
diff
changeset
|
518 gint histogram_enabled; |
e0e2c2b72c5a
reworked the histogram patch by Uwe Ohse, most of the code is in
nadvornik
parents:
212
diff
changeset
|
519 Histogram *histogram; |
e0e2c2b72c5a
reworked the histogram patch by Uwe Ohse, most of the code is in
nadvornik
parents:
212
diff
changeset
|
520 |
9 | 521 gint bar_sort_enabled; |
522 gint bar_exif_enabled; | |
523 gint bar_info_enabled; | |
524 | |
525 gint bar_exif_size; | |
526 gint bar_exif_advanced; | |
527 }; | |
528 | |
380
5afe77bb563a
Introduce a new struct ViewDir to handle directory views common
zas_
parents:
373
diff
changeset
|
529 struct _ViewDir |
9 | 530 { |
380
5afe77bb563a
Introduce a new struct ViewDir to handle directory views common
zas_
parents:
373
diff
changeset
|
531 DirViewType type; |
384
392dd6541d51
Merge parts of view_dir_list/tree constructors/destructors to
zas_
parents:
380
diff
changeset
|
532 gpointer info; |
392dd6541d51
Merge parts of view_dir_list/tree constructors/destructors to
zas_
parents:
380
diff
changeset
|
533 void (*widget_destroy_cb)(GtkWidget *widget, gpointer data); |
392dd6541d51
Merge parts of view_dir_list/tree constructors/destructors to
zas_
parents:
380
diff
changeset
|
534 |
9 | 535 GtkWidget *widget; |
380
5afe77bb563a
Introduce a new struct ViewDir to handle directory views common
zas_
parents:
373
diff
changeset
|
536 GtkWidget *view; |
9 | 537 |
538 gchar *path; | |
539 | |
540 FileData *click_fd; | |
541 | |
542 FileData *drop_fd; | |
543 GList *drop_list; | |
544 gint drop_scroll_id; | |
545 | |
546 /* func list */ | |
380
5afe77bb563a
Introduce a new struct ViewDir to handle directory views common
zas_
parents:
373
diff
changeset
|
547 void (*select_func)(ViewDir *vd, const gchar *path, gpointer data); |
9 | 548 gpointer select_data; |
549 | |
550 LayoutWindow *layout; | |
551 | |
552 GtkWidget *popup; | |
553 | |
554 PixmapFolders *pf; | |
380
5afe77bb563a
Introduce a new struct ViewDir to handle directory views common
zas_
parents:
373
diff
changeset
|
555 }; |
5afe77bb563a
Introduce a new struct ViewDir to handle directory views common
zas_
parents:
373
diff
changeset
|
556 |
5afe77bb563a
Introduce a new struct ViewDir to handle directory views common
zas_
parents:
373
diff
changeset
|
557 struct _ViewDirInfoList |
5afe77bb563a
Introduce a new struct ViewDir to handle directory views common
zas_
parents:
373
diff
changeset
|
558 { |
5afe77bb563a
Introduce a new struct ViewDir to handle directory views common
zas_
parents:
373
diff
changeset
|
559 GList *list; |
5afe77bb563a
Introduce a new struct ViewDir to handle directory views common
zas_
parents:
373
diff
changeset
|
560 }; |
5afe77bb563a
Introduce a new struct ViewDir to handle directory views common
zas_
parents:
373
diff
changeset
|
561 |
5afe77bb563a
Introduce a new struct ViewDir to handle directory views common
zas_
parents:
373
diff
changeset
|
562 struct _ViewDirInfoTree |
5afe77bb563a
Introduce a new struct ViewDir to handle directory views common
zas_
parents:
373
diff
changeset
|
563 { |
5afe77bb563a
Introduce a new struct ViewDir to handle directory views common
zas_
parents:
373
diff
changeset
|
564 gint drop_expand_id; |
9 | 565 gint busy_ref; |
566 }; | |
567 | |
568 struct _ViewFileList | |
569 { | |
570 GtkWidget *widget; | |
571 GtkWidget *listview; | |
572 | |
573 gchar *path; | |
574 GList *list; | |
575 | |
576 SortType sort_method; | |
577 gint sort_ascend; | |
578 | |
579 FileData *click_fd; | |
580 FileData *select_fd; | |
581 | |
582 gint thumbs_enabled; | |
138 | 583 gint marks_enabled; |
150 | 584 gint active_mark; |
132 | 585 |
9 | 586 /* thumb updates */ |
587 gint thumbs_running; | |
588 gint thumbs_count; | |
589 ThumbLoader *thumbs_loader; | |
590 FileData *thumbs_filedata; | |
591 | |
592 /* func list */ | |
593 void (*func_thumb_status)(ViewFileList *vfl, gdouble val, const gchar *text, gpointer data); | |
594 gpointer data_thumb_status; | |
595 | |
596 void (*func_status)(ViewFileList *vfl, gpointer data); | |
597 gpointer data_status; | |
598 | |
599 gint select_idle_id; | |
600 LayoutWindow *layout; | |
601 | |
602 GtkWidget *popup; | |
603 }; | |
604 | |
138 | 605 struct _IconData; |
606 | |
9 | 607 struct _ViewFileIcon |
608 { | |
609 GtkWidget *widget; | |
610 GtkWidget *listview; | |
611 | |
612 gchar *path; | |
613 GList *list; | |
614 | |
615 /* table stuff */ | |
616 | |
617 gint columns; | |
618 gint rows; | |
619 | |
620 GList *selection; | |
138 | 621 struct _IconData *prev_selection; |
9 | 622 |
623 GtkWidget *tip_window; | |
624 gint tip_delay_id; | |
138 | 625 struct _IconData *tip_id; |
9 | 626 |
138 | 627 struct _IconData *click_id; |
9 | 628 |
138 | 629 struct _IconData *focus_id; |
9 | 630 gint focus_row; |
631 gint focus_column; | |
632 | |
633 SortType sort_method; | |
634 gint sort_ascend; | |
635 | |
636 gint show_text; | |
637 | |
638 gint sync_idle_id; | |
639 | |
640 /* thumbs */ | |
641 | |
642 gint thumbs_running; | |
643 GList *thumbs_list; | |
644 gint thumbs_count; | |
645 ThumbLoader *thumbs_loader; | |
646 FileData *thumbs_fd; | |
647 | |
648 /* func list */ | |
649 void (*func_thumb_status)(ViewFileIcon *vfi, gdouble val, const gchar *text, gpointer data); | |
650 gpointer data_thumb_status; | |
651 | |
652 void (*func_status)(ViewFileIcon *vfi, gpointer data); | |
653 gpointer data_status; | |
654 | |
655 LayoutWindow *layout; | |
656 | |
657 GtkWidget *popup; | |
658 }; | |
659 | |
660 struct _SlideShowData | |
661 { | |
662 ImageWindow *imd; | |
663 | |
138 | 664 GList *filelist; |
9 | 665 CollectionData *cd; |
666 gchar *layout_path; | |
667 LayoutWindow *layout; | |
668 | |
669 GList *list; | |
670 GList *list_done; | |
671 | |
138 | 672 FileData *slide_fd; |
9 | 673 |
674 gint slide_count; | |
675 gint timeout_id; | |
676 | |
677 gint from_selection; | |
678 | |
679 void (*stop_func)(SlideShowData *, gpointer); | |
680 gpointer stop_data; | |
681 | |
682 gint paused; | |
683 }; | |
684 | |
685 struct _FullScreenData | |
686 { | |
687 GtkWidget *window; | |
688 ImageWindow *imd; | |
689 | |
690 GtkWidget *normal_window; | |
691 ImageWindow *normal_imd; | |
692 | |
693 gint hide_mouse_id; | |
694 gint busy_mouse_id; | |
695 gint cursor_state; | |
696 | |
697 gint saver_block_id; | |
698 | |
699 void (*stop_func)(FullScreenData *, gpointer); | |
700 gpointer stop_data; | |
701 }; | |
702 | |
703 struct _PixmapFolders | |
704 { | |
705 GdkPixbuf *close; | |
706 GdkPixbuf *open; | |
707 GdkPixbuf *deny; | |
708 GdkPixbuf *parent; | |
709 }; | |
710 | |
276 | 711 struct _SecureSaveInfo { |
712 FILE *fp; /**< file stream pointer */ | |
713 gchar *file_name; /**< final file name */ | |
714 gchar *tmp_file_name; /**< temporary file name */ | |
715 gint err; /**< set to non-zero value in case of error */ | |
313
a955b7fd626b
Secure save now unlinks temporary file on error by default.
zas_
parents:
311
diff
changeset
|
716 gint secure_save; /**< use secure save for this file, internal use only */ |
a955b7fd626b
Secure save now unlinks temporary file on error by default.
zas_
parents:
311
diff
changeset
|
717 gint preserve_perms; /**< whether to preserve perms, TRUE by default */ |
a955b7fd626b
Secure save now unlinks temporary file on error by default.
zas_
parents:
311
diff
changeset
|
718 gint preserve_mtime; /**< whether to preserve mtime, FALSE by default */ |
a955b7fd626b
Secure save now unlinks temporary file on error by default.
zas_
parents:
311
diff
changeset
|
719 gint unlink_on_error; /**< whether to remove temporary file on save failure, TRUE by default */ |
276 | 720 }; |
721 | |
318 | 722 struct _ConfOptions |
723 { | |
328 | 724 |
725 /* ui */ | |
318 | 726 gint progressive_key_scrolling; |
328 | 727 gint place_dialogs_under_mouse; |
728 gint mousewheel_scrolls; | |
729 gint show_icon_names; | |
318 | 730 |
328 | 731 /* various */ |
318 | 732 gint startup_path_enable; |
733 gchar *startup_path; | |
328 | 734 gint enable_metadata_dirs; |
735 | |
736 gint tree_descend_subdirs; | |
737 | |
738 gint lazy_image_sync; | |
739 gint update_on_time_change; | |
740 | |
342
07490120df2d
Rename dupe_custom_threshold option to duplicates_similarity_threshold.
zas_
parents:
341
diff
changeset
|
741 gint duplicates_similarity_threshold; |
328 | 742 |
343
63380ea3e65d
Rename recent_list_max/open_recent_max to open_recent_list_maxsize.
zas_
parents:
342
diff
changeset
|
743 gint open_recent_list_maxsize; |
328 | 744 |
341
15c6b94545a2
Move safe_delete* and in place rename options to file_ops
zas_
parents:
340
diff
changeset
|
745 /* file ops */ |
15c6b94545a2
Move safe_delete* and in place rename options to file_ops
zas_
parents:
340
diff
changeset
|
746 struct { |
15c6b94545a2
Move safe_delete* and in place rename options to file_ops
zas_
parents:
340
diff
changeset
|
747 gint enable_in_place_rename; |
15c6b94545a2
Move safe_delete* and in place rename options to file_ops
zas_
parents:
340
diff
changeset
|
748 |
15c6b94545a2
Move safe_delete* and in place rename options to file_ops
zas_
parents:
340
diff
changeset
|
749 gint confirm_delete; |
15c6b94545a2
Move safe_delete* and in place rename options to file_ops
zas_
parents:
340
diff
changeset
|
750 gint enable_delete_key; |
15c6b94545a2
Move safe_delete* and in place rename options to file_ops
zas_
parents:
340
diff
changeset
|
751 gint safe_delete_enable; |
15c6b94545a2
Move safe_delete* and in place rename options to file_ops
zas_
parents:
340
diff
changeset
|
752 gchar *safe_delete_path; |
15c6b94545a2
Move safe_delete* and in place rename options to file_ops
zas_
parents:
340
diff
changeset
|
753 gint safe_delete_folder_maxsize; |
15c6b94545a2
Move safe_delete* and in place rename options to file_ops
zas_
parents:
340
diff
changeset
|
754 } file_ops; |
15c6b94545a2
Move safe_delete* and in place rename options to file_ops
zas_
parents:
340
diff
changeset
|
755 |
328 | 756 /* image */ |
334 | 757 struct { |
758 gint exif_rotate_enable; | |
759 gint scroll_reset_method; | |
760 gint fit_window_to_image; | |
761 gint limit_window_size; | |
762 gint max_window_size; | |
763 gint limit_autofit_size; | |
764 gint max_autofit_size; | |
765 | |
766 gint tile_cache_max; /* in megabytes */ | |
767 gint dither_quality; | |
768 gint enable_read_ahead; | |
769 | |
770 gint zoom_mode; | |
771 gint zoom_2pass; | |
772 gint zoom_to_fit_allow_expand; | |
773 gint zoom_quality; | |
774 gint zoom_increment; /* 10 is 1.0, 5 is 0.05, 20 is 2.0, etc. */ | |
339
de1c2cd06fce
Rename user_specified_window_background and window_background_color
zas_
parents:
338
diff
changeset
|
775 |
de1c2cd06fce
Rename user_specified_window_background and window_background_color
zas_
parents:
338
diff
changeset
|
776 gint use_custom_border_color; |
de1c2cd06fce
Rename user_specified_window_background and window_background_color
zas_
parents:
338
diff
changeset
|
777 GdkColor border_color; |
334 | 778 } image; |
779 | |
328 | 780 /* thumbnails */ |
333 | 781 struct { |
782 gint max_width; | |
783 gint max_height; | |
784 gint enable_caching; | |
785 gint cache_into_dirs; | |
786 gint fast; | |
787 gint use_xvpics; | |
788 gint spec_standard; | |
789 gint quality; | |
790 } thumbnails; | |
328 | 791 |
792 /* file filtering */ | |
332 | 793 struct { |
356 | 794 gint show_hidden_files; |
373
61a3c8b05b24
Add a new option in Preferences > Filtering to allow the
zas_
parents:
356
diff
changeset
|
795 gint show_dot_directory; |
332 | 796 gint disable; |
797 } file_filter; | |
328 | 798 |
799 /* collections */ | |
330 | 800 struct { |
801 gint rectangular_selection; | |
802 } collections; | |
328 | 803 |
804 /* editors */ | |
318 | 805 gchar *editor_name[GQ_EDITOR_SLOTS]; |
806 gchar *editor_command[GQ_EDITOR_SLOTS]; | |
807 | |
328 | 808 /* file sorting */ |
329 | 809 struct { |
810 SortType method; | |
811 gint ascending; | |
812 gint case_sensitive; /* file sorting method (case) */ | |
813 } file_sort; | |
318 | 814 |
328 | 815 /* slideshow */ |
326 | 816 struct { |
817 gint delay; /* in tenths of a second */ | |
818 gint random; | |
819 gint repeat; | |
820 } slideshow; | |
318 | 821 |
328 | 822 /* fullscreen */ |
322 | 823 struct { |
824 gint screen; | |
825 gint clean_flip; | |
826 gint disable_saver; | |
827 gint above; | |
828 gint show_info; | |
829 gchar *info; | |
830 } fullscreen; | |
318 | 831 |
320 | 832 /* layout */ |
327 | 833 struct { |
834 gchar *order; | |
835 gint style; | |
320 | 836 |
327 | 837 gint view_as_icons; |
380
5afe77bb563a
Introduce a new struct ViewDir to handle directory views common
zas_
parents:
373
diff
changeset
|
838 DirViewType dir_view_type; |
340
77103f3f2cb1
Rename option thumbnails.enabled to layout.show_thumbnails as it makes
zas_
parents:
339
diff
changeset
|
839 |
77103f3f2cb1
Rename option thumbnails.enabled to layout.show_thumbnails as it makes
zas_
parents:
339
diff
changeset
|
840 gint show_thumbnails; |
338
41c3cb73120f
Rename window options (moved to layout) and re-order rc file.
zas_
parents:
334
diff
changeset
|
841 |
41c3cb73120f
Rename window options (moved to layout) and re-order rc file.
zas_
parents:
334
diff
changeset
|
842 struct { |
41c3cb73120f
Rename window options (moved to layout) and re-order rc file.
zas_
parents:
334
diff
changeset
|
843 gint w; |
41c3cb73120f
Rename window options (moved to layout) and re-order rc file.
zas_
parents:
334
diff
changeset
|
844 gint h; |
41c3cb73120f
Rename window options (moved to layout) and re-order rc file.
zas_
parents:
334
diff
changeset
|
845 gint x; |
41c3cb73120f
Rename window options (moved to layout) and re-order rc file.
zas_
parents:
334
diff
changeset
|
846 gint y; |
41c3cb73120f
Rename window options (moved to layout) and re-order rc file.
zas_
parents:
334
diff
changeset
|
847 gint maximized; |
41c3cb73120f
Rename window options (moved to layout) and re-order rc file.
zas_
parents:
334
diff
changeset
|
848 gint hdivider_pos; |
41c3cb73120f
Rename window options (moved to layout) and re-order rc file.
zas_
parents:
334
diff
changeset
|
849 gint vdivider_pos; |
41c3cb73120f
Rename window options (moved to layout) and re-order rc file.
zas_
parents:
334
diff
changeset
|
850 } main_window; |
41c3cb73120f
Rename window options (moved to layout) and re-order rc file.
zas_
parents:
334
diff
changeset
|
851 |
41c3cb73120f
Rename window options (moved to layout) and re-order rc file.
zas_
parents:
334
diff
changeset
|
852 struct { |
41c3cb73120f
Rename window options (moved to layout) and re-order rc file.
zas_
parents:
334
diff
changeset
|
853 gint w; |
41c3cb73120f
Rename window options (moved to layout) and re-order rc file.
zas_
parents:
334
diff
changeset
|
854 gint h; |
41c3cb73120f
Rename window options (moved to layout) and re-order rc file.
zas_
parents:
334
diff
changeset
|
855 gint x; |
41c3cb73120f
Rename window options (moved to layout) and re-order rc file.
zas_
parents:
334
diff
changeset
|
856 gint y; |
41c3cb73120f
Rename window options (moved to layout) and re-order rc file.
zas_
parents:
334
diff
changeset
|
857 gint vdivider_pos; |
41c3cb73120f
Rename window options (moved to layout) and re-order rc file.
zas_
parents:
334
diff
changeset
|
858 } float_window; |
41c3cb73120f
Rename window options (moved to layout) and re-order rc file.
zas_
parents:
334
diff
changeset
|
859 |
41c3cb73120f
Rename window options (moved to layout) and re-order rc file.
zas_
parents:
334
diff
changeset
|
860 gint save_window_positions; |
41c3cb73120f
Rename window options (moved to layout) and re-order rc file.
zas_
parents:
334
diff
changeset
|
861 |
41c3cb73120f
Rename window options (moved to layout) and re-order rc file.
zas_
parents:
334
diff
changeset
|
862 gint tools_float; |
41c3cb73120f
Rename window options (moved to layout) and re-order rc file.
zas_
parents:
334
diff
changeset
|
863 gint tools_hidden; |
41c3cb73120f
Rename window options (moved to layout) and re-order rc file.
zas_
parents:
334
diff
changeset
|
864 gint tools_restore_state; |
41c3cb73120f
Rename window options (moved to layout) and re-order rc file.
zas_
parents:
334
diff
changeset
|
865 |
41c3cb73120f
Rename window options (moved to layout) and re-order rc file.
zas_
parents:
334
diff
changeset
|
866 gint toolbar_hidden; |
41c3cb73120f
Rename window options (moved to layout) and re-order rc file.
zas_
parents:
334
diff
changeset
|
867 |
327 | 868 } layout; |
320 | 869 |
328 | 870 /* color profiles */ |
327 | 871 struct { |
872 gint enabled; | |
873 gint input_type; | |
874 gchar *input_file[COLOR_PROFILE_INPUTS]; | |
875 gchar *input_name[COLOR_PROFILE_INPUTS]; | |
876 gint screen_type; | |
877 gchar *screen_file; | |
878 gint use_image; | |
879 | |
880 } color_profile; | |
320 | 881 |
318 | 882 }; |
9 | 883 |
884 #endif | |
885 | |
886 |