Go to the documentation of this file.
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 ()));
TutorialStateContext & context()
Context class for the tutorial state machine.
Context class for tutorial state machine.
QGraphicsTextItem * createTextItem(const QString &text, const QPoint &pos)
Factory method for text items.
virtual void begin()
Transition into this state.
QGraphicsScene & scene()
Single scene the covers the entire tutorial dialog.
One state manages one panel of the tutorial.
int buttonMargin() const
Buttons are placed up against bottom side, and left or right side, separated by this margin.
#define LOG4CPP_INFO_S(logger)
void requestDelayedStateTransition(TutorialState tutorialState)
Request a transition to the specified state from the current state.
virtual void end()
Transition out of this state.
log4cpp::Category * mainCat
QGraphicsTextItem * createTitle(const QString &text)
Factory method for title items.
QSize backgroundSize() const
Make geometry available for layout.
TutorialStatePointMatch(TutorialStateContext &context)
Single constructor.
QGraphicsPixmapItem * createPixmapItem(const QString &resource, const QPoint &pos)
Factory method for pixmap items.
TutorialDlg & tutorialDlg()
Access to tutorial dialogs and its scene.
void slotPrevious()
Slot called to return to previous panel.
void slotNext()
Slot called when next button is triggered.