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;
109 gchar *help_search_engine;
112 * @struct info_comment
113 * info sidebar component height
120 * @struct info_keywords
121 * info sidebar component height
129 * info sidebar component height
136 * @struct info_rating
137 * info sidebar component height
144 * @struct info_headline
145 * info sidebar component height
153 gboolean enable_in_place_rename;
155 gboolean confirm_delete;
156 gboolean confirm_move_to_trash;
157 gboolean enable_delete_key;
158 gboolean safe_delete_enable;
159 gboolean use_system_trash;
160 gchar *safe_delete_path;
161 gint safe_delete_folder_maxsize;
167 gboolean exif_rotate_enable;
168 guint scroll_reset_method;
169 gboolean fit_window_to_image;
170 gboolean limit_window_size;
171 gint max_window_size;
172 gboolean limit_autofit_size;
173 gint max_autofit_size;
174 gint max_enlargement_size;
176 gint tile_cache_max; /**< in megabytes */
177 gint image_cache_max; /**< in megabytes */
178 gboolean enable_read_ahead;
182 gboolean zoom_to_fit_allow_expand;
184 gint zoom_increment; /**< 100 is 1.0, 5 is 0.05, 200 is 2.0, etc. */
185 ZoomStyle zoom_style;
187 gboolean use_custom_border_color_in_fullscreen;
188 gboolean use_custom_border_color;
189 GdkRGBA border_color;
190 GdkRGBA alpha_color_1;
191 GdkRGBA alpha_color_2;
200 gboolean enable_caching;
201 gboolean cache_into_dirs;
203 gboolean spec_standard;
206 gboolean use_color_management;
207 gboolean use_ft_metadata;
208 gint collection_preview;
213 gboolean show_hidden_files;
214 gboolean show_parent_directory;
215 gboolean show_dot_directory;
216 gboolean disable_file_extension_checks;
226 gboolean rectangular_selection;
237 gboolean case_sensitive; /**< file sorting method (case) */
242 gint delay; /**< in tenths of a second */
251 gboolean disable_saver;
257 gchar *template_string;
264 guint16 background_red;
265 guint16 background_green;
266 guint16 background_blue;
267 guint16 background_alpha;
271 /* properties dialog */
280 gchar *input_file[COLOR_PROFILE_INPUTS];
281 gchar *input_name[COLOR_PROFILE_INPUTS];
284 gboolean use_x11_screen_profile;
288 /* Helpers programs */
298 gboolean enable_metadata_dirs;
300 gboolean save_in_image_file;
301 gboolean save_legacy_IPTC;
302 gboolean warn_on_write_problems;
304 gboolean save_legacy_format;
306 gboolean sync_grouped_files;
308 gboolean confirm_write;
309 gint confirm_timeout;
310 gboolean confirm_after_timeout;
311 gboolean confirm_on_image_change;
312 gboolean confirm_on_dir_change;
313 gboolean keywords_case_sensitive;
314 gboolean write_orientation;
315 gboolean sidecar_extended_name;
317 gboolean check_spelling;
324 gboolean enable_fsmode;
325 gint fixed_w, fixed_h;
326 gint fixed_x1, fixed_y1;
327 gint fixed_x2, fixed_y2;
330 * options in this struct are packed to mode and fsmode entries
333 gboolean mirror_right;
334 gboolean mirror_left;
338 gboolean temp_disable;
339 gboolean fs_mirror_right;
340 gboolean fs_mirror_left;
341 gboolean fs_flip_right;
342 gboolean fs_flip_left;
344 gboolean fs_temp_disable;
348 /* External preview extraction */
351 gchar *select; /**< path to executable */
352 gchar *extract; /**< path to executable */
363 gint formatted_start;
371 gchar *action; /** Used with F1 key */
384 gboolean show_image_text;
385 gboolean show_page_text;
387 gint image_text_position;
388 gint page_text_position;
389 gchar *template_string;
397 /* Selectable bars */
404 /* Alternate similarity algorithm */
407 gboolean grayscale; /**< convert fingerprint to greyscale */
408 } alternate_similarity_algorithm;
410 gchar *mouse_button_8; /**< user-definable mouse buttons */
411 gchar *mouse_button_9; /**< user-definable mouse buttons */
413 gboolean class_filter[FILE_FORMAT_CLASSES]; /**< class file filter */
415 gboolean read_metadata_in_idle;
417 gboolean disable_gpu; /**< GPU - see main.cc */
418 gboolean override_disable_gpu; /**< GPU - see main.cc */
420 GList *disabled_plugins;
427 gboolean startup_blank;
428 gboolean startup_full_screen;
429 gboolean startup_in_slideshow;
430 gboolean startup_command_line_collection;
433 gboolean log_window_show;
437 GList *collection_list;
442 gboolean new_instance;
445 extern ConfOptions *options;
446 extern CommandLine *command_line;
448 ConfOptions *init_options(ConfOptions *options);
449 void setup_default_options(ConfOptions *options);
450 void save_options(ConfOptions *options);
451 gboolean load_options(ConfOptions *options);
455 STARTUP_PATH_CURRENT = 0,
460 enum SortActionType {
464 BAR_SORT_ACTION_COUNT
468 BAR_SORT_MODE_FOLDER = 0,
469 BAR_SORT_MODE_COLLECTION,
473 enum SortSelectionType {
474 BAR_SORT_SELECTION_IMAGE = 0,
475 BAR_SORT_SELECTION_SELECTED,
476 BAR_SORT_SELECTION_COUNT
486 DirViewType dir_view_type;
487 FileViewType file_view_type;
492 gboolean case_sensitive;
493 } dir_view_list_sort;
498 gboolean case_sensitive;
499 } file_view_list_sort;
501 gboolean show_thumbnails;
503 gboolean show_file_filter;
504 gboolean show_directory_date;
505 gboolean show_info_pixel;
506 gboolean split_pane_sync;
507 gboolean ignore_alpha;
538 gint histogram_channel;
542 GdkRectangle log_window;
550 } preferences_window;
571 } advanced_exif_window;
573 gboolean tools_float;
574 gboolean tools_hidden;
575 gboolean selectable_toolbars_hidden;
580 gboolean tools_float;
581 gboolean tools_hidden;
588 StartUpPath startup_path;
593 SortActionType action;
595 SortSelectionType selection;
599 void copy_layout_options(LayoutOptions *dest, const LayoutOptions *src);
600 void free_layout_options_content(LayoutOptions *dest);
601 LayoutOptions *init_layout_options(LayoutOptions *options);
603 #endif /* OPTIONS_H */
604 /* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */