Engauge Digitizer  2
 All Classes Files Functions Variables Enumerations Enumerator Friends Pages
CmdSettingsAxesChecker.h
1 #ifndef CMD_SETTINGS_AXES_CHECKER_H
2 #define CMD_SETTINGS_AXES_CHECKER_H
3 
4 #include "CmdAbstract.h"
5 #include "DocumentModelAxesChecker.h"
6 
7 class QXmlStreamReader;
8 
11 {
12 public:
16  const DocumentModelAxesChecker &modelAxesCheckerBefore,
17  const DocumentModelAxesChecker &modelAxesCheckerAfter);
18 
21  Document &document,
22  const QString &cmdDescription,
23  QXmlStreamReader &reader);
24 
25  virtual ~CmdSettingsAxesChecker();
26 
27  virtual void cmdRedo ();
28  virtual void cmdUndo ();
29  virtual void saveXml (QXmlStreamWriter &writer) const;
30 
31 private:
33 
34  DocumentModelAxesChecker m_modelAxesCheckerBefore;
35  DocumentModelAxesChecker m_modelAxesCheckerAfter;
36 };
37 
38 #endif // CMD_SETTINGS_AXES_CHECKER_H
virtual void cmdRedo()
Redo method that is called when QUndoStack is moved one command forward.
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.
Command for DlgSettingsAxesChecker.
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
Model for DlgSettingsAxesChecker and CmdSettingsAxesChecker.
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:60