Home
Forum
Documentation
C++
|
Lua
Issue Tracker
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
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
27
CommandPasteT
(
GuiDocumentT
* GuiDocument,
const
ArrayT
<
IntrusivePtrT<cf::GuiSys::WindowT>
>& Windows,
IntrusivePtrT<cf::GuiSys::WindowT>
NewParent);
28
29
// CommandT implementation.
30
bool
Do
();
31
void
Undo
();
32
wxString
GetName
()
const
;
33
34
35
private
:
36
37
GuiDocumentT
* m_GuiDocument;
38
ArrayT< IntrusivePtrT<cf::GuiSys::WindowT>
> m_Windows;
39
IntrusivePtrT<cf::GuiSys::WindowT>
m_NewParent;
40
};
41
}
42
43
#endif
IntrusivePtrT< cf::GuiSys::WindowT >
GuiEditor::CommandPasteT::Do
bool Do()
This method executes the command.
Definition:
Paste.cpp:28
GuiEditor::CommandPasteT
Definition:
Paste.hpp:23
GuiEditor::CommandPasteT::Undo
void Undo()
This method un-does the command.
Definition:
Paste.cpp:50
GuiEditor::CommandPasteT::GetName
wxString GetName() const
Returns the name (a description) of the command.
Definition:
Paste.cpp:64
GuiEditor::GuiDocumentT
Definition:
GuiDocument.hpp:39
CommandT
This class represents a general command for implementing modifications to the applications document...
Definition:
CommandPattern.hpp:30
ArrayT
Definition:
Renderer.hpp:16
CaWE
GuiEditor
Commands
Paste.hpp
Generated on Wed Jun 22 2016 11:29:35 for Cafu Engine by
1.8.6
Copyright © 2002-2016 Carsten Fuchs Software.