TDME2  1.9.200
VideoTabController.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <string>
4 
5 #include <tdme/tdme.h>
17 
18 using std::string;
19 
35 
36 /**
37  * Video tab controller
38  * @author Andreas Drewke
39  */
41  : public TabController
42 {
43 
44 private:
45  VideoTabView* view { nullptr };
46  GUIScreenNode* screenNode { nullptr };
47  PopUps* popUps { nullptr };
48 
49 public:
50  // forbid class copy
52 
53  /**
54  * Public constructor
55  * @param view view
56  */
58 
59  /**
60  * Destructor
61  */
62  virtual ~VideoTabController();
63 
64  /**
65  * Get view
66  * @return view
67  */
68  inline VideoTabView* getView() {
69  return view;
70  }
71 
72  // overridden method
73  inline GUIScreenNode* getScreenNode() override {
74  return screenNode;
75  }
76 
77  // overridden methods
78  void initialize(GUIScreenNode* screenNode) override;
79  void dispose() override;
80  void onChange(GUIElementNode* node) override;
81  void onAction(GUIActionListenerType type, GUIElementNode* node) override;
82  void onFocus(GUIElementNode* node) override;
83  void onUnfocus(GUIElementNode* node) override;
84  void onContextMenuRequest(GUIElementNode* node, int mouseX, int mouseY) override;
85  void onTooltipShowRequest(GUINode* node, int mouseX, int mouseY) override;
86  void onTooltipCloseRequest() override;
87  void onCommand(TabControllerCommand command) override;
88  void onDrop(const string& payload, int mouseX, int mouseY) override;
89 
90  /**
91  * Set outliner content
92  */
93  void setOutlinerContent();
94 
95  /**
96  * Set outliner add drop down content
97  */
99 
100  /**
101  * Show the information pop up / modal
102  * @param caption caption
103  * @param message message
104  */
105  void showInfoPopUp(const string& caption, const string& message);
106 
107 };
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.
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.
VideoTabController(VideoTabView *view)
Public constructor.
Mutable utf8 aware string class.
Definition: MutableString.h:23
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