Engauge Digitizer  2
Public Member Functions | List of all members
TutorialStateContext Class Reference

Context class for tutorial state machine. More...

#include <TutorialStateContext.h>

Inheritance diagram for TutorialStateContext:

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...
 
TutorialDlgtutorialDlg ()
 Access to tutorial dialogs and its scene.
 

Detailed Description

Context class for tutorial state machine.

Each state represents one panel in the tutorial Tutorial assumptions:

  1. Dealing with multiple curves is postponed until the end of the tutorial.

Definition at line 20 of file TutorialStateContext.h.

Member Function Documentation

◆ requestDelayedStateTransition()

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.

◆ requestImmediateStateTransition()

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.


The documentation for this class was generated from the following files: