summaryrefslogtreecommitdiff
path: root/noncore/graphics/opie-eye/gui/imagescrollview.h
authoralwin <alwin>2004-04-14 19:00:02 (UTC)
committer alwin <alwin>2004-04-14 19:00:02 (UTC)
commit26e89198404dba70a3bea2b337f6677e6b177bb2 (patch) (side-by-side diff)
treec55849b61ff27c121fc3cc8e6954d1179323af38 /noncore/graphics/opie-eye/gui/imagescrollview.h
parentb3156cadba8f4a397ac7d65947cdb7a33b5c3b72 (diff)
downloadopie-26e89198404dba70a3bea2b337f6677e6b177bb2.zip
opie-26e89198404dba70a3bea2b337f6677e6b177bb2.tar.gz
opie-26e89198404dba70a3bea2b337f6677e6b177bb2.tar.bz2
mostly all basics done
Diffstat (limited to 'noncore/graphics/opie-eye/gui/imagescrollview.h') (more/less context) (show whitespace changes)
-rw-r--r--noncore/graphics/opie-eye/gui/imagescrollview.h65
1 files changed, 41 insertions, 24 deletions
diff --git a/noncore/graphics/opie-eye/gui/imagescrollview.h b/noncore/graphics/opie-eye/gui/imagescrollview.h
index f6e187d..3d2ea38 100644
--- a/noncore/graphics/opie-eye/gui/imagescrollview.h
+++ b/noncore/graphics/opie-eye/gui/imagescrollview.h
@@ -3,4 +3,2 @@
-#include <lib/oimagezoomer.h>
-
#include <qscrollview.h>
@@ -10,3 +8,3 @@
#include <qdialog.h>
-
+#include <qbitarray.h>
@@ -15,3 +13,7 @@ class QPainter;
-class ImageScrollView:public QScrollView
+namespace Opie { namespace MM {
+
+ class OImageZoomer;
+
+class OImageScrollView:public QScrollView
{
@@ -19,9 +21,15 @@ class ImageScrollView:public QScrollView
public:
- ImageScrollView( QWidget* parent, const char* name = 0, WFlags fl = 0 );
- ImageScrollView (const QImage&, QWidget * parent=0, const char * name=0, WFlags f=0,bool always_scale=false,bool rfit=false );
- ImageScrollView (const QString&, QWidget * parent=0, const char * name=0, WFlags f=0,bool always_scale=false,bool rfit=false );
- virtual ~ImageScrollView();
+ enum Rotation {
+ Rotate0,
+ Rotate90,
+ Rotate180,
+ Rotate270
+ };
+
+ OImageScrollView( QWidget* parent, const char* name = 0, WFlags fl = 0 );
+ OImageScrollView (const QImage&, QWidget * parent=0, const char * name=0, WFlags f=0,bool always_scale=false,bool rfit=false );
+ OImageScrollView (const QString&, QWidget * parent=0, const char * name=0, WFlags f=0,bool always_scale=false,bool rfit=false );
+ virtual ~OImageScrollView();
+
- virtual void setImage(const QImage&);
- virtual void setImage( const QString& path );
virtual void setDestructiveClose();
@@ -32,11 +40,12 @@ public:
- enum Rotation {
- Rotate0,
- Rotate90,
- Rotate180,
- Rotate270
- };
+ virtual bool AutoRotate()const;
+ virtual bool AutoScale()const;
+ virtual bool ShowZoomer()const;
+
+public slots:
+ virtual void setImage(const QImage&);
+ virtual void setImage( const QString& path );
+
signals:
- void sig_return();
void imageSizeChanged( const QSize& );
@@ -55,9 +64,5 @@ protected:
- bool scale_to_fit;
- bool rotate_to_fit;
- bool show_zoomer;
- bool first_resize_done;
- bool image_is_jpeg;
- bool image_scaled_loaded;
- Rotation last_rot;
+ QBitArray m_states;
+
+ Rotation m_last_rot;
QString m_lastName;
@@ -71,2 +76,10 @@ protected:
+ /* internal bitset manipulation */
+ virtual bool ImageIsJpeg()const;
+ virtual void setImageIsJpeg(bool how);
+ virtual bool ImageScaledLoaded()const;
+ virtual void setImageScaledLoaded(bool how);
+ virtual bool FirstResizeDone()const;
+ virtual void setFirstResizeDone(bool how);
+
protected slots:
@@ -77,2 +90,6 @@ protected slots:
};
+
+}
+}
+
#endif