| Goffice Reference Manual | ||||
|---|---|---|---|---|
GogEditor;
GogEditorPage;
GogEditor* gog_editor_new (void);
void gog_editor_add_page (GogEditor *editor,
gpointer widget,
char const *label);
void gog_editor_set_store_page (GogEditor *editor,
unsigned *store_page);
GtkWidget* gog_editor_get_notebook (GogEditor *editor);
void gog_editor_free (GogEditor *editor);
typedef struct {
unsigned *store_page; /* pointer to a place for storing last edited page */
GSList *pages; /* GogEditorPage */
GData *registered_widgets;
} GogEditor;
typedef struct {
char const *label; /* label for notebook page */
gpointer widget; /* GtkWidget* */
} GogEditorPage;
GogEditor* gog_editor_new (void);
Creates a new GogEditor object, which is used to store a
collection of property edition widgets (pages). The returned
object must be freed using gog_editor_free.
| Returns : |
void gog_editor_add_page (GogEditor *editor, gpointer widget, char const *label);
Adds a page to editor.
editor : |
a GogEditor |
widget : |
property edition widget |
label : |
a label identifying the widget |
void gog_editor_set_store_page (GogEditor *editor, unsigned *store_page);
Sets a placeholder for storing the last active editor page.
editor : |
a GogEditor |
store_page : |
placeholder for the last selected page |
GtkWidget* gog_editor_get_notebook (GogEditor *editor);
Buils a GtkNotebook from the widget collection stored in editor.
editor : |
a GogEditor |
| Returns : |