Engauge Digitizer
2
|
Container for all DigitizeStateAbstractBase subclasses. This functions as the context class in a standard state machine implementation. More...
#include <DigitizeStateContext.h>
Public Member Functions | |
DigitizeStateContext (MainWindow &mainWindow, QGraphicsView &view, bool isGnuplot) | |
Single constructor. | |
QString | activeCurve () const |
Curve name for active Curve. This can include AXIS_CURVE_NAME, and empty string. | |
void | appendNewCmd (CmdMediator *cmdMediator, QUndoCommand *cmd) |
Append just-created QUndoCommand to command stack. This is called from DigitizeStateAbstractBase subclasses. | |
bool | canPaste (const Transformation &transformation, const QSize &viewSize) const |
Return true if there is good data in the clipboard for pasting, and that operation is compatible with the current state. | |
void | handleContextMenuEventAxis (CmdMediator *cmdMediator, const QString &pointIdentifier) |
See DigitizeStateAbstractBase::handleContextMenuEventAxis. | |
void | handleContextMenuEventGraph (CmdMediator *cmdMediator, const QStringList &pointIdentifiers) |
See DigitizeStateAbstractBase::handleContextMenuEventGraph. | |
void | handleCurveChange (CmdMediator *cmdMediator) |
See DigitizeStateAbstractBase::handleCurveChange. | |
void | handleKeyPress (CmdMediator *cmdMediator, Qt::Key key, bool atLeastOneSelectedItem) |
See DigitizeStateAbstractBase::handleKeyPress. | |
void | handleMouseMove (CmdMediator *cmdMediator, QPointF pos) |
See DigitizeStateAbstractBase::handleMouseMove. | |
void | handleMousePress (CmdMediator *cmdMediator, QPointF pos) |
See DigitizeStateAbstractBase::handleMousePress. | |
void | handleMouseRelease (CmdMediator *cmdMediator, QPointF pos) |
See DigitizeStateAbstractBase::handleMouseRelease. | |
bool | isGnuplot () const |
Get method for gnuplot flag. | |
MainWindow & | mainWindow () |
Reference to the MainWindow, without const. | |
const MainWindow & | mainWindow () const |
Reference to the MainWindow, with const. | |
void | requestDelayedStateTransition (DigitizeState digitizeState) |
Initiate state transition to be performed later, when DigitizeState is off the stack. | |
void | requestImmediateStateTransition (CmdMediator *cmdMediator, DigitizeState digitizeState) |
Perform immediate state transition. Called from outside state machine. | |
void | resetOnLoad (CmdMediator *cmdMediator) |
Resetting makes re-initializes for documents after the first. | |
void | setCursor (CmdMediator *cmdMediator) |
Set cursor after asking state for the new cursor shape. | |
void | setDragMode (QGraphicsView::DragMode dragMode) |
Set QGraphicsView drag mode (in m_view). Called from DigitizeStateAbstractBase subclasses. | |
void | setImageIsLoaded (CmdMediator *cmdMediator, bool imageIsLoaded) |
Set the image so QGraphicsView cursor and drag mode are accessible. | |
QString | state () const |
State name for debugging. | |
void | updateAfterPointAddition () |
Update the graphics attributes. | |
void | updateModelDigitizeCurve (CmdMediator *cmdMediator, const DocumentModelDigitizeCurve &modelDigitizeCurve) |
Update the digitize curve settings. | |
void | updateModelSegments (const DocumentModelSegments &modelSegments) |
Update the segments given the new settings. | |
QGraphicsView & | view () |
QGraphicsView for use by DigitizeStateAbstractBase subclasses. | |
Container for all DigitizeStateAbstractBase subclasses. This functions as the context class in a standard state machine implementation.
Definition at line 27 of file DigitizeStateContext.h.