Top | ![]() |
![]() |
![]() |
![]() |
GObject ╰── GInitiallyUnowned ╰── GtkObject ╰── GtkWidget ╰── GtkContainer ╰── GtkBox ╰── GtkHBox ╰── CongAttributeEditor ├── CongAttributeEditorCDATA ╰── CongAttributeEditorENUMERATION
CongAttributeEditor implements AtkImplementorIface, GtkBuildable and GtkOrientable.
#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
CongDocument *
cong_attribute_editor_get_document (CongAttributeEditor *attribute_editor
);
TODO: Write me
CongNodePtr
cong_attribute_editor_get_node (CongAttributeEditor *attribute_editor
);
TODO: Write me
xmlNs *
cong_attribute_editor_get_ns (CongAttributeEditor *attribute_editor
);
TODO: Write me
const gchar *
cong_attribute_editor_get_attribute_name
(CongAttributeEditor *attribute_editor
);
Returns the name of the attribute. This string should not be freed.
gchar *
cong_attribute_editor_get_attribute_value
(CongAttributeEditor *attribute_editor
);
Returns the value of the attribute represented by this editor
(attribute_editor
).
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.
GtkWidget * cong_attribute_editor_new (CongDocument *doc
,CongNodePtr node
,xmlAttributePtr attr
);
TODO: Write me
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
);
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?
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
);