21 #ifndef __ctkWorkflowTransition_h 22 #define __ctkWorkflowTransition_h 26 #include <QAbstractTransition> 30 #include "ctkCoreExport.h" 49 : QEvent(QEvent::Type(getWorkflowIntrastepTransitionEventType())),
50 EventTransitionType(newTransitionType){}
56 static int workflowIntrastepTransitionEventType = QEvent::registerEventType(QEvent::User+1);
57 return workflowIntrastepTransitionEventType;
73 ValidationTransition = 0,
74 ValidationFailedTransition
78 : TransitionType(newTransitionType){}
111 : QEvent(QEvent::Type(getWorkflowInterstepTransitionEventType())),
112 EventTransitionType(newTransitionType){}
114 : QEvent(QEvent::Type(getWorkflowInterstepTransitionEventType())),
115 EventTransitionType(newTransitionType),
122 static int workflowInterstepTransitionEventType = QEvent::registerEventType(QEvent::User+1);
123 return workflowInterstepTransitionEventType;
141 TransitionToNextStep = 0,
145 TransitionToPreviousStartingStepAfterSuccessfulGoToFinishStep
149 : TransitionType(newTransitionType){}
151 : TransitionType(newTransitionType),
155 QString&
id() {
return this->Id;}
170 && this->Id == workflowEvent->
EventId);
ctkWorkflowInterstepTransition(InterstepTransitionType newTransitionType)
IntrastepTransitionType transitionType()
void onTransition(QEvent *)
ctkWorkflowIntrastepTransitionEvent(int newTransitionType)
EventTransitionType is the value of a transition event, used to conditionally trigger transitions...
virtual bool eventTest(QEvent *e)
static int getWorkflowInterstepTransitionEventType()
void onTransition(QEvent *)
ctkWorkflowInterstepTransitionEvent(int newTransitionType, const QString &newId)
InterstepTransitionType transitionType()
virtual bool eventTest(QEvent *e)
static int getWorkflowIntrastepTransitionEventType()
Custom transitions for use with ctkWorkflow.
ctkWorkflowInterstepTransitionEvent(int newTransitionType)
EventTransitionType is the value of a transition event, used to conditionally trigger transitions...
ctkWorkflowInterstepTransition(InterstepTransitionType newTransitionType, const QString &newId)
ctkWorkflowIntrastepTransition(IntrastepTransitionType newTransitionType)