Tizen 2.0 Release
[framework/uifw/ise-engine-anthy.git] / src / scim_anthy_table_editor.h
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3  *  Copyright (C) 2004-2005 Takuro Ashie
4  *
5  *  This program is free software; you can redistribute it and/or modify
6  *  it under the terms of the GNU General Public License as published by
7  *  the Free Software Foundation; either version 2, or (at your option)
8  *  any later version.
9  *
10  *  This program is distributed in the hope that it will be useful,
11  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  *  GNU General Public License for more details.
14  *
15  *  You should have received a copy of the GNU General Public License
16  *  along with this program; if not, write to the Free Software
17  *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18  */
19
20 #ifndef __SCIM_ANTHY_TABLE_EDITOR_H__
21 #define __SCIM_ANTHY_TABLE_EDITOR_H__
22
23 #include <gtk/gtk.h>
24
25 #define SCIM_ANTHY_TYPE_TABLE_EDITOR            (scim_anthy_table_editor_get_type ())
26 #define SCIM_ANTHY_TABLE_EDITOR(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), SCIM_ANTHY_TYPE_TABLE_EDITOR, ScimAnthyTableEditor))
27 #define SCIM_ANTHY_TABLE_EDITOR_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), SCIM_ANTHY_TYPE_TABLE_EDITOR, ScimAnthyTableEditorClass))
28 #define SCIM_ANTHY_IS_TABLE_EDITOR(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SCIM_ANTHY_TYPE_TABLE_EDITOR))
29 #define SCIM_ANTHY_IS_TABLE_EDITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SCIM_ANTHY_TYPE_TABLE_EDITOR))
30 #define SCIM_ANTHY_TABLE_EDITOR_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS ((obj), SCIM_ANTHY_TYPE_TABLE_EDITOR, ScimAnthyTableEditorClass))
31
32
33 typedef struct _ScimAnthyTableEditorClass ScimAnthyTableEditorClass;
34 typedef struct _ScimAnthyTableEditor      ScimAnthyTableEditor;
35
36 struct _ScimAnthyTableEditor
37 {
38     GtkDialog  parent_instance;
39
40     GtkWidget *treeview;
41
42     GtkWidget *button_area;
43
44     GtkWidget *add_button;
45     GtkWidget *remove_button;
46
47     GList     *entries;
48 };
49
50 struct _ScimAnthyTableEditorClass
51 {
52     GtkDialogClass parent_class;
53
54     /* -- signals -- */
55     void (*add_entry)    (ScimAnthyTableEditor *editor);
56     void (*remove_entry) (ScimAnthyTableEditor *editor);
57 };
58
59
60 GType       scim_anthy_table_editor_get_type     (void) G_GNUC_CONST;
61 GtkWidget  *scim_anthy_table_editor_new          (void);
62 const char *scim_anthy_table_editor_get_nth_text (ScimAnthyTableEditor *editor,
63                                                   guint                 nth);
64 void        scim_anthy_table_editor_set_columns  (ScimAnthyTableEditor *editor,
65                                                   const char          **titles);
66
67 #endif /* __SCIM_ANTHY_TABLE_EDITOR_H__ */