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.
30 struct SecureSaveInfo;
32 #define COLOR_PROFILE_INPUTS 4
36 * drag and drop default action
52 gboolean progressive_key_scrolling;
53 guint keyboard_scroll_step;
54 gboolean place_dialogs_under_mouse;
55 gboolean mousewheel_scrolls;
56 gboolean image_lm_click_nav;
57 gboolean image_l_click_archive;
58 gboolean image_l_click_video;
59 gchar *image_l_click_video_editor;
60 gboolean show_icon_names;
61 gboolean show_star_rating;
62 gboolean draw_rectangle;
63 gboolean show_predefined_keyword_tree;
64 gboolean overunderexposed;
65 gboolean expand_menu_toolbar;
66 gboolean hamburger_menu;
69 gboolean tree_descend_subdirs;
70 gboolean view_dir_list_single_click_enter;
72 gboolean circular_selection_lists;
74 gboolean lazy_image_sync;
75 gboolean update_on_time_change;
77 guint duplicates_similarity_threshold;
78 guint duplicates_match;
79 gboolean duplicates_thumbnails;
80 guint duplicates_select_type;
81 gboolean rot_invariant_sim;
84 gint open_recent_list_maxsize;
85 gint recent_folder_image_list_maxsize;
87 DnDAction dnd_default_action;
88 gint clipboard_selection;
90 gboolean save_window_positions;
91 gboolean use_saved_window_positions_for_new_windows;
92 gboolean save_window_workspace;
93 gboolean tools_restore_state;
94 gboolean save_dialog_window_positions;
95 gboolean show_window_ids;
97 gint log_window_lines;
99 gboolean marks_save; /**< save marks on exit */
100 gchar *marks_tooltips[FILEDATA_MARKS_SIZE];
102 gboolean appimage_notifications;
104 gboolean with_rename;
105 gboolean collections_duplicates;
106 gboolean collections_on_top;
107 gboolean hide_window_in_fullscreen;
108 gboolean hide_osd_in_fullscreen;
110 gchar *help_search_engine;
113 * @struct info_comment
114 * info sidebar component height
121 * @struct info_keywords
122 * info sidebar component height
130 * info sidebar component height
137 * @struct info_rating
138 * info sidebar component height
145 * @struct info_headline
146 * info sidebar component height
154 gboolean enable_in_place_rename;
156 gboolean confirm_delete;
157 gboolean confirm_move_to_trash;
158 gboolean enable_delete_key;
159 gboolean safe_delete_enable;
160 gboolean use_system_trash;
161 gchar *safe_delete_path;
162 gint safe_delete_folder_maxsize;
168 gboolean exif_rotate_enable;
169 guint scroll_reset_method;
170 gboolean fit_window_to_image;
171 gboolean limit_window_size;
172 gint max_window_size;
173 gboolean limit_autofit_size;
174 gint max_autofit_size;
175 gint max_enlargement_size;
177 gint tile_cache_max; /**< in megabytes */
178 gint image_cache_max; /**< in megabytes */
179 gboolean enable_read_ahead;
183 gboolean zoom_to_fit_allow_expand;
185 gint zoom_increment; /**< 100 is 1.0, 5 is 0.05, 200 is 2.0, etc. */
186 ZoomStyle zoom_style;
188 gboolean use_custom_border_color_in_fullscreen;
189 gboolean use_custom_border_color;
190 GdkRGBA border_color;
191 GdkRGBA alpha_color_1;
192 GdkRGBA alpha_color_2;
201 gboolean enable_caching;
202 gboolean cache_into_dirs;
204 gboolean spec_standard;
207 gboolean use_color_management;
208 gboolean use_ft_metadata;
209 gint collection_preview;
214 gboolean show_hidden_files;
215 gboolean show_parent_directory;
216 gboolean show_dot_directory;
217 gboolean disable_file_extension_checks;
227 gboolean rectangular_selection;
238 gboolean case_sensitive; /**< file sorting method (case) */
243 gint delay; /**< in tenths of a second */
252 gboolean disable_saver;
258 gchar *template_string;
265 guint16 background_red;
266 guint16 background_green;
267 guint16 background_blue;
268 guint16 background_alpha;
272 /* properties dialog */
281 gchar *input_file[COLOR_PROFILE_INPUTS];
282 gchar *input_name[COLOR_PROFILE_INPUTS];
285 gboolean use_x11_screen_profile;
289 /* Helpers programs */
299 gboolean enable_metadata_dirs;
301 gboolean save_in_image_file;
302 gboolean save_legacy_IPTC;
303 gboolean warn_on_write_problems;
305 gboolean save_legacy_format;
307 gboolean sync_grouped_files;
309 gboolean confirm_write;
310 gint confirm_timeout;
311 gboolean confirm_after_timeout;
312 gboolean confirm_on_image_change;
313 gboolean confirm_on_dir_change;
314 gboolean keywords_case_sensitive;
315 gboolean write_orientation;
316 gboolean sidecar_extended_name;
318 gboolean check_spelling;
325 gboolean enable_fsmode;
326 gint fixed_w, fixed_h;
327 gint fixed_x1, fixed_y1;
328 gint fixed_x2, fixed_y2;
331 * options in this struct are packed to mode and fsmode entries
334 gboolean mirror_right;
335 gboolean mirror_left;
339 gboolean temp_disable;
340 gboolean fs_mirror_right;
341 gboolean fs_mirror_left;
342 gboolean fs_flip_right;
343 gboolean fs_flip_left;
345 gboolean fs_temp_disable;
349 /* External preview extraction */
352 gchar *select; /**< path to executable */
353 gchar *extract; /**< path to executable */
364 gint formatted_start;
372 gchar *action; /** Used with F1 key */
385 gboolean show_image_text;
386 gboolean show_page_text;
388 gint image_text_position;
389 gint page_text_position;
390 gchar *template_string;
398 /* Selectable bars */
405 /* Alternate similarity algorithm */
408 gboolean grayscale; /**< convert fingerprint to greyscale */
409 } alternate_similarity_algorithm;
411 gchar *mouse_button_8; /**< user-definable mouse buttons */
412 gchar *mouse_button_9; /**< user-definable mouse buttons */
414 gboolean class_filter[FILE_FORMAT_CLASSES]; /**< class file filter */
416 gboolean read_metadata_in_idle;
418 gboolean disable_gpu; /**< GPU - see main.cc */
419 gboolean override_disable_gpu; /**< GPU - see main.cc */
421 GList *disabled_plugins;
428 gboolean startup_blank;
429 gboolean startup_full_screen;
430 gboolean startup_in_slideshow;
431 gboolean startup_command_line_collection;
434 gboolean log_window_show;
438 GList *collection_list;
443 gboolean new_instance;
446 extern ConfOptions *options;
447 extern CommandLine *command_line;
449 ConfOptions *init_options(ConfOptions *options);
450 void setup_default_options(ConfOptions *options);
451 void save_options(ConfOptions *options);
452 gboolean load_options(ConfOptions *options);
456 STARTUP_PATH_CURRENT = 0,
461 enum SortActionType {
465 BAR_SORT_ACTION_COUNT
469 BAR_SORT_MODE_FOLDER = 0,
470 BAR_SORT_MODE_COLLECTION,
474 enum SortSelectionType {
475 BAR_SORT_SELECTION_IMAGE = 0,
476 BAR_SORT_SELECTION_SELECTED,
477 BAR_SORT_SELECTION_COUNT
487 DirViewType dir_view_type;
488 FileViewType file_view_type;
493 gboolean case_sensitive;
494 } dir_view_list_sort;
499 gboolean case_sensitive;
500 } file_view_list_sort;
502 gboolean show_thumbnails;
504 gboolean show_file_filter;
505 gboolean show_directory_date;
506 gboolean show_info_pixel;
507 gboolean split_pane_sync;
508 gboolean ignore_alpha;
539 gint histogram_channel;
543 GdkRectangle log_window;
551 } preferences_window;
572 } advanced_exif_window;
574 gboolean tools_float;
575 gboolean tools_hidden;
576 gboolean selectable_toolbars_hidden;
581 gboolean tools_float;
582 gboolean tools_hidden;
589 StartUpPath startup_path;
594 SortActionType action;
596 SortSelectionType selection;
600 void copy_layout_options(LayoutOptions *dest, const LayoutOptions *src);
601 void free_layout_options_content(LayoutOptions *dest);
602 LayoutOptions *init_layout_options(LayoutOptions *options);
604 #endif /* OPTIONS_H */
605 /* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */