![]() |
![]() |
![]() |
Libgnomedb Reference Manual | ![]() |
---|
GnomeDbRawGridGnomeDbRawGrid — Grid to display and modify data in a GnomeDbDataModel |
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 +----GtkObject +----GtkWidget +----GtkContainer +----GtkTreeView +----GnomeDbRawGrid
"double-clicked" void user_function (GnomeDbRawGrid *dbrawgrid, gint arg1, gpointer user_data); "populate-popup" void user_function (GnomeDbRawGrid *dbrawgrid, gpointer arg1, gpointer user_data); "selection-changed" void user_function (GnomeDbRawGrid *dbrawgrid, gboolean arg1, gpointer user_data);
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 form 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
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.
grid : |
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);
grid : |
|
sample_size : |
void gnome_db_raw_grid_set_sample_start (GnomeDbRawGrid *grid, gint sample_start);
grid : |
|
sample_start : |
void user_function (GnomeDbRawGrid *dbrawgrid, gint arg1, gpointer user_data);
dbrawgrid : |
the object which received the signal. |
arg1 : |
|
user_data : |
user data set when the signal handler was connected. |
void user_function (GnomeDbRawGrid *dbrawgrid, gpointer arg1, gpointer user_data);
dbrawgrid : |
the object which received the signal. |
arg1 : |
|
user_data : |
user data set when the signal handler was connected. |
void user_function (GnomeDbRawGrid *dbrawgrid, gboolean arg1, gpointer user_data);
dbrawgrid : |
the object which received the signal. |
arg1 : |
|
user_data : |
user data set when the signal handler was connected. |
The GnomeDbRawForm widget which displays the same information but as form instead of a grid.
<< GnomeDbForm | GnomeDbGrid >> |