Rename options:
[geeqie.git] / src / options.h
1 /*
2  * Geeqie
3  * Copyright (C) 2008 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
20         /* ui */
21         gint progressive_key_scrolling;
22         gint place_dialogs_under_mouse;
23         gint mousewheel_scrolls;
24         gint show_icon_names;
25         gint show_copy_path;
26
27         /* various */
28         gint enable_metadata_dirs;
29
30         gint tree_descend_subdirs;
31
32         gint lazy_image_sync;
33         gint update_on_time_change;
34
35         gint duplicates_similarity_threshold;
36
37         gint open_recent_list_maxsize;
38         gint dnd_icon_size;
39
40         gint save_metadata_in_image_file;
41
42         struct {
43                 gboolean restore_path;
44                 gchar *path;
45         } startup;
46
47         /* file ops */
48         struct {
49                 gint enable_in_place_rename;
50
51                 gint confirm_delete;
52                 gint enable_delete_key;
53                 gint safe_delete_enable;
54                 gchar *safe_delete_path;
55                 gint safe_delete_folder_maxsize;
56         } file_ops;
57
58         /* image */
59         struct {
60                 gint exif_rotate_enable;
61                 gint scroll_reset_method;
62                 gint fit_window_to_image;
63                 gint limit_window_size;
64                 gint max_window_size;
65                 gint limit_autofit_size;
66                 gint max_autofit_size;
67
68                 gint tile_cache_max;    /* in megabytes */
69                 gint dither_quality;
70                 gint enable_read_ahead;
71
72                 gint zoom_mode;
73                 gint zoom_2pass;
74                 gint zoom_to_fit_allow_expand;
75                 gint zoom_quality;
76                 gint zoom_increment;    /* 10 is 1.0, 5 is 0.05, 20 is 2.0, etc. */
77
78                 gint use_custom_border_color;
79                 GdkColor border_color;
80
81                 gint read_buffer_size; /* bytes to read from file per read() */
82                 gint idle_read_loop_count; /* the number of bytes to read per idle call (define x image.read_buffer_size) */
83         } image;
84
85         /* thumbnails */
86         struct {
87                 gint max_width;
88                 gint max_height;
89                 gint enable_caching;
90                 gint cache_into_dirs;
91                 gint fast;
92                 gint use_xvpics;
93                 gint spec_standard;
94                 gint quality;
95         } thumbnails;
96
97         /* file filtering */
98         struct {
99                 gint show_hidden_files;
100                 gint show_dot_directory;
101                 gint disable;
102         } file_filter;
103
104         /* collections */
105         struct {
106                 gint rectangular_selection;
107         } collections;
108
109         /* editors */
110         gchar *editor_name[GQ_EDITOR_SLOTS];
111         gchar *editor_command[GQ_EDITOR_SLOTS];
112
113         /* file sorting */
114         struct {
115                 SortType method;
116                 gint ascending;
117                 gint case_sensitive; /* file sorting method (case) */
118         } file_sort;
119
120         /* slideshow */
121         struct {
122                 gint delay;     /* in tenths of a second */
123                 gint random;
124                 gint repeat;
125         } slideshow;
126
127         /* fullscreen */
128         struct {
129                 gint screen;
130                 gint clean_flip;
131                 gint disable_saver;
132                 gint above;
133         } fullscreen;
134
135         /* histogram */
136         struct {
137                 guint last_channel_mode;
138                 guint last_log_mode;
139         } histogram;
140         
141         /* image overlay */
142         struct {
143                 struct {
144                         guint enabled;
145                         gint show_at_startup;
146                         gchar *template_string;
147                 } common;
148         } image_overlay;
149
150         /* layout */
151         struct {
152                 gchar *order;
153                 gint style;
154
155                 DirViewType dir_view_type;
156                 FileViewType file_view_type;
157
158                 gint show_thumbnails;
159                 gint show_marks;
160
161                 struct {
162                         gint w;
163                         gint h;
164                         gint x;
165                         gint y;
166                         gint maximized;
167                         gint hdivider_pos;
168                         gint vdivider_pos;
169                 } main_window;
170
171                 struct {
172                         gint w;
173                         gint h;
174                         gint x;
175                         gint y;
176                         gint vdivider_pos;
177                 } float_window;
178
179                 gint save_window_positions;
180
181                 gint tools_float;
182                 gint tools_hidden;
183                 gint tools_restore_state;
184
185                 gint toolbar_hidden;
186
187         } layout;
188
189         /* panels */
190         struct {
191                 struct {
192                         gint enabled;
193                         gint width;
194                 } info;
195
196                 struct {
197                         gint enabled;
198                         gint width;
199                 } exif;
200
201                 struct {
202                         gint enabled;
203                         gint mode_state;
204                         gint action_state;
205                         gint selection_state;
206                 } sort;
207         } panels;
208
209
210         /* color profiles */
211         struct {
212                 gint enabled;
213                 gint input_type;
214                 gchar *input_file[COLOR_PROFILE_INPUTS];
215                 gchar *input_name[COLOR_PROFILE_INPUTS];
216                 gint screen_type;
217                 gchar *screen_file;
218                 gint use_image;
219
220         } color_profile;
221
222 };
223
224 ConfOptions *options;
225
226 ConfOptions *init_options(ConfOptions *options);
227
228 #endif /* OPTIONS_H */