digiKam
effectpreview.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 video frame effect 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_EFFECT_PREVIEW_H
25 #define DIGIKAM_EFFECT_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 "effectmngr.h"
37 #include "digikam_export.h"
38 
39 namespace Digikam
40 {
41 
42 class DIGIKAM_EXPORT EffectPreview : public QLabel
43 {
44  Q_OBJECT
45 
46 public:
47 
48  explicit EffectPreview(QWidget* const parent = nullptr);
49  ~EffectPreview() override;
50 
51  void setImagesList(const QList<QUrl>& images);
52 
53  void startPreview(EffectMngr::EffectType eff);
54  void stopPreview();
55 
56 private Q_SLOTS:
57 
58  void slotProgressEffect();
59  void slotRestart();
60 
61 private:
62 
63  class Private;
64  Private* const d;
65 };
66 
67 } // namespace Digikam
68 
69 #endif // DIGIKAM_EFFECT_PREVIEW_H
EffectType
Definition: effectmngr.h:47
Definition: effectpreview.h:43
Definition: datefolderview.cpp:43