#ifndef NODESTYLE_H #define NODESTYLE_H #include "graphelementdata.h" #include #include #include #include #include enum NodeShape { Rectangle, UpTriangle, DownTriangle, Circle }; class NodeStyle { public: NodeStyle(); NodeStyle(QString name, GraphElementData *data); bool isNone(); GraphElementData *data() const; QString name() const; NodeShape shape() const; QColor fillColor() const; QColor strokeColor() const; int strokeThickness() const; QPen pen() const; QBrush brush() const; QPainterPath path() const; QPainterPath palettePath() const; QIcon icon() const; private: QString _name; GraphElementData *_data; }; extern NodeStyle *noneStyle; #endif // NODESTYLE_H