Engauge Digitizer 2
|
Context class for tutorial state machine. More...
#include <TutorialStateContext.h>
Public Member Functions | |
TutorialStateContext (TutorialDlg &tutorialDlg) | |
Single constructor. | |
~TutorialStateContext () | |
Destructor deallocates memory. | |
void | requestDelayedStateTransition (TutorialState tutorialState) |
Request a transition to the specified state from the current state. | |
void | requestImmediateStateTransition (TutorialState tutorialState) |
Request a transition to the specified state from the current state. | |
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.
TutorialStateContext::TutorialStateContext | ( | TutorialDlg & | tutorialDlg | ) |
Single constructor.
Definition at line 25 of file TutorialStateContext.cpp.
TutorialStateContext::~TutorialStateContext | ( | ) |
Destructor deallocates memory.
Definition at line 32 of file TutorialStateContext.cpp.
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 86 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 95 of file TutorialStateContext.cpp.
TutorialDlg & TutorialStateContext::tutorialDlg | ( | ) |
Access to tutorial dialogs and its scene.
Definition at line 109 of file TutorialStateContext.cpp.