GdauiGrid

GdauiGrid

Synopsis

                    GdauiGrid;
GtkWidget *         gdaui_grid_new                      (GdaDataModel *model);
GList *             gdaui_grid_get_selection            (GdauiGrid *grid);
void                gdaui_grid_set_sample_size          (GdauiGrid *grid,
                                                         gint sample_size);

Object Hierarchy

  GObject
   +----GInitiallyUnowned
         +----GtkObject
               +----GtkWidget
                     +----GtkContainer
                           +----GtkBox
                                 +----GtkVBox
                                       +----GdauiGrid

Implemented Interfaces

GdauiGrid implements GtkBuildable, GtkOrientable and AtkImplementorIface.

Properties

  "model"                    GdaDataModel*         : Read / Write / Construct Only
  "raw-grid"                 GdauiRawGrid*         : Read
  "widget-info"              GdauiDataWidgetInfo*  : Read

Description

Details

GdauiGrid

typedef struct _GdauiGrid GdauiGrid;


gdaui_grid_new ()

GtkWidget *         gdaui_grid_new                      (GdaDataModel *model);

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

model :

a GdaDataModel

Returns :

the new widget

gdaui_grid_get_selection ()

GList *             gdaui_grid_get_selection            (GdauiGrid *grid);

Returns the list of the currently selected rows in a GdauiGrid 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 gdaui_raw_grid_get_selection() function.

grid :

a GdauiGrid widget

Returns :

a new list, should be freed (by calling g_list_free) when no longer needed.

gdaui_grid_set_sample_size ()

void                gdaui_grid_set_sample_size          (GdauiGrid *grid,
                                                         gint sample_size);

grid :

a GdauiGrid widget

sample_size :

Property Details

The "model" property

  "model"                    GdaDataModel*         : Read / Write / Construct Only


The "raw-grid" property

  "raw-grid"                 GdauiRawGrid*         : Read


The "widget-info" property

  "widget-info"              GdauiDataWidgetInfo*  : Read