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