digiKam
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  * Copyright (C) 2006-2022 by Gilles Caulier <caulier dot gilles at gmail dot com>
10  *
11  * This program is free software; you can redistribute it
12  * and/or modify it under the terms of the GNU General
13  * Public License as published by the Free Software Foundation;
14  * either version 2, or (at your option)
15  * any later version.
16  *
17  * This program is distributed in the hope that it will be useful,
18  * but WITHOUT ANY WARRANTY; without even the implied warranty of
19  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20  * GNU General Public License for more details.
21  *
22  * ============================================================ */
23 
24 #ifndef DIGIKAM_DPROGRESS_DLG_H
25 #define DIGIKAM_DPROGRESS_DLG_H
26 
27 // Qt includes
28 
29 #include <QPixmap>
30 #include <QDialog>
31 
32 // Local includes
33 
34 #include "digikam_export.h"
35 
36 namespace Digikam
37 {
38 
39 class DIGIKAM_EXPORT DProgressDlg : public QDialog
40 {
41  Q_OBJECT
42 
43 public:
44 
45  explicit DProgressDlg(QWidget* const parent = nullptr, const QString& caption=QString());
46  ~DProgressDlg() override;
47 
48  void setLabel(const QString& text);
49  void setTitle(const QString& text);
50 
51  int value() const;
52 
53 Q_SIGNALS:
54 
56 
57 public Q_SLOTS:
58 
59  void setMaximum(int max);
60  void incrementMaximum(int added);
61  void advance(int offset);
62  void setValue(int value);
63  void setButtonText(const QString& text);
64 
65  void addedAction(const QPixmap& icon, const QString& text);
66  void reset();
67 
68 protected Q_SLOTS:
69 
70  void slotCancel();
71 
72 private:
73 
74  class Private;
75  Private* const d;
76 };
77 
78 } // namespace Digikam
79 
80 #endif // DIGIKAM_DPROGRESS_DLG_H
Definition: dprogressdlg.h:40
qulonglong value
Definition: itemviewutilities.cpp:592
Definition: datefolderview.cpp:43