GUIFramework 1.1.0
Framework for desktop GUI applications in C++.
Loading...
Searching...
No Matches
TextListView.cpp
Go to the documentation of this file.
1#include "TextListView.h"
2
3using namespace std;
4
5namespace gui_framework
6{
7 TextListView::TextListView(const wstring& listViewName, const utility::ComponentSettings& settings, BaseComposite* parent) :
9 (
10 listViewName,
11 settings,
12 parent
13 )
14 {
15
16 }
17
18 size_t TextListView::getHash() const
19 {
20 return typeid(TextListView).hash_code();
21 }
22
23 json::JSONBuilder TextListView::getStructure() const
24 {
25 using json::utility::jsonObject;
26
27 json::JSONBuilder builder = BaseTextListView::getStructure();
28 jsonObject& current = get<jsonObject>(builder[utility::to_string(windowName, ISerializable::getCodepage())]);
29
30 return builder;
31 }
32}
const std::wstring windowName
Base class for all windows that has children windows.
Base class for all list views with text items only.
virtual json::JSONBuilder getStructure() const override
size_t getHash() const override
Used as key in creators.
TextListView(const std::wstring &listViewName, const utility::ComponentSettings &settings, BaseComposite *parent)
json::JSONBuilder getStructure() const override
string to_string(wstring_view stringToConvert, uint32_t codepage)
Definition Utility.cpp:41