Updated Traditional Chinese translation.
[evolution.git] / mail / em-mailer-prefs.h
blob3a5f444b511f52255615e197dce98001e4328635
1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
2 /*
3 * Authors: Jeffrey Stedfast <fejj@ximian.com>
5 * Copyright 2002-2003 Ximian, Inc. (www.ximian.com)
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 59 Temple Street #330, Boston, MA 02111-1307, USA.
23 #ifndef __EM_MAILER_PREFS_H__
24 #define __EM_MAILER_PREFS_H__
26 #ifdef __cplusplus
27 extern "C" {
28 #pragma }
29 #endif /* __cplusplus */
31 #include <gtk/gtkvbox.h>
32 #include <shell/Evolution.h>
34 struct _ESignature;
35 struct _GtkToggleButton;
36 struct _GtkOptionMenu;
37 struct _GdkPixbuf;
38 struct _GtkWidget;
39 struct _GladeXML;
40 struct _GnomeColorPicker;
41 struct _GnomeFileEntry;
42 struct _GnomeFontPicker;
43 struct _GConfClient;
44 struct _GtkButton;
45 struct _GtkTreeView;
46 struct _GtkWindow;
48 #define EM_MAILER_PREFS_TYPE (em_mailer_prefs_get_type ())
49 #define EM_MAILER_PREFS(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), EM_MAILER_PREFS_TYPE, EMMailerPrefs))
50 #define EM_MAILER_PREFS_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), EM_MAILER_PREFS_TYPE, EMMailerPrefsClass))
51 #define EM_IS_MAILER_PREFS(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), EM_MAILER_PREFS_TYPE))
52 #define EM_IS_MAILER_PREFS_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), EM_MAILER_PREFS_TYPE))
54 typedef struct _EMMailerPrefs EMMailerPrefs;
55 typedef struct _EMMailerPrefsClass EMMailerPrefsClass;
56 typedef struct _EMMailerPrefsHeader EMMailerPrefsHeader;
58 struct _EMMailerPrefsHeader {
59 char *name;
60 int enabled:1;
61 int is_default:1;
64 struct _EMMailerPrefs {
65 GtkVBox parent_object;
67 GNOME_Evolution_Shell shell;
69 struct _GladeXML *gui;
70 struct _GConfClient *gconf;
72 /* General tab */
74 /* Message Display */
75 struct _GtkToggleButton *timeout_toggle;
76 struct _GtkSpinButton *timeout;
77 struct _GtkOptionMenu *charset;
78 struct _GtkToggleButton *citation_highlight;
79 struct _GnomeColorPicker *citation_color;
81 /* Deleting Mail */
82 struct _GtkToggleButton *empty_trash;
83 struct _GtkOptionMenu *empty_trash_days;
84 struct _GtkToggleButton *confirm_expunge;
86 /* New Mail Notification */
87 struct _GtkToggleButton *notify_not;
88 struct _GtkToggleButton *notify_beep;
89 struct _GtkToggleButton *notify_play_sound;
90 struct _GnomeFileEntry *notify_sound_file;
92 /* HTML Mail tab */
93 struct _GnomeFontPicker *font_variable;
94 struct _GnomeFontPicker *font_fixed;
95 struct _GtkToggleButton *font_share;
97 /* Loading Images */
98 struct _GtkToggleButton *images_always;
99 struct _GtkToggleButton *images_sometimes;
100 struct _GtkToggleButton *images_never;
102 struct _GtkToggleButton *show_animated;
103 struct _GtkToggleButton *autodetect_links;
104 struct _GtkToggleButton *prompt_unwanted_html;
106 /* Labels and Colours tab */
107 struct {
108 struct _GtkEntry *name;
109 struct _GnomeColorPicker *color;
110 } labels[5];
111 struct _GtkButton *restore_labels;
113 /* Headers tab */
114 struct _GtkButton *add_header;
115 struct _GtkButton *remove_header;
116 struct _GtkEntry *entry_header;
117 struct _GtkTreeView *header_list;
118 struct _GtkListStore *header_list_store;
120 /* Junk prefs */
121 struct _GtkToggleButton *check_incoming;
122 struct _GtkToggleButton *sa_local_tests_only;
123 struct _GtkToggleButton *sa_use_daemon;
126 struct _EMMailerPrefsClass {
127 GtkVBoxClass parent_class;
129 /* signals */
133 GtkType em_mailer_prefs_get_type (void);
135 struct _GtkWidget *em_mailer_prefs_new (void);
137 EMMailerPrefsHeader *em_mailer_prefs_header_from_xml(const char *xml);
138 char *em_mailer_prefs_header_to_xml(EMMailerPrefsHeader *header);
139 void em_mailer_prefs_header_free(EMMailerPrefsHeader *header);
141 /* needed by global config */
142 #define EM_MAILER_PREFS_CONTROL_ID "OAFIID:GNOME_Evolution_Mail_MailerPrefs_ConfigControl:" BASE_VERSION
144 #ifdef __cplusplus
146 #endif /* __cplusplus */
148 #endif /* __EM_MAILER_PREFS_H__ */