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