summaryrefslogtreecommitdiff
path: root/tikzit/src/data/nodestyle.cpp
blob: 7eca7910e39fa62256cc740f1bd3e7c92a630532 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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"; }