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