TDME2  1.9.200
FontTabView.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <memory>
4 #include <string>
5 
6 #include <tdme/tdme.h>
7 #include <tdme/engine/fwd-tdme.h>
16 
17 using std::string;
18 using std::unique_ptr;
19 
28 
29 /**
30  * Font tab view
31  * @author Andreas Drewke
32  */
34  : public TabView
35 {
36 protected:
37  unique_ptr<Engine> engine;
38 
39 private:
40  EditorView* editorView { nullptr };
41  string tabId;
42  GUIScreenNode* screenNode { nullptr };
43  PopUps* popUps { nullptr };
44  unique_ptr<FontTabController> fontTabController;
46 
47 public:
48  // forbid class copy
50 
51  /**
52  * Public constructor
53  * @param editorView editor view
54  * @param tabId tab id
55  * @param screenNode screenNode
56  */
58 
59  /**
60  * Destructor
61  */
62  ~FontTabView();
63 
64  /**
65  * @return editor view
66  */
68  return editorView;
69  }
70 
71  /**
72  * @return associated tab controller
73  */
74  inline TabController* getTabController() override {
75  return fontTabController.get();
76  }
77 
78  /**
79  * @return pop up views
80  */
81  inline PopUps* getPopUps() {
82  return popUps;
83  }
84 
85  // overridden methods
86  void handleInputEvents() override;
87  void display() override;
88  inline const string& getTabId() override {
89  return tabId;
90  }
91  void initialize() override;
92  void dispose() override;
93  Engine* getEngine() override;
94  void activate() override;
95  void deactivate() override;
96  void reloadOutliner() override;
97  void updateRendering() override;
98  inline bool hasFixedSize() override{ return false; };
99 
100 };
Engine main class.
Definition: Engine.h:131
Frame buffer class.
Definition: FrameBuffer.h:22
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 dispose() override
Disposes the view.
Definition: FontTabView.cpp:71
bool hasFixedSize() override
If this viewport framebuffer has a fixed size.
Definition: FontTabView.h:98
void display() override
Renders the view.
Definition: FontTabView.cpp:52
void reloadOutliner() override
Reload outliner.
Definition: FontTabView.cpp:94
void initialize() override
Initiates the view.
Definition: FontTabView.cpp:58
void deactivate() override
Deactivate.
Definition: FontTabView.cpp:90
const string & getTabId() override
Definition: FontTabView.h:88
TabController * getTabController() override
Definition: FontTabView.h:74
void handleInputEvents() override
Handle input events that have not yet been processed.
Definition: FontTabView.cpp:47
void updateRendering() override
Update rendering.
Definition: FontTabView.cpp:76
unique_ptr< FontTabController > fontTabController
Definition: FontTabView.h:44
FontTabView(EditorView *editorView, const string &tabId, GUIScreenNode *screenNode)
Public constructor.
Definition: FontTabView.cpp:32
Tab controller, which connects UI with logic.
Definition: TabController.h:34
#define FORBID_CLASS_COPY(CLASS)
Definition: tdme.h:6