From 428b687982966dc2efabaf6dbcc55ad0ea30aa10 Mon Sep 17 00:00:00 2001 From: zecke Date: Mon, 22 Mar 2004 23:32:41 +0000 Subject: Initial Check in of the Eye Of Zilla. This ImageViewer features Image Infos, EXIF, Jpeg,Png,Gif support. It supports scaled loading of Jpegs. an smart image cache.... GUI needs some work and we need to find a bug in QCOP as well. TODO: Add Image Service for example Mailer Add ImageCanvas/Zoomer/Display --- (limited to 'noncore/graphics/opie-eye/iface/dirlister.h') diff --git a/noncore/graphics/opie-eye/iface/dirlister.h b/noncore/graphics/opie-eye/iface/dirlister.h new file mode 100644 index 0000000..fcc55ec --- a/dev/null +++ b/noncore/graphics/opie-eye/iface/dirlister.h @@ -0,0 +1,47 @@ +/* + * GPLv2 zecke@handhelds.org + * No WArranty... + */ + +#ifndef PHUNK_DIR_LISTER_H +#define PHUNK_DIR_LISTER_H + +#include +#include +#include + + +class PDirLister : public QObject { + Q_OBJECT +public: + enum Factor { Width, Height, None }; + + PDirLister( const char* name ); + + virtual QString defaultPath()const = 0; + virtual QString setStartPath( const QString& ) = 0; + virtual QString currentPath()const = 0; + virtual QStringList folders()const = 0; + virtual QStringList files()const = 0; +public slots: + virtual void deleteImage( const QString& ) = 0; + virtual void imageInfo( const QString&) = 0; + virtual void fullImageInfo( const QString& ) = 0; + virtual void thumbNail( const QString&, int max_wid, int max_h ) = 0; + virtual QImage image( const QString&, Factor, int max = 0) = 0; + +signals: + void sig_dirchanged(); + void sig_filechanged(); + void sig_start(); + void sig_end(); +// If this app ever happens to get multithreaded... + void sig_thumbInfo( const QString&, const QString& ); + void sig_fullInfo( const QString&, const QString& ); + void sig_thumbNail( const QString&, const QPixmap& ); + +protected: + ~PDirLister(); +}; + +#endif -- cgit v0.9.0.2