![]() |
![]() |
![]() |
libgnomedb Reference Manual | ![]() |
---|---|---|---|---|
Top | Description |
GnomeDbFindDialogPrivate; GtkWidget * gnome_db_find_dialog_new (const gchar *title
); GtkWidget * gnome_db_find_dialog_new_with_model (const gchar *title
,GdaDataModel *dm
); gboolean gnome_db_find_dialog_run (GnomeDbFindDialog *dialog
); void gnome_db_find_dialog_add_field (GnomeDbFindDialog *dialog
,const gchar *field
); void gnome_db_find_dialog_add_fields_from_model (GnomeDbFindDialog *dialog
,GdaDataModel *dm
); const gchar * gnome_db_find_dialog_get_field (GnomeDbFindDialog *dialog
); const gchar * gnome_db_find_dialog_get_text (GnomeDbFindDialog *dialog
);
GtkWidget * gnome_db_find_dialog_new (const gchar *title
);
Creates a new GnomeDbFindDialog.
|
the title of the dialog |
Returns : |
a GnomeDbFindDialog |
GtkWidget * gnome_db_find_dialog_new_with_model (const gchar *title
,GdaDataModel *dm
);
Creates a new GnomeDbFindDialog and adds the fields of dm
to the Fields
combo.
|
the title of the dialog |
|
a GdaDataModel |
Returns : |
a GnomeDbFindDialog |
gboolean gnome_db_find_dialog_run (GnomeDbFindDialog *dialog
);
Shows the dialog
to the user and wait for his/her input.
|
a GnomeDbFindDialog |
Returns : |
true if the user clicks "find", false otherwise. |
void gnome_db_find_dialog_add_field (GnomeDbFindDialog *dialog
,const gchar *field
);
Adds field
to the Fields combo.
|
a GnomeDbFindDialog |
|
the field's name |
void gnome_db_find_dialog_add_fields_from_model (GnomeDbFindDialog *dialog
,GdaDataModel *dm
);
Adds all the fields of dm
into the Fields combo.
|
a GnomeDbFindDialog |
|
a GdaDataModel |
const gchar * gnome_db_find_dialog_get_field (GnomeDbFindDialog *dialog
);
Gets the currently selected field in dialog
.
|
a GnomeDbFindDialog widget |
Returns : |
name of the selected field |
const gchar * gnome_db_find_dialog_get_text (GnomeDbFindDialog *dialog
);
Gets the current search text in dialog
.
|
a GnomeDbFindDialog widget |
Returns : |
text to find |