Engauge Digitizer
2
Loading...
Searching...
No Matches
Cmd
CmdStackShadow.h
Go to the documentation of this file.
1
/******************************************************************************************************
2
* (C) 2014 markummitchell@github.com. This file is part of Engauge Digitizer, which is released *
3
* under GNU General Public License version 2 (GPLv2) or (at your option) any later version. See file *
4
* LICENSE or go to gnu.org/licenses for details. Distribution requires prior written permission. *
5
******************************************************************************************************/
6
7
#ifndef CMD_STACK_SHADOW_H
8
#define CMD_STACK_SHADOW_H
9
10
#include "
DigitizeState.h
"
11
#include <QList>
12
#include <QObject>
13
14
class
CmdAbstract
;
15
class
Document
;
16
class
MainWindow
;
17
class
QXmlStreamReader;
18
19
typedef
QList<CmdAbstract*>
CmdListInternal
;
20
31
class
CmdStackShadow
:
public
QObject
32
{
33
Q_OBJECT;
34
35
public
:
37
CmdStackShadow
();
38
40
bool
canRedo
()
const
;
41
43
void
loadCommands
(
MainWindow
&mainWindow,
44
Document
&document,
45
QXmlStreamReader &reader);
46
47
public
slots:
49
void
slotRedo
();
50
52
void
slotUndo
();
53
54
signals:
56
void
signalRedo
();
57
59
void
signalUndo
();
60
61
private
:
62
63
MainWindow
*m_mainWindow;
64
65
CmdListInternal
m_cmdList;
66
};
67
68
#endif
// CMDSTACKSHADOW_H
CmdListInternal
QList< CmdAbstract * > CmdListInternal
Definition
CmdStackShadow.h:19
DigitizeState.h
CmdAbstract
Wrapper around QUndoCommand. This simplifies the more complicated feature set of QUndoCommand.
Definition
CmdAbstract.h:24
CmdStackShadow::signalRedo
void signalRedo()
Signal used to emulate a shift-control-z redo command from user during testing.
CmdStackShadow::canRedo
bool canRedo() const
Return true if there is a command available.
Definition
CmdStackShadow.cpp:27
CmdStackShadow::slotRedo
void slotRedo()
Move next command from list to CmdMediator. Noop if there are no more commands.
Definition
CmdStackShadow.cpp:62
CmdStackShadow::signalUndo
void signalUndo()
Signal used to emulate a shift-z undo command from user during testing.
CmdStackShadow::loadCommands
void loadCommands(MainWindow &mainWindow, Document &document, QXmlStreamReader &reader)
Load commands from serialized xml.
Definition
CmdStackShadow.cpp:34
CmdStackShadow::slotUndo
void slotUndo()
Throw away every command since trying to reconcile two different command stacks after an undo is too ...
Definition
CmdStackShadow.cpp:101
CmdStackShadow::CmdStackShadow
CmdStackShadow()
Single constructor.
Definition
CmdStackShadow.cpp:21
Document
Storage of one imported image and the data attached to that image.
Definition
Document.h:44
MainWindow
Main window consisting of menu, graphics scene, status bar and optional toolbars as a Single Document...
Definition
MainWindow.h:95
Generated on
for Engauge Digitizer by
1.14.0