sync with sylpheed 0.5.3cvs4
[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_path;
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_path;
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 reply_account_autosel;
73         gboolean show_ruler;
74         gchar *fw_quotemark;
75         gchar *fw_quotefmt;
76         gboolean forward_as_attachment;
77         gboolean smart_wrapping;
78         gboolean enable_ispell;
79         gchar *ispell_path;
80         gchar *dictionary_path;
81
82         /* Display */
83         gchar *widgetfont;
84         gchar *textfont;
85         gchar *normalfont;
86         gchar *boldfont;
87         gchar *smallfont;
88         gboolean display_folder_unread;
89         ToolbarStyle toolbar_style;
90         gboolean show_statusbar;
91         gboolean trans_hdr;
92         gboolean enable_thread;
93         gboolean enable_hscrollbar;
94         gboolean expand_thread;
95         gboolean bold_unread;
96         gboolean swap_from;
97         gboolean use_addr_book;
98         gchar *date_format;
99
100         /* Filtering */
101         GSList *fltlist;
102
103         gint kill_score;
104         gint important_score;
105
106         gboolean show_mark;
107         gboolean show_unread;
108         gboolean show_mime;
109         gboolean show_number;
110         gboolean show_score;
111         gboolean show_size;
112         gboolean show_date;
113         gboolean show_from;
114         gboolean show_subject;
115
116         /* Widget size */
117         gint folderview_x;
118         gint folderview_y;
119         gint folderview_width;
120         gint folderview_height;
121         gint folder_col_folder;
122         gint folder_col_new;
123         gint folder_col_unread;
124         gint folder_col_total;
125
126         gint summaryview_width;
127         gint summaryview_height;
128         gint summary_col_mark;
129         gint summary_col_unread;
130         gint summary_col_mime;
131         gint summary_col_number;
132         gint summary_col_size;
133         gint summary_col_date;
134         gint summary_col_from;
135         gint summary_col_subject;
136         gint summary_col_score;
137
138         gint mainview_x;
139         gint mainview_y;
140         gint mainview_width;
141         gint mainview_height;
142         gint mainwin_x;
143         gint mainwin_y;
144         gint mainwin_width;
145         gint mainwin_height;
146
147         gint msgwin_width;
148         gint msgwin_height;
149
150         gint compose_width;
151         gint compose_height;
152
153         /* Message */
154         gboolean enable_color;
155         gint quote_level1_col;
156         gint quote_level2_col;
157         gint quote_level3_col;
158         gint uri_col;
159         gint tgt_folder_col;
160         gushort sig_col;
161         gboolean recycle_quote_colors;
162         gboolean conv_mb_alnum;
163         gboolean display_header_pane;
164         gboolean display_header;
165         gboolean head_space;
166         gint line_space;
167         gboolean enable_smooth_scroll;
168         gint scroll_step;
169         gboolean scroll_halfpage;
170
171         gchar *force_charset;
172
173         gboolean show_other_header;
174         GSList *disphdr_list;
175
176         /* MIME viewer */
177         gchar *mime_image_viewer;
178         gchar *mime_audio_player;
179
180         /* Privacy */
181         gboolean default_encrypt;
182         gboolean default_sign;
183         gboolean auto_check_signatures;
184         gboolean gpg_signature_popup;
185         gboolean passphrase_grab;
186         gchar *default_signkey;
187         gboolean gpg_warning;
188
189         /* Interface */
190         gboolean sep_folder;
191         gboolean sep_msg;
192         gboolean emulate_emacs;
193         gboolean open_unread_on_enter;
194         gboolean open_inbox_on_inc;
195         gboolean immediate_exec;
196         RecvDialogMode recv_dialog_mode;
197         gboolean add_address_by_click;
198
199         gboolean confirm_on_exit;
200         gboolean clean_on_exit;
201         gboolean ask_on_clean;
202         gboolean warn_queued_on_exit;
203         gboolean return_receipt;
204
205         /* Other */
206         gchar *uri_cmd;
207         gchar *print_cmd;
208         gchar *ext_editor_cmd;
209 };
210
211 extern PrefsCommon prefs_common;
212
213 void prefs_common_read_config   (void);
214 void prefs_common_save_config   (void);
215 void prefs_common_open          (void);
216
217 void prefs_summary_display_item_set     (void);
218
219 #endif /* __PREFS_COMMON_H__ */