Glade User Interface Designer Reference Manual | ||||
---|---|---|---|---|
Top | Description | Object Hierarchy | Implemented Interfaces | Properties | Signals |
GladeBaseEditor; GladeBaseEditor * glade_base_editor_new (GObject *container
,GladeEditable *main_editable
,...
); 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_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
GladeBaseEditor implements AtkImplementorIface, GtkBuildable and GtkOrientable.
"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
,GladeEditable *main_editable
,...
);
Creates a new GladeBaseEditor with container
toplevel
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
|
a container this new editor will edit. |
|
the custom GladeEditable for container , or NULL
@... 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
|
a GladeBaseEditor |
|
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
|
a GladeBaseEditor |
|
a GladeWidget |
|
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
|
a GladeBaseEditor |
|
the label string |
void glade_base_editor_set_show_signal_editor (GladeBaseEditor *editor
,gboolean val
);
Shows/hide editor
's signal editor
|
a GladeBaseEditor |
GtkWidget * glade_base_editor_pack_new_window (GladeBaseEditor *editor
,gchar *title
,gchar *help_markup
);
This convenience function create a new dialog window and packs editor
in it.
|
a GladeBaseEditor |
|
the window title |
|
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.
|
the GladeBaseEditor which received the signal. |
|
the parent of the new child |
|
the GType of the child |
|
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.
|
the GladeBaseEditor which received the signal. |
|
the selected GladeWidget. |
|
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
|
the GladeBaseEditor which received the signal. |
|
the parent |
|
the child to delete |
|
user data set when the signal handler was connected. |
"get-display-name"
signalgchar* user_function (GladeBaseEditor *gladebaseeditor,
GObject *gchild,
gpointer user_data) : Run Last
|
the GladeBaseEditor which received the signal. |
|
the child to get display name string to show in gladebaseeditor
treeview.
|
|
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.
|
the GladeBaseEditor which received the signal. |
|
the new parent of gchild
|
|
the GladeWidget to move |
|
user data set when the signal handler was connected. |
Returns : |
wheater child has been sucessfully moved or not. |