summaryrefslogtreecommitdiffstats
path: root/libkipi/libkipi/imagedialog.h
diff options
context:
space:
mode:
Diffstat (limited to 'libkipi/libkipi/imagedialog.h')
-rw-r--r--libkipi/libkipi/imagedialog.h83
1 files changed, 83 insertions, 0 deletions
diff --git a/libkipi/libkipi/imagedialog.h b/libkipi/libkipi/imagedialog.h
new file mode 100644
index 0000000..d23419c
--- /dev/null
+++ b/libkipi/libkipi/imagedialog.h
@@ -0,0 +1,83 @@
+/* ============================================================
+ * File : imagedialog.h
+ * Authors: KIPI team developers (see AUTHORS files for details)
+ *
+ * Date : 2004-05
+ * Description : an image files selector dialog.
+ *
+ * Copyright 2004 by the KIPI team
+ *
+ * This program is free software; you can redistribute it
+ * and/or modify it under the terms of the GNU Library General
+ * Public License as published by the Free Software Foundation;
+ * either version 2, or (at your option)
+ * any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Library General Public License for more details.
+ *
+ * ============================================================ */
+
+#ifndef IMAGEDIALOG_H
+#define IMAGEDIALOG_H
+
+// Qt includes.
+
+#include <qvaluelist.h>
+#include <qwidget.h>
+
+// KDE includes.
+
+#include <kurl.h>
+#include <kdialogbase.h>
+
+// LibKipi includes.
+
+#include "libkipi/interface.h"
+#include "libkipi/imagecollection.h"
+#include "libkipi/libkipi_export.h"
+
+class QListViewItem;
+
+class KFileItem;
+class KListView;
+
+namespace KIPI
+{
+
+
+class LIBKIPI_EXPORT ImageDialog : public KDialogBase
+{
+Q_OBJECT
+
+ class Private;
+
+public:
+
+ ImageDialog(QWidget*, Interface*, bool singleSelection=false);
+ ~ImageDialog();
+
+ KURL url() const;
+ KURL::List urls() const;
+
+ static KURL getImageURL(QWidget*, Interface*);
+ static KURL::List getImageURLs(QWidget*, Interface*);
+
+private slots:
+
+ void fillImageList(QListViewItem*);
+ void slotImageSelected(QListViewItem*);
+ void slotImagesSelected();
+ void slotGotPreview(const KFileItem* , const QPixmap&);
+ void slotHelp( void );
+ void slotInitialShow();
+
+private:
+ Private* d;
+};
+
+} // namespace KIPI
+
+#endif /* IMAGECOLLECTIONDIALOG_H */