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;
83 SendDialogMode send_dialog_mode;
84 gchar *outgoing_charset;
85 TransferEncodingMethod encoding_method;
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 smart_wrapping;
111 gboolean block_cursor;
115 gboolean enable_aspell;
118 gulong misspelled_col;
120 gboolean check_while_typing;
121 gboolean use_alternate;
132 gboolean display_folder_unread;
135 gboolean show_searchbar;
137 gboolean expand_thread;
138 gboolean use_addr_book;
141 gboolean enable_hscrollbar;
142 gboolean bold_unread;
143 gboolean enable_thread;
144 gboolean thread_by_subject;
145 gint thread_by_subject_max_age; /*!< Max. age of a thread which was threaded
146 * by subject (days) */
148 ToolbarStyle toolbar_style;
149 gboolean show_statusbar;
151 gint folderview_vscrollbar_policy;
157 gint important_score;
160 GSList *actions_list;
162 /* Summary columns visibility, position and size */
163 gboolean summary_col_visible[N_SUMMARY_COLS];
164 gint summary_col_pos[N_SUMMARY_COLS];
165 gint summary_col_size[N_SUMMARY_COLS];
167 /* Widget visibility, position and size */
170 gint folderview_width;
171 gint folderview_height;
172 gboolean folderview_visible;
174 gint folder_col_folder;
176 gint folder_col_unread;
177 gint folder_col_total;
179 gint summaryview_width;
180 gint summaryview_height;
186 gboolean msgview_visible;
191 gint mainview_height;
200 gint sourcewin_width;
201 gint sourcewin_height;
207 gboolean enable_color;
208 gulong quote_level1_col;
209 gulong quote_level2_col;
210 gulong quote_level3_col;
212 gulong tgt_folder_col;
213 gulong signature_col;
214 gboolean recycle_quote_colors;
215 gboolean conv_mb_alnum;
216 gboolean display_header_pane;
217 gboolean display_header;
220 gboolean enable_smooth_scroll;
222 gboolean scroll_halfpage;
224 gchar *force_charset;
226 gboolean show_other_header;
227 GSList *disphdr_list;
229 gboolean attach_desc;
232 gchar *mime_image_viewer;
233 gchar *mime_audio_player;
234 gchar *mime_open_cmd;
236 GList *mime_open_cmd_history;
240 gboolean auto_check_signatures;
241 gboolean gpg_signature_popup;
242 gboolean store_passphrase;
243 gint store_passphrase_timeout;
244 gboolean passphrase_grab;
245 gboolean gpg_warning;
246 #endif /* USE_GPGME */
251 gboolean emulate_emacs;
252 gboolean always_show_msg;
253 gboolean open_unread_on_enter;
254 gboolean mark_as_read_on_new_window;
255 gboolean open_inbox_on_inc;
256 gboolean immediate_exec;
257 NextUnreadMsgDialogShow next_unread_msg_dialog;
258 gboolean add_address_by_click;
259 gchar *pixmap_theme_path;
260 int hover_timeout; /* msecs mouse hover timeout */
265 gchar *ext_editor_cmd;
270 gboolean confirm_on_exit;
271 gboolean clean_on_exit;
272 gboolean ask_on_clean;
273 gboolean warn_queued_on_exit;
275 gint io_timeout_secs;
279 gboolean ssl_ask_unknown_valid;
284 gint cache_max_mem_usage;
285 gint cache_min_keep_time;
287 /* boolean for work offline
288 stored here for use in inc.c */
289 gboolean work_offline;
291 gint summary_quicksearch_type;
295 extern PrefsCommon prefs_common;
297 void prefs_common_init (void);
298 void prefs_common_read_config (void);
299 void prefs_common_save_config (void);
300 void prefs_common_open (void);
301 PrefsCommon *prefs_common_get (void);
303 #endif /* __PREFS_COMMON_H__ */