+2007-01-14 Andrea Zagli <azagli@inwind.it>
+
+ * autogen.sh: added
+
+2007-01-06 Andrea Zagli <azagli@inwind.it>
+
+ * libform.h:
+ * form.c: added functions form_set_sensitive and form_set_editable
+ * libformwidget.h:
+ * formwidget.c: added function form_widget_set_editable
+
2006-12-23 Andrea Zagli <azagli@inwind.it>
* widget.c:
--- /dev/null
+#!/bin/sh
+# Run this to generate all the initial makefiles, etc.
+
+srcdir=`dirname $0`
+test -z "$srcdir" && srcdir=.
+
+ORIGDIR=`pwd`
+cd $srcdir
+PROJECT=libform
+TEST_TYPE=-f
+FILE=configure.ac
+
+DIE=0
+
+have_libtool=false
+if libtoolize --version < /dev/null > /dev/null 2>&1 ; then
+ libtool_version=`libtoolize --version | sed 's/^[^0-9]*\([0-9.][0-9.]*\).*/\1/'`
+ case $libtool_version in
+ 1.4*|1.5*)
+ have_libtool=true
+ ;;
+ esac
+fi
+if $have_libtool ; then : ; else
+ echo
+ echo "You must have libtool 1.4 installed to compile $PROJECT."
+ echo "Install the appropriate package for your distribution,"
+ echo "or get the source tarball at http://ftp.gnu.org/gnu/libtool/"
+ DIE=1
+fi
+
+(gtkdocize --version) < /dev/null > /dev/null 2>&1 || {
+ echo
+ echo "You must have gtk-doc installed to compile $PROJECT."
+ echo "Install the appropriate package for your distribution,"
+ echo "or get the source tarball at http://ftp.gnome.org/pub/GNOME/sources/gtk-doc/"
+ DIE=1
+}
+
+(autoconf --version) < /dev/null > /dev/null 2>&1 || {
+ echo
+ echo "You must have autoconf installed to compile $PROJECT."
+ echo "Install the appropriate package for your distribution,"
+ echo "or get the source tarball at http://ftp.gnu.org/gnu/autoconf/"
+ DIE=1
+}
+
+if automake --version < /dev/null > /dev/null 2>&1 ; then
+ AUTOMAKE=automake
+ ACLOCAL=aclocal
+else
+ echo
+ echo "You must have automake 1.7.x installed to compile $PROJECT."
+ echo "Install the appropriate package for your distribution,"
+ echo "or get the source tarball at http://ftp.gnu.org/gnu/automake/"
+ DIE=1
+fi
+
+if test "$DIE" -eq 1; then
+ exit 1
+fi
+
+test $TEST_TYPE $FILE || {
+ echo "You must run this script in the top-level $PROJECT directory"
+ exit 1
+}
+
+if test -z "$AUTOGEN_SUBDIR_MODE"; then
+ if test -z "$*"; then
+ echo "I am going to run ./configure with no arguments - if you wish "
+ echo "to pass any to it, please specify them on the $0 command line."
+ fi
+fi
+
+rm -rf autom4te.cache
+
+# README and INSTALL are required by automake, but may be deleted by clean
+# up rules. to get automake to work, simply touch these here, they will be
+# regenerated from their corresponding *.in files by ./configure anyway.
+touch README INSTALL
+
+$ACLOCAL || exit $?
+
+libtoolize --force || exit $?
+gtkdocize || exit $?
+
+autoheader || exit $?
+
+$AUTOMAKE --add-missing || exit $?
+autoconf || exit $?
+cd $ORIGDIR || exit $?
+
+if test -z "$AUTOGEN_SUBDIR_MODE"; then
+ $srcdir/configure --enable-maintainer-mode $AUTOGEN_CONFIGURE_ARGS "$@" || exit $?
+
+ echo
+ echo "Now type 'make' to compile $PROJECT."
+fi
# Extra SGML files that are included by $(DOC_MAIN_SGML_FILE).
# e.g. content_files=running.sgml building.sgml changes-2.0.sgml
-content_files=
+content_files = version.xml.in
# SGML files where gtk-doc abbrevations (#GtkWidget) are expanded
# These files must be listed here *and* in content_files
<title>LibForm API Reference</title>
<xi:include href="xml/libform.xml"/>
<xi:include href="xml/libformfield.xml"/>
- <xi:include href="xml/libformwidget.xml"/>
- <xi:include href="xml/libformwidgetlabel.xml"/>
- <xi:include href="xml/libformfieldtext.xml"/>
- <xi:include href="xml/libformkey.xml"/>
+ <xi:include href="xml/libformfieldboolean.xml"/>
<xi:include href="xml/libformfielddatetime.xml"/>
+ <xi:include href="xml/libformfieldfloat.xml"/>
<xi:include href="xml/libformfieldinteger.xml"/>
+ <xi:include href="xml/libformfieldtext.xml"/>
+ <xi:include href="xml/libformkey.xml"/>
+ <xi:include href="xml/libformwidget.xml"/>
+ <xi:include href="xml/libformwidgetcheck.xml"/>
+ <xi:include href="xml/libformwidgetcombobox.xml"/>
+ <xi:include href="xml/libformwidgetdateentry.xml"/>
<xi:include href="xml/libformwidgetentry.xml"/>
+ <xi:include href="xml/libformwidgetlabel.xml"/>
<xi:include href="xml/libformwidgetspin.xml"/>
- <xi:include href="xml/libformfieldboolean.xml"/>
- <xi:include href="xml/libformfieldfloat.xml"/>
- <xi:include href="xml/libformwidgetcheck.xml"/>
<xi:include href="xml/libformwidgettextview.xml"/>
- <xi:include href="xml/libform.xml"/>
</chapter>
</book>
<SECTION>
<FILE>libform</FILE>
-TYPE_FORM
-FORM
-FORM_CLASS
-IS_FORM
-IS_FORM_CLASS
-FORM_GET_CLASS
<TITLE>Form</TITLE>
Form
-form_get_type
form_new
form_add_field
form_remove_field
+form_add_fields
form_clear
form_check
FormSqlType
form_get_sql
form_fill_from_datamodel
+form_get_field_from_name
+form_get_widget_from_name
+form_set_editable
+form_set_sensitive
+<SUBSECTION Standard>
+TYPE_FORM
+FORM
+FORM_CLASS
+IS_FORM
+IS_FORM_CLASS
+FORM_GET_CLASS
+<SUBSECTION Private>
+form_get_type
</SECTION>
<SECTION>
<FILE>libformfield</FILE>
-TYPE_FORM_FIELD
-FORM_FIELD
-FORM_FIELD_CLASS
-IS_FORM_FIELD
-IS_FORM_FIELD_CLASS
-FORM_FIELD_GET_CLASS
<TITLE>FormField</TITLE>
FormField
-form_field_get_type
form_field_new
form_field_new_from_form_widget
+form_field_get_form_widget
form_field_get_field_name
form_field_get_value_stringify
form_field_get_value
form_field_clear
form_field_is_empty
form_field_set_from_datamodel
+<SUBSECTION Standard>
+TYPE_FORM_FIELD
+FORM_FIELD
+FORM_FIELD_CLASS
+IS_FORM_FIELD
+IS_FORM_FIELD_CLASS
+FORM_FIELD_GET_CLASS
+<SUBSECTION Private>
+form_field_get_type
</SECTION>
<SECTION>
<FILE>libformwidget</FILE>
-TYPE_FORM_WIDGET
-FORM_WIDGET
-FORM_WIDGET_CLASS
-IS_FORM_WIDGET
-IS_FORM_WIDGET_CLASS
-FORM_WIDGET_GET_CLASS
<TITLE>FormWidget</TITLE>
FormWidget
-form_widget_get_type
form_widget_new
form_widget_set_from_glade
form_widget_get_widget
+form_widget_get_widget_name
form_widget_get_value_stringify
form_widget_set_value_stringify
+form_widget_set_editable
+<SUBSECTION Standard>
+TYPE_FORM_WIDGET
+FORM_WIDGET
+FORM_WIDGET_CLASS
+IS_FORM_WIDGET
+IS_FORM_WIDGET_CLASS
+FORM_WIDGET_GET_CLASS
+<SUBSECTION Private>
+form_widget_get_type
</SECTION>
<SECTION>
<FILE>libformwidgetlabel</FILE>
+<TITLE>FormWidgetLabel</TITLE>
+FormWidgetLabel
+form_widget_label_new
+form_widget_label_get_value_stringify
+form_widget_label_set_value_stringify
+<SUBSECTION Standard>
TYPE_FORM_WIDGET_LABEL
FORM_WIDGET_LABEL
FORM_WIDGET_LABEL_CLASS
IS_FORM_WIDGET_LABEL
IS_FORM_WIDGET_LABEL_CLASS
FORM_WIDGET_LABEL_GET_CLASS
-<TITLE>FormWidgetLabel</TITLE>
-FormWidgetLabel
+<SUBSECTION Private>
form_widget_label_get_type
-form_widget_label_new
-form_widget_label_get_value_stringify
-form_widget_label_set_value_stringify
</SECTION>
<SECTION>
<FILE>libformfieldtext</FILE>
-TYPE_FORM_FIELD_TEXT
-FORM_FIELD_TEXT
-FORM_FIELD_TEXT_CLASS
-IS_FORM_FIELD_TEXT
-IS_FORM_FIELD_TEXT_CLASS
-FORM_FIELD_TEXT_GET_CLASS
<TITLE>FormFieldText</TITLE>
FormFieldText
-form_field_text_get_type
form_field_text_new
form_field_text_get_value_stringify
form_field_text_get_value
form_field_text_clear
form_field_text_is_empty
form_field_text_set_from_datamodel
+<SUBSECTION Standard>
+TYPE_FORM_FIELD_TEXT
+FORM_FIELD_TEXT
+FORM_FIELD_TEXT_CLASS
+IS_FORM_FIELD_TEXT
+IS_FORM_FIELD_TEXT_CLASS
+FORM_FIELD_TEXT_GET_CLASS
+<SUBSECTION Private>
+form_field_text_get_type
</SECTION>
<SECTION>
<FILE>libformkey</FILE>
-TYPE_FORM_KEY
-FORM_KEY
-FORM_KEY_CLASS
-IS_FORM_KEY
-IS_FORM_KEY_CLASS
-FORM_KEY_GET_CLASS
<TITLE>FormKey</TITLE>
FormKey
-form_key_get_type
form_key_new
form_key_add_field
+form_key_add_fields
form_key_remove_field
form_key_check
form_key_get_sql
form_key_field_is_key
+<SUBSECTION Standard>
+TYPE_FORM_KEY
+FORM_KEY
+FORM_KEY_CLASS
+IS_FORM_KEY
+IS_FORM_KEY_CLASS
+FORM_KEY_GET_CLASS
+<SUBSECTION Private>
+form_key_get_type
</SECTION>
<SECTION>
<FILE>libformfielddatetime</FILE>
-TYPE_FORM_FIELD_DATETIME
-FORM_FIELD_DATETIME
-FORM_FIELD_DATETIME_CLASS
-IS_FORM_FIELD_DATETIME
-IS_FORM_FIELD_DATETIME_CLASS
-FORM_FIELD_DATETIME_GET_CLASS
<TITLE>FormFieldDateTime</TITLE>
FormFieldDateTime
-form_field_datetime_get_type
form_field_datetime_new
form_field_datetime_get_value_stringify
form_field_datetime_get_value
form_field_datetime_clear
form_field_datetime_is_empty
form_field_datetime_set_from_datamodel
+<SUBSECTION Standard>
+TYPE_FORM_FIELD_DATETIME
+FORM_FIELD_DATETIME
+FORM_FIELD_DATETIME_CLASS
+IS_FORM_FIELD_DATETIME
+IS_FORM_FIELD_DATETIME_CLASS
+FORM_FIELD_DATETIME_GET_CLASS
+<SUBSECTION Private>
+form_field_datetime_get_type
</SECTION>
<SECTION>
<FILE>libformfieldinteger</FILE>
-TYPE_FORM_FIELD_INTEGER
-FORM_FIELD_INTEGER
-FORM_FIELD_INTEGER_CLASS
-IS_FORM_FIELD_INTEGER
-IS_FORM_FIELD_INTEGER_CLASS
-FORM_FIELD_INTEGER_GET_CLASS
<TITLE>FormFieldInteger</TITLE>
FormFieldInteger
-form_field_integer_get_type
form_field_integer_new
form_field_integer_get_value_stringify
form_field_integer_get_value
form_field_integer_clear
form_field_integer_is_empty
form_field_integer_set_from_datamodel
+<SUBSECTION Standard>
+TYPE_FORM_FIELD_INTEGER
+FORM_FIELD_INTEGER
+FORM_FIELD_INTEGER_CLASS
+IS_FORM_FIELD_INTEGER
+IS_FORM_FIELD_INTEGER_CLASS
+FORM_FIELD_INTEGER_GET_CLASS
+<SUBSECTION Private>
+form_field_integer_get_type
</SECTION>
<SECTION>
<FILE>libformwidgetentry</FILE>
+<TITLE>FormWidgetEntry</TITLE>
+FormWidgetEntry
+form_widget_entry_new
+form_widget_entry_get_value_stringify
+form_widget_entry_set_value_stringify
+form_widget_entry_set_editable
+<SUBSECTION Standard>
TYPE_FORM_WIDGET_ENTRY
FORM_WIDGET_ENTRY
FORM_WIDGET_ENTRY_CLASS
IS_FORM_WIDGET_ENTRY
IS_FORM_WIDGET_ENTRY_CLASS
FORM_WIDGET_ENTRY_GET_CLASS
-<TITLE>FormWidgetEntry</TITLE>
-FormWidgetEntry
+<SUBSECTION Private>
form_widget_entry_get_type
-form_widget_entry_new
-form_widget_entry_get_value_stringify
-form_widget_entry_set_value_stringify
</SECTION>
<SECTION>
<FILE>libformwidgetspin</FILE>
+<TITLE>FormWidgetSpin</TITLE>
+FormWidgetSpin
+form_widget_spin_new
+form_widget_spin_get_value_stringify
+form_widget_spin_set_value_stringify
+form_widget_spin_set_editable
+<SUBSECTION Standard>
TYPE_FORM_WIDGET_SPIN
FORM_WIDGET_SPIN
FORM_WIDGET_SPIN_CLASS
IS_FORM_WIDGET_SPIN
IS_FORM_WIDGET_SPIN_CLASS
FORM_WIDGET_SPIN_GET_CLASS
-<TITLE>FormWidgetSpin</TITLE>
-FormWidgetSpin
+<SUBSECTION Private>
form_widget_spin_get_type
-form_widget_spin_new
-form_widget_spin_get_value_stringify
-form_widget_spin_set_value_stringify
</SECTION>
<SECTION>
<FILE>libformfieldboolean</FILE>
-TYPE_FORM_FIELD_BOOLEAN
-FORM_FIELD_BOOLEAN
-FORM_FIELD_BOOLEAN_CLASS
-IS_FORM_FIELD_BOOLEAN
-IS_FORM_FIELD_BOOLEAN_CLASS
-FORM_FIELD_BOOLEAN_GET_CLASS
<TITLE>FormFieldBoolean</TITLE>
FormFieldBoolean
-form_field_boolean_get_type
form_field_boolean_new
form_field_boolean_get_value_stringify
form_field_boolean_get_value
form_field_boolean_clear
form_field_boolean_is_empty
form_field_boolean_set_from_datamodel
+<SUBSECTION Standard>
+TYPE_FORM_FIELD_BOOLEAN
+FORM_FIELD_BOOLEAN
+FORM_FIELD_BOOLEAN_CLASS
+IS_FORM_FIELD_BOOLEAN
+IS_FORM_FIELD_BOOLEAN_CLASS
+FORM_FIELD_BOOLEAN_GET_CLASS
+<SUBSECTION Private>
+form_field_boolean_get_type
</SECTION>
<SECTION>
<FILE>libformfieldfloat</FILE>
-TYPE_FORM_FIELD_FLOAT
-FORM_FIELD_FLOAT
-FORM_FIELD_FLOAT_CLASS
-IS_FORM_FIELD_FLOAT
-IS_FORM_FIELD_FLOAT_CLASS
-FORM_FIELD_FLOAT_GET_CLASS
<TITLE>FormFieldFloat</TITLE>
FormFieldFloat
-form_field_float_get_type
form_field_float_new
form_field_float_get_value_stringify
form_field_float_get_value
form_field_float_clear
form_field_float_is_empty
form_field_float_set_from_datamodel
+<SUBSECTION Standard>
+TYPE_FORM_FIELD_FLOAT
+FORM_FIELD_FLOAT
+FORM_FIELD_FLOAT_CLASS
+IS_FORM_FIELD_FLOAT
+IS_FORM_FIELD_FLOAT_CLASS
+FORM_FIELD_FLOAT_GET_CLASS
+<SUBSECTION Private>
+form_field_float_get_type
</SECTION>
<SECTION>
<FILE>libformwidgetcheck</FILE>
+<TITLE>FormWidgetCheck</TITLE>
+FormWidgetCheck
+form_widget_check_new
+form_widget_check_get_value_stringify
+form_widget_check_set_value_stringify
+form_widget_check_set_editable
+<SUBSECTION Standard>
TYPE_FORM_WIDGET_CHECK
FORM_WIDGET_CHECK
FORM_WIDGET_CHECK_CLASS
IS_FORM_WIDGET_CHECK
IS_FORM_WIDGET_CHECK_CLASS
FORM_WIDGET_CHECK_GET_CLASS
-<TITLE>FormWidgetCheck</TITLE>
-FormWidgetCheck
+<SUBSECTION Private>
form_widget_check_get_type
-form_widget_check_new
-form_widget_check_get_value_stringify
-form_widget_check_set_value_stringify
</SECTION>
<SECTION>
<FILE>libformwidgettextview</FILE>
+<TITLE>FormWidgetTextview</TITLE>
+FormWidgetTextview
+form_widget_textview_new
+form_widget_textview_get_value_stringify
+form_widget_textview_set_value_stringify
+form_widget_textview_set_editable
+<SUBSECTION Standard>
TYPE_FORM_WIDGET_TEXTVIEW
FORM_WIDGET_TEXTVIEW
FORM_WIDGET_TEXTVIEW_CLASS
IS_FORM_WIDGET_TEXTVIEW
IS_FORM_WIDGET_TEXTVIEW_CLASS
FORM_WIDGET_TEXTVIEW_GET_CLASS
-<TITLE>FormWidgetTextview</TITLE>
-FormWidgetTextview
+<SUBSECTION Private>
form_widget_textview_get_type
-form_widget_textview_new
-form_widget_textview_get_value_stringify
-form_widget_textview_set_value_stringify
+</SECTION>
+
+<SECTION>
+<FILE>libformwidgetdateentry</FILE>
+<TITLE>FormWidgetDateEntry</TITLE>
+FormWidgetDateEntry
+form_widget_date_entry_new
+form_widget_date_entry_get_value_stringify
+form_widget_date_entry_set_value_stringify
+form_widget_date_entry_set_editable
+<SUBSECTION Standard>
+TYPE_FORM_WIDGET_DATE_ENTRY
+FORM_WIDGET_DATE_ENTRY
+FORM_WIDGET_DATE_ENTRY_CLASS
+IS_FORM_WIDGET_DATE_ENTRY
+IS_FORM_WIDGET_DATE_ENTRY_CLASS
+FORM_WIDGET_DATE_ENTRY_GET_CLASS
+<SUBSECTION Private>
+form_widget_date_entry_get_type
+</SECTION>
+
+<SECTION>
+<FILE>libformwidgetcombobox</FILE>
+<TITLE>FormWidgetComboBox</TITLE>
+FormWidgetComboBox
+form_widget_combo_box_new
+form_widget_combo_box_get_value_stringify
+form_widget_combo_box_set_value_stringify
+form_widget_combo_box_set_editable
+<SUBSECTION Standard>
+TYPE_FORM_WIDGET_COMBO_BOX
+FORM_WIDGET_COMBO_BOX
+FORM_WIDGET_COMBO_BOX_CLASS
+IS_FORM_WIDGET_COMBO_BOX
+IS_FORM_WIDGET_COMBO_BOX_CLASS
+FORM_WIDGET_COMBO_BOX_GET_CLASS
+<SUBSECTION Private>
+form_widget_combo_box_get_type
</SECTION>
-5% symbol docs coverage.
-12 symbols documented.
-0 symbols incomplete.
-217 not documented.
+11% symbol docs coverage.
+18 symbols documented.
+1 symbols incomplete.
+145 not documented.
-FORM
-FORM_CLASS
-FORM_FIELD
-FORM_FIELD_BOOLEAN
-FORM_FIELD_BOOLEAN_CLASS
-FORM_FIELD_BOOLEAN_GET_CLASS
-FORM_FIELD_CLASS
-FORM_FIELD_DATETIME
-FORM_FIELD_DATETIME_CLASS
-FORM_FIELD_DATETIME_GET_CLASS
-FORM_FIELD_FLOAT
-FORM_FIELD_FLOAT_CLASS
-FORM_FIELD_FLOAT_GET_CLASS
-FORM_FIELD_GET_CLASS
-FORM_FIELD_INTEGER
-FORM_FIELD_INTEGER_CLASS
-FORM_FIELD_INTEGER_GET_CLASS
-FORM_FIELD_TEXT
-FORM_FIELD_TEXT_CLASS
-FORM_FIELD_TEXT_GET_CLASS
-FORM_GET_CLASS
-FORM_KEY
-FORM_KEY_CLASS
-FORM_KEY_GET_CLASS
-FORM_WIDGET
-FORM_WIDGET_CHECK
-FORM_WIDGET_CHECK_CLASS
-FORM_WIDGET_CHECK_GET_CLASS
-FORM_WIDGET_CLASS
-FORM_WIDGET_ENTRY
-FORM_WIDGET_ENTRY_CLASS
-FORM_WIDGET_ENTRY_GET_CLASS
-FORM_WIDGET_GET_CLASS
-FORM_WIDGET_LABEL
-FORM_WIDGET_LABEL_CLASS
-FORM_WIDGET_LABEL_GET_CLASS
-FORM_WIDGET_SPIN
-FORM_WIDGET_SPIN_CLASS
-FORM_WIDGET_SPIN_GET_CLASS
-FORM_WIDGET_TEXTVIEW
-FORM_WIDGET_TEXTVIEW_CLASS
-FORM_WIDGET_TEXTVIEW_GET_CLASS
Form
FormField
FormFieldBoolean
FormSqlType
FormWidget
FormWidgetCheck
+FormWidgetComboBox
+FormWidgetDateEntry
FormWidgetEntry
FormWidgetLabel
FormWidgetSpin
FormWidgetTextview
-IS_FORM
-IS_FORM_CLASS
-IS_FORM_FIELD
-IS_FORM_FIELD_BOOLEAN
-IS_FORM_FIELD_BOOLEAN_CLASS
-IS_FORM_FIELD_CLASS
-IS_FORM_FIELD_DATETIME
-IS_FORM_FIELD_DATETIME_CLASS
-IS_FORM_FIELD_FLOAT
-IS_FORM_FIELD_FLOAT_CLASS
-IS_FORM_FIELD_INTEGER
-IS_FORM_FIELD_INTEGER_CLASS
-IS_FORM_FIELD_TEXT
-IS_FORM_FIELD_TEXT_CLASS
-IS_FORM_KEY
-IS_FORM_KEY_CLASS
-IS_FORM_WIDGET
-IS_FORM_WIDGET_CHECK
-IS_FORM_WIDGET_CHECK_CLASS
-IS_FORM_WIDGET_CLASS
-IS_FORM_WIDGET_ENTRY
-IS_FORM_WIDGET_ENTRY_CLASS
-IS_FORM_WIDGET_LABEL
-IS_FORM_WIDGET_LABEL_CLASS
-IS_FORM_WIDGET_SPIN
-IS_FORM_WIDGET_SPIN_CLASS
-IS_FORM_WIDGET_TEXTVIEW
-IS_FORM_WIDGET_TEXTVIEW_CLASS
-TYPE_FORM
-TYPE_FORM_FIELD
-TYPE_FORM_FIELD_BOOLEAN
-TYPE_FORM_FIELD_DATETIME
-TYPE_FORM_FIELD_FLOAT
-TYPE_FORM_FIELD_INTEGER
-TYPE_FORM_FIELD_TEXT
-TYPE_FORM_KEY
-TYPE_FORM_WIDGET
-TYPE_FORM_WIDGET_CHECK
-TYPE_FORM_WIDGET_ENTRY
-TYPE_FORM_WIDGET_LABEL
-TYPE_FORM_WIDGET_SPIN
-TYPE_FORM_WIDGET_TEXTVIEW
form_add_field
+form_add_fields
form_check
form_clear
form_field_boolean_clear
-form_field_boolean_get_type
form_field_boolean_get_value
form_field_boolean_get_value_sql
form_field_boolean_get_value_stringify
form_field_boolean_set_from_datamodel
form_field_clear
form_field_datetime_clear
-form_field_datetime_get_type
form_field_datetime_get_value
form_field_datetime_get_value_sql
form_field_datetime_get_value_stringify
form_field_datetime_new
form_field_datetime_set_from_datamodel
form_field_float_clear
-form_field_float_get_type
form_field_float_get_value
form_field_float_get_value_sql
form_field_float_get_value_stringify
form_field_float_new
form_field_float_set_from_datamodel
form_field_get_field_name
-form_field_get_type
+form_field_get_form_widget (field, Returns)
form_field_get_value
form_field_get_value_sql
form_field_get_value_stringify
form_field_integer_clear
-form_field_integer_get_type
form_field_integer_get_value
form_field_integer_get_value_sql
form_field_integer_get_value_stringify
form_field_new_from_form_widget
form_field_set_from_datamodel
form_field_text_clear
-form_field_text_get_type
form_field_text_get_value
form_field_text_get_value_sql
form_field_text_get_value_stringify
form_field_text_new
form_field_text_set_from_datamodel
form_fill_from_datamodel
+form_get_field_from_name
form_get_sql
-form_get_type
+form_get_widget_from_name
form_key_add_field
+form_key_add_fields
form_key_check
form_key_field_is_key
form_key_get_sql
-form_key_get_type
form_key_new
form_key_remove_field
form_new
form_remove_field
-form_widget_check_get_type
+form_set_editable
+form_set_sensitive
form_widget_check_get_value_stringify
form_widget_check_new
+form_widget_check_set_editable
form_widget_check_set_value_stringify
-form_widget_entry_get_type
+form_widget_combo_box_get_value_stringify
+form_widget_combo_box_new
+form_widget_combo_box_set_editable
+form_widget_combo_box_set_value_stringify
+form_widget_date_entry_get_value_stringify
+form_widget_date_entry_new
+form_widget_date_entry_set_editable
+form_widget_date_entry_set_value_stringify
form_widget_entry_get_value_stringify
form_widget_entry_new
+form_widget_entry_set_editable
form_widget_entry_set_value_stringify
-form_widget_get_type
form_widget_get_value_stringify
form_widget_get_widget
-form_widget_label_get_type
+form_widget_get_widget_name
form_widget_label_get_value_stringify
form_widget_label_new
form_widget_label_set_value_stringify
form_widget_new
+form_widget_set_editable
form_widget_set_from_glade
form_widget_set_value_stringify
-form_widget_spin_get_type
form_widget_spin_get_value_stringify
form_widget_spin_new
+form_widget_spin_set_editable
form_widget_spin_set_value_stringify
-form_widget_textview_get_type
form_widget_textview_get_value_stringify
form_widget_textview_new
+form_widget_textview_set_editable
form_widget_textview_set_value_stringify
libformwidget:Short_Description
libformwidgetcheck:Long_Description
libformwidgetcheck:Short_Description
+libformwidgetcombobox:Short_Description
+libformwidgetdateentry:Long_Description
+libformwidgetdateentry:Short_Description
libformwidgetentry:Long_Description
libformwidgetentry:Short_Description
libformwidgetlabel:Long_Description
libformwidgetlabel:Short_Description
libformwidgetspin:Long_Description
libformwidgetspin:Short_Description
+libformwidgettextview:Long_Description
libformwidgettextview:Short_Description
#include <libform.h>
#include <libformfield.h>
#include <libformfieldboolean.h>
+#include <libformfielddatetime.h>
#include <libformfieldfloat.h>
#include <libformfieldinteger.h>
#include <libformfieldtext.h>
form_get_type
form_field_get_type
form_field_boolean_get_type
+form_field_datetime_get_type
form_field_float_get_type
form_field_integer_get_type
form_field_text_get_type
+<!-- ##### MACRO FORM ##### -->
+<para>
+
+</para>
+
+@obj:
+
+<!-- ##### MACRO FORM_CLASS ##### -->
+<para>
+
+</para>
+
+@klass:
+
+<!-- ##### MACRO FORM_FIELD ##### -->
+<para>
+
+</para>
+
+@obj:
+
+<!-- ##### MACRO FORM_FIELD_BOOLEAN ##### -->
+<para>
+
+</para>
+
+@obj:
+
+<!-- ##### MACRO FORM_FIELD_BOOLEAN_CLASS ##### -->
+<para>
+
+</para>
+
+@klass:
+
+<!-- ##### MACRO FORM_FIELD_BOOLEAN_GET_CLASS ##### -->
+<para>
+
+</para>
+
+@obj:
+
+<!-- ##### MACRO FORM_FIELD_CLASS ##### -->
+<para>
+
+</para>
+
+@klass:
+
+<!-- ##### MACRO FORM_FIELD_DATETIME ##### -->
+<para>
+
+</para>
+
+@obj:
+
+<!-- ##### MACRO FORM_FIELD_DATETIME_CLASS ##### -->
+<para>
+
+</para>
+
+@klass:
+
+<!-- ##### MACRO FORM_FIELD_DATETIME_GET_CLASS ##### -->
+<para>
+
+</para>
+
+@obj:
+
+<!-- ##### MACRO FORM_FIELD_FLOAT ##### -->
+<para>
+
+</para>
+
+@obj:
+
+<!-- ##### MACRO FORM_FIELD_FLOAT_CLASS ##### -->
+<para>
+
+</para>
+
+@klass:
+
+<!-- ##### MACRO FORM_FIELD_FLOAT_GET_CLASS ##### -->
+<para>
+
+</para>
+
+@obj:
+
+<!-- ##### MACRO FORM_FIELD_GET_CLASS ##### -->
+<para>
+
+</para>
+
+@obj:
+
+<!-- ##### MACRO FORM_FIELD_INTEGER ##### -->
+<para>
+
+</para>
+
+@obj:
+
+<!-- ##### MACRO FORM_FIELD_INTEGER_CLASS ##### -->
+<para>
+
+</para>
+
+@klass:
+
+<!-- ##### MACRO FORM_FIELD_INTEGER_GET_CLASS ##### -->
+<para>
+
+</para>
+
+@obj:
+
+<!-- ##### MACRO FORM_FIELD_TEXT ##### -->
+<para>
+
+</para>
+
+@obj:
+
+<!-- ##### MACRO FORM_FIELD_TEXT_CLASS ##### -->
+<para>
+
+</para>
+
+@klass:
+
+<!-- ##### MACRO FORM_FIELD_TEXT_GET_CLASS ##### -->
+<para>
+
+</para>
+
+@obj:
+
+<!-- ##### MACRO FORM_GET_CLASS ##### -->
+<para>
+
+</para>
+
+@obj:
+
+<!-- ##### MACRO FORM_KEY ##### -->
+<para>
+
+</para>
+
+@obj:
+
+<!-- ##### MACRO FORM_KEY_CLASS ##### -->
+<para>
+
+</para>
+
+@klass:
+
+<!-- ##### MACRO FORM_KEY_GET_CLASS ##### -->
+<para>
+
+</para>
+
+@obj:
+
+<!-- ##### MACRO FORM_WIDGET ##### -->
+<para>
+
+</para>
+
+@obj:
+
+<!-- ##### MACRO FORM_WIDGET_CHECK ##### -->
+<para>
+
+</para>
+
+@obj:
+
+<!-- ##### MACRO FORM_WIDGET_CHECK_CLASS ##### -->
+<para>
+
+</para>
+
+@klass:
+
+<!-- ##### MACRO FORM_WIDGET_CHECK_GET_CLASS ##### -->
+<para>
+
+</para>
+
+@obj:
+
+<!-- ##### MACRO FORM_WIDGET_CLASS ##### -->
+<para>
+
+</para>
+
+@klass:
+
+<!-- ##### MACRO FORM_WIDGET_ENTRY ##### -->
+<para>
+
+</para>
+
+@obj:
+
+<!-- ##### MACRO FORM_WIDGET_ENTRY_CLASS ##### -->
+<para>
+
+</para>
+
+@klass:
+
+<!-- ##### MACRO FORM_WIDGET_ENTRY_GET_CLASS ##### -->
+<para>
+
+</para>
+
+@obj:
+
+<!-- ##### MACRO FORM_WIDGET_GET_CLASS ##### -->
+<para>
+
+</para>
+
+@obj:
+
+<!-- ##### MACRO FORM_WIDGET_LABEL ##### -->
+<para>
+
+</para>
+
+@obj:
+
+<!-- ##### MACRO FORM_WIDGET_LABEL_CLASS ##### -->
+<para>
+
+</para>
+
+@klass:
+
+<!-- ##### MACRO FORM_WIDGET_LABEL_GET_CLASS ##### -->
+<para>
+
+</para>
+
+@obj:
+
+<!-- ##### MACRO FORM_WIDGET_SPIN ##### -->
+<para>
+
+</para>
+
+@obj:
+
+<!-- ##### MACRO FORM_WIDGET_SPIN_CLASS ##### -->
+<para>
+
+</para>
+
+@klass:
+
+<!-- ##### MACRO FORM_WIDGET_SPIN_GET_CLASS ##### -->
+<para>
+
+</para>
+
+@obj:
+
+<!-- ##### MACRO FORM_WIDGET_TEXTVIEW ##### -->
+<para>
+
+</para>
+
+@obj:
+
+<!-- ##### MACRO FORM_WIDGET_TEXTVIEW_CLASS ##### -->
+<para>
+
+</para>
+
+@klass:
+
+<!-- ##### MACRO FORM_WIDGET_TEXTVIEW_GET_CLASS ##### -->
+<para>
+
+</para>
+
+@obj:
+
+<!-- ##### MACRO IS_FORM ##### -->
+<para>
+
+</para>
+
+@obj:
+
+<!-- ##### MACRO IS_FORM_CLASS ##### -->
+<para>
+
+</para>
+
+@klass:
+
+<!-- ##### MACRO IS_FORM_FIELD ##### -->
+<para>
+
+</para>
+
+@obj:
+
+<!-- ##### MACRO IS_FORM_FIELD_BOOLEAN ##### -->
+<para>
+
+</para>
+
+@obj:
+
+<!-- ##### MACRO IS_FORM_FIELD_BOOLEAN_CLASS ##### -->
+<para>
+
+</para>
+
+@klass:
+
+<!-- ##### MACRO IS_FORM_FIELD_CLASS ##### -->
+<para>
+
+</para>
+
+@klass:
+
+<!-- ##### MACRO IS_FORM_FIELD_DATETIME ##### -->
+<para>
+
+</para>
+
+@obj:
+
+<!-- ##### MACRO IS_FORM_FIELD_DATETIME_CLASS ##### -->
+<para>
+
+</para>
+
+@klass:
+
+<!-- ##### MACRO IS_FORM_FIELD_FLOAT ##### -->
+<para>
+
+</para>
+
+@obj:
+
+<!-- ##### MACRO IS_FORM_FIELD_FLOAT_CLASS ##### -->
+<para>
+
+</para>
+
+@klass:
+
+<!-- ##### MACRO IS_FORM_FIELD_INTEGER ##### -->
+<para>
+
+</para>
+
+@obj:
+
+<!-- ##### MACRO IS_FORM_FIELD_INTEGER_CLASS ##### -->
+<para>
+
+</para>
+
+@klass:
+
+<!-- ##### MACRO IS_FORM_FIELD_TEXT ##### -->
+<para>
+
+</para>
+
+@obj:
+
+<!-- ##### MACRO IS_FORM_FIELD_TEXT_CLASS ##### -->
+<para>
+
+</para>
+
+@klass:
+
+<!-- ##### MACRO IS_FORM_KEY ##### -->
+<para>
+
+</para>
+
+@obj:
+
+<!-- ##### MACRO IS_FORM_KEY_CLASS ##### -->
+<para>
+
+</para>
+
+@klass:
+
+<!-- ##### MACRO IS_FORM_WIDGET ##### -->
+<para>
+
+</para>
+
+@obj:
+
+<!-- ##### MACRO IS_FORM_WIDGET_CHECK ##### -->
+<para>
+
+</para>
+
+@obj:
+
+<!-- ##### MACRO IS_FORM_WIDGET_CHECK_CLASS ##### -->
+<para>
+
+</para>
+
+@klass:
+
+<!-- ##### MACRO IS_FORM_WIDGET_CLASS ##### -->
+<para>
+
+</para>
+
+@klass:
+
+<!-- ##### MACRO IS_FORM_WIDGET_ENTRY ##### -->
+<para>
+
+</para>
+
+@obj:
+
+<!-- ##### MACRO IS_FORM_WIDGET_ENTRY_CLASS ##### -->
+<para>
+
+</para>
+
+@klass:
+
+<!-- ##### MACRO IS_FORM_WIDGET_LABEL ##### -->
+<para>
+
+</para>
+
+@obj:
+
+<!-- ##### MACRO IS_FORM_WIDGET_LABEL_CLASS ##### -->
+<para>
+
+</para>
+
+@klass:
+
+<!-- ##### MACRO IS_FORM_WIDGET_SPIN ##### -->
+<para>
+
+</para>
+
+@obj:
+
+<!-- ##### MACRO IS_FORM_WIDGET_SPIN_CLASS ##### -->
+<para>
+
+</para>
+
+@klass:
+
+<!-- ##### MACRO IS_FORM_WIDGET_TEXTVIEW ##### -->
+<para>
+
+</para>
+
+@obj:
+
+<!-- ##### MACRO IS_FORM_WIDGET_TEXTVIEW_CLASS ##### -->
+<para>
+
+</para>
+
+@klass:
+
+<!-- ##### MACRO TYPE_FORM ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### MACRO TYPE_FORM_FIELD ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### MACRO TYPE_FORM_FIELD_BOOLEAN ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### MACRO TYPE_FORM_FIELD_DATETIME ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### MACRO TYPE_FORM_FIELD_FLOAT ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### MACRO TYPE_FORM_FIELD_INTEGER ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### MACRO TYPE_FORM_FIELD_TEXT ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### MACRO TYPE_FORM_KEY ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### MACRO TYPE_FORM_WIDGET ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### MACRO TYPE_FORM_WIDGET_CHECK ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### MACRO TYPE_FORM_WIDGET_ENTRY ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### MACRO TYPE_FORM_WIDGET_LABEL ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### MACRO TYPE_FORM_WIDGET_SPIN ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### MACRO TYPE_FORM_WIDGET_TEXTVIEW ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### FUNCTION form_field_boolean_get_type ##### -->
+<para>
+
+</para>
+
+@Returns:
+
+<!-- ##### FUNCTION form_field_datetime_get_type ##### -->
+<para>
+
+</para>
+
+@Returns:
+
+<!-- ##### FUNCTION form_field_float_get_type ##### -->
+<para>
+
+</para>
+
+@Returns:
+
<!-- ##### FUNCTION form_field_get ##### -->
<para>
@value:
@Returns:
+<!-- ##### FUNCTION form_field_get_type ##### -->
+<para>
+
+</para>
+
+@Returns:
+
+<!-- ##### FUNCTION form_field_integer_get_type ##### -->
+<para>
+
+</para>
+
+@Returns:
+
+<!-- ##### FUNCTION form_field_text_get_type ##### -->
+<para>
+
+</para>
+
+@Returns:
+
+<!-- ##### FUNCTION form_get_type ##### -->
+<para>
+
+</para>
+
+@Returns:
+
+<!-- ##### FUNCTION form_key_get_type ##### -->
+<para>
+
+</para>
+
+@Returns:
+
<!-- ##### FUNCTION form_set_glade ##### -->
<para>
@glade:
@Returns:
+<!-- ##### FUNCTION form_widget_check_get_type ##### -->
+<para>
+
+</para>
+
+@Returns:
+
+<!-- ##### FUNCTION form_widget_combo_box_get_type ##### -->
+<para>
+
+</para>
+
+@Returns:
+
+<!-- ##### FUNCTION form_widget_date_entry_get_type ##### -->
+<para>
+
+</para>
+
+@Returns:
+
+<!-- ##### FUNCTION form_widget_entry_get_type ##### -->
+<para>
+
+</para>
+
+@Returns:
+
+<!-- ##### FUNCTION form_widget_get_type ##### -->
+<para>
+
+</para>
+
+@Returns:
+
+<!-- ##### FUNCTION form_widget_label_get_type ##### -->
+<para>
+
+</para>
+
+@Returns:
+
+<!-- ##### FUNCTION form_widget_spin_get_type ##### -->
+<para>
+
+</para>
+
+@Returns:
+
+<!-- ##### FUNCTION form_widget_textview_get_type ##### -->
+<para>
+
+</para>
+
+@Returns:
+
<!-- ##### SECTION Stability_Level ##### -->
-<!-- ##### MACRO TYPE_FORM ##### -->
+<!-- ##### STRUCT Form ##### -->
<para>
</para>
-
-<!-- ##### MACRO FORM ##### -->
+<!-- ##### ARG Form:key ##### -->
<para>
</para>
-@obj:
-
-
-<!-- ##### MACRO FORM_CLASS ##### -->
+<!-- ##### ARG Form:table ##### -->
<para>
</para>
-@klass:
-
-
-<!-- ##### MACRO IS_FORM ##### -->
+<!-- ##### FUNCTION form_new ##### -->
<para>
</para>
-@obj:
+@Returns:
-<!-- ##### MACRO IS_FORM_CLASS ##### -->
+<!-- ##### FUNCTION form_add_field ##### -->
<para>
</para>
-@klass:
+@form:
+@field:
+@Returns:
-<!-- ##### MACRO FORM_GET_CLASS ##### -->
+<!-- ##### FUNCTION form_remove_field ##### -->
<para>
</para>
-@obj:
+@form:
+@field:
+@Returns:
-<!-- ##### STRUCT Form ##### -->
+<!-- ##### FUNCTION form_add_fields ##### -->
<para>
</para>
+@form:
+@Varargs:
+@Returns:
-<!-- ##### ARG Form:key ##### -->
+
+<!-- ##### FUNCTION form_clear ##### -->
<para>
</para>
-<!-- ##### ARG Form:table ##### -->
-<para>
+@form:
+@Returns:
-</para>
-<!-- ##### FUNCTION form_get_type ##### -->
+<!-- ##### FUNCTION form_check ##### -->
<para>
</para>
+@form:
@Returns:
-<!-- ##### FUNCTION form_new ##### -->
+<!-- ##### ENUM FormSqlType ##### -->
<para>
</para>
-@Returns:
-
+@FORM_SQL_SELECT:
+@FORM_SQL_INSERT:
+@FORM_SQL_UPDATE:
+@FORM_SQL_DELETE:
-<!-- ##### FUNCTION form_add_field ##### -->
+<!-- ##### FUNCTION form_get_sql ##### -->
<para>
</para>
@form:
-@field:
+@type:
@Returns:
-<!-- ##### FUNCTION form_remove_field ##### -->
+<!-- ##### FUNCTION form_fill_from_datamodel ##### -->
<para>
</para>
@form:
-@field:
+@dm:
+@row:
@Returns:
-<!-- ##### FUNCTION form_clear ##### -->
+<!-- ##### FUNCTION form_get_field_from_name ##### -->
<para>
</para>
@form:
+@field_name:
@Returns:
-<!-- ##### FUNCTION form_check ##### -->
+<!-- ##### FUNCTION form_get_widget_from_name ##### -->
<para>
</para>
@form:
+@widget_name:
@Returns:
-<!-- ##### ENUM FormSqlType ##### -->
-<para>
-
-</para>
-
-@FORM_SQL_SELECT:
-@FORM_SQL_INSERT:
-@FORM_SQL_UPDATE:
-@FORM_SQL_DELETE:
-
-<!-- ##### FUNCTION form_get_sql ##### -->
+<!-- ##### FUNCTION form_set_editable ##### -->
<para>
</para>
@form:
-@type:
-@Returns:
+@editable:
-<!-- ##### FUNCTION form_fill_from_datamodel ##### -->
+<!-- ##### FUNCTION form_set_sensitive ##### -->
<para>
</para>
@form:
-@dm:
-@row:
-@Returns:
+@sensitive:
<!-- ##### SECTION Stability_Level ##### -->
-<!-- ##### MACRO TYPE_FORM_FIELD ##### -->
-<para>
-
-</para>
-
-
-
-<!-- ##### MACRO FORM_FIELD ##### -->
-<para>
-
-</para>
-
-@obj:
-
-
-<!-- ##### MACRO FORM_FIELD_CLASS ##### -->
-<para>
-
-</para>
-
-@klass:
-
-
-<!-- ##### MACRO IS_FORM_FIELD ##### -->
-<para>
-
-</para>
-
-@obj:
-
-
-<!-- ##### MACRO IS_FORM_FIELD_CLASS ##### -->
-<para>
-
-</para>
-
-@klass:
-
-
-<!-- ##### MACRO FORM_FIELD_GET_CLASS ##### -->
-<para>
-
-</para>
-
-@obj:
-
-
<!-- ##### STRUCT FormField ##### -->
<para>
</para>
-<!-- ##### FUNCTION form_field_get_type ##### -->
+<!-- ##### FUNCTION form_field_new ##### -->
<para>
</para>
@Returns:
-<!-- ##### FUNCTION form_field_new ##### -->
+<!-- ##### FUNCTION form_field_new_from_form_widget ##### -->
<para>
</para>
+@fwidget:
@Returns:
-<!-- ##### FUNCTION form_field_new_from_form_widget ##### -->
+<!-- ##### FUNCTION form_field_get_form_widget ##### -->
<para>
</para>
-@fwidget:
+@field:
@Returns:
<!-- ##### SECTION Stability_Level ##### -->
-<!-- ##### MACRO TYPE_FORM_FIELD_BOOLEAN ##### -->
-<para>
-
-</para>
-
-
-
-<!-- ##### MACRO FORM_FIELD_BOOLEAN ##### -->
-<para>
-
-</para>
-
-@obj:
-
-
-<!-- ##### MACRO FORM_FIELD_BOOLEAN_CLASS ##### -->
-<para>
-
-</para>
-
-@klass:
-
-
-<!-- ##### MACRO IS_FORM_FIELD_BOOLEAN ##### -->
-<para>
-
-</para>
-
-@obj:
-
-
-<!-- ##### MACRO IS_FORM_FIELD_BOOLEAN_CLASS ##### -->
-<para>
-
-</para>
-
-@klass:
-
-
-<!-- ##### MACRO FORM_FIELD_BOOLEAN_GET_CLASS ##### -->
-<para>
-
-</para>
-
-@obj:
-
-
<!-- ##### STRUCT FormFieldBoolean ##### -->
<para>
</para>
-<!-- ##### FUNCTION form_field_boolean_get_type ##### -->
-<para>
-
-</para>
-
-@Returns:
-
-
<!-- ##### FUNCTION form_field_boolean_new ##### -->
<para>
<!-- ##### SECTION Stability_Level ##### -->
-<!-- ##### MACRO TYPE_FORM_FIELD_DATETIME ##### -->
-<para>
-
-</para>
-
-
-
-<!-- ##### MACRO FORM_FIELD_DATETIME ##### -->
-<para>
-
-</para>
-
-@obj:
-
-
-<!-- ##### MACRO FORM_FIELD_DATETIME_CLASS ##### -->
-<para>
-
-</para>
-
-@klass:
-
-
-<!-- ##### MACRO IS_FORM_FIELD_DATETIME ##### -->
-<para>
-
-</para>
-
-@obj:
-
-
-<!-- ##### MACRO IS_FORM_FIELD_DATETIME_CLASS ##### -->
-<para>
-
-</para>
-
-@klass:
-
-
-<!-- ##### MACRO FORM_FIELD_DATETIME_GET_CLASS ##### -->
+<!-- ##### STRUCT FormFieldDateTime ##### -->
<para>
</para>
-@obj:
-
-<!-- ##### STRUCT FormFieldDateTime ##### -->
+<!-- ##### ARG FormFieldDateTime:default ##### -->
<para>
</para>
-@parent:
-
-<!-- ##### FUNCTION form_field_datetime_get_type ##### -->
+<!-- ##### ARG FormFieldDateTime:type ##### -->
<para>
</para>
-@Returns:
-
-
<!-- ##### FUNCTION form_field_datetime_new ##### -->
<para>
<!-- ##### SECTION Stability_Level ##### -->
-<!-- ##### MACRO TYPE_FORM_FIELD_FLOAT ##### -->
-<para>
-
-</para>
-
-
-
-<!-- ##### MACRO FORM_FIELD_FLOAT ##### -->
-<para>
-
-</para>
-
-@obj:
-
-
-<!-- ##### MACRO FORM_FIELD_FLOAT_CLASS ##### -->
-<para>
-
-</para>
-
-@klass:
-
-
-<!-- ##### MACRO IS_FORM_FIELD_FLOAT ##### -->
-<para>
-
-</para>
-
-@obj:
-
-
-<!-- ##### MACRO IS_FORM_FIELD_FLOAT_CLASS ##### -->
-<para>
-
-</para>
-
-@klass:
-
-
-<!-- ##### MACRO FORM_FIELD_FLOAT_GET_CLASS ##### -->
-<para>
-
-</para>
-
-@obj:
-
-
<!-- ##### STRUCT FormFieldFloat ##### -->
<para>
</para>
-<!-- ##### FUNCTION form_field_float_get_type ##### -->
-<para>
-
-</para>
-
-@Returns:
-
-
<!-- ##### FUNCTION form_field_float_new ##### -->
<para>
<!-- ##### SECTION Stability_Level ##### -->
-<!-- ##### MACRO TYPE_FORM_FIELD_INTEGER ##### -->
-<para>
-
-</para>
-
-
-
-<!-- ##### MACRO FORM_FIELD_INTEGER ##### -->
-<para>
-
-</para>
-
-@obj:
-
-
-<!-- ##### MACRO FORM_FIELD_INTEGER_CLASS ##### -->
-<para>
-
-</para>
-
-@klass:
-
-
-<!-- ##### MACRO IS_FORM_FIELD_INTEGER ##### -->
-<para>
-
-</para>
-
-@obj:
-
-
-<!-- ##### MACRO IS_FORM_FIELD_INTEGER_CLASS ##### -->
-<para>
-
-</para>
-
-@klass:
-
-
-<!-- ##### MACRO FORM_FIELD_INTEGER_GET_CLASS ##### -->
-<para>
-
-</para>
-
-@obj:
-
-
<!-- ##### STRUCT FormFieldInteger ##### -->
<para>
</para>
-<!-- ##### FUNCTION form_field_integer_get_type ##### -->
-<para>
-
-</para>
-
-@Returns:
-
-
<!-- ##### FUNCTION form_field_integer_new ##### -->
<para>
<!-- ##### SECTION Stability_Level ##### -->
-<!-- ##### MACRO TYPE_FORM_FIELD_TEXT ##### -->
-<para>
-
-</para>
-
-
-
-<!-- ##### MACRO FORM_FIELD_TEXT ##### -->
-<para>
-
-</para>
-
-@obj:
-
-
-<!-- ##### MACRO FORM_FIELD_TEXT_CLASS ##### -->
-<para>
-
-</para>
-
-@klass:
-
-
-<!-- ##### MACRO IS_FORM_FIELD_TEXT ##### -->
-<para>
-
-</para>
-
-@obj:
-
-
-<!-- ##### MACRO IS_FORM_FIELD_TEXT_CLASS ##### -->
-<para>
-
-</para>
-
-@klass:
-
-
-<!-- ##### MACRO FORM_FIELD_TEXT_GET_CLASS ##### -->
-<para>
-
-</para>
-
-@obj:
-
-
<!-- ##### STRUCT FormFieldText ##### -->
<para>
</para>
-<!-- ##### FUNCTION form_field_text_get_type ##### -->
-<para>
-
-</para>
-
-@Returns:
-
-
<!-- ##### FUNCTION form_field_text_new ##### -->
<para>
<!-- ##### SECTION Stability_Level ##### -->
-<!-- ##### MACRO TYPE_FORM_KEY ##### -->
-<para>
-
-</para>
-
-
-
-<!-- ##### MACRO FORM_KEY ##### -->
-<para>
-
-</para>
-
-@obj:
-
-
-<!-- ##### MACRO FORM_KEY_CLASS ##### -->
-<para>
-
-</para>
-
-@klass:
-
-
-<!-- ##### MACRO IS_FORM_KEY ##### -->
-<para>
-
-</para>
-
-@obj:
-
-
-<!-- ##### MACRO IS_FORM_KEY_CLASS ##### -->
-<para>
-
-</para>
-
-@klass:
-
-
-<!-- ##### MACRO FORM_KEY_GET_CLASS ##### -->
-<para>
-
-</para>
-
-@obj:
-
-
<!-- ##### STRUCT FormKey ##### -->
<para>
</para>
-<!-- ##### FUNCTION form_key_get_type ##### -->
+<!-- ##### FUNCTION form_key_new ##### -->
<para>
</para>
@Returns:
-<!-- ##### FUNCTION form_key_new ##### -->
+<!-- ##### FUNCTION form_key_add_field ##### -->
<para>
</para>
+@form_key:
+@field:
@Returns:
-<!-- ##### FUNCTION form_key_add_field ##### -->
+<!-- ##### FUNCTION form_key_add_fields ##### -->
<para>
</para>
@form_key:
-@field:
+@Varargs:
@Returns:
<!-- ##### SECTION Stability_Level ##### -->
-<!-- ##### MACRO TYPE_FORM_WIDGET ##### -->
-<para>
-
-</para>
-
-
-
-<!-- ##### MACRO FORM_WIDGET ##### -->
-<para>
-
-</para>
-
-@obj:
-
-
-<!-- ##### MACRO FORM_WIDGET_CLASS ##### -->
-<para>
-
-</para>
-
-@klass:
-
-
-<!-- ##### MACRO IS_FORM_WIDGET ##### -->
-<para>
-
-</para>
-
-@obj:
-
-
-<!-- ##### MACRO IS_FORM_WIDGET_CLASS ##### -->
-<para>
-
-</para>
-
-@klass:
-
-
-<!-- ##### MACRO FORM_WIDGET_GET_CLASS ##### -->
-<para>
-
-</para>
-
-@obj:
-
-
<!-- ##### STRUCT FormWidget ##### -->
<para>
</para>
-<!-- ##### FUNCTION form_widget_get_type ##### -->
+<!-- ##### FUNCTION form_widget_new ##### -->
<para>
</para>
@Returns:
-<!-- ##### FUNCTION form_widget_new ##### -->
+<!-- ##### FUNCTION form_widget_set_from_glade ##### -->
<para>
</para>
+@fwidget:
+@glade:
+@widget_name:
@Returns:
-<!-- ##### FUNCTION form_widget_set_from_glade ##### -->
+<!-- ##### FUNCTION form_widget_get_widget ##### -->
<para>
</para>
@fwidget:
-@glade:
-@widget_name:
@Returns:
-<!-- ##### FUNCTION form_widget_get_widget ##### -->
+<!-- ##### FUNCTION form_widget_get_widget_name ##### -->
<para>
</para>
@Returns:
+<!-- ##### FUNCTION form_widget_set_editable ##### -->
+<para>
+
+</para>
+
+@fwidget:
+@editable:
+
+
<!-- ##### SECTION Stability_Level ##### -->
-<!-- ##### MACRO TYPE_FORM_WIDGET_CHECK ##### -->
-<para>
-
-</para>
-
-
-
-<!-- ##### MACRO FORM_WIDGET_CHECK ##### -->
-<para>
-
-</para>
-
-@obj:
-
-
-<!-- ##### MACRO FORM_WIDGET_CHECK_CLASS ##### -->
-<para>
-
-</para>
-
-@klass:
-
-
-<!-- ##### MACRO IS_FORM_WIDGET_CHECK ##### -->
-<para>
-
-</para>
-
-@obj:
-
-
-<!-- ##### MACRO IS_FORM_WIDGET_CHECK_CLASS ##### -->
-<para>
-
-</para>
-
-@klass:
-
-
-<!-- ##### MACRO FORM_WIDGET_CHECK_GET_CLASS ##### -->
-<para>
-
-</para>
-
-@obj:
-
-
<!-- ##### STRUCT FormWidgetCheck ##### -->
<para>
</para>
-<!-- ##### FUNCTION form_widget_check_get_type ##### -->
+<!-- ##### FUNCTION form_widget_check_new ##### -->
<para>
</para>
@Returns:
-<!-- ##### FUNCTION form_widget_check_new ##### -->
+<!-- ##### FUNCTION form_widget_check_get_value_stringify ##### -->
<para>
</para>
+@widget:
@Returns:
-<!-- ##### FUNCTION form_widget_check_get_value_stringify ##### -->
+<!-- ##### FUNCTION form_widget_check_set_value_stringify ##### -->
<para>
</para>
-@widget:
+@fwidget:
+@value:
@Returns:
-<!-- ##### FUNCTION form_widget_check_set_value_stringify ##### -->
+<!-- ##### FUNCTION form_widget_check_set_editable ##### -->
<para>
</para>
@fwidget:
-@value:
-@Returns:
+@editable:
--- /dev/null
+<!-- ##### SECTION Title ##### -->
+FormWidgetDateEntry
+
+<!-- ##### SECTION Short_Description ##### -->
+
+
+<!-- ##### SECTION Long_Description ##### -->
+<para>
+
+</para>
+
+<!-- ##### SECTION See_Also ##### -->
+<para>
+
+</para>
+
+<!-- ##### SECTION Stability_Level ##### -->
+
+
+<!-- ##### STRUCT FormWidgetDateEntry ##### -->
+<para>
+
+</para>
+
+
+<!-- ##### ARG FormWidgetDateEntry:date-format ##### -->
+<para>
+
+</para>
+
+<!-- ##### ARG FormWidgetDateEntry:separator ##### -->
+<para>
+
+</para>
+
+<!-- ##### FUNCTION form_widget_date_entry_new ##### -->
+<para>
+
+</para>
+
+@Returns:
+
+
+<!-- ##### FUNCTION form_widget_date_entry_get_value_stringify ##### -->
+<para>
+
+</para>
+
+@widget:
+@Returns:
+
+
+<!-- ##### FUNCTION form_widget_date_entry_set_value_stringify ##### -->
+<para>
+
+</para>
+
+@fwidget:
+@value:
+@Returns:
+
+
+<!-- ##### FUNCTION form_widget_date_entry_set_editable ##### -->
+<para>
+
+</para>
+
+@fwidget:
+@editable:
+
+
<!-- ##### SECTION Stability_Level ##### -->
-<!-- ##### MACRO TYPE_FORM_WIDGET_ENTRY ##### -->
-<para>
-
-</para>
-
-
-
-<!-- ##### MACRO FORM_WIDGET_ENTRY ##### -->
-<para>
-
-</para>
-
-@obj:
-
-
-<!-- ##### MACRO FORM_WIDGET_ENTRY_CLASS ##### -->
-<para>
-
-</para>
-
-@klass:
-
-
-<!-- ##### MACRO IS_FORM_WIDGET_ENTRY ##### -->
-<para>
-
-</para>
-
-@obj:
-
-
-<!-- ##### MACRO IS_FORM_WIDGET_ENTRY_CLASS ##### -->
-<para>
-
-</para>
-
-@klass:
-
-
-<!-- ##### MACRO FORM_WIDGET_ENTRY_GET_CLASS ##### -->
-<para>
-
-</para>
-
-@obj:
-
-
<!-- ##### STRUCT FormWidgetEntry ##### -->
<para>
</para>
-<!-- ##### FUNCTION form_widget_entry_get_type ##### -->
+<!-- ##### FUNCTION form_widget_entry_new ##### -->
<para>
</para>
@Returns:
-<!-- ##### FUNCTION form_widget_entry_new ##### -->
+<!-- ##### FUNCTION form_widget_entry_get_value_stringify ##### -->
<para>
</para>
+@widget:
@Returns:
-<!-- ##### FUNCTION form_widget_entry_get_value_stringify ##### -->
+<!-- ##### FUNCTION form_widget_entry_set_value_stringify ##### -->
<para>
</para>
-@widget:
+@fwidget:
+@value:
@Returns:
-<!-- ##### FUNCTION form_widget_entry_set_value_stringify ##### -->
+<!-- ##### FUNCTION form_widget_entry_set_editable ##### -->
<para>
</para>
@fwidget:
-@value:
-@Returns:
+@editable:
<!-- ##### SECTION Stability_Level ##### -->
-<!-- ##### MACRO TYPE_FORM_WIDGET_LABEL ##### -->
-<para>
-
-</para>
-
-
-
-<!-- ##### MACRO FORM_WIDGET_LABEL ##### -->
-<para>
-
-</para>
-
-@obj:
-
-
-<!-- ##### MACRO FORM_WIDGET_LABEL_CLASS ##### -->
-<para>
-
-</para>
-
-@klass:
-
-
-<!-- ##### MACRO IS_FORM_WIDGET_LABEL ##### -->
-<para>
-
-</para>
-
-@obj:
-
-
-<!-- ##### MACRO IS_FORM_WIDGET_LABEL_CLASS ##### -->
-<para>
-
-</para>
-
-@klass:
-
-
-<!-- ##### MACRO FORM_WIDGET_LABEL_GET_CLASS ##### -->
-<para>
-
-</para>
-
-@obj:
-
-
<!-- ##### STRUCT FormWidgetLabel ##### -->
<para>
</para>
-<!-- ##### FUNCTION form_widget_label_get_type ##### -->
-<para>
-
-</para>
-
-@Returns:
-
-
<!-- ##### FUNCTION form_widget_label_new ##### -->
<para>
<!-- ##### SECTION Stability_Level ##### -->
-<!-- ##### MACRO TYPE_FORM_WIDGET_SPIN ##### -->
-<para>
-
-</para>
-
-
-
-<!-- ##### MACRO FORM_WIDGET_SPIN ##### -->
-<para>
-
-</para>
-
-@obj:
-
-
-<!-- ##### MACRO FORM_WIDGET_SPIN_CLASS ##### -->
-<para>
-
-</para>
-
-@klass:
-
-
-<!-- ##### MACRO IS_FORM_WIDGET_SPIN ##### -->
-<para>
-
-</para>
-
-@obj:
-
-
-<!-- ##### MACRO IS_FORM_WIDGET_SPIN_CLASS ##### -->
-<para>
-
-</para>
-
-@klass:
-
-
-<!-- ##### MACRO FORM_WIDGET_SPIN_GET_CLASS ##### -->
-<para>
-
-</para>
-
-@obj:
-
-
<!-- ##### STRUCT FormWidgetSpin ##### -->
<para>
</para>
-<!-- ##### FUNCTION form_widget_spin_get_type ##### -->
+<!-- ##### FUNCTION form_widget_spin_new ##### -->
<para>
</para>
@Returns:
-<!-- ##### FUNCTION form_widget_spin_new ##### -->
+<!-- ##### FUNCTION form_widget_spin_get_value_stringify ##### -->
<para>
</para>
+@widget:
@Returns:
-<!-- ##### FUNCTION form_widget_spin_get_value_stringify ##### -->
+<!-- ##### FUNCTION form_widget_spin_set_value_stringify ##### -->
<para>
</para>
-@widget:
+@fwidget:
+@value:
@Returns:
-<!-- ##### FUNCTION form_widget_spin_set_value_stringify ##### -->
+<!-- ##### FUNCTION form_widget_spin_set_editable ##### -->
<para>
</para>
@fwidget:
-@value:
-@Returns:
+@editable:
<!-- ##### SECTION Stability_Level ##### -->
-<!-- ##### MACRO TYPE_FORM_WIDGET_TEXTVIEW ##### -->
-<para>
-
-</para>
-
-
-
-<!-- ##### MACRO FORM_WIDGET_TEXTVIEW ##### -->
-<para>
-
-</para>
-
-@obj:
-
-
-<!-- ##### MACRO FORM_WIDGET_TEXTVIEW_CLASS ##### -->
-<para>
-
-</para>
-
-@klass:
-
-
-<!-- ##### MACRO IS_FORM_WIDGET_TEXTVIEW ##### -->
-<para>
-
-</para>
-
-@obj:
-
-
-<!-- ##### MACRO IS_FORM_WIDGET_TEXTVIEW_CLASS ##### -->
-<para>
-
-</para>
-
-@klass:
-
-
-<!-- ##### MACRO FORM_WIDGET_TEXTVIEW_GET_CLASS ##### -->
-<para>
-
-</para>
-
-@obj:
-
-
<!-- ##### STRUCT FormWidgetTextview ##### -->
<para>
</para>
-<!-- ##### FUNCTION form_widget_textview_get_type ##### -->
+<!-- ##### FUNCTION form_widget_textview_new ##### -->
<para>
</para>
@Returns:
-<!-- ##### FUNCTION form_widget_textview_new ##### -->
+<!-- ##### FUNCTION form_widget_textview_get_value_stringify ##### -->
<para>
</para>
+@widget:
@Returns:
-<!-- ##### FUNCTION form_widget_textview_get_value_stringify ##### -->
+<!-- ##### FUNCTION form_widget_textview_set_value_stringify ##### -->
<para>
</para>
-@widget:
+@fwidget:
+@value:
@Returns:
-<!-- ##### FUNCTION form_widget_textview_set_value_stringify ##### -->
+<!-- ##### FUNCTION form_widget_textview_set_editable ##### -->
<para>
</para>
@fwidget:
-@value:
-@Returns:
+@editable:
"form-widget", &fw,
NULL);
- if (IS_FORM_WIDGET (fw)
+ if (IS_FORM_WIDGET (fw))
{
ret = form_widget_get_value_stringify (fw);
}
/**
* form_add_field:
- * @form:
- * @field:
+ * @form: a #Form object.
+ * @field: a #FormField object.
*
*/
gboolean
/**
* form_remove_field:
- * @form:
- * @field:
+ * @form: a #Form object.
+ * @field: a #FormField object.
*
*/
gboolean
/**
* form_add_fields:
- * @form:
+ * @form: a #Form object.
*
*/
gboolean
/**
* form_get_field_from_name:
- * @form:
+ * @form: a #Form object.
* @field_name:
*
*/
/**
* form_get_widget_from_name:
- * @form:
+ * @form: a #Form object.
* @widget_name:
*
*/
while (fields != NULL)
{
widget = form_field_get_form_widget ((FormField *)fields->data);
-
+
+ if (strcmp (form_widget_get_widget_name (widget), widget_name) == 0)
+ {
+ widget_ret = widget;
+ break;
+ }
fields = g_list_next (fields);
}
/**
* form_clear:
- * @form:
+ * @form: a #Form object.
*
*/
gboolean
/**
* form_check:
- * @form:
+ * @form: a #Form object.
*
* Returns: TRUE if all obligatory fields are full.
*/
return ret;
}
+/**
+ * form_set_sensitive:
+ * @form: a #Form object.
+ * @sensitive: whether to set every #Form's widget sensitive or not.
+ *
+ */
+void
+form_set_sensitive (Form *form, gboolean sensitive)
+{
+ FormWidget *fwidget;
+ FormPrivate *priv = FORM_GET_PRIVATE (form);
+ GtkWidget *widget;
+
+ GList *fields = g_list_first (priv->fields);
+ while (fields != NULL)
+ {
+ fwidget = form_field_get_form_widget ((FormField *)fields->data);
+
+ widget = form_widget_get_widget (fwidget);
+ gtk_widget_set_sensitive (widget, sensitive);
+
+ fields = g_list_next (fields);
+ }
+}
+
+/**
+ * form_set_editable:
+ * @form: a #Form object.
+ * @editable: whether to set every #Form's widget editable or not.
+ *
+ */
+void
+form_set_editable (Form *form, gboolean editable)
+{
+ FormWidget *fwidget;
+ FormPrivate *priv = FORM_GET_PRIVATE (form);
+
+ GList *fields = g_list_first (priv->fields);
+ while (fields != NULL)
+ {
+ fwidget = form_field_get_form_widget ((FormField *)fields->data);
+
+ form_widget_set_editable (fwidget, editable);
+
+ fields = g_list_next (fields);
+ }
+}
+
/**
* form_get_sql:
- * @form:
- * @type:
+ * @form: a #Form object.
+ * @type: SQL's type that returns.
*
+ * Returns: the SQL string.
*/
gchar
*form_get_sql (Form *form, FormSqlType type)
return sql;
}
+/**
+ * form_fill_from_datamodel:
+ * @form: a #Form object.
+ * @dm: the #GdaDataModel from which fill the #Form.
+ * @row: the #GdaDataModel's row from which read data.
+ *
+ */
gboolean
form_fill_from_datamodel (Form *form, GdaDataModel *dm, gint row)
{
/**
* form_key_add_field:
- * @form_key:
- * @field:
+ * @form_key: a #FormKey object.
+ * @field: a #FormField object.
*
*/
gboolean
/**
* form_key_remove_field:
- * @form_key:
- * @field:
+ * @form_key: a #FormKey object.
+ * @field: a #FormField object.
*
*/
gboolean
/**
* form_key_add_fields:
- * @form_key:
+ * @form_key: a #FormKey object.
*
*/
gboolean
/**
* form_key_check:
- * @form_key:
+ * @form_key: a #FormKey object.
*
* Returns: TRUE if all obligatory fields are full.
*/
/**
* form_key_get_sql:
- * @form_key:
+ * @form_key: a #FormKey object.
*
*/
gchar
/**
* form_key_field_is_key:
- * @form_key:
- * @field:
+ * @form_key: a #FormKey object.
+ * @field: a #FormField object.
*
* Returns: TRUE if @field is part of @form_key.
*/
gboolean form_check (Form *form);
+void form_set_sensitive (Form *form, gboolean sensitive);
+void form_set_editable (Form *form, gboolean editable);
+
typedef enum
{
FORM_SQL_SELECT,
const gchar *(*get_value_stringify) (FormWidget *fwidget);
gboolean (*set_value_stringify) (FormWidget *fwidget, const gchar *value);
+
+ void (*set_editable) (FormWidget *fwidget, gboolean editable);
};
GType form_widget_get_type (void) G_GNUC_CONST;
gboolean form_widget_set_value_stringify (FormWidget *fwidget, const gchar *value);
+void form_widget_set_editable (FormWidget *fwidget, gboolean editable);
+
G_END_DECLS
gboolean form_widget_check_set_value_stringify (FormWidget *fwidget, const gchar *value);
+void form_widget_check_set_editable (FormWidget *fwidget, gboolean editable);
+
G_END_DECLS
gboolean form_widget_combo_box_set_value_stringify (FormWidget *fwidget, const gchar *value);
+void form_widget_combo_box_set_editable (FormWidget *fwidget, gboolean editable);
+
G_END_DECLS
gboolean form_widget_date_entry_set_value_stringify (FormWidget *fwidget, const gchar *value);
+void form_widget_date_entry_set_editable (FormWidget *fwidget, gboolean editable);
+
G_END_DECLS
gboolean form_widget_entry_set_value_stringify (FormWidget *fwidget, const gchar *value);
+void form_widget_entry_set_editable (FormWidget *fwidget, gboolean editable);
+
G_END_DECLS
gboolean form_widget_spin_set_value_stringify (FormWidget *fwidget, const gchar *value);
+void form_widget_spin_set_editable (FormWidget *fwidget, gboolean editable);
+
G_END_DECLS
gboolean form_widget_textview_set_value_stringify (FormWidget *fwidget, const gchar *value);
+void form_widget_textview_set_editable (FormWidget *fwidget, gboolean editable);
+
G_END_DECLS
{
GObjectClass *object_class = G_OBJECT_CLASS (klass);
+ klass->get_value_stringify = NULL;
+ klass->set_value_stringify = NULL;
+ klass->set_editable = NULL;
+
object_class->set_property = form_widget_set_property;
object_class->get_property = form_widget_get_property;
const gchar
*form_widget_get_value_stringify (FormWidget *fwidget)
{
- if (IS_FORM_WIDGET (fwidget))
+ if (IS_FORM_WIDGET (fwidget) && FORM_WIDGET_GET_CLASS (fwidget)->get_value_stringify != NULL)
{
FORM_WIDGET_GET_CLASS (fwidget)->get_value_stringify (fwidget);
}
gboolean
form_widget_set_value_stringify (FormWidget *fwidget, const gchar *value)
{
- if (IS_FORM_WIDGET (fwidget))
+ if (IS_FORM_WIDGET (fwidget) && FORM_WIDGET_GET_CLASS (fwidget)->set_value_stringify != NULL)
{
FORM_WIDGET_GET_CLASS (fwidget)->set_value_stringify (fwidget, value);
}
}
+/**
+ * form_widget_set_editable:
+ * @fwidget:
+ * @editable:
+ *
+ */
+void
+form_widget_set_editable (FormWidget *fwidget, gboolean editable)
+{
+ if (IS_FORM_WIDGET (fwidget) && FORM_WIDGET_GET_CLASS (fwidget)->set_editable != NULL)
+ {
+ FORM_WIDGET_GET_CLASS (fwidget)->set_editable (fwidget, editable);
+ }
+}
+
/* PRIVATE */
static void
form_widget_set_property (GObject *object,
widget_class->get_value_stringify = form_widget_check_get_value_stringify;
widget_class->set_value_stringify = form_widget_check_set_value_stringify;
+ widget_class->set_editable = form_widget_check_set_editable;
g_type_class_add_private (object_class, sizeof (FormWidgetCheckPrivate));
}
return ret;
}
+/**
+ * form_widget_check_set_editable:
+ * @fwidget: a #FormWidget object.
+ * @editable:
+ *
+ */
+void
+form_widget_check_set_editable (FormWidget *fwidget, gboolean editable)
+{
+ GtkWidget *w;
+
+ g_object_get (G_OBJECT (fwidget),
+ "widget", &w,
+ NULL);
+
+ gtk_widget_set_sensitive (w, editable);
+}
+
/* PRIVATE */
static void
form_widget_check_set_property (GObject *object,
widget_class->get_value_stringify = form_widget_combo_box_get_value_stringify;
widget_class->set_value_stringify = form_widget_combo_box_set_value_stringify;
+ widget_class->set_editable = form_widget_combo_box_set_editable;
g_object_class_install_property (object_class, PROP_COLUMN_FIELD,
g_param_spec_int ("column-field",
return ret;
}
+/**
+ * form_widget_combo_box_set_editable:
+ * @fwidget: a #FormWidget object.
+ * @editable:
+ *
+ */
+void
+form_widget_combo_box_set_editable (FormWidget *fwidget, gboolean editable)
+{
+ GtkWidget *w;
+
+ g_object_get (G_OBJECT (fwidget),
+ "widget", &w,
+ NULL);
+
+ gtk_widget_set_sensitive (w, editable);
+}
+
/* PRIVATE */
static void
form_widget_combo_box_set_property (GObject *object,
widget_class->get_value_stringify = form_widget_date_entry_get_value_stringify;
widget_class->set_value_stringify = form_widget_date_entry_set_value_stringify;
+ widget_class->set_editable = form_widget_date_entry_set_editable;
g_object_class_install_property (object_class, PROP_DATE_FORMAT,
g_param_spec_string ("date-format",
return ret;
}
+/**
+ * form_widget_date_entry_set_editable:
+ * @fwidget:
+ * @editable:
+ *
+ */
+void
+form_widget_date_entry_set_editable (FormWidget *fwidget, gboolean editable)
+{
+ GtkWidget *w;
+
+ g_object_get (G_OBJECT (fwidget),
+ "widget", &w,
+ NULL);
+
+ gtk_date_entry_set_editable (GTK_DATE_ENTRY (w), editable);
+}
+
/* PRIVATE */
static void
form_widget_date_entry_set_property (GObject *object,
widget_class->get_value_stringify = form_widget_entry_get_value_stringify;
widget_class->set_value_stringify = form_widget_entry_set_value_stringify;
+ widget_class->set_editable = form_widget_entry_set_editable;
g_type_class_add_private (object_class, sizeof (FormWidgetEntryPrivate));
}
return ret;
}
+/**
+ * form_widget_set_editable:
+ * @fwidget:
+ * @editable:
+ *
+ */
+void
+form_widget_entry_set_editable (FormWidget *fwidget, gboolean editable)
+{
+ GtkWidget *w;
+
+ g_object_get (G_OBJECT (fwidget),
+ "widget", &w,
+ NULL);
+
+ gtk_editable_set_editable (GTK_EDITABLE (w), editable);
+}
+
/* PRIVATE */
static void
form_widget_entry_set_property (GObject *object,
widget_class->get_value_stringify = form_widget_spin_get_value_stringify;
widget_class->set_value_stringify = form_widget_spin_set_value_stringify;
+ widget_class->set_editable = form_widget_spin_set_editable;
g_type_class_add_private (object_class, sizeof (FormWidgetSpinPrivate));
}
/**
* form_widget_spin_get_value_stringify:
- * @widget:
+ * @widget: a #FormWidget object.
*
*/
const gchar
/**
* form_widget_spin_set_value_stringify:
- * @fwidget:
+ * @fwidget: a #FormWidget object.
* @value:
*
*/
return ret;
}
+/**
+ * form_widget_spin_set_editable:
+ * @fwidget: a #FormWidget object.
+ * @editable:
+ *
+ */
+void
+form_widget_spin_set_editable (FormWidget *fwidget, gboolean editable)
+{
+ GtkWidget *w;
+
+ g_object_get (G_OBJECT (fwidget),
+ "widget", &w,
+ NULL);
+
+ gtk_editable_set_editable (GTK_EDITABLE (w), editable);
+}
+
/* PRIVATE */
static void
form_widget_spin_set_property (GObject *object,
widget_class->get_value_stringify = form_widget_textview_get_value_stringify;
widget_class->set_value_stringify = form_widget_textview_set_value_stringify;
+ widget_class->set_editable = form_widget_textview_set_editable;
g_type_class_add_private (object_class, sizeof (FormWidgetTextviewPrivate));
}
/**
* form_widget_textview_get_value_stringify:
- * @widget:
+ * @widget: a #FormWidget object.
*
*/
const gchar
/**
* form_widget_textview_set_value_stringify:
- * @fwidget:
+ * @fwidget: a #FormWidget object.
* @value:
*
*/
return ret;
}
+/**
+ * form_widget_textview_set_editable:
+ * @fwidget: a #FormWidget object.
+ * @editable:
+ *
+ */
+void
+form_widget_textview_set_editable (FormWidget *fwidget, gboolean editable)
+{
+ GtkWidget *w;
+
+ g_object_get (G_OBJECT (fwidget),
+ "widget", &w,
+ NULL);
+
+ gtk_text_view_set_editable (GTK_TEXT_VIEW (w), editable);
+}
+
/* PRIVATE */
static void
form_widget_textview_set_property (GObject *object,
GtkWidget *w;
GtkWidget *txtvSql;
+GtkWidget *tbtnEditable;
+GtkWidget *tbtnSensitive;
void
on_btnClear_clicked (GtkButton *button,
}
}
+void
+on_tbtnEditable_toggled (GtkToggleButton *button,
+ gpointer user_data)
+{
+ if (gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (tbtnEditable)))
+ {
+ gtk_button_set_label (GTK_BUTTON (tbtnEditable), "Not Editable");
+ form_set_editable (form, FALSE);
+ }
+ else
+ {
+ gtk_button_set_label (GTK_BUTTON (tbtnEditable), "Editable");
+ form_set_editable (form, TRUE);
+ }
+}
+
+void
+on_tbtnSensitive_toggled (GtkToggleButton *button,
+ gpointer user_data)
+{
+ if (gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (tbtnSensitive)))
+ {
+ gtk_button_set_label (GTK_BUTTON (tbtnSensitive), "Not Sensitive");
+ form_set_sensitive (form, FALSE);
+ }
+ else
+ {
+ gtk_button_set_label (GTK_BUTTON (tbtnSensitive), "Sensitive");
+ form_set_sensitive (form, TRUE);
+ }
+}
+
void
on_btnSqlSelect_clicked (GtkButton *button,
gpointer user_data)
w = glade_xml_get_widget (glade, "wMain");
+ tbtnEditable = glade_xml_get_widget (glade, "tbtnEditable");
+ tbtnSensitive = glade_xml_get_widget (glade, "tbtnSensitive");
+
form = form_new ();
if (form == NULL) return 0;
</child>
<child>
- <widget class="GtkHButtonBox" id="hbuttonbox1">
+ <widget class="GtkHBox" id="hbox1">
<property name="visible">True</property>
- <property name="layout_style">GTK_BUTTONBOX_DEFAULT_STYLE</property>
- <property name="spacing">0</property>
+ <property name="homogeneous">False</property>
+ <property name="spacing">4</property>
<child>
<widget class="GtkButton" id="btnClear">
<property name="visible">True</property>
- <property name="can_default">True</property>
<property name="can_focus">True</property>
<property name="label">gtk-clear</property>
<property name="use_stock">True</property>
<property name="relief">GTK_RELIEF_NORMAL</property>
<property name="focus_on_click">True</property>
- <signal name="clicked" handler="on_btnClear_clicked" last_modification_time="Mon, 05 Dec 2005 12:14:22 GMT"/>
+ <signal name="clicked" handler="on_btnClear_clicked" last_modification_time="Sun, 14 Jan 2007 11:09:48 GMT"/>
</widget>
+ <packing>
+ <property name="padding">0</property>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
+ </packing>
</child>
<child>
<widget class="GtkButton" id="btnCheck">
<property name="visible">True</property>
- <property name="can_default">True</property>
<property name="can_focus">True</property>
- <property name="label" translatable="yes">Check Form</property>
+ <property name="label" translatable="yes">Check</property>
+ <property name="use_underline">True</property>
+ <property name="relief">GTK_RELIEF_NORMAL</property>
+ <property name="focus_on_click">True</property>
+ <signal name="clicked" handler="on_btnCheck_clicked" last_modification_time="Sun, 14 Jan 2007 11:09:53 GMT"/>
+ </widget>
+ <packing>
+ <property name="padding">0</property>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
+ </packing>
+ </child>
+
+ <child>
+ <widget class="GtkToggleButton" id="tbtnEditable">
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="label" translatable="yes">Editable</property>
<property name="use_underline">True</property>
<property name="relief">GTK_RELIEF_NORMAL</property>
<property name="focus_on_click">True</property>
- <signal name="clicked" handler="on_btnCheck_clicked" last_modification_time="Sat, 02 Sep 2006 08:07:32 GMT"/>
+ <property name="active">False</property>
+ <property name="inconsistent">False</property>
+ <signal name="toggled" handler="on_tbtnEditable_toggled" last_modification_time="Sun, 14 Jan 2007 11:10:15 GMT"/>
</widget>
+ <packing>
+ <property name="padding">0</property>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
+ </packing>
+ </child>
+
+ <child>
+ <widget class="GtkToggleButton" id="tbtnSensitive">
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="label" translatable="yes">Sensitive</property>
+ <property name="use_underline">True</property>
+ <property name="relief">GTK_RELIEF_NORMAL</property>
+ <property name="focus_on_click">True</property>
+ <property name="active">False</property>
+ <property name="inconsistent">False</property>
+ <signal name="toggled" handler="on_tbtnSensitive_toggled" last_modification_time="Sun, 14 Jan 2007 11:10:19 GMT"/>
+ </widget>
+ <packing>
+ <property name="padding">0</property>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
+ </packing>
</child>
</widget>
<packing>
<child>
<widget class="GtkHButtonBox" id="hbuttonbox2">
<property name="visible">True</property>
- <property name="layout_style">GTK_BUTTONBOX_DEFAULT_STYLE</property>
+ <property name="layout_style">GTK_BUTTONBOX_START</property>
<property name="spacing">0</property>
<child>