2 * Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
3 * Copyright (C) 1999-2003 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;
68 gboolean filter_on_inc;
70 gboolean scan_all_after_inc;
71 gboolean autochk_newmail;
73 gboolean chk_on_startup;
74 gboolean newmail_notify_auto;
75 gboolean newmail_notify_manu;
76 gchar *newmail_notify_cmd;
77 RecvDialogMode recv_dialog_mode;
78 gboolean close_recv_dialog;
79 gboolean no_recv_err_panel;
86 SendDialogMode send_dialog_mode;
87 gchar *outgoing_charset;
88 TransferEncodingMethod encoding_method;
93 gboolean linewrap_quote;
95 gboolean linewrap_at_send;
96 gboolean auto_exteditor;
97 gboolean reply_account_autosel;
98 gboolean default_reply_list;
99 gboolean forward_account_autosel;
100 gboolean reedit_account_autosel;
103 gint autosave_length;
106 gboolean reply_with_quote;
111 gboolean forward_as_attachment;
112 gboolean redirect_keep_from;
113 gboolean smart_wrapping;
114 gboolean block_cursor;
118 gboolean enable_aspell;
121 gulong misspelled_col;
123 gboolean check_while_typing;
124 gboolean use_alternate;
135 gboolean display_folder_unread;
138 gboolean show_searchbar;
140 gboolean expand_thread;
141 gboolean use_addr_book;
144 gboolean enable_hscrollbar;
145 gboolean bold_unread;
146 gboolean enable_thread;
147 gboolean thread_by_subject;
148 gint thread_by_subject_max_age; /*!< Max. age of a thread which was threaded
149 * by subject (days) */
151 ToolbarStyle toolbar_style;
152 gboolean show_statusbar;
154 gint folderview_vscrollbar_policy;
160 gint important_score;
163 GSList *actions_list;
165 /* Summary columns visibility, position and size */
166 gboolean summary_col_visible[N_SUMMARY_COLS];
167 gint summary_col_pos[N_SUMMARY_COLS];
168 gint summary_col_size[N_SUMMARY_COLS];
170 /* Widget visibility, position and size */
173 gint folderview_width;
174 gint folderview_height;
175 gboolean folderview_visible;
177 gint folder_col_folder;
179 gint folder_col_unread;
180 gint folder_col_total;
182 gint summaryview_width;
183 gint summaryview_height;
189 gboolean msgview_visible;
194 gint mainview_height;
203 gint sourcewin_width;
204 gint sourcewin_height;
210 gboolean enable_color;
211 gulong quote_level1_col;
212 gulong quote_level2_col;
213 gulong quote_level3_col;
215 gulong tgt_folder_col;
216 gulong signature_col;
217 gboolean recycle_quote_colors;
218 gboolean conv_mb_alnum;
219 gboolean display_header_pane;
220 gboolean display_header;
223 gboolean enable_smooth_scroll;
225 gboolean scroll_halfpage;
227 gchar *force_charset;
229 gboolean show_other_header;
230 GSList *disphdr_list;
232 gboolean attach_desc;
235 gchar *mime_image_viewer;
236 gchar *mime_audio_player;
237 gchar *mime_open_cmd;
239 GList *mime_open_cmd_history;
243 gboolean auto_check_signatures;
244 gboolean gpg_signature_popup;
245 gboolean store_passphrase;
246 gint store_passphrase_timeout;
247 gboolean passphrase_grab;
248 gboolean gpg_warning;
249 #endif /* USE_GPGME */
254 gboolean emulate_emacs;
255 gboolean always_show_msg;
256 gboolean open_unread_on_enter;
257 gboolean mark_as_read_on_new_window;
258 gboolean open_inbox_on_inc;
259 gboolean immediate_exec;
260 NextUnreadMsgDialogShow next_unread_msg_dialog;
261 gboolean add_address_by_click;
262 gchar *pixmap_theme_path;
263 int hover_timeout; /* msecs mouse hover timeout */
268 gchar *ext_editor_cmd;
273 gboolean confirm_on_exit;
274 gboolean clean_on_exit;
275 gboolean ask_on_clean;
276 gboolean warn_queued_on_exit;
278 gint io_timeout_secs;
282 gboolean ssl_ask_unknown_valid;
287 gint cache_max_mem_usage;
288 gint cache_min_keep_time;
290 /* boolean for work offline
291 stored here for use in inc.c */
292 gboolean work_offline;
294 gint summary_quicksearch_type;
298 extern PrefsCommon prefs_common;
300 void prefs_common_init (void);
301 void prefs_common_read_config (void);
302 void prefs_common_save_config (void);
303 void prefs_common_open (void);
304 PrefsCommon *prefs_common_get (void);
306 #endif /* __PREFS_COMMON_H__ */