Cafu Engine
Create.hpp
1 /*
2 Cafu Engine, http://www.cafu.de/
3 Copyright (c) Carsten Fuchs and other contributors.
4 This project is licensed under the terms of the MIT license.
5 */
6 
7 #ifndef CAFU_GUIEDITOR_COMMAND_CREATE_HPP_INCLUDED
8 #define CAFU_GUIEDITOR_COMMAND_CREATE_HPP_INCLUDED
9 
10 #include "../../CommandPattern.hpp"
11 #include "Templates/Pointer.hpp"
12 
13 
14 namespace cf { namespace GuiSys { class WindowT; } }
15 
16 
17 namespace GuiEditor
18 {
19  class GuiDocumentT;
20 
21  class CommandCreateT : public CommandT
22  {
23  public:
24 
26 
27  // CommandT implementation.
28  bool Do();
29  void Undo();
30  wxString GetName() const;
31 
32 
33  private:
34 
35  GuiDocumentT* m_GuiDocument;
36 
39  const ArrayT< IntrusivePtrT<cf::GuiSys::WindowT> > m_OldSelection;
40  };
41 }
42 
43 #endif
void Undo()
This method un-does the command.
Definition: Create.cpp:59
bool Do()
This method executes the command.
Definition: Create.cpp:39
wxString GetName() const
Returns the name (a description) of the command.
Definition: Create.cpp:78
Definition: GuiDocument.hpp:39
Definition: Create.hpp:21
This class represents a general command for implementing modifications to the applications document...
Definition: CommandPattern.hpp:30
Definition: Renderer.hpp:16