2 * Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
3 * Copyright (C) 1999-2005 Hiroyuki Yamamoto
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.
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.
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.
20 #ifndef __PREFS_COMMON_H__
21 #define __PREFS_COMMON_H__
29 #include "mainwindow.h"
30 #include "summaryview.h"
35 typedef struct _PrefsCommon PrefsCommon;
48 } TransferEncodingMethod;
52 /* SEND_DIALOG_ACTIVE would be irrelevant */
58 NEXTUNREADMSGDIALOG_ALWAYS,
59 NEXTUNREADMSGDIALOG_ASSUME_YES,
60 NEXTUNREADMSGDIALOG_ASSUME_NO
61 } NextUnreadMsgDialogShow;
68 gboolean scan_all_after_inc;
69 gboolean autochk_newmail;
71 gboolean chk_on_startup;
72 gboolean newmail_notify_auto;
73 gboolean newmail_notify_manu;
74 gchar *newmail_notify_cmd;
75 RecvDialogMode recv_dialog_mode;
76 gboolean close_recv_dialog;
77 gboolean no_recv_err_panel;
81 SendDialogMode send_dialog_mode;
82 gchar *outgoing_charset;
83 TransferEncodingMethod encoding_method;
85 gboolean allow_jisx0201_kana;
90 gboolean linewrap_quote;
92 gboolean linewrap_at_send;
93 gboolean auto_exteditor;
94 gboolean reply_account_autosel;
95 gboolean default_reply_list;
96 gboolean forward_account_autosel;
97 gboolean reedit_account_autosel;
100 gint autosave_length;
103 gboolean reply_with_quote;
108 gboolean forward_as_attachment;
109 gboolean redirect_keep_from;
110 gboolean block_cursor;
114 gboolean enable_aspell;
117 gulong misspelled_col;
119 gboolean check_while_typing;
120 gboolean use_alternate;
125 gchar *widgetfont_gtk1;
126 gchar *textfont_gtk1;
127 gchar *normalfont_gtk1;
128 gchar *boldfont_gtk1;
129 gchar *smallfont_gtk1;
140 gboolean display_img;
145 gboolean display_folder_unread;
148 gboolean show_searchbar;
150 gboolean expand_thread;
151 gboolean use_addr_book;
154 gboolean enable_hscrollbar;
155 gboolean bold_unread;
156 gboolean enable_thread;
157 gboolean thread_by_subject;
158 gint thread_by_subject_max_age; /*!< Max. age of a thread which was threaded
159 * by subject (days) */
161 ToolbarStyle toolbar_style;
162 gboolean show_statusbar;
164 gint folderview_vscrollbar_policy;
170 gint important_score;
173 GSList *actions_list;
175 /* Summary columns visibility, position and size */
176 gboolean summary_col_visible[N_SUMMARY_COLS];
177 gint summary_col_pos[N_SUMMARY_COLS];
178 gint summary_col_size[N_SUMMARY_COLS];
180 /* Widget visibility, position and size */
183 gint folderview_width;
184 gint folderview_height;
185 gboolean folderview_visible;
187 gint folder_col_folder;
189 gint folder_col_unread;
190 gint folder_col_total;
192 gint summaryview_width;
193 gint summaryview_height;
199 gboolean msgview_visible;
204 gint mainview_height;
213 gint sourcewin_width;
214 gint sourcewin_height;
222 gboolean enable_color;
223 gulong quote_level1_col;
224 gulong quote_level2_col;
225 gulong quote_level3_col;
227 gulong tgt_folder_col;
228 gulong signature_col;
229 gboolean recycle_quote_colors;
230 gboolean conv_mb_alnum;
231 gboolean display_header_pane;
232 gboolean display_header;
234 gboolean render_html;
235 gboolean textview_cursor_visible;
236 gboolean enable_smooth_scroll;
238 gboolean scroll_halfpage;
240 gboolean show_other_header;
241 GSList *disphdr_list;
243 gboolean attach_desc;
246 gchar *mime_image_viewer;
247 gchar *mime_audio_player;
248 gchar *mime_open_cmd;
249 gchar *attach_save_dir;
251 GList *mime_open_cmd_history;
255 gboolean auto_check_signatures;
256 gboolean gpg_signature_popup;
257 gboolean store_passphrase;
258 gint store_passphrase_timeout;
259 gboolean passphrase_grab;
260 gboolean gpg_warning;
261 #endif /* USE_GPGME */
266 gboolean emulate_emacs;
267 gboolean always_show_msg;
268 gboolean open_unread_on_enter;
269 gboolean mark_as_read_on_new_window;
270 gboolean mark_as_read_delay;
271 gboolean open_inbox_on_inc;
272 gboolean immediate_exec;
273 NextUnreadMsgDialogShow next_unread_msg_dialog;
274 gboolean add_address_by_click;
275 gchar *pixmap_theme_path;
276 int hover_timeout; /* msecs mouse hover timeout */
281 gchar *ext_editor_cmd;
286 gboolean confirm_on_exit;
287 gboolean clean_on_exit;
288 gboolean ask_on_clean;
289 gboolean warn_queued_on_exit;
291 gint io_timeout_secs;
295 gboolean ssl_ask_unknown_valid;
300 gint cache_max_mem_usage;
301 gint cache_min_keep_time;
303 /* boolean for work offline
304 stored here for use in inc.c */
305 gboolean work_offline;
307 gint summary_quicksearch_type;
308 gint summary_quicksearch_sticky;
309 gint summary_quicksearch_recurse;
312 GList *summary_quicksearch_history;
314 gint filteringwin_width;
315 gint filteringwin_height;
319 extern PrefsCommon prefs_common;
321 void prefs_common_init (void);
322 void prefs_common_read_config (void);
323 void prefs_common_write_config (void);
324 void prefs_common_open (void);
325 PrefsCommon *prefs_common_get (void);
327 #endif /* __PREFS_COMMON_H__ */