NorMIT-nav  22.09
An IGT application
cx::WorkflowState Class Referenceabstract

State in a WorkflowStateMachine. More...

#include <cxWorkflowState.h>

Inheritance diagram for cx::WorkflowState:
cx::IntraOpImagingWorkflowState cx::NavigationWorkflowState cx::ParentWorkflowState cx::PatientDataWorkflowState cx::PostOpControllWorkflowState cx::PreOpPlanningWorkflowState cx::RegistrationWorkflowState

Public Slots

void canEnterSlot ()
 

Signals

void aboutToExit ()
 

Public Member Functions

 WorkflowState (QState *parent, QString uid, QString name, CoreServicesPtr services, bool enableAction=true)
 
virtual ~WorkflowState ()
 
virtual void onEntry (QEvent *event)
 
virtual void onExit (QEvent *event)
 
virtual QString getUid () const
 
virtual QString getName () const
 
std::vector< WorkflowState * > getChildStates ()
 
QAction * createAction (QActionGroup *group)
 
virtual void enableAction (bool enable)
 

Protected Slots

void setActionSlot ()
 

Protected Member Functions

virtual bool canEnter () const =0
 
virtual QIcon getIcon () const =0
 
void autoStartHardware ()
 

Protected Attributes

QString mUid
 
QString mName
 
QAction * mAction
 
CoreServicesPtr mServices
 

Detailed Description

State in a WorkflowStateMachine.

Date
4. aug. 2010
Author
jbake

Definition at line 42 of file cxWorkflowState.h.

Constructor & Destructor Documentation

◆ WorkflowState()

cx::WorkflowState::WorkflowState ( QState *  parent,
QString  uid,
QString  name,
CoreServicesPtr  services,
bool  enableAction = true 
)
inline

Definition at line 47 of file cxWorkflowState.h.

◆ ~WorkflowState()

virtual cx::WorkflowState::~WorkflowState ( )
inlinevirtual

Definition at line 56 of file cxWorkflowState.h.

Member Function Documentation

◆ aboutToExit

void cx::WorkflowState::aboutToExit ( )
signal

◆ autoStartHardware()

void cx::WorkflowState::autoStartHardware ( )
protected

Definition at line 80 of file cxWorkflowState.cpp.

◆ canEnter()

◆ canEnterSlot

void cx::WorkflowState::canEnterSlot ( )
slot

Definition at line 68 of file cxWorkflowState.cpp.

◆ createAction()

QAction * cx::WorkflowState::createAction ( QActionGroup *  group)

Definition at line 50 of file cxWorkflowState.cpp.

◆ enableAction()

void cx::WorkflowState::enableAction ( bool  enable)
virtual

Definition at line 88 of file cxWorkflowState.cpp.

◆ getChildStates()

std::vector< WorkflowState * > cx::WorkflowState::getChildStates ( )

Definition at line 37 of file cxWorkflowState.cpp.

◆ getIcon()

◆ getName()

virtual QString cx::WorkflowState::getName ( ) const
inlinevirtual

Definition at line 62 of file cxWorkflowState.h.

◆ getUid()

virtual QString cx::WorkflowState::getUid ( ) const
inlinevirtual

Definition at line 61 of file cxWorkflowState.h.

◆ onEntry()

void cx::WorkflowState::onEntry ( QEvent *  event)
virtual

◆ onExit()

void cx::WorkflowState::onExit ( QEvent *  event)
virtual

Reimplemented in cx::ParentWorkflowState.

Definition at line 32 of file cxWorkflowState.cpp.

◆ setActionSlot

void cx::WorkflowState::setActionSlot ( )
protectedslot

Definition at line 74 of file cxWorkflowState.cpp.

Member Data Documentation

◆ mAction

QAction* cx::WorkflowState::mAction
protected

Definition at line 84 of file cxWorkflowState.h.

◆ mName

QString cx::WorkflowState::mName
protected

Definition at line 83 of file cxWorkflowState.h.

◆ mServices

CoreServicesPtr cx::WorkflowState::mServices
protected

Definition at line 85 of file cxWorkflowState.h.

◆ mUid

QString cx::WorkflowState::mUid
protected

Definition at line 82 of file cxWorkflowState.h.


The documentation for this class was generated from the following files: