Plasma Engine  2.0
Loading...
Searching...
No Matches
QtProgressbar.h
1#pragma once
2
3#include <Foundation/Communication/Event.h>
4#include <Foundation/Strings/String.h>
5#include <Foundation/Time/Time.h>
6#include <GuiFoundation/GuiFoundationDLL.h>
7
8class QProgressDialog;
9class QWinTaskbarProgress;
10class QWinTaskbarButton;
11class plProgress;
12struct plProgressEvent;
13
18class PL_GUIFOUNDATION_DLL plQtProgressbar
19{
20public:
23
25 void SetProgressbar(plProgress* pProgress);
26
27 bool IsProcessingEvents() const { return m_iNestedProcessEvents > 0; }
28
29private:
30 void ProgressbarEventHandler(const plProgressEvent& e);
31
32 void EnsureCreated();
33 void EnsureDestroyed();
34
35 QProgressDialog* m_pDialog = nullptr;
36 plProgress* m_pProgress = nullptr;
37 plInt32 m_iNestedProcessEvents = 0;
38
39 QMetaObject::Connection m_OnDialogDestroyed;
40};
Manages the way a progress bar is subdivided and advanced.
Definition Progress.h:36
A Qt implementation to display the state of an plProgress instance.
Definition QtProgressbar.h:19
Through these events the state of an plProgress instance is communicated.
Definition Progress.h:16