Mercurial > geeqie
annotate src/typedefs.h @ 380:5afe77bb563a
Introduce a new struct ViewDir to handle directory views common
data.
Specific data is now in ViewDirInfoList and ViewDirInfoTree.
Type of directory view can be specified with enum DirViewType.
This is saved to rc file as layout.dir_view_type, which replace
layout.view_as_tree.
Code was modified to reflect these changes.
This is a first to move to merge common code of view_dir_list.c
and view_dir_tree.c and ease the introduction of new types
of directory view.
author | zas_ |
---|---|
date | Wed, 16 Apr 2008 14:45:22 +0000 |
parents | 61a3c8b05b24 |
children | 392dd6541d51 |
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; |
9 | 532 GtkWidget *widget; |
380
5afe77bb563a
Introduce a new struct ViewDir to handle directory views common
zas_
parents:
373
diff
changeset
|
533 GtkWidget *view; |
9 | 534 |
535 gchar *path; | |
536 | |
537 FileData *click_fd; | |
538 | |
539 FileData *drop_fd; | |
540 GList *drop_list; | |
541 gint drop_scroll_id; | |
542 | |
543 /* func list */ | |
380
5afe77bb563a
Introduce a new struct ViewDir to handle directory views common
zas_
parents:
373
diff
changeset
|
544 void (*select_func)(ViewDir *vd, const gchar *path, gpointer data); |
9 | 545 gpointer select_data; |
546 | |
547 LayoutWindow *layout; | |
548 | |
549 GtkWidget *popup; | |
550 | |
551 PixmapFolders *pf; | |
552 | |
380
5afe77bb563a
Introduce a new struct ViewDir to handle directory views common
zas_
parents:
373
diff
changeset
|
553 gpointer info; |
5afe77bb563a
Introduce a new struct ViewDir to handle directory views common
zas_
parents:
373
diff
changeset
|
554 }; |
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 struct _ViewDirInfoList |
5afe77bb563a
Introduce a new struct ViewDir to handle directory views common
zas_
parents:
373
diff
changeset
|
557 { |
5afe77bb563a
Introduce a new struct ViewDir to handle directory views common
zas_
parents:
373
diff
changeset
|
558 GList *list; |
5afe77bb563a
Introduce a new struct ViewDir to handle directory views common
zas_
parents:
373
diff
changeset
|
559 }; |
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 struct _ViewDirInfoTree |
5afe77bb563a
Introduce a new struct ViewDir to handle directory views common
zas_
parents:
373
diff
changeset
|
562 { |
5afe77bb563a
Introduce a new struct ViewDir to handle directory views common
zas_
parents:
373
diff
changeset
|
563 gint drop_expand_id; |
9 | 564 gint busy_ref; |
565 }; | |
566 | |
567 struct _ViewFileList | |
568 { | |
569 GtkWidget *widget; | |
570 GtkWidget *listview; | |
571 | |
572 gchar *path; | |
573 GList *list; | |
574 | |
575 SortType sort_method; | |
576 gint sort_ascend; | |
577 | |
578 FileData *click_fd; | |
579 FileData *select_fd; | |
580 | |
581 gint thumbs_enabled; | |
138 | 582 gint marks_enabled; |
150 | 583 gint active_mark; |
132 | 584 |
9 | 585 /* thumb updates */ |
586 gint thumbs_running; | |
587 gint thumbs_count; | |
588 ThumbLoader *thumbs_loader; | |
589 FileData *thumbs_filedata; | |
590 | |
591 /* func list */ | |
592 void (*func_thumb_status)(ViewFileList *vfl, gdouble val, const gchar *text, gpointer data); | |
593 gpointer data_thumb_status; | |
594 | |
595 void (*func_status)(ViewFileList *vfl, gpointer data); | |
596 gpointer data_status; | |
597 | |
598 gint select_idle_id; | |
599 LayoutWindow *layout; | |
600 | |
601 GtkWidget *popup; | |
602 }; | |
603 | |
138 | 604 struct _IconData; |
605 | |
9 | 606 struct _ViewFileIcon |
607 { | |
608 GtkWidget *widget; | |
609 GtkWidget *listview; | |
610 | |
611 gchar *path; | |
612 GList *list; | |
613 | |
614 /* table stuff */ | |
615 | |
616 gint columns; | |
617 gint rows; | |
618 | |
619 GList *selection; | |
138 | 620 struct _IconData *prev_selection; |
9 | 621 |
622 GtkWidget *tip_window; | |
623 gint tip_delay_id; | |
138 | 624 struct _IconData *tip_id; |
9 | 625 |
138 | 626 struct _IconData *click_id; |
9 | 627 |
138 | 628 struct _IconData *focus_id; |
9 | 629 gint focus_row; |
630 gint focus_column; | |
631 | |
632 SortType sort_method; | |
633 gint sort_ascend; | |
634 | |
635 gint show_text; | |
636 | |
637 gint sync_idle_id; | |
638 | |
639 /* thumbs */ | |
640 | |
641 gint thumbs_running; | |
642 GList *thumbs_list; | |
643 gint thumbs_count; | |
644 ThumbLoader *thumbs_loader; | |
645 FileData *thumbs_fd; | |
646 | |
647 /* func list */ | |
648 void (*func_thumb_status)(ViewFileIcon *vfi, gdouble val, const gchar *text, gpointer data); | |
649 gpointer data_thumb_status; | |
650 | |
651 void (*func_status)(ViewFileIcon *vfi, gpointer data); | |
652 gpointer data_status; | |
653 | |
654 LayoutWindow *layout; | |
655 | |
656 GtkWidget *popup; | |
657 }; | |
658 | |
659 struct _SlideShowData | |
660 { | |
661 ImageWindow *imd; | |
662 | |
138 | 663 GList *filelist; |
9 | 664 CollectionData *cd; |
665 gchar *layout_path; | |
666 LayoutWindow *layout; | |
667 | |
668 GList *list; | |
669 GList *list_done; | |
670 | |
138 | 671 FileData *slide_fd; |
9 | 672 |
673 gint slide_count; | |
674 gint timeout_id; | |
675 | |
676 gint from_selection; | |
677 | |
678 void (*stop_func)(SlideShowData *, gpointer); | |
679 gpointer stop_data; | |
680 | |
681 gint paused; | |
682 }; | |
683 | |
684 struct _FullScreenData | |
685 { | |
686 GtkWidget *window; | |
687 ImageWindow *imd; | |
688 | |
689 GtkWidget *normal_window; | |
690 ImageWindow *normal_imd; | |
691 | |
692 gint hide_mouse_id; | |
693 gint busy_mouse_id; | |
694 gint cursor_state; | |
695 | |
696 gint saver_block_id; | |
697 | |
698 void (*stop_func)(FullScreenData *, gpointer); | |
699 gpointer stop_data; | |
700 }; | |
701 | |
702 struct _PixmapFolders | |
703 { | |
704 GdkPixbuf *close; | |
705 GdkPixbuf *open; | |
706 GdkPixbuf *deny; | |
707 GdkPixbuf *parent; | |
708 }; | |
709 | |
276 | 710 struct _SecureSaveInfo { |
711 FILE *fp; /**< file stream pointer */ | |
712 gchar *file_name; /**< final file name */ | |
713 gchar *tmp_file_name; /**< temporary file name */ | |
714 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
|
715 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
|
716 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
|
717 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
|
718 gint unlink_on_error; /**< whether to remove temporary file on save failure, TRUE by default */ |
276 | 719 }; |
720 | |
318 | 721 struct _ConfOptions |
722 { | |
328 | 723 |
724 /* ui */ | |
318 | 725 gint progressive_key_scrolling; |
328 | 726 gint place_dialogs_under_mouse; |
727 gint mousewheel_scrolls; | |
728 gint show_icon_names; | |
318 | 729 |
328 | 730 /* various */ |
318 | 731 gint startup_path_enable; |
732 gchar *startup_path; | |
328 | 733 gint enable_metadata_dirs; |
734 | |
735 gint tree_descend_subdirs; | |
736 | |
737 gint lazy_image_sync; | |
738 gint update_on_time_change; | |
739 | |
342
07490120df2d
Rename dupe_custom_threshold option to duplicates_similarity_threshold.
zas_
parents:
341
diff
changeset
|
740 gint duplicates_similarity_threshold; |
328 | 741 |
343
63380ea3e65d
Rename recent_list_max/open_recent_max to open_recent_list_maxsize.
zas_
parents:
342
diff
changeset
|
742 gint open_recent_list_maxsize; |
328 | 743 |
341
15c6b94545a2
Move safe_delete* and in place rename options to file_ops
zas_
parents:
340
diff
changeset
|
744 /* file ops */ |
15c6b94545a2
Move safe_delete* and in place rename options to file_ops
zas_
parents:
340
diff
changeset
|
745 struct { |
15c6b94545a2
Move safe_delete* and in place rename options to file_ops
zas_
parents:
340
diff
changeset
|
746 gint enable_in_place_rename; |
15c6b94545a2
Move safe_delete* and in place rename options to file_ops
zas_
parents:
340
diff
changeset
|
747 |
15c6b94545a2
Move safe_delete* and in place rename options to file_ops
zas_
parents:
340
diff
changeset
|
748 gint confirm_delete; |
15c6b94545a2
Move safe_delete* and in place rename options to file_ops
zas_
parents:
340
diff
changeset
|
749 gint enable_delete_key; |
15c6b94545a2
Move safe_delete* and in place rename options to file_ops
zas_
parents:
340
diff
changeset
|
750 gint safe_delete_enable; |
15c6b94545a2
Move safe_delete* and in place rename options to file_ops
zas_
parents:
340
diff
changeset
|
751 gchar *safe_delete_path; |
15c6b94545a2
Move safe_delete* and in place rename options to file_ops
zas_
parents:
340
diff
changeset
|
752 gint safe_delete_folder_maxsize; |
15c6b94545a2
Move safe_delete* and in place rename options to file_ops
zas_
parents:
340
diff
changeset
|
753 } file_ops; |
15c6b94545a2
Move safe_delete* and in place rename options to file_ops
zas_
parents:
340
diff
changeset
|
754 |
328 | 755 /* image */ |
334 | 756 struct { |
757 gint exif_rotate_enable; | |
758 gint scroll_reset_method; | |
759 gint fit_window_to_image; | |
760 gint limit_window_size; | |
761 gint max_window_size; | |
762 gint limit_autofit_size; | |
763 gint max_autofit_size; | |
764 | |
765 gint tile_cache_max; /* in megabytes */ | |
766 gint dither_quality; | |
767 gint enable_read_ahead; | |
768 | |
769 gint zoom_mode; | |
770 gint zoom_2pass; | |
771 gint zoom_to_fit_allow_expand; | |
772 gint zoom_quality; | |
773 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
|
774 |
de1c2cd06fce
Rename user_specified_window_background and window_background_color
zas_
parents:
338
diff
changeset
|
775 gint use_custom_border_color; |
de1c2cd06fce
Rename user_specified_window_background and window_background_color
zas_
parents:
338
diff
changeset
|
776 GdkColor border_color; |
334 | 777 } image; |
778 | |
328 | 779 /* thumbnails */ |
333 | 780 struct { |
781 gint max_width; | |
782 gint max_height; | |
783 gint enable_caching; | |
784 gint cache_into_dirs; | |
785 gint fast; | |
786 gint use_xvpics; | |
787 gint spec_standard; | |
788 gint quality; | |
789 } thumbnails; | |
328 | 790 |
791 /* file filtering */ | |
332 | 792 struct { |
356 | 793 gint show_hidden_files; |
373
61a3c8b05b24
Add a new option in Preferences > Filtering to allow the
zas_
parents:
356
diff
changeset
|
794 gint show_dot_directory; |
332 | 795 gint disable; |
796 } file_filter; | |
328 | 797 |
798 /* collections */ | |
330 | 799 struct { |
800 gint rectangular_selection; | |
801 } collections; | |
328 | 802 |
803 /* editors */ | |
318 | 804 gchar *editor_name[GQ_EDITOR_SLOTS]; |
805 gchar *editor_command[GQ_EDITOR_SLOTS]; | |
806 | |
328 | 807 /* file sorting */ |
329 | 808 struct { |
809 SortType method; | |
810 gint ascending; | |
811 gint case_sensitive; /* file sorting method (case) */ | |
812 } file_sort; | |
318 | 813 |
328 | 814 /* slideshow */ |
326 | 815 struct { |
816 gint delay; /* in tenths of a second */ | |
817 gint random; | |
818 gint repeat; | |
819 } slideshow; | |
318 | 820 |
328 | 821 /* fullscreen */ |
322 | 822 struct { |
823 gint screen; | |
824 gint clean_flip; | |
825 gint disable_saver; | |
826 gint above; | |
827 gint show_info; | |
828 gchar *info; | |
829 } fullscreen; | |
318 | 830 |
320 | 831 /* layout */ |
327 | 832 struct { |
833 gchar *order; | |
834 gint style; | |
320 | 835 |
327 | 836 gint view_as_icons; |
380
5afe77bb563a
Introduce a new struct ViewDir to handle directory views common
zas_
parents:
373
diff
changeset
|
837 DirViewType dir_view_type; |
340
77103f3f2cb1
Rename option thumbnails.enabled to layout.show_thumbnails as it makes
zas_
parents:
339
diff
changeset
|
838 |
77103f3f2cb1
Rename option thumbnails.enabled to layout.show_thumbnails as it makes
zas_
parents:
339
diff
changeset
|
839 gint show_thumbnails; |
338
41c3cb73120f
Rename window options (moved to layout) and re-order rc file.
zas_
parents:
334
diff
changeset
|
840 |
41c3cb73120f
Rename window options (moved to layout) and re-order rc file.
zas_
parents:
334
diff
changeset
|
841 struct { |
41c3cb73120f
Rename window options (moved to layout) and re-order rc file.
zas_
parents:
334
diff
changeset
|
842 gint w; |
41c3cb73120f
Rename window options (moved to layout) and re-order rc file.
zas_
parents:
334
diff
changeset
|
843 gint h; |
41c3cb73120f
Rename window options (moved to layout) and re-order rc file.
zas_
parents:
334
diff
changeset
|
844 gint x; |
41c3cb73120f
Rename window options (moved to layout) and re-order rc file.
zas_
parents:
334
diff
changeset
|
845 gint y; |
41c3cb73120f
Rename window options (moved to layout) and re-order rc file.
zas_
parents:
334
diff
changeset
|
846 gint maximized; |
41c3cb73120f
Rename window options (moved to layout) and re-order rc file.
zas_
parents:
334
diff
changeset
|
847 gint hdivider_pos; |
41c3cb73120f
Rename window options (moved to layout) and re-order rc file.
zas_
parents:
334
diff
changeset
|
848 gint vdivider_pos; |
41c3cb73120f
Rename window options (moved to layout) and re-order rc file.
zas_
parents:
334
diff
changeset
|
849 } main_window; |
41c3cb73120f
Rename window options (moved to layout) and re-order rc file.
zas_
parents:
334
diff
changeset
|
850 |
41c3cb73120f
Rename window options (moved to layout) and re-order rc file.
zas_
parents:
334
diff
changeset
|
851 struct { |
41c3cb73120f
Rename window options (moved to layout) and re-order rc file.
zas_
parents:
334
diff
changeset
|
852 gint w; |
41c3cb73120f
Rename window options (moved to layout) and re-order rc file.
zas_
parents:
334
diff
changeset
|
853 gint h; |
41c3cb73120f
Rename window options (moved to layout) and re-order rc file.
zas_
parents:
334
diff
changeset
|
854 gint x; |
41c3cb73120f
Rename window options (moved to layout) and re-order rc file.
zas_
parents:
334
diff
changeset
|
855 gint y; |
41c3cb73120f
Rename window options (moved to layout) and re-order rc file.
zas_
parents:
334
diff
changeset
|
856 gint vdivider_pos; |
41c3cb73120f
Rename window options (moved to layout) and re-order rc file.
zas_
parents:
334
diff
changeset
|
857 } float_window; |
41c3cb73120f
Rename window options (moved to layout) and re-order rc file.
zas_
parents:
334
diff
changeset
|
858 |
41c3cb73120f
Rename window options (moved to layout) and re-order rc file.
zas_
parents:
334
diff
changeset
|
859 gint save_window_positions; |
41c3cb73120f
Rename window options (moved to layout) and re-order rc file.
zas_
parents:
334
diff
changeset
|
860 |
41c3cb73120f
Rename window options (moved to layout) and re-order rc file.
zas_
parents:
334
diff
changeset
|
861 gint tools_float; |
41c3cb73120f
Rename window options (moved to layout) and re-order rc file.
zas_
parents:
334
diff
changeset
|
862 gint tools_hidden; |
41c3cb73120f
Rename window options (moved to layout) and re-order rc file.
zas_
parents:
334
diff
changeset
|
863 gint tools_restore_state; |
41c3cb73120f
Rename window options (moved to layout) and re-order rc file.
zas_
parents:
334
diff
changeset
|
864 |
41c3cb73120f
Rename window options (moved to layout) and re-order rc file.
zas_
parents:
334
diff
changeset
|
865 gint toolbar_hidden; |
41c3cb73120f
Rename window options (moved to layout) and re-order rc file.
zas_
parents:
334
diff
changeset
|
866 |
327 | 867 } layout; |
320 | 868 |
328 | 869 /* color profiles */ |
327 | 870 struct { |
871 gint enabled; | |
872 gint input_type; | |
873 gchar *input_file[COLOR_PROFILE_INPUTS]; | |
874 gchar *input_name[COLOR_PROFILE_INPUTS]; | |
875 gint screen_type; | |
876 gchar *screen_file; | |
877 gint use_image; | |
878 | |
879 } color_profile; | |
320 | 880 |
318 | 881 }; |
9 | 882 |
883 #endif | |
884 | |
885 |