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