2 * Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
3 * Copyright (C) 1999-2004 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"
34 typedef struct _PrefsCommon PrefsCommon;
47 } TransferEncodingMethod;
51 /* SEND_DIALOG_ACTIVE would be irrelevant */
57 NEXTUNREADMSGDIALOG_ALWAYS,
58 NEXTUNREADMSGDIALOG_ASSUME_YES,
59 NEXTUNREADMSGDIALOG_ASSUME_NO
60 } NextUnreadMsgDialogShow;
67 gboolean scan_all_after_inc;
68 gboolean autochk_newmail;
70 gboolean chk_on_startup;
71 gboolean newmail_notify_auto;
72 gboolean newmail_notify_manu;
73 gchar *newmail_notify_cmd;
74 RecvDialogMode recv_dialog_mode;
75 gboolean close_recv_dialog;
76 gboolean no_recv_err_panel;
80 SendDialogMode send_dialog_mode;
81 gchar *outgoing_charset;
82 TransferEncodingMethod encoding_method;
84 gboolean allow_jisx0201_kana;
89 gboolean linewrap_quote;
91 gboolean linewrap_at_send;
92 gboolean auto_exteditor;
93 gboolean reply_account_autosel;
94 gboolean default_reply_list;
95 gboolean forward_account_autosel;
96 gboolean reedit_account_autosel;
102 gboolean reply_with_quote;
107 gboolean forward_as_attachment;
108 gboolean redirect_keep_from;
109 gboolean smart_wrapping;
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_folder_unread;
143 gboolean show_searchbar;
145 gboolean expand_thread;
146 gboolean use_addr_book;
149 gboolean enable_hscrollbar;
150 gboolean bold_unread;
151 gboolean enable_thread;
152 gboolean thread_by_subject;
153 gint thread_by_subject_max_age; /*!< Max. age of a thread which was threaded
154 * by subject (days) */
156 ToolbarStyle toolbar_style;
157 gboolean show_statusbar;
159 gint folderview_vscrollbar_policy;
165 gint important_score;
168 GSList *actions_list;
170 /* Summary columns visibility, position and size */
171 gboolean summary_col_visible[N_SUMMARY_COLS];
172 gint summary_col_pos[N_SUMMARY_COLS];
173 gint summary_col_size[N_SUMMARY_COLS];
175 /* Widget visibility, position and size */
178 gint folderview_width;
179 gint folderview_height;
180 gboolean folderview_visible;
182 gint folder_col_folder;
184 gint folder_col_unread;
185 gint folder_col_total;
187 gint summaryview_width;
188 gint summaryview_height;
194 gboolean msgview_visible;
199 gint mainview_height;
208 gint sourcewin_width;
209 gint sourcewin_height;
217 gboolean enable_color;
218 gulong quote_level1_col;
219 gulong quote_level2_col;
220 gulong quote_level3_col;
222 gulong tgt_folder_col;
223 gulong signature_col;
224 gboolean recycle_quote_colors;
225 gboolean conv_mb_alnum;
226 gboolean display_header_pane;
227 gboolean display_header;
230 gboolean enable_smooth_scroll;
232 gboolean scroll_halfpage;
234 gchar *force_charset;
236 gboolean show_other_header;
237 GSList *disphdr_list;
239 gboolean attach_desc;
242 gchar *mime_image_viewer;
243 gchar *mime_audio_player;
244 gchar *mime_open_cmd;
245 gchar *attach_save_dir;
247 GList *mime_open_cmd_history;
251 gboolean auto_check_signatures;
252 gboolean gpg_signature_popup;
253 gboolean store_passphrase;
254 gint store_passphrase_timeout;
255 gboolean passphrase_grab;
256 gboolean gpg_warning;
257 #endif /* USE_GPGME */
262 gboolean emulate_emacs;
263 gboolean always_show_msg;
264 gboolean open_unread_on_enter;
265 gboolean mark_as_read_on_new_window;
266 gboolean open_inbox_on_inc;
267 gboolean immediate_exec;
268 NextUnreadMsgDialogShow next_unread_msg_dialog;
269 gboolean add_address_by_click;
270 gchar *pixmap_theme_path;
271 int hover_timeout; /* msecs mouse hover timeout */
276 gchar *ext_editor_cmd;
281 gboolean confirm_on_exit;
282 gboolean clean_on_exit;
283 gboolean ask_on_clean;
284 gboolean warn_queued_on_exit;
286 gint io_timeout_secs;
290 gboolean ssl_ask_unknown_valid;
295 gint cache_max_mem_usage;
296 gint cache_min_keep_time;
298 /* boolean for work offline
299 stored here for use in inc.c */
300 gboolean work_offline;
302 gint summary_quicksearch_type;
305 GList *summary_quicksearch_history;
308 extern PrefsCommon prefs_common;
310 void prefs_common_init (void);
311 void prefs_common_read_config (void);
312 void prefs_common_save_config (void);
313 void prefs_common_open (void);
314 PrefsCommon *prefs_common_get (void);
316 #endif /* __PREFS_COMMON_H__ */