9#include <QGraphicsPixmapItem>
10#include <QGraphicsScene>
11#include <QGraphicsView>
20 m_background (nullptr),
40 "points all along the line segments\n"
41 "of a curve. Step 1 - Click on the\n"
42 "Segment Fill button."),
44 m_text1 =
createTextItem (tr (
"Step 2 - Select the curve the new\n"
45 "points will belong to."),
47 m_text2 =
createTextItem (tr (
"Step 3 - Move the cursor over a line\n"
48 "segment in the desired curve. If a\n"
49 "green line appears, click on it once\n"
50 "to generate many points."),
56 context().tutorialDlg().scene());
58 backgroundSize.height() -
buttonMargin() - m_previous->size().height()));
59 connect (m_previous, SIGNAL (signalTriggered ()),
this, SLOT (
slotPrevious ()));
62 context().tutorialDlg().scene());
63 m_next->setGeometry (QPoint (backgroundSize.width () -
buttonMargin () - m_next->size ().width (),
64 backgroundSize.height () -
buttonMargin () - m_next->size ().height ()));
65 connect (m_next, SIGNAL (signalTriggered ()),
this, SLOT (
slotNext ()));
log4cpp::Category * mainCat
@ TUTORIAL_STATE_CURVE_TYPE
@ TUTORIAL_STATE_CHECKLIST_WIZARD_LINES
QGraphicsScene & scene()
Single scene the covers the entire tutorial dialog.
QSize backgroundSize() const
Make geometry available for layout.
TutorialStateAbstractBase(TutorialStateContext &context)
Single constructor.
QGraphicsTextItem * createTitle(const QString &text)
Factory method for title items.
QGraphicsTextItem * createTextItem(const QString &text, const QPoint &pos)
Factory method for text items.
TutorialStateContext & context()
Context class for the tutorial state machine.
QGraphicsPixmapItem * createPixmapItem(const QString &resource, const QPoint &pos)
Factory method for pixmap items.
int buttonMargin() const
Buttons are placed up against bottom side, and left or right side, separated by this margin.
Context class for tutorial state machine.
void requestDelayedStateTransition(TutorialState tutorialState)
Request a transition to the specified state from the current state.
TutorialDlg & tutorialDlg()
Access to tutorial dialogs and its scene.
virtual void end()
Transition out of this state.
void slotNext()
Slot called when next button is triggered.
void slotPrevious()
Slot called to return to previous panel.
TutorialStateSegmentFill(TutorialStateContext &context)
Single constructor.
virtual void begin()
Transition into this state.
#define LOG4CPP_INFO_S(logger)