TDME2
1.9.200
src
tdme
tools
editor
tabcontrollers
TabController.h
Go to the documentation of this file.
1
#pragma once
2
3
#include <string>
4
5
#include <
tdme/tdme.h
>
6
#include <
tdme/gui/events/GUIActionListener.h
>
7
#include <
tdme/gui/events/GUIChangeListener.h
>
8
#include <
tdme/gui/events/GUIContextMenuRequestListener.h
>
9
#include <
tdme/gui/events/GUIFocusListener.h
>
10
#include <
tdme/gui/events/GUITooltipRequestListener.h
>
11
#include <
tdme/gui/nodes/fwd-tdme.h
>
12
#include <
tdme/tools/editor/tabcontrollers/fwd-tdme.h
>
13
14
using
std::string;
15
16
using
tdme::gui::events::GUIActionListener
;
17
using
tdme::gui::events::GUIActionListenerType
;
18
using
tdme::gui::events::GUIChangeListener
;
19
using
tdme::gui::events::GUIContextMenuRequestListener
;
20
using
tdme::gui::events::GUIFocusListener
;
21
using
tdme::gui::events::GUITooltipRequestListener
;
22
using
tdme::gui::nodes::GUIScreenNode
;
23
24
/**
25
* Tab controller, which connects UI with logic
26
* @author Andreas Drewke
27
*/
28
struct
tdme::tools::editor::tabcontrollers::TabController
:
29
public
GUIActionListener
,
30
public
GUIChangeListener
,
31
public
GUIFocusListener
,
32
public
GUIContextMenuRequestListener
,
33
public
GUITooltipRequestListener
34
{
35
enum
TabControllerCommand
{
COMMAND_SAVE
,
COMMAND_SAVEAS
,
COMMAND_UNDO
,
COMMAND_REDO
,
COMMAND_CUT
,
COMMAND_COPY
,
COMMAND_PASTE
,
COMMAND_DELETE
,
COMMAND_SELECTALL
,
COMMAND_FINDREPLACE
};
36
37
/**
38
* Destructor
39
*/
40
virtual
~TabController
() {}
41
42
/**
43
* Init
44
*/
45
virtual
void
initialize
(
GUIScreenNode
* screenNode) = 0;
46
47
/**
48
* Dispose
49
*/
50
virtual
void
dispose
() = 0;
51
52
// ???
53
virtual
GUIScreenNode
*
getScreenNode
() = 0;
54
55
/**
56
* On command
57
* @param command command
58
*/
59
virtual
void
onCommand
(
TabControllerCommand
command) = 0;
60
61
/**
62
* On drop
63
* @param payload payload
64
* @param mouseX mouse X
65
* @param mouseY mouse Y
66
*/
67
virtual
void
onDrop
(
const
string
& payload,
int
mouseX,
int
mouseY) = 0;
68
69
};
GUIActionListener.h
GUIChangeListener.h
GUIContextMenuRequestListener.h
GUIFocusListener.h
GUITooltipRequestListener.h
tdme::gui::nodes::GUIScreenNode
GUI screen node that represents a screen that can be rendered via GUI system.
Definition:
GUIScreenNode.h:72
fwd-tdme.h
tdme::gui::events::GUIActionListenerType
GUIActionListenerType
Definition:
GUIActionListener.h:12
tdme::gui::events::GUIActionListener
GUI action listener interface.
Definition:
GUIActionListener.h:25
tdme::gui::events::GUIChangeListener
GUI change listener interface.
Definition:
GUIChangeListener.h:14
tdme::gui::events::GUIContextMenuRequestListener
GUI context menu request listener.
Definition:
GUIContextMenuRequestListener.h:14
tdme::gui::events::GUIFocusListener
GUI focus listener interface.
Definition:
GUIFocusListener.h:14
tdme::gui::events::GUITooltipRequestListener
GUI tooltip request listener.
Definition:
GUITooltipRequestListener.h:14
tdme::tools::editor::tabcontrollers::TabController
Tab controller, which connects UI with logic.
Definition:
TabController.h:34
tdme::tools::editor::tabcontrollers::TabController::TabControllerCommand
TabControllerCommand
Definition:
TabController.h:35
tdme::tools::editor::tabcontrollers::TabController::COMMAND_DELETE
@ COMMAND_DELETE
Definition:
TabController.h:35
tdme::tools::editor::tabcontrollers::TabController::COMMAND_SELECTALL
@ COMMAND_SELECTALL
Definition:
TabController.h:35
tdme::tools::editor::tabcontrollers::TabController::COMMAND_FINDREPLACE
@ COMMAND_FINDREPLACE
Definition:
TabController.h:35
tdme::tools::editor::tabcontrollers::TabController::COMMAND_SAVEAS
@ COMMAND_SAVEAS
Definition:
TabController.h:35
tdme::tools::editor::tabcontrollers::TabController::COMMAND_UNDO
@ COMMAND_UNDO
Definition:
TabController.h:35
tdme::tools::editor::tabcontrollers::TabController::COMMAND_CUT
@ COMMAND_CUT
Definition:
TabController.h:35
tdme::tools::editor::tabcontrollers::TabController::COMMAND_SAVE
@ COMMAND_SAVE
Definition:
TabController.h:35
tdme::tools::editor::tabcontrollers::TabController::COMMAND_PASTE
@ COMMAND_PASTE
Definition:
TabController.h:35
tdme::tools::editor::tabcontrollers::TabController::COMMAND_COPY
@ COMMAND_COPY
Definition:
TabController.h:35
tdme::tools::editor::tabcontrollers::TabController::COMMAND_REDO
@ COMMAND_REDO
Definition:
TabController.h:35
tdme::tools::editor::tabcontrollers::TabController::onDrop
virtual void onDrop(const string &payload, int mouseX, int mouseY)=0
On drop.
tdme::tools::editor::tabcontrollers::TabController::~TabController
virtual ~TabController()
Destructor.
Definition:
TabController.h:40
tdme::tools::editor::tabcontrollers::TabController::initialize
virtual void initialize(GUIScreenNode *screenNode)=0
Init.
tdme::tools::editor::tabcontrollers::TabController::dispose
virtual void dispose()=0
Dispose.
tdme::tools::editor::tabcontrollers::TabController::getScreenNode
virtual GUIScreenNode * getScreenNode()=0
tdme::tools::editor::tabcontrollers::TabController::onCommand
virtual void onCommand(TabControllerCommand command)=0
On command.
tdme.h
fwd-tdme.h
Generated by
1.9.1