Engauge Digitizer
2
Cmd
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
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
Wrapper around QUndoCommand. This simplifies the more complicated feature set of QUndoCommand.
Definition:
CmdAbstract.h:19
CmdPointChangeBase::restoreDocumentState
void restoreDocumentState(Document &document) const
Restore the document previously saved by saveDocumentState.
Definition:
CmdPointChangeBase.cpp:30
CurvesGraphs
Container for all graph curves. The axes point curve is external to this class.
Definition:
CurvesGraphs.h:24
CmdPointChangeBase
Base class for CmdBase leaf subclasses that involve point additions, deletions and/or modifications...
Definition:
CmdPointChangeBase.h:22
CmdAbstract::mainWindow
MainWindow & mainWindow()
Return the MainWindow so it can be updated by this command as a last step.
Definition:
CmdAbstract.cpp:45
Document
Storage of one imported image and the data attached to that image.
Definition:
Document.h:41
Curve
Container for one set of digitized Points.
Definition:
Curve.h:33
CmdAbstract::document
Document & document()
Return the Document that this command will modify during redo and undo.
Definition:
CmdAbstract.cpp:35
MainWindow
Main window consisting of menu, graphics scene, status bar and optional toolbars as a Single Document...
Definition:
MainWindow.h:89
CmdPointChangeBase::saveDocumentState
void saveDocumentState(const Document &document)
Save the document state for restoration by restoreDocumentState.
Definition:
CmdPointChangeBase.cpp:41
Generated on Sat Oct 21 2017 12:50:35 for Engauge Digitizer by
1.8.13