3
* Copyright (C) 2004 - 2007 Vivien Malerba
5
* This program is free software; you can redistribute it and/or
6
* modify it under the terms of the GNU General Public License as
7
* published by the Free Software Foundation; either version 2 of the
8
* License, or (at your option) any later version.
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
21
#ifndef __QUERY_EDITOR__
22
#define __QUERY_EDITOR__
24
#include <glib/gi18n-lib.h>
26
#include <libgnomedb/libgnomedb.h>
30
#define QUERY_EDITOR_TYPE (query_editor_get_type())
31
#define QUERY_EDITOR(obj) G_TYPE_CHECK_INSTANCE_CAST (obj, query_editor_get_type(), QueryEditor)
32
#define QUERY_EDITOR_CLASS(klass) G_TYPE_CHECK_CLASS_CAST (klass, query_editor_get_type (), QueryEditorClass)
33
#define IS_QUERY_EDITOR(obj) G_TYPE_CHECK_INSTANCE_TYPE (obj, query_editor_get_type ())
36
typedef struct _QueryEditor QueryEditor;
37
typedef struct _QueryEditorClass QueryEditorClass;
38
typedef struct _QueryEditorPriv QueryEditorPriv;
41
/* struct for the object's data */
46
QueryEditorPriv *priv;
49
/* struct for the object's class */
50
struct _QueryEditorClass
52
GtkVBoxClass parent_class;
56
* Generic widget's methods
58
GType query_editor_get_type (void);
59
GtkWidget *query_editor_new (GdaQuery *query);