![]() |
![]() |
![]() |
Glade User Interface Designer Reference Manual | ![]() |
---|---|---|---|---|
GladeBaseEditor; GladeBaseEditor* glade_base_editor_new (GObject *container, gboolean tree_like, ...); void glade_base_editor_add_default_properties (GladeBaseEditor *editor, GladeWidget *gchild); void glade_base_editor_add_properties (GladeBaseEditor *editor, GladeWidget *gchild, gboolean packing, ...); void glade_base_editor_add_label (GladeBaseEditor *editor, gchar *str); void glade_base_editor_add_popup_items (GladeBaseEditor *editor, ...); void glade_base_editor_set_show_signal_editor (GladeBaseEditor *editor, gboolean val); GtkWidget* glade_base_editor_pack_new_window (GladeBaseEditor *editor, gchar *title, gchar *help_markup);
GObject +----GInitiallyUnowned +----GtkObject +----GtkWidget +----GtkContainer +----GtkBox +----GtkVBox +----GladeBaseEditor
"build-child" : Run Last "change-type" : Run Last "child-selected" : Run Last "delete-child" : Run Last "get-display-name" : Run Last "move-child" : Run Last
Convenience object to edit containers where placeholders do not make sense, like GtkMenubar.
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_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_add_properties (GladeBaseEditor *editor, GladeWidget *gchild, gboolean packing, ...);
Add gchild
properties to editor
NOTE: This function is intended to be used in "child-selected" callbacks
editor : |
a GladeBaseEditor |
gchild : |
a GladeWidget |
packing : |
whether we are adding packing properties or not |
... : |
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_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 |
void glade_base_editor_set_show_signal_editor (GladeBaseEditor *editor, gboolean val);
Shows/hide editor
's signal editor
editor : |
a GladeBaseEditor |
val : |
GtkWidget* glade_base_editor_pack_new_window (GladeBaseEditor *editor, gchar *title, gchar *help_markup);
This convenience function create a new modal window and packs editor
in it.
editor : |
a GladeBaseEditor |
title : |
the window title |
help_markup : |
the help text |
Returns : | the newly created window |
"build-child"
signalGObject* user_function (GladeBaseEditor *gladebaseeditor, GObject *gparent, guint type, gpointer user_data) : Run Last
Create a child widget here if something else must be done other than
calling glade_command_create()
such as creating an intermediate parent.
gladebaseeditor : |
the GladeBaseEditor which received the signal. |
gparent : |
the parent of the new child |
type : |
the GType of the child |
user_data : |
user data set when the signal handler was connected. |
Returns : | the newly created GladeWidget or NULL if child cant be created |
"change-type"
signalgboolean user_function (GladeBaseEditor *gladebaseeditor, GObject *arg1, guint arg2, gpointer user_data) : Run Last
"child-selected"
signalvoid user_function (GladeBaseEditor *gladebaseeditor, GObject *gchild, gpointer user_data) : Run Last
Emited when the user selects a child in the editor's treeview.
You can add the relevant child properties here using
glade_base_editor_add_default_properties()
and glade_base_editor_add_properties()
You can also add labels with glade_base_editor_add_label to make the
editor look pretty.
gladebaseeditor : |
the GladeBaseEditor which received the signal. |
gchild : |
the selected GladeWidget. |
user_data : |
user data set when the signal handler was connected. |
"delete-child"
signalgboolean user_function (GladeBaseEditor *gladebaseeditor, GObject *gparent, GObject *gchild, gpointer user_data) : Run Last
gladebaseeditor : |
the GladeBaseEditor which received the signal. |
gparent : |
the parent |
gchild : |
the child to delete |
user_data : |
user data set when the signal handler was connected. |
"get-display-name"
signalgchar* user_function (GladeBaseEditor *gladebaseeditor, GObject *gchild, gpointer user_data) : Run Last
gladebaseeditor : |
the GladeBaseEditor which received the signal. |
gchild : |
the child to get display name string to show in gladebaseeditor
treeview.
|
user_data : |
user data set when the signal handler was connected. |
Returns : | a newly allocated string. |
"move-child"
signalgboolean user_function (GladeBaseEditor *gladebaseeditor, GObject *gparent, GObject *gchild, gpointer user_data) : Run Last
Move child here if something else must be done other than cut & paste.
gladebaseeditor : |
the GladeBaseEditor which received the signal. |
gparent : |
the new parent of gchild
|
gchild : |
the GladeWidget to move |
user_data : |
user data set when the signal handler was connected. |
Returns : | wheater child has been sucessfully moved or not. |