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