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 #include "libkipi/libkipi_export.h"
00036
00037 class QListViewItem;
00038 class KFileItem;
00039
00040 namespace KIPI
00041 {
00042
00043 class Interface;
00044
00045 class LIBKIPI_EXPORT ImageCollectionSelector : public QWidget
00046 {
00047 Q_OBJECT
00048 class Private;
00049
00050 public:
00051
00052 ImageCollectionSelector(QWidget* parent, Interface*, const char* name=0);
00053 ~ImageCollectionSelector();
00054
00055 QValueList<ImageCollection> selectedImageCollections() const;
00056
00057 signals:
00058
00059 void selectionChanged(void);
00060
00061 private:
00062
00063 Private* d;
00064 void fillList();
00065 void emitSelectionChanged();
00066 friend class ImageCollectionItem;
00067
00068 private slots:
00069
00070 void slotSelectAll();
00071 void slotInvertSelection();
00072 void slotSelectNone();
00073 void slotSelectionChanged(QListViewItem* listItem);
00074 void slotGotPreview(const KFileItem*, const QPixmap&);
00075 void slotInitialShow();
00076 };
00077
00078 }
00079
00080
00081 #endif