![]() |
![]() |
![]() |
GOffice Reference Manual | ![]() |
---|---|---|---|---|
Top | Description |
GOEditor; GOEditorPage; void go_editor_add_page (GOEditor *editor
,gpointer widget
,char const *label
); void go_editor_free (GOEditor *editor
); GtkWidget * go_editor_get_notebook (GOEditor *editor
); GtkWidget * go_editor_get_page (GOEditor *editor
,char const *name
); GtkWidget * go_editor_get_registered_widget (GOEditor *editor
,char const *name
); GOEditor * go_editor_new (void
); void go_editor_register_widget (GOEditor *editor
,GtkWidget *widget
); void go_editor_set_store_page (GOEditor *editor
,unsigned *store_page
);
typedef struct { unsigned *store_page; /* pointer to a place for storing last edited page */ GSList *pages; /* GOEditorPage */ GData *registered_widgets; unsigned ref_count; } GOEditor;
pointer to a place for storing last edited page. | |
GSList * |
list of GOEditorPage. |
GData * |
registered wigets. |
typedef struct { char const *label; /* label for notebook page */ gpointer widget; /* GtkWidget* */ } GOEditorPage;
label for notebook page. | |
gpointer |
notebook page. |
void go_editor_add_page (GOEditor *editor
,gpointer widget
,char const *label
);
Adds a page to editor
.
|
a GOEditor |
|
property edition widget |
|
a label identifying the widget |
void go_editor_free (GOEditor *editor
);
Frees a GOEditor object.
|
a GOEditor |
GtkWidget * go_editor_get_notebook (GOEditor *editor
);
|
a GOEditor |
Returns : |
a GtkNotebook from the widget collection stored in editor . [transfer full]
|
GtkWidget * go_editor_get_page (GOEditor *editor
,char const *name
);
|
GOEditor |
|
page name |
Returns : |
the page with name as name if any. [transfer none]
|
GtkWidget * go_editor_get_registered_widget (GOEditor *editor
,char const *name
);
|
a GOEditor |
|
the name of the registered widget |
Returns : |
a widget previously registered using go_editor_register_widget . [transfer none]
|
GOEditor * go_editor_new (void
);
Returns : |
a new GOEditor object, which is used to store a collection of
property edition widgets (pages). The returned object must be freed
using go_editor_free . [transfer full]
|
void go_editor_register_widget (GOEditor *editor
,GtkWidget *widget
);
Registers a widget that then can be retrieved later using
go_editor_get_registered_widget
. The main use of this function is to
provide the ability to extend a page.