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