summaryrefslogtreecommitdiff
path: root/tikzit/graphelementproperty.h
diff options
context:
space:
mode:
authorAleks Kissinger <aleks0@gmail.com>2017-01-15 18:45:15 +0100
committerAleks Kissinger <aleks0@gmail.com>2017-01-15 18:45:15 +0100
commit716aadc00c1a03e43c246a72be4758fcdf809fe0 (patch)
tree7ea8584217a4239148463e82fae580da5f72163a /tikzit/graphelementproperty.h
parent3947a6b0fd38af964f5a09bd919d5d7f317697db (diff)
working on parser
Diffstat (limited to 'tikzit/graphelementproperty.h')
-rw-r--r--tikzit/graphelementproperty.h35
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