GnomeDbGrid

GnomeDbGrid — Database grid widget to display and modify data in a GnomeDbDataModel, with command buttons and indicators

Synopsis




            GnomeDbGrid;
            GnomeDbGridClass;
            GnomeDbGridPriv;
GtkWidget*  gnome_db_grid_new               (GdaDataModel *model);
GList*      gnome_db_grid_get_selection     (GnomeDbGrid *grid);
void        gnome_db_grid_set_sample_size   (GnomeDbGrid *grid,
                                             gint sample_size);

Object Hierarchy


  GObject
   +----GtkObject
         +----GtkWidget
               +----GtkContainer
                     +----GtkBox
                           +----GtkVBox
                                 +----GnomeDbGrid

Implemented Interfaces

GnomeDbGrid implements AtkImplementorIface.

Properties


  "raw-grid"             gpointer              : Read
  "widget-info"          gpointer              : Read

Description

Details

GnomeDbGrid

typedef struct _GnomeDbGrid GnomeDbGrid;


GnomeDbGridClass

typedef struct {
	GtkVBoxClass       parent_class;
} GnomeDbGridClass;


GnomeDbGridPriv

typedef struct _GnomeDbGridPriv GnomeDbGridPriv;


gnome_db_grid_new ()

GtkWidget*  gnome_db_grid_new               (GdaDataModel *model);

Creates a new GnomeDbGrid widget suitable to display the data in model

model : a GdaDataModel
Returns : the new widget

gnome_db_grid_get_selection ()

GList*      gnome_db_grid_get_selection     (GnomeDbGrid *grid);

Returns the list of the currently selected rows in a GnomeDbGrid 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. This function is a wrapper around the gnome_db_raw_grid_get_selection() function.

grid : a GnomeDbGrid widget
Returns : a new list, should be freed (by calling g_list_free) when no longer needed.

gnome_db_grid_set_sample_size ()

void        gnome_db_grid_set_sample_size   (GnomeDbGrid *grid,
                                             gint sample_size);

grid : a GnomeDbGrid widget
sample_size :

Properties

The "raw-grid" property

  "raw-grid"             gpointer              : Read


The "widget-info" property

  "widget-info"          gpointer              : Read

See Also

The GnomeDbRawGrid widget which is being used in this widget, or the GnomeDbForm widget which displays data in a form instead of a grid.