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 
38 #include "libkipi/libkipi_export.h"
39 
40 class QListViewItem;
41 class KFileItem;
42 
43 namespace KIPI
44 {
45 
46 class Interface;
47 
48 class LIBKIPI_EXPORT ImageCollectionSelector : public QWidget
49 {
50 Q_OBJECT
51 
52  class Private;
53 
54 public:
55 
56  ImageCollectionSelector(QWidget* parent, Interface*, const char* name=0);
58 
59  QValueList<ImageCollection> selectedImageCollections() const;
60 
61 signals:
62 
63  void selectionChanged(void);
64 
65 private 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 
75 private:
76 
77  Private* d;
78  void fillList();
79  void emitSelectionChanged();
80  friend class ImageCollectionItem;
81 };
82 
83 } // KIPI
84 
85 
86 #endif /* IMAGECOLLECTIONSELECTOR_H */
Definition: imagecollectionselector.h:48
Definition: batchprogressdialog.cpp:69
Definition: interface.h:63
#define LIBKIPI_EXPORT
Definition: libkipi_export.h:35
Definition: imagecollectionselector.cpp:82
Definition: imagecollectionselector.cpp:56