![]() | ![]() | ![]() | Libmergeant Reference Manual | ![]() |
---|
#define MG_WORK_FORM_TYPE #define MG_WORK_FORM (obj) #define IS_MG_WORK_FORM (obj) #define MG_WORK_FORM_CLASS (klass) struct MgWorkForm; guint mg_work_form_get_type (void); GtkWidget* mg_work_form_new (MgQuery *query, MgTarget *modified);
GObject +----GtkObject +----GtkWidget +----GtkContainer +----GtkBox +----GtkVBox +----MgWorkForm
"actions-visible" gboolean : Write "title-string" gchararray : Write "title-visible" gboolean : Write
This widget uses a SELECT query and displays the results of its execution, with buttons to move within the result rows.
Optionnaly, if a table to be modified (identified through a MgTarget object) is provided, the widget allows the user to perform some modification actions on the data (UPDATE, DELETE, INSERT operations). In this case, the queries to perform the modifications are built by the widget and do not need to be provided by the programmer (they are computed by the MgWorkCore object).
#define MG_WORK_FORM(obj) G_TYPE_CHECK_INSTANCE_CAST (obj, mg_work_form_get_type(), MgWorkForm)
obj : |
|
#define IS_MG_WORK_FORM(obj) G_TYPE_CHECK_INSTANCE_TYPE (obj, mg_work_form_get_type ())
obj : |
|
#define MG_WORK_FORM_CLASS(klass) G_TYPE_CHECK_CLASS_CAST (klass, mg_work_form_get_type (), MgWorkFormClass)
klass : |
|
GtkWidget* mg_work_form_new (MgQuery *query, MgTarget *modified);
Creates a new MgWorkForm widget.
query must be a SELECT query (no union, etc selection query)
The modified target must belong to query and represent modifiable entity (a MgDbTable for example). If modified is NULL then no modification will be allowed.
query : | a MgQuery object |
modified : | a MgTarget object, or NULL |
Returns : | the new widget |
"actions-visible" (gboolean : Write) | |
"title-string" (gchararray : Write) | |
"title-visible" (gboolean : Write) |
<<< MgSelector | MgWorkGrid >>> |