Engauge Digitizer  2
 All Classes Files Functions Variables Enumerations Enumerator Friends Pages
CmdAddPointAxis.h
1 #ifndef CMD_ADD_POINT_AXIS_H
2 #define CMD_ADD_POINT_AXIS_H
3 
4 #include "CmdAbstract.h"
5 #include <QPointF>
6 
7 class QXmlStreamReader;
8 
11 {
12  public:
16  const QPointF &posScreen,
17  const QPointF &posGraph,
18  double ordinal);
19 
21  CmdAddPointAxis(MainWindow &mainWindow,
22  Document &document,
23  const QString &cmdDescription,
24  QXmlStreamReader &reader);
25 
26  virtual ~CmdAddPointAxis();
27 
28  virtual void cmdRedo ();
29  virtual void cmdUndo ();
30  virtual void saveXml (QXmlStreamWriter &writer) const;
31 
32 private:
34 
35  QPointF m_posScreen;
36  QPointF m_posGraph;
37  QString m_identifierAdded; // Point that got added
38  double m_ordinal;
39 };
40 
41 #endif // CMD_ADD_POINT_AXIS_H
virtual void cmdUndo()
Undo method that is called when QUndoStack is moved one command backward.
Wrapper around QUndoCommand. This simplifies the more complicated feature set of QUndoCommand.
Definition: CmdAbstract.h:11
virtual void saveXml(QXmlStreamWriter &writer) const
Save commands as xml for later uploading.
virtual void cmdRedo()
Redo method that is called when QUndoStack is moved one command forward.
Command for adding one axis point.
MainWindow & mainWindow()
Return the MainWindow so it can be updated by this command as a last step.
Definition: CmdAbstract.cpp:32
Storage of one imported image and the data attached to that image.
Definition: Document.h:29
Document & document()
Return the Document that this command will modify during redo and undo.
Definition: CmdAbstract.cpp:22
Main window consisting of menu, graphics scene, status bar and optional toolbars as a Single Document...
Definition: MainWindow.h:66