Mercurial > geeqie
annotate src/options.h @ 1101:83cf0c9e300f
Re-introduce Geeqie User Manual footer.
author | zas_ |
---|---|
date | Sat, 08 Nov 2008 22:11:51 +0000 |
parents | 1e2de04c6fc4 |
children | c45cc5cf3c4d |
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 /* ui */ | |
870
3dd2cb78d0f9
Make better matching between options types in options.h and the rest of the code.
zas_
parents:
858
diff
changeset
|
20 gboolean progressive_key_scrolling; |
3dd2cb78d0f9
Make better matching between options types in options.h and the rest of the code.
zas_
parents:
858
diff
changeset
|
21 gboolean place_dialogs_under_mouse; |
736 | 22 gboolean mousewheel_scrolls; |
870
3dd2cb78d0f9
Make better matching between options types in options.h and the rest of the code.
zas_
parents:
858
diff
changeset
|
23 gboolean show_icon_names; |
3dd2cb78d0f9
Make better matching between options types in options.h and the rest of the code.
zas_
parents:
858
diff
changeset
|
24 gboolean show_copy_path; |
508 | 25 |
26 /* various */ | |
870
3dd2cb78d0f9
Make better matching between options types in options.h and the rest of the code.
zas_
parents:
858
diff
changeset
|
27 gboolean enable_metadata_dirs; |
508 | 28 |
870
3dd2cb78d0f9
Make better matching between options types in options.h and the rest of the code.
zas_
parents:
858
diff
changeset
|
29 gboolean tree_descend_subdirs; |
508 | 30 |
870
3dd2cb78d0f9
Make better matching between options types in options.h and the rest of the code.
zas_
parents:
858
diff
changeset
|
31 gboolean lazy_image_sync; |
3dd2cb78d0f9
Make better matching between options types in options.h and the rest of the code.
zas_
parents:
858
diff
changeset
|
32 gboolean update_on_time_change; |
508 | 33 |
870
3dd2cb78d0f9
Make better matching between options types in options.h and the rest of the code.
zas_
parents:
858
diff
changeset
|
34 guint duplicates_similarity_threshold; |
508 | 35 |
36 gint open_recent_list_maxsize; | |
37 gint dnd_icon_size; | |
38 | |
870
3dd2cb78d0f9
Make better matching between options types in options.h and the rest of the code.
zas_
parents:
858
diff
changeset
|
39 gboolean save_metadata_in_image_file; |
594
4cfce4ed35e0
Use a dedicated option to enable keywords and comment saving as XMP tags
zas_
parents:
556
diff
changeset
|
40 |
884
ff16ed0d2c8a
Improve ways to specify html browser (used for help, see bug 2015099).
zas_
parents:
870
diff
changeset
|
41 /* start up */ |
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 { | |
870
3dd2cb78d0f9
Make better matching between options types in options.h and the rest of the code.
zas_
parents:
858
diff
changeset
|
50 gboolean enable_in_place_rename; |
508 | 51 |
870
3dd2cb78d0f9
Make better matching between options types in options.h and the rest of the code.
zas_
parents:
858
diff
changeset
|
52 gboolean confirm_delete; |
3dd2cb78d0f9
Make better matching between options types in options.h and the rest of the code.
zas_
parents:
858
diff
changeset
|
53 gboolean enable_delete_key; |
3dd2cb78d0f9
Make better matching between options types in options.h and the rest of the code.
zas_
parents:
858
diff
changeset
|
54 gboolean safe_delete_enable; |
508 | 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 */ |
870
3dd2cb78d0f9
Make better matching between options types in options.h and the rest of the code.
zas_
parents:
858
diff
changeset
|
71 guint dither_quality; |
858 | 72 gboolean enable_read_ahead; |
508 | 73 |
885
ad420f2eb789
Use a specific enum for image.zoom_mode values (ZoomMode) and
zas_
parents:
884
diff
changeset
|
74 ZoomMode zoom_mode; |
858 | 75 gboolean zoom_2pass; |
76 gboolean zoom_to_fit_allow_expand; | |
870
3dd2cb78d0f9
Make better matching between options types in options.h and the rest of the code.
zas_
parents:
858
diff
changeset
|
77 guint zoom_quality; |
508 | 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; | |
870
3dd2cb78d0f9
Make better matching between options types in options.h and the rest of the code.
zas_
parents:
858
diff
changeset
|
91 gboolean enable_caching; |
3dd2cb78d0f9
Make better matching between options types in options.h and the rest of the code.
zas_
parents:
858
diff
changeset
|
92 gboolean cache_into_dirs; |
3dd2cb78d0f9
Make better matching between options types in options.h and the rest of the code.
zas_
parents:
858
diff
changeset
|
93 gboolean fast; |
3dd2cb78d0f9
Make better matching between options types in options.h and the rest of the code.
zas_
parents:
858
diff
changeset
|
94 gboolean use_xvpics; |
3dd2cb78d0f9
Make better matching between options types in options.h and the rest of the code.
zas_
parents:
858
diff
changeset
|
95 gboolean spec_standard; |
3dd2cb78d0f9
Make better matching between options types in options.h and the rest of the code.
zas_
parents:
858
diff
changeset
|
96 guint quality; |
1060 | 97 gboolean use_exif; |
508 | 98 } thumbnails; |
99 | |
100 /* file filtering */ | |
101 struct { | |
870
3dd2cb78d0f9
Make better matching between options types in options.h and the rest of the code.
zas_
parents:
858
diff
changeset
|
102 gboolean show_hidden_files; |
3dd2cb78d0f9
Make better matching between options types in options.h and the rest of the code.
zas_
parents:
858
diff
changeset
|
103 gboolean show_dot_directory; |
3dd2cb78d0f9
Make better matching between options types in options.h and the rest of the code.
zas_
parents:
858
diff
changeset
|
104 gboolean disable; |
508 | 105 } file_filter; |
106 | |
107 /* collections */ | |
108 struct { | |
870
3dd2cb78d0f9
Make better matching between options types in options.h and the rest of the code.
zas_
parents:
858
diff
changeset
|
109 gboolean rectangular_selection; |
508 | 110 } collections; |
111 | |
112 /* editors */ | |
730 | 113 Editor editor[GQ_EDITOR_SLOTS]; |
508 | 114 |
737
8a8873e7a552
Make shell command and its option rc file options instead of hardcoded strings.
zas_
parents:
736
diff
changeset
|
115 /* shell */ |
8a8873e7a552
Make shell command and its option rc file options instead of hardcoded strings.
zas_
parents:
736
diff
changeset
|
116 struct { |
8a8873e7a552
Make shell command and its option rc file options instead of hardcoded strings.
zas_
parents:
736
diff
changeset
|
117 gchar *path; |
8a8873e7a552
Make shell command and its option rc file options instead of hardcoded strings.
zas_
parents:
736
diff
changeset
|
118 gchar *options; |
8a8873e7a552
Make shell command and its option rc file options instead of hardcoded strings.
zas_
parents:
736
diff
changeset
|
119 } shell; |
8a8873e7a552
Make shell command and its option rc file options instead of hardcoded strings.
zas_
parents:
736
diff
changeset
|
120 |
508 | 121 /* file sorting */ |
122 struct { | |
123 SortType method; | |
870
3dd2cb78d0f9
Make better matching between options types in options.h and the rest of the code.
zas_
parents:
858
diff
changeset
|
124 gboolean ascending; |
3dd2cb78d0f9
Make better matching between options types in options.h and the rest of the code.
zas_
parents:
858
diff
changeset
|
125 gboolean case_sensitive; /* file sorting method (case) */ |
508 | 126 } file_sort; |
127 | |
128 /* slideshow */ | |
129 struct { | |
130 gint delay; /* in tenths of a second */ | |
870
3dd2cb78d0f9
Make better matching between options types in options.h and the rest of the code.
zas_
parents:
858
diff
changeset
|
131 gboolean random; |
3dd2cb78d0f9
Make better matching between options types in options.h and the rest of the code.
zas_
parents:
858
diff
changeset
|
132 gboolean repeat; |
508 | 133 } slideshow; |
134 | |
135 /* fullscreen */ | |
136 struct { | |
137 gint screen; | |
870
3dd2cb78d0f9
Make better matching between options types in options.h and the rest of the code.
zas_
parents:
858
diff
changeset
|
138 gboolean clean_flip; |
3dd2cb78d0f9
Make better matching between options types in options.h and the rest of the code.
zas_
parents:
858
diff
changeset
|
139 gboolean disable_saver; |
3dd2cb78d0f9
Make better matching between options types in options.h and the rest of the code.
zas_
parents:
858
diff
changeset
|
140 gboolean above; |
508 | 141 } fullscreen; |
142 | |
612 | 143 /* histogram */ |
144 struct { | |
145 guint last_channel_mode; | |
146 guint last_log_mode; | |
147 } histogram; | |
148 | |
508 | 149 /* image overlay */ |
150 struct { | |
151 struct { | |
638
8cc9f349c670
Rename option image_overlay.common.enabled to image_overlay.common.state
zas_
parents:
630
diff
changeset
|
152 guint state; |
870
3dd2cb78d0f9
Make better matching between options types in options.h and the rest of the code.
zas_
parents:
858
diff
changeset
|
153 gboolean show_at_startup; |
508 | 154 gchar *template_string; |
822
df541dc41707
Allow to set image overlay info position through options:
zas_
parents:
764
diff
changeset
|
155 gint x; |
df541dc41707
Allow to set image overlay info position through options:
zas_
parents:
764
diff
changeset
|
156 gint y; |
508 | 157 } common; |
158 } image_overlay; | |
159 | |
160 /* layout */ | |
161 struct { | |
162 gchar *order; | |
163 gint style; | |
164 | |
165 DirViewType dir_view_type; | |
556
fe675761d091
Replace Layout icon_view field by more generic file_view_type.
zas_
parents:
508
diff
changeset
|
166 FileViewType file_view_type; |
508 | 167 |
870
3dd2cb78d0f9
Make better matching between options types in options.h and the rest of the code.
zas_
parents:
858
diff
changeset
|
168 gboolean show_thumbnails; |
3dd2cb78d0f9
Make better matching between options types in options.h and the rest of the code.
zas_
parents:
858
diff
changeset
|
169 gboolean show_marks; |
825 | 170 gboolean show_directory_date; |
508 | 171 |
172 struct { | |
173 gint w; | |
174 gint h; | |
175 gint x; | |
176 gint y; | |
870
3dd2cb78d0f9
Make better matching between options types in options.h and the rest of the code.
zas_
parents:
858
diff
changeset
|
177 gboolean maximized; |
508 | 178 gint hdivider_pos; |
179 gint vdivider_pos; | |
180 } main_window; | |
181 | |
182 struct { | |
183 gint w; | |
184 gint h; | |
185 gint x; | |
186 gint y; | |
187 gint vdivider_pos; | |
188 } float_window; | |
189 | |
764
ae618ebec3e9
Save properties window width and height to rc file and restore
zas_
parents:
740
diff
changeset
|
190 struct { |
ae618ebec3e9
Save properties window width and height to rc file and restore
zas_
parents:
740
diff
changeset
|
191 gint w; |
ae618ebec3e9
Save properties window width and height to rc file and restore
zas_
parents:
740
diff
changeset
|
192 gint h; |
ae618ebec3e9
Save properties window width and height to rc file and restore
zas_
parents:
740
diff
changeset
|
193 } properties_window; |
ae618ebec3e9
Save properties window width and height to rc file and restore
zas_
parents:
740
diff
changeset
|
194 |
870
3dd2cb78d0f9
Make better matching between options types in options.h and the rest of the code.
zas_
parents:
858
diff
changeset
|
195 gboolean save_window_positions; |
508 | 196 |
870
3dd2cb78d0f9
Make better matching between options types in options.h and the rest of the code.
zas_
parents:
858
diff
changeset
|
197 gboolean tools_float; |
3dd2cb78d0f9
Make better matching between options types in options.h and the rest of the code.
zas_
parents:
858
diff
changeset
|
198 gboolean tools_hidden; |
3dd2cb78d0f9
Make better matching between options types in options.h and the rest of the code.
zas_
parents:
858
diff
changeset
|
199 gboolean tools_restore_state; |
508 | 200 |
870
3dd2cb78d0f9
Make better matching between options types in options.h and the rest of the code.
zas_
parents:
858
diff
changeset
|
201 gboolean toolbar_hidden; |
980
a4a38ea9fbaa
Add an option named layout.home_path which modifies the behavior of the Home button.
zas_
parents:
885
diff
changeset
|
202 |
a4a38ea9fbaa
Add an option named layout.home_path which modifies the behavior of the Home button.
zas_
parents:
885
diff
changeset
|
203 gchar *home_path; |
508 | 204 } layout; |
205 | |
206 /* panels */ | |
207 struct { | |
208 struct { | |
870
3dd2cb78d0f9
Make better matching between options types in options.h and the rest of the code.
zas_
parents:
858
diff
changeset
|
209 gboolean enabled; |
508 | 210 gint width; |
211 } info; | |
212 | |
213 struct { | |
870
3dd2cb78d0f9
Make better matching between options types in options.h and the rest of the code.
zas_
parents:
858
diff
changeset
|
214 gboolean enabled; |
508 | 215 gint width; |
216 } exif; | |
217 | |
218 struct { | |
870
3dd2cb78d0f9
Make better matching between options types in options.h and the rest of the code.
zas_
parents:
858
diff
changeset
|
219 gboolean enabled; |
508 | 220 gint mode_state; |
221 gint action_state; | |
222 gint selection_state; | |
223 } sort; | |
224 } panels; | |
225 | |
684 | 226 /* properties dialog */ |
227 struct { | |
228 gchar *tabs_order; | |
229 } properties; | |
508 | 230 |
231 /* color profiles */ | |
232 struct { | |
870
3dd2cb78d0f9
Make better matching between options types in options.h and the rest of the code.
zas_
parents:
858
diff
changeset
|
233 gboolean enabled; |
508 | 234 gint input_type; |
235 gchar *input_file[COLOR_PROFILE_INPUTS]; | |
236 gchar *input_name[COLOR_PROFILE_INPUTS]; | |
237 gint screen_type; | |
238 gchar *screen_file; | |
870
3dd2cb78d0f9
Make better matching between options types in options.h and the rest of the code.
zas_
parents:
858
diff
changeset
|
239 gboolean use_image; |
508 | 240 |
241 } color_profile; | |
242 | |
884
ff16ed0d2c8a
Improve ways to specify html browser (used for help, see bug 2015099).
zas_
parents:
870
diff
changeset
|
243 /* Helpers programs */ |
ff16ed0d2c8a
Improve ways to specify html browser (used for help, see bug 2015099).
zas_
parents:
870
diff
changeset
|
244 struct { |
ff16ed0d2c8a
Improve ways to specify html browser (used for help, see bug 2015099).
zas_
parents:
870
diff
changeset
|
245 struct { |
ff16ed0d2c8a
Improve ways to specify html browser (used for help, see bug 2015099).
zas_
parents:
870
diff
changeset
|
246 gchar *command_name; |
ff16ed0d2c8a
Improve ways to specify html browser (used for help, see bug 2015099).
zas_
parents:
870
diff
changeset
|
247 gchar *command_line; |
ff16ed0d2c8a
Improve ways to specify html browser (used for help, see bug 2015099).
zas_
parents:
870
diff
changeset
|
248 } html_browser; |
ff16ed0d2c8a
Improve ways to specify html browser (used for help, see bug 2015099).
zas_
parents:
870
diff
changeset
|
249 } helpers; |
1013
88ebc61e33ae
Allow to override documentation paths through options:
zas_
parents:
980
diff
changeset
|
250 |
88ebc61e33ae
Allow to override documentation paths through options:
zas_
parents:
980
diff
changeset
|
251 /* Various paths and links to documentation */ |
88ebc61e33ae
Allow to override documentation paths through options:
zas_
parents:
980
diff
changeset
|
252 struct { |
88ebc61e33ae
Allow to override documentation paths through options:
zas_
parents:
980
diff
changeset
|
253 gchar *helpdir; |
88ebc61e33ae
Allow to override documentation paths through options:
zas_
parents:
980
diff
changeset
|
254 gchar *htmldir; |
88ebc61e33ae
Allow to override documentation paths through options:
zas_
parents:
980
diff
changeset
|
255 } documentation; |
508 | 256 }; |
257 | |
258 ConfOptions *options; | |
259 | |
260 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
|
261 void setup_default_options(ConfOptions *options); |
1019 | 262 void save_options(ConfOptions *options); |
263 void load_options(ConfOptions *options); | |
264 | |
508 | 265 |
266 #endif /* OPTIONS_H */ | |
1055
1646720364cf
Adding a vim modeline to all files - patch by Klaus Ethgen
nadvornik
parents:
1019
diff
changeset
|
267 /* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */ |