changed 'dictionary_path' to 'dictionary' to be consistent
[claws.git] / src / prefs_common.h
1 /*
2  * Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
3  * Copyright (C) 1999-2001 Hiroyuki Yamamoto
4  *
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation; either version 2 of the License, or
8  * (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program; if not, write to the Free Software
17  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18  */
19
20 #ifndef __PREFS_COMMON_H__
21 #define __PREFS_COMMON_H__
22
23 #ifdef HAVE_CONFIG_H
24 #  include "config.h"
25 #endif
26
27 #include <glib.h>
28
29 #include "mainwindow.h"
30 #include "codeconv.h"
31 #include "textview.h"
32
33 typedef struct _PrefsCommon     PrefsCommon;
34
35 typedef enum {
36         RECV_DIALOG_ALWAYS,
37         RECV_DIALOG_ACTIVE,
38         RECV_DIALOG_NEVER
39 } RecvDialogMode;
40
41 struct _PrefsCommon
42 {
43         /* Receive */
44         gboolean use_extinc;
45         gchar *extinc_cmd;
46         gboolean inc_local;
47         gboolean filter_on_inc;
48         gchar *spool_path;
49         gboolean scan_all_after_inc;
50         gboolean autochk_newmail;
51         gint autochk_itv;
52         gboolean chk_on_startup;
53         gboolean noerrorpanel;
54         gint max_articles;
55
56         /* Send */
57         gboolean use_extsend;
58         gchar *extsend_cmd;
59         gboolean savemsg;
60         gboolean queue_msg;
61         gchar *outgoing_charset;
62
63         /* Compose */
64         gboolean reply_with_quote;
65         gchar *quotemark;
66         gchar *quotefmt;
67         gboolean auto_sig;
68         gchar *sig_sep;
69         gint linewrap_len;
70         gboolean linewrap_quote;
71         gboolean linewrap_at_send;
72         gboolean auto_exteditor;
73         gboolean reply_account_autosel;
74         gboolean forward_account_autosel;
75         gboolean reedit_account_autosel;
76         gboolean show_ruler;
77         gchar *fw_quotemark;
78         gchar *fw_quotefmt;
79         gboolean forward_as_attachment;
80         gboolean smart_wrapping;
81 #if USE_PSPELL
82         gboolean enable_pspell;
83         gchar *pspell_path;
84         gchar *dictionary;
85 #endif
86         
87         /* Display */
88         gchar *widgetfont;
89         gchar *textfont;
90         gchar *normalfont;
91         gchar *boldfont;
92         gchar *smallfont;
93         gboolean display_folder_unread;
94         ToolbarStyle toolbar_style;
95         gboolean show_statusbar;
96         gboolean trans_hdr;
97         gboolean enable_thread;
98         gboolean enable_hscrollbar;
99         gboolean expand_thread;
100         gboolean bold_unread;
101         gboolean swap_from;
102         gboolean use_addr_book;
103         gchar *date_format;
104
105         /* Filtering */
106         GSList *fltlist;
107
108         gint kill_score;
109         gint important_score;
110
111         gboolean show_mark;
112         gboolean show_unread;
113         gboolean show_mime;
114         gboolean show_number;
115         gboolean show_score;
116         gboolean show_size;
117         gboolean show_date;
118         gboolean show_from;
119         gboolean show_subject;
120
121         /* Widget size */
122         gint folderview_x;
123         gint folderview_y;
124         gint folderview_width;
125         gint folderview_height;
126         gint folder_col_folder;
127         gint folder_col_new;
128         gint folder_col_unread;
129         gint folder_col_total;
130
131         gint summaryview_width;
132         gint summaryview_height;
133         gint summary_col_mark;
134         gint summary_col_unread;
135         gint summary_col_mime;
136         gint summary_col_number;
137         gint summary_col_size;
138         gint summary_col_date;
139         gint summary_col_from;
140         gint summary_col_subject;
141         gint summary_col_score;
142
143         gint mainview_x;
144         gint mainview_y;
145         gint mainview_width;
146         gint mainview_height;
147         gint mainwin_x;
148         gint mainwin_y;
149         gint mainwin_width;
150         gint mainwin_height;
151
152         gint msgwin_width;
153         gint msgwin_height;
154
155         gint compose_width;
156         gint compose_height;
157
158         /* Message */
159         gboolean enable_color;
160         gint quote_level1_col;
161         gint quote_level2_col;
162         gint quote_level3_col;
163         gint uri_col;
164         gint tgt_folder_col;
165         gushort sig_col;
166         gboolean recycle_quote_colors;
167         gboolean conv_mb_alnum;
168         gboolean display_header_pane;
169         gboolean display_header;
170         gboolean head_space;
171         gint line_space;
172         gboolean enable_smooth_scroll;
173         gint scroll_step;
174         gboolean scroll_halfpage;
175
176         gchar *force_charset;
177
178         gboolean show_other_header;
179         GSList *disphdr_list;
180
181         /* MIME viewer */
182         gchar *mime_image_viewer;
183         gchar *mime_audio_player;
184
185         /* Privacy */
186         gboolean default_encrypt;
187         gboolean default_sign;
188         gboolean auto_check_signatures;
189         gboolean gpg_signature_popup;
190         gboolean passphrase_grab;
191         gchar *default_signkey;
192         gboolean gpg_warning;
193
194         /* Interface */
195         gboolean sep_folder;
196         gboolean sep_msg;
197         gboolean emulate_emacs;
198         gboolean open_unread_on_enter;
199         gboolean open_inbox_on_inc;
200         gboolean immediate_exec;
201         RecvDialogMode recv_dialog_mode;
202         gboolean add_address_by_click;
203
204         gboolean confirm_on_exit;
205         gboolean clean_on_exit;
206         gboolean ask_on_clean;
207         gboolean warn_queued_on_exit;
208         gboolean return_receipt;
209
210         /* Other */
211         gchar *uri_cmd;
212         gchar *print_cmd;
213         gchar *ext_editor_cmd;
214 };
215
216 extern PrefsCommon prefs_common;
217
218 void prefs_common_read_config   (void);
219 void prefs_common_save_config   (void);
220 void prefs_common_open          (void);
221
222 void prefs_summary_display_item_set     (void);
223
224 #endif /* __PREFS_COMMON_H__ */