summaryrefslogtreecommitdiff
path: root/src/data/nodestyle.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/data/nodestyle.h')
-rw-r--r--src/data/nodestyle.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/data/nodestyle.h b/src/data/nodestyle.h
new file mode 100644
index 0000000..00d1b20
--- /dev/null
+++ b/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