digiKam
Loading...
Searching...
No Matches
blackframelistview.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 : 2005-07-05
7 * Description : a list view to display black frames
8 *
9 * SPDX-FileCopyrightText: 2005-2024 by Gilles Caulier <caulier dot gilles at gmail dot com>
10 * SPDX-FileCopyrightText: 2005-2006 by Unai Garro <ugarro at users dot sourceforge dot net>
11 *
12 * SPDX-License-Identifier: GPL-2.0-or-later
13 *
14 * ============================================================ */
15
16#pragma once
17
18// Qt includes
19
20#include <QList>
21#include <QUrl>
22#include <QTreeWidget>
23
24// Local includes
25
26#include "digikam_export.h"
27#include "hotpixelprops.h"
28
29namespace Digikam
30{
31
32class DIGIKAM_EXPORT BlackFrameListView : public QTreeWidget
33{
34 Q_OBJECT
35
36public:
37
38 explicit BlackFrameListView(QWidget* const parent = nullptr);
39 ~BlackFrameListView() override;
40
41 bool contains(const QUrl& url);
42 bool isSelected(const QUrl& url);
43 QUrl currentUrl();
44
45Q_SIGNALS:
46
47 void signalBlackFrameSelected(const QList<HotPixelProps>&, const QUrl&);
48 void signalBlackFrameRemoved(const QUrl&);
50
51private Q_SLOTS:
52
53 void slotSelectionChanged();
54 void slotHotPixelsParsed(const QList<HotPixelProps>&, const QUrl&);
55 void slotToolTip();
56 void slotContextMenu();
57
58private:
59
60 void hideToolTip();
61 bool acceptToolTip(const QPoint& pos) const;
62
63 void mouseMoveEvent(QMouseEvent*) override;
64 void wheelEvent(QWheelEvent*) override;
65 void keyPressEvent(QKeyEvent*) override;
66 void focusOutEvent(QFocusEvent*) override;
67 void leaveEvent(QEvent*) override;
68
69private:
70
71 class Private;
72 Private* const d = nullptr;
73};
74
75} // namespace Digikam
Definition blackframelistview.h:33
void signalBlackFrameSelected(const QList< HotPixelProps > &, const QUrl &)
void signalBlackFrameRemoved(const QUrl &)
Definition datefolderview.cpp:34