51 lines
898 B
C++
51 lines
898 B
C++
#pragma once
|
|
|
|
#include <QtGui/QColor>
|
|
#include <QJsonObject>
|
|
|
|
#include "style.h"
|
|
|
|
class NodeStyle : public Style
|
|
{
|
|
public:
|
|
NodeStyle();
|
|
|
|
NodeStyle(QString jsonText);
|
|
|
|
NodeStyle(QJsonObject const &json);
|
|
|
|
virtual ~NodeStyle() = default;
|
|
|
|
public:
|
|
static void setNodeStyle(QString jsonText);
|
|
|
|
public:
|
|
void loadJson(QJsonObject const &json) override;
|
|
|
|
QJsonObject toJson() const override;
|
|
|
|
public:
|
|
QColor NormalBoundaryColor;
|
|
QColor SelectedBoundaryColor;
|
|
QColor GradientColor0;
|
|
QColor GradientColor1;
|
|
QColor GradientColor2;
|
|
QColor GradientColor3;
|
|
QColor ShadowColor;
|
|
QColor FontColor;
|
|
QColor FontColorFaded;
|
|
|
|
QColor ConnectionPointColor;
|
|
QColor FilledConnectionPointColor;
|
|
|
|
QColor WarningColor;
|
|
QColor ErrorColor;
|
|
|
|
float PenWidth;
|
|
float HoveredPenWidth;
|
|
|
|
float ConnectionPointDiameter;
|
|
|
|
float Opacity;
|
|
};
|