Go to the documentation of this file.
9 #include <QGraphicsPixmapItem>
10 #include <QGraphicsScene>
11 #include <QGraphicsView>
21 m_background (nullptr),
26 m_nextLines (nullptr),
27 m_nextPoints (nullptr)
41 m_text0 =
createTextItem (tr (
"The next steps depend on how the curves\n"
42 "are drawn, in terms of lines and points."),
45 "with lines (with or without\n"
46 "points) then click on\n"
50 "without lines and only\n"
51 "with points, then click on\n"
58 context().tutorialDlg().scene());
61 connect (m_previous, SIGNAL (signalTriggered ()),
this, SLOT (
slotPrevious ()));
64 context().tutorialDlg().scene());
66 qFloor (backgroundSize.height () / 3.0 - m_nextLines->
size ().height () / 2.0)));
67 connect (m_nextLines, SIGNAL (signalTriggered ()),
this, SLOT (
slotNextCurves ()));
70 context().tutorialDlg().scene());
72 qFloor (backgroundSize.height () * 2.0 / 3.0 - m_nextPoints->
size ().height () / 2.0)));
73 connect (m_nextPoints, SIGNAL (signalTriggered ()),
this, SLOT (
slotNextLines ()));
TutorialStateContext & context()
Context class for the tutorial state machine.
TutorialStateCurveType(TutorialStateContext &context)
Single constructor.
void slotNextCurves()
Slot called when next button for curves is triggered.
Context class for tutorial state machine.
virtual void end()
Transition out of this state.
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.
log4cpp::Category * mainCat
QGraphicsTextItem * createTitle(const QString &text)
Factory method for title items.
QSize backgroundSize() const
Make geometry available for layout.
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 slotNextLines()
Slot called when next button for lines is triggered.