File indexing completed on 2024-04-28 05:46:31

0001 /*
0002     SPDX-FileCopyrightText: 2010 Volker Lanz <vl@fidra.de>
0003     SPDX-FileCopyrightText: 2016-2017 Andrius Štikonas <andrius@stikonas.eu>
0004     SPDX-FileCopyrightText: 2019 Yuri Chornoivan <yurchor@ukr.net>
0005 
0006     SPDX-License-Identifier: GPL-3.0-or-later
0007 */
0008 
0009 #if !defined(APPLYPROGRESSDIALOGWIDGET_H)
0010 
0011 #define APPLYPROGRESSDIALOGWIDGET_H
0012 
0013 #include "ui_applyprogressdialogwidgetbase.h"
0014 
0015 /** Central widget for the ProgressDialog.
0016     @author Volker Lanz <vl@fidra.de>
0017 */
0018 class ApplyProgressDialogWidget : public QWidget, public Ui::ApplyProgressDialogWidgetBase
0019 {
0020 public:
0021     explicit ApplyProgressDialogWidget(QWidget* parent);
0022 
0023 public:
0024     QTreeWidget& treeTasks() {
0025         Q_ASSERT(m_TreeTasks);
0026         return *m_TreeTasks;
0027     }
0028     QProgressBar& progressTotal() {
0029         Q_ASSERT(m_ProgressTotal);
0030         return *m_ProgressTotal;
0031     }
0032     QProgressBar& progressSub() {
0033         Q_ASSERT(m_ProgressSub);
0034         return *m_ProgressSub;
0035     }
0036     QLabel& status() {
0037         Q_ASSERT(m_LabelStatus);
0038         return *m_LabelStatus;
0039     }
0040     QLabel& totalTime() {
0041         Q_ASSERT(m_LabelTime);
0042         return *m_LabelTime;
0043     }
0044 };
0045 
0046 #endif