1 /* 2 * Copyright (C) 2009 - 2011 Vivien Malerba <malerba@gnome-db.org> 3 * Copyright (C) 2011 Murray Cumming <murrayc@murrayc.com> 4 * 5 * This library is free software; you can redistribute it and/or 6 * modify it under the terms of the GNU Lesser General Public 7 * License as published by the Free Software Foundation; either 8 * version 2 of the License, or (at your option) any later version. 9 * 10 * This library 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 GNU 13 * Lesser General Public License for more details. 14 * 15 * You should have received a copy of the GNU Lesser General Public 16 * License along with this library; if not, write to the 17 * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, 18 * Boston, MA 02110-1301, USA. 19 */ 20 21 #ifndef __GDAUI_FORM__ 22 #define __GDAUI_FORM__ 23 24 #include <gtk/gtk.h> 25 #include <libgda/gda-decl.h> 26 27 G_BEGIN_DECLS 28 29 #define GDAUI_TYPE_FORM (gdaui_form_get_type()) 30 #define GDAUI_FORM(obj) G_TYPE_CHECK_INSTANCE_CAST (obj, gdaui_form_get_type(), GdauiForm) 31 #define GDAUI_FORM_CLASS(klass) G_TYPE_CHECK_CLASS_CAST (klass, gdaui_form_get_type (), GdauiFormClass) 32 #define GDAUI_IS_FORM(obj) G_TYPE_CHECK_INSTANCE_TYPE (obj, gdaui_form_get_type ()) 33 #define GDAUI_IS_FORM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), GDAUI_TYPE_FORM)) 34 35 typedef struct _GdauiForm GdauiForm; 36 typedef struct _GdauiFormClass GdauiFormClass; 37 typedef struct _GdauiFormPriv GdauiFormPriv; 38 39 /* struct for the object's data */ 40 struct _GdauiForm 41 { 42 GtkBox object; 43 44 GdauiFormPriv *priv; 45 }; 46 47 /* struct for the object's class */ 48 struct _GdauiFormClass 49 { 50 GtkBoxClass parent_class; 51 }; 52 53 /** 54 * SECTION:gdaui-form 55 * @short_description: Form widget to manipulate data in a #GdaDataModel, with decorations 56 * @title: GdauiForm 57 * @stability: Stable 58 * @Image: 59 * @see_also: The #GdauiRawForm widget which is used by the #GdaForm widget. 60 */ 61 62 GType gdaui_form_get_type (void) G_GNUC_CONST; 63 64 GtkWidget *gdaui_form_new (GdaDataModel *model); 65 66 G_END_DECLS 67 68 #endif 69 70 71 72