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;
58 gboolean hamburger_menu;
61 gboolean tree_descend_subdirs;
62 gboolean view_dir_list_single_click_enter;
64 gboolean circular_selection_lists;
66 gboolean lazy_image_sync;
67 gboolean update_on_time_change;
69 guint duplicates_similarity_threshold;
70 guint duplicates_match;
71 gboolean duplicates_thumbnails;
72 guint duplicates_select_type;
73 gboolean rot_invariant_sim;
76 gint open_recent_list_maxsize;
77 gint recent_folder_image_list_maxsize;
79 DnDAction dnd_default_action;
80 gint clipboard_selection;
82 gboolean save_window_positions;
83 gboolean use_saved_window_positions_for_new_windows;
84 gboolean save_window_workspace;
85 gboolean tools_restore_state;
86 gboolean save_dialog_window_positions;
87 gboolean show_window_ids;
89 gint log_window_lines;
91 gboolean marks_save; /**< save marks on exit */
92 gchar *marks_tooltips[FILEDATA_MARKS_SIZE];
94 gboolean appimage_notifications;
97 gboolean collections_duplicates;
98 gboolean collections_on_top;
99 gboolean hide_window_in_fullscreen;
101 gchar *help_search_engine;
104 * @struct info_comment
105 * info sidebar component height
112 * @struct info_keywords
113 * info sidebar component height
121 * info sidebar component height
128 * @struct info_rating
129 * info sidebar component height
136 * @struct info_headline
137 * info sidebar component height
145 gboolean enable_in_place_rename;
147 gboolean confirm_delete;
148 gboolean confirm_move_to_trash;
149 gboolean enable_delete_key;
150 gboolean safe_delete_enable;
151 gboolean use_system_trash;
152 gchar *safe_delete_path;
153 gint safe_delete_folder_maxsize;
159 gboolean exif_rotate_enable;
160 guint scroll_reset_method;
161 gboolean fit_window_to_image;
162 gboolean limit_window_size;
163 gint max_window_size;
164 gboolean limit_autofit_size;
165 gint max_autofit_size;
166 gint max_enlargement_size;
168 gint tile_cache_max; /**< in megabytes */
169 gint image_cache_max; /**< in megabytes */
170 gboolean enable_read_ahead;
174 gboolean zoom_to_fit_allow_expand;
176 gint zoom_increment; /**< 100 is 1.0, 5 is 0.05, 200 is 2.0, etc. */
177 ZoomStyle zoom_style;
179 gboolean use_custom_border_color_in_fullscreen;
180 gboolean use_custom_border_color;
181 GdkRGBA border_color;
182 GdkRGBA alpha_color_1;
183 GdkRGBA alpha_color_2;
192 gboolean enable_caching;
193 gboolean cache_into_dirs;
195 gboolean spec_standard;
198 gboolean use_color_management;
199 gboolean use_ft_metadata;
200 gint collection_preview;
205 gboolean show_hidden_files;
206 gboolean show_parent_directory;
207 gboolean show_dot_directory;
208 gboolean disable_file_extension_checks;
218 gboolean rectangular_selection;
229 gboolean case_sensitive; /**< file sorting method (case) */
234 gint delay; /**< in tenths of a second */
243 gboolean disable_saver;
249 gchar *template_string;
256 guint16 background_red;
257 guint16 background_green;
258 guint16 background_blue;
259 guint16 background_alpha;
263 /* properties dialog */
272 gchar *input_file[COLOR_PROFILE_INPUTS];
273 gchar *input_name[COLOR_PROFILE_INPUTS];
276 gboolean use_x11_screen_profile;
280 /* Helpers programs */
290 gboolean enable_metadata_dirs;
292 gboolean save_in_image_file;
293 gboolean save_legacy_IPTC;
294 gboolean warn_on_write_problems;
296 gboolean save_legacy_format;
298 gboolean sync_grouped_files;
300 gboolean confirm_write;
301 gint confirm_timeout;
302 gboolean confirm_after_timeout;
303 gboolean confirm_on_image_change;
304 gboolean confirm_on_dir_change;
305 gboolean keywords_case_sensitive;
306 gboolean write_orientation;
307 gboolean sidecar_extended_name;
309 gboolean check_spelling;
316 gboolean enable_fsmode;
317 gint fixed_w, fixed_h;
318 gint fixed_x1, fixed_y1;
319 gint fixed_x2, fixed_y2;
322 * options in this struct are packed to mode and fsmode entries
325 gboolean mirror_right;
326 gboolean mirror_left;
330 gboolean temp_disable;
331 gboolean fs_mirror_right;
332 gboolean fs_mirror_left;
333 gboolean fs_flip_right;
334 gboolean fs_flip_left;
336 gboolean fs_temp_disable;
340 /* External preview extraction */
343 gchar *select; /**< path to executable */
344 gchar *extract; /**< path to executable */
355 gint formatted_start;
363 gchar *action; /** Used with F1 key */
376 gboolean show_image_text;
377 gboolean show_page_text;
379 gint image_text_position;
380 gint page_text_position;
381 gchar *template_string;
389 /* Selectable bars */
396 /* Alternate similarity algorithm */
399 gboolean grayscale; /**< convert fingerprint to greyscale */
400 } alternate_similarity_algorithm;
402 gchar *mouse_button_8; /**< user-definable mouse buttons */
403 gchar *mouse_button_9; /**< user-definable mouse buttons */
405 gboolean class_filter[FILE_FORMAT_CLASSES]; /**< class file filter */
407 gboolean read_metadata_in_idle;
409 gboolean disable_gpu; /**< GPU - see main.cc */
410 gboolean override_disable_gpu; /**< GPU - see main.cc */
412 GList *disabled_plugins;
419 gboolean startup_blank;
420 gboolean startup_full_screen;
421 gboolean startup_in_slideshow;
422 gboolean startup_command_line_collection;
425 gboolean log_window_show;
429 GList *collection_list;
434 gboolean new_instance;
437 extern ConfOptions *options;
438 extern CommandLine *command_line;
440 ConfOptions *init_options(ConfOptions *options);
441 void setup_default_options(ConfOptions *options);
442 void save_options(ConfOptions *options);
443 gboolean load_options(ConfOptions *options);
447 STARTUP_PATH_CURRENT = 0,
452 enum SortActionType {
456 BAR_SORT_ACTION_COUNT
460 BAR_SORT_MODE_FOLDER = 0,
461 BAR_SORT_MODE_COLLECTION,
465 enum SortSelectionType {
466 BAR_SORT_SELECTION_IMAGE = 0,
467 BAR_SORT_SELECTION_SELECTED,
468 BAR_SORT_SELECTION_COUNT
478 DirViewType dir_view_type;
479 FileViewType file_view_type;
484 gboolean case_sensitive;
485 } dir_view_list_sort;
490 gboolean case_sensitive;
491 } file_view_list_sort;
493 gboolean show_thumbnails;
495 gboolean show_file_filter;
496 gboolean show_directory_date;
497 gboolean show_info_pixel;
498 gboolean split_pane_sync;
499 gboolean ignore_alpha;
530 gint histogram_channel;
547 } preferences_window;
568 } advanced_exif_window;
570 gboolean tools_float;
571 gboolean tools_hidden;
572 gboolean selectable_toolbars_hidden;
577 gboolean tools_float;
578 gboolean tools_hidden;
585 StartUpPath startup_path;
590 SortActionType action;
592 SortSelectionType selection;
596 void copy_layout_options(LayoutOptions *dest, const LayoutOptions *src);
597 void free_layout_options_content(LayoutOptions *dest);
598 LayoutOptions *init_layout_options(LayoutOptions *options);
600 #endif /* OPTIONS_H */
601 /* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */