[libgda-uimm] Login: Wrapped properties and signals.



commit 1cc9d43016a4c90549b395254e70d740a4e4005e
Author: José Alburquerque <jaalburqu svn gnome org>
Date:   Tue Feb 23 17:35:15 2010 -0500

    	Login: Wrapped properties and signals.
    
    	* libgda-ui/src/login.hg: Wrapped signals and properties.
    	* tools/extra_defs_gen/generate_defs_libgda_ui.cc: Added
    	GDAUI_TYPE_LOGIN to the list of types for which signals and properties
    	should be generated.
    	* libgda-ui/src/libgda_ui_signals.defs: Regenerated with
    	generate_defs_libgda_ui to get GdauiLogin signals and properties.

 ChangeLog                                       |   11 +
 libgda-ui/src/libgda_ui_signals.defs            |  310 ++++++++++++++++++++++-
 libgda-ui/src/login.hg                          |    6 +
 tools/extra_defs_gen/generate_defs_libgda_ui.cc |    2 +
 4 files changed, 328 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 11adf7d..74a4bdf 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,16 @@
 2010-02-23  José Alburquerque  <jaalburqu svn gnome org>
 
+	Login: Wrapped properties and signals.
+
+	* libgda-ui/src/login.hg: Wrapped signals and properties.
+	* tools/extra_defs_gen/generate_defs_libgda_ui.cc: Added 
+	GDAUI_TYPE_LOGIN to the list of types for which signals and properties
+	should be generated.
+	* libgda-ui/src/libgda_ui_signals.defs: Regenerated with
+	generate_defs_libgda_ui to get GdauiLogin signals and properties.
+
+2010-02-23  José Alburquerque  <jaalburqu svn gnome org>
+
 	Add Login Class.
 
 	* libgda-ui/libgda-uimm.h:
diff --git a/libgda-ui/src/libgda_ui_signals.defs b/libgda-ui/src/libgda_ui_signals.defs
index 501a58f..eb20f69 100644
--- a/libgda-ui/src/libgda_ui_signals.defs
+++ b/libgda-ui/src/libgda_ui_signals.defs
@@ -369,5 +369,313 @@
   (when "first")
 )
 
-;; Warning: g_object_interface_list_properties() returned NULL for GdauiDataSelector
+
+;; From GdauiLogin
+
+(define-signal changed
+  (of-object "GdauiLogin")
+  (return-type "void")
+  (when "first")
+  (parameters
+    '("gboolean" "p0")
+  )
+)
+
+(define-property orientation
+  (of-object "GdauiLogin")
+  (prop-type "GParamEnum")
+  (docs "The orientation of the orientable")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+)
+
+(define-property user-data
+  (of-object "GdauiLogin")
+  (prop-type "GParamPointer")
+  (docs "Anonymous User Data Pointer")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+)
+
+(define-property name
+  (of-object "GdauiLogin")
+  (prop-type "GParamString")
+  (docs "The name of the widget")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+)
+
+(define-property parent
+  (of-object "GdauiLogin")
+  (prop-type "GParamObject")
+  (docs "The parent widget of this widget. Must be a Container widget")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+)
+
+(define-property width-request
+  (of-object "GdauiLogin")
+  (prop-type "GParamInt")
+  (docs "Override for width request of the widget, or -1 if natural request should be used")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+)
+
+(define-property height-request
+  (of-object "GdauiLogin")
+  (prop-type "GParamInt")
+  (docs "Override for height request of the widget, or -1 if natural request should be used")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+)
+
+(define-property visible
+  (of-object "GdauiLogin")
+  (prop-type "GParamBoolean")
+  (docs "Whether the widget is visible")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+)
+
+(define-property sensitive
+  (of-object "GdauiLogin")
+  (prop-type "GParamBoolean")
+  (docs "Whether the widget responds to input")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+)
+
+(define-property app-paintable
+  (of-object "GdauiLogin")
+  (prop-type "GParamBoolean")
+  (docs "Whether the application will paint directly on the widget")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+)
+
+(define-property can-focus
+  (of-object "GdauiLogin")
+  (prop-type "GParamBoolean")
+  (docs "Whether the widget can accept the input focus")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+)
+
+(define-property has-focus
+  (of-object "GdauiLogin")
+  (prop-type "GParamBoolean")
+  (docs "Whether the widget has the input focus")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+)
+
+(define-property is-focus
+  (of-object "GdauiLogin")
+  (prop-type "GParamBoolean")
+  (docs "Whether the widget is the focus widget within the toplevel")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+)
+
+(define-property can-default
+  (of-object "GdauiLogin")
+  (prop-type "GParamBoolean")
+  (docs "Whether the widget can be the default widget")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+)
+
+(define-property has-default
+  (of-object "GdauiLogin")
+  (prop-type "GParamBoolean")
+  (docs "Whether the widget is the default widget")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+)
+
+(define-property receives-default
+  (of-object "GdauiLogin")
+  (prop-type "GParamBoolean")
+  (docs "If TRUE, the widget will receive the default action when it is focused")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+)
+
+(define-property composite-child
+  (of-object "GdauiLogin")
+  (prop-type "GParamBoolean")
+  (docs "Whether the widget is part of a composite widget")
+  (readable #t)
+  (writable #f)
+  (construct-only #f)
+)
+
+(define-property style
+  (of-object "GdauiLogin")
+  (prop-type "GParamObject")
+  (docs "The style of the widget, which contains information about how it will look (colors etc)")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+)
+
+(define-property events
+  (of-object "GdauiLogin")
+  (prop-type "GParamFlags")
+  (docs "The event mask that decides what kind of GdkEvents this widget gets")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+)
+
+(define-property extension-events
+  (of-object "GdauiLogin")
+  (prop-type "GParamEnum")
+  (docs "The mask that decides what kind of extension events this widget gets")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+)
+
+(define-property no-show-all
+  (of-object "GdauiLogin")
+  (prop-type "GParamBoolean")
+  (docs "Whether gtk_widget_show_all() should not affect this widget")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+)
+
+(define-property has-tooltip
+  (of-object "GdauiLogin")
+  (prop-type "GParamBoolean")
+  (docs "Whether this widget has a tooltip")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+)
+
+(define-property tooltip-markup
+  (of-object "GdauiLogin")
+  (prop-type "GParamString")
+  (docs "The contents of the tooltip for this widget")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+)
+
+(define-property tooltip-text
+  (of-object "GdauiLogin")
+  (prop-type "GParamString")
+  (docs "The contents of the tooltip for this widget")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+)
+
+(define-property window
+  (of-object "GdauiLogin")
+  (prop-type "GParamObject")
+  (docs "The widget's window if it is realized")
+  (readable #t)
+  (writable #f)
+  (construct-only #f)
+)
+
+(define-property double-buffered
+  (of-object "GdauiLogin")
+  (prop-type "GParamBoolean")
+  (docs "Whether or not the widget is double buffered")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+)
+
+(define-property border-width
+  (of-object "GdauiLogin")
+  (prop-type "GParamUInt")
+  (docs "The width of the empty border outside the containers children")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+)
+
+(define-property resize-mode
+  (of-object "GdauiLogin")
+  (prop-type "GParamEnum")
+  (docs "Specify how resize events are handled")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+)
+
+(define-property child
+  (of-object "GdauiLogin")
+  (prop-type "GParamObject")
+  (docs "Can be used to add a new child to the container")
+  (readable #f)
+  (writable #t)
+  (construct-only #f)
+)
+
+(define-property spacing
+  (of-object "GdauiLogin")
+  (prop-type "GParamInt")
+  (docs "The amount of space between children")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+)
+
+(define-property homogeneous
+  (of-object "GdauiLogin")
+  (prop-type "GParamBoolean")
+  (docs "Whether the children should all be the same size")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+)
+
+(define-property dsn
+  (of-object "GdauiLogin")
+  (prop-type "GParamString")
+  (docs "")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+)
+
+(define-property mode
+  (of-object "GdauiLogin")
+  (prop-type "GParamFlags")
+  (docs "")
+  (readable #t)
+  (writable #t)
+  (construct-only #f)
+)
+
+(define-property valid
+  (of-object "GdauiLogin")
+  (prop-type "GParamBoolean")
+  (docs "")
+  (readable #t)
+  (writable #f)
+  (construct-only #f)
+)
+
 
diff --git a/libgda-ui/src/login.hg b/libgda-ui/src/login.hg
index 7483c57..c9c5ec0 100644
--- a/libgda-ui/src/login.hg
+++ b/libgda-ui/src/login.hg
@@ -48,6 +48,12 @@ public:
   _WRAP_METHOD(const GdaDsnInfo* get_connection_information(), gdaui_login_get_connection_information)
   _WRAP_METHOD(void set_dsn(const Glib::ustring& dsn), gdaui_login_set_dsn)
   _WRAP_METHOD(void set_connection_information(const GdaDsnInfo *cinfo), gdaui_login_set_connection_information)
+
+  _WRAP_SIGNAL(void changed(bool arg1), "changed")
+
+  _WRAP_PROPERTY("dns", Glib::ustring)
+  _WRAP_PROPERTY("mode", LoginMode)
+  _WRAP_PROPERTY("valid", bool)
 };
 
 } // namespace GdaUI
diff --git a/tools/extra_defs_gen/generate_defs_libgda_ui.cc b/tools/extra_defs_gen/generate_defs_libgda_ui.cc
index e180a6b..33b2b19 100644
--- a/tools/extra_defs_gen/generate_defs_libgda_ui.cc
+++ b/tools/extra_defs_gen/generate_defs_libgda_ui.cc
@@ -20,6 +20,7 @@
 #include <glibmm_generate_extra_defs/generate_extra_defs.h>
 #include <libgda-ui/gdaui-combo.h>
 #include <libgda-ui/gdaui-data-selector.h>
+#include <libgda-ui/gdaui-login.h>
 #include <iostream>
 
 int main(int, char**)
@@ -28,6 +29,7 @@ int main(int, char**)
 
   std::cout << get_defs(GDAUI_TYPE_COMBO)               << std::endl
             << get_defs(GDAUI_TYPE_DATA_SELECTOR)       << std::endl
+            << get_defs(GDAUI_TYPE_LOGIN)               << std::endl
             ;
   return 0;
 }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]