![]() |
![]() |
![]() |
GdaBrowser hacking manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Implemented Interfaces | Properties | Signals |
UiFormgridUiFormgrid — Widget embedding both a form and a grid to display a GdaDataModel's contents |
struct UiFormGrid; GtkWidget * ui_formgrid_new (GdaDataModel *model
,gboolean scroll_form
,GdauiDataProxyInfoFlag flags
); void ui_formgrid_handle_user_prefs (UiFormGrid *formgrid
,BrowserConnection *bcnc
,GdaStatement *stmt
); GArray * ui_formgrid_get_selection (UiFormGrid *formgrid
); GdaDataModelIter * ui_formgrid_get_form_data_set (UiFormGrid *formgrid
); GdaDataModelIter * ui_formgrid_get_grid_data_set (UiFormGrid *formgrid
); void ui_formgrid_set_sample_size (UiFormGrid *formgrid
,gint sample_size
); GdauiRawGrid * ui_formgrid_get_grid_widget (UiFormGrid *formgrid
); void ui_formgrid_set_connection (UiFormGrid *formgrid
,BrowserConnection *bcnc
);
GObject +----GInitiallyUnowned +----GtkObject +----GtkWidget +----GtkContainer +----GtkBox +----GtkVBox +----UiFormGrid
"compute-mod-statements" gboolean : Write / Construct "raw-form" GdauiRawGrid* : Read "raw-grid" GdauiRawGrid* : Read "scroll-form" gboolean : Write / Construct Only "widget-info" GdauiDataProxyInfo* : Read
GtkWidget * ui_formgrid_new (GdaDataModel *model
,gboolean scroll_form
,GdauiDataProxyInfoFlag flags
);
Creates a new UiFormGrid widget suitable to display the data in model
|
a GdaDataModel |
|
set to TRUE to wrap the embedded form in a scrolled window |
|
the GdauiDataProxyInfoFlag, specifying what to display in the new widget |
Returns : |
the new widget |
void ui_formgrid_handle_user_prefs (UiFormGrid *formgrid
,BrowserConnection *bcnc
,GdaStatement *stmt
);
Takes into account the UI preferences of the user
|
a UiFormGrid widget |
|
a BrowserConnection, or NULL to let formgrid determine it itself. [allow-none]
|
|
the GdaStatement which has been executed to produce the GdaDataModel displayed in formgrid
|
GArray * ui_formgrid_get_selection (UiFormGrid *formgrid
);
Returns the list of the currently selected rows in a UiFormGrid 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.
|
a UiFormGrid widget |
Returns : |
a new array, should be freed (by calling g_array_free() and passing TRUE as last argument) when no longer needed. |
GdaDataModelIter * ui_formgrid_get_form_data_set (UiFormGrid *formgrid
);
GdaDataModelIter * ui_formgrid_get_grid_data_set (UiFormGrid *formgrid
);
void ui_formgrid_set_sample_size (UiFormGrid *formgrid
,gint sample_size
);
Set the size of the sample displayed in formgrid
, see gdaui_raw_grid_set_sample_size()
|
a UiFormGrid widget |
|
the sample size |
GdauiRawGrid * ui_formgrid_get_grid_widget (UiFormGrid *formgrid
);
|
a UiFormGrid widget |
Returns : |
the GdauiRawGrid embedded in formgrid
|
void ui_formgrid_set_connection (UiFormGrid *formgrid
,BrowserConnection *bcnc
);
Tells formgrid
to use bcnc
as connection when actions have to be executed
|
a UiFormGrid widget |
|
a BrowserConnection, or NULL . [allow-none]
|
"compute-mod-statements"
property "compute-mod-statements" gboolean : Write / Construct
Default value: FALSE
"data-set-changed"
signalvoid user_function (UiFormGrid *uiformgrid,
gpointer user_data) : Run First
|
the object which received the signal. |
|
user data set when the signal handler was connected. |