Mercurial > geeqie
annotate src/typedefs.h @ 429:831035240885
Let toggle marks with numeric keypad.
author | zas_ |
---|---|
date | Sat, 19 Apr 2008 20:53:12 +0000 |
parents | 9fe0ca1b5263 |
children | 5ddcf93278c7 |
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; |
9 | 414 }; |
415 | |
416 struct _LayoutWindow | |
417 { | |
418 gchar *path; | |
419 | |
420 /* base */ | |
421 | |
422 GtkWidget *window; | |
423 | |
424 GtkWidget *main_box; | |
425 | |
426 GtkWidget *group_box; | |
427 GtkWidget *h_pane; | |
428 GtkWidget *v_pane; | |
429 | |
430 /* menus, path selector */ | |
431 | |
432 GtkActionGroup *action_group; | |
433 GtkUIManager *ui_manager; | |
434 | |
435 GtkWidget *path_entry; | |
436 | |
437 /* image */ | |
438 | |
439 LayoutLocation image_location; | |
440 | |
441 ImageWindow *image; | |
442 | |
127 | 443 ImageWindow *split_images[MAX_SPLIT_IMAGES]; |
444 ImageSplitMode split_mode; | |
445 gint active_split_image; | |
446 | |
447 GtkWidget *split_image_widget; | |
448 | |
449 gint connect_zoom, connect_scroll; | |
450 | |
9 | 451 /* tools window (float) */ |
452 | |
453 GtkWidget *tools; | |
454 GtkWidget *tools_pane; | |
455 | |
456 gint tools_float; | |
457 gint tools_hidden; | |
458 | |
459 /* toolbar */ | |
460 | |
461 GtkWidget *toolbar; | |
462 gint toolbar_hidden; | |
463 | |
464 GtkWidget *thumb_button; | |
465 gint thumbs_enabled; | |
137
be3328a58875
started support for sidecar files like xmp, raw+jpeg etc.
nadvornik
parents:
134
diff
changeset
|
466 gint marks_enabled; |
132 | 467 |
9 | 468 /* dir view */ |
469 | |
470 LayoutLocation dir_location; | |
471 | |
380
5afe77bb563a
Introduce a new struct ViewDir to handle directory views common
zas_
parents:
373
diff
changeset
|
472 ViewDir *vd; |
9 | 473 GtkWidget *dir_view; |
474 | |
380
5afe77bb563a
Introduce a new struct ViewDir to handle directory views common
zas_
parents:
373
diff
changeset
|
475 DirViewType dir_view_type; |
9 | 476 |
477 /* file view */ | |
478 | |
479 LayoutLocation file_location; | |
480 | |
481 ViewFileList *vfl; | |
482 ViewFileIcon *vfi; | |
483 GtkWidget *file_view; | |
484 | |
485 gint icon_view; | |
486 SortType sort_method; | |
487 gint sort_ascend; | |
488 | |
489 /* status bar */ | |
490 | |
491 GtkWidget *info_box; | |
492 GtkWidget *info_progress_bar; | |
493 GtkWidget *info_sort; | |
113
55166d93498d
Fri Nov 24 21:37:01 2006 John Ellis <johne@verizon.net>
gqview
parents:
82
diff
changeset
|
494 GtkWidget *info_color; |
9 | 495 GtkWidget *info_status; |
496 GtkWidget *info_details; | |
497 GtkWidget *info_zoom; | |
498 | |
499 /* slide show */ | |
500 | |
501 SlideShowData *slideshow; | |
502 | |
503 /* full screen */ | |
504 | |
505 FullScreenData *full_screen; | |
506 | |
507 /* dividers */ | |
508 | |
509 gint div_h; | |
510 gint div_v; | |
511 gint div_float; | |
512 | |
513 /* directory update check */ | |
514 | |
515 gint last_time_id; | |
516 time_t last_time; | |
517 | |
518 /* misc */ | |
519 | |
520 GtkWidget *utility_box; | |
521 GtkWidget *bar_sort; | |
522 GtkWidget *bar_exif; | |
523 GtkWidget *bar_info; | |
524 | |
273
e0e2c2b72c5a
reworked the histogram patch by Uwe Ohse, most of the code is in
nadvornik
parents:
212
diff
changeset
|
525 gint histogram_enabled; |
e0e2c2b72c5a
reworked the histogram patch by Uwe Ohse, most of the code is in
nadvornik
parents:
212
diff
changeset
|
526 Histogram *histogram; |
e0e2c2b72c5a
reworked the histogram patch by Uwe Ohse, most of the code is in
nadvornik
parents:
212
diff
changeset
|
527 |
9 | 528 gint bar_sort_enabled; |
529 gint bar_exif_enabled; | |
530 gint bar_info_enabled; | |
531 | |
532 gint bar_exif_size; | |
533 gint bar_exif_advanced; | |
534 }; | |
535 | |
380
5afe77bb563a
Introduce a new struct ViewDir to handle directory views common
zas_
parents:
373
diff
changeset
|
536 struct _ViewDir |
9 | 537 { |
380
5afe77bb563a
Introduce a new struct ViewDir to handle directory views common
zas_
parents:
373
diff
changeset
|
538 DirViewType type; |
384
392dd6541d51
Merge parts of view_dir_list/tree constructors/destructors to
zas_
parents:
380
diff
changeset
|
539 gpointer info; |
392dd6541d51
Merge parts of view_dir_list/tree constructors/destructors to
zas_
parents:
380
diff
changeset
|
540 |
9 | 541 GtkWidget *widget; |
380
5afe77bb563a
Introduce a new struct ViewDir to handle directory views common
zas_
parents:
373
diff
changeset
|
542 GtkWidget *view; |
9 | 543 |
544 gchar *path; | |
545 | |
546 FileData *click_fd; | |
547 | |
548 FileData *drop_fd; | |
549 GList *drop_list; | |
550 gint drop_scroll_id; | |
551 | |
552 /* func list */ | |
380
5afe77bb563a
Introduce a new struct ViewDir to handle directory views common
zas_
parents:
373
diff
changeset
|
553 void (*select_func)(ViewDir *vd, const gchar *path, gpointer data); |
9 | 554 gpointer select_data; |
555 | |
407 | 556 void (*dnd_drop_update_func)(ViewDir *vd); |
557 void (*dnd_drop_leave_func)(ViewDir *vd); | |
558 | |
9 | 559 LayoutWindow *layout; |
560 | |
561 GtkWidget *popup; | |
562 | |
563 PixmapFolders *pf; | |
380
5afe77bb563a
Introduce a new struct ViewDir to handle directory views common
zas_
parents:
373
diff
changeset
|
564 }; |
5afe77bb563a
Introduce a new struct ViewDir to handle directory views common
zas_
parents:
373
diff
changeset
|
565 |
5afe77bb563a
Introduce a new struct ViewDir to handle directory views common
zas_
parents:
373
diff
changeset
|
566 struct _ViewDirInfoList |
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 GList *list; |
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 |
5afe77bb563a
Introduce a new struct ViewDir to handle directory views common
zas_
parents:
373
diff
changeset
|
571 struct _ViewDirInfoTree |
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 gint drop_expand_id; |
9 | 574 gint busy_ref; |
575 }; | |
576 | |
577 struct _ViewFileList | |
578 { | |
579 GtkWidget *widget; | |
580 GtkWidget *listview; | |
581 | |
582 gchar *path; | |
583 GList *list; | |
584 | |
585 SortType sort_method; | |
586 gint sort_ascend; | |
587 | |
588 FileData *click_fd; | |
589 FileData *select_fd; | |
590 | |
591 gint thumbs_enabled; | |
138 | 592 gint marks_enabled; |
150 | 593 gint active_mark; |
132 | 594 |
9 | 595 /* thumb updates */ |
596 gint thumbs_running; | |
597 gint thumbs_count; | |
598 ThumbLoader *thumbs_loader; | |
599 FileData *thumbs_filedata; | |
600 | |
601 /* func list */ | |
602 void (*func_thumb_status)(ViewFileList *vfl, gdouble val, const gchar *text, gpointer data); | |
603 gpointer data_thumb_status; | |
604 | |
605 void (*func_status)(ViewFileList *vfl, gpointer data); | |
606 gpointer data_status; | |
607 | |
608 gint select_idle_id; | |
609 LayoutWindow *layout; | |
610 | |
611 GtkWidget *popup; | |
612 }; | |
613 | |
138 | 614 struct _IconData; |
615 | |
9 | 616 struct _ViewFileIcon |
617 { | |
618 GtkWidget *widget; | |
619 GtkWidget *listview; | |
620 | |
621 gchar *path; | |
622 GList *list; | |
623 | |
624 /* table stuff */ | |
625 | |
626 gint columns; | |
627 gint rows; | |
628 | |
629 GList *selection; | |
138 | 630 struct _IconData *prev_selection; |
9 | 631 |
632 GtkWidget *tip_window; | |
633 gint tip_delay_id; | |
138 | 634 struct _IconData *tip_id; |
9 | 635 |
138 | 636 struct _IconData *click_id; |
9 | 637 |
138 | 638 struct _IconData *focus_id; |
9 | 639 gint focus_row; |
640 gint focus_column; | |
641 | |
642 SortType sort_method; | |
643 gint sort_ascend; | |
644 | |
645 gint show_text; | |
646 | |
647 gint sync_idle_id; | |
648 | |
649 /* thumbs */ | |
650 | |
651 gint thumbs_running; | |
652 GList *thumbs_list; | |
653 gint thumbs_count; | |
654 ThumbLoader *thumbs_loader; | |
655 FileData *thumbs_fd; | |
656 | |
657 /* func list */ | |
658 void (*func_thumb_status)(ViewFileIcon *vfi, gdouble val, const gchar *text, gpointer data); | |
659 gpointer data_thumb_status; | |
660 | |
661 void (*func_status)(ViewFileIcon *vfi, gpointer data); | |
662 gpointer data_status; | |
663 | |
664 LayoutWindow *layout; | |
665 | |
666 GtkWidget *popup; | |
667 }; | |
668 | |
669 struct _SlideShowData | |
670 { | |
671 ImageWindow *imd; | |
672 | |
138 | 673 GList *filelist; |
9 | 674 CollectionData *cd; |
675 gchar *layout_path; | |
676 LayoutWindow *layout; | |
677 | |
678 GList *list; | |
679 GList *list_done; | |
680 | |
138 | 681 FileData *slide_fd; |
9 | 682 |
683 gint slide_count; | |
684 gint timeout_id; | |
685 | |
686 gint from_selection; | |
687 | |
688 void (*stop_func)(SlideShowData *, gpointer); | |
689 gpointer stop_data; | |
690 | |
691 gint paused; | |
692 }; | |
693 | |
694 struct _FullScreenData | |
695 { | |
696 GtkWidget *window; | |
697 ImageWindow *imd; | |
698 | |
699 GtkWidget *normal_window; | |
700 ImageWindow *normal_imd; | |
701 | |
702 gint hide_mouse_id; | |
703 gint busy_mouse_id; | |
704 gint cursor_state; | |
705 | |
706 gint saver_block_id; | |
707 | |
708 void (*stop_func)(FullScreenData *, gpointer); | |
709 gpointer stop_data; | |
710 }; | |
711 | |
712 struct _PixmapFolders | |
713 { | |
714 GdkPixbuf *close; | |
715 GdkPixbuf *open; | |
716 GdkPixbuf *deny; | |
717 GdkPixbuf *parent; | |
718 }; | |
719 | |
276 | 720 struct _SecureSaveInfo { |
721 FILE *fp; /**< file stream pointer */ | |
722 gchar *file_name; /**< final file name */ | |
723 gchar *tmp_file_name; /**< temporary file name */ | |
724 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
|
725 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
|
726 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
|
727 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
|
728 gint unlink_on_error; /**< whether to remove temporary file on save failure, TRUE by default */ |
276 | 729 }; |
730 | |
318 | 731 struct _ConfOptions |
732 { | |
328 | 733 |
734 /* ui */ | |
318 | 735 gint progressive_key_scrolling; |
328 | 736 gint place_dialogs_under_mouse; |
737 gint mousewheel_scrolls; | |
738 gint show_icon_names; | |
318 | 739 |
328 | 740 /* various */ |
318 | 741 gint startup_path_enable; |
742 gchar *startup_path; | |
328 | 743 gint enable_metadata_dirs; |
744 | |
745 gint tree_descend_subdirs; | |
746 | |
747 gint lazy_image_sync; | |
748 gint update_on_time_change; | |
749 | |
342
07490120df2d
Rename dupe_custom_threshold option to duplicates_similarity_threshold.
zas_
parents:
341
diff
changeset
|
750 gint duplicates_similarity_threshold; |
328 | 751 |
343
63380ea3e65d
Rename recent_list_max/open_recent_max to open_recent_list_maxsize.
zas_
parents:
342
diff
changeset
|
752 gint open_recent_list_maxsize; |
328 | 753 |
341
15c6b94545a2
Move safe_delete* and in place rename options to file_ops
zas_
parents:
340
diff
changeset
|
754 /* file ops */ |
15c6b94545a2
Move safe_delete* and in place rename options to file_ops
zas_
parents:
340
diff
changeset
|
755 struct { |
15c6b94545a2
Move safe_delete* and in place rename options to file_ops
zas_
parents:
340
diff
changeset
|
756 gint enable_in_place_rename; |
15c6b94545a2
Move safe_delete* and in place rename options to file_ops
zas_
parents:
340
diff
changeset
|
757 |
15c6b94545a2
Move safe_delete* and in place rename options to file_ops
zas_
parents:
340
diff
changeset
|
758 gint confirm_delete; |
15c6b94545a2
Move safe_delete* and in place rename options to file_ops
zas_
parents:
340
diff
changeset
|
759 gint enable_delete_key; |
15c6b94545a2
Move safe_delete* and in place rename options to file_ops
zas_
parents:
340
diff
changeset
|
760 gint safe_delete_enable; |
15c6b94545a2
Move safe_delete* and in place rename options to file_ops
zas_
parents:
340
diff
changeset
|
761 gchar *safe_delete_path; |
15c6b94545a2
Move safe_delete* and in place rename options to file_ops
zas_
parents:
340
diff
changeset
|
762 gint safe_delete_folder_maxsize; |
15c6b94545a2
Move safe_delete* and in place rename options to file_ops
zas_
parents:
340
diff
changeset
|
763 } file_ops; |
15c6b94545a2
Move safe_delete* and in place rename options to file_ops
zas_
parents:
340
diff
changeset
|
764 |
328 | 765 /* image */ |
334 | 766 struct { |
767 gint exif_rotate_enable; | |
768 gint scroll_reset_method; | |
769 gint fit_window_to_image; | |
770 gint limit_window_size; | |
771 gint max_window_size; | |
772 gint limit_autofit_size; | |
773 gint max_autofit_size; | |
774 | |
775 gint tile_cache_max; /* in megabytes */ | |
776 gint dither_quality; | |
777 gint enable_read_ahead; | |
778 | |
779 gint zoom_mode; | |
780 gint zoom_2pass; | |
781 gint zoom_to_fit_allow_expand; | |
782 gint zoom_quality; | |
783 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
|
784 |
de1c2cd06fce
Rename user_specified_window_background and window_background_color
zas_
parents:
338
diff
changeset
|
785 gint use_custom_border_color; |
de1c2cd06fce
Rename user_specified_window_background and window_background_color
zas_
parents:
338
diff
changeset
|
786 GdkColor border_color; |
413
9e521adbf312
Add two new options to control image read buffer at runtime.
zas_
parents:
407
diff
changeset
|
787 |
9e521adbf312
Add two new options to control image read buffer at runtime.
zas_
parents:
407
diff
changeset
|
788 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
|
789 gint idle_read_loop_count; /* the number of bytes to read per idle call (define x image.read_buffer_size) */ |
334 | 790 } image; |
791 | |
328 | 792 /* thumbnails */ |
333 | 793 struct { |
794 gint max_width; | |
795 gint max_height; | |
796 gint enable_caching; | |
797 gint cache_into_dirs; | |
798 gint fast; | |
799 gint use_xvpics; | |
800 gint spec_standard; | |
801 gint quality; | |
802 } thumbnails; | |
328 | 803 |
804 /* file filtering */ | |
332 | 805 struct { |
356 | 806 gint show_hidden_files; |
373
61a3c8b05b24
Add a new option in Preferences > Filtering to allow the
zas_
parents:
356
diff
changeset
|
807 gint show_dot_directory; |
332 | 808 gint disable; |
809 } file_filter; | |
328 | 810 |
811 /* collections */ | |
330 | 812 struct { |
813 gint rectangular_selection; | |
814 } collections; | |
328 | 815 |
816 /* editors */ | |
318 | 817 gchar *editor_name[GQ_EDITOR_SLOTS]; |
818 gchar *editor_command[GQ_EDITOR_SLOTS]; | |
819 | |
328 | 820 /* file sorting */ |
329 | 821 struct { |
822 SortType method; | |
823 gint ascending; | |
824 gint case_sensitive; /* file sorting method (case) */ | |
825 } file_sort; | |
318 | 826 |
328 | 827 /* slideshow */ |
326 | 828 struct { |
829 gint delay; /* in tenths of a second */ | |
830 gint random; | |
831 gint repeat; | |
832 } slideshow; | |
318 | 833 |
328 | 834 /* fullscreen */ |
322 | 835 struct { |
836 gint screen; | |
837 gint clean_flip; | |
838 gint disable_saver; | |
839 gint above; | |
840 gint show_info; | |
841 gchar *info; | |
842 } fullscreen; | |
318 | 843 |
320 | 844 /* layout */ |
327 | 845 struct { |
846 gchar *order; | |
847 gint style; | |
320 | 848 |
327 | 849 gint view_as_icons; |
380
5afe77bb563a
Introduce a new struct ViewDir to handle directory views common
zas_
parents:
373
diff
changeset
|
850 DirViewType dir_view_type; |
340
77103f3f2cb1
Rename option thumbnails.enabled to layout.show_thumbnails as it makes
zas_
parents:
339
diff
changeset
|
851 |
77103f3f2cb1
Rename option thumbnails.enabled to layout.show_thumbnails as it makes
zas_
parents:
339
diff
changeset
|
852 gint show_thumbnails; |
338
41c3cb73120f
Rename window options (moved to layout) and re-order rc file.
zas_
parents:
334
diff
changeset
|
853 |
41c3cb73120f
Rename window options (moved to layout) and re-order rc file.
zas_
parents:
334
diff
changeset
|
854 struct { |
41c3cb73120f
Rename window options (moved to layout) and re-order rc file.
zas_
parents:
334
diff
changeset
|
855 gint w; |
41c3cb73120f
Rename window options (moved to layout) and re-order rc file.
zas_
parents:
334
diff
changeset
|
856 gint h; |
41c3cb73120f
Rename window options (moved to layout) and re-order rc file.
zas_
parents:
334
diff
changeset
|
857 gint x; |
41c3cb73120f
Rename window options (moved to layout) and re-order rc file.
zas_
parents:
334
diff
changeset
|
858 gint y; |
41c3cb73120f
Rename window options (moved to layout) and re-order rc file.
zas_
parents:
334
diff
changeset
|
859 gint maximized; |
41c3cb73120f
Rename window options (moved to layout) and re-order rc file.
zas_
parents:
334
diff
changeset
|
860 gint hdivider_pos; |
41c3cb73120f
Rename window options (moved to layout) and re-order rc file.
zas_
parents:
334
diff
changeset
|
861 gint vdivider_pos; |
41c3cb73120f
Rename window options (moved to layout) and re-order rc file.
zas_
parents:
334
diff
changeset
|
862 } main_window; |
41c3cb73120f
Rename window options (moved to layout) and re-order rc file.
zas_
parents:
334
diff
changeset
|
863 |
41c3cb73120f
Rename window options (moved to layout) and re-order rc file.
zas_
parents:
334
diff
changeset
|
864 struct { |
41c3cb73120f
Rename window options (moved to layout) and re-order rc file.
zas_
parents:
334
diff
changeset
|
865 gint w; |
41c3cb73120f
Rename window options (moved to layout) and re-order rc file.
zas_
parents:
334
diff
changeset
|
866 gint h; |
41c3cb73120f
Rename window options (moved to layout) and re-order rc file.
zas_
parents:
334
diff
changeset
|
867 gint x; |
41c3cb73120f
Rename window options (moved to layout) and re-order rc file.
zas_
parents:
334
diff
changeset
|
868 gint y; |
41c3cb73120f
Rename window options (moved to layout) and re-order rc file.
zas_
parents:
334
diff
changeset
|
869 gint vdivider_pos; |
41c3cb73120f
Rename window options (moved to layout) and re-order rc file.
zas_
parents:
334
diff
changeset
|
870 } float_window; |
41c3cb73120f
Rename window options (moved to layout) and re-order rc file.
zas_
parents:
334
diff
changeset
|
871 |
41c3cb73120f
Rename window options (moved to layout) and re-order rc file.
zas_
parents:
334
diff
changeset
|
872 gint save_window_positions; |
41c3cb73120f
Rename window options (moved to layout) and re-order rc file.
zas_
parents:
334
diff
changeset
|
873 |
41c3cb73120f
Rename window options (moved to layout) and re-order rc file.
zas_
parents:
334
diff
changeset
|
874 gint tools_float; |
41c3cb73120f
Rename window options (moved to layout) and re-order rc file.
zas_
parents:
334
diff
changeset
|
875 gint tools_hidden; |
41c3cb73120f
Rename window options (moved to layout) and re-order rc file.
zas_
parents:
334
diff
changeset
|
876 gint tools_restore_state; |
41c3cb73120f
Rename window options (moved to layout) and re-order rc file.
zas_
parents:
334
diff
changeset
|
877 |
41c3cb73120f
Rename window options (moved to layout) and re-order rc file.
zas_
parents:
334
diff
changeset
|
878 gint toolbar_hidden; |
41c3cb73120f
Rename window options (moved to layout) and re-order rc file.
zas_
parents:
334
diff
changeset
|
879 |
327 | 880 } layout; |
320 | 881 |
328 | 882 /* color profiles */ |
327 | 883 struct { |
884 gint enabled; | |
885 gint input_type; | |
886 gchar *input_file[COLOR_PROFILE_INPUTS]; | |
887 gchar *input_name[COLOR_PROFILE_INPUTS]; | |
888 gint screen_type; | |
889 gchar *screen_file; | |
890 gint use_image; | |
891 | |
892 } color_profile; | |
320 | 893 |
318 | 894 }; |
9 | 895 |
896 #endif | |
897 | |
898 |