![]() |
![]() |
![]() |
Conglomerate Programmer's Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Implemented Interfaces |
CongAttributeEditor; #define CONG_ATTRIBUTE_EDITOR (obj) #define CONG_ATTRIBUTE_EDITOR_CLASS (klass) #define IS_CONG_ATTRIBUTE_EDITOR (obj) GType cong_attribute_editor_get_type (void); CongAttributeEditor * cong_attribute_editor_construct (CongAttributeEditor *attribute_editor, CongDocument *doc, CongNodePtr node, xmlNs *ns_ptr, const gchar *attribute_name); CongDocument * cong_attribute_editor_get_document (CongAttributeEditor *attribute_editor); CongNodePtr cong_attribute_editor_get_node (CongAttributeEditor *attribute_editor); xmlNs * cong_attribute_editor_get_ns (CongAttributeEditor *attribute_editor); const gchar * cong_attribute_editor_get_attribute_name (CongAttributeEditor *attribute_editor); gchar * cong_attribute_editor_get_attribute_value (CongAttributeEditor *attribute_editor); void cong_attribute_editor_try_set_value (CongAttributeEditor *attribute_editor, const gchar *new_attr_value); GtkWidget * cong_attribute_editor_new (CongDocument *doc, CongNodePtr node, xmlAttributePtr attr); GtkWidget * cong_attribute_editor_id_new (CongDocument *doc, CongNodePtr node, xmlNs *ns_ptr, const gchar *attribute_name); GtkWidget * cong_attribute_editor_idref_new (CongDocument *doc, CongNodePtr node, xmlNs *ns_ptr, const gchar *attribute_name); GtkWidget * cong_attribute_editor_idrefs_new (CongDocument *doc, CongNodePtr node, xmlNs *ns_ptr, const gchar *attribute_name); GtkWidget * cong_attribute_editor_entity_new (CongDocument *doc, CongNodePtr node, xmlNs *ns_ptr, const gchar *attribute_name); GtkWidget * cong_attribute_editor_entities_new (CongDocument *doc, CongNodePtr node, xmlNs *ns_ptr, const gchar *attribute_name); GtkWidget * cong_attribute_editor_nmtoken_new (CongDocument *doc, CongNodePtr node, xmlNs *ns_ptr, const gchar *attribute_name); GtkWidget * cong_attribute_editor_nmtokens_new (CongDocument *doc, CongNodePtr node, xmlNs *ns_ptr, const gchar *attribute_name); GtkWidget * cong_attribute_editor_notation_new (CongDocument *doc, CongNodePtr node, xmlNs *ns_ptr, const gchar *attribute_name);
GObject +----GInitiallyUnowned +----GtkObject +----GtkWidget +----GtkContainer +----GtkBox +----GtkHBox +----CongAttributeEditor +----CongAttributeEditorCDATA +----CongAttributeEditorENUMERATION
CongAttributeEditor implements GtkBuildable, GtkOrientable and AtkImplementorIface.
#define CONG_ATTRIBUTE_EDITOR(obj) G_TYPE_CHECK_INSTANCE_CAST (obj, CONG_ATTRIBUTE_EDITOR_TYPE, CongAttributeEditor)
|
#define CONG_ATTRIBUTE_EDITOR_CLASS(klass) G_TYPE_CHECK_CLASS_CAST (klass, CONG_ATTRIBUTE_EDITOR_TYPE, CongAttributeEditorClass)
|
#define IS_CONG_ATTRIBUTE_EDITOR(obj) G_TYPE_CHECK_INSTANCE_TYPE (obj, CONG_ATTRIBUTE_EDITOR_TYPE)
|
CongAttributeEditor * cong_attribute_editor_construct (CongAttributeEditor *attribute_editor, CongDocument *doc, CongNodePtr node, xmlNs *ns_ptr, const gchar *attribute_name);
TODO: Write me
|
|
|
|
|
|
|
|
|
|
Returns : |
CongDocument * cong_attribute_editor_get_document (CongAttributeEditor *attribute_editor);
TODO: Write me
|
|
Returns : |
CongNodePtr cong_attribute_editor_get_node (CongAttributeEditor *attribute_editor);
TODO: Write me
|
|
Returns : |
xmlNs * cong_attribute_editor_get_ns (CongAttributeEditor *attribute_editor);
TODO: Write me
|
|
Returns : |
const gchar * cong_attribute_editor_get_attribute_name (CongAttributeEditor *attribute_editor);
Returns the name of the attribute. This string should not be freed.
|
|
Returns : |
gchar * cong_attribute_editor_get_attribute_value (CongAttributeEditor *attribute_editor);
Returns the value of the attribute represented by this editor
(attribute_editor
).
|
|
Returns : |
The contents of the attribute, to be freed by the called. Will be NULL if the attribute is not defined. |
void cong_attribute_editor_try_set_value (CongAttributeEditor *attribute_editor, const gchar *new_attr_value);
If value of attribute is equal to value that attribute editor is trying to set, the function simply returns. But if those values differs, the attribute value will be updated. This function is proposed to use on updates of UI in various implementaion of CongAttributeEditor.
|
The Attribute Editor that tries to set value |
|
value to try. |
GtkWidget * cong_attribute_editor_new (CongDocument *doc, CongNodePtr node, xmlAttributePtr attr);
TODO: Write me
|
|
|
|
|
|
Returns : |
GtkWidget * cong_attribute_editor_id_new (CongDocument *doc, CongNodePtr node, xmlNs *ns_ptr, const gchar *attribute_name);
|
|
|
|
|
|
|
|
Returns : |
GtkWidget * cong_attribute_editor_idref_new (CongDocument *doc, CongNodePtr node, xmlNs *ns_ptr, const gchar *attribute_name);
|
|
|
|
|
|
|
|
Returns : |
GtkWidget * cong_attribute_editor_idrefs_new (CongDocument *doc, CongNodePtr node, xmlNs *ns_ptr, const gchar *attribute_name);
|
|
|
|
|
|
|
|
Returns : |
GtkWidget * cong_attribute_editor_entity_new (CongDocument *doc, CongNodePtr node, xmlNs *ns_ptr, const gchar *attribute_name);
|
|
|
|
|
|
|
|
Returns : |
GtkWidget * cong_attribute_editor_entities_new (CongDocument *doc, CongNodePtr node, xmlNs *ns_ptr, const gchar *attribute_name);
|
|
|
|
|
|
|
|
Returns : |
GtkWidget * cong_attribute_editor_nmtoken_new (CongDocument *doc, CongNodePtr node, xmlNs *ns_ptr, const gchar *attribute_name);
Creates a GtkWidget that is used to display/edit the supplied attribute (with name given by the attribute_name argument). This attribute should be an XML name token.
At the moment this is a striaght copy of the cong_attribute_editor_cdata_new function. I think it would make more sense if this were a sub-class of the "CDATA" object (perhaps with a minor name change to make it less CDATA-specific)?
Should there be any user-visible indication that the item is a NMTOKEN rather than CDATA?
|
|
|
|
|
|
|
|
Returns : |
GtkWidget * cong_attribute_editor_nmtokens_new (CongDocument *doc, CongNodePtr node, xmlNs *ns_ptr, const gchar *attribute_name);
|
|
|
|
|
|
|
|
Returns : |
GtkWidget * cong_attribute_editor_notation_new (CongDocument *doc, CongNodePtr node, xmlNs *ns_ptr, const gchar *attribute_name);
|
|
|
|
|
|
|
|
Returns : |