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