2 * Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
3 * Copyright (C) 1999-2002 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;
44 NEXTUNREADMSGDIALOG_ALWAYS,
45 NEXTUNREADMSGDIALOG_ASSUME_YES,
46 NEXTUNREADMSGDIALOG_ASSUME_NO
47 } NextUnreadMsgDialogShow;
55 gboolean filter_on_inc;
57 gboolean scan_all_after_inc;
58 gboolean autochk_newmail;
60 gboolean chk_on_startup;
61 gboolean noerrorpanel;
62 gboolean newmail_notify_auto;
63 gboolean newmail_notify_manu;
64 gchar *newmail_notify_cmd;
72 gchar *outgoing_charset;
79 gboolean linewrap_quote;
80 gboolean linewrap_at_send;
81 gboolean auto_exteditor;
82 gboolean reply_account_autosel;
83 gboolean forward_account_autosel;
84 gboolean reedit_account_autosel;
88 gboolean reply_with_quote;
93 gboolean forward_as_attachment;
94 gboolean bounce_keep_from;
95 gboolean smart_wrapping;
96 gboolean block_cursor;
100 gboolean enable_pspell;
105 gboolean check_while_typing;
106 gboolean use_alternate;
115 gboolean display_folder_unread;
116 gboolean display_img;
118 ToolbarStyle toolbar_style;
119 gboolean show_statusbar;
121 gboolean enable_thread;
122 gboolean enable_hscrollbar;
123 gboolean expand_thread;
124 gboolean bold_unread;
126 gboolean use_addr_book;
133 gint important_score;
138 /* Summary columns visibility, position and size */
139 gboolean summary_col_visible[N_SUMMARY_COLS];
140 gint summary_col_pos[N_SUMMARY_COLS];
141 gint summary_col_size[N_SUMMARY_COLS];
146 gint folderview_width;
147 gint folderview_height;
148 gint folder_col_folder;
150 gint folder_col_unread;
151 gint folder_col_total;
153 gint summaryview_width;
154 gint summaryview_height;
159 gint mainview_height;
172 gboolean enable_color;
173 gint quote_level1_col;
174 gint quote_level2_col;
175 gint quote_level3_col;
179 gboolean recycle_quote_colors;
180 gboolean conv_mb_alnum;
181 gboolean display_header_pane;
182 gboolean display_header;
185 gboolean enable_smooth_scroll;
187 gboolean scroll_halfpage;
189 gchar *force_charset;
191 gboolean show_other_header;
192 GSList *disphdr_list;
195 gchar *mime_image_viewer;
196 gchar *mime_audio_player;
197 gchar *mime_open_cmd;
199 GList *mime_open_cmd_history;
203 gboolean auto_check_signatures;
204 gboolean gpg_signature_popup;
205 gboolean store_passphrase;
206 gint store_passphrase_timeout;
207 gboolean passphrase_grab;
208 gchar *default_signkey;
209 gboolean gpg_warning;
210 #endif /* USE_GPGME */
215 gboolean emulate_emacs;
216 gboolean open_unread_on_enter;
217 gboolean open_inbox_on_inc;
218 gboolean immediate_exec;
219 RecvDialogMode recv_dialog_mode;
220 NextUnreadMsgDialogShow next_unread_msg_dialog;
221 gboolean add_address_by_click;
222 gchar *pixmap_theme_path;
227 gchar *ext_editor_cmd;
229 gboolean confirm_on_exit;
230 gboolean clean_on_exit;
231 gboolean ask_on_clean;
232 gboolean warn_queued_on_exit;
233 gboolean return_receipt;
235 /* boolean for work offline
236 stored here for use in inc.c */
237 gboolean work_offline;
241 extern PrefsCommon prefs_common;
243 void prefs_common_init ();
244 void prefs_common_read_config (void);
245 void prefs_common_save_config (void);
246 void prefs_common_open (void);
248 #endif /* __PREFS_COMMON_H__ */