GUIFramework 1.1.0
Framework for desktop GUI applications in C++.
Loading...
Searching...
No Matches
ButtonParser.cpp
Go to the documentation of this file.
1#include "ButtonParser.h"
2
3#include "Utility/Utility.h"
5
6using namespace std;
7
8namespace gui_framework
9{
10 namespace parsers
11 {
12 void ButtonParser::parse(const json::utility::jsonObject& description)
13 {
14 BaseComponentParser::parse(description);
15
16 uint32_t codepage = interfaces::ISerializable::getCodepage();
17
18 text = utility::to_wstring(description.getString("text"), codepage);
19
20 onClickFunctionName = description.getString("functionName");
21
22 onClickFunctionModule = description.getString("moduleName");
23
24 pathToModule = description.getString("pathToModule");
25 }
26 }
27}
wstring to_wstring(const string &stringToConvert, uint32_t codepage)
Definition Utility.cpp:82
virtual void parse(const json::utility::jsonObject &description)
void parse(const json::utility::jsonObject &description) override