Mercurial > geeqie
annotate src/options.h @ 825:ee33d2ddb661
Optionnally display directory's date in list view.
It can be set through Preferences > Advanced > Behavior and
is saved to rc file as layout.show_directory_date option.
author | zas_ |
---|---|
date | Fri, 13 Jun 2008 11:11:57 +0000 |
parents | df541dc41707 |
children | e1d158ac6d36 |
rev | line source |
---|---|
508 | 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; | |
736 | 23 gboolean mousewheel_scrolls; |
508 | 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 | |
594
4cfce4ed35e0
Use a dedicated option to enable keywords and comment saving as XMP tags
zas_
parents:
556
diff
changeset
|
40 gint save_metadata_in_image_file; |
4cfce4ed35e0
Use a dedicated option to enable keywords and comment saving as XMP tags
zas_
parents:
556
diff
changeset
|
41 |
629 | 42 struct { |
43 gboolean restore_path; | |
630
83d3ded39e49
An option to save and restore the last path used was added.
zas_
parents:
629
diff
changeset
|
44 gboolean use_last_path; |
629 | 45 gchar *path; |
46 } startup; | |
47 | |
508 | 48 /* file ops */ |
49 struct { | |
50 gint enable_in_place_rename; | |
51 | |
52 gint confirm_delete; | |
53 gint enable_delete_key; | |
54 gint safe_delete_enable; | |
55 gchar *safe_delete_path; | |
56 gint safe_delete_folder_maxsize; | |
57 } file_ops; | |
58 | |
59 /* image */ | |
60 struct { | |
61 gint exif_rotate_enable; | |
62 gint scroll_reset_method; | |
63 gint fit_window_to_image; | |
64 gint limit_window_size; | |
65 gint max_window_size; | |
66 gint limit_autofit_size; | |
67 gint max_autofit_size; | |
68 | |
69 gint tile_cache_max; /* in megabytes */ | |
70 gint dither_quality; | |
71 gint enable_read_ahead; | |
72 | |
73 gint zoom_mode; | |
74 gint zoom_2pass; | |
75 gint zoom_to_fit_allow_expand; | |
76 gint zoom_quality; | |
77 gint zoom_increment; /* 10 is 1.0, 5 is 0.05, 20 is 2.0, etc. */ | |
78 | |
79 gint use_custom_border_color; | |
80 GdkColor border_color; | |
81 | |
82 gint read_buffer_size; /* bytes to read from file per read() */ | |
83 gint idle_read_loop_count; /* the number of bytes to read per idle call (define x image.read_buffer_size) */ | |
84 } image; | |
85 | |
86 /* thumbnails */ | |
87 struct { | |
88 gint max_width; | |
89 gint max_height; | |
90 gint enable_caching; | |
91 gint cache_into_dirs; | |
92 gint fast; | |
93 gint use_xvpics; | |
94 gint spec_standard; | |
95 gint quality; | |
96 } thumbnails; | |
97 | |
98 /* file filtering */ | |
99 struct { | |
100 gint show_hidden_files; | |
101 gint show_dot_directory; | |
102 gint disable; | |
103 } file_filter; | |
104 | |
105 /* collections */ | |
106 struct { | |
107 gint rectangular_selection; | |
108 } collections; | |
109 | |
110 /* editors */ | |
730 | 111 Editor editor[GQ_EDITOR_SLOTS]; |
508 | 112 |
737
8a8873e7a552
Make shell command and its option rc file options instead of hardcoded strings.
zas_
parents:
736
diff
changeset
|
113 /* shell */ |
8a8873e7a552
Make shell command and its option rc file options instead of hardcoded strings.
zas_
parents:
736
diff
changeset
|
114 struct { |
8a8873e7a552
Make shell command and its option rc file options instead of hardcoded strings.
zas_
parents:
736
diff
changeset
|
115 gchar *path; |
8a8873e7a552
Make shell command and its option rc file options instead of hardcoded strings.
zas_
parents:
736
diff
changeset
|
116 gchar *options; |
8a8873e7a552
Make shell command and its option rc file options instead of hardcoded strings.
zas_
parents:
736
diff
changeset
|
117 } shell; |
8a8873e7a552
Make shell command and its option rc file options instead of hardcoded strings.
zas_
parents:
736
diff
changeset
|
118 |
508 | 119 /* file sorting */ |
120 struct { | |
121 SortType method; | |
122 gint ascending; | |
123 gint case_sensitive; /* file sorting method (case) */ | |
124 } file_sort; | |
125 | |
126 /* slideshow */ | |
127 struct { | |
128 gint delay; /* in tenths of a second */ | |
129 gint random; | |
130 gint repeat; | |
131 } slideshow; | |
132 | |
133 /* fullscreen */ | |
134 struct { | |
135 gint screen; | |
136 gint clean_flip; | |
137 gint disable_saver; | |
138 gint above; | |
139 } fullscreen; | |
140 | |
612 | 141 /* histogram */ |
142 struct { | |
143 guint last_channel_mode; | |
144 guint last_log_mode; | |
145 } histogram; | |
146 | |
508 | 147 /* image overlay */ |
148 struct { | |
149 struct { | |
638
8cc9f349c670
Rename option image_overlay.common.enabled to image_overlay.common.state
zas_
parents:
630
diff
changeset
|
150 guint state; |
508 | 151 gint show_at_startup; |
152 gchar *template_string; | |
822
df541dc41707
Allow to set image overlay info position through options:
zas_
parents:
764
diff
changeset
|
153 gint x; |
df541dc41707
Allow to set image overlay info position through options:
zas_
parents:
764
diff
changeset
|
154 gint y; |
508 | 155 } common; |
156 } image_overlay; | |
157 | |
158 /* layout */ | |
159 struct { | |
160 gchar *order; | |
161 gint style; | |
162 | |
163 DirViewType dir_view_type; | |
556
fe675761d091
Replace Layout icon_view field by more generic file_view_type.
zas_
parents:
508
diff
changeset
|
164 FileViewType file_view_type; |
508 | 165 |
166 gint show_thumbnails; | |
167 gint show_marks; | |
825 | 168 gboolean show_directory_date; |
508 | 169 |
170 struct { | |
171 gint w; | |
172 gint h; | |
173 gint x; | |
174 gint y; | |
175 gint maximized; | |
176 gint hdivider_pos; | |
177 gint vdivider_pos; | |
178 } main_window; | |
179 | |
180 struct { | |
181 gint w; | |
182 gint h; | |
183 gint x; | |
184 gint y; | |
185 gint vdivider_pos; | |
186 } float_window; | |
187 | |
764
ae618ebec3e9
Save properties window width and height to rc file and restore
zas_
parents:
740
diff
changeset
|
188 struct { |
ae618ebec3e9
Save properties window width and height to rc file and restore
zas_
parents:
740
diff
changeset
|
189 gint w; |
ae618ebec3e9
Save properties window width and height to rc file and restore
zas_
parents:
740
diff
changeset
|
190 gint h; |
ae618ebec3e9
Save properties window width and height to rc file and restore
zas_
parents:
740
diff
changeset
|
191 } properties_window; |
ae618ebec3e9
Save properties window width and height to rc file and restore
zas_
parents:
740
diff
changeset
|
192 |
508 | 193 gint save_window_positions; |
194 | |
195 gint tools_float; | |
196 gint tools_hidden; | |
197 gint tools_restore_state; | |
198 | |
199 gint toolbar_hidden; | |
200 | |
201 } layout; | |
202 | |
203 /* panels */ | |
204 struct { | |
205 struct { | |
206 gint enabled; | |
207 gint width; | |
208 } info; | |
209 | |
210 struct { | |
211 gint enabled; | |
212 gint width; | |
213 } exif; | |
214 | |
215 struct { | |
216 gint enabled; | |
217 gint mode_state; | |
218 gint action_state; | |
219 gint selection_state; | |
220 } sort; | |
221 } panels; | |
222 | |
684 | 223 /* properties dialog */ |
224 struct { | |
225 gchar *tabs_order; | |
226 } properties; | |
508 | 227 |
228 /* color profiles */ | |
229 struct { | |
230 gint enabled; | |
231 gint input_type; | |
232 gchar *input_file[COLOR_PROFILE_INPUTS]; | |
233 gchar *input_name[COLOR_PROFILE_INPUTS]; | |
234 gint screen_type; | |
235 gchar *screen_file; | |
236 gint use_image; | |
237 | |
238 } color_profile; | |
239 | |
240 }; | |
241 | |
242 ConfOptions *options; | |
243 | |
244 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
|
245 void setup_default_options(ConfOptions *options); |
9b0ac8d58c89
Move setup_default_options() and sync_options_with_current_state() to options.[ch].
zas_
parents:
737
diff
changeset
|
246 void sync_options_with_current_state(ConfOptions *options); |
508 | 247 |
248 #endif /* OPTIONS_H */ |