GUIFramework
1.1.0
Framework for desktop GUI applications in C++.
Loading...
Searching...
No Matches
RichEditParser.cpp
Go to the documentation of this file.
1
#include "
RichEditParser.h
"
2
3
using namespace
std;
4
5
namespace
gui_framework
6
{
7
namespace
parsers
8
{
9
RichEditParser::RichEditParser
() :
10
callbacks({})
11
{
12
13
}
14
15
void
RichEditParser::parse
(
const
json::utility::jsonObject& description)
16
{
17
BaseComponentParser::parse
(description);
18
19
const
auto
& jsonCallbacks = description.getArray(
"callbacks"
);
20
21
isMultiLine
= description.getBool(
"isMultiLine"
);
22
23
limitTextCount
= description.getUnsignedInt(
"limitTextCount"
);
24
25
for
(
const
auto
& i : jsonCallbacks)
26
{
27
callbacks
[i.getInt(
"callbackType"
)] = { i.getString(
"callbackName"
), i.getString(
"callbackModule"
) };
28
}
29
}
30
}
31
}
RichEditParser.h
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::RichEditParser::limitTextCount
uint64_t limitTextCount
Definition
RichEditParser.h:15
gui_framework::parsers::RichEditParser::parse
void parse(const json::utility::jsonObject &description) override
Definition
RichEditParser.cpp:15
gui_framework::parsers::RichEditParser::callbacks
std::array< std::pair< std::string, std::string >, BaseRichEdit::urlDetectEventSize > callbacks
Definition
RichEditParser.h:13
gui_framework::parsers::RichEditParser::isMultiLine
bool isMultiLine
Definition
RichEditParser.h:14
gui_framework::parsers::RichEditParser::RichEditParser
RichEditParser()
Definition
RichEditParser.cpp:9
GUIFramework
src
Deserialization
Parsers
RichEditParser.cpp
Generated by
1.12.0