|
NorMIT-nav
2023.01.05-dev+develop.0da12
An IGT application
|
Go to the documentation of this file.
12 #ifndef CXWORKFLOWSTATE_H_
13 #define CXWORKFLOWSTATE_H_
15 #include "cxResourceExport.h"
19 #include <QStateMachine>
24 #include "boost/shared_ptr.hpp"
53 mEnableAction(enableAction)
58 virtual void onEntry(QEvent * event);
59 virtual void onExit(QEvent * event);
61 virtual QString
getUid()
const {
return mUid; }
62 virtual QString
getName()
const {
return mName; }
64 std::vector<WorkflowState*> getChildStates();
65 QAction* createAction(QActionGroup* group);
67 virtual void enableAction(
bool enable);
78 virtual bool canEnter()
const = 0;
79 virtual QIcon getIcon()
const = 0;
80 void autoStartHardware();
99 virtual void onExit(QEvent * event) {}
101 virtual QIcon
getIcon()
const {
return QIcon(
""); }
virtual ~ParentWorkflowState()
virtual QIcon getIcon() const
Namespace for all CustusX production code.
State in a WorkflowStateMachine.
ParentWorkflowState(QState *parent, CoreServicesPtr services)
virtual bool canEnter() const
virtual QString getUid() const
boost::shared_ptr< class CoreServices > CoreServicesPtr
virtual void onExit(QEvent *event)
WorkflowState(QState *parent, QString uid, QString name, CoreServicesPtr services, bool enableAction=true)
CoreServicesPtr mServices
virtual QString getName() const
virtual void onEntry(QEvent *event)