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
"
4
#include "
Interfaces/Utility/ISerializable.h
"
5
6
using namespace
std;
7
8
namespace
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
}
ButtonParser.h
ISerializable.h
Utility.h
gui_framework::interfaces::ISerializable::getCodepage
static uint32_t getCodepage()
Definition
ISerializable.h:25
gui_framework::utility::to_wstring
wstring to_wstring(const string &stringToConvert, uint32_t codepage)
Definition
Utility.cpp:82
gui_framework
Definition
BaseComponent.cpp:21
gui_framework::parsers::BaseComponentParser::parse
virtual void parse(const json::utility::jsonObject &description)
Definition
BaseComponentParser.cpp:20
gui_framework::parsers::ButtonParser::onClickFunctionName
std::string onClickFunctionName
Definition
ButtonParser.h:13
gui_framework::parsers::ButtonParser::onClickFunctionModule
std::string onClickFunctionModule
Definition
ButtonParser.h:14
gui_framework::parsers::ButtonParser::text
std::wstring text
Definition
ButtonParser.h:12
gui_framework::parsers::ButtonParser::pathToModule
std::string pathToModule
Definition
ButtonParser.h:15
gui_framework::parsers::ButtonParser::parse
void parse(const json::utility::jsonObject &description) override
Definition
ButtonParser.cpp:12
GUIFramework
src
Deserialization
Parsers
Buttons
ButtonParser.cpp
Generated by
1.12.0