1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * Copyright (C) 2004-2005 Takuro Ashie
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)
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.
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.
20 #ifndef __SCIM_ANTHY_TABLE_EDITOR_H__
21 #define __SCIM_ANTHY_TABLE_EDITOR_H__
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))
33 typedef struct _ScimAnthyTableEditorClass ScimAnthyTableEditorClass;
34 typedef struct _ScimAnthyTableEditor ScimAnthyTableEditor;
36 struct _ScimAnthyTableEditor
38 GtkDialog parent_instance;
42 GtkWidget *button_area;
44 GtkWidget *add_button;
45 GtkWidget *remove_button;
50 struct _ScimAnthyTableEditorClass
52 GtkDialogClass parent_class;
55 void (*add_entry) (ScimAnthyTableEditor *editor);
56 void (*remove_entry) (ScimAnthyTableEditor *editor);
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,
64 void scim_anthy_table_editor_set_columns (ScimAnthyTableEditor *editor,
67 #endif /* __SCIM_ANTHY_TABLE_EDITOR_H__ */