Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #include <wx/cmdproc.h>
00022
00023 #ifndef SHAPECOMMAND_H_
00024 #define SHAPECOMMAND_H_
00025
00026 #include <wx/docview.h>
00027 #include "../gui/HippDocument.h"
00028 #include "../gui/HippFrame.h"
00029 namespace hipp {
00030 class ShapeCommand: public wxCommand {
00031 public:
00032 ShapeCommand(bool canUndo, const wxString &name, HippDocument* doc);
00033 virtual ~ShapeCommand();
00034 virtual bool Do()=0;
00035 virtual bool Undo()=0;
00036 protected:
00044 bool replaceShape(HippShape* oldShape, HippShape* newShape);
00045
00046 HippDocument* m_doc;
00047 bool isDone;
00048 HippFrame* frame;
00049 };
00050 }
00051 #endif