root / src / prefs_common.h @ 374
History | View | Annotate | Download (5.3 kB)
| 1 | 1 | hiro | /*
|
|---|---|---|---|
| 2 | 1 | hiro | * Sylpheed -- a GTK+ based, lightweight, and fast e-mail client |
| 3 | 97 | hiro | * Copyright (C) 1999-2005 Hiroyuki Yamamoto |
| 4 | 1 | hiro | * |
| 5 | 1 | hiro | * This program is free software; you can redistribute it and/or modify |
| 6 | 1 | hiro | * it under the terms of the GNU General Public License as published by |
| 7 | 1 | hiro | * the Free Software Foundation; either version 2 of the License, or |
| 8 | 1 | hiro | * (at your option) any later version. |
| 9 | 1 | hiro | * |
| 10 | 1 | hiro | * This program is distributed in the hope that it will be useful, |
| 11 | 1 | hiro | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | 1 | hiro | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 | 1 | hiro | * GNU General Public License for more details. |
| 14 | 1 | hiro | * |
| 15 | 1 | hiro | * You should have received a copy of the GNU General Public License |
| 16 | 1 | hiro | * along with this program; if not, write to the Free Software |
| 17 | 1 | hiro | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
| 18 | 1 | hiro | */ |
| 19 | 1 | hiro | |
| 20 | 1 | hiro | #ifndef __PREFS_COMMON_H__
|
| 21 | 1 | hiro | #define __PREFS_COMMON_H__
|
| 22 | 1 | hiro | |
| 23 | 1 | hiro | #ifdef HAVE_CONFIG_H
|
| 24 | 1 | hiro | # include "config.h" |
| 25 | 1 | hiro | #endif
|
| 26 | 1 | hiro | |
| 27 | 1 | hiro | #include <glib.h> |
| 28 | 1 | hiro | |
| 29 | 1 | hiro | #include "mainwindow.h" |
| 30 | 1 | hiro | #include "summaryview.h" |
| 31 | 1 | hiro | #include "codeconv.h" |
| 32 | 1 | hiro | #include "textview.h" |
| 33 | 1 | hiro | |
| 34 | 1 | hiro | typedef struct _PrefsCommon PrefsCommon; |
| 35 | 1 | hiro | |
| 36 | 1 | hiro | typedef enum { |
| 37 | 1 | hiro | RECV_DIALOG_ALWAYS, |
| 38 | 1 | hiro | RECV_DIALOG_MANUAL, |
| 39 | 1 | hiro | RECV_DIALOG_NEVER |
| 40 | 1 | hiro | } RecvDialogMode; |
| 41 | 1 | hiro | |
| 42 | 1 | hiro | typedef enum { |
| 43 | 1 | hiro | CTE_AUTO, |
| 44 | 1 | hiro | CTE_BASE64, |
| 45 | 1 | hiro | CTE_QUOTED_PRINTABLE, |
| 46 | 1 | hiro | CTE_8BIT |
| 47 | 1 | hiro | } TransferEncodingMethod; |
| 48 | 1 | hiro | |
| 49 | 1 | hiro | struct _PrefsCommon
|
| 50 | 1 | hiro | {
|
| 51 | 1 | hiro | /* Receive */
|
| 52 | 1 | hiro | gboolean use_extinc; |
| 53 | 1 | hiro | gchar *extinc_cmd; |
| 54 | 1 | hiro | gboolean inc_local; |
| 55 | 1 | hiro | gboolean filter_on_inc; |
| 56 | 1 | hiro | gchar *spool_path; |
| 57 | 1 | hiro | gboolean scan_all_after_inc; |
| 58 | 1 | hiro | gboolean autochk_newmail; |
| 59 | 1 | hiro | gint autochk_itv; |
| 60 | 1 | hiro | gboolean chk_on_startup; |
| 61 | 351 | hiro | gboolean enable_newmsg_notify; |
| 62 | 351 | hiro | gchar *newmsg_notify_cmd; |
| 63 | 1 | hiro | |
| 64 | 1 | hiro | /* Send */
|
| 65 | 1 | hiro | gboolean use_extsend; |
| 66 | 1 | hiro | gchar *extsend_cmd; |
| 67 | 1 | hiro | gboolean savemsg; |
| 68 | 317 | hiro | gboolean filter_sent; |
| 69 | 1 | hiro | gchar *outgoing_charset; |
| 70 | 1 | hiro | TransferEncodingMethod encoding_method; |
| 71 | 1 | hiro | |
| 72 | 1 | hiro | gboolean allow_jisx0201_kana; |
| 73 | 1 | hiro | |
| 74 | 1 | hiro | /* Compose */
|
| 75 | 1 | hiro | gboolean auto_sig; |
| 76 | 1 | hiro | gchar *sig_sep; |
| 77 | 1 | hiro | gint undolevels; |
| 78 | 1 | hiro | gint linewrap_len; |
| 79 | 1 | hiro | gboolean linewrap_quote; |
| 80 | 1 | hiro | gboolean autowrap; |
| 81 | 1 | hiro | gboolean linewrap_at_send; |
| 82 | 1 | hiro | gboolean auto_exteditor; |
| 83 | 1 | hiro | gboolean reply_account_autosel; |
| 84 | 1 | hiro | gboolean default_reply_list; |
| 85 | 1 | hiro | gboolean show_ruler; |
| 86 | 1 | hiro | |
| 87 | 1 | hiro | /* Quote */
|
| 88 | 1 | hiro | gboolean reply_with_quote; |
| 89 | 1 | hiro | gchar *quotemark; |
| 90 | 1 | hiro | gchar *quotefmt; |
| 91 | 1 | hiro | gchar *fw_quotemark; |
| 92 | 1 | hiro | gchar *fw_quotefmt; |
| 93 | 1 | hiro | |
| 94 | 1 | hiro | /* Display */
|
| 95 | 1 | hiro | gchar *textfont; |
| 96 | 1 | hiro | |
| 97 | 1 | hiro | gboolean trans_hdr; |
| 98 | 1 | hiro | gboolean display_folder_unread; |
| 99 | 1 | hiro | gint ng_abbrev_len; |
| 100 | 1 | hiro | |
| 101 | 1 | hiro | gboolean swap_from; |
| 102 | 1 | hiro | gboolean expand_thread; |
| 103 | 1 | hiro | gchar *date_format; |
| 104 | 1 | hiro | |
| 105 | 253 | hiro | gboolean enable_rules_hint; |
| 106 | 1 | hiro | gboolean bold_unread; |
| 107 | 1 | hiro | |
| 108 | 1 | hiro | ToolbarStyle toolbar_style; |
| 109 | 1 | hiro | gboolean show_statusbar; |
| 110 | 1 | hiro | |
| 111 | 1 | hiro | gint folderview_vscrollbar_policy; |
| 112 | 1 | hiro | |
| 113 | 1 | hiro | /* Summary columns visibility, position and size */
|
| 114 | 1 | hiro | gboolean summary_col_visible[N_SUMMARY_COLS]; |
| 115 | 1 | hiro | gint summary_col_pos[N_SUMMARY_COLS]; |
| 116 | 1 | hiro | gint summary_col_size[N_SUMMARY_COLS]; |
| 117 | 1 | hiro | |
| 118 | 1 | hiro | /* Widget visibility, position and size */
|
| 119 | 1 | hiro | gint folderwin_x; |
| 120 | 1 | hiro | gint folderwin_y; |
| 121 | 1 | hiro | gint folderview_width; |
| 122 | 1 | hiro | gint folderview_height; |
| 123 | 1 | hiro | gboolean folderview_visible; |
| 124 | 1 | hiro | |
| 125 | 1 | hiro | gint folder_col_folder; |
| 126 | 1 | hiro | gint folder_col_new; |
| 127 | 1 | hiro | gint folder_col_unread; |
| 128 | 1 | hiro | gint folder_col_total; |
| 129 | 1 | hiro | |
| 130 | 1 | hiro | gint summaryview_width; |
| 131 | 1 | hiro | gint summaryview_height; |
| 132 | 1 | hiro | |
| 133 | 1 | hiro | gint main_msgwin_x; |
| 134 | 1 | hiro | gint main_msgwin_y; |
| 135 | 1 | hiro | gint msgview_width; |
| 136 | 1 | hiro | gint msgview_height; |
| 137 | 1 | hiro | gboolean msgview_visible; |
| 138 | 1 | hiro | |
| 139 | 1 | hiro | gint mainview_x; |
| 140 | 1 | hiro | gint mainview_y; |
| 141 | 1 | hiro | gint mainview_width; |
| 142 | 1 | hiro | gint mainview_height; |
| 143 | 1 | hiro | gint mainwin_x; |
| 144 | 1 | hiro | gint mainwin_y; |
| 145 | 1 | hiro | gint mainwin_width; |
| 146 | 1 | hiro | gint mainwin_height; |
| 147 | 1 | hiro | |
| 148 | 1 | hiro | gint msgwin_width; |
| 149 | 1 | hiro | gint msgwin_height; |
| 150 | 1 | hiro | |
| 151 | 1 | hiro | gint sourcewin_width; |
| 152 | 1 | hiro | gint sourcewin_height; |
| 153 | 1 | hiro | |
| 154 | 1 | hiro | gint compose_width; |
| 155 | 1 | hiro | gint compose_height; |
| 156 | 1 | hiro | |
| 157 | 1 | hiro | /* Message */
|
| 158 | 1 | hiro | gboolean enable_color; |
| 159 | 1 | hiro | gint quote_level1_col; |
| 160 | 1 | hiro | gint quote_level2_col; |
| 161 | 1 | hiro | gint quote_level3_col; |
| 162 | 1 | hiro | gint uri_col; |
| 163 | 1 | hiro | gushort sig_col; |
| 164 | 1 | hiro | gboolean recycle_quote_colors; |
| 165 | 1 | hiro | gboolean conv_mb_alnum; |
| 166 | 1 | hiro | gboolean display_header_pane; |
| 167 | 1 | hiro | gboolean display_header; |
| 168 | 1 | hiro | gint line_space; |
| 169 | 177 | hiro | gboolean render_html; |
| 170 | 269 | hiro | gboolean textview_cursor_visible; |
| 171 | 1 | hiro | gboolean enable_smooth_scroll; |
| 172 | 1 | hiro | gint scroll_step; |
| 173 | 1 | hiro | gboolean scroll_halfpage; |
| 174 | 1 | hiro | |
| 175 | 1 | hiro | gboolean resize_image; |
| 176 | 97 | hiro | gboolean inline_image; |
| 177 | 1 | hiro | |
| 178 | 1 | hiro | gchar *force_charset; |
| 179 | 1 | hiro | |
| 180 | 1 | hiro | gboolean show_other_header; |
| 181 | 1 | hiro | GSList *disphdr_list; |
| 182 | 1 | hiro | |
| 183 | 1 | hiro | /* MIME viewer */
|
| 184 | 1 | hiro | gchar *mime_image_viewer; |
| 185 | 1 | hiro | gchar *mime_audio_player; |
| 186 | 1 | hiro | gchar *mime_open_cmd; |
| 187 | 1 | hiro | |
| 188 | 1 | hiro | GList *mime_open_cmd_history; |
| 189 | 1 | hiro | |
| 190 | 306 | hiro | /* Junk Mail */
|
| 191 | 306 | hiro | gboolean enable_junk; |
| 192 | 306 | hiro | gchar *junk_learncmd; |
| 193 | 306 | hiro | gchar *nojunk_learncmd; |
| 194 | 336 | hiro | gchar *junk_classify_cmd; |
| 195 | 306 | hiro | gchar *junk_folder; |
| 196 | 336 | hiro | gboolean filter_junk_on_recv; |
| 197 | 306 | hiro | |
| 198 | 1 | hiro | #if USE_GPGME
|
| 199 | 1 | hiro | /* Privacy */
|
| 200 | 1 | hiro | gboolean auto_check_signatures; |
| 201 | 1 | hiro | gboolean gpg_signature_popup; |
| 202 | 1 | hiro | gboolean store_passphrase; |
| 203 | 1 | hiro | gint store_passphrase_timeout; |
| 204 | 1 | hiro | gboolean passphrase_grab; |
| 205 | 1 | hiro | gboolean gpg_warning; |
| 206 | 1 | hiro | #endif /* USE_GPGME */ |
| 207 | 1 | hiro | |
| 208 | 1 | hiro | /* Interface */
|
| 209 | 1 | hiro | gboolean sep_folder; |
| 210 | 1 | hiro | gboolean sep_msg; |
| 211 | 1 | hiro | gboolean emulate_emacs; |
| 212 | 1 | hiro | gboolean always_show_msg; |
| 213 | 1 | hiro | gboolean open_unread_on_enter; |
| 214 | 1 | hiro | gboolean mark_as_read_on_new_window; |
| 215 | 1 | hiro | gboolean open_inbox_on_inc; |
| 216 | 1 | hiro | gboolean immediate_exec; |
| 217 | 1 | hiro | RecvDialogMode recv_dialog_mode; |
| 218 | 1 | hiro | gboolean close_recv_dialog; |
| 219 | 1 | hiro | gboolean no_recv_err_panel; |
| 220 | 1 | hiro | gboolean add_address_by_click; |
| 221 | 1 | hiro | |
| 222 | 1 | hiro | /* Other */
|
| 223 | 1 | hiro | gchar *uri_cmd; |
| 224 | 1 | hiro | gchar *print_cmd; |
| 225 | 1 | hiro | gchar *ext_editor_cmd; |
| 226 | 1 | hiro | |
| 227 | 1 | hiro | gboolean confirm_on_exit; |
| 228 | 1 | hiro | gboolean clean_on_exit; |
| 229 | 1 | hiro | gboolean ask_on_clean; |
| 230 | 1 | hiro | gboolean warn_queued_on_exit; |
| 231 | 1 | hiro | |
| 232 | 360 | hiro | gint logwin_line_limit; |
| 233 | 360 | hiro | |
| 234 | 360 | hiro | /* Advanced */
|
| 235 | 360 | hiro | gboolean strict_cache_check; |
| 236 | 1 | hiro | gint io_timeout_secs; |
| 237 | 1 | hiro | |
| 238 | 1 | hiro | /* Filtering */
|
| 239 | 1 | hiro | GSList *fltlist; |
| 240 | 336 | hiro | GSList *junk_fltlist; |
| 241 | 1 | hiro | |
| 242 | 1 | hiro | /* Actions */
|
| 243 | 1 | hiro | GSList *actions_list; |
| 244 | 1 | hiro | |
| 245 | 1 | hiro | /* Online / Offline */
|
| 246 | 1 | hiro | gboolean online_mode; |
| 247 | 1 | hiro | }; |
| 248 | 1 | hiro | |
| 249 | 1 | hiro | extern PrefsCommon prefs_common;
|
| 250 | 1 | hiro | |
| 251 | 1 | hiro | void prefs_common_read_config (void); |
| 252 | 1 | hiro | void prefs_common_write_config (void); |
| 253 | 1 | hiro | void prefs_common_open (void); |
| 254 | 1 | hiro | |
| 255 | 1 | hiro | void prefs_quote_description (void); |
| 256 | 1 | hiro | |
| 257 | 1 | hiro | #endif /* __PREFS_COMMON_H__ */ |