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 hide_window_decorations;
96 gboolean show_window_ids;
98 gint log_window_lines;
100 gboolean marks_save; /**< save marks on exit */
101 gchar *marks_tooltips[FILEDATA_MARKS_SIZE];
103 gboolean appimage_notifications;
105 gboolean with_rename;
106 gboolean collections_duplicates;
107 gboolean collections_on_top;
108 gboolean hide_window_in_fullscreen;
109 gboolean hide_osd_in_fullscreen;
111 gchar *help_search_engine;
114 * @struct info_comment
115 * info sidebar component height
122 * @struct info_keywords
123 * info sidebar component height
131 * info sidebar component height
138 * @struct info_rating
139 * info sidebar component height
146 * @struct info_headline
147 * info sidebar component height
155 gboolean enable_in_place_rename;
157 gboolean confirm_delete;
158 gboolean confirm_move_to_trash;
159 gboolean enable_delete_key;
160 gboolean safe_delete_enable;
161 gboolean use_system_trash;
162 gchar *safe_delete_path;
163 gint safe_delete_folder_maxsize;
169 gboolean exif_rotate_enable;
170 ScrollReset scroll_reset_method;
171 gboolean fit_window_to_image;
172 gboolean limit_window_size;
173 gint max_window_size;
174 gboolean limit_autofit_size;
175 gint max_autofit_size;
176 gint max_enlargement_size;
178 gint tile_cache_max; /**< in megabytes */
179 gint image_cache_max; /**< in megabytes */
180 gboolean enable_read_ahead;
184 gboolean zoom_to_fit_allow_expand;
186 gint zoom_increment; /**< 100 is 1.0, 5 is 0.05, 200 is 2.0, etc. */
187 ZoomStyle zoom_style;
189 gboolean use_custom_border_color_in_fullscreen;
190 gboolean use_custom_border_color;
191 GdkRGBA border_color;
192 GdkRGBA alpha_color_1;
193 GdkRGBA alpha_color_2;
202 gboolean enable_caching;
203 gboolean cache_into_dirs;
205 gboolean spec_standard;
208 gboolean use_color_management;
209 gboolean use_ft_metadata;
210 gint collection_preview;
215 gboolean show_hidden_files;
216 gboolean show_parent_directory;
217 gboolean show_dot_directory;
218 gboolean disable_file_extension_checks;
228 gboolean rectangular_selection;
239 gboolean case_sensitive; /**< file sorting method (case) */
244 gint delay; /**< in tenths of a second */
253 gboolean disable_saver;
259 gchar *template_string;
266 guint16 background_red;
267 guint16 background_green;
268 guint16 background_blue;
269 guint16 background_alpha;
273 /* properties dialog */
282 gchar *input_file[COLOR_PROFILE_INPUTS];
283 gchar *input_name[COLOR_PROFILE_INPUTS];
286 gboolean use_x11_screen_profile;
290 /* Helpers programs */
300 gboolean enable_metadata_dirs;
302 gboolean save_in_image_file;
303 gboolean save_legacy_IPTC;
304 gboolean warn_on_write_problems;
306 gboolean save_legacy_format;
308 gboolean sync_grouped_files;
310 gboolean confirm_write;
311 gint confirm_timeout;
312 gboolean confirm_after_timeout;
313 gboolean confirm_on_image_change;
314 gboolean confirm_on_dir_change;
315 gboolean keywords_case_sensitive;
316 gboolean write_orientation;
317 gboolean sidecar_extended_name;
319 gboolean check_spelling;
326 gboolean enable_fsmode;
327 gint fixed_w, fixed_h;
328 gint fixed_x1, fixed_y1;
329 gint fixed_x2, fixed_y2;
332 * options in this struct are packed to mode and fsmode entries
335 gboolean mirror_right;
336 gboolean mirror_left;
340 gboolean temp_disable;
341 gboolean fs_mirror_right;
342 gboolean fs_mirror_left;
343 gboolean fs_flip_right;
344 gboolean fs_flip_left;
346 gboolean fs_temp_disable;
350 /* External preview extraction */
353 gchar *select; /**< path to executable */
354 gchar *extract; /**< path to executable */
365 gint formatted_start;
373 gchar *action; /** Used with F1 key */
386 gboolean show_image_text;
387 gboolean show_page_text;
389 gint image_text_position;
390 gint page_text_position;
391 gchar *template_string;
399 /* Selectable bars */
406 /* Alternate similarity algorithm */
409 gboolean grayscale; /**< convert fingerprint to greyscale */
410 } alternate_similarity_algorithm;
412 gchar *mouse_button_8; /**< user-definable mouse buttons */
413 gchar *mouse_button_9; /**< user-definable mouse buttons */
415 gboolean class_filter[FILE_FORMAT_CLASSES]; /**< class file filter */
417 gboolean read_metadata_in_idle;
419 gboolean disable_gpu; /**< GPU - see main.cc */
420 gboolean override_disable_gpu; /**< GPU - see main.cc */
422 GList *disabled_plugins;
429 gboolean startup_blank;
430 gboolean startup_full_screen;
431 gboolean startup_in_slideshow;
432 gboolean startup_command_line_collection;
435 gboolean log_window_show;
439 GList *collection_list;
444 gboolean new_instance;
447 extern ConfOptions *options;
448 extern CommandLine *command_line;
450 ConfOptions *init_options(ConfOptions *options);
451 void setup_default_options(ConfOptions *options);
452 void save_options(ConfOptions *options);
453 gboolean load_options(ConfOptions *options);
457 STARTUP_PATH_CURRENT = 0,
462 enum SortActionType {
466 BAR_SORT_ACTION_COUNT
470 BAR_SORT_MODE_FOLDER = 0,
471 BAR_SORT_MODE_COLLECTION,
475 enum SortSelectionType {
476 BAR_SORT_SELECTION_IMAGE = 0,
477 BAR_SORT_SELECTION_SELECTED,
478 BAR_SORT_SELECTION_COUNT
488 DirViewType dir_view_type;
489 FileViewType file_view_type;
494 gboolean case_sensitive;
495 } dir_view_list_sort;
500 gboolean case_sensitive;
501 } file_view_list_sort;
503 gboolean show_thumbnails;
505 gboolean show_file_filter;
506 gboolean show_directory_date;
507 gboolean show_info_pixel;
508 gboolean split_pane_sync;
509 gboolean ignore_alpha;
540 gint histogram_channel;
544 GdkRectangle log_window;
552 } preferences_window;
573 } advanced_exif_window;
575 gboolean tools_float;
576 gboolean tools_hidden;
577 gboolean selectable_toolbars_hidden;
582 gboolean tools_float;
583 gboolean tools_hidden;
590 StartUpPath startup_path;
595 SortActionType action;
597 SortSelectionType selection;
601 void copy_layout_options(LayoutOptions *dest, const LayoutOptions *src);
602 void free_layout_options_content(LayoutOptions *dest);
603 LayoutOptions *init_layout_options(LayoutOptions *options);
605 #endif /* OPTIONS_H */
606 /* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */