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.
26 struct SecureSaveInfo;
30 * drag and drop default action
46 gboolean progressive_key_scrolling;
47 guint keyboard_scroll_step;
48 gboolean place_dialogs_under_mouse;
49 gboolean mousewheel_scrolls;
50 gboolean image_lm_click_nav;
51 gboolean image_l_click_archive;
52 gboolean image_l_click_video;
53 gchar *image_l_click_video_editor;
54 gboolean show_icon_names;
55 gboolean show_star_rating;
56 gboolean draw_rectangle;
57 gboolean show_predefined_keyword_tree;
58 gboolean overunderexposed;
59 gboolean expand_menu_toolbar;
60 gboolean hamburger_menu;
63 gboolean tree_descend_subdirs;
64 gboolean view_dir_list_single_click_enter;
66 gboolean circular_selection_lists;
68 gboolean lazy_image_sync;
69 gboolean update_on_time_change;
71 guint duplicates_similarity_threshold;
72 guint duplicates_match;
73 gboolean duplicates_thumbnails;
74 guint duplicates_select_type;
75 gboolean rot_invariant_sim;
78 gint open_recent_list_maxsize;
79 gint recent_folder_image_list_maxsize;
81 DnDAction dnd_default_action;
82 gint clipboard_selection;
84 gboolean save_window_positions;
85 gboolean use_saved_window_positions_for_new_windows;
86 gboolean save_window_workspace;
87 gboolean tools_restore_state;
88 gboolean save_dialog_window_positions;
89 gboolean show_window_ids;
91 gint log_window_lines;
93 gboolean marks_save; /**< save marks on exit */
94 gchar *marks_tooltips[FILEDATA_MARKS_SIZE];
96 gboolean appimage_notifications;
99 gboolean collections_duplicates;
100 gboolean collections_on_top;
101 gboolean hide_window_in_fullscreen;
103 gchar *help_search_engine;
106 * @struct info_comment
107 * info sidebar component height
114 * @struct info_keywords
115 * info sidebar component height
123 * info sidebar component height
130 * @struct info_rating
131 * info sidebar component height
138 * @struct info_headline
139 * info sidebar component height
147 gboolean enable_in_place_rename;
149 gboolean confirm_delete;
150 gboolean confirm_move_to_trash;
151 gboolean enable_delete_key;
152 gboolean safe_delete_enable;
153 gboolean use_system_trash;
154 gchar *safe_delete_path;
155 gint safe_delete_folder_maxsize;
161 gboolean exif_rotate_enable;
162 guint scroll_reset_method;
163 gboolean fit_window_to_image;
164 gboolean limit_window_size;
165 gint max_window_size;
166 gboolean limit_autofit_size;
167 gint max_autofit_size;
168 gint max_enlargement_size;
170 gint tile_cache_max; /**< in megabytes */
171 gint image_cache_max; /**< in megabytes */
172 gboolean enable_read_ahead;
176 gboolean zoom_to_fit_allow_expand;
178 gint zoom_increment; /**< 100 is 1.0, 5 is 0.05, 200 is 2.0, etc. */
179 ZoomStyle zoom_style;
181 gboolean use_custom_border_color_in_fullscreen;
182 gboolean use_custom_border_color;
183 GdkRGBA border_color;
184 GdkRGBA alpha_color_1;
185 GdkRGBA alpha_color_2;
194 gboolean enable_caching;
195 gboolean cache_into_dirs;
197 gboolean spec_standard;
200 gboolean use_color_management;
201 gboolean use_ft_metadata;
202 gint collection_preview;
207 gboolean show_hidden_files;
208 gboolean show_parent_directory;
209 gboolean show_dot_directory;
210 gboolean disable_file_extension_checks;
220 gboolean rectangular_selection;
231 gboolean case_sensitive; /**< file sorting method (case) */
236 gint delay; /**< in tenths of a second */
245 gboolean disable_saver;
251 gchar *template_string;
258 guint16 background_red;
259 guint16 background_green;
260 guint16 background_blue;
261 guint16 background_alpha;
265 /* properties dialog */
274 gchar *input_file[COLOR_PROFILE_INPUTS];
275 gchar *input_name[COLOR_PROFILE_INPUTS];
278 gboolean use_x11_screen_profile;
282 /* Helpers programs */
292 gboolean enable_metadata_dirs;
294 gboolean save_in_image_file;
295 gboolean save_legacy_IPTC;
296 gboolean warn_on_write_problems;
298 gboolean save_legacy_format;
300 gboolean sync_grouped_files;
302 gboolean confirm_write;
303 gint confirm_timeout;
304 gboolean confirm_after_timeout;
305 gboolean confirm_on_image_change;
306 gboolean confirm_on_dir_change;
307 gboolean keywords_case_sensitive;
308 gboolean write_orientation;
309 gboolean sidecar_extended_name;
311 gboolean check_spelling;
318 gboolean enable_fsmode;
319 gint fixed_w, fixed_h;
320 gint fixed_x1, fixed_y1;
321 gint fixed_x2, fixed_y2;
324 * options in this struct are packed to mode and fsmode entries
327 gboolean mirror_right;
328 gboolean mirror_left;
332 gboolean temp_disable;
333 gboolean fs_mirror_right;
334 gboolean fs_mirror_left;
335 gboolean fs_flip_right;
336 gboolean fs_flip_left;
338 gboolean fs_temp_disable;
342 /* External preview extraction */
345 gchar *select; /**< path to executable */
346 gchar *extract; /**< path to executable */
357 gint formatted_start;
365 gchar *action; /** Used with F1 key */
378 gboolean show_image_text;
379 gboolean show_page_text;
381 gint image_text_position;
382 gint page_text_position;
383 gchar *template_string;
391 /* Selectable bars */
398 /* Alternate similarity algorithm */
401 gboolean grayscale; /**< convert fingerprint to greyscale */
402 } alternate_similarity_algorithm;
404 gchar *mouse_button_8; /**< user-definable mouse buttons */
405 gchar *mouse_button_9; /**< user-definable mouse buttons */
407 gboolean class_filter[FILE_FORMAT_CLASSES]; /**< class file filter */
409 gboolean read_metadata_in_idle;
411 gboolean disable_gpu; /**< GPU - see main.cc */
412 gboolean override_disable_gpu; /**< GPU - see main.cc */
414 GList *disabled_plugins;
421 gboolean startup_blank;
422 gboolean startup_full_screen;
423 gboolean startup_in_slideshow;
424 gboolean startup_command_line_collection;
427 gboolean log_window_show;
431 GList *collection_list;
436 gboolean new_instance;
439 extern ConfOptions *options;
440 extern CommandLine *command_line;
442 ConfOptions *init_options(ConfOptions *options);
443 void setup_default_options(ConfOptions *options);
444 void save_options(ConfOptions *options);
445 gboolean load_options(ConfOptions *options);
449 STARTUP_PATH_CURRENT = 0,
454 enum SortActionType {
458 BAR_SORT_ACTION_COUNT
462 BAR_SORT_MODE_FOLDER = 0,
463 BAR_SORT_MODE_COLLECTION,
467 enum SortSelectionType {
468 BAR_SORT_SELECTION_IMAGE = 0,
469 BAR_SORT_SELECTION_SELECTED,
470 BAR_SORT_SELECTION_COUNT
480 DirViewType dir_view_type;
481 FileViewType file_view_type;
486 gboolean case_sensitive;
487 } dir_view_list_sort;
492 gboolean case_sensitive;
493 } file_view_list_sort;
495 gboolean show_thumbnails;
497 gboolean show_file_filter;
498 gboolean show_directory_date;
499 gboolean show_info_pixel;
500 gboolean split_pane_sync;
501 gboolean ignore_alpha;
532 gint histogram_channel;
536 GdkRectangle log_window;
544 } preferences_window;
565 } advanced_exif_window;
567 gboolean tools_float;
568 gboolean tools_hidden;
569 gboolean selectable_toolbars_hidden;
574 gboolean tools_float;
575 gboolean tools_hidden;
582 StartUpPath startup_path;
587 SortActionType action;
589 SortSelectionType selection;
593 void copy_layout_options(LayoutOptions *dest, const LayoutOptions *src);
594 void free_layout_options_content(LayoutOptions *dest);
595 LayoutOptions *init_layout_options(LayoutOptions *options);
597 #endif /* OPTIONS_H */
598 /* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */