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