Engauge Digitizer 2
Loading...
Searching...
No Matches
CentipedeStatePrebuild Class Reference

Class for period between build states. More...

#include <CentipedeStatePrebuild.h>

Inheritance diagram for CentipedeStatePrebuild:
Inheritance graph
Collaboration diagram for CentipedeStatePrebuild:
Collaboration graph

Public Member Functions

 CentipedeStatePrebuild (CentipedeStateContext &context)
 Single constructor.
virtual ~CentipedeStatePrebuild ()
virtual void begin ()
 Method that is called at the exact moment a state is entered. Typically called just after end for the previous stat.
virtual void end ()
 Method that is called at the exact moment a state is exited. Typically called just before start of the next stat.
virtual void handleKeyPress (Qt::Key key, bool atLeastOneSelectedItem)
 Handle key press event.
virtual void handleMouseMove (QPointF posScreen)
 Handle mouse move event.
virtual void handleMousePress (QPointF posScreen)
 Handle mouse press event.
virtual void handleMouseRelease (QPointF posScreen)
 Handle mouse release event.
Public Member Functions inherited from CentipedeStateAbstractBase
 CentipedeStateAbstractBase (CentipedeStateContext &context)
 Single constructor.
virtual ~CentipedeStateAbstractBase ()
CentipedeStateContextcontext ()
 Reference to the CentipedeStateContext that contains all the CentipedeStateAbstractBase subclasses.

Additional Inherited Members

Protected Member Functions inherited from CentipedeStateAbstractBase
void enableUndoStack (bool enable)
 Method called by subclasses to send signalUndoActve.

Detailed Description

Class for period between build states.

Definition at line 13 of file CentipedeStatePrebuild.h.

Constructor & Destructor Documentation

◆ CentipedeStatePrebuild()

CentipedeStatePrebuild::CentipedeStatePrebuild ( CentipedeStateContext & context)

Single constructor.

Definition at line 15 of file CentipedeStatePrebuild.cpp.

15 :
17{
18}
CentipedeStateAbstractBase(CentipedeStateContext &context)
Single constructor.
CentipedeStateContext & context()
Reference to the CentipedeStateContext that contains all the CentipedeStateAbstractBase subclasses.

◆ ~CentipedeStatePrebuild()

CentipedeStatePrebuild::~CentipedeStatePrebuild ( )
virtual

Definition at line 20 of file CentipedeStatePrebuild.cpp.

21{
22}

Member Function Documentation

◆ begin()

void CentipedeStatePrebuild::begin ( )
virtual

Method that is called at the exact moment a state is entered. Typically called just after end for the previous stat.

Implements CentipedeStateAbstractBase.

Definition at line 24 of file CentipedeStatePrebuild.cpp.

25{
26 LOG4CPP_DEBUG_S ((*mainCat)) << "CentipedeStatePrebuild::begin";
27}
log4cpp::Category * mainCat
Definition Logger.cpp:14
#define LOG4CPP_DEBUG_S(logger)
Definition convenience.h:20

◆ end()

void CentipedeStatePrebuild::end ( )
virtual

Method that is called at the exact moment a state is exited. Typically called just before start of the next stat.

Implements CentipedeStateAbstractBase.

Definition at line 29 of file CentipedeStatePrebuild.cpp.

30{
31 LOG4CPP_DEBUG_S ((*mainCat)) << "CentipedeStatePrebuild::end";
32}

◆ handleKeyPress()

void CentipedeStatePrebuild::handleKeyPress ( Qt::Key key,
bool atLeastOneSelectedItem )
virtual

Handle key press event.

Implements CentipedeStateAbstractBase.

Definition at line 34 of file CentipedeStatePrebuild.cpp.

36{
37 // Noop
38}

◆ handleMouseMove()

void CentipedeStatePrebuild::handleMouseMove ( QPointF posScreen)
virtual

Handle mouse move event.

Implements CentipedeStateAbstractBase.

Definition at line 40 of file CentipedeStatePrebuild.cpp.

41{
42 // Noop
43}

◆ handleMousePress()

void CentipedeStatePrebuild::handleMousePress ( QPointF posScreen)
virtual

Handle mouse press event.

Implements CentipedeStateAbstractBase.

Definition at line 45 of file CentipedeStatePrebuild.cpp.

46{
47 if (context().modelCoords().coordsType() == COORDS_TYPE_CARTESIAN) {
49 } else {
51 }
52}
@ CENTIPEDE_STATE_BUILD_CARTESIAN
@ CENTIPEDE_STATE_BUILD_POLAR
@ COORDS_TYPE_CARTESIAN
Definition CoordsType.h:13
void requestDelayedStateTransition(CentipedeState centipedeState)
Initiate state transition to be performed later, when CentipedeState is off the stack.

◆ handleMouseRelease()

void CentipedeStatePrebuild::handleMouseRelease ( QPointF posScreen)
virtual

Handle mouse release event.

Implements CentipedeStateAbstractBase.

Definition at line 54 of file CentipedeStatePrebuild.cpp.

55{
56 // Noop
57}

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