~ubuntu-branches/ubuntu/maverick/uim/maverick

« back to all changes in this revision

Viewing changes to sumika/gtk2/addwordpane.h

  • Committer: Bazaar Package Importer
  • Author(s): Masahito Omote
  • Date: 2006-11-23 15:10:53 UTC
  • mfrom: (3.1.8 edgy)
  • Revision ID: james.westby@ubuntu.com-20061123151053-q42sk1lvks41xpfx
Tags: 1:1.2.1-9
uim-gtk2.0.postinst: Don't call update-gtk-immodules on purge.
(closes: Bug#398530)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 *  $Id:$
3
 
 *  Copyright (c) 2003,2004 Masahito Omote <omote@utyuuzin.net>
4
 
 *
5
 
 *  All rights reserved.
6
 
 *
7
 
 *  Redistribution and use in source and binary forms, with or without
8
 
 *  modification, are permitted provided that the following conditions
9
 
 *  are met:
10
 
 *
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.
19
 
 *
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
30
 
 *  SUCH DAMAGE.
31
 
 */
32
 
 
33
 
#ifndef __WORDAPPEND_PANE_H__
34
 
#define __WORDAPPEND_PANE_H__
35
 
 
36
 
#ifdef HAVE_CONFIG_H
37
 
#include "config.h"
38
 
#endif /* HAVE_CONFIG_H */
39
 
 
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>
49
 
 
50
 
#include "word.h"
51
 
 
52
 
#ifdef __cplusplus
53
 
extern "C" {
54
 
#endif
55
 
 
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))
62
 
 
63
 
typedef struct _AddWordPane AddWordPane;
64
 
typedef struct _AddWordPaneClass AddWordPaneClass;
65
 
typedef struct _AddWordPaneInfo AddWordPaneInfo;
66
 
 
67
 
typedef enum {
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, */
75
 
    ADDWORDPANE_MODE_ALL,
76
 
} addwordpane_mode;
77
 
 
78
 
struct _AddWordPane {
79
 
    GtkHBox container;
80
 
 
81
 
    GtkEntry *phonetic;
82
 
    GtkEntry *literal;
83
 
    GtkComboBox *combo_pos;
84
 
    GtkEntry *pos_narrow;
85
 
    GtkButton *pos_browse;
86
 
/*    GtkEntry *frequency; */
87
 
    GtkSpinButton *frequency;
88
 
 
89
 
    GtkFrame *frame_checkbutton;
90
 
    GtkCheckButton *check_anthy;
91
 
    GtkCheckButton *check_canna;
92
 
    GtkCheckButton *check_prime;
93
 
 
94
 
    GtkButton *add;
95
 
    GtkButton *clear;
96
 
 
97
 
    /* private */
98
 
 
99
 
    /* properties */
100
 
    addwordpane_mode mode;
101
 
};
102
 
 
103
 
struct _AddWordPaneClass {
104
 
    GtkHBoxClass parent_class;
105
 
};
106
 
 
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);
110
 
#ifdef __cplusplus
111
 
}
112
 
#endif
113
 
#endif /* __WORDAPPEND_PANE_H__ */