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