| Glade UI Builder Reference Manual | ||||
|---|---|---|---|---|
#include <glade.h>
GladeBaseEditor;
GladeBaseEditor* glade_base_editor_new (GObject *container,
gboolean tree_like,
...);
void glade_base_editor_add_popup_items
(GladeBaseEditor *editor,
...);
GtkWidget* glade_base_editor_pack_new_window
(GladeBaseEditor *editor,
gchar *title,
gchar *markup);
void glade_base_editor_add_properties
(GladeBaseEditor *editor,
GladeWidget *gchild,
...);
void glade_base_editor_add_label (GladeBaseEditor *editor,
gchar *str);
void glade_base_editor_add_default_properties
(GladeBaseEditor *editor,
GladeWidget *gchild);
void glade_base_editor_set_show_signal_editor
(GladeBaseEditor *editor,
gboolean val);
GladeBaseEditor* glade_base_editor_new (GObject *container, gboolean tree_like, ...);
Creates a new GladeBaseEditor with support for all the object types indicated in the variable argument list. Argument List: o The type name o The GType the editor will support
container : |
the container this new editor will edit. |
tree_like : |
TRUE if container's children can have children. @... A NULL terminated list of gchar *, GType |
... : |
|
| Returns : | a new GladeBaseEditor. |
void glade_base_editor_add_popup_items
(GladeBaseEditor *editor,
...);
Adds a new popup item to the editor. Three parameters are needed for each new popup item: o the popup item's label o the object type this popup item will create o whether this popup item will add the new object as child
editor : |
a GladeBaseEditor |
... : |
a NULL terminated list of gchar *, GType, gboolean |
GtkWidget* glade_base_editor_pack_new_window
(GladeBaseEditor *editor,
gchar *title,
gchar *markup);
This convenience function create a new modal window and packs editor in it.
editor : |
a GladeBaseEditor |
title : |
the window title |
markup : |
|
| Returns : | the newly created window |
void glade_base_editor_add_properties
(GladeBaseEditor *editor,
GladeWidget *gchild,
...);
Add gchild properties to editor
NOTE: This function is intended to be used in "child-selected" callbacks
editor : |
a GladeBaseEditor |
gchild : |
a GladeWidget |
... : |
A NULL terminated list of properties names. |
void glade_base_editor_add_label (GladeBaseEditor *editor, gchar *str);
Adds a new label to editor
NOTE: This function is intended to be used in "child-selected" callbacks
editor : |
a GladeBaseEditor |
str : |
the label string |
void glade_base_editor_add_default_properties
(GladeBaseEditor *editor,
GladeWidget *gchild);
Add gchild name and type property to editor
NOTE: This function is intended to be used in "child-selected" callbacks
editor : |
a GladeBaseEditor |
gchild : |
a GladeWidget |
void glade_base_editor_set_show_signal_editor
(GladeBaseEditor *editor,
gboolean val);
Shows/hide editor 's signal editor
editor : |
a GladeBaseEditor |
val : |