imagecollectionselector.h

Go to the documentation of this file.
00001 /* ============================================================
00002  * File   : imagecollectionselector.h
00003  * Authors: KIPI team developers (see AUTHORS files for details)
00004  *          
00005  * Date   : 2004-07
00006  * Description :
00007  *
00008  * Copyright 2004 by the KIPI team
00009  *
00010  * This program is free software; you can redistribute it
00011  * and/or modify it under the terms of the GNU Library General
00012  * Public License as published by the Free Software Foundation;
00013  * either version 2, or (at your option)
00014  * any later version.
00015  *
00016  * This program is distributed in the hope that it will be useful,
00017  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00018  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00019  * GNU Library General Public License for more details.
00020  *
00021  * ============================================================ */
00022 
00023 #ifndef IMAGECOLLECTIONSELECTOR_H
00024 #define IMAGECOLLECTIONSELECTOR_H   
00025 
00026 // Qt includes.
00027 
00028 #include <qwidget.h>
00029 #include <qvaluelist.h>
00030 #include <qpixmap.h>
00031 
00032 // KIPI includes.
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 } // KIPI
00079 
00080 
00081 #endif /* IMAGECOLLECTIONSELECTOR_H */

Generated on Mon Nov 27 23:42:22 2006 for libKipi by  doxygen 1.5.0