15 #include <QApplication> 54 void StateServiceImpl::initialize()
61 mWorkflowStateMachine->start();
81 return QString(
"%1").arg(CustusX_VERSION_STRING);
86 return mWorkflowStateMachine->getActionGroup();
91 return mWorkflowStateMachine;
96 mWorkflowStateMachine->setActiveState(uid);
102 return parser.
getDesktop(mWorkflowStateMachine->getActiveUidState());
108 parser.
setDesktop(mWorkflowStateMachine->getActiveUidState(),
115 parser.
resetDesktop(mWorkflowStateMachine->getActiveUidState());
void activeStateChanged()
virtual QActionGroup * getWorkflowActions()
void activeProfileChanged()
virtual WorkflowStateMachinePtr getWorkflow()
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.