Mercurial > geeqie
annotate src/typedefs.h @ 189:deea9e11f1d4
fixed reading sidecar extensions from config file
author | nadvornik |
---|---|
date | Sun, 16 Mar 2008 10:52:44 +0000 |
parents | 08ab6367b4e6 |
children | f6e307c7bad6 |
rev | line source |
---|---|
9 | 1 /* |
2 * GQview | |
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 { |
9009856628f7
started implementation of external commands; external Delete should work
nadvornik
parents:
132
diff
changeset
|
17 CMD_COPY = GQVIEW_EDITOR_GENERIC_SLOTS, |
9009856628f7
started implementation of external commands; external Delete should work
nadvornik
parents:
132
diff
changeset
|
18 CMD_MOVE, |
9009856628f7
started implementation of external commands; external Delete should work
nadvornik
parents:
132
diff
changeset
|
19 CMD_RENAME, |
9009856628f7
started implementation of external commands; external Delete should work
nadvornik
parents:
132
diff
changeset
|
20 CMD_DELETE, |
9009856628f7
started implementation of external commands; external Delete should work
nadvornik
parents:
132
diff
changeset
|
21 CMD_FOLDER, |
9009856628f7
started implementation of external commands; external Delete should work
nadvornik
parents:
132
diff
changeset
|
22 GQVIEW_EDITOR_SLOTS |
9009856628f7
started implementation of external commands; external Delete should work
nadvornik
parents:
132
diff
changeset
|
23 } SpecialEditor; |
9 | 24 |
25 typedef enum { | |
26 SORT_NONE, | |
27 SORT_NAME, | |
28 SORT_SIZE, | |
29 SORT_TIME, | |
30 SORT_PATH, | |
31 SORT_NUMBER | |
32 } SortType; | |
33 | |
34 typedef enum { | |
35 ALTER_NONE, /* do nothing */ | |
36 ALTER_ROTATE_90, | |
37 ALTER_ROTATE_90_CC, /* counterclockwise */ | |
38 ALTER_ROTATE_180, | |
39 ALTER_MIRROR, | |
82
a4c1b7014e6e
Thu Oct 19 15:20:51 2006 John Ellis <johne@verizon.net>
gqview
parents:
41
diff
changeset
|
40 ALTER_FLIP, |
a4c1b7014e6e
Thu Oct 19 15:20:51 2006 John Ellis <johne@verizon.net>
gqview
parents:
41
diff
changeset
|
41 ALTER_DESATURATE |
9 | 42 } AlterType; |
43 | |
44 typedef enum { | |
45 LAYOUT_HIDE = 0, | |
46 LAYOUT_LEFT = 1 << 0, | |
47 LAYOUT_RIGHT = 1 << 1, | |
48 LAYOUT_TOP = 1 << 2, | |
49 LAYOUT_BOTTOM = 1 << 3 | |
50 } LayoutLocation; | |
51 | |
52 | |
113
55166d93498d
Fri Nov 24 21:37:01 2006 John Ellis <johne@verizon.net>
gqview
parents:
82
diff
changeset
|
53 typedef enum { |
55166d93498d
Fri Nov 24 21:37:01 2006 John Ellis <johne@verizon.net>
gqview
parents:
82
diff
changeset
|
54 IMAGE_STATE_NONE = 0, |
55166d93498d
Fri Nov 24 21:37:01 2006 John Ellis <johne@verizon.net>
gqview
parents:
82
diff
changeset
|
55 IMAGE_STATE_IMAGE = 1 << 0, |
55166d93498d
Fri Nov 24 21:37:01 2006 John Ellis <johne@verizon.net>
gqview
parents:
82
diff
changeset
|
56 IMAGE_STATE_LOADING = 1 << 1, |
55166d93498d
Fri Nov 24 21:37:01 2006 John Ellis <johne@verizon.net>
gqview
parents:
82
diff
changeset
|
57 IMAGE_STATE_ERROR = 1 << 2, |
55166d93498d
Fri Nov 24 21:37:01 2006 John Ellis <johne@verizon.net>
gqview
parents:
82
diff
changeset
|
58 IMAGE_STATE_COLOR_ADJ = 1 << 3, |
55166d93498d
Fri Nov 24 21:37:01 2006 John Ellis <johne@verizon.net>
gqview
parents:
82
diff
changeset
|
59 IMAGE_STATE_ROTATE_AUTO = 1 << 4, |
55166d93498d
Fri Nov 24 21:37:01 2006 John Ellis <johne@verizon.net>
gqview
parents:
82
diff
changeset
|
60 IMAGE_STATE_ROTATE_USER = 1 << 5, |
55166d93498d
Fri Nov 24 21:37:01 2006 John Ellis <johne@verizon.net>
gqview
parents:
82
diff
changeset
|
61 IMAGE_STATE_DELAY_FLIP = 1 << 6 |
55166d93498d
Fri Nov 24 21:37:01 2006 John Ellis <johne@verizon.net>
gqview
parents:
82
diff
changeset
|
62 } ImageState; |
55166d93498d
Fri Nov 24 21:37:01 2006 John Ellis <johne@verizon.net>
gqview
parents:
82
diff
changeset
|
63 |
127 | 64 typedef enum { |
65 SPLIT_NONE = 0, | |
66 SPLIT_VERT, | |
67 SPLIT_HOR, | |
68 SPLIT_QUAD, | |
69 } ImageSplitMode; | |
70 | |
143
0d1bf3ac6cd8
improved FileDataChangeInfo structure, check for another file operation in progress
nadvornik
parents:
141
diff
changeset
|
71 typedef enum { |
0d1bf3ac6cd8
improved FileDataChangeInfo structure, check for another file operation in progress
nadvornik
parents:
141
diff
changeset
|
72 FILEDATA_CHANGE_DELETE, |
0d1bf3ac6cd8
improved FileDataChangeInfo structure, check for another file operation in progress
nadvornik
parents:
141
diff
changeset
|
73 FILEDATA_CHANGE_MOVE, |
0d1bf3ac6cd8
improved FileDataChangeInfo structure, check for another file operation in progress
nadvornik
parents:
141
diff
changeset
|
74 FILEDATA_CHANGE_RENAME, |
0d1bf3ac6cd8
improved FileDataChangeInfo structure, check for another file operation in progress
nadvornik
parents:
141
diff
changeset
|
75 FILEDATA_CHANGE_COPY |
0d1bf3ac6cd8
improved FileDataChangeInfo structure, check for another file operation in progress
nadvornik
parents:
141
diff
changeset
|
76 } FileDataChangeType; |
0d1bf3ac6cd8
improved FileDataChangeInfo structure, check for another file operation in progress
nadvornik
parents:
141
diff
changeset
|
77 |
161 | 78 typedef enum { |
79 MTS_MODE_MINUS, | |
80 MTS_MODE_SET, | |
81 MTS_MODE_OR, | |
82 MTS_MODE_AND | |
83 } MarkToSelectionMode; | |
84 | |
85 typedef enum { | |
86 STM_MODE_RESET, | |
87 STM_MODE_SET, | |
88 STM_MODE_TOGGLE | |
89 } SelectionToMarkMode; | |
90 | |
143
0d1bf3ac6cd8
improved FileDataChangeInfo structure, check for another file operation in progress
nadvornik
parents:
141
diff
changeset
|
91 |
127 | 92 #define MAX_SPLIT_IMAGES 4 |
93 | |
9 | 94 typedef struct _ImageLoader ImageLoader; |
95 typedef struct _ThumbLoader ThumbLoader; | |
96 | |
97 typedef struct _CollectInfo CollectInfo; | |
98 typedef struct _CollectionData CollectionData; | |
99 typedef struct _CollectTable CollectTable; | |
100 typedef struct _CollectWindow CollectWindow; | |
101 | |
102 typedef struct _ImageWindow ImageWindow; | |
103 | |
104 typedef struct _FileData FileData; | |
138 | 105 typedef struct _FileDataChangeInfo FileDataChangeInfo; |
9 | 106 |
107 typedef struct _LayoutWindow LayoutWindow; | |
108 typedef struct _ViewDirList ViewDirList; | |
109 typedef struct _ViewDirTree ViewDirTree; | |
110 typedef struct _ViewFileList ViewFileList; | |
111 typedef struct _ViewFileIcon ViewFileIcon; | |
112 | |
113 typedef struct _SlideShowData SlideShowData; | |
114 typedef struct _FullScreenData FullScreenData; | |
115 | |
116 typedef struct _PixmapFolders PixmapFolders; | |
117 | |
118 | |
119 struct _ImageLoader | |
120 { | |
121 GdkPixbuf *pixbuf; | |
138 | 122 FileData *fd; |
9 | 123 gchar *path; |
124 | |
125 gint bytes_read; | |
126 gint bytes_total; | |
127 | |
128 guint buffer_size; | |
129 | |
130 gint requested_width; | |
131 gint requested_height; | |
14
25335c62cd9b
##### Note: GQview CVS on sourceforge is not always up to date, please use #####
gqview
parents:
12
diff
changeset
|
132 gint shrunk; |
9 | 133 |
134 gint done; | |
135 gint idle_id; | |
136 gint idle_priority; | |
137 | |
138 GdkPixbufLoader *loader; | |
139 gint load_fd; | |
140 | |
141 void (*func_area_ready)(ImageLoader *, guint x, guint y, guint w, guint h, gpointer); | |
142 void (*func_error)(ImageLoader *, gpointer); | |
143 void (*func_done)(ImageLoader *, gpointer); | |
144 void (*func_percent)(ImageLoader *, gdouble, gpointer); | |
145 | |
146 gpointer data_area_ready; | |
147 gpointer data_error; | |
148 gpointer data_done; | |
149 gpointer data_percent; | |
150 | |
151 gint idle_done_id; | |
152 }; | |
153 | |
154 typedef void (* ThumbLoaderFunc)(ThumbLoader *tl, gpointer data); | |
155 | |
156 struct _ThumbLoader | |
157 { | |
158 gint standard_loader; | |
159 | |
160 GdkPixbuf *pixbuf; /* contains final (scaled) image when done */ | |
161 ImageLoader *il; | |
162 gchar *path; | |
163 | |
164 gint cache_enable; | |
165 gint cache_hit; | |
166 gdouble percent_done; | |
167 | |
168 gint max_w; | |
169 gint max_h; | |
170 | |
171 ThumbLoaderFunc func_done; | |
172 ThumbLoaderFunc func_error; | |
173 ThumbLoaderFunc func_progress; | |
174 | |
175 gpointer data; | |
176 | |
177 gint idle_done_id; | |
178 }; | |
179 | |
180 struct _CollectInfo | |
181 { | |
138 | 182 FileData *fd; |
9 | 183 GdkPixbuf *pixbuf; |
184 gint flag_mask; | |
185 }; | |
186 | |
187 struct _CollectionData | |
188 { | |
189 gchar *path; | |
190 gchar *name; | |
191 GList *list; | |
192 SortType sort_method; | |
193 | |
194 ThumbLoader *thumb_loader; | |
195 CollectInfo *thumb_info; | |
196 | |
197 void (*info_updated_func)(CollectionData *, CollectInfo *, gpointer); | |
198 gpointer info_updated_data; | |
199 | |
200 gint ref; | |
201 | |
202 /* geometry */ | |
203 gint window_read; | |
204 gint window_x; | |
205 gint window_y; | |
206 gint window_w; | |
207 gint window_h; | |
208 | |
209 /* contents changed since save flag */ | |
210 gint changed; | |
211 }; | |
212 | |
213 struct _CollectTable | |
214 { | |
215 GtkWidget *scrolled; | |
216 GtkWidget *listview; | |
217 gint columns; | |
218 gint rows; | |
219 | |
220 CollectionData *cd; | |
221 | |
222 GList *selection; | |
223 CollectInfo *prev_selection; | |
224 | |
225 CollectInfo *click_info; | |
226 | |
227 GtkWidget *tip_window; | |
228 gint tip_delay_id; | |
229 CollectInfo *tip_info; | |
230 | |
231 GdkWindow *marker_window; | |
232 CollectInfo *marker_info; | |
233 | |
234 GtkWidget *status_label; | |
235 GtkWidget *extra_label; | |
236 | |
237 gint focus_row; | |
238 gint focus_column; | |
239 CollectInfo *focus_info; | |
240 | |
241 GtkWidget *popup; | |
242 CollectInfo *drop_info; | |
243 GList *drop_list; | |
244 | |
245 gint sync_idle_id; | |
246 gint drop_idle_id; | |
247 | |
248 gint show_text; | |
249 }; | |
250 | |
251 struct _CollectWindow | |
252 { | |
253 GtkWidget *window; | |
254 CollectTable *table; | |
255 GtkWidget *status_box; | |
256 GList *list; | |
257 | |
258 GtkWidget *close_dialog; | |
259 | |
260 CollectionData *cd; | |
261 }; | |
262 | |
12
147f4c4b9025
##### Note: GQview CVS on sourceforge is not always up to date, please use #####
gqview
parents:
9
diff
changeset
|
263 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
|
264 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
|
265 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
|
266 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
|
267 |
9 | 268 struct _ImageWindow |
269 { | |
270 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
|
271 GtkWidget *pr; |
17acca639a86
##### Note: GQview CVS on sourceforge is not always up to date, please use #####
gqview
parents:
14
diff
changeset
|
272 GtkWidget *frame; |
9 | 273 |
138 | 274 FileData *image_fd; |
9 | 275 |
276 gint64 size; /* file size (bytes) */ | |
277 time_t mtime; /* file modified time stamp */ | |
278 gint unknown; /* failed to load image */ | |
279 | |
280 ImageLoader *il; | |
281 | |
282 gint has_frame; | |
283 | |
284 /* 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
|
285 gint top_window_sync; /* resize top_window when image dimensions change */ |
9 | 286 GtkWidget *top_window; /* window that gets title, and window to resize when 'fitting' */ |
287 gchar *title; /* window title to display left of file name */ | |
288 gchar *title_right; /* window title to display right of file name */ | |
289 gint title_show_zoom; /* option to include zoom in window title */ | |
290 | |
291 gint completed; | |
113
55166d93498d
Fri Nov 24 21:37:01 2006 John Ellis <johne@verizon.net>
gqview
parents:
82
diff
changeset
|
292 ImageState state; /* mask of IMAGE_STATE_* flags about current image */ |
9 | 293 |
117
0c2e1f0a001b
Wed Nov 29 14:28:30 2006 John Ellis <johne@verizon.net>
gqview
parents:
115
diff
changeset
|
294 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
|
295 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
|
296 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
|
297 ImageTileRequestFunc func_tile_request; |
147f4c4b9025
##### Note: GQview CVS on sourceforge is not always up to date, please use #####
gqview
parents:
9
diff
changeset
|
298 ImageTileDisposeFunc func_tile_dispose; |
9 | 299 |
300 gpointer data_update; | |
301 gpointer data_complete; | |
117
0c2e1f0a001b
Wed Nov 29 14:28:30 2006 John Ellis <johne@verizon.net>
gqview
parents:
115
diff
changeset
|
302 gpointer data_state; |
12
147f4c4b9025
##### Note: GQview CVS on sourceforge is not always up to date, please use #####
gqview
parents:
9
diff
changeset
|
303 gpointer data_tile; |
9 | 304 |
305 /* button, scroll functions */ | |
306 void (*func_button)(ImageWindow *, gint button, | |
307 guint32 time, gdouble x, gdouble y, guint state, gpointer); | |
128
98e2632b5d3d
improved connected scroll and active image switching
nadvornik
parents:
127
diff
changeset
|
308 void (*func_drag)(ImageWindow *, gint button, |
98e2632b5d3d
improved connected scroll and active image switching
nadvornik
parents:
127
diff
changeset
|
309 guint32 time, gdouble x, gdouble y, guint state, gdouble dx, gdouble dy,gpointer); |
9 | 310 void (*func_scroll)(ImageWindow *, GdkScrollDirection direction, |
311 guint32 time, gdouble x, gdouble y, guint state, gpointer); | |
312 | |
313 gpointer data_button; | |
128
98e2632b5d3d
improved connected scroll and active image switching
nadvornik
parents:
127
diff
changeset
|
314 gpointer data_drag; |
9 | 315 gpointer data_scroll; |
316 | |
12
147f4c4b9025
##### Note: GQview CVS on sourceforge is not always up to date, please use #####
gqview
parents:
9
diff
changeset
|
317 /* 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
|
318 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
|
319 |
147f4c4b9025
##### Note: GQview CVS on sourceforge is not always up to date, please use #####
gqview
parents:
9
diff
changeset
|
320 gpointer data_scroll_notify; |
147f4c4b9025
##### Note: GQview CVS on sourceforge is not always up to date, please use #####
gqview
parents:
9
diff
changeset
|
321 |
9 | 322 /* collection info */ |
323 CollectionData *collection; | |
324 CollectInfo *collection_info; | |
325 | |
113
55166d93498d
Fri Nov 24 21:37:01 2006 John Ellis <johne@verizon.net>
gqview
parents:
82
diff
changeset
|
326 /* color profiles */ |
55166d93498d
Fri Nov 24 21:37:01 2006 John Ellis <johne@verizon.net>
gqview
parents:
82
diff
changeset
|
327 gint color_profile_enable; |
55166d93498d
Fri Nov 24 21:37:01 2006 John Ellis <johne@verizon.net>
gqview
parents:
82
diff
changeset
|
328 gint color_profile_input; |
55166d93498d
Fri Nov 24 21:37:01 2006 John Ellis <johne@verizon.net>
gqview
parents:
82
diff
changeset
|
329 gint color_profile_screen; |
55166d93498d
Fri Nov 24 21:37:01 2006 John Ellis <johne@verizon.net>
gqview
parents:
82
diff
changeset
|
330 gint color_profile_use_image; |
115
53b2bfdcff69
Tue Nov 28 11:54:30 2006 John Ellis <johne@verizon.net>
gqview
parents:
113
diff
changeset
|
331 gpointer cm; |
113
55166d93498d
Fri Nov 24 21:37:01 2006 John Ellis <johne@verizon.net>
gqview
parents:
82
diff
changeset
|
332 |
9 | 333 AlterType delay_alter_type; |
334 | |
335 ImageLoader *read_ahead_il; | |
336 GdkPixbuf *read_ahead_pixbuf; | |
138 | 337 FileData *read_ahead_fd; |
9 | 338 |
339 GdkPixbuf *prev_pixbuf; | |
138 | 340 FileData *prev_fd; |
113
55166d93498d
Fri Nov 24 21:37:01 2006 John Ellis <johne@verizon.net>
gqview
parents:
82
diff
changeset
|
341 gint prev_color_row; |
9 | 342 |
343 gint auto_refresh_id; | |
344 gint auto_refresh_interval; | |
345 | |
346 gint delay_flip; | |
347 }; | |
348 | |
149 | 349 #define FILEDATA_MARKS_SIZE 6 |
132 | 350 |
138 | 351 struct _FileDataChangeInfo { |
143
0d1bf3ac6cd8
improved FileDataChangeInfo structure, check for another file operation in progress
nadvornik
parents:
141
diff
changeset
|
352 FileDataChangeType type; |
138 | 353 gchar *source; |
354 gchar *dest; | |
355 }; | |
137
be3328a58875
started support for sidecar files like xmp, raw+jpeg etc.
nadvornik
parents:
134
diff
changeset
|
356 |
be3328a58875
started support for sidecar files like xmp, raw+jpeg etc.
nadvornik
parents:
134
diff
changeset
|
357 struct _FileData { |
138 | 358 gint magick; |
137
be3328a58875
started support for sidecar files like xmp, raw+jpeg etc.
nadvornik
parents:
134
diff
changeset
|
359 gint type; |
138 | 360 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
|
361 gchar *path; |
be3328a58875
started support for sidecar files like xmp, raw+jpeg etc.
nadvornik
parents:
134
diff
changeset
|
362 const gchar *name; |
be3328a58875
started support for sidecar files like xmp, raw+jpeg etc.
nadvornik
parents:
134
diff
changeset
|
363 const gchar *extension; |
be3328a58875
started support for sidecar files like xmp, raw+jpeg etc.
nadvornik
parents:
134
diff
changeset
|
364 gint64 size; |
be3328a58875
started support for sidecar files like xmp, raw+jpeg etc.
nadvornik
parents:
134
diff
changeset
|
365 time_t date; |
be3328a58875
started support for sidecar files like xmp, raw+jpeg etc.
nadvornik
parents:
134
diff
changeset
|
366 gboolean marks[FILEDATA_MARKS_SIZE]; |
be3328a58875
started support for sidecar files like xmp, raw+jpeg etc.
nadvornik
parents:
134
diff
changeset
|
367 GList *sidecar_files; |
141 | 368 FileData *parent; /* parent file if this is a sidecar file, NULL otherwise */ |
138 | 369 FileDataChangeInfo *change; /* for rename, move ... */ |
9 | 370 GdkPixbuf *pixbuf; |
138 | 371 gint ref; |
9 | 372 }; |
373 | |
374 struct _LayoutWindow | |
375 { | |
376 gchar *path; | |
377 | |
378 /* base */ | |
379 | |
380 GtkWidget *window; | |
381 | |
382 GtkWidget *main_box; | |
383 | |
384 GtkWidget *group_box; | |
385 GtkWidget *h_pane; | |
386 GtkWidget *v_pane; | |
387 | |
388 /* menus, path selector */ | |
389 | |
390 GtkActionGroup *action_group; | |
391 GtkUIManager *ui_manager; | |
392 | |
393 GtkWidget *path_entry; | |
394 | |
395 /* image */ | |
396 | |
397 LayoutLocation image_location; | |
398 | |
399 ImageWindow *image; | |
400 | |
127 | 401 ImageWindow *split_images[MAX_SPLIT_IMAGES]; |
402 ImageSplitMode split_mode; | |
403 gint active_split_image; | |
404 | |
405 GtkWidget *split_image_widget; | |
406 | |
407 gint connect_zoom, connect_scroll; | |
408 | |
9 | 409 /* tools window (float) */ |
410 | |
411 GtkWidget *tools; | |
412 GtkWidget *tools_pane; | |
413 | |
414 gint tools_float; | |
415 gint tools_hidden; | |
416 | |
417 /* toolbar */ | |
418 | |
419 GtkWidget *toolbar; | |
420 gint toolbar_hidden; | |
421 | |
422 GtkWidget *thumb_button; | |
423 gint thumbs_enabled; | |
137
be3328a58875
started support for sidecar files like xmp, raw+jpeg etc.
nadvornik
parents:
134
diff
changeset
|
424 gint marks_enabled; |
132 | 425 |
9 | 426 /* dir view */ |
427 | |
428 LayoutLocation dir_location; | |
429 | |
430 ViewDirList *vdl; | |
431 ViewDirTree *vdt; | |
432 GtkWidget *dir_view; | |
433 | |
434 gint tree_view; | |
435 | |
436 /* file view */ | |
437 | |
438 LayoutLocation file_location; | |
439 | |
440 ViewFileList *vfl; | |
441 ViewFileIcon *vfi; | |
442 GtkWidget *file_view; | |
443 | |
444 gint icon_view; | |
445 SortType sort_method; | |
446 gint sort_ascend; | |
447 | |
448 /* status bar */ | |
449 | |
450 GtkWidget *info_box; | |
451 GtkWidget *info_progress_bar; | |
452 GtkWidget *info_sort; | |
113
55166d93498d
Fri Nov 24 21:37:01 2006 John Ellis <johne@verizon.net>
gqview
parents:
82
diff
changeset
|
453 GtkWidget *info_color; |
9 | 454 GtkWidget *info_status; |
455 GtkWidget *info_details; | |
456 GtkWidget *info_zoom; | |
457 | |
458 /* slide show */ | |
459 | |
460 SlideShowData *slideshow; | |
461 | |
462 /* full screen */ | |
463 | |
464 FullScreenData *full_screen; | |
465 | |
466 /* dividers */ | |
467 | |
468 gint div_h; | |
469 gint div_v; | |
470 gint div_float; | |
471 | |
472 /* directory update check */ | |
473 | |
474 gint last_time_id; | |
475 time_t last_time; | |
476 | |
477 /* misc */ | |
478 | |
479 GtkWidget *utility_box; | |
480 GtkWidget *bar_sort; | |
481 GtkWidget *bar_exif; | |
482 GtkWidget *bar_info; | |
483 | |
484 gint bar_sort_enabled; | |
485 gint bar_exif_enabled; | |
486 gint bar_info_enabled; | |
487 | |
488 gint bar_exif_size; | |
489 gint bar_exif_advanced; | |
490 }; | |
491 | |
492 struct _ViewDirList | |
493 { | |
494 GtkWidget *widget; | |
495 GtkWidget *listview; | |
496 | |
497 gchar *path; | |
498 GList *list; | |
499 | |
500 FileData *click_fd; | |
501 | |
502 FileData *drop_fd; | |
503 GList *drop_list; | |
504 | |
505 gint drop_scroll_id; | |
506 | |
507 /* func list */ | |
508 void (*select_func)(ViewDirList *vdl, const gchar *path, gpointer data); | |
509 gpointer select_data; | |
510 | |
511 LayoutWindow *layout; | |
512 | |
513 GtkWidget *popup; | |
514 | |
515 PixmapFolders *pf; | |
516 }; | |
517 | |
518 struct _ViewDirTree | |
519 { | |
520 GtkWidget *widget; | |
521 GtkWidget *treeview; | |
522 | |
523 gchar *path; | |
524 | |
525 FileData *click_fd; | |
526 | |
527 FileData *drop_fd; | |
528 GList *drop_list; | |
529 | |
530 gint drop_scroll_id; | |
531 gint drop_expand_id; | |
532 | |
533 /* func list */ | |
534 void (*select_func)(ViewDirTree *vdt, const gchar *path, gpointer data); | |
535 gpointer select_data; | |
536 | |
537 LayoutWindow *layout; | |
538 | |
539 GtkWidget *popup; | |
540 | |
541 PixmapFolders *pf; | |
542 | |
543 gint busy_ref; | |
544 }; | |
545 | |
546 struct _ViewFileList | |
547 { | |
548 GtkWidget *widget; | |
549 GtkWidget *listview; | |
550 | |
551 gchar *path; | |
552 GList *list; | |
553 | |
554 SortType sort_method; | |
555 gint sort_ascend; | |
556 | |
557 FileData *click_fd; | |
558 FileData *select_fd; | |
559 | |
560 gint thumbs_enabled; | |
138 | 561 gint marks_enabled; |
150 | 562 gint active_mark; |
132 | 563 |
9 | 564 /* thumb updates */ |
565 gint thumbs_running; | |
566 gint thumbs_count; | |
567 ThumbLoader *thumbs_loader; | |
568 FileData *thumbs_filedata; | |
569 | |
570 /* func list */ | |
571 void (*func_thumb_status)(ViewFileList *vfl, gdouble val, const gchar *text, gpointer data); | |
572 gpointer data_thumb_status; | |
573 | |
574 void (*func_status)(ViewFileList *vfl, gpointer data); | |
575 gpointer data_status; | |
576 | |
577 gint select_idle_id; | |
578 LayoutWindow *layout; | |
579 | |
580 GtkWidget *popup; | |
581 }; | |
582 | |
138 | 583 struct _IconData; |
584 | |
9 | 585 struct _ViewFileIcon |
586 { | |
587 GtkWidget *widget; | |
588 GtkWidget *listview; | |
589 | |
590 gchar *path; | |
591 GList *list; | |
592 | |
593 /* table stuff */ | |
594 | |
595 gint columns; | |
596 gint rows; | |
597 | |
598 GList *selection; | |
138 | 599 struct _IconData *prev_selection; |
9 | 600 |
601 GtkWidget *tip_window; | |
602 gint tip_delay_id; | |
138 | 603 struct _IconData *tip_id; |
9 | 604 |
138 | 605 struct _IconData *click_id; |
9 | 606 |
138 | 607 struct _IconData *focus_id; |
9 | 608 gint focus_row; |
609 gint focus_column; | |
610 | |
611 SortType sort_method; | |
612 gint sort_ascend; | |
613 | |
614 gint show_text; | |
615 | |
616 gint sync_idle_id; | |
617 | |
618 /* thumbs */ | |
619 | |
620 gint thumbs_running; | |
621 GList *thumbs_list; | |
622 gint thumbs_count; | |
623 ThumbLoader *thumbs_loader; | |
624 FileData *thumbs_fd; | |
625 | |
626 /* func list */ | |
627 void (*func_thumb_status)(ViewFileIcon *vfi, gdouble val, const gchar *text, gpointer data); | |
628 gpointer data_thumb_status; | |
629 | |
630 void (*func_status)(ViewFileIcon *vfi, gpointer data); | |
631 gpointer data_status; | |
632 | |
633 LayoutWindow *layout; | |
634 | |
635 GtkWidget *popup; | |
636 }; | |
637 | |
638 struct _SlideShowData | |
639 { | |
640 ImageWindow *imd; | |
641 | |
138 | 642 GList *filelist; |
9 | 643 CollectionData *cd; |
644 gchar *layout_path; | |
645 LayoutWindow *layout; | |
646 | |
647 GList *list; | |
648 GList *list_done; | |
649 | |
138 | 650 FileData *slide_fd; |
9 | 651 |
652 gint slide_count; | |
653 gint timeout_id; | |
654 | |
655 gint from_selection; | |
656 | |
657 void (*stop_func)(SlideShowData *, gpointer); | |
658 gpointer stop_data; | |
659 | |
660 gint paused; | |
661 }; | |
662 | |
663 struct _FullScreenData | |
664 { | |
665 GtkWidget *window; | |
666 ImageWindow *imd; | |
667 | |
668 GtkWidget *normal_window; | |
669 ImageWindow *normal_imd; | |
670 | |
671 gint hide_mouse_id; | |
672 gint busy_mouse_id; | |
673 gint cursor_state; | |
674 | |
675 gint saver_block_id; | |
676 | |
677 void (*stop_func)(FullScreenData *, gpointer); | |
678 gpointer stop_data; | |
679 }; | |
680 | |
681 struct _PixmapFolders | |
682 { | |
683 GdkPixbuf *close; | |
684 GdkPixbuf *open; | |
685 GdkPixbuf *deny; | |
686 GdkPixbuf *parent; | |
687 }; | |
688 | |
689 | |
690 #endif | |
691 | |
692 |