Engauge Digitizer
2
Main Page
Classes
Files
File List
File Members
Cmd
CmdCut.h
1
#ifndef CMD_CUT_H
2
#define CMD_CUT_H
3
4
#include "CmdAbstract.h"
5
#include "CurvesGraphs.h"
6
#include <QHash>
7
#include <QStringList>
8
9
class
QXmlStreamReader;
10
12
class
CmdCut
:
public
CmdAbstract
13
{
14
public
:
16
CmdCut
(
MainWindow
&
mainWindow
,
17
Document
&
document
,
18
const
QStringList &selectedPointIdentifiers);
19
21
CmdCut
(
MainWindow
&mainWindow,
22
Document
&document,
23
const
QString &cmdDescription,
24
QXmlStreamReader &reader);
25
26
virtual
~
CmdCut
();
27
28
virtual
void
cmdRedo
();
29
virtual
void
cmdUndo
();
30
virtual
void
saveXml
(QXmlStreamWriter &writer)
const
;
31
32
private
:
33
CmdCut
();
34
35
bool
m_transformIsDefined;
36
QString m_csv;
37
QString m_html;
38
39
CurvesGraphs
m_curvesGraphsRemoved;
40
};
41
42
#endif // CMD_CUT_H
CmdCut
Command for cutting all selected Points.
Definition:
CmdCut.h:12
CmdCut::cmdUndo
virtual void cmdUndo()
Undo method that is called when QUndoStack is moved one command backward.
Definition:
CmdCut.cpp:94
CmdAbstract
Wrapper around QUndoCommand. This simplifies the more complicated feature set of QUndoCommand.
Definition:
CmdAbstract.h:11
CmdCut::cmdRedo
virtual void cmdRedo()
Redo method that is called when QUndoStack is moved one command forward.
Definition:
CmdCut.cpp:73
CurvesGraphs
Container for all graph curves. The axes point curve is external to this class.
Definition:
CurvesGraphs.h:18
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
CmdCut::saveXml
virtual void saveXml(QXmlStreamWriter &writer) const
Save commands as xml for later uploading.
Definition:
CmdCut.cpp:104
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