3
* Copyright (c) 2003,2004 Masahito Omote <omote@utyuuzin.net>
7
* Redistribution and use in source and binary forms, with or without
8
* modification, are permitted provided that the following conditions
11
* 1. Redistributions of source code must retain the above copyright
12
* notice, this list of conditions and the following disclaimer.
13
* 2. Redistributions in binary form must reproduce the above copyright
14
* notice, this list of conditions and the following disclaimer in the
15
* documentation and/or other materials provided with the distribution.
16
* 3. Neither the name of authors nor the names of its contributors
17
* may be used to endorse or promote products derived from this software
18
* without specific prior written permission.
20
* THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
21
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23
* ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
24
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
33
#ifndef __WORDAPPEND_PANE_H__
34
#define __WORDAPPEND_PANE_H__
38
#endif /* HAVE_CONFIG_H */
40
#include <gtk/gtkhbox.h>
41
#include <gtk/gtkdialog.h>
42
#include <gtk/gtkentry.h>
43
#include <gtk/gtkspinbutton.h>
44
#include <gtk/gtktreeview.h>
45
#include <gtk/gtktreemodel.h>
46
#include <gtk/gtkcombobox.h>
47
#include <gtk/gtkcheckbutton.h>
48
#include <gtk/gtkframe.h>
56
#define ADDWORD_PANE_TYPE (addword_pane_get_type())
57
#define ADDWORD_PANE(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), ADDWORD_PANE_TYPE, AddWordPane))
58
#define ADDWORD_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), ADDWORD_PANE_TYPE, AddWordPaneClass))
59
#define IS_ADDWORD_PANE(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), ADDWORD_PANE_TYPE))
60
#define IS_ADDWORD_PANE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), ADDWORD_PANE_TYPE)
61
#define IS_ADDWORD_PANE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), ADDWORD_PANE_TYPE, AddWordPaneClass))
63
typedef struct _AddWordPane AddWordPane;
64
typedef struct _AddWordPaneClass AddWordPaneClass;
65
typedef struct _AddWordPaneInfo AddWordPaneInfo;
68
ADDWORDPANE_MODE_NOTHING,
69
ADDWORDPANE_MODE_ANTHY,
70
ADDWORDPANE_MODE_CANNA,
71
/* ADDWORDPANE_MODE_PRIME, */
72
/* ADDWORDPANE_MODE_ANTHYCANNA, */
73
/* ADDWORDPANE_MODE_ANTHYPRIME, */
74
/* ADDWORDPANE_MODE_CANNAPRIME, */
83
GtkComboBox *combo_pos;
85
GtkButton *pos_browse;
86
/* GtkEntry *frequency; */
87
GtkSpinButton *frequency;
89
GtkFrame *frame_checkbutton;
90
GtkCheckButton *check_anthy;
91
GtkCheckButton *check_canna;
92
GtkCheckButton *check_prime;
100
addwordpane_mode mode;
103
struct _AddWordPaneClass {
104
GtkHBoxClass parent_class;
107
GtkWidget *addword_pane_new (void);
108
void addword_pane_set_mode (AddWordPane *pane, addwordpane_mode mode);
109
addwordpane_mode addword_pane_get_mode (AddWordPane *pane);
113
#endif /* __WORDAPPEND_PANE_H__ */