GnomeDbRawGrid

GnomeDbRawGrid — Grid to display and modify data in a GnomeDbDataModel

Synopsis




            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);

Object Hierarchy


  GObject
   +----GtkObject
         +----GtkWidget
               +----GtkContainer
                     +----GtkTreeView
                           +----GnomeDbRawGrid

Implemented Interfaces

GnomeDbRawGrid implements AtkImplementorIface and GnomeDbDataWidget.

Properties


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

Signal Prototypes


"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);

Description

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.

Details

GnomeDbRawGrid

typedef struct _GnomeDbRawGrid GnomeDbRawGrid;


GnomeDbRawGridClass

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;


GnomeDbRawGridPriv

typedef struct _GnomeDbRawGridPriv GnomeDbRawGridPriv;


gnome_db_raw_grid_new ()

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

gnome_db_raw_grid_get_selection ()

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.

gnome_db_raw_grid_set_sample_size ()

void        gnome_db_raw_grid_set_sample_size
                                            (GnomeDbRawGrid *grid,
                                             gint sample_size);

grid :
sample_size :

gnome_db_raw_grid_set_sample_start ()

void        gnome_db_raw_grid_set_sample_start
                                            (GnomeDbRawGrid *grid,
                                             gint sample_start);

grid :
sample_start :

Properties

The "info-cell-visible" property

  "info-cell-visible"    gboolean              : Write

Default value: FALSE


The "model" property

  "model"                gpointer              : Read / Write

Signals

The "double-clicked" signal

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.

The "populate-popup" signal

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.

The "selection-changed" signal

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.

See Also

The GnomeDbRawForm widget which displays the same information but as form instead of a grid.