1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
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.
24 #ifndef __EM_COMPOSER_PREFS_H__
25 #define __EM_COMPOSER_PREFS_H__
30 #endif /* __cplusplus */
33 #include <gtk/gtkvbox.h>
36 #define EM_COMPOSER_PREFS_TYPE (em_composer_prefs_get_type ())
37 #define EM_COMPOSER_PREFS(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), EM_COMPOSER_PREFS_TYPE, EMComposerPrefs))
38 #define EM_COMPOSER_PREFS_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), EM_COMPOSER_PREFS_TYPE, EMComposerPrefsClass))
39 #define EM_IS_COMPOSER_PREFS(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), EM_COMPOSER_PREFS_TYPE))
40 #define EM_IS_COMPOSER_PREFS_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), EM_COMPOSER_PREFS_TYPE))
42 typedef struct _EMComposerPrefs EMComposerPrefs
;
43 typedef struct _EMComposerPrefsClass EMComposerPrefsClass
;
46 struct _GtkToggleButton
;
47 struct _GtkOptionMenu
;
51 struct _GnomeColorPicker
;
57 struct _EMComposerPrefs
{
58 GtkVBox parent_object
;
60 struct _GConfClient
*gconf
;
62 struct _GladeXML
*gui
;
66 /* Default Behavior */
67 struct _GtkToggleButton
*send_html
;
68 struct _GtkToggleButton
*auto_smileys
;
69 struct _GtkToggleButton
*prompt_empty_subject
;
70 struct _GtkToggleButton
*prompt_bcc_only
;
71 struct _GtkOptionMenu
*charset
;
73 struct _GtkToggleButton
*spell_check
;
74 struct _GnomeColorPicker
*colour
;
75 struct _GtkTreeView
*language
;
76 CORBA_sequence_GNOME_Spell_Language
*language_seq
;
77 gboolean spell_active
;
79 struct _GdkPixbuf
*enabled_pixbuf
;
81 /* Forwards and Replies */
82 struct _GtkOptionMenu
*forward_style
;
83 struct _GtkOptionMenu
*reply_style
;
85 /* Keyboard Shortcuts */
86 struct _GtkOptionMenu
*shortcuts_type
;
89 struct _GtkTreeView
*sig_list
;
91 struct _GtkButton
*sig_add
;
92 struct _GtkButton
*sig_add_script
;
93 struct _GtkButton
*sig_edit
;
94 struct _GtkButton
*sig_delete
;
95 struct _GtkHTML
*sig_preview
;
97 struct _GladeXML
*sig_script_gui
;
98 struct _GtkWidget
*sig_script_dialog
;
101 guint sig_removed_id
;
102 guint sig_changed_id
;
105 struct _EMComposerPrefsClass
{
106 GtkVBoxClass parent_class
;
112 GType
em_composer_prefs_get_type (void);
114 struct _GtkWidget
*em_composer_prefs_new (void);
116 void em_composer_prefs_new_signature (struct _GtkWindow
*parent
, gboolean html
);
118 /* needed by global config */
119 #define EM_COMPOSER_PREFS_CONTROL_ID "OAFIID:GNOME_Evolution_Mail_ComposerPrefs_ConfigControl:" BASE_VERSION
123 #endif /* __cplusplus */
125 #endif /* __EM_COMPOSER_PREFS_H__ */