2 * Copyright (C) 2008 - 2016 The Geeqie Team
4 * Authors: Vladimir Nadvornik, Laurent Monin
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License along
17 * with this program; if not, write to the Free Software Foundation, Inc.,
18 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
24 struct SecureSaveInfo;
28 * drag and drop default action
44 gboolean progressive_key_scrolling;
45 guint keyboard_scroll_step;
46 gboolean place_dialogs_under_mouse;
47 gboolean mousewheel_scrolls;
48 gboolean image_lm_click_nav;
49 gboolean image_l_click_archive;
50 gboolean image_l_click_video;
51 gchar *image_l_click_video_editor;
52 gboolean show_icon_names;
53 gboolean show_star_rating;
54 gboolean draw_rectangle;
55 gboolean show_predefined_keyword_tree;
56 gboolean overunderexposed;
57 gboolean expand_menu_toolbar;
60 gboolean tree_descend_subdirs;
61 gboolean view_dir_list_single_click_enter;
63 gboolean circular_selection_lists;
65 gboolean lazy_image_sync;
66 gboolean update_on_time_change;
68 guint duplicates_similarity_threshold;
69 guint duplicates_match;
70 gboolean duplicates_thumbnails;
71 guint duplicates_select_type;
72 gboolean rot_invariant_sim;
75 gint open_recent_list_maxsize;
76 gint recent_folder_image_list_maxsize;
78 DnDAction dnd_default_action;
79 gint clipboard_selection;
81 gboolean save_window_positions;
82 gboolean use_saved_window_positions_for_new_windows;
83 gboolean save_window_workspace;
84 gboolean tools_restore_state;
85 gboolean save_dialog_window_positions;
86 gboolean show_window_ids;
88 gint log_window_lines;
90 gboolean marks_save; /**< save marks on exit */
91 gchar *marks_tooltips[FILEDATA_MARKS_SIZE];
93 gboolean appimage_notifications;
96 gboolean collections_duplicates;
97 gboolean collections_on_top;
98 gboolean hide_window_in_fullscreen;
100 gchar *help_search_engine;
103 * @struct info_comment
104 * info sidebar component height
111 * @struct info_keywords
112 * info sidebar component height
120 * info sidebar component height
127 * @struct info_rating
128 * info sidebar component height
135 * @struct info_headline
136 * info sidebar component height
144 gboolean enable_in_place_rename;
146 gboolean confirm_delete;
147 gboolean confirm_move_to_trash;
148 gboolean enable_delete_key;
149 gboolean safe_delete_enable;
150 gboolean use_system_trash;
151 gchar *safe_delete_path;
152 gint safe_delete_folder_maxsize;
158 gboolean exif_rotate_enable;
159 guint scroll_reset_method;
160 gboolean fit_window_to_image;
161 gboolean limit_window_size;
162 gint max_window_size;
163 gboolean limit_autofit_size;
164 gint max_autofit_size;
165 gint max_enlargement_size;
167 gint tile_cache_max; /**< in megabytes */
168 gint image_cache_max; /**< in megabytes */
169 gboolean enable_read_ahead;
173 gboolean zoom_to_fit_allow_expand;
175 gint zoom_increment; /**< 100 is 1.0, 5 is 0.05, 200 is 2.0, etc. */
176 ZoomStyle zoom_style;
178 gboolean use_custom_border_color_in_fullscreen;
179 gboolean use_custom_border_color;
180 GdkRGBA border_color;
181 GdkRGBA alpha_color_1;
182 GdkRGBA alpha_color_2;
191 gboolean enable_caching;
192 gboolean cache_into_dirs;
194 gboolean spec_standard;
197 gboolean use_color_management;
198 gboolean use_ft_metadata;
199 gint collection_preview;
204 gboolean show_hidden_files;
205 gboolean show_parent_directory;
206 gboolean show_dot_directory;
207 gboolean disable_file_extension_checks;
217 gboolean rectangular_selection;
228 gboolean case_sensitive; /**< file sorting method (case) */
233 gint delay; /**< in tenths of a second */
242 gboolean disable_saver;
248 gchar *template_string;
255 guint16 background_red;
256 guint16 background_green;
257 guint16 background_blue;
258 guint16 background_alpha;
262 /* properties dialog */
271 gchar *input_file[COLOR_PROFILE_INPUTS];
272 gchar *input_name[COLOR_PROFILE_INPUTS];
275 gboolean use_x11_screen_profile;
279 /* Helpers programs */
289 gboolean enable_metadata_dirs;
291 gboolean save_in_image_file;
292 gboolean save_legacy_IPTC;
293 gboolean warn_on_write_problems;
295 gboolean save_legacy_format;
297 gboolean sync_grouped_files;
299 gboolean confirm_write;
300 gint confirm_timeout;
301 gboolean confirm_after_timeout;
302 gboolean confirm_on_image_change;
303 gboolean confirm_on_dir_change;
304 gboolean keywords_case_sensitive;
305 gboolean write_orientation;
306 gboolean sidecar_extended_name;
308 gboolean check_spelling;
315 gboolean enable_fsmode;
316 gint fixed_w, fixed_h;
317 gint fixed_x1, fixed_y1;
318 gint fixed_x2, fixed_y2;
321 * options in this struct are packed to mode and fsmode entries
324 gboolean mirror_right;
325 gboolean mirror_left;
329 gboolean temp_disable;
330 gboolean fs_mirror_right;
331 gboolean fs_mirror_left;
332 gboolean fs_flip_right;
333 gboolean fs_flip_left;
335 gboolean fs_temp_disable;
339 /* External preview extraction */
342 gchar *select; /**< path to executable */
343 gchar *extract; /**< path to executable */
354 gint formatted_start;
362 gchar *action; /** Used with F1 key */
375 gboolean show_image_text;
376 gboolean show_page_text;
378 gint image_text_position;
379 gint page_text_position;
380 gchar *template_string;
388 /* Selectable bars */
395 /* Alternate similarity algorithm */
398 gboolean grayscale; /**< convert fingerprint to greyscale */
399 } alternate_similarity_algorithm;
401 gchar *mouse_button_8; /**< user-definable mouse buttons */
402 gchar *mouse_button_9; /**< user-definable mouse buttons */
404 gboolean class_filter[FILE_FORMAT_CLASSES]; /**< class file filter */
406 gboolean read_metadata_in_idle;
408 gboolean disable_gpu; /**< GPU - see main.cc */
409 gboolean override_disable_gpu; /**< GPU - see main.cc */
411 GList *disabled_plugins;
418 gboolean startup_blank;
419 gboolean startup_full_screen;
420 gboolean startup_in_slideshow;
421 gboolean startup_command_line_collection;
424 gboolean log_window_show;
428 GList *collection_list;
433 gboolean new_instance;
436 extern ConfOptions *options;
437 extern CommandLine *command_line;
439 ConfOptions *init_options(ConfOptions *options);
440 void setup_default_options(ConfOptions *options);
441 void save_options(ConfOptions *options);
442 gboolean load_options(ConfOptions *options);
446 STARTUP_PATH_CURRENT = 0,
451 enum SortActionType {
455 BAR_SORT_ACTION_COUNT
459 BAR_SORT_MODE_FOLDER = 0,
460 BAR_SORT_MODE_COLLECTION,
464 enum SortSelectionType {
465 BAR_SORT_SELECTION_IMAGE = 0,
466 BAR_SORT_SELECTION_SELECTED,
467 BAR_SORT_SELECTION_COUNT
477 DirViewType dir_view_type;
478 FileViewType file_view_type;
483 gboolean case_sensitive;
484 } dir_view_list_sort;
489 gboolean case_sensitive;
490 } file_view_list_sort;
492 gboolean show_thumbnails;
494 gboolean show_file_filter;
495 gboolean show_directory_date;
496 gboolean show_info_pixel;
497 gboolean split_pane_sync;
498 gboolean ignore_alpha;
529 gint histogram_channel;
546 } preferences_window;
567 } advanced_exif_window;
569 gboolean tools_float;
570 gboolean tools_hidden;
571 gboolean selectable_toolbars_hidden;
576 gboolean tools_float;
577 gboolean tools_hidden;
584 StartUpPath startup_path;
589 SortActionType action;
591 SortSelectionType selection;
595 void copy_layout_options(LayoutOptions *dest, const LayoutOptions *src);
596 void free_layout_options_content(LayoutOptions *dest);
597 LayoutOptions *init_layout_options(LayoutOptions *options);
599 #endif /* OPTIONS_H */
600 /* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */