Engauge Digitizer
2
Main Page
Classes
Files
File List
File Members
Cmd
CmdSettingsGeneral.h
1
#ifndef CMD_SETTINGS_GENERAL_H
2
#define CMD_SETTINGS_GENERAL_H
3
4
#include "CmdAbstract.h"
5
#include "DocumentModelGeneral.h"
6
7
class
QXmlStreamReader;
8
10
class
CmdSettingsGeneral
:
public
CmdAbstract
11
{
12
public
:
14
CmdSettingsGeneral
(
MainWindow
&
mainWindow
,
15
Document
&
document
,
16
const
DocumentModelGeneral
&modelGeneralBefore,
17
const
DocumentModelGeneral
&modelGeneralAfter);
18
20
CmdSettingsGeneral
(
MainWindow
&mainWindow,
21
Document
&document,
22
const
QString &cmdDescription,
23
QXmlStreamReader &reader);
24
25
virtual
~
CmdSettingsGeneral
();
26
27
virtual
void
cmdRedo
();
28
virtual
void
cmdUndo
();
29
virtual
void
saveXml
(QXmlStreamWriter &writer)
const
;
30
31
private
:
32
CmdSettingsGeneral
();
33
34
DocumentModelGeneral
m_modelGeneralBefore;
35
DocumentModelGeneral
m_modelGeneralAfter;
36
};
37
38
#endif // CMD_SETTINGS_GENERAL_H
DocumentModelGeneral
Model for DlgSettingsGeneral and CmdSettingsGeneral.
Definition:
DocumentModelGeneral.h:10
CmdAbstract
Wrapper around QUndoCommand. This simplifies the more complicated feature set of QUndoCommand.
Definition:
CmdAbstract.h:11
CmdSettingsGeneral
Command for DlgSettingsGeneral.
Definition:
CmdSettingsGeneral.h:10
CmdSettingsGeneral::cmdUndo
virtual void cmdUndo()
Undo method that is called when QUndoStack is moved one command backward.
Definition:
CmdSettingsGeneral.cpp:49
CmdSettingsGeneral::saveXml
virtual void saveXml(QXmlStreamWriter &writer) const
Save commands as xml for later uploading.
Definition:
CmdSettingsGeneral.cpp:57
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:29
CmdSettingsGeneral::cmdRedo
virtual void cmdRedo()
Redo method that is called when QUndoStack is moved one command forward.
Definition:
CmdSettingsGeneral.cpp:41
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:66
Generated on Mon Feb 15 2016 14:25:57 for Engauge Digitizer by
1.8.10