 |
Computer Assited Medical Intervention Tool Kit
version 4.1
|
Go to the documentation of this file.
25 #ifndef ACTIONTRANSITION_H
26 #define ACTIONTRANSITION_H
28 #include <QSignalTransition>
32 #include <QTextStream>
33 #include <QStringList>
34 #include <QPushButton>
99 #endif // ACTIONTRANSITION_H
ActionTransition(QPushButton *sender, const char *signal, QState *sourceState=nullptr, bool applyPreviousAction=true, QTextStream *logStream=nullptr)
constructor: takes at least the state and signal considered for the transition
Definition: ActionTransition.cpp:35
ApplyStatus
Definition: Action.h:244
The state (in a state machine point of view) corresponding to the current processed action.
Definition: ActionState.h:47
bool isNamed(QString) const
Check the name of the transition (i.e. text of the button)
Definition: ActionTransition.cpp:147
QMap< QString, QString > componentsToClose
Map containing all the name/type of the components to be closed during the transition.
Definition: ActionTransition.h:84
static ActionStateViewer * getActionStateViewer()
returns the unique instance oh ActionStateViewer
Definition: ActionStateViewer.cpp:40
void setState(ActionState *actionState)
Definition: ActionStateViewer.cpp:88
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
QPushButton * myButton
the button that controls this transition
Definition: ActionTransition.h:96
QTextStream * logStream
local pointer to the log stream
Definition: ActionTransition.h:90
bool applyPreviousAction
should the action be applied during the transition (default set to true)
Definition: ActionTransition.h:81
QList< Component * > ComponentList
A list of Component.
Definition: CamiTKAPI.h:88
QStringList componentsToForceClose
list of the components' name that should be closed even if they are modified
Definition: ActionTransition.h:87
void onTransition(QEvent *e) override
called during the transition
Definition: ActionTransition.cpp:42
This class handle a transition between two states (including previous/next buttons)....
Definition: ActionTransition.h:58
void autoNext()
programmatically activate the transition (during autoNext), i.e. call "click" on the button
Definition: ActionTransition.cpp:160
QTime * startTime
Keep track of time (needed for the log)
Definition: ActionTransition.h:93
Definition: Action.cpp:36