Engauge Digitizer
2
|
Context class for tutorial state machine. More...
#include <TutorialStateContext.h>
Public Member Functions | |
TutorialStateContext (TutorialDlg &tutorialDlg) | |
Single constructor. | |
void | requestDelayedStateTransition (TutorialState tutorialState) |
Request a transition to the specified state from the current state. More... | |
void | requestImmediateStateTransition (TutorialState tutorialState) |
Request a transition to the specified state from the current state. More... | |
TutorialDlg & | tutorialDlg () |
Access to tutorial dialogs and its scene. | |
Context class for tutorial state machine.
Each state represents one panel in the tutorial Tutorial assumptions:
Definition at line 20 of file TutorialStateContext.h.
void TutorialStateContext::requestDelayedStateTransition | ( | TutorialState | tutorialState | ) |
Request a transition to the specified state from the current state.
A timer is used. This assumes TutorialStateContext is NOT on the stack - probably since an external event (mouse click, ...) resulted in a callback to the current state
Definition at line 81 of file TutorialStateContext.cpp.
void TutorialStateContext::requestImmediateStateTransition | ( | TutorialState | tutorialState | ) |
Request a transition to the specified state from the current state.
The transition is delayed until the current state is off the stack to prevent stack corruption errors. This assumes TutorialStateContext is on the stack to finish the transition after execution returns from the state
Definition at line 90 of file TutorialStateContext.cpp.