Reverted previous changes for NNTP authentication support (needs to be
[claws.git] / src / prefs_common.h
1 /*
2  * Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
3  * Copyright (C) 1999,2000 Hiroyuki Yamamoto
4  *
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.
9  *
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.
14  *
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.
18  */
19
20 #ifndef __PREFS_COMMON_H__
21 #define __PREFS_COMMON_H__
22
23 #ifdef HAVE_CONFIG_H
24 #  include "config.h"
25 #endif
26
27 #include <glib.h>
28
29 #include "mainwindow.h"
30 #include "codeconv.h"
31 #include "textview.h"
32
33 typedef struct _PrefsCommon     PrefsCommon;
34
35 struct _PrefsCommon
36 {
37         /* Receive */
38         gboolean use_extinc;
39         gchar *extinc_path;
40         gboolean inc_local;
41         gboolean filter_on_inc;
42         gchar *spool_path;
43         gboolean autochk_newmail;
44         gint autochk_itv;
45         gboolean chk_on_startup;
46         gint max_articles;
47
48         /* Send */
49         gboolean use_extsend;
50         gchar *extsend_path;
51         gboolean savemsg;
52         gboolean queue_msg;
53         gchar *outgoing_charset;
54
55         /* Compose */
56         gboolean reply_with_quote;
57         gchar *quotemark;
58         gchar *quotefmt;
59         gboolean auto_sig;
60         gchar *sig_sep;
61         gint linewrap_len;
62         gboolean linewrap_quote;
63         gboolean linewrap_at_send;
64         gboolean show_ruler;
65
66         /* Display */
67         gchar *widgetfont;
68         gchar *textfont;
69         gboolean display_folder_unread;
70         ToolbarStyle toolbar_style;
71         gboolean show_statusbar;
72         gboolean trans_hdr;
73         gboolean enable_thread;
74         gboolean enable_hscrollbar;
75         gboolean swap_from;
76         gchar *date_format;
77
78         /* Filtering */
79         GSList *fltlist;
80
81         gboolean show_mark;
82         gboolean show_unread;
83         gboolean show_mime;
84         gboolean show_number;
85         gboolean show_size;
86         gboolean show_date;
87         gboolean show_from;
88         gboolean show_subject;
89
90         /* Widget size */
91         gint folderview_x;
92         gint folderview_y;
93         gint folderview_width;
94         gint folderview_height;
95         gint folder_col_folder;
96         gint folder_col_new;
97         gint folder_col_unread;
98         gint folder_col_total;
99
100         gint summaryview_width;
101         gint summaryview_height;
102         gint summary_col_mark;
103         gint summary_col_unread;
104         gint summary_col_mime;
105         gint summary_col_number;
106         gint summary_col_size;
107         gint summary_col_date;
108         gint summary_col_from;
109         gint summary_col_subject;
110
111         gint mainview_x;
112         gint mainview_y;
113         gint mainview_width;
114         gint mainview_height;
115         gint mainwin_x;
116         gint mainwin_y;
117         gint mainwin_width;
118         gint mainwin_height;
119
120         gint msgwin_width;
121         gint msgwin_height;
122
123         gint compose_width;
124         gint compose_height;
125
126         /* Message */
127         gboolean enable_color;
128         gint quote_level1_col;
129         gint quote_level2_col;
130         gint quote_level3_col;
131         gint uri_col;
132         gushort sig_col;
133         gboolean recycle_quote_colors;
134         gboolean conv_mb_alnum;
135         gboolean display_header_pane;
136         gboolean display_header;
137         gboolean head_space;
138         gint line_space;
139         gboolean enable_smooth_scroll;
140         gint scroll_step;
141         gboolean scroll_halfpage;
142
143         gchar *force_charset;
144
145         /* MIME viewer */
146         gchar *mime_image_viewer;
147         gchar *mime_audio_player;
148
149         /* Privacy */
150         gboolean default_encrypt;
151         gboolean default_sign;
152         gboolean auto_check_signatures;
153         gboolean passphrase_grab;
154         gchar *default_signkey;
155
156         /* Interface */
157         gboolean sep_folder;
158         gboolean sep_msg;
159         gboolean emulate_emacs;
160         gboolean open_unread_on_enter;
161         gboolean open_inbox_on_inc;
162         gboolean immediate_exec;
163         gboolean add_address_by_click;
164
165         gboolean confirm_on_exit;
166         gboolean clean_on_exit;
167         gboolean ask_on_clean;
168         gboolean warn_queued_on_exit;
169
170         /* Other */
171         gchar *uri_cmd;
172         gchar *print_cmd;
173         gchar *ext_editor_cmd;
174 };
175
176 extern PrefsCommon prefs_common;
177
178 void prefs_common_read_config   (void);
179 void prefs_common_save_config   (void);
180 void prefs_common_open          (void);
181
182 void prefs_summary_display_item_set     (void);
183
184 #endif /* __PREFS_COMMON_H__ */