1 /* 2 * Copyright (C) 2009 - 2011 Vivien Malerba <malerba@gnome-db.org> 3 * 4 * This library is free software; you can redistribute it and/or 5 * modify it under the terms of the GNU Lesser General Public 6 * License as published by the Free Software Foundation; either 7 * version 2 of the License, or (at your option) any later version. 8 * 9 * This library is distributed in the hope that it will be useful, 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 * Lesser General Public License for more details. 13 * 14 * You should have received a copy of the GNU Lesser General Public 15 * License along with this library; if not, write to the 16 * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, 17 * Boston, MA 02110-1301, USA. 18 */ 19 20 #ifndef __GDAUI_RAW_FORM__ 21 #define __GDAUI_RAW_FORM__ 22 23 #include <gtk/gtk.h> 24 #include <libgda/gda-data-model.h> 25 #include "gdaui-basic-form.h" 26 27 G_BEGIN_DECLS 28 29 #define GDAUI_TYPE_RAW_FORM (gdaui_raw_form_get_type()) 30 #define GDAUI_RAW_FORM(obj) G_TYPE_CHECK_INSTANCE_CAST (obj, gdaui_raw_form_get_type(), GdauiRawForm) 31 #define GDAUI_RAW_FORM_CLASS(klass) G_TYPE_CHECK_CLASS_CAST (klass, gdaui_raw_form_get_type (), GdauiRawFormClass) 32 #define GDAUI_IS_RAW_FORM(obj) G_TYPE_CHECK_INSTANCE_TYPE (obj, gdaui_raw_form_get_type ()) 33 34 35 typedef struct _GdauiRawForm GdauiRawForm; 36 typedef struct _GdauiRawFormClass GdauiRawFormClass; 37 typedef struct _GdauiRawFormPriv GdauiRawFormPriv; 38 39 /* struct for the object's data */ 40 struct _GdauiRawForm 41 { 42 GdauiBasicForm object; 43 44 GdauiRawFormPriv *priv; 45 }; 46 47 /* struct for the object's class */ 48 struct _GdauiRawFormClass 49 { 50 GdauiBasicFormClass parent_class; 51 }; 52 53 /** 54 * SECTION:gdaui-raw-form 55 * @short_description: Form widget to manipulate data in a #GdaDataModel 56 * @title: GdauiRawForm 57 * @stability: Stable 58 * @Image: 59 * @see_also: the #GdauiForm widget which uses the #GdauiRawForm and adds decorations such as information about data model size, and features searching. 60 * 61 * The #GdauiForm widget which uses the #GdauiRawForm and adds decorations such as 62 * information about data model size, and features searching. 63 */ 64 65 GType gdaui_raw_form_get_type (void) G_GNUC_CONST; 66 GtkWidget *gdaui_raw_form_new (GdaDataModel *model); 67 68 G_END_DECLS 69 70 #endif 71 72 73 74