diff options
Diffstat (limited to 'tikzit/graphelementproperty.h')
-rw-r--r-- | tikzit/graphelementproperty.h | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/tikzit/graphelementproperty.h b/tikzit/graphelementproperty.h new file mode 100644 index 0000000..56d20e9 --- /dev/null +++ b/tikzit/graphelementproperty.h @@ -0,0 +1,35 @@ +#ifndef GRAPHELEMENTPROPERTY_H +#define GRAPHELEMENTPROPERTY_H + +#include <QObject> + +class GraphElementProperty : public QObject +{ + Q_OBJECT +public: + GraphElementProperty(QString key, QString value, bool atom, bool keyMatch, QObject *parent = 0); + + // construct a property + GraphElementProperty(QString key, QString value, QObject *parent = 0); + + // construct an atom + GraphElementProperty(QString key, QObject *parent = 0); + + QString key() const; + QString value() const; + bool atom() const; + bool keyMatch() const; + + bool matches(GraphElementProperty *p); +signals: + +public slots: + +private: + QString _key; + QString _value; + bool _atom; + bool _keyMatch; +}; + +#endif // GRAPHELEMENTPROPERTY_H |