1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ 2 /* 3 * Copyright (C) 2004 Hiroyuki Ikezoe 4 * Copyright (C) 2004-2005 Takuro Ashie 5 * 6 * This program is free software; you can redistribute it and/or modify 7 * it under the terms of the GNU General Public License as published by 8 * the Free Software Foundation; either version 2, or (at your option) 9 * any later version. 10 * 11 * This program is distributed in the hope that it will be useful, 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 * GNU General Public License for more details. 15 * 16 * You should have received a copy of the GNU General Public License 17 * along with this program; if not, write to the Free Software 18 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 19 */ 20 21 #ifndef __SCIM_ANTHY_SETUP_H__ 22 #define __SCIM_ANTHY_SETUP_H__ 23 24 #ifdef HAVE_CONFIG_H 25 #include <config.h> 26 #endif 27 28 #include <gtk/gtk.h> 29 #include <gdk/gdkkeysyms.h> 30 31 #define SCIM_ANTHY_USE_GTK 32 #include <scim.h> 33 #include "scim_anthy_style_file.h" 34 35 namespace scim_anthy { 36 37 GtkWidget *create_check_button (const char *config_key); 38 GtkWidget *create_spin_button (const char *config_key, 39 GtkTable *table, 40 int idx); 41 GtkWidget *create_entry (const char *config_key, 42 GtkTable *table, 43 int idx); 44 GtkWidget *create_combo (const char *config_key, 45 gpointer candidates_p, 46 GtkTable *table, 47 gint idx); 48 GtkWidget *create_option_menu (const char *config_key, 49 gpointer candidates_p, 50 GtkTable *table, 51 gint idx); 52 GtkWidget *create_color_button (const char *config_key); 53 GtkWidget *create_key_select_button (const char *config_key, 54 GtkTable *table, 55 int idx); 56 57 extern StyleFiles __style_list; 58 extern StyleFile __user_style_file; 59 extern bool __config_changed; 60 extern bool __style_changed; 61 62 }; 63 64 #endif /* __SCIM_ANTHY_SETUP_H__ */ 65