diff options
author | Aleks Kissinger <aleks0@gmail.com> | 2017-01-20 11:25:28 +0100 |
---|---|---|
committer | Aleks Kissinger <aleks0@gmail.com> | 2017-01-20 11:25:28 +0100 |
commit | b4f6b3997ba1d1355a42e6d2cd90e7715a9f9114 (patch) | |
tree | a80940205e2e367c630c73d47f29a460ce638e9a /tikzit/src/data/graphelementproperty.h | |
parent | 36ccd03c70c305e155e00e663da725546f8f2fd9 (diff) |
directory structure
Diffstat (limited to 'tikzit/src/data/graphelementproperty.h')
-rw-r--r-- | tikzit/src/data/graphelementproperty.h | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/tikzit/src/data/graphelementproperty.h b/tikzit/src/data/graphelementproperty.h new file mode 100644 index 0000000..4e8bbd1 --- /dev/null +++ b/tikzit/src/data/graphelementproperty.h @@ -0,0 +1,38 @@ +#ifndef GRAPHELEMENTPROPERTY_H +#define GRAPHELEMENTPROPERTY_H + +#include <QObject> + +class GraphElementProperty +{ +public: + GraphElementProperty(); + GraphElementProperty(QString key, QString value, bool atom, bool keyMatch); + + // construct a property + GraphElementProperty(QString key, QString value); + + // construct an atom or keymatch + GraphElementProperty(QString key, bool keyMatch = false); + + QString key() const; + QString value() const; + void setValue(const QString &value); + bool atom() const; + bool keyMatch() const; + + bool matches(const GraphElementProperty &p); + bool operator==(const GraphElementProperty &p); + +signals: + +public slots: + +private: + QString _key; + QString _value; + bool _atom; + bool _keyMatch; +}; + +#endif // GRAPHELEMENTPROPERTY_H |