00001 /****************************************************************************************************** 00002 * (C) 2014 markummitchell@github.com. This file is part of Engauge Digitizer, which is released * 00003 * under GNU General Public License version 2 (GPLv2) or (at your option) any later version. See file * 00004 * LICENSE or go to gnu.org/licenses for details. Distribution requires prior written permission. * 00005 ******************************************************************************************************/ 00006 00007 #ifndef CMD_POINT_CHANGE_BASE_H 00008 #define CMD_POINT_CHANGE_BASE_H 00009 00010 #include "CmdAbstract.h" 00011 00012 class Curve; 00013 class CurvesGraphs; 00014 class Document; 00015 00022 class CmdPointChangeBase : public CmdAbstract 00023 { 00024 public: 00026 CmdPointChangeBase(MainWindow &mainWindow, 00027 Document &document, 00028 const QString &cmdDescription); 00029 00030 virtual ~CmdPointChangeBase(); 00031 00032 protected: 00033 00035 void restoreDocumentState (Document &document) const; 00036 00038 void saveDocumentState (const Document &document); 00039 00040 private: 00041 CmdPointChangeBase(); 00042 00043 Curve *m_curveAxes; 00044 CurvesGraphs *m_curvesGraphs; 00045 }; 00046 00047 #endif // CMD_POINT_CHANGE_BASE_H