Synch with Hiroyuki's main branch.
[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         gchar *date_format;
73
74         /* Filtering */
75         GSList *fltlist;
76
77         gboolean show_mark;
78         gboolean show_unread;
79         gboolean show_mime;
80         gboolean show_number;
81         gboolean show_size;
82         gboolean show_date;
83         gboolean show_from;
84         gboolean show_subject;
85
86         /* Widget size */
87         gint folderview_x;
88         gint folderview_y;
89         gint folderview_width;
90         gint folderview_height;
91         gint folder_col_folder;
92         gint folder_col_new;
93         gint folder_col_unread;
94         gint folder_col_total;
95
96         gint summaryview_width;
97         gint summaryview_height;
98         gint summary_col_mark;
99         gint summary_col_unread;
100         gint summary_col_mime;
101         gint summary_col_number;
102         gint summary_col_size;
103         gint summary_col_date;
104         gint summary_col_from;
105         gint summary_col_subject;
106
107         gint mainview_x;
108         gint mainview_y;
109         gint mainview_width;
110         gint mainview_height;
111         gint mainwin_x;
112         gint mainwin_y;
113         gint mainwin_width;
114         gint mainwin_height;
115
116         gint msgwin_width;
117         gint msgwin_height;
118
119         gint compose_width;
120         gint compose_height;
121
122         /* Message */
123         gboolean enable_color;
124         gint quote_level1_col;
125         gint quote_level2_col;
126         gint quote_level3_col;
127         gint uri_col;
128         gushort sig_col;
129         gboolean recycle_quote_colors;
130         gboolean conv_mb_alnum;
131         gboolean display_header_pane;
132         gboolean display_header;
133         gboolean head_space;
134         gint line_space;
135         gboolean enable_smooth_scroll;
136         gint scroll_step;
137         gboolean scroll_halfpage;
138
139         gchar *force_charset;
140
141         /* MIME viewer */
142         gchar *mime_image_viewer;
143         gchar *mime_audio_player;
144
145         /* Privacy */
146         gboolean default_encrypt;
147         gboolean default_sign;
148         gboolean auto_check_signatures;
149         gboolean passphrase_grab;
150         gchar *default_signkey;
151
152         /* Interface */
153         gboolean sep_folder;
154         gboolean sep_msg;
155         gboolean emulate_emacs;
156         gboolean open_unread_on_enter;
157         gboolean open_inbox_on_inc;
158         gboolean immediate_exec;
159         gboolean add_address_by_click;
160
161         gboolean confirm_on_exit;
162         gboolean clean_on_exit;
163         gboolean ask_on_clean;
164         gboolean warn_queued_on_exit;
165
166         /* Other */
167         gchar *uri_cmd;
168         gchar *print_cmd;
169         gchar *ext_editor_cmd;
170 };
171
172 extern PrefsCommon prefs_common;
173
174 void prefs_common_read_config   (void);
175 void prefs_common_save_config   (void);
176 void prefs_common_open          (void);
177
178 void prefs_summary_display_item_set     (void);
179
180 #endif /* __PREFS_COMMON_H__ */