25#ifndef ACTIONTRANSITION_H
26#define ACTIONTRANSITION_H
28#include <QSignalTransition>
65 ActionTransition(QPushButton* sender,
const char* signal, QState* sourceState =
nullptr,
bool applyPreviousAction =
true, QTextStream* logStream =
nullptr);
82 bool applyPreviousAction;
85 QMap<QString, QString> componentsToClose;
88 QStringList componentsToForceClose;
91 QTextStream* logStream;
94 QTime transitionTimer;
97 QPushButton* myButton;
The state (in a state machine point of view) corresponding to the current processed action.
Definition ActionState.h:48
This class handle a transition between two states (including previous/next buttons).
Definition ActionTransition.h:59
bool isNamed(QString) const
Check the name of the transition (i.e. text of the button)
Definition ActionTransition.cpp:147
void onTransition(QEvent *e) override
called during the transition
Definition ActionTransition.cpp:43
void addComponentToClose(QString compName, QString compType, bool force=false)
add a component's name and type to the list of component to close during the transition.
Definition ActionTransition.cpp:152
void autoNext()
programmatically activate the transition (during autoNext), i.e. call "click" on the button
Definition ActionTransition.cpp:160