Maki
Formally verfied low-code orchestration
Loading...
Searching...
No Matches
BodyConfig Class Reference

Configuration for the body of a node. More...

#include <config.h>

Inheritance diagram for BodyConfig:
ConfigBase

Public Member Functions

 BodyConfig ()
 Default constructor.
 BodyConfig (const QJsonObject &object)
 Constructor from JSON object.
Public Member Functions inherited from ConfigBase
 ConfigBase ()
 Default constructor.
 ConfigBase (ConfigBase &copy)
 Copy constructor.
 ConfigBase (const ConfigBase &copy)
 Copy constructor.
bool isValid () const
 Checks if the configuration is valid.

Public Attributes

QColor textColor = Qt::black
 Shape of the body.
QColor iconColor = Qt::black
 Text color.
QColor backgroundColor = Qt::lightGray
 Icon color.
QColor borderColor = Qt::black
 Background color.
int width = 100
 Border color.
int height = 50
 Width of the body.
int zIndex = 1
 Height of the body.
int borderRadius = 10
 Z-index for stacking order.
QString iconPath = ""
 Border radius for rounded corners.
qreal iconScale = 1
 Path to the icon image.
Public Attributes inherited from ConfigBase
bool isConfigValid
 Indicates whether the configuration is valid.
QString errorMessage
 Error message if the configuration is invalid.

Friends

QDataStream & operator<< (QDataStream &out, const BodyConfig &config)
 Scale factor for the icon.

Additional Inherited Members

Protected Member Functions inherited from ConfigBase
void setInvalid (const QString &message)
 Sets the configuration as invalid with an error message.

Detailed Description

Configuration for the body of a node.

Constructor & Destructor Documentation

◆ BodyConfig()

BodyConfig::BodyConfig ( const QJsonObject & object)

Constructor from JSON object.

Parameters
objectThe JSON object to initialize the configuration from.

The documentation for this class was generated from the following files:
  • /__w/maki/maki/app/common/config.h
  • /__w/maki/maki/app/common/config.cpp