TDME2  1.9.200
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
SoundTabController.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <string>
4 
5 #include <tdme/tdme.h>
17 
18 #include <ext/tinyxml/tinyxml.h>
19 
20 using std::string;
21 
37 
41 
42 /**
43  * Sound tab controller
44  * @author Andreas Drewke
45  */
47  : public TabController
48 {
49 
50 private:
51  SoundTabView* view { nullptr };
52  GUIScreenNode* screenNode { nullptr };
53  PopUps* popUps { nullptr };
54 
55 public:
56  // forbid class copy
58 
59  /**
60  * Public constructor
61  * @param view view
62  */
64 
65  /**
66  * Destructor
67  */
68  virtual ~SoundTabController();
69 
70  /**
71  * Get view
72  */
73  inline SoundTabView* getView() {
74  return view;
75  }
76 
77  // overridden method
78  inline GUIScreenNode* getScreenNode() override {
79  return screenNode;
80  }
81 
82  // overridden methods
83  void initialize(GUIScreenNode* screenNode) override;
84  void dispose() override;
85  void onChange(GUIElementNode* node) override;
86  void onAction(GUIActionListenerType type, GUIElementNode* node) override;
87  void onFocus(GUIElementNode* node) override;
88  void onUnfocus(GUIElementNode* node) override;
89  void onContextMenuRequest(GUIElementNode* node, int mouseX, int mouseY) override;
90  void onTooltipShowRequest(GUINode* node, int mouseX, int mouseY) override;
91  void onTooltipCloseRequest() override;
92  void onCommand(TabControllerCommand command) override;
93  void onDrop(const string& payload, int mouseX, int mouseY) override;
94 
95  /**
96  * Set outliner content
97  */
98  void setOutlinerContent();
99 
100  /**
101  * Set outliner add drop down content
102  */
104 
105  /**
106  * Show the information pop up / modal
107  * @param caption caption
108  * @param message message
109  */
110  void showInfoPopUp(const string& caption, const string& message);
111 
112 };
GUI node base class.
Definition: GUINode.h:64
GUI parent node base class thats supporting child nodes.
Definition: GUIParentNode.h:42
GUI screen node that represents a screen that can be rendered via GUI system.
Definition: GUIScreenNode.h:72
Pop ups controller accessor class.
Definition: PopUps.h:29
void onContextMenuRequest(GUIElementNode *node, int mouseX, int mouseY) override
On context menu request.
void onDrop(const string &payload, int mouseX, int mouseY) override
On drop.
void setOutlinerAddDropDownContent()
Set outliner add drop down content.
SoundTabController(SoundTabView *view)
Public constructor.
void onChange(GUIElementNode *node) override
On change.
void onCommand(TabControllerCommand command) override
On command.
void onUnfocus(GUIElementNode *node) override
On unfocus.
void onTooltipCloseRequest() override
On tooltip close request.
void onFocus(GUIElementNode *node) override
On focus.
void initialize(GUIScreenNode *screenNode) override
Init.
void showInfoPopUp(const string &caption, const string &message)
Show the information pop up / modal.
void onAction(GUIActionListenerType type, GUIElementNode *node) override
void onTooltipShowRequest(GUINode *node, int mouseX, int mouseY) override
On tooltip show request.
Mutable utf8 aware string class.
Definition: MutableString.h:23
An attribute is a name-value pair.
Definition: tinyxml.h:734
Always the top level node.
Definition: tinyxml.h:1317
The element is a container class.
Definition: tinyxml.h:886
GUI action listener interface.
GUI change listener interface.
GUI focus listener interface.
Tab controller, which connects UI with logic.
Definition: TabController.h:34
#define FORBID_CLASS_COPY(CLASS)
Definition: tdme.h:6