2011-10-07 [colin] 3.7.10cvs21
[claws.git] / src / gtk / spell_entry.h
1 /*
2  * @file libsexy/sexy-icon-entry.h Entry widget
3  *
4  * @Copyright (C) 2004-2006 Christian Hammond.
5  * Some of this code is from gtkspell, Copyright (C) 2002 Evan Martin.
6  * Adapted for Claws Mail (c) 2009-2011 Pawel Pekala and the Claws Mail team
7  *
8  * This program is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation; either version 3 of the License, or
11  * (at your option) any later version.
12  *
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with this program. If not, see <http://www.gnu.org/licenses/>.
20  * 
21  */
22
23 #ifndef __SPELL_ENTRY_H__
24 #define __SPELL_ENTRY_H__
25
26 #ifdef HAVE_CONFIG_H
27 #  include "config.h"
28 #endif
29
30 #ifdef USE_ENCHANT
31
32 G_BEGIN_DECLS
33
34 typedef struct _ClawsSpellEntry ClawsSpellEntry;
35 typedef struct _ClawsSpellEntryClass ClawsSpellEntryClass;
36 typedef struct _ClawsSpellEntryPriv ClawsSpellEntryPriv;
37
38 #include <gtk/gtk.h>
39 #include "gtkaspell.h"
40
41 #define CLAWS_TYPE_SPELL_ENTRY            (claws_spell_entry_get_type())
42 #define CLAWS_SPELL_ENTRY(obj)            (G_TYPE_CHECK_INSTANCE_CAST((obj), CLAWS_TYPE_SPELL_ENTRY, ClawsSpellEntry))
43 #define CLAWS_SPELL_ENTRY_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST((klass), CLAWS_TYPE_SPELL_ENTRY, ClawsSpellEntryClass))
44 #define CLAWS_IS_SPELL_ENTRY(obj)         (G_TYPE_CHECK_INSTANCE_TYPE((obj), CLAWS_TYPE_SPELL_ENTRY))
45
46 struct _ClawsSpellEntry
47 {
48         GtkEntry parent_object;
49         
50         ClawsSpellEntryPriv *priv;
51         GtkAspell *gtkaspell;
52        
53         void (*gtk_reserved1)(void);
54         void (*gtk_reserved2)(void);
55         void (*gtk_reserved3)(void);
56         void (*gtk_reserved4)(void);
57 };
58
59 struct _ClawsSpellEntryClass
60 {
61         GtkEntryClass parent_class;
62
63         void (*gtk_reserved1)(void);
64         void (*gtk_reserved2)(void);
65         void (*gtk_reserved3)(void);
66         void (*gtk_reserved4)(void);
67 };
68
69 GType           claws_spell_entry_get_type              (void);
70 GtkWidget *     claws_spell_entry_new                   (void);
71 void            claws_spell_entry_set_gtkaspell         (ClawsSpellEntry *entry,
72                                                          GtkAspell *gtkaspell);
73 void            claws_spell_entry_recheck_all           (ClawsSpellEntry *entry);
74 void            claws_spell_entry_check_all             (ClawsSpellEntry *entry);
75 void            claws_spell_entry_context_set           (ClawsSpellEntry *entry);
76 void            claws_spell_entry_check_backwards       (ClawsSpellEntry *entry);
77 void            claws_spell_entry_check_forwards_go     (ClawsSpellEntry *entry);
78
79
80 G_END_DECLS
81
82 #endif  /* USE_ENCHANT */
83 #endif  /* __SPELL_ENTRY_H__ */