Fixed quote format parser compilation.
[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 struct _PrefsCommon
36 {
37         /* Receive */
38         gboolean use_extinc;
39         gchar *extinc_path;
40         gboolean inc_local;
41         gboolean filter_on_inc;
42         gchar *spool_path;
43         gboolean autochk_newmail;
44         gint autochk_itv;
45         gboolean chk_on_startup;
46         gint max_articles;
47
48         /* Send */
49         gboolean use_extsend;
50         gchar *extsend_path;
51         gboolean savemsg;
52         gboolean queue_msg;
53         gchar *outgoing_charset;
54
55         /* Compose */
56         gboolean reply_with_quote;
57         gchar *quotemark;
58         gchar *quotefmt;
59         gboolean auto_sig;
60         gchar *sig_sep;
61         gint linewrap_len;
62         gboolean linewrap_quote;
63         gboolean linewrap_at_send;
64         gboolean show_ruler;
65         gchar *fw_quotemark;
66         gchar *fw_quotefmt;
67
68         /* Display */
69         gchar *widgetfont;
70         gchar *textfont;
71         gchar *smallfont;
72         gchar *boldfont;
73         gchar *normalfont;
74         gboolean display_folder_unread;
75         ToolbarStyle toolbar_style;
76         gboolean show_statusbar;
77         gboolean trans_hdr;
78         /* gboolean enable_thread; */
79         gboolean enable_hscrollbar;
80         gboolean swap_from;
81         gboolean use_addr_book;
82         gchar *date_format;
83
84         /* Filtering */
85         GSList *fltlist;
86
87         gint kill_score;
88         gint important_score;
89
90         gboolean show_mark;
91         gboolean show_unread;
92         gboolean show_mime;
93         gboolean show_number;
94         gboolean show_score;
95         gboolean show_size;
96         gboolean show_date;
97         gboolean show_from;
98         gboolean show_subject;
99
100         /* Widget size */
101         gint folderview_x;
102         gint folderview_y;
103         gint folderview_width;
104         gint folderview_height;
105         gint folder_col_folder;
106         gint folder_col_new;
107         gint folder_col_unread;
108         gint folder_col_total;
109
110         gint summaryview_width;
111         gint summaryview_height;
112         gint summary_col_mark;
113         gint summary_col_unread;
114         gint summary_col_mime;
115         gint summary_col_number;
116         gint summary_col_size;
117         gint summary_col_date;
118         gint summary_col_from;
119         gint summary_col_subject;
120         gint summary_col_score;
121
122         gint mainview_x;
123         gint mainview_y;
124         gint mainview_width;
125         gint mainview_height;
126         gint mainwin_x;
127         gint mainwin_y;
128         gint mainwin_width;
129         gint mainwin_height;
130
131         gint msgwin_width;
132         gint msgwin_height;
133
134         gint compose_width;
135         gint compose_height;
136
137         /* Message */
138         gboolean enable_color;
139         gint quote_level1_col;
140         gint quote_level2_col;
141         gint quote_level3_col;
142         gint uri_col;
143         gushort sig_col;
144         gboolean recycle_quote_colors;
145         gboolean conv_mb_alnum;
146         gboolean display_header_pane;
147         gboolean display_header;
148         gboolean head_space;
149         gint line_space;
150         gboolean enable_smooth_scroll;
151         gint scroll_step;
152         gboolean scroll_halfpage;
153
154         gchar *force_charset;
155
156         gboolean show_other_header;
157         GSList *disphdr_list;
158
159         /* MIME viewer */
160         gchar *mime_image_viewer;
161         gchar *mime_audio_player;
162
163         /* Privacy */
164         gboolean default_encrypt;
165         gboolean default_sign;
166         gboolean auto_check_signatures;
167         gboolean gpg_signature_popup;
168         gboolean passphrase_grab;
169         gchar *default_signkey;
170         gboolean gpg_warning;
171
172         /* Interface */
173         gboolean sep_folder;
174         gboolean sep_msg;
175         gboolean emulate_emacs;
176         gboolean open_unread_on_enter;
177         gboolean open_inbox_on_inc;
178         gboolean immediate_exec;
179         gboolean add_address_by_click;
180
181         gboolean confirm_on_exit;
182         gboolean clean_on_exit;
183         gboolean ask_on_clean;
184         gboolean warn_queued_on_exit;
185         gboolean return_receipt;
186
187         /* Other */
188         gchar *uri_cmd;
189         gchar *print_cmd;
190         gchar *ext_editor_cmd;
191 };
192
193 extern PrefsCommon prefs_common;
194
195 void prefs_common_read_config   (void);
196 void prefs_common_save_config   (void);
197 void prefs_common_open          (void);
198
199 void prefs_summary_display_item_set     (void);
200
201 #endif /* __PREFS_COMMON_H__ */