10#include <QGraphicsScene>
30 qDeleteAll (m_states);
40 qCInfo(ENGAUGE_LOG) <<
"TransformationStateContext::resetOnLoad";
49 const QString &selectedGraphCurve)
51 qCInfo(ENGAUGE_LOG) <<
"TransformationStateContext::triggerStateTransition";
58 m_states[m_currentState]->end(cmdMediator,
62 m_currentState = transformationState;
65 m_states[m_currentState]->begin(
isGnuplot,
74 qCInfo(ENGAUGE_LOG) <<
"TransformationStateContext::updateAxesChecker";
79 m_states[m_currentState]->updateAxesChecker (cmdMediator,
#define ENGAUGE_ASSERT(cond)
Drop in replacement for Q_ASSERT.
void triggerStateTransition(bool isGnuplot, TransformationState transformationState, CmdMediator &cmdMediator, const Transformation &transformation, const QString &selectedGraphCurve)
Trigger a state transition to be performed immediately.
TransformationStateContext(QGraphicsScene &scene, bool isGnuplot)
Single constructor.
virtual ~TransformationStateContext()
void resetOnLoad()
Reset, when loading a document after the first, to same state that first document was at when loaded.
bool isGnuplot() const
Flag for gnuplot debug files.
void updateAxesChecker(CmdMediator &cmdMediator, const Transformation &transformation)
Apply the new DocumentModelAxesChecker.