X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/blobdiff_plain/d89548a828dd7d2e08acd85c329ccc2adf67bced..b1c9b5126d:/src/dolphinstatusbar.h diff --git a/src/dolphinstatusbar.h b/src/dolphinstatusbar.h index e64312b48..e28c1c4f4 100644 --- a/src/dolphinstatusbar.h +++ b/src/dolphinstatusbar.h @@ -29,6 +29,7 @@ class StatusBarMessageLabel; class StatusBarSpaceInfo; class QLabel; class QProgressBar; +class QToolButton; class QSlider; class QTimer; @@ -115,7 +116,7 @@ public: */ void setDefaultText(const QString& text); const QString& defaultText() const; - + /** * Refreshes the status bar to get synchronized with the (updated) Dolphin settings. */ @@ -134,7 +135,7 @@ private slots: * content is updated. */ void updateSpaceInfoContent(const KUrl& url); - + /** * Sets the zoom level of the item view to \a zoomLevel. */ @@ -146,7 +147,11 @@ private slots: * enough width is available. */ void assureVisibleText(); - + + void zoomOut(); + void zoomIn(); + void showZoomSliderToolTip(int zoomLevel); + private: /** * Makes the space information widget and zoom slider widget @@ -156,11 +161,21 @@ private: */ void setExtensionsVisible(bool visible); + /** + * Updates the text of the zoom slider tooltip to show + * the currently used size. + */ + void updateZoomSliderToolTip(int zoomLevel); + private: DolphinView* m_view; StatusBarMessageLabel* m_messageLabel; StatusBarSpaceInfo* m_spaceInfo; + + QWidget* m_zoomWidget; + QToolButton* m_zoomOut; QSlider* m_zoomSlider; + QToolButton* m_zoomIn; QLabel* m_progressText; QProgressBar* m_progressBar;