diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-01-17 18:57:42 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-01-17 18:57:42 +0000 |
commit | 82f79e1df065b59b8c17017d676206be30397bc6 (patch) | |
tree | a7d5680cbb2341001d69b66b502ef4cd9664abdc /libkipi/libkipi/imagedialog.h | |
download | libkipi-82f79e1df065b59b8c17017d676206be30397bc6.tar.gz libkipi-82f79e1df065b59b8c17017d676206be30397bc6.zip |
Added old KDE3 version of libkipi
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/libraries/libkipi@1076200 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'libkipi/libkipi/imagedialog.h')
-rw-r--r-- | libkipi/libkipi/imagedialog.h | 83 |
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 */ |