## gnome-db-form

gnome-db-form —

##

# Synopsis

    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);

## Description

## Details

### struct GnomeDbFormPrivate

    struct GnomeDbFormPrivate;

### enum GnomeDbFormType

    typedef enum {
    	GNOME_DB_FORM_TYPE_NAVIGATOR,
    	GNOME_DB_FORM_TYPE_LIST
    } GnomeDbFormType;

### gnome_db_form_new ()

    GtkWidget*  gnome_db_form_new               (void);

Create a new GnomeDbForm widget, which is a high-level widget which lets you display recordsets in many different ways, such as a list, record-by-record, etc.

Returns : | the newly created widget.

### gnome_db_form_get_form_type ()

    GnomeDbFormType gnome_db_form_get_form_type (GnomeDbForm *form);

`form` : |
Returns : |

### gnome_db_form_set_form_type ()

    void        gnome_db_form_set_form_type     (GnomeDbForm *form,
                                                 GnomeDbFormType type);

`form` : |
`type` : |

### gnome_db_form_get_model ()

    GdaDataModel* gnome_db_form_get_model       (GnomeDbForm *form);

Return the GdaDataModel being used by the given widget.

`form` : | a GnomeDbForm widget.
Returns : |

### gnome_db_form_set_model ()

    void        gnome_db_form_set_model         (GnomeDbForm *form,
                                                 GdaDataModel *model);

`form` : | a GnomeDbForm widget.
`model` : | the data model to associate the widget with.

### gnome_db_form_get_current_row ()

    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 GnomeDbForm widget.
Returns : | the current row.

### gnome_db_form_set_current_row ()

    void        gnome_db_form_set_current_row   (GnomeDbForm *form,
                                                 gint row);

Sets the current row on the given form widget.

`form` : | a GnomeDbForm widget.
`row` : | the new row to display.