Main Page | Namespace List | Class List | File List | Namespace Members | Class Members | File Members

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 bythe 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 
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 } // KIPI
00078 
00079 
00080 #endif /* IMAGECOLLECTIONSELECTOR_H */

Generated on Tue Sep 13 05:01:58 2005 for libKipi by  doxygen 1.4.4