digiKam
lighttablepreview.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 : 2006-21-12
7  * Description : digiKam light table preview item.
8  *
9  * Copyright (C) 2006-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_LIGHT_TABLE_PREVIEW_H
25 #define DIGIKAM_LIGHT_TABLE_PREVIEW_H
26 
27 // Qt includes
28 
29 #include <QString>
30 #include <QDropEvent>
31 #include <QDragMoveEvent>
32 #include <QMimeData>
33 
34 // Local includes
35 
36 #include "iteminfo.h"
37 #include "itempreviewview.h"
38 
39 namespace Digikam
40 {
41 
43 {
44  Q_OBJECT
45 
46 public:
47 
48  explicit LightTablePreview(QWidget* const parent = nullptr);
49  ~LightTablePreview() override;
50 
51  void setDragAndDropEnabled(bool b);
53 
54 Q_SIGNALS:
55 
57 
58 private:
59 
60  void dragMoveEvent(QDragMoveEvent*) override;
61  void dragEnterEvent(QDragEnterEvent*) override;
62  void dropEvent(QDropEvent*) override;
63  bool dragEventWrapper(const QMimeData*) const;
64 };
65 
66 } // namespace Digikam
67 
68 #endif // DIGIKAM_LIGHT_TABLE_PREVIEW_H
Definition: iteminfolist.h:47
Definition: itempreviewview.h:46
@ LightTablePreview
Definition: itempreviewview.h:54
Definition: lighttablepreview.h:43
void setDragAndDropEnabled(bool b)
Definition: lighttablepreview.cpp:61
void signalDroppedItems(const ItemInfoList &)
~LightTablePreview() override
Definition: lighttablepreview.cpp:57
void showDragAndDropMessage()
Definition: lighttablepreview.cpp:67
Definition: datefolderview.cpp:43