GUIFramework 1.1.0
Framework for desktop GUI applications in C++.
Loading...
Searching...
No Matches
ProgressBar.cpp
Go to the documentation of this file.
1#include "ProgressBar.h"
2
4
5using namespace std;
6
7namespace gui_framework
8{
9 ProgressBar::ProgressBar(const wstring& progressBarName, const utility::ComponentSettings& settings, BaseComposite* parent, int minRange, int maxRange, int updateStep) :
11 (
12 progressBarName,
13 settings,
14 parent,
15 minRange,
16 maxRange,
17 updateStep
18 ),
19 IResizableComponent
20 (
21 handle,
22 parent->getHandle()
23 )
24 {
25
26 }
27
28 size_t ProgressBar::getHash() const
29 {
30 return typeid(ProgressBar).hash_code();
31 }
32
33 json::JSONBuilder ProgressBar::getStructure() const
34 {
35 using json::utility::jsonObject;
36
37 json::JSONBuilder builder = BaseProgressBar::getStructure();
38 jsonObject& current = get<jsonObject>(builder[utility::to_string(windowName, ISerializable::getCodepage())]);
39
40 return builder;
41 }
42}
const std::wstring windowName
Base class for all windows that has children windows.
Base class for all updatable progress bars.
virtual json::JSONBuilder getStructure() const override
ProgressBar(const std::wstring &progressBarName, const utility::ComponentSettings &settings, BaseComposite *parent, int minRange=defaultMinRange, int maxRange=defaultMaxRange, int updateStep=defaultUpdateStep)
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