data/territorio/Makefile
data/territorio/form/Makefile
data/territorio/gui/Makefile
+ data/territorio/queryeditor/Makefile
docs/Makefile
docs/territorio/Makefile
docs/territorio/examples/Makefile
-SUBDIRS = form gui
+SUBDIRS = form gui queryeditor
<property name="position">3</property>
</packing>
</child>
+ <child>
+ <object class="GtkButton" id="button69">
+ <property name="label">gtk-find</property>
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="receives_default">True</property>
+ <property name="use_stock">True</property>
+ </object>
+ <packing>
+ <property name="expand">True</property>
+ <property name="fill">True</property>
+ <property name="position">4</property>
+ </packing>
+ </child>
<child>
<object class="GtkButton" id="button4">
<property name="label">gtk-cancel</property>
<packing>
<property name="expand">False</property>
<property name="fill">False</property>
- <property name="position">4</property>
+ <property name="position">5</property>
</packing>
</child>
<child>
<packing>
<property name="expand">False</property>
<property name="fill">False</property>
- <property name="position">5</property>
+ <property name="position">6</property>
+ </packing>
+ </child>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">True</property>
+ <property name="position">2</property>
+ </packing>
+ </child>
+ </object>
+ </child>
+ </object>
+ <object class="GtkWindow" id="w_stati_qe">
+ <property name="can_focus">False</property>
+ <property name="title" translatable="yes">Ricerca fornitori - Gestione ordini cancelleria</property>
+ <property name="modal">True</property>
+ <property name="window_position">center-on-parent</property>
+ <property name="default_width">550</property>
+ <property name="destroy_with_parent">True</property>
+ <child>
+ <object class="GtkBox" id="vbox19">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="border_width">5</property>
+ <property name="orientation">vertical</property>
+ <property name="spacing">5</property>
+ <child>
+ <placeholder/>
+ </child>
+ <child>
+ <object class="GtkSeparator" id="separator3">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">True</property>
+ <property name="position">1</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkButtonBox" id="hbuttonbox18">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="hexpand">True</property>
+ <property name="spacing">5</property>
+ <property name="layout_style">end</property>
+ <child>
+ <object class="GtkButton" id="button65">
+ <property name="label">gtk-cancel</property>
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="receives_default">True</property>
+ <property name="use_stock">True</property>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkButton" id="button66">
+ <property name="label">gtk-ok</property>
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="receives_default">True</property>
+ <property name="use_stock">True</property>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
+ <property name="position">1</property>
</packing>
</child>
</object>
--- /dev/null
+queryeditordir = $(datadir)/$(PACKAGE)/queryeditor
+
+queryeditor_DATA = \
+ stati.xml
+
+EXTRA_DIST = $(queryeditor_DATA)
--- /dev/null
+<gdaex_query_editor>
+
+ <tables>
+ <table>
+ <name>stati</name>
+ <name_visible>Stati</name_visible>
+ </table>
+ </tables>
+
+ <fields table="stati">
+ <field>
+ <name>id</name>
+ <name_visible>ID</name_visible>
+ <type>integer</type>
+ <always_showed>true</always_showed>
+ <available_where_type>equal</available_where_type>
+ </field>
+ <field>
+ <name>nome</name>
+ <name_visible>Nome</name_visible>
+ <type>text</type>
+ <always_showed>true</always_showed>
+ <available_where_type>string</available_where_type>
+ </field>
+ <field>
+ <name>nazionalita</name>
+ <name_visible>Nazionalità</name_visible>
+ <type>text</type>
+ <available_where_type>string</available_where_type>
+ </field>
+ <field>
+ <name>sigla</name>
+ <name_visible>Partita Sigla</name_visible>
+ <type>text</type>
+ <available_where_type>string</available_where_type>
+ </field>
+ <field>
+ <name>cod_istat</name>
+ <name_visible>Codice ISTAT</name_visible>
+ <type>text</type>
+ <available_where_type>string</available_where_type>
+ </field>
+ <field>
+ <name>comunita_europea</name>
+ <name_visible>In Comunità Europea</name_visible>
+ <type>boolean</type>
+ <available_where_type>equal</available_where_type>
+ </field>
+ </fields>
+
+</gdaex_query_editor>
../src/ricercaprovince.c \
../src/ricercavie.c \
../src/stati.c \
+ ../src/statiqe.c \
../src/stato.c \
../src/tipiaggregazioneterritoriale.c \
../src/tipoaggregazioneterritoriale.c \
../src/regione.h \
../src/regioni.h \
../src/stati.h \
+ ../src/statiqe.h \
../src/stato.h \
../src/tipiaggregazioneterritoriale.h \
../src/tipoaggregazioneterritoriale.h \
guidir = $(datadir)/$(PACKAGE)/gui
formdir = $(datadir)/$(PACKAGE)/form
+queryeditordir = $(datadir)/$(PACKAGE)/queryeditor
AM_CPPFLAGS = $(TERRITORIO_CFLAGS) \
-DGUIDIR=\""$(guidir)"\" \
-DFORMDIR=\""$(formdir)"\" \
+ -DQUERYEDITORDIR=\""$(queryeditordir)"\" \
-DSOLIPA_FOUND=1
LIBS = $(TERRITORIO_LIBS) \
ricercavie.h \
stati.c \
stati.h \
+ statiqe.c \
+ statiqe.h \
stato.c \
stato.h \
tipiaggregazioneterritoriale.c \
{
gchar *guidir;
gchar *formdir;
+ gchar *queryeditordir;
GtkBuilder *gtkbuilder;
commons->utente = g_strdup (utente);
- /* leggo i parametri per libzak_autho */
+ /* leggo i parametri per libzakautho */
error = NULL;
cnc_string = g_key_file_get_value (config, "AUTOZ", "cnc_string", &error);
if (cnc_string == NULL)
{
commons->guidir = g_strdup (GUIDIR);
commons->formdir = g_strdup (FORMDIR);
+ commons->queryeditordir = g_strdup (QUERYEDITORDIR);
}
else
{
commons->guidir = g_build_filename (moddir, "share", PACKAGE, "gui", NULL);
commons->formdir = g_build_filename (moddir, "share", PACKAGE, "form", NULL);
+ commons->queryeditordir = g_build_filename (moddir, "share", PACKAGE, "queryeditor", NULL);
}
#else
commons->guidir = g_strdup (GUIDIR);
commons->formdir = g_strdup (FORMDIR);
+ commons->queryeditordir = g_strdup (QUERYEDITORDIR);
#endif
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
+ * License along with this library; if not, writ!e to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*
*/
#include "stati.h"
#include "stato.h"
+#include "statiqe.h"
static void territorio_stati_class_init (TerritorioStatiClass *klass);
static void territorio_stati_init (TerritorioStati *territorio_stati);
static void territorio_stati_selezionato (TerritorioStati *territorio_stati);
static void territorio_stati_on_stato_aggiornato (gpointer instance, gpointer user_data);
+static void territorio_stati_on_stati_qe_selezionato (gpointer instance, gpointer parametri, gpointer user_data);
static void territorio_stati_set_property (GObject *object,
guint property_id,
GtkTreeViewColumn *column,
gpointer user_data);
+static void territorio_stati_on_btn_trova_clicked (GtkButton *button,
+ gpointer user_data);
+
static void territorio_stati_on_btn_annulla_clicked (GtkButton *button,
gpointer user_data);
static void territorio_stati_on_btn_seleziona_clicked (GtkButton *button,
gboolean selezione;
GtkWindow *wtransient;
+
+ GdaExQueryEditor *qe;
};
G_DEFINE_TYPE (TerritorioStati, territorio_stati, G_TYPE_OBJECT)
g_signal_connect (priv->wgrid,
"row-activated", G_CALLBACK (territorio_stati_on_trv_stati_row_activated), (gpointer)a);
+ g_signal_connect (gtk_builder_get_object (priv->commons->gtkbuilder, "button69"),
+ "clicked", G_CALLBACK (territorio_stati_on_btn_trova_clicked), (gpointer)a);
+
if (priv->selezione)
{
gtk_widget_hide (GTK_WIDGET (gtk_builder_get_object (priv->commons->gtkbuilder, "label1")));
gtk_list_store_clear (priv->lstore_stati);
- sql = g_strdup ("SELECT c.id, c.nome"
+ if (!GDAEX_IS_QUERY_EDITOR (priv->qe)
+ || gdaex_query_editor_get_sql_where (priv->qe) == NULL
+ || g_strcmp0 (gdaex_query_editor_get_sql_where (priv->qe), "") == 0)
+ {
+ sql = g_strdup ("SELECT c.id, c.nome"
" FROM stati AS c"
" WHERE c.status <> 'E'"
" ORDER BY c.nome");
+ }
+ else
+ {
+ sql = g_strconcat ("SELECT ",
+ gdaex_query_editor_get_sql_select (priv->qe),
+ " FROM ",
+ gdaex_query_editor_get_sql_from (priv->qe),
+ " WHERE ",
+ gdaex_query_editor_get_sql_where (priv->qe),
+ " AND stati.status <> 'E'"
+ " ORDER BY stati.nome",
+ NULL);
+
+ }
- gdaex_grid_fill_from_sql (priv->grid, priv->commons->gdaex,
+ gdaex_grid_fill_from_sql (priv->grid,
+ priv->commons->gdaex,
sql,
NULL);
territorio_stati_carica ((TerritorioStati *)user_data);
}
+static void
+territorio_stati_on_stati_qe_selezionato (gpointer instance, gpointer parametri, gpointer user_data)
+{
+ TerritorioStati *territorio_stati = TERRITORIO_STATI (user_data);
+ TerritorioStatiPrivate *priv = TERRITORIO_STATI_GET_PRIVATE (territorio_stati);
+
+ priv->qe = (GdaExQueryEditor *)parametri;
+ territorio_stati_carica (territorio_stati);
+}
+
static void
territorio_stati_set_property (GObject *object, guint property_id, const GValue *value, GParamSpec *pspec)
{
}
+static void
+territorio_stati_on_btn_trova_clicked (GtkButton *button,
+ gpointer user_data)
+{
+ TerritorioStatiPrivate *priv = TERRITORIO_STATI_GET_PRIVATE ((TerritorioStati *)user_data);
+
+ TerritorioStatiQe *c = territorio_stati_qe_new (priv->commons, priv->qe);
+
+ g_signal_connect (G_OBJECT (c), "selezionato",
+ G_CALLBACK (territorio_stati_on_stati_qe_selezionato), user_data);
+
+ territorio_stati_qe_show (c, GTK_WINDOW (priv->wtransient));
+}
+
static void
territorio_stati_on_btn_annulla_clicked (GtkButton *button,
gpointer user_data)
--- /dev/null
+/*
+ * Copyright (C) 2015 Andrea Zagli <azagli@libero.it>
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ *
+ */
+
+#ifdef HAVE_CONFIG_H
+ #include <config.h>
+#endif
+
+#include <gdk/gdk.h>
+
+#include <libgdaex/libgdaex.h>
+#include <libsolipa/libsolipa.h>
+
+#include "statiqe.h"
+
+static void territorio_stati_qe_class_init (TerritorioStatiQeClass *klass);
+static void territorio_stati_qe_init (TerritorioStatiQe *territorio_stati_qe);
+
+static void territorio_stati_qe_selezionato (TerritorioStatiQe *territorio_stati_qe);
+
+static void territorio_stati_qe_set_property (GObject *object,
+ guint property_id,
+ const GValue *value,
+ GParamSpec *pspec);
+static void territorio_stati_qe_get_property (GObject *object,
+ guint property_id,
+ GValue *value,
+ GParamSpec *pspec);
+
+static gboolean territorio_stati_qe_on_key_release_event (GtkWidget *widget,
+ GdkEventKey *event,
+ gpointer user_data);
+
+static void territorio_stati_qe_on_btn_annulla_clicked (GtkButton *button,
+ gpointer user_data);
+static void territorio_stati_qe_on_btn_seleziona_clicked (GtkButton *button,
+ gpointer user_data);
+
+#define TERRITORIO_STATI_QE_GET_PRIVATE(obj) (G_TYPE_INSTANCE_GET_PRIVATE ((obj), TYPE_TERRITORIO_STATI_QE, TerritorioStatiQePrivate))
+
+typedef struct _TerritorioStatiQePrivate TerritorioStatiQePrivate;
+struct _TerritorioStatiQePrivate
+ {
+ TerritorioCommons *commons;
+
+ GtkWidget *widget;
+
+ GdaExQueryEditor *qe;
+ GtkWidget *wqe;
+ };
+
+G_DEFINE_TYPE (TerritorioStatiQe, territorio_stati_qe, G_TYPE_OBJECT)
+
+static void
+territorio_stati_qe_class_init (TerritorioStatiQeClass *klass)
+{
+ GObjectClass *object_class = G_OBJECT_CLASS (klass);
+
+ g_type_class_add_private (object_class, sizeof (TerritorioStatiQePrivate));
+
+ object_class->set_property = territorio_stati_qe_set_property;
+ object_class->get_property = territorio_stati_qe_get_property;
+
+ /**
+ * TerritorioStatiQe::selezionato:
+ * @territorio_stati_qe:
+ *
+ */
+ klass->selezionato_signal_id = g_signal_new ("selezionato",
+ G_TYPE_FROM_CLASS (object_class),
+ G_SIGNAL_RUN_LAST,
+ 0,
+ NULL,
+ NULL,
+ g_cclosure_marshal_VOID__UINT,
+ G_TYPE_NONE,
+ 1, G_TYPE_UINT);
+}
+
+static void
+territorio_stati_qe_init (TerritorioStatiQe *territorio_stati_qe)
+{
+ TerritorioStatiQePrivate *priv = TERRITORIO_STATI_QE_GET_PRIVATE (territorio_stati_qe);
+}
+
+/**
+ * territorio_stati_qe_new:
+ * @commons:
+ * @qe:
+ *
+ * Returns: the newly created #TerritorioStatiQe object.
+ */
+TerritorioStatiQe
+*territorio_stati_qe_new (TerritorioCommons *commons, GdaExQueryEditor *qe)
+{
+ GError *error;
+
+ TerritorioStatiQe *a = TERRITORIO_STATI_QE (g_object_new (territorio_stati_qe_get_type (), NULL));
+
+ TerritorioStatiQePrivate *priv = TERRITORIO_STATI_QE_GET_PRIVATE (a);
+
+ priv->commons = commons;
+
+ error = NULL;
+ gtk_builder_add_objects_from_file (priv->commons->gtkbuilder, priv->commons->guifile,
+ g_strsplit ("w_stati_qe",
+ "|", -1),
+ &error);
+ if (error != NULL)
+ {
+ g_warning ("Errore: %s.", error->message);
+ return NULL;
+ }
+
+ priv->widget = GTK_WIDGET (gtk_builder_get_object (priv->commons->gtkbuilder, "w_stati_qe"));
+
+ g_signal_connect (priv->widget,
+ "key-release-event", G_CALLBACK (territorio_stati_qe_on_key_release_event), (gpointer)a);
+
+ g_signal_connect (gtk_builder_get_object (priv->commons->gtkbuilder, "button65"),
+ "clicked", G_CALLBACK (territorio_stati_qe_on_btn_annulla_clicked), (gpointer)a);
+ g_signal_connect (gtk_builder_get_object (priv->commons->gtkbuilder, "button66"),
+ "clicked", G_CALLBACK (territorio_stati_qe_on_btn_seleziona_clicked), (gpointer)a);
+
+ priv->qe = gdaex_query_editor_new (priv->commons->gdaex);
+ gdaex_query_editor_load_tables_from_file (priv->qe, g_build_filename (priv->commons->queryeditordir, "stati.xml", NULL), TRUE);
+ gdaex_query_editor_set_show_visible (priv->qe, FALSE);
+ gdaex_query_editor_set_order_visible (priv->qe, FALSE);
+
+ priv->wqe = gdaex_query_editor_get_widget (priv->qe);
+ gtk_box_pack_start (GTK_BOX (gtk_builder_get_object (priv->commons->gtkbuilder, "vbox19")),
+ priv->wqe,
+ TRUE, TRUE, 0);
+ gtk_box_reorder_child (GTK_BOX (gtk_builder_get_object (priv->commons->gtkbuilder, "vbox19")),
+ priv->wqe,
+ 0);
+
+ if (GDAEX_IS_QUERY_EDITOR (qe))
+ {
+ gdaex_query_editor_load_choices_from_xml (priv->qe,
+ gdaex_query_editor_get_sql_as_xml (qe),
+ TRUE);
+ }
+
+ return a;
+}
+
+/**
+ * territorio_stati_qe_get_widget:
+ * @territorio_stati_qe:
+ *
+ */
+GtkWidget
+*territorio_stati_qe_get_widget (TerritorioStatiQe *territorio_stati_qe)
+{
+ TerritorioStatiQePrivate *priv = TERRITORIO_STATI_QE_GET_PRIVATE (territorio_stati_qe);
+
+ return priv->widget;
+}
+
+/**
+ * territorio_stati_qe_show:
+ * @territorio_stati_qe:
+ * @parent:
+ */
+GtkWidget
+*territorio_stati_qe_show (TerritorioStatiQe *territorio_stati_qe, GtkWindow *parent)
+{
+ GtkWidget *w;
+
+ TerritorioStatiQePrivate *priv = TERRITORIO_STATI_QE_GET_PRIVATE (territorio_stati_qe);
+
+ w = territorio_stati_qe_get_widget (territorio_stati_qe);
+ if (parent != NULL)
+ {
+ gtk_window_set_transient_for (GTK_WINDOW (w), parent);
+ }
+ gtk_widget_show_all (w);
+
+ return w;
+}
+
+/* PRIVATE */
+static void
+territorio_stati_qe_selezionato (TerritorioStatiQe *territorio_stati_qe)
+{
+ TerritorioStatiQeClass *klass = TERRITORIO_STATI_QE_GET_CLASS (territorio_stati_qe);
+ TerritorioStatiQePrivate *priv = TERRITORIO_STATI_QE_GET_PRIVATE (territorio_stati_qe);
+
+ g_signal_emit (G_OBJECT (territorio_stati_qe), klass->selezionato_signal_id, 0, (gpointer)priv->qe);
+
+ gtk_widget_destroy (priv->widget);
+ g_object_unref (G_OBJECT (territorio_stati_qe));
+}
+
+static void
+territorio_stati_qe_set_property (GObject *object, guint property_id, const GValue *value, GParamSpec *pspec)
+{
+ TerritorioStatiQe *territorio_stati_qe = TERRITORIO_STATI_QE (object);
+ TerritorioStatiQePrivate *priv = TERRITORIO_STATI_QE_GET_PRIVATE (territorio_stati_qe);
+
+ switch (property_id)
+ {
+ default:
+ G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
+ break;
+ }
+}
+
+static void
+territorio_stati_qe_get_property (GObject *object, guint property_id, GValue *value, GParamSpec *pspec)
+{
+ TerritorioStatiQe *territorio_stati_qe = TERRITORIO_STATI_QE (object);
+ TerritorioStatiQePrivate *priv = TERRITORIO_STATI_QE_GET_PRIVATE (territorio_stati_qe);
+
+ switch (property_id)
+ {
+ default:
+ G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
+ break;
+ }
+}
+
+/* CALLBACK */
+static gboolean
+territorio_stati_qe_on_key_release_event (GtkWidget *widget,
+ GdkEventKey *event,
+ gpointer user_data)
+{
+ switch (event->keyval)
+ {
+ case GDK_KEY_Escape:
+ {
+ TerritorioStatiQePrivate *priv = TERRITORIO_STATI_QE_GET_PRIVATE ((TerritorioStatiQe *)user_data);
+
+ gtk_button_clicked (GTK_BUTTON (gtk_builder_get_object (priv->commons->gtkbuilder, "button65")));
+ return TRUE;
+ }
+ }
+
+ return FALSE;
+}
+
+static void
+territorio_stati_qe_on_btn_annulla_clicked (GtkButton *button,
+ gpointer user_data)
+{
+ TerritorioStatiQePrivate *priv = TERRITORIO_STATI_QE_GET_PRIVATE ((TerritorioStatiQe *)user_data);
+
+ gtk_widget_destroy (priv->widget);
+ g_object_unref (G_OBJECT (user_data));
+}
+
+static void
+territorio_stati_qe_on_btn_seleziona_clicked (GtkButton *button,
+ gpointer user_data)
+{
+ territorio_stati_qe_selezionato ((TerritorioStatiQe *)user_data);
+}
--- /dev/null
+/*
+ * Copyright (C) 2015 Andrea Zagli <azagli@libero.it>
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ *
+ */
+
+#ifndef __TERRITORIO_STATI_QE_H__
+#define __TERRITORIO_STATI_QE_H__
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <gtk/gtk.h>
+
+#include "commons.h"
+
+G_BEGIN_DECLS
+
+
+#define TYPE_TERRITORIO_STATI_QE (territorio_stati_qe_get_type ())
+#define TERRITORIO_STATI_QE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TERRITORIO_STATI_QE, TerritorioStatiQe))
+#define TERRITORIO_STATI_QE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TERRITORIO_STATI_QE, TerritorioStatiQeClass))
+#define IS_TERRITORIO_STATI_QE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TERRITORIO_STATI_QE))
+#define IS_TERRITORIO_STATI_QE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TERRITORIO_STATI_QE))
+#define TERRITORIO_STATI_QE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TERRITORIO_STATI_QE, TerritorioStatiQeClass))
+
+
+typedef struct _TerritorioStatiQe TerritorioStatiQe;
+typedef struct _TerritorioStatiQeClass TerritorioStatiQeClass;
+
+struct _TerritorioStatiQe
+ {
+ GObject parent;
+ };
+
+struct _TerritorioStatiQeClass
+ {
+ GObjectClass parent_class;
+
+ guint selezionato_signal_id;
+ };
+
+GType territorio_stati_qe_get_type (void) G_GNUC_CONST;
+
+TerritorioStatiQe *territorio_stati_qe_new (TerritorioCommons *commons, GdaExQueryEditor *qe);
+
+GtkWidget *territorio_stati_qe_get_widget (TerritorioStatiQe *territorio_stati_qe);
+GtkWidget *territorio_stati_qe_show (TerritorioStatiQe *territorio_stati_qe, GtkWindow *parent);
+
+
+G_END_DECLS
+
+#endif /* __TERRITORIO_STATI_QE_H__ */