18 #ifndef XMLPARAMETERREADER_H
19 #define XMLPARAMETERREADER_H
22 #include <QXmlStreamReader>
23 #include <QTreeWidget>
24 #include <QTreeWidgetItem>
32 namespace ParameterGui
102 QString
demangle (
const QString &s);
XMLParameterReader(QTreeWidget *tree_widget)
Constructor.
QIcon parameter_icon
An icon for parameters in the tree structure.
Definition: xml_parameter_reader.h:122
QIcon subsection_icon
An icon for subsections in the tree structure.
Definition: xml_parameter_reader.h:118
QXmlStreamReader xml
The QXmlStreamReader object for reading XML elements.
Definition: xml_parameter_reader.h:110
bool read_xml_file(QIODevice *device)
This function reads the parameters from device into the tree_widget.
QString demangle(const QString &s)
Reimplemented from the ParameterHandler class.
void parse_parameters()
This function implements a loop over the XML file and parses XML elements.
void read_parameter_element(QTreeWidgetItem *parent)
This function parses a parameter and and adds it as a child to parent.
QTreeWidget * tree_widget
A pointer to the tree structure.
Definition: xml_parameter_reader.h:114
QString error_string() const
This function returns an error message.
The XMLParameterReader class provides an interface to parse parameters from XML files to a QTreeWidge...
Definition: xml_parameter_reader.h:45
void read_subsection_element(QTreeWidgetItem *parent)
This functions parses a subsection.
QTreeWidgetItem * create_child_item(QTreeWidgetItem *item)
This helper function creates a new child of item in the tree.