3 * Copyright (C) 2008 - 2009 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;
24 gboolean show_copy_path;
27 gboolean tree_descend_subdirs;
29 gboolean lazy_image_sync;
30 gboolean update_on_time_change;
32 guint duplicates_similarity_threshold;
34 gint open_recent_list_maxsize;
37 gboolean save_window_positions;
38 gboolean tools_restore_state;
42 gboolean restore_path;
43 gboolean use_last_path;
49 gboolean enable_in_place_rename;
51 gboolean confirm_delete;
52 gboolean enable_delete_key;
53 gboolean safe_delete_enable;
54 gchar *safe_delete_path;
55 gint safe_delete_folder_maxsize;
60 gboolean exif_rotate_enable;
61 guint scroll_reset_method;
62 gboolean fit_window_to_image;
63 gboolean limit_window_size;
65 gboolean limit_autofit_size;
66 gint max_autofit_size;
68 gint tile_cache_max; /* in megabytes */
69 gint image_cache_max; /* in megabytes */
71 gboolean enable_read_ahead;
75 gboolean zoom_to_fit_allow_expand;
77 gint zoom_increment; /* 10 is 1.0, 5 is 0.05, 20 is 2.0, etc. */
79 gint use_custom_border_color;
80 GdkColor border_color;
82 gint read_buffer_size; /* bytes to read from file per read() */
83 gint idle_read_loop_count; /* the number of bytes to read per idle call (define x image.read_buffer_size) */
90 gboolean enable_caching;
91 gboolean cache_into_dirs;
94 gboolean spec_standard;
101 gboolean show_hidden_files;
102 gboolean show_dot_directory;
112 gboolean rectangular_selection;
125 gboolean case_sensitive; /* file sorting method (case) */
130 gint delay; /* in tenths of a second */
139 gboolean disable_saver;
145 gchar *template_string;
150 /* properties dialog */
159 gchar *input_file[COLOR_PROFILE_INPUTS];
160 gchar *input_name[COLOR_PROFILE_INPUTS];
167 /* Helpers programs */
177 gboolean enable_metadata_dirs;
179 gboolean save_in_image_file;
180 gboolean save_legacy_IPTC;
181 gboolean warn_on_write_problems;
183 gboolean save_legacy_format;
185 gboolean sync_grouped_files;
187 gboolean confirm_write;
188 gint confirm_timeout;
189 gboolean confirm_after_timeout;
190 gboolean confirm_on_image_change;
191 gboolean confirm_on_dir_change;
196 ConfOptions *options;
197 CommandLine *command_line;
199 ConfOptions *init_options(ConfOptions *options);
200 void setup_default_options(ConfOptions *options);
201 void save_options(ConfOptions *options);
202 gboolean load_options(ConfOptions *options);
204 void copy_layout_options(LayoutOptions *dest, const LayoutOptions *src);
205 void free_layout_options_content(LayoutOptions *dest);
206 LayoutOptions *init_layout_options(LayoutOptions *options);
208 #endif /* OPTIONS_H */
209 /* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */