| libgnomedb Reference Manual |
|---|
struct GnomeDbFormPrivate; enum GnomeDbFormType; GtkWidget* gnome_db_form_new (void); GnomeDbFormType gnome_db_form_get_form_type (GnomeDbForm *form); void gnome_db_form_set_form_type (GnomeDbForm *form, GnomeDbFormType type); GdaDataModel* gnome_db_form_get_model (GnomeDbForm *form); void gnome_db_form_set_model (GnomeDbForm *form, GdaDataModel *model); gint gnome_db_form_get_current_row (GnomeDbForm *form); void gnome_db_form_set_current_row (GnomeDbForm *form, gint row);
typedef enum {
GNOME_DB_FORM_TYPE_NAVIGATOR,
GNOME_DB_FORM_TYPE_LIST
} GnomeDbFormType;GtkWidget* gnome_db_form_new (void);
Create a new
| Returns : | the newly created widget. |
GnomeDbFormType gnome_db_form_get_form_type (GnomeDbForm *form);
| form : | |
| Returns : |
|
void gnome_db_form_set_form_type (GnomeDbForm *form,
GnomeDbFormType type);| form : | |
| type : |
|
GdaDataModel* gnome_db_form_get_model (GnomeDbForm *form);
Return the
| form : | a |
| Returns : |
|
void gnome_db_form_set_model (GnomeDbForm *form,
GdaDataModel *model);| form : | a |
| model : | the data model to associate the widget with. |
gint gnome_db_form_get_current_row (GnomeDbForm *form);
Get the row currently being shown (navigator form) or currently selected (list form) by the given form widget.
| form : | a |
| Returns : | the current row. |
| <<< GnomeDbError | GnomeDbGrid >>> |