Engauge Digitizer  2
CmdPointChangeBase.h
1 /******************************************************************************************************
2  * (C) 2014 markummitchell@github.com. This file is part of Engauge Digitizer, which is released *
3  * under GNU General Public License version 2 (GPLv2) or (at your option) any later version. See file *
4  * LICENSE or go to gnu.org/licenses for details. Distribution requires prior written permission. *
5  ******************************************************************************************************/
6 
7 #ifndef CMD_POINT_CHANGE_BASE_H
8 #define CMD_POINT_CHANGE_BASE_H
9 
10 #include "CmdAbstract.h"
11 
12 class Curve;
13 class CurvesGraphs;
14 class Document;
15 
23 {
24 public:
28  const QString &cmdDescription);
29 
30  virtual ~CmdPointChangeBase();
31 
32 protected:
33 
35  void restoreDocumentState (Document &document) const;
36 
38  void saveDocumentState (const Document &document);
39 
40 private:
42 
43  Curve *m_curveAxes;
44  CurvesGraphs *m_curvesGraphs;
45 };
46 
47 #endif // CMD_POINT_CHANGE_BASE_H
Wrapper around QUndoCommand. This simplifies the more complicated feature set of QUndoCommand.
Definition: CmdAbstract.h:19
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.
Definition: CurvesGraphs.h:24
Base class for CmdBase leaf subclasses that involve point additions, deletions and/or modifications...
MainWindow & mainWindow()
Return the MainWindow so it can be updated by this command as a last step.
Definition: CmdAbstract.cpp:45
Storage of one imported image and the data attached to that image.
Definition: Document.h:41
Container for one set of digitized Points.
Definition: Curve.h:33
Document & document()
Return the Document that this command will modify during redo and undo.
Definition: CmdAbstract.cpp:35
Main window consisting of menu, graphics scene, status bar and optional toolbars as a Single Document...
Definition: MainWindow.h:89
void saveDocumentState(const Document &document)
Save the document state for restoration by restoreDocumentState.