9 #include <QGraphicsPixmapItem> 10 #include <QGraphicsScene> 11 #include <QGraphicsView> 12 #include "TutorialButton.h" 13 #include "TutorialDlg.h" 14 #include "TutorialStateContext.h" 15 #include "TutorialStatePointMatch.h" 24 LOG4CPP_INFO_S ((*mainCat)) <<
"TutorialStatePointMatch::begin ()";
30 "one sample point, and Engauge\n" 31 "then finds all matching points.\n\n" 32 "Step 1 - Click on Point Match mode."),
34 m_text1 =
createTextItem (tr (
"Step 2 - Select the curve the new\n" 35 "points will belong to."),
37 m_text2 =
createTextItem (tr (
"Step 3 - Click on a typical point.\n" 38 "The circle turns green when it\n" 39 "contains what may be a point."),
42 "matched point with a yellow cross.\n" 43 "Press the Right Arrow key to accept\n" 44 "the matched point. Repeat this step\n" 45 "until there are no more points."),
51 context().tutorialDlg().scene());
54 connect (m_previous, SIGNAL (signalTriggered ()),
this, SLOT (
slotPrevious ()));
57 context().tutorialDlg().scene());
60 connect (m_next, SIGNAL (signalTriggered ()),
this, SLOT (
slotNext ()));
65 LOG4CPP_INFO_S ((*mainCat)) <<
"TutorialStatePointMatch::end ()";
96 LOG4CPP_INFO_S ((*mainCat)) <<
"TutorialStatePointMatch::slotNext";
103 LOG4CPP_INFO_S ((*mainCat)) <<
"TutorialStatePointMatch::slotPrevious";
One state manages one panel of the tutorial.
virtual void begin()
Transition into this state.
QGraphicsScene & scene()
Single scene the covers the entire tutorial dialog.
TutorialStateContext & context()
Context class for the tutorial state machine.
QGraphicsTextItem * createTextItem(const QString &text, const QPoint &pos)
Factory method for text items.
QGraphicsTextItem * createTitle(const QString &text)
Factory method for title items.
QGraphicsPixmapItem * createPixmapItem(const QString &resource, const QPoint &pos)
Factory method for pixmap items.
QSize backgroundSize() const
Make geometry available for layout.
virtual void end()
Transition out of this state.
Context class for tutorial state machine.
int buttonMargin() const
Buttons are placed up against bottom side, and left or right side, separated by this margin...
void requestDelayedStateTransition(TutorialState tutorialState)
Request a transition to the specified state from the current state.
TutorialStatePointMatch(TutorialStateContext &context)
Single constructor.
void slotNext()
Slot called when next button is triggered.
TutorialDlg & tutorialDlg()
Access to tutorial dialogs and its scene.
void slotPrevious()
Slot called to return to previous panel.