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

imagedialog.h

Go to the documentation of this file.
00001 /* ============================================================
00002  * File   : imagedialog.h
00003  * Authors: KIPI team developers (see AUTHORS files for details)
00004  *          
00005  * Date   : 2004-05
00006  * Description : an image files selector dialog.
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 IMAGEDIALOG_H
00024 #define IMAGEDIALOG_H
00025 
00026 // Qt includes.
00027 
00028 #include <qvaluelist.h>
00029 #include <qwidget.h>
00030 
00031 // KDE includes.
00032 
00033 #include <kurl.h>
00034 #include <kdialogbase.h>
00035 
00036 // LibKipi includes.
00037 
00038 #include <libkipi/interface.h>
00039 #include <libkipi/imagecollection.h>
00040 
00041 
00042 class QListViewItem;
00043 
00044 class KFileItem;
00045 class KListView;
00046 
00047 namespace KIPI
00048 {
00049 
00050 
00051 class ImageDialog : public KDialogBase 
00052 {
00053 Q_OBJECT
00054     
00055     class Private;
00056     
00057 public:
00058 
00059     ImageDialog(QWidget*, Interface*, bool singleSelection=false);
00060     ~ImageDialog();
00061 
00062     KURL       url() const;
00063     KURL::List urls() const;
00064     
00065     static KURL getImageURL(QWidget*, Interface*);
00066     static KURL::List getImageURLs(QWidget*, Interface*);
00067 
00068 private slots:
00069 
00070     void fillImageList(QListViewItem*);
00071     void slotImageSelected(QListViewItem*);
00072     void slotImagesSelected();
00073     void slotGotPreview(const KFileItem* , const QPixmap&);
00074     void slotHelp( void );
00075     void slotInitialShow();
00076 
00077 private:
00078     Private* d;
00079 };
00080 
00081 } // namespace KIPI
00082 
00083 #endif /* IMAGECOLLECTIONDIALOG_H */

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