15 #include <QApplication> 55 void StateServiceImpl::initialize()
62 mWorkflowStateMachine->start();
82 return QString(
"%1").arg(CustusX_VERSION_STRING);
87 return mWorkflowStateMachine->getActionGroup();
92 return mWorkflowStateMachine;
97 mWorkflowStateMachine->setActiveState(uid);
103 return parser.
getDesktop(mWorkflowStateMachine->getActiveUidState());
109 parser.
setDesktop(mWorkflowStateMachine->getActiveUidState(),
116 parser.
resetDesktop(mWorkflowStateMachine->getActiveUidState());
void activeStateChanged()
virtual QActionGroup * getWorkflowActions()
void activeProfileChanged()
virtual void setWorkFlowState(QString uid)
ProfilePtr activeProfile()
virtual void saveDesktop(Desktop desktop)
void applicationStateChanged()
void setDesktop(QString workflowName, Desktop desktop)
virtual void resetDesktop()
static VisServicesPtr create(ctkPluginContext *context)
virtual Desktop getActiveDesktop()
static ProfileManager * getInstance(QString defaultProfile=QString("Laboratory"))
returns the only instance of this class
QStringList getProfiles()
virtual QString getVersionName()
State Machine for the Workflow Steps for CustusX.
virtual QStringList getAllApplicationStateNames() const
void resetDesktop(QString workflowName)
StateServiceImpl(ctkPluginContext *context)
void workflowStateAboutToChange()
virtual ~StateServiceImpl()
void fillDefaultSettings()
virtual QString getApplicationStateName() const
boost::shared_ptr< class WorkflowStateMachine > WorkflowStateMachinePtr
void activeStateAboutToChange()
void workflowStateChanged()
Data class for CustusX desktop.
Desktop getDesktop(QString workflowName)
Namespace for all CustusX production code.