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