7 #include "CmdPointChangeBase.h"
9 #include "CurvesGraphs.h"
11 #include "EngaugeAssert.h"
16 const QString &cmdDescription) :
20 m_curveAxes (nullptr),
21 m_curvesGraphs (nullptr)
23 LOG4CPP_INFO_S ((*mainCat)) <<
"CmdPointChangeBase::CmdPointChangeBase";
26 CmdPointChangeBase::~CmdPointChangeBase()
32 LOG4CPP_INFO_S ((*mainCat)) <<
"CmdPointChangeBase::restoreDocumentState";
34 ENGAUGE_CHECK_PTR (m_curveAxes);
35 ENGAUGE_CHECK_PTR (m_curvesGraphs);
43 LOG4CPP_INFO_S ((*mainCat)) <<
"CmdPointChangeBase::saveDocumentState";
46 delete m_curvesGraphs;
Wrapper around QUndoCommand. This simplifies the more complicated feature set of QUndoCommand.
const Curve & curveAxes() const
Get method for axis curve.
Container for all graph curves. The axes point curve is external to this class.
void setCurveAxes(const Curve &curveAxes)
Let CmdAbstract classes overwrite axes Curve.
Storage of one imported image and the data attached to that image.
Container for one set of digitized Points.
const CurvesGraphs & curvesGraphs() const
Make all Curves available, read only, for CmdAbstract classes only.
void setCurvesGraphs(const CurvesGraphs &curvesGraphs)
Let CmdAbstract classes overwrite CurvesGraphs.
void restoreDocumentState(Document &document) const
Restore the document previously saved by saveDocumentState.
CmdPointChangeBase(MainWindow &mainWindow, Document &document, const QString &cmdDescription)
Single constructor.
Main window consisting of menu, graphics scene, status bar and optional toolbars as a Single Document...
void saveDocumentState(const Document &document)
Save the document state for restoration by restoreDocumentState.