libKipi
imagecollectionselector.h
Go to the documentation of this file.
1/* ============================================================
2 *
3 * This file is a part of kipi-plugins project
4 * http://www.kipi-plugins.org
5 *
6 * Date : 2004-07-01
7 * Description : image collection selector
8 *
9 * Copyright (C) 2004-2007 by Gilles Caulier <caulier dot gilles at gmail dot com>
10 * Copyright (C) 2004-2005 by Renchi Raju <renchi.raju at kdemail.net>
11 * Copyright (C) 2004-2005 by Jesper K. Pedersen <blackie at kde.org>
12 * Copyright (C) 2004-2005 by Aurelien Gateau <aurelien dot gateau at free.fr>
13 *
14 * This program is free software; you can redistribute it
15 * and/or modify it under the terms of the GNU General
16 * Public License as published by the Free Software Foundation;
17 * either version 2, or (at your option) any later version.
18 *
19 * This program is distributed in the hope that it will be useful,
20 * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 * GNU General Public License for more details.
23 *
24 * ============================================================ */
25
26#ifndef IMAGECOLLECTIONSELECTOR_H
27#define IMAGECOLLECTIONSELECTOR_H
28
29// Qt includes.
30
31#include <qwidget.h>
32#include <qvaluelist.h>
33#include <qpixmap.h>
34
35// KIPI includes.
36
39
40class QListViewItem;
41class KFileItem;
42
43namespace KIPI
44{
45
46class Interface;
47
49{
50Q_OBJECT
51
52 class Private;
53
54public:
55
56 ImageCollectionSelector(QWidget* parent, Interface*, const char* name=0);
58
59 QValueList<ImageCollection> selectedImageCollections() const;
60
61signals:
62
63 void selectionChanged(void);
64
65private slots:
66
67 void slotSelectAll();
68 void slotInvertSelection();
69 void slotSelectNone();
70 void slotSelectionChanged(QListViewItem* listItem);
71 void slotGotPreview(const KFileItem*, const QPixmap&);
72 void slotInitialShow();
73
74
75private:
76
77 Private* d;
78 void fillList();
79 void emitSelectionChanged();
80 friend class ImageCollectionItem;
81};
82
83} // KIPI
84
85
86#endif /* IMAGECOLLECTIONSELECTOR_H */
ImageCollectionSelector(QWidget *parent, Interface *, const char *name=0)
Definition imagecollectionselector.cpp:91
friend class ImageCollectionItem
Definition imagecollectionselector.h:80
QValueList< ImageCollection > selectedImageCollections() const
Definition imagecollectionselector.cpp:194
Definition interface.h:64
#define LIBKIPI_EXPORT
Definition libkipi_export.h:35
Definition batchprogressdialog.cpp:70
Definition imagecollectionselector.cpp:83