|
QElectroTech
0.8-dev
|
Go to the documentation of this file.
18 #ifndef DIAGRAM_CONTEXT_H
19 #define DIAGRAM_CONTEXT_H
20 #include <QDomElement>
25 #include <QStringList>
27 #include "pugixml.hpp"
65 void remove(
const QString &key);
67 bool contains(
const QString &)
const;
68 const QVariant
operator[](
const QString &)
const;
69 bool addValue(
const QString &,
const QVariant &,
bool show =
true);
70 QVariant
value(
const QString &key)
const;
78 void toXml(QDomElement &,
const QString & =
"property")
const;
79 void fromXml(
const QDomElement &,
const QString & =
"property");
80 void fromXml(
const pugi::xml_node &dom_element,
const QString &tag_name =
"property");
81 void toSettings(QSettings &,
const QString &)
const;
@ Alphabetical
Definition: diagramcontext.h:60
QList< QString > keys(KeyOrder=None) const
Definition: diagramcontext.cpp:49
QHash< QString, QVariant > m_content
Diagram context data (key/value pairs)
Definition: diagramcontext.h:90
void fromXml(const QDomElement &, const QString &="property")
Definition: diagramcontext.cpp:157
QDebug operator<<(QDebug debug, const DiagramContext &context)
Definition: diagramcontext.cpp:236
void fromSettings(QSettings &, const QString &)
Definition: diagramcontext.cpp:201
void remove(const QString &key)
DiagramContext::remove.
Definition: diagramcontext.cpp:42
QList< QDomElement > findInDomElement(const QDomElement &, const QString &)
Definition: qet.cpp:333
static QString validKeyRegExp()
Definition: diagramcontext.cpp:216
@ None
Definition: diagramcontext.h:59
static bool stringLongerThan(const QString &, const QString &)
Definition: diagramcontext.cpp:223
KeyOrder
Definition: diagramcontext.h:58
QHash< QString, bool > m_content_show
Definition: diagramcontext.h:91
QVariant value(const QString &key) const
Definition: diagramcontext.cpp:100
bool keyIsAcceptable(const QString &) const
Definition: diagramcontext.cpp:231
QDebug operator<<(QDebug debug, const DiagramContext &context)
Definition: diagramcontext.cpp:236
bool operator!=(const DiagramContext &) const
Definition: diagramcontext.cpp:134
bool keyMustShow(const QString &) const
DiagramContext::keyMustShow.
Definition: diagramcontext.cpp:123
int count()
Definition: diagramcontext.cpp:115
void toXml(QDomElement &, const QString &="property") const
Definition: diagramcontext.cpp:142
void toSettings(QSettings &, const QString &) const
Definition: diagramcontext.cpp:185
void clear()
Definition: diagramcontext.cpp:107
void add(DiagramContext other)
DiagramContext::add Add all value of other to this. If a key already exist, the value is replaced....
Definition: diagramcontext.cpp:31
bool contains(const QString &) const
Definition: diagramcontext.cpp:70
const QVariant operator[](const QString &) const
Definition: diagramcontext.cpp:77
bool operator==(const DiagramContext &) const
Definition: diagramcontext.cpp:129
bool addValue(const QString &, const QVariant &, bool show=true)
Definition: diagramcontext.cpp:91
Definition: diagramcontext.h:56
@ DecreasingLength
Definition: diagramcontext.h:61