1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
|
//////////////////////////////////////////////////////////////////////////////
//
// DISPLAYCOMPARE.H
//
// Copyright (C) 2001 Richard Groult <rgroult at jalix.org> (from ShowImg project)
// Copyright (C) 2004 Gilles Caulier <caulier dot gilles at gmail dot com>
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Cambridge, MA 02110-1301, USA.
//
//////////////////////////////////////////////////////////////////////////////
#ifndef __DISPLAYCOMPARE_H__
#define __DISPLAYCOMPARE_H__
// Include files for Qt
#include <qptrvector.h>
#include <qdict.h>
#include <qguardedptr.h>
// Include files for KDE
#include <kdialogbase.h>
// Includes file for libKIPI.
#include <libkipi/interface.h>
// Local includes
#include "kpaboutdata.h"
class QVBoxLayout;
class QHBoxLayout;
class QGridLayout;
class QGroupBox;
class QLabel;
class QListView;
class QListViewItem;
class QPushButton;
class QPrtList;
class QFile;
class KSqueezedTextLabel;
class KFileItem;
namespace KIPIFindDupplicateImagesPlugin
{
class DisplayCompare : public KDialogBase
{
Q_OBJECT
public:
DisplayCompare(QWidget* parent, KIPI::Interface* interface, const QDict < QPtrVector < QFile > >& cmp);
~DisplayCompare();
private slots :
void slotDisplayRight(QListViewItem *);
void slotDisplayLeft(QListViewItem *);
void slotHelp();
void slotDelete( void );
void slotGotPreview1(const KFileItem* url, const QPixmap &pixmap);
void slotGotPreview2(const KFileItem* url, const QPixmap &pixmap);
private:
const QDict < QPtrVector < QFile > > m_cmp;
QGroupBox* GroupBox1;
QGroupBox* GroupBox2;
KSqueezedTextLabel* OriginalNameLabel;
KSqueezedTextLabel* originalInfoLabel1;
KSqueezedTextLabel* originalInfoLabel2;
KSqueezedTextLabel* originalInfoLabel3;
KSqueezedTextLabel* originalInfoLabel4;
KSqueezedTextLabel* originalInfoLabel5;
KSqueezedTextLabel* similarNameLabel;
KSqueezedTextLabel* similarInfoLabel1;
KSqueezedTextLabel* similarInfoLabel2;
KSqueezedTextLabel* similarInfoLabel3;
KSqueezedTextLabel* similarInfoLabel4;
KSqueezedTextLabel* similarInfoLabel5;
QLabel* preview1;
QLabel* preview2;
QListView* listName;
QListView* listEq;
QPushButton *m_helpButton;
KIPI::Interface *m_interface;
KIPIPlugins::KPAboutData *m_about;
};
} // NameSpace KIPIFindDupplicateImagesPlugin
#endif // __DISPLAYCOMPARE_H__
|