Engauge Digitizer
2
Loading...
Searching...
No Matches
Cmd
CmdPointChangeBase.h
Go to the documentation of this file.
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
22
class
CmdPointChangeBase
:
public
CmdAbstract
23
{
24
public
:
26
CmdPointChangeBase
(
MainWindow
&
mainWindow
,
27
Document
&
document
,
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
:
41
CmdPointChangeBase
();
42
43
Curve
*m_curveAxes;
44
CurvesGraphs
*m_curvesGraphs;
45
};
46
47
#endif
// CMD_POINT_CHANGE_BASE_H
CmdAbstract.h
CmdAbstract::document
Document & document()
Return the Document that this command will modify during redo and undo.
Definition
CmdAbstract.cpp:48
CmdAbstract::mainWindow
MainWindow & mainWindow()
Return the MainWindow so it can be updated by this command as a last step.
Definition
CmdAbstract.cpp:96
CmdAbstract::CmdAbstract
CmdAbstract(MainWindow &mainWindow, Document &document, const QString &cmdDescription)
Single constructor.
Definition
CmdAbstract.cpp:26
CmdPointChangeBase::saveDocumentState
void saveDocumentState(const Document &document)
Save the document state for restoration by restoreDocumentState.
Definition
CmdPointChangeBase.cpp:41
CmdPointChangeBase::~CmdPointChangeBase
virtual ~CmdPointChangeBase()
Definition
CmdPointChangeBase.cpp:26
CmdPointChangeBase::restoreDocumentState
void restoreDocumentState(Document &document) const
Restore the document previously saved by saveDocumentState.
Definition
CmdPointChangeBase.cpp:30
CmdPointChangeBase::CmdPointChangeBase
CmdPointChangeBase(MainWindow &mainWindow, Document &document, const QString &cmdDescription)
Single constructor.
Definition
CmdPointChangeBase.cpp:14
Curve
Container for one set of digitized Points.
Definition
Curve.h:34
CurvesGraphs
Container for all graph curves. The axes point curve is external to this class.
Definition
CurvesGraphs.h:25
Document
Storage of one imported image and the data attached to that image.
Definition
Document.h:44
MainWindow
Main window consisting of menu, graphics scene, status bar and optional toolbars as a Single Document...
Definition
MainWindow.h:95
Generated on
for Engauge Digitizer by
1.14.0