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.
28 struct SecureSaveInfo;
30 #define COLOR_PROFILE_INPUTS 4
34 * drag and drop default action
50 gboolean progressive_key_scrolling;
51 guint keyboard_scroll_step;
52 gboolean place_dialogs_under_mouse;
53 gboolean mousewheel_scrolls;
54 gboolean image_lm_click_nav;
55 gboolean image_l_click_archive;
56 gboolean image_l_click_video;
57 gchar *image_l_click_video_editor;
58 gboolean show_icon_names;
59 gboolean show_star_rating;
60 gboolean draw_rectangle;
61 gboolean show_predefined_keyword_tree;
62 gboolean overunderexposed;
63 gboolean expand_menu_toolbar;
64 gboolean hamburger_menu;
67 gboolean tree_descend_subdirs;
68 gboolean view_dir_list_single_click_enter;
70 gboolean circular_selection_lists;
72 gboolean lazy_image_sync;
73 gboolean update_on_time_change;
75 guint duplicates_similarity_threshold;
76 guint duplicates_match;
77 gboolean duplicates_thumbnails;
78 guint duplicates_select_type;
79 gboolean rot_invariant_sim;
82 gint open_recent_list_maxsize;
83 gint recent_folder_image_list_maxsize;
85 DnDAction dnd_default_action;
86 gint clipboard_selection;
88 gboolean save_window_positions;
89 gboolean use_saved_window_positions_for_new_windows;
90 gboolean save_window_workspace;
91 gboolean tools_restore_state;
92 gboolean save_dialog_window_positions;
93 gboolean show_window_ids;
95 gint log_window_lines;
97 gboolean marks_save; /**< save marks on exit */
98 gchar *marks_tooltips[FILEDATA_MARKS_SIZE];
100 gboolean appimage_notifications;
102 gboolean with_rename;
103 gboolean collections_duplicates;
104 gboolean collections_on_top;
105 gboolean hide_window_in_fullscreen;
107 gchar *help_search_engine;
110 * @struct info_comment
111 * info sidebar component height
118 * @struct info_keywords
119 * info sidebar component height
127 * info sidebar component height
134 * @struct info_rating
135 * info sidebar component height
142 * @struct info_headline
143 * info sidebar component height
151 gboolean enable_in_place_rename;
153 gboolean confirm_delete;
154 gboolean confirm_move_to_trash;
155 gboolean enable_delete_key;
156 gboolean safe_delete_enable;
157 gboolean use_system_trash;
158 gchar *safe_delete_path;
159 gint safe_delete_folder_maxsize;
165 gboolean exif_rotate_enable;
166 guint scroll_reset_method;
167 gboolean fit_window_to_image;
168 gboolean limit_window_size;
169 gint max_window_size;
170 gboolean limit_autofit_size;
171 gint max_autofit_size;
172 gint max_enlargement_size;
174 gint tile_cache_max; /**< in megabytes */
175 gint image_cache_max; /**< in megabytes */
176 gboolean enable_read_ahead;
180 gboolean zoom_to_fit_allow_expand;
182 gint zoom_increment; /**< 100 is 1.0, 5 is 0.05, 200 is 2.0, etc. */
183 ZoomStyle zoom_style;
185 gboolean use_custom_border_color_in_fullscreen;
186 gboolean use_custom_border_color;
187 GdkRGBA border_color;
188 GdkRGBA alpha_color_1;
189 GdkRGBA alpha_color_2;
198 gboolean enable_caching;
199 gboolean cache_into_dirs;
201 gboolean spec_standard;
204 gboolean use_color_management;
205 gboolean use_ft_metadata;
206 gint collection_preview;
211 gboolean show_hidden_files;
212 gboolean show_parent_directory;
213 gboolean show_dot_directory;
214 gboolean disable_file_extension_checks;
224 gboolean rectangular_selection;
235 gboolean case_sensitive; /**< file sorting method (case) */
240 gint delay; /**< in tenths of a second */
249 gboolean disable_saver;
255 gchar *template_string;
262 guint16 background_red;
263 guint16 background_green;
264 guint16 background_blue;
265 guint16 background_alpha;
269 /* properties dialog */
278 gchar *input_file[COLOR_PROFILE_INPUTS];
279 gchar *input_name[COLOR_PROFILE_INPUTS];
282 gboolean use_x11_screen_profile;
286 /* Helpers programs */
296 gboolean enable_metadata_dirs;
298 gboolean save_in_image_file;
299 gboolean save_legacy_IPTC;
300 gboolean warn_on_write_problems;
302 gboolean save_legacy_format;
304 gboolean sync_grouped_files;
306 gboolean confirm_write;
307 gint confirm_timeout;
308 gboolean confirm_after_timeout;
309 gboolean confirm_on_image_change;
310 gboolean confirm_on_dir_change;
311 gboolean keywords_case_sensitive;
312 gboolean write_orientation;
313 gboolean sidecar_extended_name;
315 gboolean check_spelling;
322 gboolean enable_fsmode;
323 gint fixed_w, fixed_h;
324 gint fixed_x1, fixed_y1;
325 gint fixed_x2, fixed_y2;
328 * options in this struct are packed to mode and fsmode entries
331 gboolean mirror_right;
332 gboolean mirror_left;
336 gboolean temp_disable;
337 gboolean fs_mirror_right;
338 gboolean fs_mirror_left;
339 gboolean fs_flip_right;
340 gboolean fs_flip_left;
342 gboolean fs_temp_disable;
346 /* External preview extraction */
349 gchar *select; /**< path to executable */
350 gchar *extract; /**< path to executable */
361 gint formatted_start;
369 gchar *action; /** Used with F1 key */
382 gboolean show_image_text;
383 gboolean show_page_text;
385 gint image_text_position;
386 gint page_text_position;
387 gchar *template_string;
395 /* Selectable bars */
402 /* Alternate similarity algorithm */
405 gboolean grayscale; /**< convert fingerprint to greyscale */
406 } alternate_similarity_algorithm;
408 gchar *mouse_button_8; /**< user-definable mouse buttons */
409 gchar *mouse_button_9; /**< user-definable mouse buttons */
411 gboolean class_filter[FILE_FORMAT_CLASSES]; /**< class file filter */
413 gboolean read_metadata_in_idle;
415 gboolean disable_gpu; /**< GPU - see main.cc */
416 gboolean override_disable_gpu; /**< GPU - see main.cc */
418 GList *disabled_plugins;
425 gboolean startup_blank;
426 gboolean startup_full_screen;
427 gboolean startup_in_slideshow;
428 gboolean startup_command_line_collection;
431 gboolean log_window_show;
435 GList *collection_list;
440 gboolean new_instance;
443 extern ConfOptions *options;
444 extern CommandLine *command_line;
446 ConfOptions *init_options(ConfOptions *options);
447 void setup_default_options(ConfOptions *options);
448 void save_options(ConfOptions *options);
449 gboolean load_options(ConfOptions *options);
453 STARTUP_PATH_CURRENT = 0,
458 enum SortActionType {
462 BAR_SORT_ACTION_COUNT
466 BAR_SORT_MODE_FOLDER = 0,
467 BAR_SORT_MODE_COLLECTION,
471 enum SortSelectionType {
472 BAR_SORT_SELECTION_IMAGE = 0,
473 BAR_SORT_SELECTION_SELECTED,
474 BAR_SORT_SELECTION_COUNT
484 DirViewType dir_view_type;
485 FileViewType file_view_type;
490 gboolean case_sensitive;
491 } dir_view_list_sort;
496 gboolean case_sensitive;
497 } file_view_list_sort;
499 gboolean show_thumbnails;
501 gboolean show_file_filter;
502 gboolean show_directory_date;
503 gboolean show_info_pixel;
504 gboolean split_pane_sync;
505 gboolean ignore_alpha;
536 gint histogram_channel;
540 GdkRectangle log_window;
548 } preferences_window;
569 } advanced_exif_window;
571 gboolean tools_float;
572 gboolean tools_hidden;
573 gboolean selectable_toolbars_hidden;
578 gboolean tools_float;
579 gboolean tools_hidden;
586 StartUpPath startup_path;
591 SortActionType action;
593 SortSelectionType selection;
597 void copy_layout_options(LayoutOptions *dest, const LayoutOptions *src);
598 void free_layout_options_content(LayoutOptions *dest);
599 LayoutOptions *init_layout_options(LayoutOptions *options);
601 #endif /* OPTIONS_H */
602 /* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */