digiKam
blackframelistviewitem.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 - the item
8  *
9  * Copyright (C) 2005-2022 by Gilles Caulier <caulier dot gilles at gmail dot com>
10  * Copyright (C) 2005-2006 by Unai Garro <ugarro at users dot sourceforge dot net>
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_BLACK_FRAME_LIST_VIEW_ITEM_H
26 #define DIGIKAM_BLACK_FRAME_LIST_VIEW_ITEM_H
27 
28 // Qt includes
29 
30 #include <QList>
31 #include <QString>
32 #include <QUrl>
33 #include <QTreeWidget>
34 
35 // Local includes
36 
37 #include "digikam_export.h"
38 #include "hotpixelprops.h"
39 
40 namespace Digikam
41 {
42 
43 class DIGIKAM_EXPORT BlackFrameListViewItem : public QObject,
44  public QTreeWidgetItem
45 {
46  Q_OBJECT
47 
48 public:
49 
51  {
52  // Columns
53  PREVIEW = 0,
54  SIZE = 1,
55  HOTPIXELS = 2,
56 
57  // Thumbnail properties
58  THUMB_WIDTH = 150
59  };
60 
61 public:
62 
63  explicit BlackFrameListViewItem(QTreeWidget* const parent, const QUrl& url);
64  ~BlackFrameListViewItem() override;
65 
66  QUrl frameUrl() const;
67  QString toolTipString() const;
68 
69  void emitHotPixelsParsed();
70 
71 Q_SIGNALS:
72 
73  void signalHotPixelsParsed(const QList<HotPixelProps>&, const QUrl&);
74 
75 private Q_SLOTS:
76 
77  void slotHotPixelsParsed(const QList<HotPixelProps>&);
78  void slotLoadingProgress(float);
79 
80 private:
81 
82  class Private;
83  Private* const d;
84 };
85 
86 } // namespace Digikam
87 
88 #endif // DIGIKAM_BLACK_FRAME_LIST_VIEW_ITEM_H
Definition: blackframelistviewitem.h:45
BlackFrameConst
Definition: blackframelistviewitem.h:51
void signalHotPixelsParsed(const QList< HotPixelProps > &, const QUrl &)
Definition: piwigotalker.h:48
Definition: datefolderview.cpp:43