move from tabs to spaces

This commit is contained in:
uvos 2022-04-15 13:28:47 +02:00
parent a6aad07f05
commit fa45072998
86 changed files with 2611 additions and 2486 deletions

View file

@ -9,46 +9,46 @@
class Actor : public Item
{
Q_OBJECT
Q_OBJECT
public:
uint8_t triggerValue = 0;
uint8_t triggerValue = 0;
protected:
bool active = true;
bool exausted = false;
bool active = true;
bool exausted = false;
void performAction();
void performAction();
signals:
void sigValue(uint8_t value);
void sigValue(uint8_t value);
public slots:
virtual void makeActive();
virtual void makeInactive();
virtual void setActive(uint8_t state);
virtual void onValueChanged(uint8_t state);
virtual void makeActive();
virtual void makeInactive();
virtual void setActive(uint8_t state);
virtual void onValueChanged(uint8_t state);
virtual void setValue(uint8_t value);
virtual void setValue(uint8_t value);
public:
Actor(QObject* parent = nullptr);
virtual ~Actor();
bool isExausted();
Actor(QObject* parent = nullptr);
virtual ~Actor();
bool isExausted();
virtual QString actionName();
virtual QString actionName();
bool isActive();
void setTriggerValue(uint8_t value);
bool isActive();
void setTriggerValue(uint8_t value);
uint8_t getTriggerValue();
uint8_t getTriggerValue();
static std::shared_ptr<Actor> createActor(const QString& type);
static std::shared_ptr<Actor> createActor(const QString& type);
virtual void store(QJsonObject& json);
virtual void load(const QJsonObject& json, const bool preserve = false);
static std::shared_ptr<Actor> loadActor(const QJsonObject& json);
virtual void store(QJsonObject& json);
virtual void load(const QJsonObject& json, const bool preserve = false);
static std::shared_ptr<Actor> loadActor(const QJsonObject& json);
};
#endif // ACTOR_H