From e61f3d63c310e4e560bc38f41c1390f246b5f670 Mon Sep 17 00:00:00 2001 From: alwin Date: Tue, 13 Apr 2004 21:44:12 +0000 Subject: zoomer widget better integrated, size of it depends on the size of the displayed image, may switched off by user and so on. --- (limited to 'noncore/graphics/opie-eye/gui/imagescrollview.h') diff --git a/noncore/graphics/opie-eye/gui/imagescrollview.h b/noncore/graphics/opie-eye/gui/imagescrollview.h index 1b25103..e209dfb 100644 --- a/noncore/graphics/opie-eye/gui/imagescrollview.h +++ b/noncore/graphics/opie-eye/gui/imagescrollview.h @@ -28,6 +28,7 @@ public: virtual void setAutoRotate(bool); virtual void setAutoScale(bool); + virtual void setShowZoomer(bool); enum Rotation { Rotate0, @@ -54,6 +55,7 @@ protected: bool scale_to_fit; bool rotate_to_fit; + bool show_zoomer; bool first_resize_done; Rotation last_rot; QString m_lastName; @@ -61,6 +63,8 @@ protected: virtual void rotate_into_data(Rotation r); virtual void generateImage(); + bool image_fit_into(const QSize&s); + void check_zoomer(); protected slots: virtual void viewportMouseMoveEvent(QMouseEvent* e); -- cgit v0.9.0.2