digiKam
Loading...
Searching...
No Matches
dprogressdlg.h
Go to the documentation of this file.
1/* ============================================================
2 *
3 * This file is a part of digiKam project
4 * https://www.digikam.org
5 *
6 * Date : 2006-30-08
7 * Description : a progress dialog for digiKam
8 *
9 * SPDX-FileCopyrightText: 2006-2024 by Gilles Caulier <caulier dot gilles at gmail dot com>
10 *
11 * SPDX-License-Identifier: GPL-2.0-or-later
12 *
13 * ============================================================ */
14
15#pragma once
16
17// Qt includes
18
19#include <QPixmap>
20#include <QDialog>
21
22// Local includes
23
24#include "digikam_export.h"
25
26namespace Digikam
27{
28
29class DIGIKAM_EXPORT DProgressDlg : public QDialog
30{
31 Q_OBJECT
32
33public:
34
35 explicit DProgressDlg(QWidget* const parent = nullptr, const QString& caption=QString());
36 ~DProgressDlg() override;
37
38 void setLabel(const QString& text);
39 void setTitle(const QString& text);
40
41 int value() const;
42
43Q_SIGNALS:
44
46
47public Q_SLOTS:
48
49 void setMaximum(int max);
50 void incrementMaximum(int added);
51 void advance(int offset);
52 void setValue(int value);
53 void setButtonText(const QString& text);
54
55 void addedAction(const QPixmap& icon, const QString& text);
56 void reset();
57
58protected Q_SLOTS:
59
60 void slotCancel();
61
62private:
63
64 class Private;
65 Private* const d = nullptr;
66};
67
68} // namespace Digikam
Definition dprogressdlg.h:30
qulonglong value
Definition itemviewutilities.cpp:585
Definition datefolderview.cpp:34