#include <libxml/parser.h>
#include <libxml/valid.h>
#include <libxml/tree.h>
#include "mlview-attribute-picker.h"
#include "mlview-parsing-utils.h"
#include "utils.h"
Go to the source code of this file.
Data Structures | |
struct | _MlViewAttributePickerPrivate |
The private instance members of MlViewAttributePicker. More... | |
Defines | |
#define | PRIVATE(object) (object)->private |
Functions | |
gint | mlview_attribute_picker_get_type (void) |
Type builder. | |
GtkWidget * | mlview_attribute_picker_new (gchar *a_title, MlViewAppContext *a_app_context) |
Builds a brand new attribute picker. | |
void | mlview_attribute_picker_set_app_context (MlViewAttributePicker *a_picker, MlViewAppContext *a_app_context) |
Sets a new app context. | |
void | mlview_attribute_picker_grab_focus_to_name_entry (MlViewAttributePicker *a_picker) |
Sets the focus to the name entry of MlViewAttributePicker widget. | |
void | mlview_attribute_picker_grab_focus_to_value_entry (MlViewAttributePicker *a_picker) |
Sets the focus to the value entry of MlViewAttributePicker widget. | |
gchar * | mlview_attribute_picker_get_attribute_name (MlViewAttributePicker *a_picker) |
Gets the content of the name entry of attribute picker. | |
gchar * | mlview_attribute_picker_get_attribute_value (MlViewAttributePicker *a_picker) |
Gets the content of the value entry of the attribute picker. | |
xmlAttributeType | mlview_attribute_picker_get_attribute_type (MlViewAttributePicker *a_picker) |
Gets the type of the last attribute the user has entered in the picker. | |
void | mlview_attribute_picker_select_attribute_name (MlViewAttributePicker *a_picker) |
Graphically selects all the content of the name entry of the MlViewAttributePicker widget. | |
void | mlview_attribute_picker_select_attribute_value (MlViewAttributePicker *a_picker) |
Graphically selects all the content of the value entry of the MlViewAttributePicker widget. | |
void | mlview_attribute_picker_set_current_xml_node (MlViewAttributePicker *a_picker, xmlNode *a_xml_node) |
Associates an xml node to this picker. | |
void | mlview_attribute_picker_set_attribute_completion (gboolean a_completion_on) |
Sets the attribute completion on/off. | |
void | mlview_attribute_picker_build_attribute_name_choice_list (MlViewAttributePicker *a_picker, xmlNode *a_xml_node) |
Builds the attribute name completion list. |
This class is a business widget. It lets the user enter the name/value of an attribute. It can for example perform an attribute name completion given the xmlNode on which the attribute is to be defined.
Definition in file mlview-attribute-picker.c.
|
|
Builds the attribute name completion list. The list is built, cached in the current instance of MlViewAttributePicker, and displayed to the user whenever she clicks in the attribute names completion list. This function uses mlview_parsing_utils_build_attribute_name_completion_list() to actually build the completion list.
Definition at line 872 of file mlview-attribute-picker.c. References MLVIEW_IS_ATTRIBUTE_PICKER, mlview_parsing_utils_build_attribute_name_completion_list(), and PRIVATE. |
|
Gets the content of the name entry of attribute picker.
Definition at line 736 of file mlview-attribute-picker.c. References MLVIEW_IS_ATTRIBUTE_PICKER, and PRIVATE. |
|
Gets the type of the last attribute the user has entered in the picker.
Definition at line 773 of file mlview-attribute-picker.c. References MLVIEW_IS_ATTRIBUTE_PICKER, PRIVATE, and utils_is_white_string(). |
|
Gets the content of the value entry of the attribute picker.
Definition at line 755 of file mlview-attribute-picker.c. References MLVIEW_IS_ATTRIBUTE_PICKER, and PRIVATE. |
|
Type builder.
Definition at line 642 of file mlview-attribute-picker.c. |
|
Sets the focus to the name entry of MlViewAttributePicker widget.
Definition at line 703 of file mlview-attribute-picker.c. References MLVIEW_IS_ATTRIBUTE_PICKER, and PRIVATE. |
|
Sets the focus to the value entry of MlViewAttributePicker widget.
Definition at line 719 of file mlview-attribute-picker.c. References MLVIEW_IS_ATTRIBUTE_PICKER, and PRIVATE. |
|
Builds a brand new attribute picker.
Definition at line 667 of file mlview-attribute-picker.c. References mlview_app_context_set_window_icon(), mlview_attribute_picker_set_app_context(), and MLVIEW_TYPE_ATTRIBUTE_PICKER. |
|
Graphically selects all the content of the name entry of the MlViewAttributePicker widget.
Definition at line 798 of file mlview-attribute-picker.c. References MLVIEW_IS_ATTRIBUTE_PICKER, and PRIVATE. |
|
Graphically selects all the content of the value entry of the MlViewAttributePicker widget.
Definition at line 816 of file mlview-attribute-picker.c. References MLVIEW_IS_ATTRIBUTE_PICKER, and PRIVATE. |
|
Sets a new app context.
Definition at line 687 of file mlview-attribute-picker.c. References MLVIEW_IS_ATTRIBUTE_PICKER, and PRIVATE. Referenced by mlview_attribute_picker_new(). |
|
Sets the attribute completion on/off. All the instances of MlViewAttributePicker of the current process will be affected by this method.
Definition at line 855 of file mlview-attribute-picker.c. |
|
Associates an xml node to this picker. That xml node is used for example to build the attribute name completion list if needed.
Definition at line 836 of file mlview-attribute-picker.c. References MLVIEW_IS_ATTRIBUTE_PICKER, and PRIVATE. |