36 #include <QApplication> 76 void StateServiceImpl::initialize()
83 mWorkflowStateMachine->start();
103 return QString(
"%1").arg(CustusX_VERSION_STRING);
108 return mWorkflowStateMachine->getActionGroup();
113 return mWorkflowStateMachine;
118 mWorkflowStateMachine->setActiveState(uid);
124 return parser.
getDesktop(mWorkflowStateMachine->getActiveUidState());
130 parser.
setDesktop(mWorkflowStateMachine->getActiveUidState(),
137 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.