]> saetta.ns0.it Git - libgtkform/commitdiff
Added and managed tag trim to GtkFormField.
authorAndrea Zagli <azagli@libero.it>
Sun, 1 Aug 2010 10:05:31 +0000 (12:05 +0200)
committerAndrea Zagli <azagli@libero.it>
Sun, 1 Aug 2010 10:05:31 +0000 (12:05 +0200)
Updated gtk-doc.
Updated it.po.

31 files changed:
configure.ac
data/gtkform.dtd
docs/reference/libgtkform-docs.sgml
docs/reference/libgtkform-sections.txt
docs/reference/libgtkform-undeclared.txt
docs/reference/libgtkform-undocumented.txt
docs/reference/libgtkform-unused.txt
docs/reference/libgtkform.args
docs/reference/libgtkform.hierarchy
docs/reference/libgtkform.types
docs/reference/tmpl/field.sgml
docs/reference/tmpl/fieldboolean.sgml
docs/reference/tmpl/fielddatetime.sgml
docs/reference/tmpl/fieldfloat.sgml
docs/reference/tmpl/fieldinteger.sgml
docs/reference/tmpl/fieldtext.sgml
docs/reference/tmpl/form.sgml
docs/reference/tmpl/group.sgml [new file with mode: 0644]
docs/reference/tmpl/key.sgml
docs/reference/tmpl/widget.sgml
docs/reference/tmpl/widgetcheck.sgml
docs/reference/tmpl/widgetcombobox.sgml
docs/reference/tmpl/widgetentry.sgml
docs/reference/tmpl/widgetlabel.sgml
docs/reference/tmpl/widgetradio.sgml [new file with mode: 0644]
docs/reference/tmpl/widgetspin.sgml
docs/reference/tmpl/widgettextview.sgml
po/it.po
src/field.c
src/fieldtext.c
src/form.c

index f9198e70efa1811f7cf2f5b07df6b7724e2ffe54..8815ef9a9b58f3fd1b694bd2161b6d5b0110af62 100644 (file)
@@ -2,7 +2,7 @@
 # Process this file with autoconf to produce a configure script.
 
 AC_PREREQ(2.59)
-AC_INIT([libgtkform], [0.1.3], [azagli@libero.it])
+AC_INIT([libgtkform], [0.1.4], [azagli@libero.it])
 AC_CONFIG_SRCDIR([src/form.c])
 AC_CONFIG_HEADER([config.h])
 
index 3fe147f4862c777cb01eed7d1857b4e6422f1590..157e82e4895120f9d2ff986b37cd43726811f90f 100644 (file)
@@ -31,7 +31,7 @@
 
 <!ELEMENT widget-name (#PCDATA)>
 
-<!ELEMENT field (to-load?, to-save?, obligatory?, default?, is-key?, auto-increment?, datetime-type?, display-format?)>
+<!ELEMENT field (to-load?, to-save?, obligatory?, default?, is-key?, auto-increment?, datetime-type?, display-format?, trim?)>
 
 <!ATTLIST field
        type  (boolean | datetime | float | integer | text)  #REQUIRED
@@ -46,6 +46,7 @@
 <!ELEMENT auto-increment (#PCDATA)>
 <!ELEMENT datetime-type (date | time | datetime)>
 <!ELEMENT display-format (#PCDATA)>
+<!ELEMENT trim (#PCDATA)>
 
 <!ELEMENT group (widget*, field*)>
 
index adbad4dfa5d7c76cee0e51725d2b7dc7d5af580a..e7942103fe50ab109def79fea40ea033208fbfa4 100644 (file)
@@ -8,7 +8,7 @@
   <bookinfo>
     <title>libgtkform Reference Manual</title>
     <releaseinfo>
-      for libgtkform [VERSION]
+      for libgtkform [VERSION].
       The latest version of this documentation can be found on-line at
       <ulink role="online-location" url="http://[SERVER]/libgtkform/index.html">http://[SERVER]/libgtkform/</ulink>.
     </releaseinfo>
@@ -18,6 +18,7 @@
     <title>[Insert title here]</title>
         <xi:include href="xml/widgetspin.xml"/>
     <xi:include href="xml/widgetcheck.xml"/>
+    <xi:include href="xml/group.xml"/>
     <xi:include href="xml/fieldboolean.xml"/>
     <xi:include href="xml/widget.xml"/>
     <xi:include href="xml/fieldtext.xml"/>
@@ -30,6 +31,7 @@
     <xi:include href="xml/form.xml"/>
     <xi:include href="xml/widgetcombobox.xml"/>
     <xi:include href="xml/widgetentry.xml"/>
+    <xi:include href="xml/widgetradio.xml"/>
     <xi:include href="xml/fieldinteger.xml"/>
 
   </chapter>
index dfbd6175d06e7d774227f841faf8aea0cce4ecf4..4e24d6847002aaa5cd9f6e2222de12595a311cbd 100644 (file)
@@ -1,13 +1,14 @@
 <SECTION>
 <FILE>widgetspin</FILE>
+<TITLE>GtkFormWidgetSpin</TITLE>
 TYPE_GTK_FORM_WIDGET_SPIN
 GTK_FORM_WIDGET_SPIN
 GTK_FORM_WIDGET_SPIN_CLASS
 IS_GTK_FORM_WIDGET_SPIN
 IS_GTK_FORM_WIDGET_SPIN_CLASS
 GTK_FORM_WIDGET_SPIN_GET_CLASS
-<TITLE>GtkFormWidgetSpin</TITLE>
 GtkFormWidgetSpin
+GtkFormWidgetSpinClass
 gtk_form_widget_spin_get_type
 gtk_form_widget_spin_new
 gtk_form_widget_spin_get_value_stringify
@@ -17,14 +18,15 @@ gtk_form_widget_spin_set_editable
 
 <SECTION>
 <FILE>widgetcheck</FILE>
+<TITLE>GtkFormWidgetCheck</TITLE>
 TYPE_GTK_FORM_WIDGET_CHECK
 GTK_FORM_WIDGET_CHECK
 GTK_FORM_WIDGET_CHECK_CLASS
 IS_GTK_FORM_WIDGET_CHECK
 IS_GTK_FORM_WIDGET_CHECK_CLASS
 GTK_FORM_WIDGET_CHECK_GET_CLASS
-<TITLE>GtkFormWidgetCheck</TITLE>
 GtkFormWidgetCheck
+GtkFormWidgetCheckClass
 gtk_form_widget_check_get_type
 gtk_form_widget_check_new
 gtk_form_widget_check_get_value_stringify
@@ -32,16 +34,38 @@ gtk_form_widget_check_set_value_stringify
 gtk_form_widget_check_set_editable
 </SECTION>
 
+<SECTION>
+<FILE>group</FILE>
+<TITLE>GtkFormGroup</TITLE>
+TYPE_GTK_FORM_GROUP
+GTK_FORM_GROUP
+GTK_FORM_GROUP_CLASS
+IS_GTK_FORM_GROUP
+IS_GTK_FORM_GROUP_CLASS
+GTK_FORM_GROUP_GET_CLASS
+GtkFormGroup
+GtkFormGroupClass
+gtk_form_group_get_type
+gtk_form_group_new
+gtk_form_group_get_name
+gtk_form_group_add_widget
+gtk_form_group_add_field
+gtk_form_group_clear
+gtk_form_group_set_from_datamodel
+gtk_form_group_set_from_hashtable
+</SECTION>
+
 <SECTION>
 <FILE>fieldboolean</FILE>
+<TITLE>GtkFormFieldBoolean</TITLE>
 TYPE_GTK_FORM_FIELD_BOOLEAN
 GTK_FORM_FIELD_BOOLEAN
 GTK_FORM_FIELD_BOOLEAN_CLASS
 IS_GTK_FORM_FIELD_BOOLEAN
 IS_GTK_FORM_FIELD_BOOLEAN_CLASS
 GTK_FORM_FIELD_BOOLEAN_GET_CLASS
-<TITLE>GtkFormFieldBoolean</TITLE>
 GtkFormFieldBoolean
+GtkFormFieldBooleanClass
 gtk_form_field_boolean_get_type
 gtk_form_field_boolean_new
 gtk_form_field_boolean_get_value_stringify
@@ -49,39 +73,51 @@ gtk_form_field_boolean_get_value
 gtk_form_field_boolean_get_value_sql
 gtk_form_field_boolean_clear
 gtk_form_field_boolean_is_empty
+gtk_form_filed_boolean_is_changed
+gtk_form_field_boolean_set_as_origin
 gtk_form_field_boolean_set_from_datamodel
+gtk_form_field_boolean_set_from_hashtable
+gtk_form_field_boolean_str_to_boolean
 </SECTION>
 
 <SECTION>
 <FILE>widget</FILE>
+<TITLE>GtkFormWidget</TITLE>
 TYPE_GTK_FORM_WIDGET
 GTK_FORM_WIDGET
 GTK_FORM_WIDGET_CLASS
 IS_GTK_FORM_WIDGET
 IS_GTK_FORM_WIDGET_CLASS
 GTK_FORM_WIDGET_GET_CLASS
-<TITLE>GtkFormWidget</TITLE>
 GtkFormWidget
+GtkFormWidgetClass
 gtk_form_widget_get_type
 gtk_form_widget_new
 gtk_form_widget_set_from_gtkbuilder
 gtk_form_widget_get_widget
 gtk_form_widget_get_widget_name
+gtk_form_widget_get_label
+gtk_form_widget_set_label
 gtk_form_widget_get_value_stringify
 gtk_form_widget_set_value_stringify
 gtk_form_widget_set_editable
+gtk_form_widget_set_visible
+GtkFormWidgetOnChangeOpType
+GtkFormWidgetOnChangeOpUpdateWhen
+gtk_form_widget_add_on_change_op
 </SECTION>
 
 <SECTION>
 <FILE>fieldtext</FILE>
+<TITLE>GtkFormFieldText</TITLE>
 TYPE_GTK_FORM_FIELD_TEXT
 GTK_FORM_FIELD_TEXT
 GTK_FORM_FIELD_TEXT_CLASS
 IS_GTK_FORM_FIELD_TEXT
 IS_GTK_FORM_FIELD_TEXT_CLASS
 GTK_FORM_FIELD_TEXT_GET_CLASS
-<TITLE>GtkFormFieldText</TITLE>
 GtkFormFieldText
+GtkFormFieldTextClass
 gtk_form_field_text_get_type
 gtk_form_field_text_new
 gtk_form_field_text_get_value_stringify
@@ -89,19 +125,23 @@ gtk_form_field_text_get_value
 gtk_form_field_text_get_value_sql
 gtk_form_field_text_clear
 gtk_form_field_text_is_empty
+gtk_form_field_text_is_changed
+gtk_form_field_text_set_as_origin
 gtk_form_field_text_set_from_datamodel
+gtk_form_field_text_set_from_hashtable
 </SECTION>
 
 <SECTION>
 <FILE>fielddatetime</FILE>
+<TITLE>GtkFormFieldDateTime</TITLE>
 TYPE_GTK_FORM_FIELD_DATETIME
 GTK_FORM_FIELD_DATETIME
 GTK_FORM_FIELD_DATETIME_CLASS
 IS_GTK_FORM_FIELD_DATETIME
 IS_GTK_FORM_FIELD_DATETIME_CLASS
 GTK_FORM_FIELD_DATETIME_GET_CLASS
-<TITLE>GtkFormFieldDateTime</TITLE>
 GtkFormFieldDateTime
+GtkFormFieldDateTimeClass
 gtk_form_field_datetime_get_type
 gtk_form_field_datetime_new
 gtk_form_field_datetime_get_value_stringify
@@ -109,19 +149,27 @@ gtk_form_field_datetime_get_value
 gtk_form_field_datetime_get_value_sql
 gtk_form_field_datetime_clear
 gtk_form_field_datetime_is_empty
+gtk_form_field_datetime_is_changed
+gtk_form_field_datetime_set_as_origin
 gtk_form_field_datetime_set_from_datamodel
+gtk_form_field_datetime_set_from_hashtable
+gtk_form_field_datetime_get_tm_from_str
+gtk_form_field_datetime_get_str_from_tm
+gtk_form_field_datetime_get_gdate_from_tm
+gtk_form_field_datetime_get_now
 </SECTION>
 
 <SECTION>
 <FILE>widgetlabel</FILE>
+<TITLE>GtkFormWidgetLabel</TITLE>
 TYPE_GTK_FORM_WIDGET_LABEL
 GTK_FORM_WIDGET_LABEL
 GTK_FORM_WIDGET_LABEL_CLASS
 IS_GTK_FORM_WIDGET_LABEL
 IS_GTK_FORM_WIDGET_LABEL_CLASS
 GTK_FORM_WIDGET_LABEL_GET_CLASS
-<TITLE>GtkFormWidgetLabel</TITLE>
 GtkFormWidgetLabel
+GtkFormWidgetLabelClass
 gtk_form_widget_label_get_type
 gtk_form_widget_label_new
 gtk_form_widget_label_get_value_stringify
@@ -130,14 +178,15 @@ gtk_form_widget_label_set_value_stringify
 
 <SECTION>
 <FILE>fieldfloat</FILE>
+<TITLE>GtkFormFieldFloat</TITLE>
 TYPE_GTK_FORM_FIELD_FLOAT
 GTK_FORM_FIELD_FLOAT
 GTK_FORM_FIELD_FLOAT_CLASS
 IS_GTK_FORM_FIELD_FLOAT
 IS_GTK_FORM_FIELD_FLOAT_CLASS
 GTK_FORM_FIELD_FLOAT_GET_CLASS
-<TITLE>GtkFormFieldFloat</TITLE>
 GtkFormFieldFloat
+GtkFormFieldFloatClass
 gtk_form_field_float_get_type
 gtk_form_field_float_new
 gtk_form_field_float_get_value_stringify
@@ -145,19 +194,23 @@ gtk_form_field_float_get_value
 gtk_form_field_float_get_value_sql
 gtk_form_field_float_clear
 gtk_form_field_float_is_empty
+gtk_form_field_float_is_changed
+gtk_form_field_float_set_as_origin
 gtk_form_field_float_set_from_datamodel
+gtk_form_field_float_set_from_hashtable
 </SECTION>
 
 <SECTION>
 <FILE>key</FILE>
+<TITLE>GtkFormKey</TITLE>
 TYPE_GTK_FORM_KEY
 GTK_FORM_KEY
 GTK_FORM_KEY_CLASS
 IS_GTK_FORM_KEY
 IS_GTK_FORM_KEY_CLASS
 GTK_FORM_KEY_GET_CLASS
-<TITLE>GtkFormKey</TITLE>
 GtkFormKey
+GtkFormKeyClass
 gtk_form_key_get_type
 gtk_form_key_new
 gtk_form_key_add_field
@@ -170,14 +223,15 @@ gtk_form_key_field_is_key
 
 <SECTION>
 <FILE>widgettextview</FILE>
+<TITLE>GtkFormWidgetTextview</TITLE>
 TYPE_GTK_FORM_WIDGET_TEXTVIEW
 GTK_FORM_WIDGET_TEXTVIEW
 GTK_FORM_WIDGET_TEXTVIEW_CLASS
 IS_GTK_FORM_WIDGET_TEXTVIEW
 IS_GTK_FORM_WIDGET_TEXTVIEW_CLASS
 GTK_FORM_WIDGET_TEXTVIEW_GET_CLASS
-<TITLE>GtkFormWidgetTextview</TITLE>
 GtkFormWidgetTextview
+GtkFormWidgetTextviewClass
 gtk_form_widget_textview_get_type
 gtk_form_widget_textview_new
 gtk_form_widget_textview_get_value_stringify
@@ -187,80 +241,123 @@ gtk_form_widget_textview_set_editable
 
 <SECTION>
 <FILE>field</FILE>
+<TITLE>GtkFormField</TITLE>
 TYPE_GTK_FORM_FIELD
 GTK_FORM_FIELD
 GTK_FORM_FIELD_CLASS
 IS_GTK_FORM_FIELD
 IS_GTK_FORM_FIELD_CLASS
 GTK_FORM_FIELD_GET_CLASS
-<TITLE>GtkFormField</TITLE>
 GtkFormField
+GtkFormFieldClass
 gtk_form_field_get_type
 gtk_form_field_new
 gtk_form_field_new_from_gtk_form_widget
 gtk_form_field_get_field_name
-gtk_form_field_get_gtk_form_widget
+gtk_form_field_get_form_widget
 gtk_form_field_get_value_stringify
 gtk_form_field_get_value
 gtk_form_field_get_value_sql
 gtk_form_field_clear
+gtk_form_field_is_to_load
+gtk_form_field_is_to_save
+gtk_form_field_is_auto_increment
 gtk_form_field_is_empty
+gtk_form_field_is_changed
+gtk_form_field_set_as_origin
 gtk_form_field_set_from_datamodel
+gtk_form_field_set_from_hashtable
 </SECTION>
 
 <SECTION>
 <FILE>form</FILE>
+<TITLE>GtkForm</TITLE>
 TYPE_GTK_FORM
 GTK_FORM
 GTK_FORM_CLASS
 IS_GTK_FORM
 IS_GTK_FORM_CLASS
 GTK_FORM_GET_CLASS
-<TITLE>GtkForm</TITLE>
 GtkForm
+GtkFormClass
 gtk_form_get_type
 gtk_form_new
+gtk_form_new_from_xml
+gtk_form_new_from_file
+gtk_form_load_from_xml
+gtk_form_load_from_file
+gtk_form_get_gtkbuilder
+gtk_form_get_table
+gtk_form_set_table
+gtk_form_get_key
+gtk_form_set_key
 gtk_form_add_field
 gtk_form_remove_field
 gtk_form_add_fields
-gtk_form_get_field_from_name
-gtk_form_get_widget_from_name
+gtk_form_get_form_field_from_name
+gtk_form_get_form_widget_from_name
+gtk_form_get_widget_from_form_field_name
+gtk_form_get_widget_from_form_widget_name
+gtk_form_get_form_field_from_widget
+gtk_form_get_form_widget_from_widget
+gtk_form_get_widgets
+gtk_form_get_objects_by_name
 gtk_form_clear
 gtk_form_check
+gtk_form_is_changed
+gtk_form_set_as_origin
 gtk_form_set_sensitive
+gtk_form_set_sensitive_by_name
 gtk_form_set_editable
+gtk_form_set_visible_by_name
+gtk_form_set_form_widget_visible_by_name
+gtk_form_get_form_field_value_by_name
+gtk_form_get_form_widget_value_by_name
+gtk_form_get_form_field_value_stringify_by_name
+gtk_form_get_form_widget_value_stringify_by_name
+gtk_form_get_form_field_value_sql_by_name
+gtk_form_get_form_widget_value_sql_by_name
 GtkFormSqlType
 gtk_form_get_sql
 gtk_form_fill_from_datamodel
+gtk_form_fill_from_table
+gtk_form_get_values_as_hashtable
+gtk_form_fill_from_hashtable
+gtk_form_add_group
+gtk_form_get_group_by_name
 </SECTION>
 
 <SECTION>
 <FILE>widgetcombobox</FILE>
+<TITLE>GtkFormWidgetComboBox</TITLE>
 TYPE_GTK_FORM_WIDGET_COMBO_BOX
 GTK_FORM_WIDGET_COMBO_BOX
 GTK_FORM_WIDGET_COMBO_BOX_CLASS
 IS_GTK_FORM_WIDGET_COMBO_BOX
 IS_GTK_FORM_WIDGET_COMBO_BOX_CLASS
 GTK_FORM_WIDGET_COMBO_BOX_GET_CLASS
-<TITLE>GtkFormWidgetComboBox</TITLE>
 GtkFormWidgetComboBox
+GtkFormWidgetComboBoxClass
 gtk_form_widget_combo_box_get_type
 gtk_form_widget_combo_box_new
 gtk_form_widget_combo_box_get_value_stringify
 gtk_form_widget_combo_box_set_value_stringify
 gtk_form_widget_combo_box_set_editable
+gtk_form_widget_combo_box_fill_from_datamodel
+gtk_form_widget_combo_box_fill_from_sql
 </SECTION>
 
 <SECTION>
 <FILE>widgetentry</FILE>
+<TITLE>GtkFormWidgetEntry</TITLE>
 TYPE_GTK_FORM_WIDGET_ENTRY
 GTK_FORM_WIDGET_ENTRY
 GTK_FORM_WIDGET_ENTRY_CLASS
 IS_GTK_FORM_WIDGET_ENTRY
 IS_GTK_FORM_WIDGET_ENTRY_CLASS
 GTK_FORM_WIDGET_ENTRY_GET_CLASS
-<TITLE>GtkFormWidgetEntry</TITLE>
 GtkFormWidgetEntry
+GtkFormWidgetEntryClass
 gtk_form_widget_entry_get_type
 gtk_form_widget_entry_new
 gtk_form_widget_entry_get_value_stringify
@@ -268,16 +365,37 @@ gtk_form_widget_entry_set_value_stringify
 gtk_form_widget_entry_set_editable
 </SECTION>
 
+<SECTION>
+<FILE>widgetradio</FILE>
+<TITLE>GtkFormWidgetRadio</TITLE>
+TYPE_GTK_FORM_WIDGET_RADIO
+GTK_FORM_WIDGET_RADIO
+GTK_FORM_WIDGET_RADIO_CLASS
+IS_GTK_FORM_WIDGET_RADIO
+IS_GTK_FORM_WIDGET_RADIO_CLASS
+GTK_FORM_WIDGET_RADIO_GET_CLASS
+GtkFormWidgetRadio
+GtkFormWidgetRadioClass
+gtk_form_widget_radio_get_type
+gtk_form_widget_radio_new
+gtk_form_widget_radio_get_value_stringify
+gtk_form_widget_radio_set_value_stringify
+gtk_form_widget_radio_set_editable
+gtk_form_widget_radio_set_return_value
+gtk_form_widget_radio_get_return_value
+</SECTION>
+
 <SECTION>
 <FILE>fieldinteger</FILE>
+<TITLE>GtkFormFieldInteger</TITLE>
 TYPE_GTK_FORM_FIELD_INTEGER
 GTK_FORM_FIELD_INTEGER
 GTK_FORM_FIELD_INTEGER_CLASS
 IS_GTK_FORM_FIELD_INTEGER
 IS_GTK_FORM_FIELD_INTEGER_CLASS
 GTK_FORM_FIELD_INTEGER_GET_CLASS
-<TITLE>GtkFormFieldInteger</TITLE>
 GtkFormFieldInteger
+GtkFormFieldIntegerClass
 gtk_form_field_integer_get_type
 gtk_form_field_integer_new
 gtk_form_field_integer_get_value_stringify
@@ -285,6 +403,9 @@ gtk_form_field_integer_get_value
 gtk_form_field_integer_get_value_sql
 gtk_form_field_integer_clear
 gtk_form_field_integer_is_empty
+gtk_form_field_integer_is_changed
+gtk_form_field_integer_set_as_origin
 gtk_form_field_integer_set_from_datamodel
+gtk_form_field_integer_set_from_hashtable
 </SECTION>
 
index fe0d0b1ab0cd2a9abc215edbb01b9ebe3fbb3ce3..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 100644 (file)
@@ -1,3 +0,0 @@
-gtk_form_field_get_gtk_form_widget
-gtk_form_get_field_from_name
-gtk_form_get_widget_from_name
index 48f1965ca3551dd2348d27b20e8c378c7548feeb..7f87570b92ba5bd3b24dee204019b5957e0ded94 100644 (file)
@@ -1,7 +1,7 @@
 8% symbol docs coverage.
-28 symbols documented.
-2 symbols incomplete.
-321 not documented.
+31 symbols documented.
+22 symbols incomplete.
+359 not documented.
 
 
 GTK_FORM
@@ -25,6 +25,9 @@ GTK_FORM_FIELD_TEXT
 GTK_FORM_FIELD_TEXT_CLASS
 GTK_FORM_FIELD_TEXT_GET_CLASS
 GTK_FORM_GET_CLASS
+GTK_FORM_GROUP
+GTK_FORM_GROUP_CLASS
+GTK_FORM_GROUP_GET_CLASS
 GTK_FORM_KEY
 GTK_FORM_KEY_CLASS
 GTK_FORM_KEY_GET_CLASS
@@ -43,6 +46,9 @@ GTK_FORM_WIDGET_GET_CLASS
 GTK_FORM_WIDGET_LABEL
 GTK_FORM_WIDGET_LABEL_CLASS
 GTK_FORM_WIDGET_LABEL_GET_CLASS
+GTK_FORM_WIDGET_RADIO
+GTK_FORM_WIDGET_RADIO_CLASS
+GTK_FORM_WIDGET_RADIO_GET_CLASS
 GTK_FORM_WIDGET_SPIN
 GTK_FORM_WIDGET_SPIN_CLASS
 GTK_FORM_WIDGET_SPIN_GET_CLASS
@@ -50,21 +56,42 @@ GTK_FORM_WIDGET_TEXTVIEW
 GTK_FORM_WIDGET_TEXTVIEW_CLASS
 GTK_FORM_WIDGET_TEXTVIEW_GET_CLASS
 GtkForm
+GtkFormClass (<items>)
 GtkFormField
 GtkFormFieldBoolean
+GtkFormFieldBooleanClass (<items>)
+GtkFormFieldClass (<items>)
 GtkFormFieldDateTime
+GtkFormFieldDateTimeClass (<items>)
 GtkFormFieldFloat
+GtkFormFieldFloatClass (<items>)
 GtkFormFieldInteger
+GtkFormFieldIntegerClass (<items>)
 GtkFormFieldText
+GtkFormFieldTextClass (<items>)
+GtkFormGroup
+GtkFormGroupClass (<items>)
 GtkFormKey
+GtkFormKeyClass (<items>)
 GtkFormSqlType (<items>)
 GtkFormWidget
 GtkFormWidgetCheck
+GtkFormWidgetCheckClass (<items>)
+GtkFormWidgetClass (<items>)
 GtkFormWidgetComboBox
+GtkFormWidgetComboBoxClass (<items>)
 GtkFormWidgetEntry
+GtkFormWidgetEntryClass (<items>)
 GtkFormWidgetLabel
+GtkFormWidgetLabelClass (<items>)
+GtkFormWidgetOnChangeOpType (<items>)
+GtkFormWidgetOnChangeOpUpdateWhen (<items>)
+GtkFormWidgetRadio
+GtkFormWidgetRadioClass (<items>)
 GtkFormWidgetSpin
+GtkFormWidgetSpinClass (<items>)
 GtkFormWidgetTextview
+GtkFormWidgetTextviewClass (<items>)
 IS_GTK_FORM
 IS_GTK_FORM_CLASS
 IS_GTK_FORM_FIELD
@@ -79,6 +106,8 @@ IS_GTK_FORM_FIELD_INTEGER
 IS_GTK_FORM_FIELD_INTEGER_CLASS
 IS_GTK_FORM_FIELD_TEXT
 IS_GTK_FORM_FIELD_TEXT_CLASS
+IS_GTK_FORM_GROUP
+IS_GTK_FORM_GROUP_CLASS
 IS_GTK_FORM_KEY
 IS_GTK_FORM_KEY_CLASS
 IS_GTK_FORM_WIDGET
@@ -91,6 +120,8 @@ IS_GTK_FORM_WIDGET_ENTRY
 IS_GTK_FORM_WIDGET_ENTRY_CLASS
 IS_GTK_FORM_WIDGET_LABEL
 IS_GTK_FORM_WIDGET_LABEL_CLASS
+IS_GTK_FORM_WIDGET_RADIO
+IS_GTK_FORM_WIDGET_RADIO_CLASS
 IS_GTK_FORM_WIDGET_SPIN
 IS_GTK_FORM_WIDGET_SPIN_CLASS
 IS_GTK_FORM_WIDGET_TEXTVIEW
@@ -102,12 +133,14 @@ TYPE_GTK_FORM_FIELD_DATETIME
 TYPE_GTK_FORM_FIELD_FLOAT
 TYPE_GTK_FORM_FIELD_INTEGER
 TYPE_GTK_FORM_FIELD_TEXT
+TYPE_GTK_FORM_GROUP
 TYPE_GTK_FORM_KEY
 TYPE_GTK_FORM_WIDGET
 TYPE_GTK_FORM_WIDGET_CHECK
 TYPE_GTK_FORM_WIDGET_COMBO_BOX
 TYPE_GTK_FORM_WIDGET_ENTRY
 TYPE_GTK_FORM_WIDGET_LABEL
+TYPE_GTK_FORM_WIDGET_RADIO
 TYPE_GTK_FORM_WIDGET_SPIN
 TYPE_GTK_FORM_WIDGET_TEXTVIEW
 gtk_form_add_field
@@ -125,7 +158,7 @@ gtk_form_field_boolean_new
 gtk_form_field_boolean_set_as_origin
 gtk_form_field_boolean_set_from_datamodel
 gtk_form_field_boolean_set_from_hashtable
-gtk_form_field_boolean_str_to_boolean (value)
+gtk_form_field_boolean_str_to_boolean (value, value)
 gtk_form_field_clear
 gtk_form_field_datetime_clear
 gtk_form_field_datetime_get_gdate_from_tm
@@ -156,7 +189,7 @@ gtk_form_field_float_set_as_origin
 gtk_form_field_float_set_from_datamodel
 gtk_form_field_float_set_from_hashtable
 gtk_form_field_get_field_name
-gtk_form_field_get_gtk_form_widget
+gtk_form_field_get_form_widget (Returns)
 gtk_form_field_get_type
 gtk_form_field_get_value
 gtk_form_field_get_value_sql
@@ -196,7 +229,6 @@ gtk_form_filed_boolean_is_changed
 gtk_form_fill_from_datamodel
 gtk_form_fill_from_hashtable
 gtk_form_fill_from_table
-gtk_form_get_field_from_name
 gtk_form_get_form_field_from_name
 gtk_form_get_form_field_from_widget
 gtk_form_get_form_field_value_by_name
@@ -218,11 +250,12 @@ gtk_form_get_type
 gtk_form_get_values_as_hashtable
 gtk_form_get_widget_from_form_field_name
 gtk_form_get_widget_from_form_widget_name
-gtk_form_get_widget_from_name
+gtk_form_get_widgets
 gtk_form_group_add_field
 gtk_form_group_add_widget
 gtk_form_group_clear
 gtk_form_group_get_name
+gtk_form_group_get_type
 gtk_form_group_new
 gtk_form_group_set_from_datamodel
 gtk_form_group_set_from_hashtable
@@ -242,6 +275,7 @@ gtk_form_new_from_file
 gtk_form_new_from_xml
 gtk_form_remove_field
 gtk_form_set_editable
+gtk_form_set_form_widget_visible_by_name
 gtk_form_set_form_widgets_visible_by_name
 gtk_form_set_key
 gtk_form_set_sensitive
@@ -277,6 +311,7 @@ gtk_form_widget_label_new
 gtk_form_widget_label_set_value_stringify
 gtk_form_widget_new
 gtk_form_widget_radio_get_return_value
+gtk_form_widget_radio_get_type
 gtk_form_widget_radio_get_value_stringify
 gtk_form_widget_radio_new
 gtk_form_widget_radio_set_editable
@@ -312,6 +347,8 @@ fieldtext:Long_Description
 fieldtext:Short_Description
 form:Long_Description
 form:Short_Description
+group:Long_Description
+group:Short_Description
 key:Long_Description
 key:Short_Description
 widget:Long_Description
@@ -324,6 +361,8 @@ widgetentry:Long_Description
 widgetentry:Short_Description
 widgetlabel:Long_Description
 widgetlabel:Short_Description
+widgetradio:Long_Description
+widgetradio:Short_Description
 widgetspin:Long_Description
 widgetspin:Short_Description
 widgettextview:Long_Description
index 7755fe5e23baac7157ea94b3c37444e05aec6c10..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 100644 (file)
@@ -1,99 +0,0 @@
-GTK_FORM_GROUP
-GTK_FORM_GROUP_CLASS
-GTK_FORM_GROUP_GET_CLASS
-GTK_FORM_WIDGET_RADIO
-GTK_FORM_WIDGET_RADIO_CLASS
-GTK_FORM_WIDGET_RADIO_GET_CLASS
-GtkFormGroup
-GtkFormGroupClass
-GtkFormWidgetOnChangeOpType
-GtkFormWidgetOnChangeOpUpdateWhen
-GtkFormWidgetRadio
-GtkFormWidgetRadioClass
-IS_GTK_FORM_GROUP
-IS_GTK_FORM_GROUP_CLASS
-IS_GTK_FORM_WIDGET_RADIO
-IS_GTK_FORM_WIDGET_RADIO_CLASS
-TYPE_GTK_FORM_GROUP
-TYPE_GTK_FORM_WIDGET_RADIO
-gtk_form_add_group
-gtk_form_field_boolean_set_as_origin
-gtk_form_field_boolean_set_from_hashtable
-gtk_form_field_boolean_str_to_boolean
-gtk_form_field_datetime_get_gdate_from_tm
-gtk_form_field_datetime_get_now
-gtk_form_field_datetime_get_str_from_tm
-gtk_form_field_datetime_get_tm_from_str
-gtk_form_field_datetime_is_changed
-gtk_form_field_datetime_set_as_origin
-gtk_form_field_datetime_set_from_hashtable
-gtk_form_field_float_is_changed
-gtk_form_field_float_set_as_origin
-gtk_form_field_float_set_from_hashtable
-gtk_form_field_get_form_widget
-gtk_form_field_integer_is_changed
-gtk_form_field_integer_set_as_origin
-gtk_form_field_integer_set_from_hashtable
-gtk_form_field_is_auto_increment
-gtk_form_field_is_changed
-gtk_form_field_is_to_load
-gtk_form_field_is_to_save
-gtk_form_field_set_as_origin
-gtk_form_field_set_from_hashtable
-gtk_form_field_text_is_changed
-gtk_form_field_text_set_as_origin
-gtk_form_field_text_set_from_hashtable
-gtk_form_filed_boolean_is_changed
-gtk_form_fill_from_hashtable
-gtk_form_fill_from_table
-gtk_form_get_form_field_from_name
-gtk_form_get_form_field_from_widget
-gtk_form_get_form_field_value_by_name
-gtk_form_get_form_field_value_sql_by_name
-gtk_form_get_form_field_value_stringify_by_name
-gtk_form_get_form_widget_from_name
-gtk_form_get_form_widget_from_widget
-gtk_form_get_form_widget_value_by_name
-gtk_form_get_form_widget_value_sql_by_name
-gtk_form_get_form_widget_value_stringify_by_name
-gtk_form_get_group_by_name
-gtk_form_get_gtkbuilder
-gtk_form_get_key
-gtk_form_get_objects_by_name
-gtk_form_get_table
-gtk_form_get_values_as_hashtable
-gtk_form_get_widget_from_form_field_name
-gtk_form_get_widget_from_form_widget_name
-gtk_form_get_widgets
-gtk_form_group_add_field
-gtk_form_group_add_widget
-gtk_form_group_clear
-gtk_form_group_get_name
-gtk_form_group_get_type
-gtk_form_group_new
-gtk_form_group_set_from_datamodel
-gtk_form_group_set_from_hashtable
-gtk_form_is_changed
-gtk_form_load_from_file
-gtk_form_load_from_xml
-gtk_form_new_from_file
-gtk_form_new_from_xml
-gtk_form_set_as_origin
-gtk_form_set_form_widget_visible_by_name
-gtk_form_set_key
-gtk_form_set_sensitive_by_name
-gtk_form_set_table
-gtk_form_set_visible_by_name
-gtk_form_widget_add_on_change_op
-gtk_form_widget_combo_box_fill_from_datamodel
-gtk_form_widget_combo_box_fill_from_sql
-gtk_form_widget_get_label
-gtk_form_widget_radio_get_return_value
-gtk_form_widget_radio_get_type
-gtk_form_widget_radio_get_value_stringify
-gtk_form_widget_radio_new
-gtk_form_widget_radio_set_editable
-gtk_form_widget_radio_set_return_value
-gtk_form_widget_radio_set_value_stringify
-gtk_form_widget_set_label
-gtk_form_widget_set_visible
index fa1ddc6f9d078818e8bba8bba29e581f03dc7f42..091277fc1878328c734fc50217c0327302ab84a1 100644 (file)
@@ -42,7 +42,7 @@
 <NAME>GtkFormField::auto-increment</NAME>
 <TYPE>gboolean</TYPE>
 <RANGE></RANGE>
-<FLAGS>rw</FLAGS>
+<FLAGS>rwx</FLAGS>
 <NICK>Auto increment</NICK>
 <BLURB>Whether the field auto increments (works only on  numeric fields).</BLURB>
 <DEFAULT>FALSE</DEFAULT>
@@ -72,7 +72,7 @@
 <NAME>GtkFormField::obligatory</NAME>
 <TYPE>gboolean</TYPE>
 <RANGE></RANGE>
-<FLAGS>rw</FLAGS>
+<FLAGS>rwx</FLAGS>
 <NICK>Obligatory</NICK>
 <BLURB>Whether the field could be empty.</BLURB>
 <DEFAULT>FALSE</DEFAULT>
 <DEFAULT>TRUE</DEFAULT>
 </ARG>
 
+<ARG>
+<NAME>GtkFormField::trim</NAME>
+<TYPE>gboolean</TYPE>
+<RANGE></RANGE>
+<FLAGS>rwx</FLAGS>
+<NICK>Trim stringify value</NICK>
+<BLURB>Whether to trim the field's stringify value.</BLURB>
+<DEFAULT>FALSE</DEFAULT>
+</ARG>
+
 <ARG>
 <NAME>GtkFormFieldBoolean::default</NAME>
 <TYPE>gboolean</TYPE>
 <DEFAULT>0</DEFAULT>
 </ARG>
 
+<ARG>
+<NAME>GtkFormGroup::name</NAME>
+<TYPE>gchar*</TYPE>
+<RANGE></RANGE>
+<FLAGS>rw</FLAGS>
+<NICK>Group's name'</NICK>
+<BLURB>Group's name.</BLURB>
+<DEFAULT>""</DEFAULT>
+</ARG>
+
index 75f08f899514aaaa7068cd6937ec4abdefeb2595..ec3e4ce089c007a0df51480237729eb1802cbfd7 100644 (file)
@@ -15,6 +15,7 @@ GObject
     GtkFormWidgetSpin
     GtkFormWidgetTextview
     GtkFormWidgetComboBox
+  GtkFormGroup
   GInitiallyUnowned
     GtkObject
       GtkWidget
index 9d91c418f589277c532ed0e56135e4f728fe4110..257bf85832636cde8b28f9c746a47f0dc930c120 100644 (file)
@@ -14,4 +14,4 @@ gtk_form_widget_radio_get_type
 gtk_form_widget_spin_get_type
 gtk_form_widget_textview_get_type
 gtk_form_widget_combo_box_get_type
-
+gtk_form_group_get_type
index 4a092f7353c09a3d7fab8249ba0d0c3237dde617..4781c998cc4a20ce333dfe58c43cbc4134205311 100644 (file)
@@ -103,6 +103,27 @@ FormField
 
 </para>
 
+<!-- ##### ARG GtkFormField:trim ##### -->
+<para>
+
+</para>
+
+<!-- ##### STRUCT GtkFormFieldClass ##### -->
+<para>
+
+</para>
+
+@parent_class: 
+@get_value_stringify: 
+@get_value: 
+@get_value_sql: 
+@clear: 
+@is_empty: 
+@is_changed: 
+@set_as_origin: 
+@set_from_datamodel: 
+@set_from_hashtable: 
+
 <!-- ##### FUNCTION gtk_form_field_get_type ##### -->
 <para>
 
@@ -139,6 +160,15 @@ FormField
 @Returns: 
 
 
+<!-- ##### FUNCTION gtk_form_field_get_form_widget ##### -->
+<para>
+
+</para>
+
+@field: 
+@Returns: 
+
+
 <!-- ##### FUNCTION gtk_form_field_get_value_stringify ##### -->
 <para>
 
@@ -175,6 +205,33 @@ FormField
 @Returns: 
 
 
+<!-- ##### FUNCTION gtk_form_field_is_to_load ##### -->
+<para>
+
+</para>
+
+@field: 
+@Returns: 
+
+
+<!-- ##### FUNCTION gtk_form_field_is_to_save ##### -->
+<para>
+
+</para>
+
+@field: 
+@Returns: 
+
+
+<!-- ##### FUNCTION gtk_form_field_is_auto_increment ##### -->
+<para>
+
+</para>
+
+@field: 
+@Returns: 
+
+
 <!-- ##### FUNCTION gtk_form_field_is_empty ##### -->
 <para>
 
@@ -184,6 +241,23 @@ FormField
 @Returns: 
 
 
+<!-- ##### FUNCTION gtk_form_field_is_changed ##### -->
+<para>
+
+</para>
+
+@field: 
+@Returns: 
+
+
+<!-- ##### FUNCTION gtk_form_field_set_as_origin ##### -->
+<para>
+
+</para>
+
+@field: 
+
+
 <!-- ##### FUNCTION gtk_form_field_set_from_datamodel ##### -->
 <para>
 
@@ -195,3 +269,13 @@ FormField
 @Returns: 
 
 
+<!-- ##### FUNCTION gtk_form_field_set_from_hashtable ##### -->
+<para>
+
+</para>
+
+@field: 
+@hashtable: 
+@Returns: 
+
+
index 5174f1e13c4afb8d6630aa089038f91185962371..fe57b94fa2e9d66096a6111b235e01bc6b582474 100644 (file)
@@ -78,6 +78,13 @@ FormFieldBoolean
 
 </para>
 
+<!-- ##### STRUCT GtkFormFieldBooleanClass ##### -->
+<para>
+
+</para>
+
+@parent_class: 
+
 <!-- ##### FUNCTION gtk_form_field_boolean_get_type ##### -->
 <para>
 
@@ -141,6 +148,23 @@ FormFieldBoolean
 @Returns: 
 
 
+<!-- ##### FUNCTION gtk_form_filed_boolean_is_changed ##### -->
+<para>
+
+</para>
+
+@field: 
+@Returns: 
+
+
+<!-- ##### FUNCTION gtk_form_field_boolean_set_as_origin ##### -->
+<para>
+
+</para>
+
+@field: 
+
+
 <!-- ##### FUNCTION gtk_form_field_boolean_set_from_datamodel ##### -->
 <para>
 
@@ -152,3 +176,22 @@ FormFieldBoolean
 @Returns: 
 
 
+<!-- ##### FUNCTION gtk_form_field_boolean_set_from_hashtable ##### -->
+<para>
+
+</para>
+
+@field: 
+@hashtable: 
+@Returns: 
+
+
+<!-- ##### FUNCTION gtk_form_field_boolean_str_to_boolean ##### -->
+<para>
+
+</para>
+
+@value: 
+@Returns: 
+
+
index b2cf491fd8b21646cf75504fe6c55cdac4d116b4..50c85af430ec2824d52c93a9bdc1bcf2e57391e4 100644 (file)
@@ -88,6 +88,13 @@ FormFieldDateTime
 
 </para>
 
+<!-- ##### STRUCT GtkFormFieldDateTimeClass ##### -->
+<para>
+
+</para>
+
+@parent_class: 
+
 <!-- ##### FUNCTION gtk_form_field_datetime_get_type ##### -->
 <para>
 
@@ -151,6 +158,23 @@ FormFieldDateTime
 @Returns: 
 
 
+<!-- ##### FUNCTION gtk_form_field_datetime_is_changed ##### -->
+<para>
+
+</para>
+
+@field: 
+@Returns: 
+
+
+<!-- ##### FUNCTION gtk_form_field_datetime_set_as_origin ##### -->
+<para>
+
+</para>
+
+@field: 
+
+
 <!-- ##### FUNCTION gtk_form_field_datetime_set_from_datamodel ##### -->
 <para>
 
@@ -162,3 +186,51 @@ FormFieldDateTime
 @Returns: 
 
 
+<!-- ##### FUNCTION gtk_form_field_datetime_set_from_hashtable ##### -->
+<para>
+
+</para>
+
+@field: 
+@hashtable: 
+@Returns: 
+
+
+<!-- ##### FUNCTION gtk_form_field_datetime_get_tm_from_str ##### -->
+<para>
+
+</para>
+
+@str: 
+@format: 
+@Returns: 
+
+
+<!-- ##### FUNCTION gtk_form_field_datetime_get_str_from_tm ##### -->
+<para>
+
+</para>
+
+@datetime: 
+@format: 
+@Returns: 
+
+
+<!-- ##### FUNCTION gtk_form_field_datetime_get_gdate_from_tm ##### -->
+<para>
+
+</para>
+
+@datetime: 
+@Returns: 
+
+
+<!-- ##### FUNCTION gtk_form_field_datetime_get_now ##### -->
+<para>
+
+</para>
+
+@void: 
+@Returns: 
+
+
index cd6491709d27443822e9cc92ca227fbd3c16bf28..3cb9b974a2db91e24bc4d7d3cc34dd171650fc0e 100644 (file)
@@ -78,6 +78,13 @@ FormFieldFloat
 
 </para>
 
+<!-- ##### STRUCT GtkFormFieldFloatClass ##### -->
+<para>
+
+</para>
+
+@parent_class: 
+
 <!-- ##### FUNCTION gtk_form_field_float_get_type ##### -->
 <para>
 
@@ -141,6 +148,23 @@ FormFieldFloat
 @Returns: 
 
 
+<!-- ##### FUNCTION gtk_form_field_float_is_changed ##### -->
+<para>
+
+</para>
+
+@field: 
+@Returns: 
+
+
+<!-- ##### FUNCTION gtk_form_field_float_set_as_origin ##### -->
+<para>
+
+</para>
+
+@field: 
+
+
 <!-- ##### FUNCTION gtk_form_field_float_set_from_datamodel ##### -->
 <para>
 
@@ -152,3 +176,13 @@ FormFieldFloat
 @Returns: 
 
 
+<!-- ##### FUNCTION gtk_form_field_float_set_from_hashtable ##### -->
+<para>
+
+</para>
+
+@field: 
+@hashtable: 
+@Returns: 
+
+
index 09103e574d70ce65999435fea0c7ceefff9ec5ce..9a3e2b127682e6cbbba19f550982b4f4eecbb72d 100644 (file)
@@ -78,6 +78,13 @@ FormFieldInteger
 
 </para>
 
+<!-- ##### STRUCT GtkFormFieldIntegerClass ##### -->
+<para>
+
+</para>
+
+@parent_class: 
+
 <!-- ##### FUNCTION gtk_form_field_integer_get_type ##### -->
 <para>
 
@@ -141,6 +148,23 @@ FormFieldInteger
 @Returns: 
 
 
+<!-- ##### FUNCTION gtk_form_field_integer_is_changed ##### -->
+<para>
+
+</para>
+
+@field: 
+@Returns: 
+
+
+<!-- ##### FUNCTION gtk_form_field_integer_set_as_origin ##### -->
+<para>
+
+</para>
+
+@field: 
+
+
 <!-- ##### FUNCTION gtk_form_field_integer_set_from_datamodel ##### -->
 <para>
 
@@ -152,3 +176,13 @@ FormFieldInteger
 @Returns: 
 
 
+<!-- ##### FUNCTION gtk_form_field_integer_set_from_hashtable ##### -->
+<para>
+
+</para>
+
+@field: 
+@hashtable: 
+@Returns: 
+
+
index 6b0033a9a215e8c73fa2d30e612cd3a9a0d8f65f..afa7620b15c3574025fb316706cb9f1b458410c1 100644 (file)
@@ -78,6 +78,13 @@ FormFieldText
 
 </para>
 
+<!-- ##### STRUCT GtkFormFieldTextClass ##### -->
+<para>
+
+</para>
+
+@parent_class: 
+
 <!-- ##### FUNCTION gtk_form_field_text_get_type ##### -->
 <para>
 
@@ -141,6 +148,23 @@ FormFieldText
 @Returns: 
 
 
+<!-- ##### FUNCTION gtk_form_field_text_is_changed ##### -->
+<para>
+
+</para>
+
+@field: 
+@Returns: 
+
+
+<!-- ##### FUNCTION gtk_form_field_text_set_as_origin ##### -->
+<para>
+
+</para>
+
+@field: 
+
+
 <!-- ##### FUNCTION gtk_form_field_text_set_from_datamodel ##### -->
 <para>
 
@@ -152,3 +176,13 @@ FormFieldText
 @Returns: 
 
 
+<!-- ##### FUNCTION gtk_form_field_text_set_from_hashtable ##### -->
+<para>
+
+</para>
+
+@field: 
+@hashtable: 
+@Returns: 
+
+
index 55712cbaf6f75055e08307eccf823fc484603059..576eed68f45b23829e5656f15ffd4909201aee02 100644 (file)
@@ -93,6 +93,13 @@ Form
 
 </para>
 
+<!-- ##### STRUCT GtkFormClass ##### -->
+<para>
+
+</para>
+
+@parent_class: 
+
 <!-- ##### FUNCTION gtk_form_get_type ##### -->
 <para>
 
@@ -111,6 +118,93 @@ Form
 @Returns: 
 
 
+<!-- ##### FUNCTION gtk_form_new_from_xml ##### -->
+<para>
+
+</para>
+
+@xmldoc: 
+@gtkbuilder: 
+@Returns: 
+
+
+<!-- ##### FUNCTION gtk_form_new_from_file ##### -->
+<para>
+
+</para>
+
+@filename: 
+@gtkbuilder: 
+@Returns: 
+
+
+<!-- ##### FUNCTION gtk_form_load_from_xml ##### -->
+<para>
+
+</para>
+
+@form: 
+@xmldoc: 
+@gtkbuilder: 
+@Returns: 
+
+
+<!-- ##### FUNCTION gtk_form_load_from_file ##### -->
+<para>
+
+</para>
+
+@form: 
+@filename: 
+@gtkbuilder: 
+@Returns: 
+
+
+<!-- ##### FUNCTION gtk_form_get_gtkbuilder ##### -->
+<para>
+
+</para>
+
+@form: 
+@Returns: 
+
+
+<!-- ##### FUNCTION gtk_form_get_table ##### -->
+<para>
+
+</para>
+
+@form: 
+@Returns: 
+
+
+<!-- ##### FUNCTION gtk_form_set_table ##### -->
+<para>
+
+</para>
+
+@form: 
+@table: 
+
+
+<!-- ##### FUNCTION gtk_form_get_key ##### -->
+<para>
+
+</para>
+
+@form: 
+@Returns: 
+
+
+<!-- ##### FUNCTION gtk_form_set_key ##### -->
+<para>
+
+</para>
+
+@form: 
+@key: 
+
+
 <!-- ##### FUNCTION gtk_form_add_field ##### -->
 <para>
 
@@ -141,6 +235,85 @@ Form
 @Returns: 
 
 
+<!-- ##### FUNCTION gtk_form_get_form_field_from_name ##### -->
+<para>
+
+</para>
+
+@form: 
+@field_name: 
+@Returns: 
+
+
+<!-- ##### FUNCTION gtk_form_get_form_widget_from_name ##### -->
+<para>
+
+</para>
+
+@form: 
+@widget_name: 
+@Returns: 
+
+
+<!-- ##### FUNCTION gtk_form_get_widget_from_form_field_name ##### -->
+<para>
+
+</para>
+
+@form: 
+@field_name: 
+@Returns: 
+
+
+<!-- ##### FUNCTION gtk_form_get_widget_from_form_widget_name ##### -->
+<para>
+
+</para>
+
+@form: 
+@widget_name: 
+@Returns: 
+
+
+<!-- ##### FUNCTION gtk_form_get_form_field_from_widget ##### -->
+<para>
+
+</para>
+
+@form: 
+@widget: 
+@Returns: 
+
+
+<!-- ##### FUNCTION gtk_form_get_form_widget_from_widget ##### -->
+<para>
+
+</para>
+
+@form: 
+@widget: 
+@Returns: 
+
+
+<!-- ##### FUNCTION gtk_form_get_widgets ##### -->
+<para>
+
+</para>
+
+@form: 
+@Returns: 
+
+
+<!-- ##### FUNCTION gtk_form_get_objects_by_name ##### -->
+<para>
+
+</para>
+
+@form: 
+@Varargs: 
+@Returns: 
+
+
 <!-- ##### FUNCTION gtk_form_clear ##### -->
 <para>
 
@@ -164,6 +337,23 @@ Form
 @Returns: 
 
 
+<!-- ##### FUNCTION gtk_form_is_changed ##### -->
+<para>
+
+</para>
+
+@form: 
+@Returns: 
+
+
+<!-- ##### FUNCTION gtk_form_set_as_origin ##### -->
+<para>
+
+</para>
+
+@form: 
+
+
 <!-- ##### FUNCTION gtk_form_set_sensitive ##### -->
 <para>
 
@@ -173,6 +363,16 @@ Form
 @sensitive: 
 
 
+<!-- ##### FUNCTION gtk_form_set_sensitive_by_name ##### -->
+<para>
+
+</para>
+
+@form: 
+@sensitive: 
+@Varargs: 
+
+
 <!-- ##### FUNCTION gtk_form_set_editable ##### -->
 <para>
 
@@ -182,6 +382,86 @@ Form
 @editable: 
 
 
+<!-- ##### FUNCTION gtk_form_set_visible_by_name ##### -->
+<para>
+
+</para>
+
+@form: 
+@visible: 
+@Varargs: 
+
+
+<!-- ##### FUNCTION gtk_form_set_form_widget_visible_by_name ##### -->
+<para>
+
+</para>
+
+@form: 
+@visible: 
+@Varargs: 
+
+
+<!-- ##### FUNCTION gtk_form_get_form_field_value_by_name ##### -->
+<para>
+
+</para>
+
+@form: 
+@field_name: 
+@Returns: 
+
+
+<!-- ##### FUNCTION gtk_form_get_form_widget_value_by_name ##### -->
+<para>
+
+</para>
+
+@form: 
+@widget_name: 
+@Returns: 
+
+
+<!-- ##### FUNCTION gtk_form_get_form_field_value_stringify_by_name ##### -->
+<para>
+
+</para>
+
+@form: 
+@field_name: 
+@Returns: 
+
+
+<!-- ##### FUNCTION gtk_form_get_form_widget_value_stringify_by_name ##### -->
+<para>
+
+</para>
+
+@form: 
+@widget_name: 
+@Returns: 
+
+
+<!-- ##### FUNCTION gtk_form_get_form_field_value_sql_by_name ##### -->
+<para>
+
+</para>
+
+@form: 
+@field_name: 
+@Returns: 
+
+
+<!-- ##### FUNCTION gtk_form_get_form_widget_value_sql_by_name ##### -->
+<para>
+
+</para>
+
+@form: 
+@widget_name: 
+@Returns: 
+
+
 <!-- ##### ENUM GtkFormSqlType ##### -->
 <para>
 
@@ -213,3 +493,51 @@ Form
 @Returns: 
 
 
+<!-- ##### FUNCTION gtk_form_fill_from_table ##### -->
+<para>
+
+</para>
+
+@form: 
+@Returns: 
+
+
+<!-- ##### FUNCTION gtk_form_get_values_as_hashtable ##### -->
+<para>
+
+</para>
+
+@form: 
+@Returns: 
+
+
+<!-- ##### FUNCTION gtk_form_fill_from_hashtable ##### -->
+<para>
+
+</para>
+
+@form: 
+@hashtable: 
+@Returns: 
+
+
+<!-- ##### FUNCTION gtk_form_add_group ##### -->
+<para>
+
+</para>
+
+@form: 
+@group: 
+@Returns: 
+
+
+<!-- ##### FUNCTION gtk_form_get_group_by_name ##### -->
+<para>
+
+</para>
+
+@form: 
+@group_name: 
+@Returns: 
+
+
diff --git a/docs/reference/tmpl/group.sgml b/docs/reference/tmpl/group.sgml
new file mode 100644 (file)
index 0000000..bf5db6b
--- /dev/null
@@ -0,0 +1,164 @@
+<!-- ##### SECTION Title ##### -->
+GtkFormGroup
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### MACRO TYPE_GTK_FORM_GROUP ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### MACRO GTK_FORM_GROUP ##### -->
+<para>
+
+</para>
+
+@obj: 
+
+
+<!-- ##### MACRO GTK_FORM_GROUP_CLASS ##### -->
+<para>
+
+</para>
+
+@klass: 
+
+
+<!-- ##### MACRO IS_GTK_FORM_GROUP ##### -->
+<para>
+
+</para>
+
+@obj: 
+
+
+<!-- ##### MACRO IS_GTK_FORM_GROUP_CLASS ##### -->
+<para>
+
+</para>
+
+@klass: 
+
+
+<!-- ##### MACRO GTK_FORM_GROUP_GET_CLASS ##### -->
+<para>
+
+</para>
+
+@obj: 
+
+
+<!-- ##### STRUCT GtkFormGroup ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### ARG GtkFormGroup:name ##### -->
+<para>
+
+</para>
+
+<!-- ##### STRUCT GtkFormGroupClass ##### -->
+<para>
+
+</para>
+
+@parent_class: 
+
+<!-- ##### FUNCTION gtk_form_group_get_type ##### -->
+<para>
+
+</para>
+
+@void: 
+@Returns: 
+
+
+<!-- ##### FUNCTION gtk_form_group_new ##### -->
+<para>
+
+</para>
+
+@name: 
+@Returns: 
+
+
+<!-- ##### FUNCTION gtk_form_group_get_name ##### -->
+<para>
+
+</para>
+
+@group: 
+@Returns: 
+
+
+<!-- ##### FUNCTION gtk_form_group_add_widget ##### -->
+<para>
+
+</para>
+
+@group: 
+@fwidget: 
+@Returns: 
+
+
+<!-- ##### FUNCTION gtk_form_group_add_field ##### -->
+<para>
+
+</para>
+
+@group: 
+@field: 
+@Returns: 
+
+
+<!-- ##### FUNCTION gtk_form_group_clear ##### -->
+<para>
+
+</para>
+
+@group: 
+@Returns: 
+
+
+<!-- ##### FUNCTION gtk_form_group_set_from_datamodel ##### -->
+<para>
+
+</para>
+
+@group: 
+@dm: 
+@row: 
+@Returns: 
+
+
+<!-- ##### FUNCTION gtk_form_group_set_from_hashtable ##### -->
+<para>
+
+</para>
+
+@group: 
+@hashtable: 
+@Returns: 
+
+
index 26472d6ff1989a7b8a9f7ab86a417860ad27a29c..e6596e86cf1e54c403d687165916ed655da62d87 100644 (file)
@@ -73,6 +73,13 @@ FormKey
 </para>
 
 
+<!-- ##### STRUCT GtkFormKeyClass ##### -->
+<para>
+
+</para>
+
+@parent_class: 
+
 <!-- ##### FUNCTION gtk_form_key_get_type ##### -->
 <para>
 
index 53f816917bb4aaf4ff13426238fe77a7b7afd022..3d6e1718db7613723c3a8f2e85a33d1cdec0f9f5 100644 (file)
@@ -98,6 +98,16 @@ FormWidget
 
 </para>
 
+<!-- ##### STRUCT GtkFormWidgetClass ##### -->
+<para>
+
+</para>
+
+@parent_class: 
+@get_value_stringify: 
+@set_value_stringify: 
+@set_editable: 
+
 <!-- ##### FUNCTION gtk_form_widget_get_type ##### -->
 <para>
 
@@ -145,6 +155,24 @@ FormWidget
 @Returns: 
 
 
+<!-- ##### FUNCTION gtk_form_widget_get_label ##### -->
+<para>
+
+</para>
+
+@fwidget: 
+@Returns: 
+
+
+<!-- ##### FUNCTION gtk_form_widget_set_label ##### -->
+<para>
+
+</para>
+
+@fwidget: 
+@label: 
+
+
 <!-- ##### FUNCTION gtk_form_widget_get_value_stringify ##### -->
 <para>
 
@@ -173,3 +201,37 @@ FormWidget
 @editable: 
 
 
+<!-- ##### FUNCTION gtk_form_widget_set_visible ##### -->
+<para>
+
+</para>
+
+@fwidget: 
+@visible: 
+
+
+<!-- ##### ENUM GtkFormWidgetOnChangeOpType ##### -->
+<para>
+
+</para>
+
+@GTK_FORM_WIDGET_ON_CHANGE_OP_UPDATE: 
+
+<!-- ##### ENUM GtkFormWidgetOnChangeOpUpdateWhen ##### -->
+<para>
+
+</para>
+
+@GTK_FORM_WIDGET_ON_CHANGE_OP_UPDATE_BEFORE: 
+@GTK_FORM_WIDGET_ON_CHANGE_OP_UPDATE_AFTER: 
+@GTK_FORM_WIDGET_ON_CHANGE_OP_UPDATE_BOTH: 
+
+<!-- ##### FUNCTION gtk_form_widget_add_on_change_op ##### -->
+<para>
+
+</para>
+
+@fwidget: 
+@op: 
+
+
index 9fc8b12e3c2c6d8856029b2c13d381650b278eb5..e7d4ad6096eeb86cbdb73469605976ebf921ddbc 100644 (file)
@@ -73,6 +73,13 @@ FormWidgetCheck
 </para>
 
 
+<!-- ##### STRUCT GtkFormWidgetCheckClass ##### -->
+<para>
+
+</para>
+
+@parent_class: 
+
 <!-- ##### FUNCTION gtk_form_widget_check_get_type ##### -->
 <para>
 
index 6a3e4915d995f134127a51f0c4eba224121fb9f5..5c14f3e40b747e3b3a2919df4f64861e2ed6c6ea 100644 (file)
@@ -78,6 +78,13 @@ GtkFormWidgetComboBox
 
 </para>
 
+<!-- ##### STRUCT GtkFormWidgetComboBoxClass ##### -->
+<para>
+
+</para>
+
+@parent_class: 
+
 <!-- ##### FUNCTION gtk_form_widget_combo_box_get_type ##### -->
 <para>
 
@@ -124,3 +131,24 @@ GtkFormWidgetComboBox
 @editable: 
 
 
+<!-- ##### FUNCTION gtk_form_widget_combo_box_fill_from_datamodel ##### -->
+<para>
+
+</para>
+
+@fwidget: 
+@dm: 
+@with_empty_entry: 
+
+
+<!-- ##### FUNCTION gtk_form_widget_combo_box_fill_from_sql ##### -->
+<para>
+
+</para>
+
+@fwidget: 
+@gdaex: 
+@sql: 
+@with_empty_entry: 
+
+
index ec2fd503bcb78955f164c78335ed3a7904992359..d1cdde8a80450165b3944012430f74f18b8a53d1 100644 (file)
@@ -73,6 +73,13 @@ FormWidgetEntry
 </para>
 
 
+<!-- ##### STRUCT GtkFormWidgetEntryClass ##### -->
+<para>
+
+</para>
+
+@parent_class: 
+
 <!-- ##### FUNCTION gtk_form_widget_entry_get_type ##### -->
 <para>
 
index ad1ee83186cde0dae6878110bfa671eb186a0d7b..abcd3714bf1d2a9a3d4bc0a05405674e05d5d42d 100644 (file)
@@ -73,6 +73,13 @@ FormWidgetLabel
 </para>
 
 
+<!-- ##### STRUCT GtkFormWidgetLabelClass ##### -->
+<para>
+
+</para>
+
+@parent_class: 
+
 <!-- ##### FUNCTION gtk_form_widget_label_get_type ##### -->
 <para>
 
diff --git a/docs/reference/tmpl/widgetradio.sgml b/docs/reference/tmpl/widgetradio.sgml
new file mode 100644 (file)
index 0000000..557661c
--- /dev/null
@@ -0,0 +1,151 @@
+<!-- ##### SECTION Title ##### -->
+GtkFormWidgetRadio
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### SECTION Image ##### -->
+
+
+<!-- ##### MACRO TYPE_GTK_FORM_WIDGET_RADIO ##### -->
+<para>
+
+</para>
+
+
+
+<!-- ##### MACRO GTK_FORM_WIDGET_RADIO ##### -->
+<para>
+
+</para>
+
+@obj: 
+
+
+<!-- ##### MACRO GTK_FORM_WIDGET_RADIO_CLASS ##### -->
+<para>
+
+</para>
+
+@klass: 
+
+
+<!-- ##### MACRO IS_GTK_FORM_WIDGET_RADIO ##### -->
+<para>
+
+</para>
+
+@obj: 
+
+
+<!-- ##### MACRO IS_GTK_FORM_WIDGET_RADIO_CLASS ##### -->
+<para>
+
+</para>
+
+@klass: 
+
+
+<!-- ##### MACRO GTK_FORM_WIDGET_RADIO_GET_CLASS ##### -->
+<para>
+
+</para>
+
+@obj: 
+
+
+<!-- ##### STRUCT GtkFormWidgetRadio ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### ARG GtkFormWidgetRadio:return-value ##### -->
+<para>
+
+</para>
+
+<!-- ##### STRUCT GtkFormWidgetRadioClass ##### -->
+<para>
+
+</para>
+
+@parent_class: 
+
+<!-- ##### FUNCTION gtk_form_widget_radio_get_type ##### -->
+<para>
+
+</para>
+
+@void: 
+@Returns: 
+
+
+<!-- ##### FUNCTION gtk_form_widget_radio_new ##### -->
+<para>
+
+</para>
+
+@void: 
+@Returns: 
+
+
+<!-- ##### FUNCTION gtk_form_widget_radio_get_value_stringify ##### -->
+<para>
+
+</para>
+
+@widget: 
+@Returns: 
+
+
+<!-- ##### FUNCTION gtk_form_widget_radio_set_value_stringify ##### -->
+<para>
+
+</para>
+
+@fwidget: 
+@value: 
+@Returns: 
+
+
+<!-- ##### FUNCTION gtk_form_widget_radio_set_editable ##### -->
+<para>
+
+</para>
+
+@fwidget: 
+@editable: 
+
+
+<!-- ##### FUNCTION gtk_form_widget_radio_set_return_value ##### -->
+<para>
+
+</para>
+
+@fwidget: 
+@value: 
+
+
+<!-- ##### FUNCTION gtk_form_widget_radio_get_return_value ##### -->
+<para>
+
+</para>
+
+@fwidget: 
+@Returns: 
+
+
index d64099f04c29e943e5b1536a9bfcab43c25cec2c..36d38c0f81c4010058da2bff0a58f4e1d65ca791 100644 (file)
@@ -73,6 +73,13 @@ FormWidgetSpin
 </para>
 
 
+<!-- ##### STRUCT GtkFormWidgetSpinClass ##### -->
+<para>
+
+</para>
+
+@parent_class: 
+
 <!-- ##### FUNCTION gtk_form_widget_spin_get_type ##### -->
 <para>
 
index aa78d6dad8512a6770b013c1a241bd267d47ad47..b59345edac1cc15064f86a9de715013858f819a5 100644 (file)
@@ -73,6 +73,13 @@ FormWidgetTextview
 </para>
 
 
+<!-- ##### STRUCT GtkFormWidgetTextviewClass ##### -->
+<para>
+
+</para>
+
+@parent_class: 
+
 <!-- ##### FUNCTION gtk_form_widget_textview_get_type ##### -->
 <para>
 
index b96cc5f9d64b7b72752e6805e953b5ba2bf390e8..88ab4a6db69221a64541333eb6357ed4dbd0d33d 100644 (file)
--- a/po/it.po
+++ b/po/it.po
@@ -1,60 +1,97 @@
 # SOME DESCRIPTIVE TITLE.
 # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
 # This file is distributed under the same license as the PACKAGE package.
-# Andrea Zagli <azagli@libero.it>, 2009
+# Andrea Zagli <azagli@libero.it>, 2009, 2010.
 #
 msgid ""
 msgstr ""
 "Project-Id-Version: 0.1.0\n"
 "Report-Msgid-Bugs-To: Andrea Zagli <azagli@libero.it>\n"
-"POT-Creation-Date: 2009-10-19 16:12+0200\n"
-"PO-Revision-Date: 2009-10-19 16:15+0200\n"
+"POT-Creation-Date: 2010-08-01 11:50+0200\n"
+"PO-Revision-Date: 2010-08-01 11:52+0200\n"
 "Last-Translator: Andrea Zagli <azagli@libero.it>\n"
-"Language-Team: Italian <tp@lists.linux.it>\n"
+"Language-Team: Italian <>\n"
+"Language: it\n"
 "MIME-Version: 1.0\n"
 "Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
+"Content-Transfer-Encoding: \n"
+"Plural-Forms: \n"
 
-#: ../src/fielddatetime.c:391
+#: ../src/fieldboolean.c:315 ../src/fieldboolean.c:369
+#: ../src/fielddatetime.c:401 ../src/fielddatetime.c:456
+#: ../src/fieldfloat.c:365
 msgid "GtkFormField hasn't a field name."
 msgstr "GtkFormField non ha un nome di campo."
 
-#: ../src/form.c:214
+#: ../src/fielddatetime.c:779
+#, c-format
+msgid "GtkFormFieldDateTimeType not supported: %d."
+msgstr "GtkFormFieldDateTimeType non supportato: %d."
+
+#: ../src/form.c:395
 #, c-format
 msgid "Error on loading GtkBuilder file: %s\n"
 msgstr "Errore durante il caricamento del file GtkBuilder: %s\n"
 
-#: ../src/form.c:277
+#: ../src/form.c:444
+#, c-format
+msgid "Unknown type «%s»."
+msgstr "Tipo «%s» sconosciuto."
+
+#: ../src/form.c:474
 #, c-format
 msgid "Label «%s» not found."
 msgstr "Etichetta «%s» non trovata."
 
-#: ../src/form.c:429
+#: ../src/form.c:657
 #, c-format
 msgid "Field of type «%s» not found."
 msgstr "Campo di tipo «%s» non trovato."
 
-#: ../src/form.c:438
+#: ../src/form.c:666
 #, c-format
 msgid "Widget of type «%s» not found."
 msgstr "Widget di tipo «%s» non trovato."
 
 #. TO DO
-#: ../src/form.c:448
+#: ../src/form.c:680
 msgid "The file is not a valid gtkform definition file."
 msgstr "Il file non è un file di definizione di gtkform valido."
 
-#: ../src/form.c:810 ../src/form.c:1077
+#: ../src/form.c:1177 ../src/form.c:1449 ../src/form.c:1525 ../src/form.c:1566
 #, c-format
 msgid "Object «%s» not found."
 msgstr "Oggetto «%s» non trovato."
 
-#: ../src/form.c:1343
+#: ../src/form.c:2164
 #, c-format
 msgid "The field «%s» is obligatory."
 msgstr "Il campo «%s» è obbligatorio."
 
-#: ../src/widget.c:140
+#: ../src/widget.c:183
 #, c-format
 msgid "Widget «%s» not found."
 msgstr "Widget «%s» non trovato."
+
+#: ../src/widget.c:322
+#, c-format
+msgid ""
+"Error on parsing sql string: %s\n"
+"%s"
+msgstr ""
+"Errore nell'analisi della stringa sql: %s\n"
+"%s"
+
+#: ../src/widget.c:342
+#, c-format
+msgid "Error on setting holder's value: %s"
+msgstr "Errore nell'impostazione del valore dell'holder: %s"
+
+#: ../src/widget.c:357
+#, c-format
+msgid "Error on executing GtkFormWidgetOnChangeOp: %s"
+msgstr "Errore nell'esecuzione di GtkFormWidgetOnChangeOp: %s"
+
+#: ../src/widget.c:373
+msgid "No GdaEx object inside GtkFormWidget."
+msgstr "Nessun oggetto GdaEx all'interno di GtkFormWidget."
index 92daa517af5826d4165ef5a10187d75d6af456d9..449bdfdc6765077542d476001c94e67647391d38 100644 (file)
@@ -28,7 +28,8 @@ enum
        PROP_OBLIGATORY,
        PROP_AUTO_INCREMENT,
        PROP_DATAMODEL,
-       PROP_WIDGET
+       PROP_WIDGET,
+       PROP_TRIM
 };
 
 static void gtk_form_field_class_init (GtkFormFieldClass *klass);
@@ -54,6 +55,7 @@ struct _GtkFormFieldPrivate
                gboolean to_save;
                gboolean obligatory;
                gboolean auto_increment;
+               gboolean trim;
 
                GdaDataModel *dm;
 
@@ -101,14 +103,21 @@ gtk_form_field_class_init (GtkFormFieldClass *klass)
                                                               "Obligatory",
                                                               "Whether the field could be empty",
                                                               FALSE,
-                                                              G_PARAM_READWRITE));
+                                                              G_PARAM_READWRITE|G_PARAM_CONSTRUCT));
 
        g_object_class_install_property (object_class, PROP_AUTO_INCREMENT,
                                         g_param_spec_boolean ("auto-increment",
                                                               "Auto increment",
                                                               "Whether the field auto increments (works only on  numeric fields)",
                                                               FALSE,
-                                                              G_PARAM_READWRITE));
+                                                              G_PARAM_READWRITE|G_PARAM_CONSTRUCT));
+
+       g_object_class_install_property (object_class, PROP_TRIM,
+                                        g_param_spec_boolean ("trim",
+                                                              "Trim stringify value",
+                                                              "Whether to trim the field's stringify value",
+                                                              FALSE,
+                                                              G_PARAM_READWRITE|G_PARAM_CONSTRUCT));
 
        g_object_class_install_property (object_class, PROP_WIDGET,
                                         g_param_spec_object ("form-widget",
@@ -190,6 +199,8 @@ GtkFormWidget
 gchar
 *gtk_form_field_get_value_stringify (GtkFormField *field)
 {
+       GtkFormFieldPrivate *priv = GTK_FORM_FIELD_GET_PRIVATE (field);
+
        gchar *ret;
 
        ret = g_strdup ("");
@@ -197,6 +208,10 @@ gchar
        if (IS_GTK_FORM_FIELD (field) && GTK_FORM_FIELD_GET_CLASS (field)->get_value_stringify != NULL)
                {
                        ret = GTK_FORM_FIELD_GET_CLASS (field)->get_value_stringify (field);
+                       if (priv->trim)
+                               {
+                                       ret = g_strstrip (ret);
+                               }
                }
 
        return ret;
@@ -217,6 +232,10 @@ GValue
        if (IS_GTK_FORM_FIELD (field) && GTK_FORM_FIELD_GET_CLASS (field)->get_value != NULL)
                {
                        ret = GTK_FORM_FIELD_GET_CLASS (field)->get_value (field);
+                       if (G_VALUE_HOLDS_STRING (ret))
+                               {
+                                       g_value_set_string (ret, g_strstrip (g_strdup (g_value_get_string (ret))));
+                               }
                }
 
        return ret;
@@ -457,6 +476,10 @@ gtk_form_field_set_property (GObject *object,
                                g_object_set (G_OBJECT (priv->widget), "field", field, NULL);
                                break;
 
+                       case PROP_TRIM:
+                               priv->trim = g_value_get_boolean (value);
+                               break;
+
                        default:
                                G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
                                break;
@@ -503,6 +526,10 @@ gtk_form_field_get_property (GObject *object,
                                g_value_set_object (value, priv->widget);
                                break;
 
+                       case PROP_TRIM:
+                               g_value_set_boolean (value, priv->trim);
+                               break;
+
                        default:
                                G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
                                break;
index c3b03f206a535b43e0a654cf5ae07cda908c147c..daa9ed00e506c618c092d1fc88aacb3427695228 100644 (file)
@@ -175,6 +175,14 @@ gchar
 
        if (value != NULL)
                {
+                       gboolean trim;
+
+                       g_object_get (G_OBJECT (field), "trim", &trim, NULL);
+                       if (trim)
+                               {
+                                       value = g_strstrip (value);
+                               }
+
                        ret = g_strconcat ("'", gdaex_strescape (value, NULL), "'", NULL);
 
                        g_free (value);
@@ -302,7 +310,7 @@ gtk_form_field_text_set_from_datamodel (GtkFormField *field, GdaDataModel *dm, g
                }
        ret = gtk_form_field_text_set_value_stringify (field, strret);
 
-       priv->original_value = g_strdup (strret);
+       priv->original_value = gtk_form_field_text_get_value_stringify (field);
 
        g_free (field_name);
        g_free (strret);
@@ -340,8 +348,8 @@ gtk_form_field_text_set_from_hashtable (GtkFormField *field, GHashTable *hashtab
                                }
                        else
                                {
-                                       priv->original_value = g_strdup (g_value_get_string (gval));
                                        ret = gtk_form_field_text_set_value_stringify (field, priv->original_value);
+                                       priv->original_value = gtk_form_field_text_get_value_stringify (field);
                                }
                        g_free (field_name);
                }
@@ -399,12 +407,22 @@ gtk_form_field_text_set_value_stringify (GtkFormField *field, const gchar *value
 {
        gboolean ret = FALSE;
        GtkFormWidget *fw;
+       gboolean trim;
+       gchar *newval;
 
        g_object_get (field,
                      "form-widget", &fw,
+                     "trim", &trim,
                      NULL);
 
-       ret = gtk_form_widget_set_value_stringify (fw, value);
+       newval = g_strdup (value);
+
+       if (trim)
+               {
+                       newval = g_strstrip (newval);
+               }
+
+       ret = gtk_form_widget_set_value_stringify (fw, newval);
 
        return ret;
 }
index cf4cd16563ac19697b6c48940e013d612ca7ad45..f2e3ea392eacd451d6145a9527b5f978c8463d01 100644 (file)
@@ -648,6 +648,12 @@ gtk_form_load_from_xml (GtkForm *form, xmlDoc *xmldoc, GtkBuilder *gtkbuilder)
                                                                                                                                                                                        g_object_set (G_OBJECT (field), "display-format", prop, NULL);
                                                                                                                                                                                }
                                                                                                                                                                }
+                                                                                                                                                       else if (xmlStrcmp (node_field->name, (const xmlChar *)"trim") == 0)
+                                                                                                                                                               {
+                                                                                                                                                                       g_object_set (G_OBJECT (field),
+                                                                                                                                                                                                "trim", gtk_form_field_boolean_str_to_boolean (prop),
+                                                                                                                                                                                                NULL);
+                                                                                                                                                               }
 
                                                                                                                                                        node_field = node_field->next;
                                                                                                                                                }