GdauiRawGrid

GdauiRawGrid

Synopsis

                    GdauiRawGrid;
GtkWidget *         gdaui_raw_grid_new                  (GdaDataModel *model);
void                gdaui_raw_grid_set_sample_size      (GdauiRawGrid *grid,
                                                         gint sample_size);
void                gdaui_raw_grid_set_sample_start     (GdauiRawGrid *grid,
                                                         gint sample_start);
GList *             gdaui_raw_grid_get_selection        (GdauiRawGrid *grid);

Object Hierarchy

  GObject
   +----GInitiallyUnowned
         +----GtkObject
               +----GtkWidget
                     +----GtkContainer
                           +----GtkTreeView
                                 +----GdauiRawGrid

Implemented Interfaces

GdauiRawGrid implements GtkBuildable, GdauiDataWidget and AtkImplementorIface.

Properties

  "data-layout"              gpointer              : Write
  "global-actions-visible"   gboolean              : Read / Write
  "info-cell-visible"        gboolean              : Read / Write
  "model"                    GdaDataModel*         : Read / Write

Signals

  "double-clicked"                                 : Run First
  "populate-popup"                                 : Run First
  "selection-changed"                              : Run First

Description

Details

GdauiRawGrid

typedef struct _GdauiRawGrid GdauiRawGrid;


gdaui_raw_grid_new ()

GtkWidget *         gdaui_raw_grid_new                  (GdaDataModel *model);

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

model :

a GdaDataModel

Returns :

the new widget

gdaui_raw_grid_set_sample_size ()

void                gdaui_raw_grid_set_sample_size      (GdauiRawGrid *grid,
                                                         gint sample_size);

grid :

sample_size :


gdaui_raw_grid_set_sample_start ()

void                gdaui_raw_grid_set_sample_start     (GdauiRawGrid *grid,
                                                         gint sample_start);

grid :

sample_start :


gdaui_raw_grid_get_selection ()

GList *             gdaui_raw_grid_get_selection        (GdauiRawGrid *grid);

Returns the list of the currently selected rows in a GdauiRawGrid 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 GdauiRawGrid widget

Returns :

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

Property Details

The "data-layout" property

  "data-layout"              gpointer              : Write


The "global-actions-visible" property

  "global-actions-visible"   gboolean              : Read / Write

Global Actions visible.

Default value: FALSE


The "info-cell-visible" property

  "info-cell-visible"        gboolean              : Read / Write

Info cell visible.

Default value: FALSE


The "model" property

  "model"                    GdaDataModel*         : Read / Write

Signal Details

The "double-clicked" signal

void                user_function                      (GdauiRawGrid *gdauirawgrid,
                                                        gint          arg1,
                                                        gpointer      user_data)         : Run First

gdauirawgrid :

the object which received the signal.

arg1 :

user_data :

user data set when the signal handler was connected.

The "populate-popup" signal

void                user_function                      (GdauiRawGrid *gdauirawgrid,
                                                        GtkMenu      *arg1,
                                                        gpointer      user_data)         : Run First

gdauirawgrid :

the object which received the signal.

arg1 :

user_data :

user data set when the signal handler was connected.

The "selection-changed" signal

void                user_function                      (GdauiRawGrid *gdauirawgrid,
                                                        gboolean      arg1,
                                                        gpointer      user_data)         : Run First

gdauirawgrid :

the object which received the signal.

arg1 :

user_data :

user data set when the signal handler was connected.