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 (QUndoCommand *cmd) |
Append just-created QUndoCommand to command stack. This is called from DigitizeStateAbstractBase subclasses. | |
void | bindToCmdMediatorAndResetOnLoad (CmdMediator *cmdMediator) |
Bind to CmdMediator class. More... | |
CmdMediator & | cmdMediator () |
Provide CmdMediator for indirect access to the Document. | |
const CmdMediator & | cmdMediator () const |
Provide CmdMediator for indirect access to the Document. | |
void | handleContextMenuEvent (const QString &pointIdentifier) |
See DigitizeStateAbstractBase::handleContextMenuEvent. | |
void | handleCurveChange () |
See DigitizeStateAbstractBase::handleCurveChange. | |
void | handleKeyPress (Qt::Key key, bool atLeastOneSelectedItem) |
See DigitizeStateAbstractBase::handleKeyPress. | |
void | handleLeave () |
See DigitizeStateAbstractBase::handleLeave. | |
void | handleMouseMove (QPointF pos) |
See DigitizeStateAbstractBase::handleMouseMove. | |
void | handleMousePress (QPointF pos) |
See DigitizeStateAbstractBase::handleMousePress. | |
void | handleMouseRelease (QPointF pos) |
See DigitizeStateAbstractBase::handleMouseRelease. | |
void | handleSetOverrideCursor (const QCursor &cursor) |
See DigitizeStateAbstractBase::handleSetOverrideCursor. | |
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 (DigitizeState digitizeState) |
Perform immediate state transition. Called from outside state machine. | |
void | setCursor () |
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 (bool imageIsLoaded) |
Set the image so QGraphicsView cursor and drag mode are accessible. | |
QString | state () const |
State name for debugging. | |
void | updateModelDigitizeCurve (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 19 of file DigitizeStateContext.h.
void DigitizeStateContext::bindToCmdMediatorAndResetOnLoad | ( | CmdMediator * | cmdMediator | ) |
Bind to CmdMediator class.
Binding occurs from the single instance of this class to each new CmdMediator. Resetting makes re-initializes for documents after the first
Definition at line 62 of file DigitizeStateContext.cpp.