1
/* ============================================================
3
* This file is a part of digiKam project
4
* http://www.digikam.org
7
* Description : a ListView to display black frames
9
* Copyright (C) 2005-2010 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>
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)
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.
23
* ============================================================ */
25
#ifndef BLACKFRAMELISTVIEW_H
26
#define BLACKFRAMELISTVIEW_H
36
#include <QTreeWidget>
45
#include "blackframeparser.h"
48
namespace DigikamEnhanceImagePlugin
51
class BlackFrameListView : public QTreeWidget
57
BlackFrameListView(QWidget* parent=0);
58
~BlackFrameListView(){};
62
void signalBlackFrameSelected(const QList<HotPixel>&, const KUrl&);
66
void slotParsed(const QList<HotPixel>& hotPixels, const KUrl& blackFrameURL)
68
emit signalBlackFrameSelected(hotPixels, blackFrameURL);
72
//-----------------------------------------------------------------------------------
74
class BlackFrameListViewItem : public QObject, QTreeWidgetItem
80
BlackFrameListViewItem(BlackFrameListView* parent, const KUrl& url);
81
~BlackFrameListViewItem(){};
85
void signalParsed(const QList<HotPixel>&, const KUrl&);
86
void signalLoadingProgress(float);
87
void signalLoadingComplete();
95
QPixmap thumb(const QSize& size);
99
void slotParsed(const QList<HotPixel>&);
103
// Data contained within each listview item
109
QList<HotPixel> m_hotPixels;
111
QString m_blackFrameDesc;
113
KUrl m_blackFrameURL;
115
BlackFrameParser* m_parser;
117
BlackFrameListView* m_parent;
120
} // namespace DigikamEnhanceImagePlugin
122
#endif // BLACKFRAMELISTVIEW_H