libKipi
imagedialog.h
Go to the documentation of this file.
1 /* ============================================================
2  *
3  * This file is a part of kipi-plugins project
4  * http://www.kipi-plugins.org
5  *
6  * Date : 2004-05-01
7  * Description : an image files selector dialog.
8  *
9  * Copyright (C) 2004-2007 by Gilles Caulier <caulier dot gilles at gmail dot com>
10  * Copyright (C) 2004-2005 by Renchi Raju <renchi.raju at kdemail.net>
11  * Copyright (C) 2004-2005 by Jesper K. Pedersen <blackie at kde.org>
12  * Copyright (C) 2004-2005 by Aurelien Gateau <aurelien dot gateau at free.fr>
13  *
14  * This program is free software; you can redistribute it
15  * and/or modify it under the terms of the GNU General
16  * Public License as published by the Free Software Foundation;
17  * either version 2, or (at your option) any later version.
18  *
19  * This program is distributed in the hope that it will be useful,
20  * but WITHOUT ANY WARRANTY; without even the implied warranty of
21  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22  * GNU General Public License for more details.
23  *
24  * ============================================================ */
25 
26 #ifndef IMAGEDIALOG_H
27 #define IMAGEDIALOG_H
28 
29 // Qt includes.
30 
31 #include <qvaluelist.h>
32 #include <qwidget.h>
33 
34 // KDE includes.
35 
36 #include <kurl.h>
37 #include <kdialogbase.h>
38 
39 // LibKipi includes.
40 
41 #include "libkipi/interface.h"
43 #include "libkipi/libkipi_export.h"
44 
45 class QListViewItem;
46 
47 class KFileItem;
48 class KListView;
49 
50 namespace KIPI
51 {
52 
53 class LIBKIPI_EXPORT ImageDialog : public KDialogBase
54 {
55 Q_OBJECT
56 
57  class Private;
58 
59 public:
60 
61  ImageDialog(QWidget*, Interface*, bool singleSelection=false);
62  ~ImageDialog();
63 
64  KURL url() const;
65  KURL::List urls() const;
66 
67  static KURL getImageURL(QWidget*, Interface*);
68  static KURL::List getImageURLs(QWidget*, Interface*);
69 
70 private slots:
71 
72  void fillImageList(QListViewItem*);
73  void slotImageSelected(QListViewItem*);
74  void slotImagesSelected();
75  void slotGotPreview(const KFileItem* , const QPixmap&);
76  void slotHelp( void );
77  void slotInitialShow();
78 
79 private:
80 
81  Private* d;
82 };
83 
84 } // namespace KIPI
85 
86 #endif /* IMAGECOLLECTIONDIALOG_H */
Definition: batchprogressdialog.cpp:69
Definition: interface.h:63
#define LIBKIPI_EXPORT
Definition: libkipi_export.h:35
Definition: imagedialog.h:53
Definition: imagedialog.cpp:81