7 #include "CmdPointChangeBase.h" 9 #include "CurvesGraphs.h" 11 #include "EngaugeAssert.h" 16 const QString &cmdDescription) :
23 LOG4CPP_INFO_S ((*mainCat)) <<
"CmdPointChangeBase::CmdPointChangeBase";
26 CmdPointChangeBase::~CmdPointChangeBase()
32 LOG4CPP_INFO_S ((*mainCat)) <<
"CmdPointChangeBase::restoreDocumentState";
34 ENGAUGE_ASSERT (m_curveAxes != 0);
35 ENGAUGE_ASSERT (m_curvesGraphs != 0);
43 LOG4CPP_INFO_S ((*mainCat)) <<
"CmdPointChangeBase::saveDocumentState";
45 if (m_curveAxes != 0) {
50 if (m_curvesGraphs != 0) {
51 delete m_curvesGraphs;
Wrapper around QUndoCommand. This simplifies the more complicated feature set of QUndoCommand.
void restoreDocumentState(Document &document) const
Restore the document previously saved by saveDocumentState.
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.
void setCurvesGraphs(const CurvesGraphs &curvesGraphs)
Let CmdAbstract classes overwrite CurvesGraphs.
Document & document()
Return the Document that this command will modify during redo and undo.
CmdPointChangeBase(MainWindow &mainWindow, Document &document, const QString &cmdDescription)
Single constructor.
const CurvesGraphs & curvesGraphs() const
Make all Curves available, read only, for CmdAbstract classes only.
const Curve & curveAxes() const
Get method for axis curve.
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.