Mercurial > geeqie
annotate src/options.h @ 1768:a22c42d36e2e
German translation update
author | mow |
---|---|
date | Tue, 13 Oct 2009 21:49:42 +0000 |
parents | b8235f919d6b |
children | 956aab097ea7 |
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 | |
1644
b8235f919d6b
the options for custom border color were made independent
nadvornik
parents:
1626
diff
changeset
|
71 gboolean use_custom_border_color_in_fullscreen; |
1626
1d7941c147be
Add an option to Image preferences to restrict custom border to fullscreen mode only. Bug 2798062.
zas_
parents:
1590
diff
changeset
|
72 gboolean use_custom_border_color; |
508 | 73 GdkColor border_color; |
74 } image; | |
75 | |
76 /* thumbnails */ | |
77 struct { | |
78 gint max_width; | |
79 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
|
80 gboolean enable_caching; |
3dd2cb78d0f9
Make better matching between options types in options.h and the rest of the code.
zas_
parents:
858
diff
changeset
|
81 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
|
82 gboolean use_xvpics; |
3dd2cb78d0f9
Make better matching between options types in options.h and the rest of the code.
zas_
parents:
858
diff
changeset
|
83 gboolean spec_standard; |
3dd2cb78d0f9
Make better matching between options types in options.h and the rest of the code.
zas_
parents:
858
diff
changeset
|
84 guint quality; |
1060 | 85 gboolean use_exif; |
508 | 86 } thumbnails; |
87 | |
88 /* file filtering */ | |
89 struct { | |
870
3dd2cb78d0f9
Make better matching between options types in options.h and the rest of the code.
zas_
parents:
858
diff
changeset
|
90 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
|
91 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
|
92 gboolean disable; |
508 | 93 } file_filter; |
94 | |
1229
878718372aca
sidecar files grouping was made case-insensitive
nadvornik
parents:
1208
diff
changeset
|
95 struct { |
878718372aca
sidecar files grouping was made case-insensitive
nadvornik
parents:
1208
diff
changeset
|
96 gchar *ext; |
878718372aca
sidecar files grouping was made case-insensitive
nadvornik
parents:
1208
diff
changeset
|
97 } sidecar; |
878718372aca
sidecar files grouping was made case-insensitive
nadvornik
parents:
1208
diff
changeset
|
98 |
508 | 99 /* collections */ |
100 struct { | |
870
3dd2cb78d0f9
Make better matching between options types in options.h and the rest of the code.
zas_
parents:
858
diff
changeset
|
101 gboolean rectangular_selection; |
508 | 102 } collections; |
103 | |
737
8a8873e7a552
Make shell command and its option rc file options instead of hardcoded strings.
zas_
parents:
736
diff
changeset
|
104 /* shell */ |
8a8873e7a552
Make shell command and its option rc file options instead of hardcoded strings.
zas_
parents:
736
diff
changeset
|
105 struct { |
8a8873e7a552
Make shell command and its option rc file options instead of hardcoded strings.
zas_
parents:
736
diff
changeset
|
106 gchar *path; |
8a8873e7a552
Make shell command and its option rc file options instead of hardcoded strings.
zas_
parents:
736
diff
changeset
|
107 gchar *options; |
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 |
508 | 110 /* file sorting */ |
111 struct { | |
112 SortType method; | |
870
3dd2cb78d0f9
Make better matching between options types in options.h and the rest of the code.
zas_
parents:
858
diff
changeset
|
113 gboolean ascending; |
3dd2cb78d0f9
Make better matching between options types in options.h and the rest of the code.
zas_
parents:
858
diff
changeset
|
114 gboolean case_sensitive; /* file sorting method (case) */ |
508 | 115 } file_sort; |
116 | |
117 /* slideshow */ | |
118 struct { | |
119 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
|
120 gboolean random; |
3dd2cb78d0f9
Make better matching between options types in options.h and the rest of the code.
zas_
parents:
858
diff
changeset
|
121 gboolean repeat; |
508 | 122 } slideshow; |
123 | |
124 /* fullscreen */ | |
125 struct { | |
126 gint screen; | |
870
3dd2cb78d0f9
Make better matching between options types in options.h and the rest of the code.
zas_
parents:
858
diff
changeset
|
127 gboolean clean_flip; |
3dd2cb78d0f9
Make better matching between options types in options.h and the rest of the code.
zas_
parents:
858
diff
changeset
|
128 gboolean disable_saver; |
3dd2cb78d0f9
Make better matching between options types in options.h and the rest of the code.
zas_
parents:
858
diff
changeset
|
129 gboolean above; |
508 | 130 } fullscreen; |
131 | |
132 /* image overlay */ | |
133 struct { | |
1336 | 134 gchar *template_string; |
135 gint x; | |
136 gint y; | |
508 | 137 } image_overlay; |
138 | |
684 | 139 /* properties dialog */ |
140 struct { | |
141 gchar *tabs_order; | |
142 } properties; | |
508 | 143 |
144 /* color profiles */ | |
145 struct { | |
870
3dd2cb78d0f9
Make better matching between options types in options.h and the rest of the code.
zas_
parents:
858
diff
changeset
|
146 gboolean enabled; |
508 | 147 gint input_type; |
148 gchar *input_file[COLOR_PROFILE_INPUTS]; | |
149 gchar *input_name[COLOR_PROFILE_INPUTS]; | |
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; |
1548 | 152 gboolean use_x11_screen_profile; |
508 | 153 |
154 } color_profile; | |
155 | |
884
ff16ed0d2c8a
Improve ways to specify html browser (used for help, see bug 2015099).
zas_
parents:
870
diff
changeset
|
156 /* Helpers programs */ |
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 struct { |
ff16ed0d2c8a
Improve ways to specify html browser (used for help, see bug 2015099).
zas_
parents:
870
diff
changeset
|
159 gchar *command_name; |
ff16ed0d2c8a
Improve ways to specify html browser (used for help, see bug 2015099).
zas_
parents:
870
diff
changeset
|
160 gchar *command_line; |
ff16ed0d2c8a
Improve ways to specify html browser (used for help, see bug 2015099).
zas_
parents:
870
diff
changeset
|
161 } html_browser; |
ff16ed0d2c8a
Improve ways to specify html browser (used for help, see bug 2015099).
zas_
parents:
870
diff
changeset
|
162 } helpers; |
1013
88ebc61e33ae
Allow to override documentation paths through options:
zas_
parents:
980
diff
changeset
|
163 |
1208 | 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; | |
1244 | 178 gboolean confirm_after_timeout; |
1208 | 179 gboolean confirm_on_image_change; |
180 gboolean confirm_on_dir_change; | |
1590
1a5a3b7ca2cd
use "keywords" instead of "tags" in option name, it is more consistent
nadvornik
parents:
1567
diff
changeset
|
181 gboolean keywords_case_sensitive; |
1567
c776b1310ca6
added an option to write image orientation to the metadata
nadvornik
parents:
1548
diff
changeset
|
182 gboolean write_orientation; |
1208 | 183 } metadata; |
184 | |
508 | 185 }; |
186 | |
187 ConfOptions *options; | |
1313 | 188 CommandLine *command_line; |
508 | 189 |
190 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
|
191 void setup_default_options(ConfOptions *options); |
1019 | 192 void save_options(ConfOptions *options); |
1313 | 193 gboolean load_options(ConfOptions *options); |
1019 | 194 |
1309 | 195 void copy_layout_options(LayoutOptions *dest, const LayoutOptions *src); |
196 void free_layout_options_content(LayoutOptions *dest); | |
1436
d7a6fb7a90dd
completely separated global and layout window options
nadvornik
parents:
1336
diff
changeset
|
197 LayoutOptions *init_layout_options(LayoutOptions *options); |
508 | 198 |
199 #endif /* OPTIONS_H */ | |
1055
1646720364cf
Adding a vim modeline to all files - patch by Klaus Ethgen
nadvornik
parents:
1019
diff
changeset
|
200 /* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */ |