TutorialStateContext Class Reference

Context class for tutorial state machine. More...

#include <TutorialStateContext.h>

List of all members.

Public Member Functions

 TutorialStateContext (TutorialDlg &tutorialDlg)
 Single constructor.
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.
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

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.


The documentation for this class was generated from the following files:
 All Classes Files Functions Variables Enumerations Enumerator Friends

Generated on 4 Nov 2016 for Engauge Digitizer by  doxygen 1.6.1