7#ifndef CENTIPEDE_STATE_CONTEXT_H
8#define CENTIPEDE_STATE_CONTEXT_H
40 bool atLeastOneSelectedItem);
73 void completeRequestedStateTransitionIfExists ();
76 QVector<CentipedeStateAbstractBase*> m_states;
88 QPointF m_posClickScreen;
CentipedeState
Set of possible states of Centipede construction.
Base class for CentipedePair states.
DocumentModelCoords modelCoords() const
Get method for forwarded DocumentModelCoords.
GraphicsScene & scene() const
Get method for forwarded GraphicsScene.
CentipedeStateContext(DigitizeStateGuideline &stateGuideline)
Single constructor.
virtual void handleMouseMove(QPointF posScreen)
GraphicsScene * graphicsScene() const
Get method for forwarded GraphicsScene.
DocumentModelGuideline modelGuideline() const
Get method for forwarded DocumentModelGuideline.
virtual void handleMousePress(GraphicsScene *scene, const Transformation &transformation, const DocumentModelGuideline &modelGuideline, const DocumentModelCoords &modelCoords, QPointF posScreen, bool clickedOnItem)
QPointF posClickScreen() const
Get method for forwarded click point.
Transformation transformation() const
Get method for forwarded Transformation.
virtual ~CentipedeStateContext()
virtual void handleMouseRelease(QPointF posScreen)
void requestDelayedStateTransition(CentipedeState centipedeState)
Initiate state transition to be performed later, when CentipedeState is off the stack.
void createGuidelineCommand(bool selectedXTFinal, double valueFinal)
Create a command for creating a Guideline.
void requestImmediateStateTransition(CentipedeState centipedeState)
Perform immediate state transition for immediate action. Called when states are off the stack.
virtual void handleKeyPress(Qt::Key key, bool atLeastOneSelectedItem)
Digitizing state for creating, moving and removing guidelines.
Model for DlgSettingsCoords and CmdSettingsCoords.
Model for managing the coordinate values corresponding Guidelines.
Add point and line handling to generic QGraphicsScene.
Main window consisting of menu, graphics scene, status bar and optional toolbars as a Single Document...