5#include <QtCore/QString>
6#include <QtCore/QJsonValue>
7#include <QtGui/QVector3D>
27 void parse(
const QJsonValue& jsonValue);
42 void onIntegerFactChanged();
43 void onThisFactChanged();
45 Fact* _integerFact{
nullptr};
47 bool _ignoreChange{
false};
62 void onFloatFactChanged();
63 void onThisFactChanged();
65 Fact* _floatFact{
nullptr};
66 bool _ignoreChange{
false};
104 QString _parameter{};
106 QString _alwaysTrueReason{QStringLiteral(
"empty/default")};
109 Fact* _fact{
nullptr};
bool hasCondition() const
virtual ~FactBitset()=default
virtual ~FactFloatAsBool()=default
A Fact is used to hold a single value within the system.
ActuatorGeometry(Type type_=Type::Other, int index_=0, QVector3D position_={}, SpinDirection spinDirection_=SpinDirection::Unspecified)
static Type typeFromStr(const QString &type)
RenderOptions renderOptions
SpinDirection spinDirection
void parse(const QJsonValue &jsonValue)
DisplayOption displayOption
int indexOffset
extra offset to the ${i} index, or bitset shift offset
@ Bitset
integer displayed as boolean (checkbox), where the index defines the bit
@ BoolTrueIfPositive
Show checkbox for float/int value.
bool advanced
whether this should only be shown as advanced option
QString name
vehicle parameter name, this may have an index in the form '${i}'