TDME2  1.9.200
TextureTabController.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  * Texture tab controller
38  * @author Andreas Drewke
39  */
41  : public TabController
42 {
43 
44 private:
45  TextureTabView* 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 ~TextureTabController();
63 
64  /**
65  * Get view
66  */
67  inline TextureTabView* getView() {
68  return view;
69  }
70 
71  // overridden method
72  inline GUIScreenNode* getScreenNode() override {
73  return screenNode;
74  }
75 
76  // overridden methods
77  void initialize(GUIScreenNode* screenNode) override;
78  void dispose() override;
79  void onChange(GUIElementNode* node) override;
80  void onAction(GUIActionListenerType type, GUIElementNode* node) override;
81  void onFocus(GUIElementNode* node) override;
82  void onUnfocus(GUIElementNode* node) override;
83  void onContextMenuRequest(GUIElementNode* node, int mouseX, int mouseY) override;
84  void onTooltipShowRequest(GUINode* node, int mouseX, int mouseY) override;
85  void onTooltipCloseRequest() override;
86  void onCommand(TabControllerCommand command) override;
87  void onDrop(const string& payload, int mouseX, int mouseY) override;
88 
89  /**
90  * Set outliner content
91  */
92  void setOutlinerContent();
93 
94  /**
95  * Set outliner add drop down content
96  */
98 
99  /**
100  * Show the information pop up / modal
101  * @param caption caption
102  * @param message message
103  */
104  void showInfoPopUp(const string& caption, const string& message);
105 
106 };
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.
TextureTabController(TextureTabView *view)
Public constructor.
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
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