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
3using namespace std;
4
5namespace gui_framework
6{
7 namespace parsers
8 {
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}
virtual void parse(const json::utility::jsonObject &description)
void parse(const json::utility::jsonObject &description) override
std::array< std::pair< std::string, std::string >, BaseRichEdit::urlDetectEventSize > callbacks