00001
00002
00003
00004
00005
00006
00007 #ifndef CMD_MOVE_BY_H
00008 #define CMD_MOVE_BY_H
00009
00010 #include "CmdPointChangeBase.h"
00011 #include "PointIdentifiers.h"
00012 #include <QPointF>
00013 #include <QStringList>
00014
00015 class QXmlStreamReader;
00016
00018 class CmdMoveBy : public CmdPointChangeBase
00019 {
00020 public:
00022 CmdMoveBy(MainWindow &mainWindow,
00023 Document &document,
00024 const QPointF &deltaScreen,
00025 const QString &moveText,
00026 const QStringList &selectedPointIdentifiers);
00027
00029 CmdMoveBy(MainWindow &mainWindow,
00030 Document &document,
00031 const QString &cmdDescription,
00032 QXmlStreamReader &reader);
00033
00034 virtual ~CmdMoveBy();
00035
00036 virtual void cmdRedo ();
00037 virtual void cmdUndo ();
00038 virtual void saveXml (QXmlStreamWriter &writer) const;
00039
00040 private:
00041 CmdMoveBy();
00042
00043 void moveBy (const QPointF &deltaScreen);
00044
00045 QPointF m_deltaScreen;
00046 PointIdentifiers m_movedPoints;
00047 };
00048
00049 #endif // CMD_MOVE_BY_H