digiKam
transitionpreview.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 : 2017-06-04
7  * Description : A label to show transition preview
8  *
9  * Copyright (C) 2017-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_TRANSITION_PREVIEW_H
25 #define DIGIKAM_TRANSITION_PREVIEW_H
26 
27 // Qt includes
28 
29 #include <QLabel>
30 #include <QString>
31 #include <QList>
32 #include <QUrl>
33 
34 // Local includes
35 
36 #include "transitionmngr.h"
37 #include "digikam_export.h"
38 
39 namespace Digikam
40 {
41 
42 class DIGIKAM_EXPORT TransitionPreview : public QLabel
43 {
44  Q_OBJECT
45 
46 public:
47 
48  explicit TransitionPreview(QWidget* const parent = nullptr);
49  ~TransitionPreview() override;
50 
51  void setImagesList(const QList<QUrl>& images);
52 
53  void startPreview(TransitionMngr::TransType eff);
54  void stopPreview();
55 
56 private Q_SLOTS:
57 
58  void slotProgressTransition();
59  void slotRestart();
60 
61 private:
62 
63  class Private;
64  Private* const d;
65 };
66 
67 } // namespace Digikam
68 
69 #endif // DIGIKAM_TRANSITION_PREVIEW_H
TransType
Definition: transitionmngr.h:44
Definition: transitionpreview.h:43
Definition: datefolderview.cpp:43