9 #include <QGraphicsPixmapItem> 10 #include <QGraphicsScene> 11 #include <QGraphicsView> 12 #include "TutorialButton.h" 13 #include "TutorialDlg.h" 14 #include "TutorialStateColorFilter.h" 15 #include "TutorialStateContext.h" 24 LOG4CPP_INFO_S ((*mainCat)) <<
"TutorialStateColorFilter::begin ()";
29 m_text0 =
createTextItem (tr (
"Each curve has Color Filter settings that\n" 30 "are applied in Segment Fill mode. For\n" 31 "black lines the defaults work well, but for\n" 32 "colored lines the settings can be improved."),
34 m_text1 =
createTextItem (tr (
"Step 1 - Select the Settings / Color\n" 35 "Filter menu option."),
37 m_text2 =
createTextItem (tr (
"Step 2 - Select the curve that will\n" 38 "be given the new settings."),
40 m_text3 =
createTextItem (tr (
"Step 3 - Select the mode. Intensity is\n" 41 "suggested for uncolored lines, and Hue\n" 42 "is suggested for colored lines."),
44 m_text4 =
createTextItem (tr (
"Step 4 - Adjust the included range by\n" 45 "dragging the green handles, until the\n" 46 "curve is clear in the preview window\n" 47 "below. The graph shows a histogram\n" 48 "distribution of the values underneath.\n" 49 "Click Ok when finished."),
55 context().tutorialDlg().scene());
56 m_back->
setGeometry (QPoint (backgroundSize.width () / 2 - m_back->
size().width () / 2,
58 connect (m_back, SIGNAL (signalTriggered ()),
this, SLOT (
slotBack ()));
63 LOG4CPP_INFO_S ((*mainCat)) <<
"TutorialStateColorFilter::end ()";
95 LOG4CPP_INFO_S ((*mainCat)) <<
"TutorialStateColorFilter::slotBack";
One state manages one panel of the tutorial.
virtual void begin()
Transition into this state.
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.
virtual void end()
Transition out of this state.
QGraphicsPixmapItem * createPixmapItem(const QString &resource, const QPoint &pos)
Factory method for pixmap items.
void slotBack()
Slot called to return to previous panel.
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...
TutorialStateColorFilter(TutorialStateContext &context)
Single constructor.
void requestDelayedStateTransition(TutorialState tutorialState)
Request a transition to the specified state from the current state.
TutorialDlg & tutorialDlg()
Access to tutorial dialogs and its scene.