Mercurial > geeqie
annotate src/options.h @ 1511:73cecf473802
startup path options simplified and moved to layout options
author | nadvornik |
---|---|
date | Sat, 04 Apr 2009 21:14:34 +0000 |
parents | d7a6fb7a90dd |
children | 0a1266bde95b |
rev | line source |
---|---|
508 | 1 /* |
2 * Geeqie | |
1284 | 3 * Copyright (C) 2008 - 2009 The Geeqie Team |
508 | 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 */ | |
870
3dd2cb78d0f9
Make better matching between options types in options.h and the rest of the code.
zas_
parents:
858
diff
changeset
|
20 gboolean progressive_key_scrolling; |
3dd2cb78d0f9
Make better matching between options types in options.h and the rest of the code.
zas_
parents:
858
diff
changeset
|
21 gboolean place_dialogs_under_mouse; |
736 | 22 gboolean mousewheel_scrolls; |
870
3dd2cb78d0f9
Make better matching between options types in options.h and the rest of the code.
zas_
parents:
858
diff
changeset
|
23 gboolean show_icon_names; |
3dd2cb78d0f9
Make better matching between options types in options.h and the rest of the code.
zas_
parents:
858
diff
changeset
|
24 gboolean show_copy_path; |
508 | 25 |
26 /* various */ | |
870
3dd2cb78d0f9
Make better matching between options types in options.h and the rest of the code.
zas_
parents:
858
diff
changeset
|
27 gboolean tree_descend_subdirs; |
508 | 28 |
870
3dd2cb78d0f9
Make better matching between options types in options.h and the rest of the code.
zas_
parents:
858
diff
changeset
|
29 gboolean lazy_image_sync; |
3dd2cb78d0f9
Make better matching between options types in options.h and the rest of the code.
zas_
parents:
858
diff
changeset
|
30 gboolean update_on_time_change; |
508 | 31 |
870
3dd2cb78d0f9
Make better matching between options types in options.h and the rest of the code.
zas_
parents:
858
diff
changeset
|
32 guint duplicates_similarity_threshold; |
508 | 33 |
34 gint open_recent_list_maxsize; | |
35 gint dnd_icon_size; | |
36 | |
1436
d7a6fb7a90dd
completely separated global and layout window options
nadvornik
parents:
1336
diff
changeset
|
37 gboolean save_window_positions; |
d7a6fb7a90dd
completely separated global and layout window options
nadvornik
parents:
1336
diff
changeset
|
38 gboolean tools_restore_state; |
594
4cfce4ed35e0
Use a dedicated option to enable keywords and comment saving as XMP tags
zas_
parents:
556
diff
changeset
|
39 |
508 | 40 /* file ops */ |
41 struct { | |
870
3dd2cb78d0f9
Make better matching between options types in options.h and the rest of the code.
zas_
parents:
858
diff
changeset
|
42 gboolean enable_in_place_rename; |
508 | 43 |
870
3dd2cb78d0f9
Make better matching between options types in options.h and the rest of the code.
zas_
parents:
858
diff
changeset
|
44 gboolean confirm_delete; |
3dd2cb78d0f9
Make better matching between options types in options.h and the rest of the code.
zas_
parents:
858
diff
changeset
|
45 gboolean enable_delete_key; |
3dd2cb78d0f9
Make better matching between options types in options.h and the rest of the code.
zas_
parents:
858
diff
changeset
|
46 gboolean safe_delete_enable; |
508 | 47 gchar *safe_delete_path; |
48 gint safe_delete_folder_maxsize; | |
49 } file_ops; | |
50 | |
51 /* image */ | |
52 struct { | |
858 | 53 gboolean exif_rotate_enable; |
54 guint scroll_reset_method; | |
55 gboolean fit_window_to_image; | |
56 gboolean limit_window_size; | |
508 | 57 gint max_window_size; |
858 | 58 gboolean limit_autofit_size; |
508 | 59 gint max_autofit_size; |
60 | |
61 gint tile_cache_max; /* in megabytes */ | |
848 | 62 gint image_cache_max; /* in megabytes */ |
870
3dd2cb78d0f9
Make better matching between options types in options.h and the rest of the code.
zas_
parents:
858
diff
changeset
|
63 guint dither_quality; |
858 | 64 gboolean enable_read_ahead; |
508 | 65 |
885
ad420f2eb789
Use a specific enum for image.zoom_mode values (ZoomMode) and
zas_
parents:
884
diff
changeset
|
66 ZoomMode zoom_mode; |
858 | 67 gboolean zoom_2pass; |
68 gboolean zoom_to_fit_allow_expand; | |
870
3dd2cb78d0f9
Make better matching between options types in options.h and the rest of the code.
zas_
parents:
858
diff
changeset
|
69 guint zoom_quality; |
508 | 70 gint zoom_increment; /* 10 is 1.0, 5 is 0.05, 20 is 2.0, etc. */ |
71 | |
72 gint use_custom_border_color; | |
73 GdkColor border_color; | |
74 | |
75 gint read_buffer_size; /* bytes to read from file per read() */ | |
76 gint idle_read_loop_count; /* the number of bytes to read per idle call (define x image.read_buffer_size) */ | |
77 } image; | |
78 | |
79 /* thumbnails */ | |
80 struct { | |
81 gint max_width; | |
82 gint max_height; | |
870
3dd2cb78d0f9
Make better matching between options types in options.h and the rest of the code.
zas_
parents:
858
diff
changeset
|
83 gboolean enable_caching; |
3dd2cb78d0f9
Make better matching between options types in options.h and the rest of the code.
zas_
parents:
858
diff
changeset
|
84 gboolean cache_into_dirs; |
3dd2cb78d0f9
Make better matching between options types in options.h and the rest of the code.
zas_
parents:
858
diff
changeset
|
85 gboolean fast; |
3dd2cb78d0f9
Make better matching between options types in options.h and the rest of the code.
zas_
parents:
858
diff
changeset
|
86 gboolean use_xvpics; |
3dd2cb78d0f9
Make better matching between options types in options.h and the rest of the code.
zas_
parents:
858
diff
changeset
|
87 gboolean spec_standard; |
3dd2cb78d0f9
Make better matching between options types in options.h and the rest of the code.
zas_
parents:
858
diff
changeset
|
88 guint quality; |
1060 | 89 gboolean use_exif; |
508 | 90 } thumbnails; |
91 | |
92 /* file filtering */ | |
93 struct { | |
870
3dd2cb78d0f9
Make better matching between options types in options.h and the rest of the code.
zas_
parents:
858
diff
changeset
|
94 gboolean show_hidden_files; |
3dd2cb78d0f9
Make better matching between options types in options.h and the rest of the code.
zas_
parents:
858
diff
changeset
|
95 gboolean show_dot_directory; |
3dd2cb78d0f9
Make better matching between options types in options.h and the rest of the code.
zas_
parents:
858
diff
changeset
|
96 gboolean disable; |
508 | 97 } file_filter; |
98 | |
1229
878718372aca
sidecar files grouping was made case-insensitive
nadvornik
parents:
1208
diff
changeset
|
99 struct { |
878718372aca
sidecar files grouping was made case-insensitive
nadvornik
parents:
1208
diff
changeset
|
100 gchar *ext; |
878718372aca
sidecar files grouping was made case-insensitive
nadvornik
parents:
1208
diff
changeset
|
101 } sidecar; |
878718372aca
sidecar files grouping was made case-insensitive
nadvornik
parents:
1208
diff
changeset
|
102 |
508 | 103 /* collections */ |
104 struct { | |
870
3dd2cb78d0f9
Make better matching between options types in options.h and the rest of the code.
zas_
parents:
858
diff
changeset
|
105 gboolean rectangular_selection; |
508 | 106 } collections; |
107 | |
737
8a8873e7a552
Make shell command and its option rc file options instead of hardcoded strings.
zas_
parents:
736
diff
changeset
|
108 /* shell */ |
8a8873e7a552
Make shell command and its option rc file options instead of hardcoded strings.
zas_
parents:
736
diff
changeset
|
109 struct { |
8a8873e7a552
Make shell command and its option rc file options instead of hardcoded strings.
zas_
parents:
736
diff
changeset
|
110 gchar *path; |
8a8873e7a552
Make shell command and its option rc file options instead of hardcoded strings.
zas_
parents:
736
diff
changeset
|
111 gchar *options; |
8a8873e7a552
Make shell command and its option rc file options instead of hardcoded strings.
zas_
parents:
736
diff
changeset
|
112 } shell; |
8a8873e7a552
Make shell command and its option rc file options instead of hardcoded strings.
zas_
parents:
736
diff
changeset
|
113 |
508 | 114 /* file sorting */ |
115 struct { | |
116 SortType method; | |
870
3dd2cb78d0f9
Make better matching between options types in options.h and the rest of the code.
zas_
parents:
858
diff
changeset
|
117 gboolean ascending; |
3dd2cb78d0f9
Make better matching between options types in options.h and the rest of the code.
zas_
parents:
858
diff
changeset
|
118 gboolean case_sensitive; /* file sorting method (case) */ |
508 | 119 } file_sort; |
120 | |
121 /* slideshow */ | |
122 struct { | |
123 gint delay; /* in tenths of a second */ | |
870
3dd2cb78d0f9
Make better matching between options types in options.h and the rest of the code.
zas_
parents:
858
diff
changeset
|
124 gboolean random; |
3dd2cb78d0f9
Make better matching between options types in options.h and the rest of the code.
zas_
parents:
858
diff
changeset
|
125 gboolean repeat; |
508 | 126 } slideshow; |
127 | |
128 /* fullscreen */ | |
129 struct { | |
130 gint screen; | |
870
3dd2cb78d0f9
Make better matching between options types in options.h and the rest of the code.
zas_
parents:
858
diff
changeset
|
131 gboolean clean_flip; |
3dd2cb78d0f9
Make better matching between options types in options.h and the rest of the code.
zas_
parents:
858
diff
changeset
|
132 gboolean disable_saver; |
3dd2cb78d0f9
Make better matching between options types in options.h and the rest of the code.
zas_
parents:
858
diff
changeset
|
133 gboolean above; |
508 | 134 } fullscreen; |
135 | |
136 /* image overlay */ | |
137 struct { | |
1336 | 138 gchar *template_string; |
139 gint x; | |
140 gint y; | |
508 | 141 } image_overlay; |
142 | |
684 | 143 /* properties dialog */ |
144 struct { | |
145 gchar *tabs_order; | |
146 } properties; | |
508 | 147 |
148 /* color profiles */ | |
149 struct { | |
870
3dd2cb78d0f9
Make better matching between options types in options.h and the rest of the code.
zas_
parents:
858
diff
changeset
|
150 gboolean enabled; |
508 | 151 gint input_type; |
152 gchar *input_file[COLOR_PROFILE_INPUTS]; | |
153 gchar *input_name[COLOR_PROFILE_INPUTS]; | |
154 gint screen_type; | |
155 gchar *screen_file; | |
870
3dd2cb78d0f9
Make better matching between options types in options.h and the rest of the code.
zas_
parents:
858
diff
changeset
|
156 gboolean use_image; |
508 | 157 |
158 } color_profile; | |
159 | |
884
ff16ed0d2c8a
Improve ways to specify html browser (used for help, see bug 2015099).
zas_
parents:
870
diff
changeset
|
160 /* Helpers programs */ |
ff16ed0d2c8a
Improve ways to specify html browser (used for help, see bug 2015099).
zas_
parents:
870
diff
changeset
|
161 struct { |
ff16ed0d2c8a
Improve ways to specify html browser (used for help, see bug 2015099).
zas_
parents:
870
diff
changeset
|
162 struct { |
ff16ed0d2c8a
Improve ways to specify html browser (used for help, see bug 2015099).
zas_
parents:
870
diff
changeset
|
163 gchar *command_name; |
ff16ed0d2c8a
Improve ways to specify html browser (used for help, see bug 2015099).
zas_
parents:
870
diff
changeset
|
164 gchar *command_line; |
ff16ed0d2c8a
Improve ways to specify html browser (used for help, see bug 2015099).
zas_
parents:
870
diff
changeset
|
165 } html_browser; |
ff16ed0d2c8a
Improve ways to specify html browser (used for help, see bug 2015099).
zas_
parents:
870
diff
changeset
|
166 } helpers; |
1013
88ebc61e33ae
Allow to override documentation paths through options:
zas_
parents:
980
diff
changeset
|
167 |
1208 | 168 /* Metadata */ |
169 struct { | |
170 gboolean enable_metadata_dirs; | |
171 | |
172 gboolean save_in_image_file; | |
173 gboolean save_legacy_IPTC; | |
174 gboolean warn_on_write_problems; | |
175 | |
176 gboolean save_legacy_format; | |
177 | |
178 gboolean sync_grouped_files; | |
179 | |
180 gboolean confirm_write; | |
181 gint confirm_timeout; | |
1244 | 182 gboolean confirm_after_timeout; |
1208 | 183 gboolean confirm_on_image_change; |
184 gboolean confirm_on_dir_change; | |
185 } metadata; | |
186 | |
508 | 187 }; |
188 | |
189 ConfOptions *options; | |
1313 | 190 CommandLine *command_line; |
508 | 191 |
192 ConfOptions *init_options(ConfOptions *options); | |
740
9b0ac8d58c89
Move setup_default_options() and sync_options_with_current_state() to options.[ch].
zas_
parents:
737
diff
changeset
|
193 void setup_default_options(ConfOptions *options); |
1019 | 194 void save_options(ConfOptions *options); |
1313 | 195 gboolean load_options(ConfOptions *options); |
1019 | 196 |
1309 | 197 void copy_layout_options(LayoutOptions *dest, const LayoutOptions *src); |
198 void free_layout_options_content(LayoutOptions *dest); | |
1436
d7a6fb7a90dd
completely separated global and layout window options
nadvornik
parents:
1336
diff
changeset
|
199 LayoutOptions *init_layout_options(LayoutOptions *options); |
508 | 200 |
201 #endif /* OPTIONS_H */ | |
1055
1646720364cf
Adding a vim modeline to all files - patch by Klaus Ethgen
nadvornik
parents:
1019
diff
changeset
|
202 /* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */ |