Mercurial > geeqie.yaz
annotate src/options.h @ 865:8d0c91a0f461
do not read keywords and comment between exif_read_fd and exif_free_fd
calls (fd->exif does not have reference counting)
author | nadvornik |
---|---|
date | Fri, 27 Jun 2008 21:35:21 +0000 |
parents | 171dd6e53656 |
children | 3dd2cb78d0f9 |
rev | line source |
---|---|
508 | 1 /* |
2 * Geeqie | |
3 * Copyright (C) 2008 The Geeqie Team | |
4 * | |
5 * Authors: Vladimir Nadvornik, Laurent Monin | |
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 #ifndef OPTIONS_H | |
13 #define OPTIONS_H | |
14 | |
15 typedef struct _ConfOptions ConfOptions; | |
16 | |
17 struct _ConfOptions | |
18 { | |
19 | |
20 /* ui */ | |
21 gint progressive_key_scrolling; | |
22 gint place_dialogs_under_mouse; | |
736 | 23 gboolean mousewheel_scrolls; |
508 | 24 gint show_icon_names; |
25 gint show_copy_path; | |
26 | |
27 /* various */ | |
28 gint enable_metadata_dirs; | |
29 | |
30 gint tree_descend_subdirs; | |
31 | |
32 gint lazy_image_sync; | |
33 gint update_on_time_change; | |
34 | |
35 gint duplicates_similarity_threshold; | |
36 | |
37 gint open_recent_list_maxsize; | |
38 gint dnd_icon_size; | |
39 | |
594
4cfce4ed35e0
Use a dedicated option to enable keywords and comment saving as XMP tags
zas_
parents:
556
diff
changeset
|
40 gint save_metadata_in_image_file; |
4cfce4ed35e0
Use a dedicated option to enable keywords and comment saving as XMP tags
zas_
parents:
556
diff
changeset
|
41 |
629 | 42 struct { |
43 gboolean restore_path; | |
630
83d3ded39e49
An option to save and restore the last path used was added.
zas_
parents:
629
diff
changeset
|
44 gboolean use_last_path; |
629 | 45 gchar *path; |
46 } startup; | |
47 | |
508 | 48 /* file ops */ |
49 struct { | |
50 gint enable_in_place_rename; | |
51 | |
52 gint confirm_delete; | |
53 gint enable_delete_key; | |
54 gint safe_delete_enable; | |
55 gchar *safe_delete_path; | |
56 gint safe_delete_folder_maxsize; | |
57 } file_ops; | |
58 | |
59 /* image */ | |
60 struct { | |
858 | 61 gboolean exif_rotate_enable; |
62 guint scroll_reset_method; | |
63 gboolean fit_window_to_image; | |
64 gboolean limit_window_size; | |
508 | 65 gint max_window_size; |
858 | 66 gboolean limit_autofit_size; |
508 | 67 gint max_autofit_size; |
68 | |
69 gint tile_cache_max; /* in megabytes */ | |
848 | 70 gint image_cache_max; /* in megabytes */ |
508 | 71 gint dither_quality; |
858 | 72 gboolean enable_read_ahead; |
508 | 73 |
74 gint zoom_mode; | |
858 | 75 gboolean zoom_2pass; |
76 gboolean zoom_to_fit_allow_expand; | |
508 | 77 gint zoom_quality; |
78 gint zoom_increment; /* 10 is 1.0, 5 is 0.05, 20 is 2.0, etc. */ | |
79 | |
80 gint use_custom_border_color; | |
81 GdkColor border_color; | |
82 | |
83 gint read_buffer_size; /* bytes to read from file per read() */ | |
84 gint idle_read_loop_count; /* the number of bytes to read per idle call (define x image.read_buffer_size) */ | |
85 } image; | |
86 | |
87 /* thumbnails */ | |
88 struct { | |
89 gint max_width; | |
90 gint max_height; | |
91 gint enable_caching; | |
92 gint cache_into_dirs; | |
93 gint fast; | |
94 gint use_xvpics; | |
95 gint spec_standard; | |
96 gint quality; | |
97 } thumbnails; | |
98 | |
99 /* file filtering */ | |
100 struct { | |
101 gint show_hidden_files; | |
102 gint show_dot_directory; | |
103 gint disable; | |
104 } file_filter; | |
105 | |
106 /* collections */ | |
107 struct { | |
108 gint rectangular_selection; | |
109 } collections; | |
110 | |
111 /* editors */ | |
730 | 112 Editor editor[GQ_EDITOR_SLOTS]; |
508 | 113 |
737
8a8873e7a552
Make shell command and its option rc file options instead of hardcoded strings.
zas_
parents:
736
diff
changeset
|
114 /* shell */ |
8a8873e7a552
Make shell command and its option rc file options instead of hardcoded strings.
zas_
parents:
736
diff
changeset
|
115 struct { |
8a8873e7a552
Make shell command and its option rc file options instead of hardcoded strings.
zas_
parents:
736
diff
changeset
|
116 gchar *path; |
8a8873e7a552
Make shell command and its option rc file options instead of hardcoded strings.
zas_
parents:
736
diff
changeset
|
117 gchar *options; |
8a8873e7a552
Make shell command and its option rc file options instead of hardcoded strings.
zas_
parents:
736
diff
changeset
|
118 } shell; |
8a8873e7a552
Make shell command and its option rc file options instead of hardcoded strings.
zas_
parents:
736
diff
changeset
|
119 |
508 | 120 /* file sorting */ |
121 struct { | |
122 SortType method; | |
123 gint ascending; | |
124 gint case_sensitive; /* file sorting method (case) */ | |
125 } file_sort; | |
126 | |
127 /* slideshow */ | |
128 struct { | |
129 gint delay; /* in tenths of a second */ | |
130 gint random; | |
131 gint repeat; | |
132 } slideshow; | |
133 | |
134 /* fullscreen */ | |
135 struct { | |
136 gint screen; | |
137 gint clean_flip; | |
138 gint disable_saver; | |
139 gint above; | |
140 } fullscreen; | |
141 | |
612 | 142 /* histogram */ |
143 struct { | |
144 guint last_channel_mode; | |
145 guint last_log_mode; | |
146 } histogram; | |
147 | |
508 | 148 /* image overlay */ |
149 struct { | |
150 struct { | |
638
8cc9f349c670
Rename option image_overlay.common.enabled to image_overlay.common.state
zas_
parents:
630
diff
changeset
|
151 guint state; |
508 | 152 gint show_at_startup; |
153 gchar *template_string; | |
822
df541dc41707
Allow to set image overlay info position through options:
zas_
parents:
764
diff
changeset
|
154 gint x; |
df541dc41707
Allow to set image overlay info position through options:
zas_
parents:
764
diff
changeset
|
155 gint y; |
508 | 156 } common; |
157 } image_overlay; | |
158 | |
159 /* layout */ | |
160 struct { | |
161 gchar *order; | |
162 gint style; | |
163 | |
164 DirViewType dir_view_type; | |
556
fe675761d091
Replace Layout icon_view field by more generic file_view_type.
zas_
parents:
508
diff
changeset
|
165 FileViewType file_view_type; |
508 | 166 |
167 gint show_thumbnails; | |
168 gint show_marks; | |
825 | 169 gboolean show_directory_date; |
508 | 170 |
171 struct { | |
172 gint w; | |
173 gint h; | |
174 gint x; | |
175 gint y; | |
176 gint maximized; | |
177 gint hdivider_pos; | |
178 gint vdivider_pos; | |
179 } main_window; | |
180 | |
181 struct { | |
182 gint w; | |
183 gint h; | |
184 gint x; | |
185 gint y; | |
186 gint vdivider_pos; | |
187 } float_window; | |
188 | |
764
ae618ebec3e9
Save properties window width and height to rc file and restore
zas_
parents:
740
diff
changeset
|
189 struct { |
ae618ebec3e9
Save properties window width and height to rc file and restore
zas_
parents:
740
diff
changeset
|
190 gint w; |
ae618ebec3e9
Save properties window width and height to rc file and restore
zas_
parents:
740
diff
changeset
|
191 gint h; |
ae618ebec3e9
Save properties window width and height to rc file and restore
zas_
parents:
740
diff
changeset
|
192 } properties_window; |
ae618ebec3e9
Save properties window width and height to rc file and restore
zas_
parents:
740
diff
changeset
|
193 |
508 | 194 gint save_window_positions; |
195 | |
196 gint tools_float; | |
197 gint tools_hidden; | |
198 gint tools_restore_state; | |
199 | |
200 gint toolbar_hidden; | |
201 | |
202 } layout; | |
203 | |
204 /* panels */ | |
205 struct { | |
206 struct { | |
207 gint enabled; | |
208 gint width; | |
209 } info; | |
210 | |
211 struct { | |
212 gint enabled; | |
213 gint width; | |
214 } exif; | |
215 | |
216 struct { | |
217 gint enabled; | |
218 gint mode_state; | |
219 gint action_state; | |
220 gint selection_state; | |
221 } sort; | |
222 } panels; | |
223 | |
684 | 224 /* properties dialog */ |
225 struct { | |
226 gchar *tabs_order; | |
227 } properties; | |
508 | 228 |
229 /* color profiles */ | |
230 struct { | |
231 gint enabled; | |
232 gint input_type; | |
233 gchar *input_file[COLOR_PROFILE_INPUTS]; | |
234 gchar *input_name[COLOR_PROFILE_INPUTS]; | |
235 gint screen_type; | |
236 gchar *screen_file; | |
237 gint use_image; | |
238 | |
239 } color_profile; | |
240 | |
241 }; | |
242 | |
243 ConfOptions *options; | |
244 | |
245 ConfOptions *init_options(ConfOptions *options); | |
740
9b0ac8d58c89
Move setup_default_options() and sync_options_with_current_state() to options.[ch].
zas_
parents:
737
diff
changeset
|
246 void setup_default_options(ConfOptions *options); |
9b0ac8d58c89
Move setup_default_options() and sync_options_with_current_state() to options.[ch].
zas_
parents:
737
diff
changeset
|
247 void sync_options_with_current_state(ConfOptions *options); |
508 | 248 |
249 #endif /* OPTIONS_H */ |