summaryrefslogtreecommitdiff
path: root/tikzit/src/data/nodestyle.h
diff options
context:
space:
mode:
authorAleks Kissinger <aleks0@gmail.com>2017-02-28 14:46:39 +0100
committerAleks Kissinger <aleks0@gmail.com>2017-02-28 14:46:39 +0100
commitcb322a3acee9debf40c48ad1e3fb4458b0f51b7f (patch)
tree2cd3dc1060885152f0c706e0cf52bff0d8181d1e /tikzit/src/data/nodestyle.h
parente1756ba69dd626073e22fd0a4f4c5fda42c88829 (diff)
generic nodes
Diffstat (limited to 'tikzit/src/data/nodestyle.h')
-rw-r--r--tikzit/src/data/nodestyle.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/tikzit/src/data/nodestyle.h b/tikzit/src/data/nodestyle.h
new file mode 100644
index 0000000..baf967c
--- /dev/null
+++ b/tikzit/src/data/nodestyle.h
@@ -0,0 +1,26 @@
+#ifndef NODESTYLE_H
+#define NODESTYLE_H
+
+#include <QColor>
+
+enum NodeShape {
+ Square, UpTriangle, DownTriangle, Circle
+};
+
+class NodeStyle
+{
+public:
+ NodeStyle();
+ NodeStyle(QString nm, NodeShape sh, QColor fillCol);
+ NodeStyle(QString nm, NodeShape sh, QColor fillCol, QColor strokeCol, int strokeThick);
+ bool isNone();
+ QString name;
+ NodeShape shape;
+ QColor fillColor;
+ QColor strokeColor;
+ int strokeThickness;
+};
+
+extern NodeStyle noneStyle;
+
+#endif // NODESTYLE_H