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){}
100 IntrastepTransitionType TransitionType;
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);
176 InterstepTransitionType TransitionType;
InterstepTransitionType transitionType()
ctkWorkflowInterstepTransition(InterstepTransitionType newTransitionType)
@ TransitionToPreviousStep
virtual bool eventTest(QEvent *e)
void onTransition(QEvent *)
ctkWorkflowInterstepTransition(InterstepTransitionType newTransitionType, const QString &newId)
void onTransition(QEvent *)
ctkWorkflowIntrastepTransition(IntrastepTransitionType newTransitionType)
IntrastepTransitionType transitionType()
virtual bool eventTest(QEvent *e)
ctkWorkflowInterstepTransitionEvent(int newTransitionType, const QString &newId)
static int getWorkflowInterstepTransitionEventType()
ctkWorkflowInterstepTransitionEvent(int newTransitionType)
EventTransitionType is the value of a transition event, used to conditionally trigger transitions.
Custom transitions for use with ctkWorkflow.
static int getWorkflowIntrastepTransitionEventType()
ctkWorkflowIntrastepTransitionEvent(int newTransitionType)
EventTransitionType is the value of a transition event, used to conditionally trigger transitions.