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 /* SEND_DIALOG_ACTIVE would be irrelevant */
50 NEXTUNREADMSGDIALOG_ALWAYS
,
51 NEXTUNREADMSGDIALOG_ASSUME_YES
,
52 NEXTUNREADMSGDIALOG_ASSUME_NO
53 } NextUnreadMsgDialogShow
;
61 gboolean filter_on_inc
;
63 gboolean scan_all_after_inc
;
64 gboolean autochk_newmail
;
66 gboolean chk_on_startup
;
67 gboolean newmail_notify_auto
;
68 gboolean newmail_notify_manu
;
69 gchar
*newmail_notify_cmd
;
77 gchar
*outgoing_charset
;
84 gboolean linewrap_quote
;
86 gboolean linewrap_at_send
;
87 gboolean auto_exteditor
;
88 gboolean reply_account_autosel
;
89 gboolean default_reply_list
;
90 gboolean forward_account_autosel
;
91 gboolean reedit_account_autosel
;
97 gboolean reply_with_quote
;
102 gboolean forward_as_attachment
;
103 gboolean redirect_keep_from
;
104 gboolean smart_wrapping
;
105 gboolean block_cursor
;
109 gboolean enable_aspell
;
114 gboolean check_while_typing
;
115 gboolean use_alternate
;
126 gboolean display_folder_unread
;
129 gboolean show_searchbar
;
131 gboolean expand_thread
;
132 gboolean use_addr_book
;
135 gboolean enable_hscrollbar
;
136 gboolean bold_unread
;
137 gboolean enable_thread
;
139 ToolbarStyle toolbar_style
;
140 gboolean show_statusbar
;
142 gint folderview_vscrollbar_policy
;
148 gint important_score
;
151 GSList
*actions_list
;
153 /* Summary columns visibility, position and size */
154 gboolean summary_col_visible
[N_SUMMARY_COLS
];
155 gint summary_col_pos
[N_SUMMARY_COLS
];
156 gint summary_col_size
[N_SUMMARY_COLS
];
161 gint folderview_width
;
162 gint folderview_height
;
163 gint folder_col_folder
;
165 gint folder_col_unread
;
166 gint folder_col_total
;
168 gint summaryview_width
;
169 gint summaryview_height
;
174 gint mainview_height
;
187 gboolean enable_color
;
188 gint quote_level1_col
;
189 gint quote_level2_col
;
190 gint quote_level3_col
;
194 gboolean recycle_quote_colors
;
195 gboolean conv_mb_alnum
;
196 gboolean display_header_pane
;
197 gboolean display_header
;
200 gboolean enable_smooth_scroll
;
202 gboolean scroll_halfpage
;
204 gboolean display_img
;
205 gboolean resize_image
;
207 gchar
*force_charset
;
209 gboolean show_other_header
;
210 GSList
*disphdr_list
;
213 gchar
*mime_image_viewer
;
214 gchar
*mime_audio_player
;
215 gchar
*mime_open_cmd
;
217 GList
*mime_open_cmd_history
;
221 gboolean auto_check_signatures
;
222 gboolean gpg_signature_popup
;
223 gboolean store_passphrase
;
224 gint store_passphrase_timeout
;
225 gboolean passphrase_grab
;
226 gboolean gpg_warning
;
227 #endif /* USE_GPGME */
232 gboolean emulate_emacs
;
233 gboolean show_msg_with_cursor_key
;
234 gboolean open_unread_on_enter
;
235 gboolean mark_as_read_on_new_window
;
236 gboolean open_inbox_on_inc
;
237 gboolean immediate_exec
;
238 RecvDialogMode recv_dialog_mode
;
239 SendDialogMode send_dialog_mode
;
240 gboolean close_recv_dialog
;
241 gboolean no_recv_err_panel
;
242 NextUnreadMsgDialogShow next_unread_msg_dialog
;
243 gboolean add_address_by_click
;
244 gchar
*pixmap_theme_path
;
249 gchar
*ext_editor_cmd
;
254 gboolean confirm_on_exit
;
255 gboolean clean_on_exit
;
256 gboolean ask_on_clean
;
257 gboolean warn_queued_on_exit
;
260 gboolean ssl_ask_unknown_valid
;
264 gint cache_max_mem_usage
;
265 gint cache_min_keep_time
;
267 /* boolean for work offline
268 stored here for use in inc.c */
269 gboolean work_offline
;
271 gint summary_quicksearch_type
;
275 extern PrefsCommon prefs_common
;
277 void prefs_common_init ();
278 void prefs_common_read_config (void);
279 void prefs_common_save_config (void);
280 void prefs_common_open (void);
282 #endif /* __PREFS_COMMON_H__ */