GnomeDbCombo

GnomeDbCombo —

Synopsis




            GnomeDbComboPrivate;
GtkWidget*  gnome_db_combo_new              (void);
GtkWidget*  gnome_db_combo_new_with_model   (GdaDataModel *model,
                                             gint col);
void        gnome_db_combo_set_model        (GnomeDbCombo *combo,
                                             GdaDataModel *model,
                                             gint col);
GdaDataModel* gnome_db_combo_get_model      (GnomeDbCombo *combo);
gint        gnome_db_combo_get_column       (GnomeDbCombo *combo);

Description

Details

GnomeDbComboPrivate

typedef struct _GnomeDbComboPrivate GnomeDbComboPrivate;


gnome_db_combo_new ()

GtkWidget*  gnome_db_combo_new              (void);

Create a new GnomeDbCombo widget.

Returns : the newly-created widget.

gnome_db_combo_new_with_model ()

GtkWidget*  gnome_db_combo_new_with_model   (GdaDataModel *model,
                                             gint col);

Create a new GnomeDbCombo widget with a model.

model : a GdaDataModel object.
col : the column in the model to be shown.
Returns : the newly-created widget.

gnome_db_combo_set_model ()

void        gnome_db_combo_set_model        (GnomeDbCombo *combo,
                                             GdaDataModel *model,
                                             gint col);

Associate a GdaDataModel with the given combo widget. Doing so makes the combo widget refresh its list of values and display the values contained in the model, in the given position. A NULL model will make the combo empty and disassociate the previous model, if any.

combo : a GnomeDbCombo widget.
model : a GdaDataModel object.
col : column in the model to be shown.

gnome_db_combo_get_model ()

GdaDataModel* gnome_db_combo_get_model      (GnomeDbCombo *combo);

This function returns the GdaDataModel stored in the GnomeDbCombo.

combo : a GnomeDbCombo widget.
Returns : a GdaDataModel containing the data from the GnomeDbCombo widget.

gnome_db_combo_get_column ()

gint        gnome_db_combo_get_column       (GnomeDbCombo *combo);

This function return the column.

combo : a GnomeDbCombo widget.
Returns : the column of the GdaDataModel stored by the GnomeDbCombo.