Cafu Engine
ChangeWindowHierarchy.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_CHANGE_WINDOW_HIERARCHY_HPP_INCLUDED
8 #define CAFU_GUIEDITOR_COMMAND_CHANGE_WINDOW_HIERARCHY_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 
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;
38  unsigned long m_NewPosition;
40  unsigned long m_OldPosition;
41  const std::string m_OldName;
42  };
43 }
44 
45 #endif
bool Do()
This method executes the command.
Definition: ChangeWindowHierarchy.cpp:30
wxString GetName() const
Returns the name (a description) of the command.
Definition: ChangeWindowHierarchy.cpp:74
void Undo()
This method un-does the command.
Definition: ChangeWindowHierarchy.cpp:57
Definition: ChangeWindowHierarchy.hpp:21
Definition: GuiDocument.hpp:39
This class represents a general command for implementing modifications to the applications document...
Definition: CommandPattern.hpp:30