00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #ifndef IMAGECOLLECTIONSELECTOR_H
00024 #define IMAGECOLLECTIONSELECTOR_H
00025
00026
00027
00028 #include <qwidget.h>
00029 #include <qvaluelist.h>
00030 #include <qpixmap.h>
00031
00032
00033
00034 #include "libkipi/imagecollection.h"
00035
00036 class QListViewItem;
00037 class KFileItem;
00038
00039 namespace KIPI
00040 {
00041
00042 class Interface;
00043
00044 class ImageCollectionSelector : public QWidget
00045 {
00046 Q_OBJECT
00047 class Private;
00048
00049 public:
00050
00051 ImageCollectionSelector(QWidget* parent, Interface*, const char* name=0);
00052 ~ImageCollectionSelector();
00053
00054 QValueList<ImageCollection> selectedImageCollections() const;
00055
00056 signals:
00057
00058 void selectionChanged(void);
00059
00060 private:
00061
00062 Private* d;
00063 void fillList();
00064 void emitSelectionChanged();
00065 friend class ImageCollectionItem;
00066
00067 private slots:
00068
00069 void slotSelectAll();
00070 void slotInvertSelection();
00071 void slotSelectNone();
00072 void slotSelectionChanged(QListViewItem* listItem);
00073 void slotGotPreview(const KFileItem*, const QPixmap&);
00074 void slotInitialShow();
00075 };
00076
00077 }
00078
00079
00080 #endif