Cafu Engine
Paste.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_PASTE_HPP_INCLUDED
8 #define CAFU_GUIEDITOR_COMMAND_PASTE_HPP_INCLUDED
9 
10 #include "../../CommandPattern.hpp"
11 
12 #include "Templates/Array.hpp"
13 #include "Templates/Pointer.hpp"
14 
15 
16 namespace cf { namespace GuiSys { class WindowT; } }
17 
18 
19 namespace GuiEditor
20 {
21  class GuiDocumentT;
22 
23  class CommandPasteT : public CommandT
24  {
25  public:
26 
28 
29  // CommandT implementation.
30  bool Do();
31  void Undo();
32  wxString GetName() const;
33 
34 
35  private:
36 
37  GuiDocumentT* m_GuiDocument;
40  };
41 }
42 
43 #endif
bool Do()
This method executes the command.
Definition: Paste.cpp:28
Definition: Paste.hpp:23
void Undo()
This method un-does the command.
Definition: Paste.cpp:50
wxString GetName() const
Returns the name (a description) of the command.
Definition: Paste.cpp:64
Definition: GuiDocument.hpp:39
This class represents a general command for implementing modifications to the applications document...
Definition: CommandPattern.hpp:30
Definition: Renderer.hpp:16