#include <libxml/hash.h>
#include "mlview-attributes-list.h"
#include "mlview-name-value-pair.h"
#include "mlview-attribute-picker.h"
#include "utils.h"
Go to the source code of this file.
Data Structures | |
struct | _MlViewAttributesListPrivate |
Defines | |
#define | PRIVATE(list) ((list)->private) |
Enumerations | |
enum | { EDIT_STATE_CHANGED, ATTRIBUTE_CHANGED, NUMBER_OF_SIGNALS } |
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 *a_attributes, gboolean a_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. | |
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. | |
gint | mlview_attributes_list_add_attribute_to_view (MlViewAttributesList *a_attributes, const xmlAttrPtr a_xml_attr) |
adds a new attribute to the attributes 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_clear (MlViewAttributesList *a_attributes) |
clears all the attributes edited by the current instance of MlViewAttributesList. | |
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. | |
GtkCList * | mlview_attributes_list_get_internal_clist (MlViewAttributesList *a_attributes) |
Gets the underlying GtkCList used by the current instance of MlViewAttributesList. |
Definition in file mlview-attributes-list.c.
|
|
Definition at line 31 of file mlview-attributes-list.c. |
|
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. |
|
Gets the underlying GtkCList used by the current instance of MlViewAttributesList.
Definition at line 955 of file mlview-attributes-list.c. References MLVIEW_IS_ATTRIBUTES_LIST, and 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. |