3 * Copyright (C) 2008 - 2012 The Geeqie Team
5 * Authors: Vladimir Nadvornik, Laurent Monin
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!
15 typedef struct _ConfOptions ConfOptions;
20 gboolean progressive_key_scrolling;
21 gboolean place_dialogs_under_mouse;
22 gboolean mousewheel_scrolls;
23 gboolean show_icon_names;
26 gboolean tree_descend_subdirs;
28 gboolean lazy_image_sync;
29 gboolean update_on_time_change;
31 guint duplicates_similarity_threshold;
33 gint open_recent_list_maxsize;
36 gboolean save_window_positions;
37 gboolean tools_restore_state;
41 gboolean enable_in_place_rename;
43 gboolean confirm_delete;
44 gboolean enable_delete_key;
45 gboolean safe_delete_enable;
46 gchar *safe_delete_path;
47 gint safe_delete_folder_maxsize;
52 gboolean exif_rotate_enable;
53 guint scroll_reset_method;
54 gboolean fit_window_to_image;
55 gboolean limit_window_size;
57 gboolean limit_autofit_size;
58 gint max_autofit_size;
60 gint tile_cache_max; /* in megabytes */
61 gint image_cache_max; /* in megabytes */
62 gboolean enable_read_ahead;
66 gboolean zoom_to_fit_allow_expand;
68 gint zoom_increment; /* 10 is 1.0, 5 is 0.05, 20 is 2.0, etc. */
70 gboolean use_custom_border_color_in_fullscreen;
71 gboolean use_custom_border_color;
72 GdkColor border_color;
79 gboolean enable_caching;
80 gboolean cache_into_dirs;
82 gboolean spec_standard;
89 gboolean show_hidden_files;
90 gboolean show_dot_directory;
100 gboolean rectangular_selection;
113 gboolean case_sensitive; /* file sorting method (case) */
118 gint delay; /* in tenths of a second */
127 gboolean disable_saver;
133 gchar *template_string;
138 /* properties dialog */
147 gchar *input_file[COLOR_PROFILE_INPUTS];
148 gchar *input_name[COLOR_PROFILE_INPUTS];
151 gboolean use_x11_screen_profile;
155 /* Helpers programs */
165 gboolean enable_metadata_dirs;
167 gboolean save_in_image_file;
168 gboolean save_legacy_IPTC;
169 gboolean warn_on_write_problems;
171 gboolean save_legacy_format;
173 gboolean sync_grouped_files;
175 gboolean confirm_write;
176 gint confirm_timeout;
177 gboolean confirm_after_timeout;
178 gboolean confirm_on_image_change;
179 gboolean confirm_on_dir_change;
180 gboolean keywords_case_sensitive;
181 gboolean write_orientation;
188 gboolean enable_fsmode;
189 gint fixed_w, fixed_h;
190 gint fixed_x1, fixed_y1;
191 gint fixed_x2, fixed_y2;
192 struct { /* options in this struct are packed to mode and fsmode entries */
193 gboolean mirror_right;
194 gboolean mirror_left;
198 gboolean temp_disable;
199 gboolean fs_mirror_right;
200 gboolean fs_mirror_left;
201 gboolean fs_flip_right;
202 gboolean fs_flip_left;
204 gboolean fs_temp_disable;
209 ConfOptions *options;
210 CommandLine *command_line;
212 ConfOptions *init_options(ConfOptions *options);
213 void setup_default_options(ConfOptions *options);
214 void save_options(ConfOptions *options);
215 gboolean load_options(ConfOptions *options);
217 void copy_layout_options(LayoutOptions *dest, const LayoutOptions *src);
218 void free_layout_options_content(LayoutOptions *dest);
219 LayoutOptions *init_layout_options(LayoutOptions *options);
221 #endif /* OPTIONS_H */
222 /* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */