Engauge Digitizer
2
Main Page
Classes
Files
File List
File Members
Cmd
CmdStackShadow.h
1
#ifndef CMD_STACK_SHADOW_H
2
#define CMD_STACK_SHADOW_H
3
4
#include <QList>
5
#include <QObject>
6
7
class
CmdAbstract
;
8
class
Document
;
9
class
MainWindow
;
10
class
QXmlStreamReader;
11
12
typedef
QList<CmdAbstract*> CmdListInternal;
13
24
class
CmdStackShadow
:
public
QObject
25
{
26
Q_OBJECT;
27
28
public
:
30
CmdStackShadow
();
31
33
bool
canRedo
()
const
;
34
36
void
loadCommands
(
MainWindow
&mainWindow,
37
Document
&document,
38
QXmlStreamReader &reader);
39
40
public
slots:
42
void
slotRedo
();
43
45
void
slotUndo
();
46
47
private
:
48
49
MainWindow
*m_mainWindow;
50
51
CmdListInternal m_cmdList;
52
};
53
54
#endif // CMDSTACKSHADOW_H
CmdAbstract
Wrapper around QUndoCommand. This simplifies the more complicated feature set of QUndoCommand.
Definition:
CmdAbstract.h:11
CmdStackShadow::slotRedo
void slotRedo()
Move next command from list to CmdMediator. Noop if there are no more commands.
Definition:
CmdStackShadow.cpp:52
CmdStackShadow::CmdStackShadow
CmdStackShadow()
Single constructor.
Definition:
CmdStackShadow.cpp:13
CmdStackShadow::canRedo
bool canRedo() const
Return true if there is a command available.
Definition:
CmdStackShadow.cpp:19
CmdStackShadow::slotUndo
void slotUndo()
Throw away every command since trying to reconcile two different command stacks after an undo is too ...
Definition:
CmdStackShadow.cpp:68
Document
Storage of one imported image and the data attached to that image.
Definition:
Document.h:28
CmdStackShadow
Command stack that shadows the CmdMediator command stack at startup when reading commands from an err...
Definition:
CmdStackShadow.h:24
CmdStackShadow::loadCommands
void loadCommands(MainWindow &mainWindow, Document &document, QXmlStreamReader &reader)
Load commands from serialized xml.
Definition:
CmdStackShadow.cpp:28
MainWindow
Main window consisting of menu, graphics scene, status bar and optional toolbars as a Single Document...
Definition:
MainWindow.h:60
Generated on Wed Oct 7 2015 18:10:58 for Engauge Digitizer by
1.8.9.1