9 #include <QGraphicsPixmapItem> 10 #include <QGraphicsScene> 11 #include <QGraphicsView> 20 m_background (nullptr),
41 "one sample point, and Engauge\n" 42 "then finds all matching points.\n\n" 43 "Step 1 - Click on Point Match mode."),
45 m_text1 =
createTextItem (tr (
"Step 2 - Select the curve the new\n" 46 "points will belong to."),
48 m_text2 =
createTextItem (tr (
"Step 3 - Click on a typical point.\n" 49 "The circle turns green when it\n" 50 "contains what may be a point."),
53 "matched point with a yellow cross.\n" 54 "Press the Right Arrow key to accept\n" 55 "the matched point. Repeat this step\n" 56 "until there are no more points."),
62 context().tutorialDlg().scene());
65 connect (m_previous, SIGNAL (signalTriggered ()),
this, SLOT (
slotPrevious ()));
68 context().tutorialDlg().scene());
71 connect (m_next, SIGNAL (signalTriggered ()),
this, SLOT (
slotNext ()));
One state manages one panel of the tutorial.
virtual void begin()
Transition into this state.
#define LOG4CPP_INFO_S(logger)
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.
log4cpp::Category * mainCat
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.