GUIFramework 1.1.0
Framework for desktop GUI applications in C++.
Loading...
Searching...
No Matches
TabControl.cpp
Go to the documentation of this file.
1#include "TabControl.h"
2
4
5using namespace std;
6
7namespace gui_framework
8{
9 TabControl::TabControl(const wstring& tabControlName, const utility::ComponentSettings& settings, BaseComposite* parent, uint16_t imagesWidth, uint16_t imagesHeight) :
11 (
12 tabControlName,
13 settings,
14 imagesWidth,
15 imagesHeight,
16 parent
17 ),
18 IResizableComponent
19 (
20 handle,
21 parent->getHandle()
22 )
23 {
24
25 }
26
27 size_t TabControl::getHash() const
28 {
29 return typeid(TabControl).hash_code();
30 }
31
32 json::JSONBuilder TabControl::getStructure() const
33 {
34 using json::utility::jsonObject;
35
36 json::JSONBuilder builder = BaseTabControl::getStructure();
37 jsonObject& current = get<jsonObject>(builder[utility::to_string(windowName, ISerializable::getCodepage())]);
38
39 return builder;
40 }
41}
const std::wstring windowName
Base class for all windows that has children windows.
Base class for all tab controls.
virtual json::JSONBuilder getStructure() const override
TabControl(const std::wstring &tabControlName, const utility::ComponentSettings &settings, BaseComposite *parent, uint16_t imagesWidth=NULL, uint16_t imagesHeight=NULL)
Definition TabControl.cpp:9
json::JSONBuilder getStructure() const override
size_t getHash() const override
Used as key in creators.
string to_string(wstring_view stringToConvert, uint32_t codepage)
Definition Utility.cpp:41