Nix (Dev) 3.5.10
dev - 3.5.10 - 1af9301
Loading...
Searching...
No Matches
CProgressDlg.hpp
Go to the documentation of this file.
1#ifndef LIBS_GUI_CPROGRESSDLG_HPP_
2#define LIBS_GUI_CPROGRESSDLG_HPP_
3
5#include "ui/gui/CLabel.hpp"
7
8#include <string>
9
11{
12public:
13 CProgressDlg() = delete;
14 CProgressDlg(const std::string &titleProcess, CDialog *dlgFatherRef, AbstractComponentGUI **panelSplashOpt,
15 bool withCancelButton = true);
16 ~CProgressDlg() override;
17 CProgressDlg(const CProgressDlg &other) = delete;
18 CProgressDlg(CProgressDlg &&other) = delete;
19 CProgressDlg &operator=(const CProgressDlg &other) = delete;
21
22 void setPanelSplash(AbstractComponentGUI **panelSplashOpt);
23
24 void begin() override;
25 void end() override;
26
27private:
28 bool isCancelling() override;
29
30 void resetProgress() override;
31 void visibleProgress(bool isVisible) override;
32 void writeCurrentElements(const std::string &header, uint64_t currentElements,
33 const std::string &extraInfo) override;
34 void writeMessage(const std::string &header) override;
35 void writeWithNumElements(const std::string &header, uint64_t currentElements, uint64_t numElements,
36 const std::string &extraInfo) override;
37
39
40 std::string m_titleProcess;
42
44 std::shared_ptr<CDialog> m_dlgModeless;
48
50};
51
52#endif /* LIBS_GUI_CPROGRESSDLG_HPP_ */
Definition AbstractComponentGUI.hpp:30
Definition AbstractProgress.hpp:8
Definition CDialog.hpp:21
Definition CLabel.hpp:17
Definition CProgressDlg.hpp:11
std::shared_ptr< CDialog > m_dlgModeless
Definition CProgressDlg.hpp:44
void visibleProgress(bool isVisible) override
Definition CProgressDlg.cpp:131
void writeCurrentElements(const std::string &header, uint64_t currentElements, const std::string &extraInfo) override
Definition CProgressDlg.cpp:139
CProgressDlg & operator=(CProgressDlg &&other)=delete
void setPanelSplash(AbstractComponentGUI **panelSplashOpt)
Definition CProgressDlg.cpp:77
void begin() override
Definition CProgressDlg.cpp:81
CLabel * m_message
Definition CProgressDlg.hpp:45
CProgress * m_progress
Definition CProgressDlg.hpp:46
void writeWithNumElements(const std::string &header, uint64_t currentElements, uint64_t numElements, const std::string &extraInfo) override
Definition CProgressDlg.cpp:176
void resetProgress() override
Definition CProgressDlg.cpp:124
bool isCancelling() override
Definition CProgressDlg.cpp:115
void end() override
Definition CProgressDlg.cpp:98
bool m_isCancelled
Definition CProgressDlg.hpp:43
AbstractComponentGUI * m_panelSplashOpt
Definition CProgressDlg.hpp:47
CProgressDlg(CProgressDlg &&other)=delete
CProgressDlg & operator=(const CProgressDlg &other)=delete
CProgressDlg()=delete
std::string m_titleProcess
Definition CProgressDlg.hpp:40
CDialog * m_dlgFatherRef
Definition CProgressDlg.hpp:41
AbstractComponentGUI * prvPanelProgress()
Definition CProgressDlg.cpp:232
bool m_withCancelButton
Definition CProgressDlg.hpp:49
CProgressDlg(const CProgressDlg &other)=delete
void writeMessage(const std::string &header) override
Definition CProgressDlg.cpp:164
~CProgressDlg() override
Definition CProgressDlg.cpp:69
Definition CProgress.hpp:7