summaryrefslogtreecommitdiff
path: root/src/data/nodestyle.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/data/nodestyle.cpp')
-rw-r--r--src/data/nodestyle.cpp32
1 files changed, 32 insertions, 0 deletions
diff --git a/src/data/nodestyle.cpp b/src/data/nodestyle.cpp
new file mode 100644
index 0000000..7eca791
--- /dev/null
+++ b/src/data/nodestyle.cpp
@@ -0,0 +1,32 @@
+#include "nodestyle.h"
+
+NodeStyle *noneStyle = new NodeStyle();
+
+NodeStyle::NodeStyle()
+{
+ name = "none";
+ shape = NodeShape::Circle;
+ fillColor = Qt::white;
+ strokeColor = Qt::black;
+ strokeThickness = 1;
+}
+
+NodeStyle::NodeStyle(QString nm, NodeShape sh, QColor fillCol)
+{
+ name = nm;
+ shape = sh;
+ fillColor = fillCol;
+ strokeColor = Qt::black;
+ strokeThickness = 1;
+}
+
+NodeStyle::NodeStyle(QString nm, NodeShape sh, QColor fillCol, QColor strokeCol, int strokeThick)
+{
+ name = nm;
+ shape = sh;
+ fillColor = fillCol;
+ strokeColor = strokeCol;
+ strokeThickness = strokeThick;
+}
+
+bool NodeStyle::isNone() { return name == "none"; }