![]() |
![]() |
![]() |
Libgnomedb 3.0 Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Implemented Interfaces | Properties | Signals |
GnomeDbRawGrid; GnomeDbRawGridClass; GnomeDbRawGridPriv; GtkWidget * gnome_db_raw_grid_new (GdaDataModel *model); GList * gnome_db_raw_grid_get_selection (GnomeDbRawGrid *grid); void gnome_db_raw_grid_set_sample_size (GnomeDbRawGrid *grid, gint sample_size); void gnome_db_raw_grid_set_sample_start (GnomeDbRawGrid *grid, gint sample_start);
GObject +----GInitiallyUnowned +----GtkObject +----GtkWidget +----GtkContainer +----GtkTreeView +----GnomeDbRawGrid
GnomeDbRawGrid implements GtkBuildable, AtkImplementorIface and GnomeDbDataWidget.
"global-actions-visible" gboolean : Read / Write "info-cell-visible" gboolean : Read / Write "model" GdaDataModel* : Read / Write
This widget only contains data, it has no decoration, or button to change the displayed row, or any indicator about the current displayed row or the total number of rows. To have a complete grid widget, see the GnomeDbGrid widget.
This widget is itself a GtkTreeView widget.
typedef struct { GtkTreeViewClass parent_class; void (* selection_changed) (GnomeDbRawGrid *grid, gboolean row_selected); void (* double_clicked) (GnomeDbRawGrid *grid, gint row); void (* populate_popup) (GnomeDbRawGrid *grid, GtkMenu *menu); } GnomeDbRawGridClass;
GtkWidget * gnome_db_raw_grid_new (GdaDataModel *model);
Creates a new GnomeDbRawGrid widget suitable to display the data in model
|
a GdaDataModel |
Returns : |
the new widget |
GList * gnome_db_raw_grid_get_selection (GnomeDbRawGrid *grid);
Returns the list of the currently selected rows in a GnomeDbRawGrid widget. The returned value is a list of integers, which represent each of the selected rows.
If new rows have been inserted, then those new rows will have a row number equal to -1.
|
a GnomeDbRawGrid widget |
Returns : |
a new list, should be freed (by calling g_list_free) when no longer needed. |
void gnome_db_raw_grid_set_sample_size (GnomeDbRawGrid *grid, gint sample_size);
|
|
|
void gnome_db_raw_grid_set_sample_start (GnomeDbRawGrid *grid, gint sample_start);
|
|
|
"global-actions-visible"
property"global-actions-visible" gboolean : Read / Write
Global Actions visible.
Default value: FALSE
"info-cell-visible"
property"info-cell-visible" gboolean : Read / Write
Info cell visible.
Default value: FALSE
"double-clicked"
signalvoid user_function (GnomeDbRawGrid *dbrawgrid, gint arg1, gpointer user_data) : Run First
|
the object which received the signal. |
|
|
|
user data set when the signal handler was connected. |
"populate-popup"
signalvoid user_function (GnomeDbRawGrid *dbrawgrid, GtkMenu *arg1, gpointer user_data) : Run First
|
the object which received the signal. |
|
|
|
user data set when the signal handler was connected. |
"selection-changed"
signalvoid user_function (GnomeDbRawGrid *dbrawgrid, gboolean arg1, gpointer user_data) : Run First
|
the object which received the signal. |
|
|
|
user data set when the signal handler was connected. |
The GnomeDbRawForm widget which displays the same information but as form instead of a grid.