2cb7e3b27ef465f5ce5851d511e3a3e3dd436f75
[claws.git] / src / prefs_common.h
1 /*
2  * Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
3  * Copyright (C) 1999,2000 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 #include <glib.h>
24
25 #include "mainwindow.h"
26 #include "codeconv.h"
27 #include "textview.h"
28
29 typedef struct _PrefsCommon     PrefsCommon;
30
31 struct _PrefsCommon
32 {
33         /* Receive */
34         gboolean use_extinc;
35         gchar *extinc_path;
36         gboolean inc_local;
37         gboolean filter_on_inc;
38         gchar *spool_path;
39         gboolean autochk_newmail;
40         gint autochk_itv;
41         gboolean chk_on_startup;
42         gint max_articles;
43
44         /* Send */
45         gboolean use_extsend;
46         gchar *extsend_path;
47         gboolean savemsg;
48         gboolean queue_msg;
49         gchar *outgoing_charset;
50
51         /* Compose */
52         gboolean reply_with_quote;
53         gchar *quotemark;
54         gchar *quotefmt;
55         gboolean auto_sig;
56         gchar *sig_sep;
57         gint linewrap_len;
58         gboolean linewrap_quote;
59         gboolean linewrap_at_send;
60         gboolean show_ruler;
61
62         /* Display */
63         gchar *widgetfont;
64         gchar *textfont;
65         gboolean display_folder_unread;
66         ToolbarStyle toolbar_style;
67         gboolean show_statusbar;
68         gboolean trans_hdr;
69         gboolean enable_thread;
70         gboolean enable_hscrollbar;
71         gboolean swap_from;
72
73         /* Filtering */
74         GSList *fltlist;
75
76         gboolean show_mark;
77         gboolean show_unread;
78         gboolean show_mime;
79         gboolean show_number;
80         gboolean show_size;
81         gboolean show_date;
82         gboolean show_from;
83         gboolean show_subject;
84
85         /* Widget size */
86         gint folderview_x;
87         gint folderview_y;
88         gint folderview_width;
89         gint folderview_height;
90         gint folder_col_folder;
91         gint folder_col_new;
92         gint folder_col_unread;
93         gint folder_col_total;
94
95         gint summaryview_width;
96         gint summaryview_height;
97         gint summary_col_mark;
98         gint summary_col_unread;
99         gint summary_col_mime;
100         gint summary_col_number;
101         gint summary_col_size;
102         gint summary_col_date;
103         gint summary_col_from;
104         gint summary_col_subject;
105
106         gint mainview_x;
107         gint mainview_y;
108         gint mainview_width;
109         gint mainview_height;
110         gint mainwin_x;
111         gint mainwin_y;
112         gint mainwin_width;
113         gint mainwin_height;
114
115         gint msgwin_width;
116         gint msgwin_height;
117
118         gint compose_width;
119         gint compose_height;
120
121         /* Message */
122         gboolean enable_color;
123         gint quote_level1_col;
124         gint quote_level2_col;
125         gint quote_level3_col;
126         gint uri_col;
127         gushort sig_col;
128         gboolean recycle_quote_colors;
129         gboolean conv_mb_alnum;
130         gboolean display_header_pane;
131         gboolean display_header;
132         gboolean head_space;
133         gint line_space;
134         gboolean enable_smooth_scroll;
135         gint scroll_step;
136         gboolean scroll_halfpage;
137
138         gchar *force_charset;
139
140         /* MIME viewer */
141         gchar *mime_image_viewer;
142         gchar *mime_audio_player;
143
144         /* Privacy */
145         gboolean default_encrypt;
146         gboolean default_sign;
147         gboolean auto_check_signatures;
148         gboolean passphrase_grab;
149         gchar *default_signkey;
150
151         /* Interface */
152         gboolean sep_folder;
153         gboolean sep_msg;
154         gboolean emulate_emacs;
155         gboolean open_unread_on_enter;
156         gboolean open_inbox_on_inc;
157         gboolean immediate_exec;
158         gboolean add_address_by_click;
159
160         gboolean confirm_on_exit;
161         gboolean clean_on_exit;
162         gboolean ask_on_clean;
163
164         /* Other */
165         gchar *uri_cmd;
166         gchar *print_cmd;
167         gchar *ext_editor_cmd;
168 };
169
170 extern PrefsCommon prefs_common;
171
172 void prefs_common_read_config   (void);
173 void prefs_common_save_config   (void);
174 void prefs_common_open          (void);
175
176 void prefs_summary_display_item_set     (void);
177
178 #endif /* __PREFS_COMMON_H__ */