| Glade UI Builder Reference Manual | ||||
|---|---|---|---|---|
GladeEditorPropertyGladeEditorProperty — A generic widget to edit a GladeProperty |
#include <glade.h>
GladeEditorProperty;
GladeEditorProperty* glade_editor_property_new
(GladePropertyClass *class,
gboolean use_command);
void glade_editor_property_load (GladeEditorProperty *eprop,
GladeProperty *property);
void glade_editor_property_load_by_widget
(GladeEditorProperty *eprop,
GladeWidget *widget);
gboolean glade_editor_property_supported (GParamSpec *pspec);
GladeEditorProperty* glade_editor_property_new_from_widget
(GladeWidget *widget,
const gchar *property,
gboolean use_command);
GObject +----GtkObject +----GtkWidget +----GtkContainer +----GtkBox +----GtkHBox +----GladeEditorProperty
"property-class" gpointer : Read / Write / Construct Only "use-command" gboolean : Read / Write
The GladeEditorProperty is a factory that will create the correct control for the GladePropertyClass it was created for and provides a simple unified api to them.
GladeEditorProperty* glade_editor_property_new (GladePropertyClass *class, gboolean use_command);
This is a factory function to create the correct type of editor property that can edit the said type of GladePropertyClass
class : |
A GladePropertyClass |
use_command : |
Whether the undo/redo stack applies here. |
| Returns : | A newly created GladeEditorProperty of the correct type |
void glade_editor_property_load (GladeEditorProperty *eprop, GladeProperty *property);
Loads property values into eprop and connects.
eprop : |
A GladeEditorProperty |
property : |
A GladeProperty |
void glade_editor_property_load_by_widget
(GladeEditorProperty *eprop,
GladeWidget *widget);
Convenience function to load the appropriate GladeProperty into
eprop from widget
eprop : |
A GladeEditorProperty |
widget : |
A GladeWidget |
gboolean glade_editor_property_supported (GParamSpec *pspec);
pspec : |
A GParamSpec |
| Returns : | whether this pspec is supported by GladeEditorProperties. |
GladeEditorProperty* glade_editor_property_new_from_widget (GladeWidget *widget, const gchar *property, gboolean use_command);
This is a convenience function to create a GladeEditorProperty corresponding
to property
widget : |
A GladeWidget |
property : |
The widget's property |
use_command : |
Whether the undo/redo stack applies here. |
| Returns : | A newly created and connected GladeEditorProperty |
property-class" property"property-class" gpointer : Read / Write / Construct Only
The GladePropertyClass this GladeEditorProperty was created for.
use-command" property"use-command" gboolean : Read / Write
Whether we should use the command API for the undo/redo stack.
Default value: FALSE