26 m_tutorialDlg (tutorialDlg)
34 qDeleteAll (m_states);
37 void TutorialStateContext::createStates ()
55 completeRequestedStateTransitionIfExists ();
58 void TutorialStateContext::createTimer ()
62 m_timer =
new QTimer ();
64 m_timer->setSingleShot (
true);
65 connect (m_timer, SIGNAL (timeout ()),
this, SLOT (slotTimeout ()));
68 void 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;
102 void TutorialStateContext::slotTimeout()
106 completeRequestedStateTransitionIfExists();
111 return m_tutorialDlg;
Point match panel discusses the matching of points in curves without lines.
Curve type state/panel lets user select the curve type (lines or points)
void requestImmediateStateTransition(TutorialState tutorialState)
Request a transition to the specified state from the current state.
#define LOG4CPP_INFO_S(logger)
Checklist wizard panel for lines discusses the checklist wizard, and returns to TRANSITION_STATE_SEGM...
Color filter panel discusses the curve-specific color filtering.
Axis points panel discusses axis point digitization.
Tutorial using a strategy like a comic strip with decision points deciding which panels appear...
Curve selection panel discusses how to select a curve, and perform setup on the selected curve...
TutorialStateContext(TutorialDlg &tutorialDlg)
Single constructor.
Checklist wizard panel for points discusses the checklist wizard, and returns to TRANSITION_STATE_POI...
Segment fill panel discusses the digitization of points along curve lines.
log4cpp::Category * mainCat
Introduction state/panel is the first panel the user sees.
void requestDelayedStateTransition(TutorialState tutorialState)
Request a transition to the specified state from the current state.
TutorialDlg & tutorialDlg()
Access to tutorial dialogs and its scene.
#define ENGAUGE_ASSERT(cond)
Drop in replacement for Q_ASSERT if defined(QT_NO_DEBUG) && !defined(QT_FORCE_ASSERTS) define ENGAUGE...
~TutorialStateContext()
Destructor deallocates memory.