GUIFramework 1.1.0
Framework for desktop GUI applications in C++.
Loading...
Searching...
No Matches
SeparateWindowParser.cpp
Go to the documentation of this file.
2
3using namespace std;
4
5namespace gui_framework
6{
7 namespace parsers
8 {
9 void SeparateWindowParser::parse(const json::utility::jsonObject& description)
10 {
11 BaseComponentParser::parse(description);
12
13 if (description.contains("pathToLargeIcon", json::utility::variantTypeEnum::jString))
14 {
15 pathToLargeIcon = description.getString("pathToLargeIcon");
16 }
17
18 if (description.contains("pathToSmallIcon", json::utility::variantTypeEnum::jString))
19 {
20 pathToSmallIcon = description.getString("pathToSmallIcon");
21 }
22
23 if (description.contains("onCloseFunctionName", json::utility::variantTypeEnum::jString))
24 {
25 onCloseFunctionName = description.getString("onCloseFunctionName");
26 onCloseFunctionModuleName = description.getString("onCloseFunctionModuleName");
27 }
28 }
29 }
30}
virtual void parse(const json::utility::jsonObject &description)
void parse(const json::utility::jsonObject &description) override