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