Engauge Digitizer
2
Main Page
Classes
Files
File List
File Members
Cmd
CmdAddPointGraph.h
1
#ifndef CMD_ADD_POINT_GRAPH_H
2
#define CMD_ADD_POINT_GRAPH_H
3
4
#include "CmdAbstract.h"
5
#include <QPointF>
6
7
class
QXmlStreamReader;
8
class
Transformation
;
9
11
class
CmdAddPointGraph
:
public
CmdAbstract
12
{
13
public
:
15
CmdAddPointGraph
(
MainWindow
&
mainWindow
,
16
Document
&
document
,
17
const
QString &curveName,
18
const
QPointF &posScreen,
19
double
ordinal);
20
22
CmdAddPointGraph
(
MainWindow
&mainWindow,
23
Document
&document,
24
const
QString &cmdDescription,
25
QXmlStreamReader &reader);
26
27
virtual
~
CmdAddPointGraph
();
28
29
virtual
void
cmdRedo
();
30
virtual
void
cmdUndo
();
31
virtual
void
saveXml
(QXmlStreamWriter &writer)
const
;
32
33
private
:
34
CmdAddPointGraph
();
35
36
QString m_curveName;
37
38
QPointF m_posScreen;
39
double
m_ordinal;
40
41
QString m_identifierAdded;
// Point that got added. This is generated by the Document during the Redo
42
};
43
44
#endif // CMD_ADD_POINT_GRAPH_H
CmdAbstract
Wrapper around QUndoCommand. This simplifies the more complicated feature set of QUndoCommand.
Definition:
CmdAbstract.h:11
CmdAddPointGraph::cmdRedo
virtual void cmdRedo()
Redo method that is called when QUndoStack is moved one command forward.
Definition:
CmdAddPointGraph.cpp:60
Transformation
Affine transformation between screen and graph coordinates, based on digitized axis points...
Definition:
Transformation.h:23
CmdAddPointGraph
Command for adding one graph point.
Definition:
CmdAddPointGraph.h:11
CmdAbstract::mainWindow
MainWindow & mainWindow()
Return the MainWindow so it can be updated by this command as a last step.
Definition:
CmdAbstract.cpp:32
Document
Storage of one imported image and the data attached to that image.
Definition:
Document.h:28
CmdAddPointGraph::cmdUndo
virtual void cmdUndo()
Undo method that is called when QUndoStack is moved one command backward.
Definition:
CmdAddPointGraph.cpp:72
CmdAbstract::document
Document & document()
Return the Document that this command will modify during redo and undo.
Definition:
CmdAbstract.cpp:22
MainWindow
Main window consisting of menu, graphics scene, status bar and optional toolbars as a Single Document...
Definition:
MainWindow.h:60
CmdAddPointGraph::saveXml
virtual void saveXml(QXmlStreamWriter &writer) const
Save commands as xml for later uploading.
Definition:
CmdAddPointGraph.cpp:81
Generated on Sun Nov 8 2015 13:15:02 for Engauge Digitizer by
1.8.9.1