Engauge Digitizer  2
 All Classes Files Functions Variables Enumerations Enumerator Friends Pages
CmdEditPointAxis.h
1 #ifndef CMD_EDIT_POINT_AXIS_H
2 #define CMD_EDIT_POINT_AXIS_H
3 
4 #include "CmdAbstract.h"
5 #include <QPointF>
6 
7 class QXmlStreamReader;
8 
12 {
13  public:
17  const QString &pointIdentifier,
18  const QPointF &posGraphBefore,
19  const QPointF &posGraphAfter);
20 
22  CmdEditPointAxis(MainWindow &mainWindow,
23  Document &document,
24  const QString &cmdDescription,
25  QXmlStreamReader &reader);
26 
27  virtual ~CmdEditPointAxis();
28 
29  virtual void cmdRedo ();
30  virtual void cmdUndo ();
31  virtual void saveXml (QXmlStreamWriter &writer) const;
32 
33 private:
35 
36  QString m_pointIdentifier;
37  QPointF m_posGraphBefore;
38  QPointF m_posGraphAfter;
39 };
40 
41 #endif // CMD_EDIT_POINT_AXIS_H
Wrapper around QUndoCommand. This simplifies the more complicated feature set of QUndoCommand.
Definition: CmdAbstract.h:11
virtual void cmdUndo()
Undo method that is called when QUndoStack is moved one command backward.
virtual void cmdRedo()
Redo method that is called when QUndoStack is moved one command forward.
MainWindow & mainWindow()
Return the MainWindow so it can be updated by this command as a last step.
Definition: CmdAbstract.cpp:32
virtual void saveXml(QXmlStreamWriter &writer) const
Save commands as xml for later uploading.
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
Command for editing the graph coordinates one axis point.
Main window consisting of menu, graphics scene, status bar and optional toolbars as a Single Document...
Definition: MainWindow.h:60