00001
00002
00003
00004
00005
00006
00007 #ifndef CMD_ADD_SCALE_H
00008 #define CMD_ADD_SCALE_H
00009
00010 #include "CmdPointChangeBase.h"
00011 #include <QPointF>
00012
00013 class QXmlStreamReader;
00014
00016 class CmdAddScale : public CmdPointChangeBase
00017 {
00018 public:
00020 CmdAddScale(MainWindow &mainWindow,
00021 Document &document,
00022 const QPointF &posScreen0,
00023 const QPointF &posScreen1,
00024 double scaleLength,
00025 double ordinal0,
00026 double ordinal1);
00027
00029 CmdAddScale(MainWindow &mainWindow,
00030 Document &document,
00031 const QString &cmdDescription,
00032 QXmlStreamReader &reader);
00033
00034 virtual ~CmdAddScale();
00035
00036 virtual void cmdRedo ();
00037 virtual void cmdUndo ();
00038 virtual void saveXml (QXmlStreamWriter &writer) const;
00039
00040 private:
00041 CmdAddScale();
00042
00043 QPointF m_posScreen0;
00044 QPointF m_posScreen1;
00045 double m_scaleLength;
00046 QString m_identifierAdded0;
00047 QString m_identifierAdded1;
00048 double m_ordinal0;
00049 double m_ordinal1;
00050 };
00051
00052 #endif // CMD_ADD_SCALE_H