 |
CTK
0.1.0
The Common Toolkit is a community effort to provide support code for medical image analysis, surgical navigation, and related projects.
|
Go to the documentation of this file.
21 #ifndef __ctkWorkflowStep_h
22 #define __ctkWorkflowStep_h
30 #include "ctkWorkflow_p.h"
33 #include "ctkCoreExport.h"
37 class ctkWorkflowStepPrivate;
61 void setId(
const QString& newStepId);
205 virtual void validate(
const QString& desiredBranchId = QString());
244 QScopedPointer<ctkWorkflowStepPrivate>
d_ptr;
250 friend class ctkWorkflowPrivate;
void onExitComplete() const
Signal (emitted by the private implementation) indicating that the step's 'onExit' processing has com...
virtual void onEntry(const ctkWorkflowStep *comingFrom, const ctkWorkflowInterstepTransition::InterstepTransitionType transitionType)
Reimplement this function for step-specific processing when entering a step.
ctkWorkflowStep is the basis for a workflow step.
void setId(const QString &newStepId)
void setHasOnEntryCommand(bool newHasOnEntryCommand)
QScopedPointer< ctkWorkflowStepPrivate > d_ptr
void setHasOnExitCommand(bool newHasOnExitCommand)
ctkWorkflow is the basis for a workflow engine, i.e. a state machine with enhancements to support ctk...
bool isWidgetType() const
Returns true if the object is a widget; otherwise returns false.
QString description() const
Set/get description.
void validationComplete(bool validationSuceeded, const QString &branchId=QString()) const
Signal (emitted by the private implementation) indicating that validation of this step's processing h...
ctkWorkflowStep(const QString &newId)
virtual void onExit(const ctkWorkflowStep *goingTo, const ctkWorkflowInterstepTransition::InterstepTransitionType transitionType)
Reimplement this function for step-specific processing when exiting a step.
bool hasOnEntryCommand() const
QObject * ctkWorkflowStepQObject()
Get QObject associated with this step, to connect signals/slots.
bool hasValidateCommand() const
virtual ~ctkWorkflowStep()
void invokeOnExitCommand(const ctkWorkflowStep *goingTo, const ctkWorkflowInterstepTransition::InterstepTransitionType transitionType) const
Signal (emitted by the private implementation) indicating that the step's 'onExit' processing should ...
QState * processingState() const
Get the step's processing state.
void setStatusText(const QString &newText)
QString name() const
Set/get name.
ctkWorkflowIntrastepTransition * validationTransition() const
Get the step's validation transition.
void setHasValidateCommand(bool newHasValidateCommand)
virtual void validate(const QString &desiredBranchId=QString())
Validates the computation performed in this step's processing state.
void invokeOnEntryCommand(const ctkWorkflowStep *comingFrom, const ctkWorkflowInterstepTransition::InterstepTransitionType transitionType) const
Signal (emitted by the private implementation) indicating that the step's 'onEntry' processing should...
QString statusText() const
Get statusText.
ctkWorkflow * workflow() const
Get the workflow associated with this step.
ctkWorkflowIntrastepTransition * validationFailedTransition() const
Get the step's validation failed transition.
ctkWorkflowStep(ctkWorkflowStepPrivate *pimpl, const QString &newId)
void setDescription(const QString &newDescription)
QState * validationState() const
Get the step's validation state.
void onEntryComplete() const
Signal (emitted by the private implementation) indicating that the step's 'onEntry' processing has co...
QString id() const
Get id.
void setWorkflow(ctkWorkflow *newWorkflow)
Set workflow.
bool hasOnExitCommand() const
void invokeValidateCommand(const QString &desiredBranchId=QString()) const
Signal (emitted by the private implementation) indicating that validation of this step's processing s...
void setName(const QString &newName)