From a0cf8456fe171bd221025b3ff3677db4675390b5 Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Thu, 1 Mar 2007 19:36:37 +0000 Subject: Allow zooming in and zooming out in the icons view. svn path=/trunk/KDE/kdebase/apps/; revision=638386 --- src/dolphincontroller.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'src/dolphincontroller.h') diff --git a/src/dolphincontroller.h b/src/dolphincontroller.h index 08d12ea57..1bd283fd4 100644 --- a/src/dolphincontroller.h +++ b/src/dolphincontroller.h @@ -70,6 +70,14 @@ public: void setShowPreview(bool showPreview); bool showPreview() const { return m_showPreview; } + void triggerZoomIn(); + void setZoomInPossible(bool possible) { m_zoomInPossible = possible; } + bool isZoomInPossible() const { return m_zoomInPossible; } + + void triggerZoomOut(); + void setZoomOutPossible(bool possible) { m_zoomOutPossible = possible; } + bool isZoomOutPossible() const { return m_zoomOutPossible; } + public slots: void triggerItem(const QModelIndex& index); void indicateSelectionChange(); @@ -121,8 +129,16 @@ signals: /** Is emitted if the selection has been changed by the user. */ void selectionChanged(); + /** Is emitted if the view should zoom in. */ + void zoomIn(); + + /** Is emitted if the view should zoom out. */ + void zoomOut(); + private: bool m_showPreview; + bool m_zoomInPossible; + bool m_zoomOutPossible; KUrl m_url; }; -- cgit v1.3