|  |  |  | GNOME Data Access 5 manual |  | 
|---|---|---|---|---|
| Top | Description | ||||
GdauiDataEntry * (*GdauiEntryCreateFunc) (GdaDataHandler *handler,GType type,const gchar *options); GtkCellRenderer * (*GdauiCellCreateFunc) (GdaDataHandler *handler,GType type,const gchar *options); GdauiPlugin; void gdaui_plugin_declare (const GdauiPlugin *plugin);
This section describes the functions used to declare UI plugins: data entry and cell renderers.
GdauiDataEntry * (*GdauiEntryCreateFunc) (GdaDataHandler *handler,GType type,const gchar *options);
Defines a function which creates a GdauiDataEntry widget
| 
 | a GdaDataHandler | 
| 
 | a GType | 
| 
 | options, or NULL. [allow-none] | 
| Returns : | a new GdauiDataEntry | 
GtkCellRenderer * (*GdauiCellCreateFunc) (GdaDataHandler *handler,GType type,const gchar *options);
Defines a function which creates a GtkCellRenderer object
| 
 | a GdaDataHandler | 
| 
 | a GType | 
| 
 | options, or NULL. [allow-none] | 
| Returns : | a new GtkCellRenderer | 
typedef struct {
	gchar                  *plugin_name;
	gchar                  *plugin_descr;
	gchar                  *plugin_file;
	guint                   nb_g_types; /* 0 if all types are accepted */
        GType                  *valid_g_types; /* not NULL if @nb_g_types is not 0 */
	gchar                  *options_xml_spec; /* NULL if no option possible */
	GdauiEntryCreateFunc    entry_create_func;
	GdauiCellCreateFunc     cell_create_func;
} GdauiPlugin;
Structure representing a plugin.
Note: entry_create_func and cell_create_func can't be NULL at the same time
| gchar * | the name of the plugin | 
| gchar * | a description for the plugin, or NULL. [allow-none] | 
| gchar * | the shared object implementing the plugin, can be NULLfor internal plugins. [allow-none] | 
| guint  | number of types the plugin can handle, or 0for any type | 
| GType * | an array of GType, containing the accepted types, its size is nb_g_types, orNULLifnb_g_typesis0. [allow-none] | 
| gchar * | a string describing the plugin's options, or NULL. [allow-none] | 
| GdauiEntryCreateFunc  | the function called to create a GdauiDataEntry, or NULL. [allow-none] | 
| GdauiCellCreateFunc  | the function called to create a GtkCellRenderer, or NULL. [allow-none] | 
void                gdaui_plugin_declare                (const GdauiPlugin *plugin);
Adds a new plugin which will be used by the forms and grids. The new plugin, as
described by plugin can declare a custom widget to be used for forms, grids, or both.
If a plugin is already declared with the same name as the requested name, then a warning is issued and the operation fails.
| 
 | a pointer to a structure filled to describe the new plugin. All the contained information is copied. |