34 qDeleteAll (m_states);
37void TutorialStateContext::createStates ()
55 completeRequestedStateTransitionIfExists ();
58void TutorialStateContext::createTimer ()
62 m_timer =
new QTimer ();
64 m_timer->setSingleShot (
true);
65 connect (m_timer, SIGNAL (timeout ()),
this, SLOT (slotTimeout ()));
68void TutorialStateContext::completeRequestedStateTransitionIfExists ()
70 if (m_currentState != m_requestedState) {
77 m_states [m_currentState]->end ();
81 m_currentState = m_requestedState;
82 m_states [m_requestedState]->begin ();
90 m_requestedState = tutorialState;
99 m_requestedState = tutorialState;
102void TutorialStateContext::slotTimeout()
106 completeRequestedStateTransitionIfExists();
111 return m_tutorialDlg;
#define ENGAUGE_ASSERT(cond)
Drop in replacement for Q_ASSERT.
log4cpp::Category * mainCat
@ TUTORIAL_STATE_POINT_MATCH
@ TUTORIAL_STATE_AXIS_POINTS
@ TUTORIAL_STATE_CURVE_SELECTION
@ TUTORIAL_STATE_COLOR_FILTER
@ TUTORIAL_STATE_SEGMENT_FILL
@ TUTORIAL_STATE_CURVE_TYPE
@ TUTORIAL_STATE_CHECKLIST_WIZARD_POINTS
@ TUTORIAL_STATE_INTRODUCTION
@ TUTORIAL_STATE_CHECKLIST_WIZARD_LINES
Tutorial using a strategy like a comic strip with decision points deciding which panels appear.
Axis points panel discusses axis point digitization.
Checklist wizard panel for lines discusses the checklist wizard, and returns to TRANSITION_STATE_SEGM...
Checklist wizard panel for points discusses the checklist wizard, and returns to TRANSITION_STATE_POI...
Color filter panel discusses the curve-specific color filtering.
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.
TutorialStateContext(TutorialDlg &tutorialDlg)
Single constructor.
TutorialDlg & tutorialDlg()
Access to tutorial dialogs and its scene.
~TutorialStateContext()
Destructor deallocates memory.
Curve selection panel discusses how to select a curve, and perform setup on the selected curve.
Curve type state/panel lets user select the curve type (lines or points)
Introduction state/panel is the first panel the user sees.
Point match panel discusses the matching of points in curves without lines.
Segment fill panel discusses the digitization of points along curve lines.
#define LOG4CPP_INFO_S(logger)