26 using std::unique_ptr;
48 InputDialogScreenController::InputDialogScreenController(
PopUps* popUps)
69 screenNode = GUIParser::parse(
"resources/engine/gui",
"popup_inputdialog.xml");
78 Console::println(
"InputDialogScreenController::initialize(): An error occurred: " +
string(exception.what()));
90 required_dynamic_cast<GUIParentNode*>(
screenNode->
getInnerNodeById(
tabsHeaderNode->
getId()))->replaceSubNodes(
"<tab id=\"inputdialog_caption\" image=\"resources/engine/images/attention.png\" text=\"" + GUIParser::escape(captionText)+
"\" closeable=\"true\"/>",
true);
92 this->applyAction = unique_ptr<Action>(
applyAction);
96 Engine::getInstance()->getGUI()->setFoccussedNode(
inputNode);
113 if (node->
getId() ==
"inputdialog_apply") {
118 if (node->
getId() ==
"inputdialog_cancel" ||
119 StringTools::startsWith(node->
getId(),
"inputdialog_caption_close_") ==
true) {
GUI node controller base class.
virtual void setValue(const MutableString &value)=0
Set value.
virtual const MutableString & getValue()=0
const string & getToolTip()
GUINodeController * getController()
GUIScreenNode * getScreenNode()
GUI parent node base class thats supporting child nodes.
GUI screen node that represents a screen that can be rendered via GUI system.
void setEnabled(bool enabled)
Set enabled.
void addChangeListener(GUIChangeListener *listener)
Add change listener.
void addTooltipRequestListener(GUITooltipRequestListener *listener)
Add tooltip request listener.
void addActionListener(GUIActionListener *listener)
Add action listener.
void addFocusListener(GUIFocusListener *listener)
Add focus listener.
GUINode * getInnerNodeById(const string &nodeId)
Get inner GUI node by id.
GUINode * getNodeById(const string &nodeId)
Get GUI node by id.
const string & getString() const
std::exception Exception
Exception base class.
GUI action listener interface.