temporarily disable stereo mode, added more stereo prefs
[geeqie.git] / src / options.h
1 /*
2  * Geeqie
3  * Copyright (C) 2008 - 2010 The Geeqie Team
4  *
5  * Authors: Vladimir Nadvornik, Laurent Monin
6  *
7  * This software is released under the GNU General Public License (GNU GPL).
8  * Please read the included file COPYING for more information.
9  * This software comes with no warranty of any kind, use at your own risk!
10  */
11
12 #ifndef OPTIONS_H
13 #define OPTIONS_H
14
15 typedef struct _ConfOptions ConfOptions;
16
17 struct _ConfOptions
18 {
19         /* ui */
20         gboolean progressive_key_scrolling;
21         gboolean place_dialogs_under_mouse;
22         gboolean mousewheel_scrolls;
23         gboolean show_icon_names;
24
25         /* various */
26         gboolean tree_descend_subdirs;
27
28         gboolean lazy_image_sync;
29         gboolean update_on_time_change;
30
31         guint duplicates_similarity_threshold;
32
33         gint open_recent_list_maxsize;
34         gint dnd_icon_size;
35
36         gboolean save_window_positions;
37         gboolean tools_restore_state;
38
39         /* file ops */
40         struct {
41                 gboolean enable_in_place_rename;
42
43                 gboolean confirm_delete;
44                 gboolean enable_delete_key;
45                 gboolean safe_delete_enable;
46                 gchar *safe_delete_path;
47                 gint safe_delete_folder_maxsize;
48         } file_ops;
49
50         /* image */
51         struct {
52                 gboolean exif_rotate_enable;
53                 guint scroll_reset_method;
54                 gboolean fit_window_to_image;
55                 gboolean limit_window_size;
56                 gint max_window_size;
57                 gboolean limit_autofit_size;
58                 gint max_autofit_size;
59
60                 gint tile_cache_max;    /* in megabytes */
61                 gint image_cache_max;   /* in megabytes */
62                 guint dither_quality;
63                 gboolean enable_read_ahead;
64
65                 ZoomMode zoom_mode;
66                 gboolean zoom_2pass;
67                 gboolean zoom_to_fit_allow_expand;
68                 guint zoom_quality;
69                 gint zoom_increment;    /* 10 is 1.0, 5 is 0.05, 20 is 2.0, etc. */
70
71                 gboolean use_custom_border_color_in_fullscreen;
72                 gboolean use_custom_border_color;
73                 GdkColor border_color;
74         } image;
75
76         /* thumbnails */
77         struct {
78                 gint max_width;
79                 gint max_height;
80                 gboolean enable_caching;
81                 gboolean cache_into_dirs;
82                 gboolean use_xvpics;
83                 gboolean spec_standard;
84                 guint quality;
85                 gboolean use_exif;
86         } thumbnails;
87
88         /* file filtering */
89         struct {
90                 gboolean show_hidden_files;
91                 gboolean show_dot_directory;
92                 gboolean disable;
93         } file_filter;
94
95         struct {
96                 gchar *ext;
97         } sidecar;
98         
99         /* collections */
100         struct {
101                 gboolean rectangular_selection;
102         } collections;
103
104         /* shell */
105         struct {
106                 gchar *path;
107                 gchar *options;
108         } shell;
109         
110         /* file sorting */
111         struct {
112                 SortType method;
113                 gboolean ascending;
114                 gboolean case_sensitive; /* file sorting method (case) */
115         } file_sort;
116
117         /* slideshow */
118         struct {
119                 gint delay;     /* in tenths of a second */
120                 gboolean random;
121                 gboolean repeat;
122         } slideshow;
123
124         /* fullscreen */
125         struct {
126                 gint screen;
127                 gboolean clean_flip;
128                 gboolean disable_saver;
129                 gboolean above;
130         } fullscreen;
131
132         /* image overlay */
133         struct {
134                 gchar *template_string;
135                 gint x;
136                 gint y;
137         } image_overlay;
138
139         /* properties dialog */
140         struct {
141                 gchar *tabs_order;
142         } properties;
143
144         /* color profiles */
145         struct {
146                 gboolean enabled;
147                 gint input_type;
148                 gchar *input_file[COLOR_PROFILE_INPUTS];
149                 gchar *input_name[COLOR_PROFILE_INPUTS];
150                 gchar *screen_file;
151                 gboolean use_image;
152                 gboolean use_x11_screen_profile;
153
154         } color_profile;
155
156         /* Helpers programs */
157         struct {
158                 struct {
159                         gchar *command_name;
160                         gchar *command_line;
161                 } html_browser;
162         } helpers;
163
164         /* Metadata */
165         struct {
166                 gboolean enable_metadata_dirs;
167
168                 gboolean save_in_image_file;
169                 gboolean save_legacy_IPTC;
170                 gboolean warn_on_write_problems;
171
172                 gboolean save_legacy_format;
173                 
174                 gboolean sync_grouped_files;
175                 
176                 gboolean confirm_write;
177                 gint confirm_timeout;
178                 gboolean confirm_after_timeout;
179                 gboolean confirm_on_image_change;
180                 gboolean confirm_on_dir_change;
181                 gboolean keywords_case_sensitive;
182                 gboolean write_orientation;
183         } metadata;
184         
185         /* Stereo */
186         struct {
187                 gint mode;;
188                 gint fsmode;
189                 gboolean enable_fsmode;
190                 gint fixed_w, fixed_h;
191                 gint fixed_x1, fixed_y1;
192                 gint fixed_x2, fixed_y2;
193                 struct { /* options in this struct are packed to mode and fsmode entries */
194                         gboolean mirror_right;
195                         gboolean mirror_left;
196                         gboolean flip_right;
197                         gboolean flip_left;
198                         gboolean swap;
199                         gboolean temp_disable;
200                         gboolean fs_mirror_right;
201                         gboolean fs_mirror_left;
202                         gboolean fs_flip_right;
203                         gboolean fs_flip_left;
204                         gboolean fs_swap;
205                         gboolean fs_temp_disable;
206                 } tmp; 
207         } stereo;
208 };
209
210 ConfOptions *options;
211 CommandLine *command_line;
212
213 ConfOptions *init_options(ConfOptions *options);
214 void setup_default_options(ConfOptions *options);
215 void save_options(ConfOptions *options);
216 gboolean load_options(ConfOptions *options);
217
218 void copy_layout_options(LayoutOptions *dest, const LayoutOptions *src);
219 void free_layout_options_content(LayoutOptions *dest);
220 LayoutOptions *init_layout_options(LayoutOptions *options);
221
222 #endif /* OPTIONS_H */
223 /* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */