digiKam
Loading...
Searching...
No Matches
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 * SPDX-FileCopyrightText: 2007-2024 by Gilles Caulier <caulier dot gilles at gmail dot com>
10 * SPDX-FileCopyrightText: 2004 by Till Adam <adam at kde dot org>
11 * SPDX-FileCopyrightText: 2004 by David Faure <faure at kde dot org>
12 *
13 * SPDX-License-Identifier: GPL-2.0-or-later
14 *
15 * ============================================================ */
16
17#pragma once
18
19// Qt includes
20
21#include <QFrame>
22
23// Local includes
24
25#include "digikam_export.h"
26
27namespace Digikam
28{
29
30class ProgressItem;
31class ProgressView;
32
33class DIGIKAM_EXPORT StatusbarProgressWidget : public QFrame
34{
35 Q_OBJECT
36
37public:
38
39 StatusbarProgressWidget(ProgressView* const progressView, QWidget* const parent, bool button = true);
40 ~StatusbarProgressWidget() override;
41
42public Q_SLOTS:
43
44 void slotClean();
45
46 void slotProgressItemAdded(ProgressItem* i);
47 void slotProgressItemCompleted(ProgressItem* i);
48 void slotProgressItemProgress(ProgressItem* i, unsigned int value);
49
50protected Q_SLOTS:
51
52 void slotProgressViewVisible(bool);
53 void slotShowItemDelayed();
54 void slotBusyIndicator();
55 void updateBusyMode();
56
57protected:
58
59 void setMode();
60 void connectSingleItem();
61 void activateSingleItemMode();
62
63 bool eventFilter(QObject*, QEvent*) override;
64
65private:
66
67 class Private;
68 Private* const d = nullptr;
69};
70
71} // namespace Digikam
Definition progressmanager.h:35
Definition progressview.h:111
Definition statusbarprogresswidget.h:34
qulonglong value
Definition itemviewutilities.cpp:585
Definition datefolderview.cpp:34