TDME2  1.9.200
InfoDialogScreenController.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <string>
4 
5 #include <tdme/tdme.h>
14 
15 using std::string;
16 
29 
30 /**
31  * Info dialog screen controller
32  * @author Andreas Drewke
33  */
35  : public ScreenController
36  , public virtual GUIActionListener
37  , public virtual GUIFocusListener
38  , public virtual GUITooltipRequestListener
39 {
40 
41 private:
42  PopUps* popUps { nullptr };
43  GUIScreenNode* screenNode { nullptr };
46 
47 public:
48  // forbid class copy
50 
51  /**
52  * Public constructor
53  * @param popUps pop ups
54  */
56 
57  /**
58  * Destructor
59  */
61 
62  // overridden methods
63  GUIScreenNode* getScreenNode() override;
64  void initialize() override;
65  void dispose() override;
66  void onAction(GUIActionListenerType type, GUIElementNode* node) override;
67  void onFocus(GUIElementNode* node) override;
68  void onUnfocus(GUIElementNode* node) override;
69  void onTooltipShowRequest(GUINode* node, int mouseX, int mouseY) override;
70  void onTooltipCloseRequest() override;
71 
72  /**
73  * Shows the pop up
74  */
75  void show(const string& caption, const string& message);
76  /**
77  * Closes the pop up
78  */
79  void close();
80 
81 };
GUI node base class.
Definition: GUINode.h:64
GUI screen node that represents a screen that can be rendered via GUI system.
Definition: GUIScreenNode.h:72
void show(const string &caption, const string &message)
Shows the pop up.
void onAction(GUIActionListenerType type, GUIElementNode *node) override
void onTooltipShowRequest(GUINode *node, int mouseX, int mouseY) override
On tooltip show request.
Pop ups controller accessor class.
Definition: PopUps.h:29
Mutable utf8 aware string class.
Definition: MutableString.h:23
GUI action listener interface.
GUI focus listener interface.
Screen controller, which connects GUI screen definition with code.
#define FORBID_CLASS_COPY(CLASS)
Definition: tdme.h:6