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;
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;
81 SendDialogMode send_dialog_mode;
82 gchar *outgoing_charset;
83 TransferEncodingMethod encoding_method;
88 gboolean linewrap_quote;
90 gboolean linewrap_at_send;
91 gboolean auto_exteditor;
92 gboolean reply_account_autosel;
93 gboolean default_reply_list;
94 gboolean forward_account_autosel;
95 gboolean reedit_account_autosel;
101 gboolean reply_with_quote;
106 gboolean forward_as_attachment;
107 gboolean redirect_keep_from;
108 gboolean smart_wrapping;
109 gboolean block_cursor;
113 gboolean enable_aspell;
116 gulong misspelled_col;
118 gboolean check_while_typing;
119 gboolean use_alternate;
130 gboolean display_folder_unread;
133 gboolean show_searchbar;
135 gboolean expand_thread;
136 gboolean use_addr_book;
139 gboolean enable_hscrollbar;
140 gboolean bold_unread;
141 gboolean enable_thread;
142 gboolean thread_by_subject;
143 gint thread_by_subject_max_age; /*!< Max. age of a thread which was threaded
144 * by subject (days) */
146 ToolbarStyle toolbar_style;
147 gboolean show_statusbar;
149 gint folderview_vscrollbar_policy;
155 gint important_score;
158 GSList *actions_list;
160 /* Summary columns visibility, position and size */
161 gboolean summary_col_visible[N_SUMMARY_COLS];
162 gint summary_col_pos[N_SUMMARY_COLS];
163 gint summary_col_size[N_SUMMARY_COLS];
165 /* Widget visibility, position and size */
168 gint folderview_width;
169 gint folderview_height;
170 gboolean folderview_visible;
172 gint folder_col_folder;
174 gint folder_col_unread;
175 gint folder_col_total;
177 gint summaryview_width;
178 gint summaryview_height;
184 gboolean msgview_visible;
189 gint mainview_height;
198 gint sourcewin_width;
199 gint sourcewin_height;
205 gboolean enable_color;
206 gulong quote_level1_col;
207 gulong quote_level2_col;
208 gulong quote_level3_col;
210 gulong tgt_folder_col;
211 gulong signature_col;
212 gboolean recycle_quote_colors;
213 gboolean conv_mb_alnum;
214 gboolean display_header_pane;
215 gboolean display_header;
218 gboolean enable_smooth_scroll;
220 gboolean scroll_halfpage;
222 gchar *force_charset;
224 gboolean show_other_header;
225 GSList *disphdr_list;
227 gboolean attach_desc;
230 gchar *mime_image_viewer;
231 gchar *mime_audio_player;
232 gchar *mime_open_cmd;
234 GList *mime_open_cmd_history;
238 gboolean auto_check_signatures;
239 gboolean gpg_signature_popup;
240 gboolean store_passphrase;
241 gint store_passphrase_timeout;
242 gboolean passphrase_grab;
243 gboolean gpg_warning;
244 #endif /* USE_GPGME */
249 gboolean emulate_emacs;
250 gboolean always_show_msg;
251 gboolean open_unread_on_enter;
252 gboolean mark_as_read_on_new_window;
253 gboolean open_inbox_on_inc;
254 gboolean immediate_exec;
255 NextUnreadMsgDialogShow next_unread_msg_dialog;
256 gboolean add_address_by_click;
257 gchar *pixmap_theme_path;
258 int hover_timeout; /* msecs mouse hover timeout */
263 gchar *ext_editor_cmd;
268 gboolean confirm_on_exit;
269 gboolean clean_on_exit;
270 gboolean ask_on_clean;
271 gboolean warn_queued_on_exit;
273 gint io_timeout_secs;
277 gboolean ssl_ask_unknown_valid;
282 gint cache_max_mem_usage;
283 gint cache_min_keep_time;
285 /* boolean for work offline
286 stored here for use in inc.c */
287 gboolean work_offline;
289 gint summary_quicksearch_type;
293 extern PrefsCommon prefs_common;
295 void prefs_common_init (void);
296 void prefs_common_read_config (void);
297 void prefs_common_save_config (void);
298 void prefs_common_open (void);
299 PrefsCommon *prefs_common_get (void);
301 #endif /* __PREFS_COMMON_H__ */