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