2 * Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
3 * Copyright (C) 1999-2001 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;
69 gchar *outgoing_charset;
76 gboolean linewrap_quote;
77 gboolean linewrap_at_send;
78 gboolean auto_exteditor;
79 gboolean reply_account_autosel;
80 gboolean forward_account_autosel;
81 gboolean reedit_account_autosel;
85 gboolean reply_with_quote;
90 gboolean forward_as_attachment;
91 gboolean smart_wrapping;
92 gboolean block_cursor;
94 gboolean enable_pspell;
107 gboolean display_folder_unread;
108 ToolbarStyle toolbar_style;
109 gboolean show_statusbar;
111 gboolean enable_thread;
112 gboolean enable_hscrollbar;
113 gboolean expand_thread;
114 gboolean bold_unread;
116 gboolean use_addr_book;
123 gint important_score;
125 /* Summary columns visibility, position and size */
126 gboolean summary_col_visible[N_SUMMARY_COLS];
127 gint summary_col_pos[N_SUMMARY_COLS];
128 gint summary_col_size[N_SUMMARY_COLS];
133 gint folderview_width;
134 gint folderview_height;
135 gint folder_col_folder;
137 gint folder_col_unread;
138 gint folder_col_total;
140 gint summaryview_width;
141 gint summaryview_height;
146 gint mainview_height;
159 gboolean enable_color;
160 gint quote_level1_col;
161 gint quote_level2_col;
162 gint quote_level3_col;
166 gboolean recycle_quote_colors;
167 gboolean conv_mb_alnum;
168 gboolean display_header_pane;
169 gboolean display_header;
172 gboolean enable_smooth_scroll;
174 gboolean scroll_halfpage;
176 gchar *force_charset;
178 gboolean show_other_header;
179 GSList *disphdr_list;
182 gchar *mime_image_viewer;
183 gchar *mime_audio_player;
184 gchar *mime_open_cmd;
186 GList *mime_open_cmd_history;
190 gboolean auto_check_signatures;
191 gboolean gpg_signature_popup;
192 gboolean passphrase_grab;
193 gchar *default_signkey;
194 gboolean gpg_warning;
195 #endif /* USE_GPGME */
200 gboolean emulate_emacs;
201 gboolean open_unread_on_enter;
202 gboolean open_inbox_on_inc;
203 gboolean immediate_exec;
204 RecvDialogMode recv_dialog_mode;
205 NextUnreadMsgDialogShow next_unread_msg_dialog;
206 gboolean add_address_by_click;
208 gboolean confirm_on_exit;
209 gboolean clean_on_exit;
210 gboolean ask_on_clean;
211 gboolean warn_queued_on_exit;
212 gboolean return_receipt;
217 gchar *ext_editor_cmd;
220 extern PrefsCommon prefs_common;
222 void prefs_common_init ();
223 void prefs_common_read_config (void);
224 void prefs_common_save_config (void);
225 void prefs_common_open (void);
227 void prefs_quote_description (void);
229 #endif /* __PREFS_COMMON_H__ */