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 bool canEnter() const
virtual void onEntry(QEvent *event)
virtual QString getName() const
CoreServicesPtr mServices
virtual QString getUid() const
ParentWorkflowState(QState *parent, CoreServicesPtr services)
virtual void onExit(QEvent *event)
virtual QIcon getIcon() const
virtual ~ParentWorkflowState()
State in a WorkflowStateMachine.
boost::shared_ptr< class CoreServices > CoreServicesPtr
WorkflowState(QState *parent, QString uid, QString name, CoreServicesPtr services, bool enableAction=true)
Namespace for all CustusX production code.