Engauge Digitizer  2
 All Classes Files Functions Variables Enumerations Enumerator Friends Pages
CmdPaste.h
1 #ifndef CMD_PASTE_H
2 #define CMD_PASTE_H
3 
4 #include "CmdAbstract.h"
5 #include "MimePoints.h"
6 #include "PointIdentifiers.h"
7 #include <QStringList>
8 
9 class QXmlStreamReader;
10 
12 class CmdPaste : public CmdAbstract
13 {
14 public:
18  const QStringList &selectedPointIdentifiers);
19 
21  CmdPaste(MainWindow &mainWindow,
22  Document &document,
23  const QString &cmdDescription,
24  QXmlStreamReader &reader);
25 
26  virtual ~CmdPaste();
27 
28  virtual void cmdRedo ();
29  virtual void cmdUndo ();
30  virtual void saveXml (QXmlStreamWriter &writer) const;
31 
32 private:
33  CmdPaste();
34 
35  PointIdentifiers m_copiedPoints;
36  MimePoints m_mimePoints;
37 };
38 
39 #endif // CMD_PASTE_H
Hash table class that tracks point identifiers as the key, with a corresponding boolean value...
virtual void cmdUndo()
Undo method that is called when QUndoStack is moved one command backward.
Definition: CmdPaste.cpp:69
Wrapper around QUndoCommand. This simplifies the more complicated feature set of QUndoCommand.
Definition: CmdAbstract.h:11
Custom mime type for separate treatment of graph coordinates and, when there is no transform...
Definition: MimePoints.h:7
virtual void saveXml(QXmlStreamWriter &writer) const
Save commands as xml for later uploading.
Definition: CmdPaste.cpp:77
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
Document & document()
Return the Document that this command will modify during redo and undo.
Definition: CmdAbstract.cpp:22
virtual void cmdRedo()
Redo method that is called when QUndoStack is moved one command forward.
Definition: CmdPaste.cpp:58
Command for moving all selected Points by a specified translation.
Definition: CmdPaste.h:12
Main window consisting of menu, graphics scene, status bar and optional toolbars as a Single Document...
Definition: MainWindow.h:60