4 #include <unordered_map>
16 using std::unordered_map;
24 string GUIDropDown::NAME =
"dropdown";
26 GUIDropDown::GUIDropDown()
35 const string GUIDropDown::getTemplate(
const string& applicationPathName,
const string& applicationSubPathName,
const string& fileName)
37 return FileSystem::getInstance()->getContentAsString(applicationPathName +
"/resources/" + applicationSubPathName +
"/gui/definitions", fileName.empty() ==
true?
"dropdown.xml":fileName);
42 unordered_map<string, string> attributes;
44 attributes[
"width"] =
"100%";
45 attributes[
"height"] =
"auto";
46 attributes[
"text"] =
"10";
GUI drop down controller.
GUINodeController * createController(GUINode *node) override
Create controller which is attached to this node.
unordered_map< string, string > getAttributes(GUIScreenNode *screenNode) override
Get default attributes.
const string & getName() override
const string getTemplate(const string &applicationPathName, const string &applicationSubPathName, const string &fileName=string()) override
Retrieve template from given path name and optional file name.
static STATIC_DLL_IMPEXT string NAME
GUI node controller base class.
GUI screen node that represents a screen that can be rendered via GUI system.
const string allocateNodeId()
Allocate node id.
File system singleton class.