GladeBaseEditor

GladeBaseEditor — A customisable editor

Synopsis




                    GladeBaseEditorPrivate;
                    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);

Description

Convenience object to edit containers where placeholders do not make sense, like GtkMenubar.

Details

GladeBaseEditorPrivate

typedef struct _GladeBaseEditorPrivate GladeBaseEditorPrivate;


GladeBaseEditor

typedef struct {
	GtkVBox parent;

	GladeBaseEditorPrivate *priv;
} GladeBaseEditor;


glade_base_editor_new ()

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.

glade_base_editor_add_default_properties ()

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

glade_base_editor_add_properties ()

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.

glade_base_editor_add_label ()

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

glade_base_editor_add_popup_items ()

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

glade_base_editor_set_show_signal_editor ()

void                glade_base_editor_set_show_signal_editor
                                                        (GladeBaseEditor *editor,
                                                         gboolean val);

Shows/hide editor 's signal editor

editor : a GladeBaseEditor
val :

glade_base_editor_pack_new_window ()

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