#include <gnome.h>
#include <libxml/tree.h>
#include "mlview-app-context.h"
Go to the source code of this file.
Data Structures | |
struct | _MlViewAttributesList |
This class is an attributes list editor. More... | |
struct | _MlViewAttributesListClass |
The vtable of the MlViewAttributesList class. More... | |
Defines | |
#define | __MLVIEW__ATTRIBUTES_LIST_H__ |
#define | MLVIEW_ATTRIBUTES_LIST_NULL_PARAMETER -1 |
#define | MLVIEW_ATTRIBUTES_LIST_OK 0 |
#define | MLVIEW_ATTRIBUTES_LIST_NULL -1 |
#define | MLVIEW_ATTRIBUTES_LIST_NULL_XML_NODE -2 |
#define | MLVIEW_ATTRIBUTES_LIST_NULL_NAME_EDIT_ENTRY -3 |
#define | MLVIEW_ATTRIBUTES_LIST_NULL_VALUE_EDIT_ENTRY -4 |
#define | MLVIEW_ATTRIBUTES_LIST_NULL_ATTRIBUTE_VALUE -5 |
#define | MLVIEW_ATTRIBUTES_LIST_NULL_ATTRIBUTE_NAME -6 |
#define | MLVIEW_ATTRIBUTES_LIST_NEW_ATTRIBUTE_FAILED -7 |
#define | MLVIEW_ATTRIBUTES_LIST_READ_ONLY -8 |
#define | MLVIEW_TYPE_ATTRIBUTES_LIST (mlview_attributes_list_get_type()) |
#define | MLVIEW_ATTRIBUTES_LIST(object) (GTK_CHECK_CAST(object,MLVIEW_TYPE_ATTRIBUTES_LIST,MlViewAttributesList)) |
#define | MLVIEW_ATTRIBUTES_LIST_CLASS(klass) (GTK_CHECK_CLASS_CAST(klass,MLVIEW_TYPE_ATTRIBUTES_LIST,MlViewAttributesListClass)) |
#define | MLVIEW_IS_ATTRIBUTES_LIST(object) (GTK_CHECK_TYPE((object), MLVIEW_TYPE_ATTRIBUTES_LIST)) |
#define | MLVIEW_IS_ATTRIBUTES_LIST_CLASS(klass) (GTK_CHECK_CLASS_TYPE((klass), MLVIEW_TYPE_ATTRIBUTES_LIST)) |
Typedefs | |
typedef _MlViewAttributesList | MlViewAttributesList |
typedef _MlViewAttributesListPrivate | MlViewAttributesListPrivate |
typedef _MlViewAttributesListClass | MlViewAttributesListClass |
Enumerations | |
enum | { ATTRIBUTE_NAME_OFFSET, ATTRIBUTE_VALUE_OFFSET } |
Functions | |
guint | mlview_attributes_list_get_type (void) |
type builder. | |
GtkWidget * | mlview_attributes_list_new (gchar *a_names_title, gchar *a_values_title, MlViewAppContext *a_app_context) |
Creates a new MlViewAttributesList. | |
void | mlview_attributes_list_set_app_context (MlViewAttributesList *a_attributes, MlViewAppContext *a_app_context) |
Sets a new application context to the current instance of MlViewAttributeLists. | |
void | mlview_attributes_list_set_editable (MlViewAttributesList *attributes, gboolean editable) |
Sets the editable boolean to a_editable and emits the signal "edit-state-changed". | |
void | mlview_attributes_list_set_titles (MlViewAttributesList *a_attributes, gchar *a_names_title, gchar *a_values_title) |
Sets the titles of the names and/or values of the attributes list. | |
void | mlview_attributes_list_set_attribute (MlViewAttributesList *a_attributes, guint a_offset, const xmlAttrPtr a_xml_attr) |
sets a attribute name and value. | |
gint | mlview_attributes_list_add_attribute_to_view (MlViewAttributesList *a_attributes, const xmlAttrPtr a_xml_attr) |
adds a new attribute to the attributes list . | |
gint | mlview_attributes_list_create_attribute (MlViewAttributesList *a_attributes) |
Interactively creates a new attribute and inserts it at the end of the attribute list. | |
void | mlview_attributes_list_remove_attribute (MlViewAttributesList *a_attributes, const guint a_attr_offset) |
Removes the attribute located at offset a_attr_offset in the attribute list. | |
void | mlview_attributes_list_get_attribute (MlViewAttributesList *a_attributes, const guint a_offset, xmlAttrPtr *a_xml_attr_ptr) |
Gets the attribute that is at a given offset in the current instance of MlViewAttributesList. | |
void | mlview_attributes_list_edit_xml_attributes (MlViewAttributesList *a_attributes_list, const xmlNodePtr a_xml_node) |
Edits the xml attributes hold by a given xml node. | |
void | mlview_attributes_list_clear (MlViewAttributesList *a_attributes) |
clears all the attributes edited by the current instance of MlViewAttributesList. |
Definition in file mlview-attributes-list.h.
|
Definition at line 19 of file mlview-attributes-list.h. |
|
Definition at line 48 of file mlview-attributes-list.h. |
|
Definition at line 49 of file mlview-attributes-list.h. |
|
Definition at line 41 of file mlview-attributes-list.h. |
|
Definition at line 35 of file mlview-attributes-list.h. |
|
Definition at line 40 of file mlview-attributes-list.h. |
|
Definition at line 39 of file mlview-attributes-list.h. |
|
Definition at line 37 of file mlview-attributes-list.h. |
|
Definition at line 33 of file mlview-attributes-list.h. Referenced by mlview_attributes_list_create_attribute(). |
|
Definition at line 38 of file mlview-attributes-list.h. |
|
Definition at line 36 of file mlview-attributes-list.h. Referenced by mlview_attributes_list_create_attribute(). |
|
Definition at line 34 of file mlview-attributes-list.h. |
|
Definition at line 42 of file mlview-attributes-list.h. Referenced by mlview_attributes_list_create_attribute(). |
|
Definition at line 50 of file mlview-attributes-list.h. Referenced by mlview_attributes_list_edit_xml_attributes(), mlview_attributes_list_get_internal_clist(), mlview_attributes_list_set_app_context(), and mlview_attributes_list_set_editable(). |
|
Definition at line 51 of file mlview-attributes-list.h. |
|
Definition at line 47 of file mlview-attributes-list.h. Referenced by mlview_attributes_list_new(). |
|
Definition at line 58 of file mlview-attributes-list.h. |
|
Definition at line 60 of file mlview-attributes-list.h. |
|
Definition at line 59 of file mlview-attributes-list.h. |
|
Definition at line 53 of file mlview-attributes-list.h. |
|
adds a new attribute to the attributes list .
Definition at line 789 of file mlview-attributes-list.c. References ATTRIBUTE_NAME_OFFSET, ATTRIBUTE_VALUE_OFFSET, and PRIVATE. Referenced by mlview_attributes_list_create_attribute(), and mlview_attributes_list_edit_xml_attributes(). |
|
clears all the attributes edited by the current instance of MlViewAttributesList.
Definition at line 845 of file mlview-attributes-list.c. References PRIVATE. |
|
Interactively creates a new attribute and inserts it at the end of the attribute list. The name and value of the attribute are the one entered by the user. Emits a "attribute-changed" signal on MlViewAttributesList.
Definition at line 879 of file mlview-attributes-list.c. References ATTRIBUTE_CHANGED, mlview_attributes_list_add_attribute_to_view(), MLVIEW_ATTRIBUTES_LIST_NULL_PARAMETER, MLVIEW_ATTRIBUTES_LIST_NULL_XML_NODE, MLVIEW_ATTRIBUTES_LIST_READ_ONLY, and PRIVATE. |
|
Edits the xml attributes hold by a given xml node.
Definition at line 756 of file mlview-attributes-list.c. References mlview_attributes_list_add_attribute_to_view(), MLVIEW_IS_ATTRIBUTES_LIST, and PRIVATE. |
|
Gets the attribute that is at a given offset in the current instance of MlViewAttributesList.
Definition at line 830 of file mlview-attributes-list.c. References PRIVATE. |
|
type builder.
Definition at line 595 of file mlview-attributes-list.c. |
|
Creates a new MlViewAttributesList.
Definition at line 621 of file mlview-attributes-list.c. References ATTRIBUTE_NAME_OFFSET, ATTRIBUTE_VALUE_OFFSET, mlview_attributes_list_set_app_context(), MLVIEW_TYPE_ATTRIBUTES_LIST, and PRIVATE. |
|
Removes the attribute located at offset a_attr_offset in the attribute list. If the removal succeeds, emits a "attribute-changed" signal on MlViewAttributesList.
Definition at line 914 of file mlview-attributes-list.c. References ATTRIBUTE_CHANGED, and PRIVATE. |
|
Sets a new application context to the current instance of MlViewAttributeLists.
Definition at line 649 of file mlview-attributes-list.c. References MLVIEW_IS_ATTRIBUTES_LIST, and PRIVATE. Referenced by mlview_attributes_list_new(). |
|
sets a attribute name and value.
Definition at line 721 of file mlview-attributes-list.c. References ATTRIBUTE_NAME_OFFSET, ATTRIBUTE_VALUE_OFFSET, and PRIVATE. |
|
Sets the editable boolean to a_editable and emits the signal "edit-state-changed". (if and only if a_editable != the previous editable state) After setting the editable boolean, emits the signal "edit-state-changed" on the current instance of MlViewAttributesList.
Definition at line 668 of file mlview-attributes-list.c. References EDIT_STATE_CHANGED, MLVIEW_IS_ATTRIBUTES_LIST, and PRIVATE. |
|
Sets the titles of the names and/or values of the attributes list.
Definition at line 689 of file mlview-attributes-list.c. References PRIVATE. |