Engauge Digitizer 2
Loading...
Searching...
No Matches
CmdEditPointAxis.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_EDIT_POINT_AXIS_H
8#define CMD_EDIT_POINT_AXIS_H
9
10#include "CmdPointChangeBase.h"
11#include <QPointF>
12#include <QString>
13
14class QXmlStreamReader;
15
19{
20 public:
24 const QString &pointIdentifier,
25 const QPointF &posGraphBefore,
26 const QPointF &posGraphAfter,
27 bool isXOnly);
28
32 const QString &cmdDescription,
33 QXmlStreamReader &reader);
34
35 virtual ~CmdEditPointAxis();
36
37 virtual void cmdRedo ();
38 virtual void cmdUndo ();
39 virtual void saveXml (QXmlStreamWriter &writer) const;
40
41private:
43
44 QString m_pointIdentifier;
45 QPointF m_posGraphBefore;
46 QPointF m_posGraphAfter;
47 bool m_isXOnly;
48};
49
50#endif // CMD_EDIT_POINT_AXIS_H
Document & document()
Return the Document that this command will modify during redo and undo.
MainWindow & mainWindow()
Return the MainWindow so it can be updated by this command as a last step.
Command for editing the graph coordinates one axis point.
virtual void cmdRedo()
Redo method that is called when QUndoStack is moved one command forward.
virtual void cmdUndo()
Undo method that is called when QUndoStack is moved one command backward.
virtual void saveXml(QXmlStreamWriter &writer) const
Save commands as xml for later uploading.
Base class for CmdBase leaf subclasses that involve point additions, deletions and/or modifications.
Storage of one imported image and the data attached to that image.
Definition Document.h:42
Main window consisting of menu, graphics scene, status bar and optional toolbars as a Single Document...
Definition MainWindow.h:92