48 AboutDialogScreenController::AboutDialogScreenController(
PopUps* popUps): popUps(popUps)
65 screenNode = GUIParser::parse(
"resources/engine/gui",
"popup_about.xml");
70 required_dynamic_cast<GUITextNode*>(
screenNode->
getNodeById(
"about_platform"))->setText(
MutableString(
"Platform: " + Application::getOSName() +
"/" + Application::getCPUName()));
71 required_dynamic_cast<GUIStyledTextNode*>(
screenNode->
getNodeById(
"about_graphics"))->setText(
MutableString(
"Graphics: " + StringTools::replace(StringTools::replace(Engine::getInstance()->getGraphicsRenderer(),
"[",
"\\["),
"]",
"\\]")));
74 Console::println(
"AboutDialogScreenController::initialize(): An error occurred: " +
string(exception.what()));
95 if (StringTools::startsWith(node->
getId(),
"about_caption_close_") ==
true) {
Application base class, please make sure to allocate application on heap to have correct application ...
const string & getToolTip()
GUIScreenNode * getScreenNode()
GUI screen node that represents a screen that can be rendered via GUI system.
void setEnabled(bool enabled)
Set enabled.
void addTooltipRequestListener(GUITooltipRequestListener *listener)
Add tooltip request listener.
void addActionListener(GUIActionListener *listener)
Add action listener.
void invalidateLayouts()
Actually do the nodes marked for layout invalidation.
GUINode * getNodeById(const string &nodeId)
Get GUI node by id.
Mutable utf8 aware string class.
std::exception Exception
Exception base class.
GUI action listener interface.
GUI focus listener interface.