00001
00002
00003
00004
00005
00006
00007 #ifndef CMD_ADD_POINT_GRAPH_H
00008 #define CMD_ADD_POINT_GRAPH_H
00009
00010 #include "CmdPointChangeBase.h"
00011 #include <QPointF>
00012
00013 class QXmlStreamReader;
00014 class Transformation;
00015
00017 class CmdAddPointGraph : public CmdPointChangeBase
00018 {
00019 public:
00021 CmdAddPointGraph(MainWindow &mainWindow,
00022 Document &document,
00023 const QString &curveName,
00024 const QPointF &posScreen,
00025 double ordinal);
00026
00028 CmdAddPointGraph(MainWindow &mainWindow,
00029 Document &document,
00030 const QString &cmdDescription,
00031 QXmlStreamReader &reader);
00032
00033 virtual ~CmdAddPointGraph();
00034
00035 virtual void cmdRedo ();
00036 virtual void cmdUndo ();
00037 virtual void saveXml (QXmlStreamWriter &writer) const;
00038
00039 private:
00040 CmdAddPointGraph();
00041
00042 QString m_curveName;
00043
00044 QPointF m_posScreen;
00045 double m_ordinal;
00046
00047 QString m_identifierAdded;
00048 };
00049
00050 #endif // CMD_ADD_POINT_GRAPH_H