digiKam
dsplashscreen.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 : 2003-02-10
7  * Description : a widget to display splash with progress bar
8  *
9  * Copyright (C) 2003-2005 by Renchi Raju <renchi dot raju at gmail dot com>
10  * Copyright (C) 2006-2022 by Gilles Caulier <caulier dot gilles at gmail dot com>
11  *
12  * This program is free software; you can redistribute it
13  * and/or modify it under the terms of the GNU General
14  * Public License as published by the Free Software Foundation;
15  * either version 2, or (at your option)
16  * any later version.
17  *
18  * This program is distributed in the hope that it will be useful,
19  * but WITHOUT ANY WARRANTY; without even the implied warranty of
20  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21  * GNU General Public License for more details.
22  *
23  * ============================================================ */
24 
25 #ifndef DIGIKAM_DSPLASH_SCREEN_H
26 #define DIGIKAM_DSPLASH_SCREEN_H
27 
28 // Qt includes
29 
30 #include <QPainter>
31 #include <QSplashScreen>
32 
33 // Local includes
34 
35 #include "digikam_export.h"
36 
37 namespace Digikam
38 {
39 
40 class DIGIKAM_EXPORT DSplashScreen : public QSplashScreen
41 {
42  Q_OBJECT
43 
44 public:
45 
46  DSplashScreen();
47  ~DSplashScreen() override;
48 
49  void setColor(const QColor& color);
50  void setMessage(const QString& message);
51 
52 protected:
53 
54  void drawContents(QPainter*) override;
55 
56 private Q_SLOTS:
57 
58  void slotAnimate();
59 
60 private:
61 
62  // Disable
63  explicit DSplashScreen(QWidget*) = delete;
64 
65 private:
66 
67  class Private;
68  Private* const d;
69 };
70 
71 } // namespace Digikam
72 
73 #endif // DIGIKAM_DSPLASH_SCREEN_H
Definition: dsplashscreen.h:41
Definition: datefolderview.cpp:43