Go to the documentation of this file.
9 #include <QGraphicsPixmapItem>
10 #include <QGraphicsScene>
11 #include <QGraphicsView>
20 m_background (nullptr),
40 m_text0 =
createTextItem (tr (
"Each curve has Color Filter settings that\n"
41 "are applied in Segment Fill mode. For\n"
42 "black lines the defaults work well, but for\n"
43 "colored lines the settings can be improved."),
45 m_text1 =
createTextItem (tr (
"Step 1 - Select the Settings / Color\n"
46 "Filter menu option."),
48 m_text2 =
createTextItem (tr (
"Step 2 - Select the curve that will\n"
49 "be given the new settings."),
51 m_text3 =
createTextItem (tr (
"Step 3 - Select the mode. Intensity is\n"
52 "suggested for uncolored lines, and Hue\n"
53 "is suggested for colored lines."),
55 m_text4 =
createTextItem (tr (
"Step 4 - Adjust the included range by\n"
56 "dragging the green handles, until the\n"
57 "curve is clear in the preview window\n"
58 "below. The graph shows a histogram\n"
59 "distribution of the values underneath.\n"
60 "Click Ok when finished."),
66 context().tutorialDlg().scene());
67 m_back->
setGeometry (QPoint (backgroundSize.width () / 2 - m_back->
size().width () / 2,
69 connect (m_back, SIGNAL (signalTriggered ()),
this, SLOT (
slotBack ()));
TutorialStateContext & context()
Context class for the tutorial state machine.
virtual void end()
Transition out of this state.
Context class for tutorial state machine.
QGraphicsTextItem * createTextItem(const QString &text, const QPoint &pos)
Factory method for text items.
void slotBack()
Slot called to return to previous panel.
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.
TutorialStateColorFilter(TutorialStateContext &context)
Single constructor.
log4cpp::Category * mainCat
QGraphicsTextItem * createTitle(const QString &text)
Factory method for title items.
QSize backgroundSize() const
Make geometry available for layout.
virtual void begin()
Transition into this state.
QGraphicsPixmapItem * createPixmapItem(const QString &resource, const QPoint &pos)
Factory method for pixmap items.
TutorialDlg & tutorialDlg()
Access to tutorial dialogs and its scene.