9 #include <QGraphicsPixmapItem> 10 #include <QGraphicsScene> 11 #include <QGraphicsView> 12 #include "TutorialButton.h" 13 #include "TutorialDlg.h" 14 #include "TutorialStateContext.h" 15 #include "TutorialStateSegmentFill.h" 24 LOG4CPP_INFO_S ((*mainCat)) <<
"TutorialStateSegmentFill::begin ()";
30 "points all along the line segments\n" 31 "of a curve. Step 1 - Click on the\n" 32 "Segment Fill button."),
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 - Move the cursor over a line\n" 38 "segment in the desired curve. If a\n" 39 "green line appears, click on it once\n" 40 "to generate many points."),
46 context().tutorialDlg().scene());
49 connect (m_previous, SIGNAL (signalTriggered ()),
this, SLOT (
slotPrevious ()));
52 context().tutorialDlg().scene());
55 connect (m_next, SIGNAL (signalTriggered ()),
this, SLOT (
slotNext ()));
60 LOG4CPP_INFO_S ((*mainCat)) <<
"TutorialStateSegmentFill::end ()";
88 LOG4CPP_INFO_S ((*mainCat)) <<
"TutorialStateSegmentFill::slotNext";
95 LOG4CPP_INFO_S ((*mainCat)) <<
"TutorialStateSegmentFill::slotPrevious";
One state manages one panel of the tutorial.
void slotNext()
Slot called when next button is triggered.
TutorialStateSegmentFill(TutorialStateContext &context)
Single constructor.
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.
void slotPrevious()
Slot called to return to previous panel.
virtual void end()
Transition out of this state.
QSize backgroundSize() const
Make geometry available for layout.
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.
virtual void begin()
Transition into this state.
TutorialDlg & tutorialDlg()
Access to tutorial dialogs and its scene.