[libgda] Vala: making vala bindings generation by default
- From: Daniel Espinosa Ortiz <despinosa src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgda] Vala: making vala bindings generation by default
- Date: Thu, 17 May 2018 00:14:43 +0000 (UTC)
commit 43a15ef4df986e5742ab85039045f0e681cea585
Author: Daniel Espinosa <esodan gmail com>
Date: Wed May 16 19:13:50 2018 -0500
Vala: making vala bindings generation by default
configure.ac | 81 ++++++++--------
libgda-ui/libgdaui-6.0.vapi | 224 ++++++++++++++++++++++++++++++++++----------
libgda/data/Makefile.am | 2 +-
3 files changed, 219 insertions(+), 88 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 0d92d651c..2a3f9a677 100644
--- a/configure.ac
+++ b/configure.ac
@@ -515,8 +515,8 @@ fi
AM_CONDITIONAL(ENABLE_GDA_GI, [test "$enable_gda_gi" = "yes"])
AC_ARG_ENABLE([gdaui-gi],
- AS_HELP_STRING([--enable-gdaui-gi[=@<:@no/auto/yes@:>@]], [Enable GObject Introspection for libgda-ui
[default=no]]),
- [enable_gdaui_gi=$enableval],[enable_gdaui_gi=no])
+ AS_HELP_STRING([--enable-gdaui-gi[=@<:@no/auto/yes@:>@]], [Enable GObject Introspection for libgda-ui
[default=yes]]),
+ [enable_gdaui_gi=$enableval],[enable_gdaui_gi=yes])
if test "x$enable_gda_gi" != "xyes" -a "$enable_gdaui_gi" = "xyes"
then
@@ -535,62 +535,55 @@ AC_ARG_ENABLE([gi-system-install],
[enable_gi_system_install=$enableval],[enable_gi_system_install=yes])
AM_CONDITIONAL(ENABLE_GI_SYSTEM_INSTALL, [test x"$enable_gi_system_install" = "xyes"])
-dnl ******************************
-dnl Check for Vala Compiler
-dnl ******************************
-AC_ARG_VAR(VALA_API_VERSION,[Vala API version to generate bingdings and compile against. Install versioned
bidings.])
-
if test "x$enable_gda_gi" != "xyes" -a "x$enable_gdaui_gi" = "xyes"
then
AC_MSG_ERROR([GObject Introspection for GDA-UI is requested but GObject Introspection for GDA is
disabled. Use --enable-gda-gi])
fi
+dnl ******************************
+dnl Check for Vala Compiler
+dnl ******************************
+AM_PROG_VALAC()
+enable_vala="no"
+if test "x$VALAC" != "xno"; then
+ enable_vala="yes"
+fi
+AC_PATH_PROG([VAPIGEN],[vapigen],[no])
+AC_SUBST([VAPIGEN])
+enable_vapigen="no"
+if test "x$VAPIGEN" != "xno"; then
+ enable_vapigen="yes"
+fi
+AM_CONDITIONAL(ENABLE_VAPIGEN, test "x$enable_vapigen" = "xyes")
+
if test "x$enable_gda_gi" != "xyes" -a "x$enable_vala" = "xyes"
then
AC_MSG_ERROR([GDA Vala bindings is requested but GObject Introspection for GDA is disabled. Use
--enable-gda-gi])
fi
AC_ARG_ENABLE([gdaui-vala],
- AS_HELP_STRING([--enable-gdaui-vala[=@<:@no/yes@:>@]], [Enable Vala bindings for GDA-UI [default=no]]),
- [enable_gdaui_vala=$enableval],[enable_gdaui_vala=no])
-if test "x$enable_vala" != "xyes" -a "x$enable_gdaui_vala" = "xyes"
+ AS_HELP_STRING([--enable-gdaui-vala[=@<:@yes/no@:>@]], [Enable Vala bindings for GDA-UI [default=auto]]),
+ [enable_gdaui_vala=$enableval],[enable_gdaui_vala=auto])
+if test "x$enable_vapigen" != "xyes" -a "x$enable_gdaui_vala" = "xyes"
then
AC_MSG_ERROR([Vala bindings for GDA-UI is requested but GDA Vala bindings is disable. Use
--enable-vala])
fi
-AM_CONDITIONAL(ENABLE_GDAUI_VALA, test "x$enable_gdaui_vala" = "xyes")
+AM_CONDITIONAL(ENABLE_GDAUI_VALA, test "x$enable_gdaui_vala" != "xno" -a "x$enable_vapigen" = "xyes")
+dnl ******************************
+dnl Check for Vala Classes build
+dnl ******************************
AC_ARG_ENABLE([vala-extensions],
- AS_HELP_STRING([--enable-vala-extensions[=@<:@no/yes@:>@]], [Enable utility GObject based extensions
written in Vala [default=no]]),
- [enable_vala_ext=$enableval],[enable_vala_ext=no])
+ AS_HELP_STRING([--enable-vala-extensions[=@<:@yes/no@:>@]], [Enable utility GObject based extensions
written in Vala [default=auto]]),
+ [enable_vala_ext=$enableval],[enable_vala_ext=auto])
if test "x$enable_vala" != "xyes" -a "x$enable_vala_ext" = "xyes"
then
- AC_MSG_ERROR([Vala Extensions (Utility GObject clases written in Vala) is requested but Vala Bindings
is disable. Use --enable-vala])
+ AC_MSG_ERROR([Vala Extensions (Utility GObject clases written in Vala) is requested but Vala compiler
is not available])
fi
-vala_api="No Vala bindings will be generated"
-if test "x$enable_vala" = "xyes"
-then
- AM_PROG_VALAC()
- if test "x$VALA_API_VERSION" = "x"
- then
- VAPIGEN_CHECK(,,,no)
- vala_api="`pkg-config --modversion vapigen` (Default)"
- else
- VAPIGEN_CHECK(,$VALA_API_VERSION,,no)
- vala_api=$VALA_API_VERSION
- fi
-else
- AM_CONDITIONAL(ENABLE_VAPIGEN,false)
-fi
-if test "x$enable_vala_ext" = "xyes" -a "x$vapigen_pkg_found" != "xyes"
-then
- AC_MSG_ERROR([Utility GObject clases written in Vala (Vala extensions) for Libgda are requested but
Vala/vapigen is not available])
- enable_vala_ext=no
-fi
-
-if test "x$enable_vala_ext" = "xyes"
+if test "x$enable_vala_ext" != "xno" -a "x$enable_vala_ext" = "xyes"
then
dnl Check for libgee
GEE_REQUIRED="0.8.0"
@@ -675,6 +668,13 @@ GTK_DOC_CHECK([1.14],[--flavour no-tmpl])
dnl ******************************
dnl Vala documentation
dnl ******************************
+AC_PATH_PROG(VALADOC,[valadoc],[no])
+enable_vala_doc_ext="no"
+if test "x$VALADOC" != "xno"
+then
+ enable_vala_doc_ext="yes"
+fi
+AM_CONDITIONAL(ENABLE_VALA_DOC_EXT, [test "$VALADOC" != "no"])
enable_vala_doc="no"
if test "x$enable_gtk_doc" = "xyes"
then
@@ -1105,11 +1105,12 @@ echo " Building libgda GObject Introspection: `if test x$enable_gda_gi = xyes;
echo " Building libgda-ui GObject Introspection: `if test x$enable_gdaui_gi != xno; then echo yes; else
echo no; fi`"
echo " Building Gtk-Doc: `if test x$enable_gtk_doc != xno; then echo yes; else echo no; fi`"
echo " Building Help (GdaBrowser): `if test x$with_gdu != xno; then echo yes; else echo no; fi`"
-echo " Building GDA Vala Bindings (--enable-vala): `if test x$vapigen_pkg_found != xyes; then echo no;
else echo yes; fi`"
-echo " Vala API version to use: $vala_api"
-echo " Building GDA-UI Vala Bindings: `if test x$enable_gdaui_vala != xyes; then echo no; else echo yes;
fi`"
+echo " Building GDA Vala Bindings: `if test x$enable_vala != xyes; then echo no; else echo yes; fi`"
+echo " Building GDA-UI Vala Bindings: `if test "x$enable_gdaui_vala" != "xno" -a "x$enable_vapigen" =
"xyes"; then echo yes; else echo no; fi`"
echo " Building Vala Extensions: `if test x$enable_vala_ext != xno; then echo yes; else echo no; fi`"
-echo " Building Vala Documentation: `if test x$enable_vala_doc != xno; then echo yes; else echo no; fi`"
+echo " Building Vala Documentation:"
+echo " Building GDA Vala Docs: `if test x$enable_vala_doc != xno; then echo yes; else echo no; fi`"
+echo " Building GDA Vala Extensions Docs: `if test x$enable_vala_doc_ext != xno; then echo yes; else
echo no; fi`"
echo " Building Building Libgda's associated tools: `if test x$enable_tools = xyes; then echo yes; else
echo no; fi`"
echo " Compiled providers:"
echo " Berkeley DB = $bdb_found"
diff --git a/libgda-ui/libgdaui-6.0.vapi b/libgda-ui/libgdaui-6.0.vapi
index 1a37146f1..1d179aba8 100644
--- a/libgda-ui/libgdaui-6.0.vapi
+++ b/libgda-ui/libgdaui-6.0.vapi
@@ -1,28 +1,46 @@
-/* libgdaui-6.0.vapi generated by vapigen-0.26, do not modify. */
+/* libgdaui-6.0.vapi generated by vapigen, do not modify. */
[CCode (cprefix = "Gdaui", gir_namespace = "Gdaui", gir_version = "6.0", lower_case_cprefix = "gdaui_")]
namespace Gdaui {
[CCode (cheader_filename = "libgda-ui/libgda-ui.h", type_id = "gdaui_basic_form_get_type ()")]
public class BasicForm : Gtk.Box, Atk.Implementor, Gtk.Buildable, Gtk.Orientable {
[CCode (has_construct_function = false, type = "GtkWidget*")]
+ [Version (since = "4.2")]
public BasicForm (Gda.Set data_set);
+ [Version (since = "4.2")]
public void add_to_size_group (Gtk.SizeGroup size_group, Gdaui.BasicFormPart part);
+ [Version (since = "4.2")]
public void entry_grab_focus (Gda.Holder? holder);
+ [Version (since = "4.2")]
public void entry_set_editable (Gda.Holder? holder, bool editable);
+ [Version (since = "4.2")]
public void entry_set_visible (Gda.Holder holder, bool show);
+ [Version (since = "4.2")]
public unowned Gda.Set get_data_set ();
+ [Version (since = "4.2")]
public unowned Gtk.Widget get_entry_widget (Gda.Holder holder);
+ [Version (since = "4.2")]
public unowned Gtk.Widget get_label_widget (Gda.Holder holder);
+ [Version (since = "4.2")]
public unowned Gtk.Widget get_place_holder (string placeholder_id);
+ [Version (since = "4.2")]
public bool has_changed ();
[CCode (has_construct_function = false, type = "GtkWidget*")]
+ [Version (since = "4.2")]
public BasicForm.in_dialog (Gda.Set data_set, Gtk.Window? parent, string? title, string?
header);
+ [Version (since = "4.2")]
public bool is_valid ();
+ [Version (since = "4.2")]
public void remove_from_size_group (Gtk.SizeGroup size_group, Gdaui.BasicFormPart part);
+ [Version (since = "4.2")]
public void reset ();
+ [Version (since = "4.2")]
public void set_as_reference ();
+ [Version (since = "4.2")]
public void set_entries_to_default ();
+ [Version (since = "4.2")]
public void set_layout_from_file (string file_name, string form_name);
+ [Version (since = "5.0.3")]
public void set_unknown_color (double red, double green, double blue, double alpha);
[NoAccessorMethod]
public bool can_expand_v { get; }
@@ -33,25 +51,29 @@ namespace Gdaui {
[NoAccessorMethod]
public void* paramlist { get; set; }
[NoAccessorMethod]
- public bool show_actions { get; set; }
- [NoAccessorMethod]
public void* xml_layout { set; }
public virtual signal void activated ();
public virtual signal void holder_changed (Gda.Holder holder, bool is_user_action);
public virtual signal void layout_changed ();
+ [Version (since = "4.2.4")]
public signal void populate_popup (Gtk.Menu menu);
}
- [CCode (cheader_filename = "libgda-ui/libgda-ui.h")]
+ [CCode (cheader_filename = "libgda-ui/libgda-ui.h", has_type_id = false)]
[Compact]
public class BasicFormPriv {
}
[CCode (cheader_filename = "libgda-ui/libgda-ui.h", type_id = "gdaui_cloud_get_type ()")]
public class Cloud : Gtk.Box, Atk.Implementor, Gdaui.DataSelector, Gtk.Buildable, Gtk.Orientable {
[CCode (has_construct_function = false, type = "GtkWidget*")]
+ [Version (since = "4.2")]
public Cloud (Gda.DataModel model, int label_column, int weight_column);
+ [Version (since = "4.2")]
public Gtk.Widget create_filter_widget ();
+ [Version (since = "4.2")]
public void filter (string? filter);
+ [Version (since = "4.2")]
public void set_selection_mode (Gtk.SelectionMode mode);
+ [Version (since = "4.2")]
public void set_weight_func (Gdaui.CloudWeightFunc? func);
[NoAccessorMethod]
public int label_column { get; set; }
@@ -65,18 +87,23 @@ namespace Gdaui {
public int weight_column { get; set; }
public virtual signal void activate (int row);
}
- [CCode (cheader_filename = "libgda-ui/libgda-ui.h")]
+ [CCode (cheader_filename = "libgda-ui/libgda-ui.h", has_type_id = false)]
[Compact]
public class CloudPriv {
}
[CCode (cheader_filename = "libgda-ui/libgda-ui.h", type_id = "gdaui_combo_get_type ()")]
public class Combo : Gtk.ComboBox, Atk.Implementor, Gdaui.DataSelector, Gtk.Buildable,
Gtk.CellEditable, Gtk.CellLayout {
[CCode (has_construct_function = false, type = "GtkWidget*")]
+ [Version (since = "4.2")]
public Combo ();
+ [Version (since = "4.2")]
public void add_null (bool add_null);
+ [Version (since = "4.2")]
public bool is_null_selected ();
+ [Version (since = "5.2")]
public void set_data (Gda.DataModel model, [CCode (array_length_cname = "n_cols",
array_length_pos = 1.5)] int[] cols_index);
[CCode (has_construct_function = false, type = "GtkWidget*")]
+ [Version (since = "4.2")]
public Combo.with_model (Gda.DataModel model, int n_cols, int cols_index);
[NoAccessorMethod]
public bool as_list { get; set; }
@@ -87,11 +114,13 @@ namespace Gdaui {
public class DataCellRendererBin : Gtk.CellRendererPixbuf {
[CCode (has_construct_function = false, type = "GtkCellRenderer*")]
public DataCellRendererBin (Gda.DataHandler dh, GLib.Type type);
+ [NoAccessorMethod]
public Gda.DataHandler data_handler { construct; }
[NoAccessorMethod]
public bool editable { get; set; }
[NoAccessorMethod]
public bool to_be_deleted { set; }
+ [NoAccessorMethod]
public GLib.Type type { construct; }
[NoAccessorMethod]
public GLib.Value value { owned get; set; }
@@ -101,11 +130,13 @@ namespace Gdaui {
public class DataCellRendererBoolean : Gtk.CellRendererToggle {
[CCode (has_construct_function = false, type = "GtkCellRenderer*")]
public DataCellRendererBoolean (Gda.DataHandler dh, GLib.Type type);
+ [NoAccessorMethod]
public Gda.DataHandler data_handler { construct; }
[NoAccessorMethod]
public bool editable { get; set; }
[NoAccessorMethod]
public bool to_be_deleted { set; }
+ [NoAccessorMethod]
public GLib.Type type { construct; }
[NoAccessorMethod]
public GLib.Value value { owned get; set; }
@@ -115,7 +146,9 @@ namespace Gdaui {
public class DataCellRendererCombo : Gtk.CellRendererText {
[CCode (has_construct_function = false, type = "GtkCellRenderer*")]
public DataCellRendererCombo (Gdaui.Set paramlist, Gdaui.SetSource source);
+ [NoAccessorMethod]
public Gdaui.Set data_set { construct; }
+ [NoAccessorMethod]
public void* data_set_source { construct; }
[NoAccessorMethod]
public bool set_default_if_invalid { get; set; }
@@ -137,13 +170,16 @@ namespace Gdaui {
public virtual void status_changed (string path, Gda.ValueAttribute requested_action);
[NoAccessorMethod]
public bool editable { get; set; }
+ [NoAccessorMethod]
public void* group { construct; }
+ [NoAccessorMethod]
public Gda.DataModelIter iter { construct; }
+ [NoAccessorMethod]
public Gdaui.DataStore store { construct; }
[NoAccessorMethod]
public bool to_be_deleted { set; }
}
- [CCode (cheader_filename = "libgda-ui/libgda-ui.h")]
+ [CCode (cheader_filename = "libgda-ui/libgda-ui.h", has_type_id = false)]
[Compact]
public class DataCellRendererInfoPriv {
}
@@ -151,11 +187,13 @@ namespace Gdaui {
public class DataCellRendererTextual : Gtk.CellRendererText {
[CCode (has_construct_function = false, type = "GtkCellRenderer*")]
public DataCellRendererTextual (Gda.DataHandler? dh, GLib.Type type, string options);
+ [NoAccessorMethod]
public Gda.DataHandler data_handler { construct; }
[NoAccessorMethod]
public string options { set; }
[NoAccessorMethod]
public bool to_be_deleted { set; }
+ [NoAccessorMethod]
public GLib.Type type { construct; }
[NoAccessorMethod]
public void* value { set; }
@@ -164,22 +202,26 @@ namespace Gdaui {
[CCode (cheader_filename = "libgda-ui/libgda-ui.h", type_id = "gdaui_data_filter_get_type ()")]
public class DataFilter : Gtk.Box, Atk.Implementor, Gtk.Buildable, Gtk.Orientable {
[CCode (has_construct_function = false, type = "GtkWidget*")]
+ [Version (since = "4.2")]
public DataFilter (Gdaui.DataProxy data_widget);
[NoAccessorMethod]
public Gdaui.DataProxy data_widget { owned get; set; }
}
- [CCode (cheader_filename = "libgda-ui/libgda-ui.h")]
+ [CCode (cheader_filename = "libgda-ui/libgda-ui.h", has_type_id = false)]
[Compact]
public class DataFilterPriv {
}
[CCode (cheader_filename = "libgda-ui/libgda-ui.h", type_id = "gdaui_data_proxy_info_get_type ()")]
public class DataProxyInfo : Gtk.Toolbar, Atk.Implementor, Gtk.Buildable, Gtk.Orientable,
Gtk.ToolShell {
[CCode (has_construct_function = false, type = "GtkWidget*")]
+ [Version (since = "4.2")]
public DataProxyInfo (Gdaui.DataProxy data_proxy, Gdaui.DataProxyInfoFlag flags);
+ [Version (since = "6.0")]
+ public unowned Gtk.ToolItem get_item (Gdaui.Action action);
[NoAccessorMethod]
public Gdaui.DataProxy data_proxy { owned get; set; }
}
- [CCode (cheader_filename = "libgda-ui/libgda-ui.h")]
+ [CCode (cheader_filename = "libgda-ui/libgda-ui.h", has_type_id = false)]
[Compact]
public class DataProxyInfoPriv {
}
@@ -187,13 +229,21 @@ namespace Gdaui {
public class DataStore : GLib.Object, Gtk.TreeModel {
[CCode (has_construct_function = false)]
protected DataStore ();
+ [Version (since = "4.2")]
public bool append (Gtk.TreeIter iter);
+ [Version (since = "4.2")]
public void @delete (Gtk.TreeIter iter);
+ [Version (since = "4.2")]
public bool get_iter_from_values (out Gtk.TreeIter iter, GLib.SList<GLib.Value?> values, int
cols_index);
+ [Version (since = "4.2")]
public unowned Gda.DataProxy get_proxy ();
+ [Version (since = "4.2")]
public int get_row_from_iter (Gtk.TreeIter iter);
+ [Version (since = "4.2")]
public static Gtk.TreeModel @new (Gda.DataModel model);
+ [Version (since = "4.2")]
public bool set_value (Gtk.TreeIter iter, int col, GLib.Value value);
+ [Version (since = "4.2")]
public void undelete (Gtk.TreeIter iter);
[NoAccessorMethod]
public void* model { get; construct; }
@@ -201,7 +251,7 @@ namespace Gdaui {
public bool prepend_null_entry { get; set; }
public void* proxy { get; }
}
- [CCode (cheader_filename = "libgda-ui/libgda-ui.h")]
+ [CCode (cheader_filename = "libgda-ui/libgda-ui.h", has_type_id = false)]
[Compact]
public class DataStorePriv {
}
@@ -227,17 +277,17 @@ namespace Gdaui {
public string suffix { owned get; set; }
}
[CCode (cheader_filename = "libgda-ui/libgda-ui.h", type_id = "gdaui_entry_bin_get_type ()")]
- public class EntryBin : Gdaui.EntryWrapper, Atk.Implementor, Gdaui.DataEntry, Gtk.Buildable,
Gtk.Scrollable {
+ public class EntryBin : Gdaui.EntryWrapper, Atk.Implementor, Gdaui.DataEntry, Gtk.Buildable,
Gtk.Orientable {
[CCode (has_construct_function = false, type = "GtkWidget*")]
public EntryBin (Gda.DataHandler dh, GLib.Type type);
}
[CCode (cheader_filename = "libgda-ui/libgda-ui.h", type_id = "gdaui_entry_boolean_get_type ()")]
- public class EntryBoolean : Gdaui.EntryWrapper, Atk.Implementor, Gdaui.DataEntry, Gtk.Buildable,
Gtk.Scrollable {
+ public class EntryBoolean : Gdaui.EntryWrapper, Atk.Implementor, Gdaui.DataEntry, Gtk.Buildable,
Gtk.Orientable {
[CCode (has_construct_function = false, type = "GtkWidget*")]
public EntryBoolean (Gda.DataHandler dh, GLib.Type type);
}
[CCode (cheader_filename = "libgda-ui/libgda-ui.h", type_id = "gdaui_entry_combo_get_type ()")]
- public class EntryCombo : Gdaui.EntryShell, Atk.Implementor, Gdaui.DataEntry, Gtk.Buildable,
Gtk.Scrollable {
+ public class EntryCombo : Gdaui.EntryShell, Atk.Implementor, Gdaui.DataEntry, Gtk.Buildable,
Gtk.Orientable {
[CCode (has_construct_function = false, type = "GtkWidget*")]
public EntryCombo (Gdaui.Set paramlist, Gdaui.SetSource source);
public GLib.SList<weak GLib.Value?> get_all_values ();
@@ -249,12 +299,12 @@ namespace Gdaui {
[NoAccessorMethod]
public bool set_default_if_invalid { get; set; }
}
- [CCode (cheader_filename = "libgda-ui/libgda-ui.h")]
+ [CCode (cheader_filename = "libgda-ui/libgda-ui.h", has_type_id = false)]
[Compact]
public class EntryComboPriv {
}
[CCode (cheader_filename = "libgda-ui/libgda-ui.h", type_id = "gdaui_entry_common_time_get_type ()")]
- public class EntryCommonTime : Gdaui.EntryWrapper, Atk.Implementor, Gdaui.DataEntry, Gtk.Buildable,
Gtk.CellEditable, Gtk.Scrollable {
+ public class EntryCommonTime : Gdaui.EntryWrapper, Atk.Implementor, Gdaui.DataEntry, Gtk.Buildable,
Gtk.CellEditable, Gtk.Orientable {
[CCode (has_construct_function = false)]
protected EntryCommonTime ();
[NoAccessorMethod]
@@ -263,19 +313,19 @@ namespace Gdaui {
public uint type { get; set; }
}
[CCode (cheader_filename = "libgda-ui/libgda-ui.h", type_id = "gdaui_entry_date_get_type ()")]
- public class EntryDate : Gdaui.EntryCommonTime, Atk.Implementor, Gdaui.DataEntry, Gtk.Buildable,
Gtk.CellEditable, Gtk.Scrollable {
+ public class EntryDate : Gdaui.EntryCommonTime, Atk.Implementor, Gdaui.DataEntry, Gtk.Buildable,
Gtk.CellEditable, Gtk.Orientable {
[CCode (has_construct_function = false, type = "GtkWidget*")]
public EntryDate (Gda.DataHandler dh);
}
[CCode (cheader_filename = "libgda-ui/libgda-ui.h", type_id = "gdaui_entry_none_get_type ()")]
- public class EntryNone : Gdaui.EntryWrapper, Atk.Implementor, Gdaui.DataEntry, Gtk.Buildable,
Gtk.Scrollable {
+ public class EntryNone : Gdaui.EntryWrapper, Atk.Implementor, Gdaui.DataEntry, Gtk.Buildable,
Gtk.Orientable {
[CCode (has_construct_function = false, type = "GtkWidget*")]
public EntryNone (GLib.Type type);
}
[CCode (cheader_filename = "libgda-ui/libgda-ui.h", type_id = "gdaui_entry_number_get_type ()")]
- public class EntryNumber : Gdaui.EntryWrapper, Atk.Implementor, Gdaui.DataEntry, Gtk.Buildable,
Gtk.CellEditable, Gtk.Scrollable {
+ public class EntryNumber : Gdaui.EntryWrapper, Atk.Implementor, Gdaui.DataEntry, Gtk.Buildable,
Gtk.CellEditable, Gtk.Orientable {
[CCode (has_construct_function = false, type = "GtkWidget*")]
- public EntryNumber (Gda.DataHandler dh, GLib.Type type, string options);
+ public EntryNumber (Gda.DataHandler dh, GLib.Type type, string? options);
public static bool is_type_numeric (GLib.Type type);
[NoAccessorMethod]
public bool editing_canceled { get; set; }
@@ -283,28 +333,25 @@ namespace Gdaui {
public string options { set; }
}
[CCode (cheader_filename = "libgda-ui/libgda-ui.h", type_id = "gdaui_entry_shell_get_type ()")]
- public class EntryShell : Gtk.Viewport, Atk.Implementor, Gtk.Buildable, Gtk.Scrollable {
+ public class EntryShell : Gtk.Box, Atk.Implementor, Gtk.Buildable, Gtk.Orientable {
[CCode (has_construct_function = false)]
protected EntryShell ();
- public void pack_entry (Gtk.Widget main_widget);
- public void refresh ();
- public void set_ucolor (double red, double green, double blue, double alpha);
- public void set_unknown (bool unknown);
- [NoAccessorMethod]
- public bool actions { get; set; }
+ public void pack_entry (Gtk.Widget entry);
+ [Version (since = "5.0.3")]
+ public void set_invalid_color (double red, double green, double blue, double alpha);
[NoAccessorMethod]
public Gda.DataHandler handler { owned get; set; }
[NoAccessorMethod]
public bool is_cell_renderer { get; set; }
}
- [CCode (cheader_filename = "libgda-ui/libgda-ui.h")]
+ [CCode (cheader_filename = "libgda-ui/libgda-ui.h", has_type_id = false)]
[Compact]
public class EntryShellPriv {
}
[CCode (cheader_filename = "libgda-ui/libgda-ui.h", type_id = "gdaui_entry_string_get_type ()")]
- public class EntryString : Gdaui.EntryWrapper, Atk.Implementor, Gdaui.DataEntry, Gtk.Buildable,
Gtk.CellEditable, Gtk.Scrollable {
+ public class EntryString : Gdaui.EntryWrapper, Atk.Implementor, Gdaui.DataEntry, Gtk.Buildable,
Gtk.CellEditable, Gtk.Orientable {
[CCode (has_construct_function = false, type = "GtkWidget*")]
- public EntryString (Gda.DataHandler dh, GLib.Type type, string options);
+ public EntryString (Gda.DataHandler dh, GLib.Type type, string? options);
[NoAccessorMethod]
public bool editing_canceled { get; set; }
[NoAccessorMethod]
@@ -313,17 +360,17 @@ namespace Gdaui {
public string options { set; }
}
[CCode (cheader_filename = "libgda-ui/libgda-ui.h", type_id = "gdaui_entry_time_get_type ()")]
- public class EntryTime : Gdaui.EntryCommonTime, Atk.Implementor, Gdaui.DataEntry, Gtk.Buildable,
Gtk.CellEditable, Gtk.Scrollable {
+ public class EntryTime : Gdaui.EntryCommonTime, Atk.Implementor, Gdaui.DataEntry, Gtk.Buildable,
Gtk.CellEditable, Gtk.Orientable {
[CCode (has_construct_function = false, type = "GtkWidget*")]
public EntryTime (Gda.DataHandler dh);
}
[CCode (cheader_filename = "libgda-ui/libgda-ui.h", type_id = "gdaui_entry_timestamp_get_type ()")]
- public class EntryTimestamp : Gdaui.EntryCommonTime, Atk.Implementor, Gdaui.DataEntry, Gtk.Buildable,
Gtk.CellEditable, Gtk.Scrollable {
+ public class EntryTimestamp : Gdaui.EntryCommonTime, Atk.Implementor, Gdaui.DataEntry, Gtk.Buildable,
Gtk.CellEditable, Gtk.Orientable {
[CCode (has_construct_function = false, type = "GtkWidget*")]
public EntryTimestamp (Gda.DataHandler dh);
}
[CCode (cheader_filename = "libgda-ui/libgda-ui.h", type_id = "gdaui_entry_wrapper_get_type ()")]
- public class EntryWrapper : Gdaui.EntryShell, Atk.Implementor, Gdaui.DataEntry, Gtk.Buildable,
Gtk.Scrollable {
+ public class EntryWrapper : Gdaui.EntryShell, Atk.Implementor, Gdaui.DataEntry, Gtk.Buildable,
Gtk.Orientable {
[CCode (has_construct_function = false)]
protected EntryWrapper ();
[NoWrapper]
@@ -346,13 +393,14 @@ namespace Gdaui {
[NoAccessorMethod]
public bool set_default_if_invalid { get; set; }
}
- [CCode (cheader_filename = "libgda-ui/libgda-ui.h")]
+ [CCode (cheader_filename = "libgda-ui/libgda-ui.h", has_type_id = false)]
[Compact]
public class EntryWrapperPriv {
}
[CCode (cheader_filename = "libgda-ui/libgda-ui.h", type_id = "gdaui_form_get_type ()")]
public class Form : Gtk.Box, Atk.Implementor, Gdaui.DataProxy, Gdaui.DataSelector, Gtk.Buildable,
Gtk.Orientable {
[CCode (has_construct_function = false, type = "GtkWidget*")]
+ [Version (since = "4.2")]
public Form (Gda.DataModel model);
[NoAccessorMethod]
public Gdaui.DataProxyInfo info { owned get; }
@@ -361,7 +409,7 @@ namespace Gdaui {
[NoAccessorMethod]
public Gdaui.RawForm raw_form { owned get; }
}
- [CCode (cheader_filename = "libgda-ui/libgda-ui.h")]
+ [CCode (cheader_filename = "libgda-ui/libgda-ui.h", has_type_id = false)]
[Compact]
public class FormPriv {
}
@@ -379,7 +427,9 @@ namespace Gdaui {
[CCode (cheader_filename = "libgda-ui/libgda-ui.h", type_id = "gdaui_grid_get_type ()")]
public class Grid : Gtk.Box, Atk.Implementor, Gdaui.DataProxy, Gdaui.DataSelector, Gtk.Buildable,
Gtk.Orientable {
[CCode (has_construct_function = false, type = "GtkWidget*")]
+ [Version (since = "4.2")]
public Grid (Gda.DataModel? model);
+ [Version (since = "4.2")]
public void set_sample_size (int sample_size);
[NoAccessorMethod]
public Gdaui.DataProxyInfo info { owned get; }
@@ -388,17 +438,20 @@ namespace Gdaui {
[NoAccessorMethod]
public Gdaui.RawGrid raw_grid { owned get; }
}
- [CCode (cheader_filename = "libgda-ui/libgda-ui.h")]
+ [CCode (cheader_filename = "libgda-ui/libgda-ui.h", has_type_id = false)]
[Compact]
public class GridPriv {
}
[CCode (cheader_filename = "libgda-ui/libgda-ui.h", type_id = "gdaui_login_get_type ()")]
public class Login : Gtk.Box, Atk.Implementor, Gtk.Buildable, Gtk.Orientable {
[CCode (has_construct_function = false, type = "GtkWidget*")]
+ [Version (since = "4.2")]
public Login (string? dsn);
+ [Version (since = "4.2")]
public unowned Gda.DsnInfo get_connection_information ();
public void set_connection_information (Gda.DsnInfo cinfo);
public void set_dsn (string? dsn);
+ [Version (since = "4.2")]
public void set_mode (Gdaui.LoginMode mode);
[NoAccessorMethod]
public string dsn { owned get; set; }
@@ -424,29 +477,39 @@ namespace Gdaui {
public class ProviderSelector : Gdaui.Combo, Atk.Implementor, Gdaui.DataSelector, Gtk.Buildable,
Gtk.CellEditable, Gtk.CellLayout {
[CCode (has_construct_function = false, type = "GtkWidget*")]
public ProviderSelector ();
+ [Version (since = "4.2")]
public unowned string get_provider ();
+ [Version (since = "4.2")]
public unowned Gda.ServerProvider get_provider_obj ();
+ [Version (since = "4.2")]
public bool set_provider (string? provider);
}
[CCode (cheader_filename = "libgda-ui/libgda-ui.h", type_id = "gdaui_raw_form_get_type ()")]
public class RawForm : Gdaui.BasicForm, Atk.Implementor, Gdaui.DataProxy, Gdaui.DataSelector,
Gtk.Buildable, Gtk.Orientable {
[CCode (has_construct_function = false, type = "GtkWidget*")]
+ [Version (since = "4.2")]
public RawForm (Gda.DataModel? model);
[NoAccessorMethod]
public Gda.DataModel model { owned get; set; }
}
- [CCode (cheader_filename = "libgda-ui/libgda-ui.h")]
+ [CCode (cheader_filename = "libgda-ui/libgda-ui.h", has_type_id = false)]
[Compact]
public class RawFormPriv {
}
[CCode (cheader_filename = "libgda-ui/libgda-ui.h", type_id = "gdaui_raw_grid_get_type ()")]
public class RawGrid : Gtk.TreeView, Atk.Implementor, Gdaui.DataProxy, Gdaui.DataSelector,
Gtk.Buildable, Gtk.Scrollable {
[CCode (has_construct_function = false, type = "GtkWidget*")]
+ [Version (since = "4.2")]
public RawGrid (Gda.DataModel model);
+ [Version (since = "5.0.3")]
public void add_formatting_function (owned Gdaui.RawGridFormatFunc func);
+ [Version (since = "5.0.3")]
public void remove_formatting_function (Gdaui.RawGridFormatFunc func);
+ [Version (since = "4.2")]
public void set_layout_from_file (string file_name, string grid_name);
+ [Version (since = "4.2")]
public void set_sample_size (int sample_size);
+ [Version (since = "4.2")]
public void set_sample_start (int sample_start);
[NoAccessorMethod]
public bool info_cell_visible { get; set; }
@@ -457,16 +520,20 @@ namespace Gdaui {
public virtual signal void double_clicked (int row);
public virtual signal void populate_popup (Gtk.Menu menu);
}
- [CCode (cheader_filename = "libgda-ui/libgda-ui.h")]
+ [CCode (cheader_filename = "libgda-ui/libgda-ui.h", has_type_id = false)]
[Compact]
public class RawGridPriv {
}
[CCode (cheader_filename = "libgda-ui/libgda-ui.h", type_id = "gdaui_rt_editor_get_type ()")]
public class RtEditor : Gtk.Box, Atk.Implementor, Gtk.Buildable, Gtk.Orientable {
[CCode (has_construct_function = false, type = "GtkWidget*")]
+ [Version (since = "4.2.2")]
public RtEditor ();
+ [Version (since = "4.2.2")]
public string get_contents ();
+ [Version (since = "4.2.2")]
public void set_contents (string markup, int length);
+ [Version (since = "4.2.2")]
public void set_editable (bool editable);
[NoAccessorMethod]
public Gtk.TextBuffer buffer { owned get; }
@@ -478,22 +545,24 @@ namespace Gdaui {
public bool show_markup { get; set; }
public virtual signal void changed ();
}
- [CCode (cheader_filename = "libgda-ui/libgda-ui.h")]
+ [CCode (cheader_filename = "libgda-ui/libgda-ui.h", has_type_id = false)]
[Compact]
public class RtEditorPriv {
}
[CCode (cheader_filename = "libgda-ui/libgda-ui.h", type_id = "gdaui_server_operation_get_type ()")]
public class ServerOperation : Gtk.Box, Atk.Implementor, Gtk.Buildable, Gtk.Orientable {
[CCode (has_construct_function = false, type = "GtkWidget*")]
+ [Version (since = "4.2")]
public ServerOperation (Gda.ServerOperation op);
[CCode (has_construct_function = false, type = "GtkWidget*")]
+ [Version (since = "4.2")]
public ServerOperation.in_dialog (Gda.ServerOperation op, Gtk.Window? parent, string? title,
string? header);
[NoAccessorMethod]
public bool hide_single_header { get; set construct; }
[NoAccessorMethod]
public Gda.ServerOperation server_operation { owned get; construct; }
}
- [CCode (cheader_filename = "libgda-ui/libgda-ui.h")]
+ [CCode (cheader_filename = "libgda-ui/libgda-ui.h", has_type_id = false)]
[Compact]
public class ServerOperationPriv {
}
@@ -502,12 +571,16 @@ namespace Gdaui {
public weak GLib.SList<Gdaui.SetGroup> groups_list;
public weak GLib.SList<Gdaui.SetSource> sources_list;
[CCode (has_construct_function = false)]
+ [Version (since = "5.2")]
public Set (Gda.Set @set);
+ [Version (since = "5.2")]
public Gdaui.SetGroup get_group (Gda.Holder holder);
[NoAccessorMethod]
public Gda.Set @set { owned get; construct; }
+ [Version (since = "4.2")]
public virtual signal void public_data_changed ();
- public virtual signal void source_model_changed (void* source);
+ [Version (since = "4.2")]
+ public virtual signal void source_model_changed (Gdaui.SetSource source);
}
[CCode (cheader_filename = "libgda-ui/libgda-ui.h", copy_function = "g_boxed_copy", free_function =
"g_boxed_free", type_id = "gdaui_set_group_get_type ()")]
[Compact]
@@ -515,49 +588,70 @@ namespace Gdaui {
public weak Gda.SetGroup group;
public weak Gdaui.SetSource source;
[CCode (has_construct_function = false)]
+ [Version (since = "5.2")]
public SetGroup (Gda.SetGroup group);
+ [Version (since = "5.2")]
public Gdaui.SetGroup copy ();
+ [Version (since = "5.2")]
public void free ();
+ [Version (since = "5.2")]
public Gda.SetGroup get_group ();
+ [Version (since = "5.2")]
public Gdaui.SetSource get_source ();
+ [Version (since = "5.2")]
public void set_group (Gda.SetGroup group);
+ [Version (since = "5.2")]
public void set_source (Gdaui.SetSource source);
}
- [CCode (cheader_filename = "libgda-ui/libgda-ui.h")]
+ [CCode (cheader_filename = "libgda-ui/libgda-ui.h", has_type_id = false)]
[Compact]
public class SetPriv {
}
[CCode (cheader_filename = "libgda-ui/libgda-ui.h", copy_function = "g_boxed_copy", free_function =
"g_boxed_free", type_id = "gdaui_set_source_get_type ()")]
[Compact]
public class SetSource {
- [CCode (array_length = false, array_null_terminated = true)]
+ [CCode (array_length_cname = "ref_n_cols")]
public weak int[] ref_cols_index;
public int ref_n_cols;
- [CCode (array_length = false, array_null_terminated = true)]
+ [CCode (array_length_cname = "shown_n_cols")]
public weak int[] shown_cols_index;
public int shown_n_cols;
public weak Gda.SetSource source;
[CCode (has_construct_function = false)]
+ [Version (since = "5.2")]
public SetSource (Gda.SetSource source);
+ [Version (since = "5.2")]
public Gdaui.SetSource copy ();
+ [Version (since = "5.2")]
public void free ();
[CCode (array_length = false, array_null_terminated = true)]
+ [Version (since = "5.2")]
public unowned int[] get_ref_columns ();
+ [Version (since = "5.2")]
public int get_ref_n_cols ();
[CCode (array_length = false, array_null_terminated = true)]
+ [Version (since = "5.2")]
public unowned int[] get_shown_columns ();
+ [Version (since = "5.2")]
public int get_shown_n_cols ();
+ [Version (since = "5.2")]
public Gda.SetSource get_source ();
+ [Version (since = "5.2")]
public void set_ref_columns ([CCode (array_length_cname = "n_columns", array_length_pos =
1.1)] int[] columns);
+ [Version (since = "5.2")]
public void set_shown_columns ([CCode (array_length_cname = "n_columns", array_length_pos =
1.1)] int[] columns);
+ [Version (since = "5.2")]
public void set_source (Gda.SetSource source);
}
[CCode (cheader_filename = "libgda-ui/libgda-ui.h", type_id = "gdaui_tree_store_get_type ()")]
public class TreeStore : GLib.Object, Gtk.TreeDragDest, Gtk.TreeDragSource, Gtk.TreeModel {
[CCode (has_construct_function = false)]
protected TreeStore ();
+ [Version (since = "5.2")]
public bool get_iter_from_node (Gtk.TreeIter iter, Gda.TreeNode node);
+ [Version (since = "4.2.8")]
public unowned Gda.TreeNode get_node (Gtk.TreeIter iter);
+ [Version (since = "4.2")]
public static Gtk.TreeModel newv (Gda.Tree tree, uint n_columns, GLib.Type types, string
attribute_names);
[NoAccessorMethod]
public Gda.Tree tree { owned get; construct; }
@@ -567,38 +661,54 @@ namespace Gdaui {
public virtual signal bool drag_drop (string path, void* selection_data);
public virtual signal bool drag_get (string path, void* selection_data);
}
- [CCode (cheader_filename = "libgda-ui/libgda-ui.h")]
+ [CCode (cheader_filename = "libgda-ui/libgda-ui.h", has_type_id = false)]
[Compact]
public class TreeStorePriv {
}
[CCode (cheader_filename = "libgda-ui/libgda-ui.h", type_id = "gdaui_data_entry_get_type ()")]
public interface DataEntry : Gtk.Widget {
- [Deprecated (since = "5.2")]
+ [Version (deprecated = true, deprecated_since = "5.2", since = "4.2")]
public abstract bool can_expand (bool horiz);
[NoWrapper]
public abstract bool contents_valid () throws GLib.Error;
public static GLib.Quark error_quark ();
+ [Version (since = "4.2")]
public abstract Gda.ValueAttribute get_attributes ();
+ [Version (since = "4.2")]
public abstract bool get_editable ();
+ [Version (since = "4.2")]
public abstract unowned Gda.DataHandler get_handler ();
[NoWrapper]
public abstract unowned GLib.Value? get_ref_value ();
+ [Version (since = "4.2")]
public unowned GLib.Value? get_reference_value ();
+ [Version (since = "4.2")]
public abstract unowned GLib.Value? get_value ();
+ [Version (since = "4.2")]
public abstract GLib.Type get_value_type ();
+ [Version (since = "4.2")]
public abstract void grab_focus ();
+ [Version (since = "4.2")]
public abstract void set_attributes (Gda.ValueAttribute attrs, Gda.ValueAttribute mask);
+ [Version (since = "4.2")]
public void set_default_value (GLib.Value? value);
+ [Version (since = "4.2")]
public abstract void set_editable (bool editable);
[NoWrapper]
public abstract void set_ref_value (GLib.Value value);
+ [Version (since = "4.2")]
public void set_reference_current ();
+ [Version (since = "4.2")]
public void set_reference_value (GLib.Value? value);
+ [Version (since = "5.0.3")]
public abstract void set_unknown_color (double red, double green, double blue, double alpha);
+ [Version (since = "4.2")]
public abstract void set_value (GLib.Value? value);
[NoWrapper]
public abstract void set_value_default (GLib.Value value);
+ [Version (since = "4.2")]
public abstract void set_value_type (GLib.Type type);
+ [Version (since = "5.2")]
public abstract bool validate () throws GLib.Error;
public virtual signal void contents_activated ();
public virtual signal void contents_modified ();
@@ -607,27 +717,37 @@ namespace Gdaui {
}
[CCode (cheader_filename = "libgda-ui/libgda-ui.h", type_id = "gdaui_data_proxy_get_type ()")]
public interface DataProxy : GLib.Object {
+ [Version (since = "4.2")]
public void column_set_editable (int column, bool editable);
- public void column_show_actions (int column, bool show_actions);
+ [Version (since = "4.2")]
public abstract unowned Gda.DataProxy get_proxy ();
+ [Version (since = "4.2")]
public abstract Gdaui.DataProxyWriteMode get_write_mode ();
+ [Version (since = "4.2")]
public abstract void perform_action (Gdaui.Action action);
[NoWrapper]
public abstract void set_column_editable (int column, bool editable);
+ [Version (since = "4.2")]
public abstract bool set_write_mode (Gdaui.DataProxyWriteMode mode);
- [NoWrapper]
- public abstract void show_column_actions (int column, bool show_actions);
+ [Version (since = "6.0")]
public abstract bool supports_action (Gdaui.Action action);
public virtual signal void proxy_changed (Gda.DataProxy proxy);
}
[CCode (cheader_filename = "libgda-ui/libgda-ui.h", type_id = "gdaui_data_selector_get_type ()")]
public interface DataSelector : GLib.Object {
+ [Version (since = "4.2")]
public abstract unowned Gda.DataModelIter get_data_set ();
+ [Version (since = "4.2")]
public abstract unowned Gda.DataModel get_model ();
+ [Version (since = "4.2")]
public abstract GLib.Array<int> get_selected_rows ();
+ [Version (since = "4.2")]
public abstract bool select_row (int row);
+ [Version (since = "4.2")]
public abstract void set_column_visible (int column, bool visible);
+ [Version (since = "4.2")]
public abstract void set_model (Gda.DataModel model);
+ [Version (since = "4.2")]
public abstract void unselect_row (int row);
public virtual signal void selection_changed ();
}
@@ -730,6 +850,16 @@ namespace Gdaui {
public const string COLOR_PRELIGHT_NULL;
[CCode (cheader_filename = "libgda-ui/libgda-ui.h", cname = "GDAUI_COLOR_UNKNOWN_MASK")]
public const double COLOR_UNKNOWN_MASK;
+ [CCode (cheader_filename = "libgda-ui/libgda-ui.h", cname = "GDAUI_HIG_FORM_HBORDER")]
+ public const int HIG_FORM_HBORDER;
+ [CCode (cheader_filename = "libgda-ui/libgda-ui.h", cname = "GDAUI_HIG_FORM_HSPACE")]
+ public const int HIG_FORM_HSPACE;
+ [CCode (cheader_filename = "libgda-ui/libgda-ui.h", cname = "GDAUI_HIG_FORM_VBORDER")]
+ public const int HIG_FORM_VBORDER;
+ [CCode (cheader_filename = "libgda-ui/libgda-ui.h", cname = "GDAUI_HIG_FORM_VSEP")]
+ public const int HIG_FORM_VSEP;
+ [CCode (cheader_filename = "libgda-ui/libgda-ui.h", cname = "GDAUI_HIG_FORM_VSPACE")]
+ public const int HIG_FORM_VSPACE;
[CCode (cheader_filename = "libgda-ui/libgda-ui.h")]
public static Gdaui.DataEntry new_data_entry (GLib.Type type, string? plugin_name);
}
diff --git a/libgda/data/Makefile.am b/libgda/data/Makefile.am
index baee826a4..f3c24412d 100644
--- a/libgda/data/Makefile.am
+++ b/libgda/data/Makefile.am
@@ -17,7 +17,7 @@ AM_CFLAGS =\
lib_LTLIBRARIES = libgdadata-6.0.la
-VALAFLAGS = \
+AM_VALAFLAGS = \
--vapidir=$(top_srcdir)/libgda \
--vapidir=$(VAPIDIR) \
--includedir=$(top_srcdir)/libgda \
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]