mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 16:50:06 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			46 lines
		
	
	
	
		
			767 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			46 lines
		
	
	
	
		
			767 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| #pragma once
 | |
| 
 | |
| #include <QDialog>
 | |
| 
 | |
| class QDialogButtonBox;
 | |
| 
 | |
| namespace Ui
 | |
| {
 | |
| class ProgressDialog;
 | |
| }
 | |
| 
 | |
| namespace scwx
 | |
| {
 | |
| namespace qt
 | |
| {
 | |
| namespace ui
 | |
| {
 | |
| class ProgressDialog : public QDialog
 | |
| {
 | |
|    Q_OBJECT
 | |
|    Q_DISABLE_COPY_MOVE(ProgressDialog)
 | |
| 
 | |
| public:
 | |
|    explicit ProgressDialog(QWidget* parent = nullptr);
 | |
|    ~ProgressDialog();
 | |
| 
 | |
| protected:
 | |
|    QDialogButtonBox* button_box() const;
 | |
| 
 | |
| public slots:
 | |
|    void SetTopLabelText(const QString& text);
 | |
|    void SetBottomLabelText(const QString& text);
 | |
|    void SetMinimum(int minimum);
 | |
|    void SetMaximum(int maximum);
 | |
|    void SetRange(int minimum, int maximum);
 | |
|    void SetValue(int value);
 | |
| 
 | |
| private:
 | |
|    class Impl;
 | |
|    std::unique_ptr<Impl> p;
 | |
|    Ui::ProgressDialog*   ui;
 | |
| };
 | |
| 
 | |
| } // namespace ui
 | |
| } // namespace qt
 | |
| } // namespace scwx
 | 
