annotate src/options.h @ 885:ad420f2eb789

Use a specific enum for image.zoom_mode values (ZoomMode) and simplify calls to image_zoom_get_default(), dropping last parameter which was always options->image.zoom_mode.
author zas_
date Tue, 15 Jul 2008 12:52:02 +0000
parents ff16ed0d2c8a
children a4a38ea9fbaa
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
508
011a6be611c8 Move options stuff to options.{c,h} and remove globals.c
zas_
parents:
diff changeset
1 /*
011a6be611c8 Move options stuff to options.{c,h} and remove globals.c
zas_
parents:
diff changeset
2 * Geeqie
011a6be611c8 Move options stuff to options.{c,h} and remove globals.c
zas_
parents:
diff changeset
3 * Copyright (C) 2008 The Geeqie Team
011a6be611c8 Move options stuff to options.{c,h} and remove globals.c
zas_
parents:
diff changeset
4 *
011a6be611c8 Move options stuff to options.{c,h} and remove globals.c
zas_
parents:
diff changeset
5 * Authors: Vladimir Nadvornik, Laurent Monin
011a6be611c8 Move options stuff to options.{c,h} and remove globals.c
zas_
parents:
diff changeset
6 *
011a6be611c8 Move options stuff to options.{c,h} and remove globals.c
zas_
parents:
diff changeset
7 * This software is released under the GNU General Public License (GNU GPL).
011a6be611c8 Move options stuff to options.{c,h} and remove globals.c
zas_
parents:
diff changeset
8 * Please read the included file COPYING for more information.
011a6be611c8 Move options stuff to options.{c,h} and remove globals.c
zas_
parents:
diff changeset
9 * This software comes with no warranty of any kind, use at your own risk!
011a6be611c8 Move options stuff to options.{c,h} and remove globals.c
zas_
parents:
diff changeset
10 */
011a6be611c8 Move options stuff to options.{c,h} and remove globals.c
zas_
parents:
diff changeset
11
011a6be611c8 Move options stuff to options.{c,h} and remove globals.c
zas_
parents:
diff changeset
12 #ifndef OPTIONS_H
011a6be611c8 Move options stuff to options.{c,h} and remove globals.c
zas_
parents:
diff changeset
13 #define OPTIONS_H
011a6be611c8 Move options stuff to options.{c,h} and remove globals.c
zas_
parents:
diff changeset
14
011a6be611c8 Move options stuff to options.{c,h} and remove globals.c
zas_
parents:
diff changeset
15 typedef struct _ConfOptions ConfOptions;
011a6be611c8 Move options stuff to options.{c,h} and remove globals.c
zas_
parents:
diff changeset
16
011a6be611c8 Move options stuff to options.{c,h} and remove globals.c
zas_
parents:
diff changeset
17 struct _ConfOptions
011a6be611c8 Move options stuff to options.{c,h} and remove globals.c
zas_
parents:
diff changeset
18 {
011a6be611c8 Move options stuff to options.{c,h} and remove globals.c
zas_
parents:
diff changeset
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
a7289f9e8d29 Fix signed vs unsigned warnings.
zas_
parents: 730
diff changeset
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
011a6be611c8 Move options stuff to options.{c,h} and remove globals.c
zas_
parents:
diff changeset
25
011a6be611c8 Move options stuff to options.{c,h} and remove globals.c
zas_
parents:
diff changeset
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 enable_metadata_dirs;
508
011a6be611c8 Move options stuff to options.{c,h} and remove globals.c
zas_
parents:
diff changeset
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 tree_descend_subdirs;
508
011a6be611c8 Move options stuff to options.{c,h} and remove globals.c
zas_
parents:
diff changeset
30
870
3dd2cb78d0f9 Make better matching between options types in options.h and the rest of the code.
zas_
parents: 858
diff changeset
31 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
32 gboolean update_on_time_change;
508
011a6be611c8 Move options stuff to options.{c,h} and remove globals.c
zas_
parents:
diff changeset
33
870
3dd2cb78d0f9 Make better matching between options types in options.h and the rest of the code.
zas_
parents: 858
diff changeset
34 guint duplicates_similarity_threshold;
508
011a6be611c8 Move options stuff to options.{c,h} and remove globals.c
zas_
parents:
diff changeset
35
011a6be611c8 Move options stuff to options.{c,h} and remove globals.c
zas_
parents:
diff changeset
36 gint open_recent_list_maxsize;
011a6be611c8 Move options stuff to options.{c,h} and remove globals.c
zas_
parents:
diff changeset
37 gint dnd_icon_size;
011a6be611c8 Move options stuff to options.{c,h} and remove globals.c
zas_
parents:
diff changeset
38
870
3dd2cb78d0f9 Make better matching between options types in options.h and the rest of the code.
zas_
parents: 858
diff changeset
39 gboolean save_metadata_in_image_file;
594
4cfce4ed35e0 Use a dedicated option to enable keywords and comment saving as XMP tags
zas_
parents: 556
diff changeset
40
884
ff16ed0d2c8a Improve ways to specify html browser (used for help, see bug 2015099).
zas_
parents: 870
diff changeset
41 /* start up */
629
1fa2cb6d9d65 Rename options:
zas_
parents: 618
diff changeset
42 struct {
1fa2cb6d9d65 Rename options:
zas_
parents: 618
diff changeset
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
1fa2cb6d9d65 Rename options:
zas_
parents: 618
diff changeset
45 gchar *path;
1fa2cb6d9d65 Rename options:
zas_
parents: 618
diff changeset
46 } startup;
1fa2cb6d9d65 Rename options:
zas_
parents: 618
diff changeset
47
508
011a6be611c8 Move options stuff to options.{c,h} and remove globals.c
zas_
parents:
diff changeset
48 /* file ops */
011a6be611c8 Move options stuff to options.{c,h} and remove globals.c
zas_
parents:
diff changeset
49 struct {
870
3dd2cb78d0f9 Make better matching between options types in options.h and the rest of the code.
zas_
parents: 858
diff changeset
50 gboolean enable_in_place_rename;
508
011a6be611c8 Move options stuff to options.{c,h} and remove globals.c
zas_
parents:
diff changeset
51
870
3dd2cb78d0f9 Make better matching between options types in options.h and the rest of the code.
zas_
parents: 858
diff changeset
52 gboolean confirm_delete;
3dd2cb78d0f9 Make better matching between options types in options.h and the rest of the code.
zas_
parents: 858
diff changeset
53 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
54 gboolean safe_delete_enable;
508
011a6be611c8 Move options stuff to options.{c,h} and remove globals.c
zas_
parents:
diff changeset
55 gchar *safe_delete_path;
011a6be611c8 Move options stuff to options.{c,h} and remove globals.c
zas_
parents:
diff changeset
56 gint safe_delete_folder_maxsize;
011a6be611c8 Move options stuff to options.{c,h} and remove globals.c
zas_
parents:
diff changeset
57 } file_ops;
011a6be611c8 Move options stuff to options.{c,h} and remove globals.c
zas_
parents:
diff changeset
58
011a6be611c8 Move options stuff to options.{c,h} and remove globals.c
zas_
parents:
diff changeset
59 /* image */
011a6be611c8 Move options stuff to options.{c,h} and remove globals.c
zas_
parents:
diff changeset
60 struct {
858
171dd6e53656 Use stricter types for image options.
zas_
parents: 848
diff changeset
61 gboolean exif_rotate_enable;
171dd6e53656 Use stricter types for image options.
zas_
parents: 848
diff changeset
62 guint scroll_reset_method;
171dd6e53656 Use stricter types for image options.
zas_
parents: 848
diff changeset
63 gboolean fit_window_to_image;
171dd6e53656 Use stricter types for image options.
zas_
parents: 848
diff changeset
64 gboolean limit_window_size;
508
011a6be611c8 Move options stuff to options.{c,h} and remove globals.c
zas_
parents:
diff changeset
65 gint max_window_size;
858
171dd6e53656 Use stricter types for image options.
zas_
parents: 848
diff changeset
66 gboolean limit_autofit_size;
508
011a6be611c8 Move options stuff to options.{c,h} and remove globals.c
zas_
parents:
diff changeset
67 gint max_autofit_size;
011a6be611c8 Move options stuff to options.{c,h} and remove globals.c
zas_
parents:
diff changeset
68
011a6be611c8 Move options stuff to options.{c,h} and remove globals.c
zas_
parents:
diff changeset
69 gint tile_cache_max; /* in megabytes */
848
e1d158ac6d36 cache size made configurable
nadvornik
parents: 825
diff changeset
70 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
71 guint dither_quality;
858
171dd6e53656 Use stricter types for image options.
zas_
parents: 848
diff changeset
72 gboolean enable_read_ahead;
508
011a6be611c8 Move options stuff to options.{c,h} and remove globals.c
zas_
parents:
diff changeset
73
885
ad420f2eb789 Use a specific enum for image.zoom_mode values (ZoomMode) and
zas_
parents: 884
diff changeset
74 ZoomMode zoom_mode;
858
171dd6e53656 Use stricter types for image options.
zas_
parents: 848
diff changeset
75 gboolean zoom_2pass;
171dd6e53656 Use stricter types for image options.
zas_
parents: 848
diff changeset
76 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
77 guint zoom_quality;
508
011a6be611c8 Move options stuff to options.{c,h} and remove globals.c
zas_
parents:
diff changeset
78 gint zoom_increment; /* 10 is 1.0, 5 is 0.05, 20 is 2.0, etc. */
011a6be611c8 Move options stuff to options.{c,h} and remove globals.c
zas_
parents:
diff changeset
79
011a6be611c8 Move options stuff to options.{c,h} and remove globals.c
zas_
parents:
diff changeset
80 gint use_custom_border_color;
011a6be611c8 Move options stuff to options.{c,h} and remove globals.c
zas_
parents:
diff changeset
81 GdkColor border_color;
011a6be611c8 Move options stuff to options.{c,h} and remove globals.c
zas_
parents:
diff changeset
82
011a6be611c8 Move options stuff to options.{c,h} and remove globals.c
zas_
parents:
diff changeset
83 gint read_buffer_size; /* bytes to read from file per read() */
011a6be611c8 Move options stuff to options.{c,h} and remove globals.c
zas_
parents:
diff changeset
84 gint idle_read_loop_count; /* the number of bytes to read per idle call (define x image.read_buffer_size) */
011a6be611c8 Move options stuff to options.{c,h} and remove globals.c
zas_
parents:
diff changeset
85 } image;
011a6be611c8 Move options stuff to options.{c,h} and remove globals.c
zas_
parents:
diff changeset
86
011a6be611c8 Move options stuff to options.{c,h} and remove globals.c
zas_
parents:
diff changeset
87 /* thumbnails */
011a6be611c8 Move options stuff to options.{c,h} and remove globals.c
zas_
parents:
diff changeset
88 struct {
011a6be611c8 Move options stuff to options.{c,h} and remove globals.c
zas_
parents:
diff changeset
89 gint max_width;
011a6be611c8 Move options stuff to options.{c,h} and remove globals.c
zas_
parents:
diff changeset
90 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
91 gboolean enable_caching;
3dd2cb78d0f9 Make better matching between options types in options.h and the rest of the code.
zas_
parents: 858
diff changeset
92 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
93 gboolean fast;
3dd2cb78d0f9 Make better matching between options types in options.h and the rest of the code.
zas_
parents: 858
diff changeset
94 gboolean use_xvpics;
3dd2cb78d0f9 Make better matching between options types in options.h and the rest of the code.
zas_
parents: 858
diff changeset
95 gboolean spec_standard;
3dd2cb78d0f9 Make better matching between options types in options.h and the rest of the code.
zas_
parents: 858
diff changeset
96 guint quality;
508
011a6be611c8 Move options stuff to options.{c,h} and remove globals.c
zas_
parents:
diff changeset
97 } thumbnails;
011a6be611c8 Move options stuff to options.{c,h} and remove globals.c
zas_
parents:
diff changeset
98
011a6be611c8 Move options stuff to options.{c,h} and remove globals.c
zas_
parents:
diff changeset
99 /* file filtering */
011a6be611c8 Move options stuff to options.{c,h} and remove globals.c
zas_
parents:
diff changeset
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 show_hidden_files;
3dd2cb78d0f9 Make better matching between options types in options.h and the rest of the code.
zas_
parents: 858
diff changeset
102 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
103 gboolean disable;
508
011a6be611c8 Move options stuff to options.{c,h} and remove globals.c
zas_
parents:
diff changeset
104 } file_filter;
011a6be611c8 Move options stuff to options.{c,h} and remove globals.c
zas_
parents:
diff changeset
105
011a6be611c8 Move options stuff to options.{c,h} and remove globals.c
zas_
parents:
diff changeset
106 /* collections */
011a6be611c8 Move options stuff to options.{c,h} and remove globals.c
zas_
parents:
diff changeset
107 struct {
870
3dd2cb78d0f9 Make better matching between options types in options.h and the rest of the code.
zas_
parents: 858
diff changeset
108 gboolean rectangular_selection;
508
011a6be611c8 Move options stuff to options.{c,h} and remove globals.c
zas_
parents:
diff changeset
109 } collections;
011a6be611c8 Move options stuff to options.{c,h} and remove globals.c
zas_
parents:
diff changeset
110
011a6be611c8 Move options stuff to options.{c,h} and remove globals.c
zas_
parents:
diff changeset
111 /* editors */
730
2d8a8e892b5e Use a struct to handle editor's properties.
zas_
parents: 684
diff changeset
112 Editor editor[GQ_EDITOR_SLOTS];
508
011a6be611c8 Move options stuff to options.{c,h} and remove globals.c
zas_
parents:
diff changeset
113
737
8a8873e7a552 Make shell command and its option rc file options instead of hardcoded strings.
zas_
parents: 736
diff changeset
114 /* shell */
8a8873e7a552 Make shell command and its option rc file options instead of hardcoded strings.
zas_
parents: 736
diff changeset
115 struct {
8a8873e7a552 Make shell command and its option rc file options instead of hardcoded strings.
zas_
parents: 736
diff changeset
116 gchar *path;
8a8873e7a552 Make shell command and its option rc file options instead of hardcoded strings.
zas_
parents: 736
diff changeset
117 gchar *options;
8a8873e7a552 Make shell command and its option rc file options instead of hardcoded strings.
zas_
parents: 736
diff changeset
118 } shell;
8a8873e7a552 Make shell command and its option rc file options instead of hardcoded strings.
zas_
parents: 736
diff changeset
119
508
011a6be611c8 Move options stuff to options.{c,h} and remove globals.c
zas_
parents:
diff changeset
120 /* file sorting */
011a6be611c8 Move options stuff to options.{c,h} and remove globals.c
zas_
parents:
diff changeset
121 struct {
011a6be611c8 Move options stuff to options.{c,h} and remove globals.c
zas_
parents:
diff changeset
122 SortType method;
870
3dd2cb78d0f9 Make better matching between options types in options.h and the rest of the code.
zas_
parents: 858
diff changeset
123 gboolean ascending;
3dd2cb78d0f9 Make better matching between options types in options.h and the rest of the code.
zas_
parents: 858
diff changeset
124 gboolean case_sensitive; /* file sorting method (case) */
508
011a6be611c8 Move options stuff to options.{c,h} and remove globals.c
zas_
parents:
diff changeset
125 } file_sort;
011a6be611c8 Move options stuff to options.{c,h} and remove globals.c
zas_
parents:
diff changeset
126
011a6be611c8 Move options stuff to options.{c,h} and remove globals.c
zas_
parents:
diff changeset
127 /* slideshow */
011a6be611c8 Move options stuff to options.{c,h} and remove globals.c
zas_
parents:
diff changeset
128 struct {
011a6be611c8 Move options stuff to options.{c,h} and remove globals.c
zas_
parents:
diff changeset
129 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
130 gboolean random;
3dd2cb78d0f9 Make better matching between options types in options.h and the rest of the code.
zas_
parents: 858
diff changeset
131 gboolean repeat;
508
011a6be611c8 Move options stuff to options.{c,h} and remove globals.c
zas_
parents:
diff changeset
132 } slideshow;
011a6be611c8 Move options stuff to options.{c,h} and remove globals.c
zas_
parents:
diff changeset
133
011a6be611c8 Move options stuff to options.{c,h} and remove globals.c
zas_
parents:
diff changeset
134 /* fullscreen */
011a6be611c8 Move options stuff to options.{c,h} and remove globals.c
zas_
parents:
diff changeset
135 struct {
011a6be611c8 Move options stuff to options.{c,h} and remove globals.c
zas_
parents:
diff changeset
136 gint screen;
870
3dd2cb78d0f9 Make better matching between options types in options.h and the rest of the code.
zas_
parents: 858
diff changeset
137 gboolean clean_flip;
3dd2cb78d0f9 Make better matching between options types in options.h and the rest of the code.
zas_
parents: 858
diff changeset
138 gboolean disable_saver;
3dd2cb78d0f9 Make better matching between options types in options.h and the rest of the code.
zas_
parents: 858
diff changeset
139 gboolean above;
508
011a6be611c8 Move options stuff to options.{c,h} and remove globals.c
zas_
parents:
diff changeset
140 } fullscreen;
011a6be611c8 Move options stuff to options.{c,h} and remove globals.c
zas_
parents:
diff changeset
141
612
21864cc96369 Preserve last histogram modes.
zas_
parents: 594
diff changeset
142 /* histogram */
21864cc96369 Preserve last histogram modes.
zas_
parents: 594
diff changeset
143 struct {
21864cc96369 Preserve last histogram modes.
zas_
parents: 594
diff changeset
144 guint last_channel_mode;
21864cc96369 Preserve last histogram modes.
zas_
parents: 594
diff changeset
145 guint last_log_mode;
21864cc96369 Preserve last histogram modes.
zas_
parents: 594
diff changeset
146 } histogram;
21864cc96369 Preserve last histogram modes.
zas_
parents: 594
diff changeset
147
508
011a6be611c8 Move options stuff to options.{c,h} and remove globals.c
zas_
parents:
diff changeset
148 /* image overlay */
011a6be611c8 Move options stuff to options.{c,h} and remove globals.c
zas_
parents:
diff changeset
149 struct {
011a6be611c8 Move options stuff to options.{c,h} and remove globals.c
zas_
parents:
diff changeset
150 struct {
638
8cc9f349c670 Rename option image_overlay.common.enabled to image_overlay.common.state
zas_
parents: 630
diff changeset
151 guint state;
870
3dd2cb78d0f9 Make better matching between options types in options.h and the rest of the code.
zas_
parents: 858
diff changeset
152 gboolean show_at_startup;
508
011a6be611c8 Move options stuff to options.{c,h} and remove globals.c
zas_
parents:
diff changeset
153 gchar *template_string;
822
df541dc41707 Allow to set image overlay info position through options:
zas_
parents: 764
diff changeset
154 gint x;
df541dc41707 Allow to set image overlay info position through options:
zas_
parents: 764
diff changeset
155 gint y;
508
011a6be611c8 Move options stuff to options.{c,h} and remove globals.c
zas_
parents:
diff changeset
156 } common;
011a6be611c8 Move options stuff to options.{c,h} and remove globals.c
zas_
parents:
diff changeset
157 } image_overlay;
011a6be611c8 Move options stuff to options.{c,h} and remove globals.c
zas_
parents:
diff changeset
158
011a6be611c8 Move options stuff to options.{c,h} and remove globals.c
zas_
parents:
diff changeset
159 /* layout */
011a6be611c8 Move options stuff to options.{c,h} and remove globals.c
zas_
parents:
diff changeset
160 struct {
011a6be611c8 Move options stuff to options.{c,h} and remove globals.c
zas_
parents:
diff changeset
161 gchar *order;
011a6be611c8 Move options stuff to options.{c,h} and remove globals.c
zas_
parents:
diff changeset
162 gint style;
011a6be611c8 Move options stuff to options.{c,h} and remove globals.c
zas_
parents:
diff changeset
163
011a6be611c8 Move options stuff to options.{c,h} and remove globals.c
zas_
parents:
diff changeset
164 DirViewType dir_view_type;
556
fe675761d091 Replace Layout icon_view field by more generic file_view_type.
zas_
parents: 508
diff changeset
165 FileViewType file_view_type;
508
011a6be611c8 Move options stuff to options.{c,h} and remove globals.c
zas_
parents:
diff changeset
166
870
3dd2cb78d0f9 Make better matching between options types in options.h and the rest of the code.
zas_
parents: 858
diff changeset
167 gboolean show_thumbnails;
3dd2cb78d0f9 Make better matching between options types in options.h and the rest of the code.
zas_
parents: 858
diff changeset
168 gboolean show_marks;
825
ee33d2ddb661 Optionnally display directory's date in list view.
zas_
parents: 822
diff changeset
169 gboolean show_directory_date;
508
011a6be611c8 Move options stuff to options.{c,h} and remove globals.c
zas_
parents:
diff changeset
170
011a6be611c8 Move options stuff to options.{c,h} and remove globals.c
zas_
parents:
diff changeset
171 struct {
011a6be611c8 Move options stuff to options.{c,h} and remove globals.c
zas_
parents:
diff changeset
172 gint w;
011a6be611c8 Move options stuff to options.{c,h} and remove globals.c
zas_
parents:
diff changeset
173 gint h;
011a6be611c8 Move options stuff to options.{c,h} and remove globals.c
zas_
parents:
diff changeset
174 gint x;
011a6be611c8 Move options stuff to options.{c,h} and remove globals.c
zas_
parents:
diff changeset
175 gint y;
870
3dd2cb78d0f9 Make better matching between options types in options.h and the rest of the code.
zas_
parents: 858
diff changeset
176 gboolean maximized;
508
011a6be611c8 Move options stuff to options.{c,h} and remove globals.c
zas_
parents:
diff changeset
177 gint hdivider_pos;
011a6be611c8 Move options stuff to options.{c,h} and remove globals.c
zas_
parents:
diff changeset
178 gint vdivider_pos;
011a6be611c8 Move options stuff to options.{c,h} and remove globals.c
zas_
parents:
diff changeset
179 } main_window;
011a6be611c8 Move options stuff to options.{c,h} and remove globals.c
zas_
parents:
diff changeset
180
011a6be611c8 Move options stuff to options.{c,h} and remove globals.c
zas_
parents:
diff changeset
181 struct {
011a6be611c8 Move options stuff to options.{c,h} and remove globals.c
zas_
parents:
diff changeset
182 gint w;
011a6be611c8 Move options stuff to options.{c,h} and remove globals.c
zas_
parents:
diff changeset
183 gint h;
011a6be611c8 Move options stuff to options.{c,h} and remove globals.c
zas_
parents:
diff changeset
184 gint x;
011a6be611c8 Move options stuff to options.{c,h} and remove globals.c
zas_
parents:
diff changeset
185 gint y;
011a6be611c8 Move options stuff to options.{c,h} and remove globals.c
zas_
parents:
diff changeset
186 gint vdivider_pos;
011a6be611c8 Move options stuff to options.{c,h} and remove globals.c
zas_
parents:
diff changeset
187 } float_window;
011a6be611c8 Move options stuff to options.{c,h} and remove globals.c
zas_
parents:
diff changeset
188
764
ae618ebec3e9 Save properties window width and height to rc file and restore
zas_
parents: 740
diff changeset
189 struct {
ae618ebec3e9 Save properties window width and height to rc file and restore
zas_
parents: 740
diff changeset
190 gint w;
ae618ebec3e9 Save properties window width and height to rc file and restore
zas_
parents: 740
diff changeset
191 gint h;
ae618ebec3e9 Save properties window width and height to rc file and restore
zas_
parents: 740
diff changeset
192 } properties_window;
ae618ebec3e9 Save properties window width and height to rc file and restore
zas_
parents: 740
diff changeset
193
870
3dd2cb78d0f9 Make better matching between options types in options.h and the rest of the code.
zas_
parents: 858
diff changeset
194 gboolean save_window_positions;
508
011a6be611c8 Move options stuff to options.{c,h} and remove globals.c
zas_
parents:
diff changeset
195
870
3dd2cb78d0f9 Make better matching between options types in options.h and the rest of the code.
zas_
parents: 858
diff changeset
196 gboolean tools_float;
3dd2cb78d0f9 Make better matching between options types in options.h and the rest of the code.
zas_
parents: 858
diff changeset
197 gboolean tools_hidden;
3dd2cb78d0f9 Make better matching between options types in options.h and the rest of the code.
zas_
parents: 858
diff changeset
198 gboolean tools_restore_state;
508
011a6be611c8 Move options stuff to options.{c,h} and remove globals.c
zas_
parents:
diff changeset
199
870
3dd2cb78d0f9 Make better matching between options types in options.h and the rest of the code.
zas_
parents: 858
diff changeset
200 gboolean toolbar_hidden;
508
011a6be611c8 Move options stuff to options.{c,h} and remove globals.c
zas_
parents:
diff changeset
201
011a6be611c8 Move options stuff to options.{c,h} and remove globals.c
zas_
parents:
diff changeset
202 } layout;
011a6be611c8 Move options stuff to options.{c,h} and remove globals.c
zas_
parents:
diff changeset
203
011a6be611c8 Move options stuff to options.{c,h} and remove globals.c
zas_
parents:
diff changeset
204 /* panels */
011a6be611c8 Move options stuff to options.{c,h} and remove globals.c
zas_
parents:
diff changeset
205 struct {
011a6be611c8 Move options stuff to options.{c,h} and remove globals.c
zas_
parents:
diff changeset
206 struct {
870
3dd2cb78d0f9 Make better matching between options types in options.h and the rest of the code.
zas_
parents: 858
diff changeset
207 gboolean enabled;
508
011a6be611c8 Move options stuff to options.{c,h} and remove globals.c
zas_
parents:
diff changeset
208 gint width;
011a6be611c8 Move options stuff to options.{c,h} and remove globals.c
zas_
parents:
diff changeset
209 } info;
011a6be611c8 Move options stuff to options.{c,h} and remove globals.c
zas_
parents:
diff changeset
210
011a6be611c8 Move options stuff to options.{c,h} and remove globals.c
zas_
parents:
diff changeset
211 struct {
870
3dd2cb78d0f9 Make better matching between options types in options.h and the rest of the code.
zas_
parents: 858
diff changeset
212 gboolean enabled;
508
011a6be611c8 Move options stuff to options.{c,h} and remove globals.c
zas_
parents:
diff changeset
213 gint width;
011a6be611c8 Move options stuff to options.{c,h} and remove globals.c
zas_
parents:
diff changeset
214 } exif;
011a6be611c8 Move options stuff to options.{c,h} and remove globals.c
zas_
parents:
diff changeset
215
011a6be611c8 Move options stuff to options.{c,h} and remove globals.c
zas_
parents:
diff changeset
216 struct {
870
3dd2cb78d0f9 Make better matching between options types in options.h and the rest of the code.
zas_
parents: 858
diff changeset
217 gboolean enabled;
508
011a6be611c8 Move options stuff to options.{c,h} and remove globals.c
zas_
parents:
diff changeset
218 gint mode_state;
011a6be611c8 Move options stuff to options.{c,h} and remove globals.c
zas_
parents:
diff changeset
219 gint action_state;
011a6be611c8 Move options stuff to options.{c,h} and remove globals.c
zas_
parents:
diff changeset
220 gint selection_state;
011a6be611c8 Move options stuff to options.{c,h} and remove globals.c
zas_
parents:
diff changeset
221 } sort;
011a6be611c8 Move options stuff to options.{c,h} and remove globals.c
zas_
parents:
diff changeset
222 } panels;
011a6be611c8 Move options stuff to options.{c,h} and remove globals.c
zas_
parents:
diff changeset
223
684
9f00d0d874fa Save order of Properties dialog tabs to rc file.
zas_
parents: 638
diff changeset
224 /* properties dialog */
9f00d0d874fa Save order of Properties dialog tabs to rc file.
zas_
parents: 638
diff changeset
225 struct {
9f00d0d874fa Save order of Properties dialog tabs to rc file.
zas_
parents: 638
diff changeset
226 gchar *tabs_order;
9f00d0d874fa Save order of Properties dialog tabs to rc file.
zas_
parents: 638
diff changeset
227 } properties;
508
011a6be611c8 Move options stuff to options.{c,h} and remove globals.c
zas_
parents:
diff changeset
228
011a6be611c8 Move options stuff to options.{c,h} and remove globals.c
zas_
parents:
diff changeset
229 /* color profiles */
011a6be611c8 Move options stuff to options.{c,h} and remove globals.c
zas_
parents:
diff changeset
230 struct {
870
3dd2cb78d0f9 Make better matching between options types in options.h and the rest of the code.
zas_
parents: 858
diff changeset
231 gboolean enabled;
508
011a6be611c8 Move options stuff to options.{c,h} and remove globals.c
zas_
parents:
diff changeset
232 gint input_type;
011a6be611c8 Move options stuff to options.{c,h} and remove globals.c
zas_
parents:
diff changeset
233 gchar *input_file[COLOR_PROFILE_INPUTS];
011a6be611c8 Move options stuff to options.{c,h} and remove globals.c
zas_
parents:
diff changeset
234 gchar *input_name[COLOR_PROFILE_INPUTS];
011a6be611c8 Move options stuff to options.{c,h} and remove globals.c
zas_
parents:
diff changeset
235 gint screen_type;
011a6be611c8 Move options stuff to options.{c,h} and remove globals.c
zas_
parents:
diff changeset
236 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
237 gboolean use_image;
508
011a6be611c8 Move options stuff to options.{c,h} and remove globals.c
zas_
parents:
diff changeset
238
011a6be611c8 Move options stuff to options.{c,h} and remove globals.c
zas_
parents:
diff changeset
239 } color_profile;
011a6be611c8 Move options stuff to options.{c,h} and remove globals.c
zas_
parents:
diff changeset
240
884
ff16ed0d2c8a Improve ways to specify html browser (used for help, see bug 2015099).
zas_
parents: 870
diff changeset
241 /* Helpers programs */
ff16ed0d2c8a Improve ways to specify html browser (used for help, see bug 2015099).
zas_
parents: 870
diff changeset
242 struct {
ff16ed0d2c8a Improve ways to specify html browser (used for help, see bug 2015099).
zas_
parents: 870
diff changeset
243 struct {
ff16ed0d2c8a Improve ways to specify html browser (used for help, see bug 2015099).
zas_
parents: 870
diff changeset
244 gchar *command_name;
ff16ed0d2c8a Improve ways to specify html browser (used for help, see bug 2015099).
zas_
parents: 870
diff changeset
245 gchar *command_line;
ff16ed0d2c8a Improve ways to specify html browser (used for help, see bug 2015099).
zas_
parents: 870
diff changeset
246 } html_browser;
ff16ed0d2c8a Improve ways to specify html browser (used for help, see bug 2015099).
zas_
parents: 870
diff changeset
247 } helpers;
508
011a6be611c8 Move options stuff to options.{c,h} and remove globals.c
zas_
parents:
diff changeset
248 };
011a6be611c8 Move options stuff to options.{c,h} and remove globals.c
zas_
parents:
diff changeset
249
011a6be611c8 Move options stuff to options.{c,h} and remove globals.c
zas_
parents:
diff changeset
250 ConfOptions *options;
011a6be611c8 Move options stuff to options.{c,h} and remove globals.c
zas_
parents:
diff changeset
251
011a6be611c8 Move options stuff to options.{c,h} and remove globals.c
zas_
parents:
diff changeset
252 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
253 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
254 void sync_options_with_current_state(ConfOptions *options);
508
011a6be611c8 Move options stuff to options.{c,h} and remove globals.c
zas_
parents:
diff changeset
255
011a6be611c8 Move options stuff to options.{c,h} and remove globals.c
zas_
parents:
diff changeset
256 #endif /* OPTIONS_H */