MgWorkForm

Name

MgWorkForm -- Form to display and modify data provided by a SELECT query

Synopsis



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

Object Hierarchy


  GObject
   +----GtkObject
         +----GtkWidget
               +----GtkContainer
                     +----GtkBox
                           +----GtkVBox
                                 +----MgWorkForm

Implemented Interfaces

MgWorkForm implements MgWorkWidget and AtkImplementorIface.

Properties


  "actions-visible"      gboolean             : Write
  "title-string"         gchararray           : Write
  "title-visible"        gboolean             : Write

Description

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

Details

MG_WORK_FORM_TYPE

#define MG_WORK_FORM_TYPE          (mg_work_form_get_type())


MG_WORK_FORM()

#define MG_WORK_FORM(obj)          G_TYPE_CHECK_INSTANCE_CAST (obj, mg_work_form_get_type(), MgWorkForm)

obj :


IS_MG_WORK_FORM()

#define IS_MG_WORK_FORM(obj)       G_TYPE_CHECK_INSTANCE_TYPE (obj, mg_work_form_get_type ())

obj :


MG_WORK_FORM_CLASS()

#define MG_WORK_FORM_CLASS(klass)  G_TYPE_CHECK_CLASS_CAST (klass, mg_work_form_get_type (), MgWorkFormClass)

klass :


struct MgWorkForm

struct MgWorkForm;


mg_work_form_get_type ()

guint       mg_work_form_get_type           (void);

Returns :


mg_work_form_new ()

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

Properties

"actions-visible" (gboolean : Write)

"title-string" (gchararray : Write)

"title-visible" (gboolean : Write)

See Also

The MgForm widget which is being used in this widget.