digiKam
statusbarprogresswidget.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 : 2012-01-13
7  * Description : progress manager
8  *
9  * Copyright (C) 2007-2022 by Gilles Caulier <caulier dot gilles at gmail dot com>
10  * Copyright (C) 2004 by Till Adam <adam at kde dot org>
11  * Copyright (C) 2004 by David Faure <faure at kde dot org>
12  *
13  * This program is free software; you can redistribute it
14  * and/or modify it under the terms of the GNU General
15  * Public License as published by the Free Software Foundation;
16  * either version 2, or (at your option)
17  * any later version.
18  *
19  * This program is distributed in the hope that it will be useful,
20  * but WITHOUT ANY WARRANTY; without even the implied warranty of
21  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22  * GNU General Public License for more details.
23  *
24  * ============================================================ */
25 
26 #ifndef DIGIKAM_STATUS_BAR_PROGRESS_WIDGET_H
27 #define DIGIKAM_STATUS_BAR_PROGRESS_WIDGET_H
28 
29 // Qt includes
30 
31 #include <QFrame>
32 
33 // Local includes
34 
35 #include "digikam_export.h"
36 
37 namespace Digikam
38 {
39 
40 class ProgressItem;
41 class ProgressView;
42 
43 class DIGIKAM_EXPORT StatusbarProgressWidget : public QFrame
44 {
45  Q_OBJECT
46 
47 public:
48 
49  StatusbarProgressWidget(ProgressView* const progressView, QWidget* const parent, bool button = true);
50  ~StatusbarProgressWidget() override;
51 
52 public Q_SLOTS:
53 
54  void slotClean();
55 
56  void slotProgressItemAdded(ProgressItem* i);
57  void slotProgressItemCompleted(ProgressItem* i);
58  void slotProgressItemProgress(ProgressItem* i, unsigned int value);
59 
60 protected Q_SLOTS:
61 
62  void slotProgressViewVisible(bool);
63  void slotShowItemDelayed();
64  void slotBusyIndicator();
65  void updateBusyMode();
66 
67 protected:
68 
69  void setMode();
70  void connectSingleItem();
71  void activateSingleItemMode();
72 
73  bool eventFilter(QObject*, QEvent*) override;
74 
75 private:
76 
77  class Private;
78  Private* const d;
79 };
80 
81 } // namespace Digikam
82 
83 #endif // DIGIKAM_STATUS_BAR_PROGRESS_WIDGET_H
Definition: progressmanager.h:45
Definition: progressview.h:117
Definition: statusbarprogresswidget.h:44
qulonglong value
Definition: itemviewutilities.cpp:592
Definition: datefolderview.cpp:43