/*
- * Copyright (C) 2011 Andrea Zagli <azagli@libero.it>
+ * Copyright (C) 2011-2016 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
(* iface->set_value) (iwidget, value);
}
}
+
+void
+gdaex_query_editor_xml_parsing (GdaExQueryEditorIWidget *iwidget, xmlNode *xnode)
+{
+ GdaExQueryEditorIWidgetIface *iface;
+
+ g_return_if_fail (GDAEX_QUERY_EDITOR_IS_IWIDGET (iwidget));
+
+ iface = GDAEX_QUERY_EDITOR_IWIDGET_GET_IFACE (iwidget);
+
+ if (iface->xml_parsing)
+ {
+ (* iface->xml_parsing) (iwidget, xnode);
+ }
+}
/*
- * Copyright (C) 2011 Andrea Zagli <azagli@libero.it>
+ * Copyright (C) 2011-2016 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
#include <glib-object.h>
+#include <libxml/tree.h>
+
G_BEGIN_DECLS
{
GTypeInterface g_iface;
- const gchar *(*get_value) (GdaExQueryEditorIWidget *irole);
- const gchar *(*get_value_sql) (GdaExQueryEditorIWidget *irole);
- void (*set_value) (GdaExQueryEditorIWidget *irole, const gchar *value);
+ const gchar *(*get_value) (GdaExQueryEditorIWidget *iwidget);
+ const gchar *(*get_value_sql) (GdaExQueryEditorIWidget *iwidget);
+ void (*set_value) (GdaExQueryEditorIWidget *iwidget, const gchar *value);
+
+ void (*xml_parsing) (GdaExQueryEditorIWidget *iwidget, xmlNode *xnode);
};
-GType gdaex_query_editor_irole_get_type (void) G_GNUC_CONST;
+GType gdaex_query_editor_iwidget_get_type (void) G_GNUC_CONST;
const gchar *gdaex_query_editor_iwidget_get_value (GdaExQueryEditorIWidget *iwidget);
const gchar *gdaex_query_editor_iwidget_get_value_sql (GdaExQueryEditorIWidget *iwidget);
void gdaex_query_editor_iwidget_set_value (GdaExQueryEditorIWidget *iwidget, const gchar *value);
+void gdaex_query_editor_xml_parsing (GdaExQueryEditorIWidget *iwidget, xmlNode *xnode);
+
G_END_DECLS
/*
- * Copyright (C) 2011 Andrea Zagli <azagli@libero.it>
+ * Copyright (C) 2011-2016 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
static const gchar *gdaex_query_editor_entry_get_value_sql (GdaExQueryEditorIWidget *iwidget);
static void gdaex_query_editor_entry_set_value (GdaExQueryEditorIWidget *iwidget, const gchar *value);
-#define GDAEX_QUERY_EDITOR_ENTRY_GET_PRIVATE(obj) (G_TYPE_INSTANCE_GET_PRIVATE ((obj), GTK_TYPE_MASKED_ENTRY, GdaExQueryEditorEntryPrivate))
+#define GDAEX_QUERY_EDITOR_ENTRY_GET_PRIVATE(obj) (G_TYPE_INSTANCE_GET_PRIVATE ((obj), GTK_TYPE_ENTRY, GdaExQueryEditorEntryPrivate))
typedef struct _GdaExQueryEditorEntryPrivate GdaExQueryEditorEntryPrivate;
struct _GdaExQueryEditorEntryPrivate
}
static void
-gdaex_query_editor_entry_init (GdaExQueryEditorEntry *masked_entry)
+gdaex_query_editor_entry_init (GdaExQueryEditorEntry *entry)
{
- GdaExQueryEditorEntryPrivate *priv = GDAEX_QUERY_EDITOR_ENTRY_GET_PRIVATE (masked_entry);
+ GdaExQueryEditorEntryPrivate *priv = GDAEX_QUERY_EDITOR_ENTRY_GET_PRIVATE (entry);
}
static void
static void
gdaex_query_editor_entry_set_property (GObject *object, guint property_id, const GValue *value, GParamSpec *pspec)
{
- GdaExQueryEditorEntry *masked_entry = GDAEX_QUERY_EDITOR_ENTRY (object);
- GdaExQueryEditorEntryPrivate *priv = GDAEX_QUERY_EDITOR_ENTRY_GET_PRIVATE (masked_entry);
+ GdaExQueryEditorEntry *entry = GDAEX_QUERY_EDITOR_ENTRY (object);
+ GdaExQueryEditorEntryPrivate *priv = GDAEX_QUERY_EDITOR_ENTRY_GET_PRIVATE (entry);
switch (property_id)
{
static void
gdaex_query_editor_entry_get_property (GObject *object, guint property_id, GValue *value, GParamSpec *pspec)
{
- GdaExQueryEditorEntry *masked_entry = GDAEX_QUERY_EDITOR_ENTRY (object);
- GdaExQueryEditorEntryPrivate *priv = GDAEX_QUERY_EDITOR_ENTRY_GET_PRIVATE (masked_entry);
+ GdaExQueryEditorEntry *entry = GDAEX_QUERY_EDITOR_ENTRY (object);
+ GdaExQueryEditorEntryPrivate *priv = GDAEX_QUERY_EDITOR_ENTRY_GET_PRIVATE (entry);
switch (property_id)
{
/*
- * Copyright (C) 2011 Andrea Zagli <azagli@libero.it>
+ * Copyright (C) 2011-2016 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
G_BEGIN_DECLS
-#define GTK_TYPE_MASKED_ENTRY (gdaex_query_editor_entry_get_type ())
-#define GDAEX_QUERY_EDITOR_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_MASKED_ENTRY, GdaExQueryEditorEntry))
-#define GDAEX_QUERY_EDITOR_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_MASKED_ENTRY, GdaExQueryEditorEntryClass))
-#define GTK_IS_MASKED_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_MASKED_ENTRY))
-#define GTK_IS_MASKED_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_MASKED_ENTRY))
-#define GDAEX_QUERY_EDITOR_ENTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_MASKED_ENTRY, GdaExQueryEditorEntryClass))
+#define GDAEX_QUERY_EDITOR_TYPE_ENTRY (gdaex_query_editor_entry_get_type ())
+#define GDAEX_QUERY_EDITOR_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GDAEX_QUERY_EDITOR_TYPE_ENTRY, GdaExQueryEditorEntry))
+#define GDAEX_QUERY_EDITOR_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GDAEX_QUERY_EDITOR_TYPE_ENTRY, GdaExQueryEditorEntryClass))
+#define GDAEX_QUERY_EDITOR_IS_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GDAEX_QUERY_EDITOR_TYPE_ENTRY))
+#define GDAEX_QUERY_EDITOR_IS_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GDAEX_QUERY_EDITOR_TYPE__ENTRY))
+#define GDAEX_QUERY_EDITOR_ENTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GDAEX_QUERY_EDITOR_TYPE_ENTRY, GdaExQueryEditorEntryClass))
typedef struct _GdaExQueryEditorEntry GdaExQueryEditorEntry;