TDME2 1.9.121
PopUps.cpp
Go to the documentation of this file.
2
3#include <tdme/tdme.h>
6#include <tdme/gui/GUI.h>
13
16using tdme::gui::GUI;
24
25PopUps::PopUps()
26{
33}
34
42}
43
45{
52 Engine::getInstance()->getGUI()->addScreen(fileDialogScreenController->getScreenNode()->getId(), fileDialogScreenController->getScreenNode());
53 Engine::getInstance()->getGUI()->addScreen(infoDialogScreenController->getScreenNode()->getId(), infoDialogScreenController->getScreenNode());
54 Engine::getInstance()->getGUI()->addScreen(aboutDialogScreenController->getScreenNode()->getId(), aboutDialogScreenController->getScreenNode());
55 Engine::getInstance()->getGUI()->addScreen(progressBarScreenController->getScreenNode()->getId(), progressBarScreenController->getScreenNode());
56 Engine::getInstance()->getGUI()->addScreen(colorPickerScreenController->getScreenNode()->getId(), colorPickerScreenController->getScreenNode());
57 Engine::getInstance()->getGUI()->addScreen(contextMenuScreenController->getScreenNode()->getId(), contextMenuScreenController->getScreenNode());
58}
59
61{
62 Engine::getInstance()->getGUI()->removeScreen(fileDialogScreenController->getScreenNode()->getId());
63 Engine::getInstance()->getGUI()->removeScreen(infoDialogScreenController->getScreenNode()->getId());
64 Engine::getInstance()->getGUI()->removeScreen(aboutDialogScreenController->getScreenNode()->getId());
65 Engine::getInstance()->getGUI()->removeScreen(progressBarScreenController->getScreenNode()->getId());
66 Engine::getInstance()->getGUI()->removeScreen(colorPickerScreenController->getScreenNode()->getId());
67 Engine::getInstance()->getGUI()->removeScreen(contextMenuScreenController->getScreenNode()->getId());
74}
Engine main class.
Definition: Engine.h:122
GUI module class.
Definition: GUI.h:66
const string & getId()
Definition: GUINode.h:329
GUI screen node that represents a screen that can be rendered via GUI system.
Definition: GUIScreenNode.h:57
Pop ups controller accessor class.
Definition: PopUps.h:19
InfoDialogScreenController * infoDialogScreenController
Definition: PopUps.h:21
ColorPickerScreenController * colorPickerScreenController
Definition: PopUps.h:24
ProgressBarScreenController * progressBarScreenController
Definition: PopUps.h:23
AboutDialogScreenController * aboutDialogScreenController
Definition: PopUps.h:26
ContextMenuScreenController * contextMenuScreenController
Definition: PopUps.h:25
FileDialogScreenController * fileDialogScreenController
Definition: PopUps.h:22