Engauge Digitizer 2
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | List of all members
TutorialStateAbstractBase Class Referenceabstract

One state manages one panel of the tutorial. More...

#include <TutorialStateAbstractBase.h>

Inheritance diagram for TutorialStateAbstractBase:
TutorialStateAxisPoints TutorialStateChecklistWizardAbstract TutorialStateColorFilter TutorialStateCurveSelection TutorialStateCurveType TutorialStateIntroduction TutorialStatePointMatch TutorialStateSegmentFill

Public Member Functions

 TutorialStateAbstractBase (TutorialStateContext &context)
 Single constructor.
 
virtual void begin ()=0
 Transition into this state.
 
virtual void end ()=0
 Transition out of this state.
 

Protected Member Functions

int buttonMargin () const
 Buttons are placed up against bottom side, and left or right side, separated by this margin.
 
TutorialStateContextcontext ()
 Context class for the tutorial state machine.
 
QGraphicsPixmapItem * createPixmapItem (const QString &resource, const QPoint &pos)
 Factory method for pixmap items.
 
QGraphicsTextItem * createTextItem (const QString &text, const QPoint &pos)
 Factory method for text items.
 
QGraphicsTextItem * createTitle (const QString &text)
 Factory method for title items.
 

Detailed Description

One state manages one panel of the tutorial.

Definition at line 30 of file TutorialStateAbstractBase.h.

Constructor & Destructor Documentation

◆ TutorialStateAbstractBase()

TutorialStateAbstractBase::TutorialStateAbstractBase ( TutorialStateContext context)

Single constructor.

Definition at line 18 of file TutorialStateAbstractBase.cpp.

◆ ~TutorialStateAbstractBase()

TutorialStateAbstractBase::~TutorialStateAbstractBase ( )
virtual

Definition at line 23 of file TutorialStateAbstractBase.cpp.

Member Function Documentation

◆ begin()

virtual void TutorialStateAbstractBase::begin ( )
pure virtual

◆ buttonMargin()

int TutorialStateAbstractBase::buttonMargin ( ) const
protected

Buttons are placed up against bottom side, and left or right side, separated by this margin.

Definition at line 27 of file TutorialStateAbstractBase.cpp.

◆ context()

TutorialStateContext & TutorialStateAbstractBase::context ( )
protected

Context class for the tutorial state machine.

Definition at line 32 of file TutorialStateAbstractBase.cpp.

◆ createPixmapItem()

QGraphicsPixmapItem * TutorialStateAbstractBase::createPixmapItem ( const QString &  resource,
const QPoint &  pos 
)
protected

Factory method for pixmap items.

Definition at line 37 of file TutorialStateAbstractBase.cpp.

◆ createTextItem()

QGraphicsTextItem * TutorialStateAbstractBase::createTextItem ( const QString &  text,
const QPoint &  pos 
)
protected

Factory method for text items.

Definition at line 47 of file TutorialStateAbstractBase.cpp.

◆ createTitle()

QGraphicsTextItem * TutorialStateAbstractBase::createTitle ( const QString &  text)
protected

Factory method for title items.

Definition at line 57 of file TutorialStateAbstractBase.cpp.

◆ end()

virtual void TutorialStateAbstractBase::end ( )
pure virtual

The documentation for this class was generated from the following files: