]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/dolphinstatusbar.h
* Use Nepomuk for getting the meta data instead of KFileMetaInfo.
[dolphin.git] / src / dolphinstatusbar.h
index 3cee1ed535f7c9bdfe5f6942810cf1a73898ee7d..e28c1c4f46121900c2df61fddd84f42bd03a8b52 100644 (file)
@@ -29,6 +29,7 @@ class StatusBarMessageLabel;
 class StatusBarSpaceInfo;
 class QLabel;
 class QProgressBar;
+class QToolButton;
 class QSlider;
 class QTimer;
 
@@ -116,6 +117,11 @@ public:
     void setDefaultText(const QString& text);
     const QString& defaultText() const;
 
+    /**
+     * Refreshes the status bar to get synchronized with the (updated) Dolphin settings.
+     */
+    void refresh();
+
 protected:
     /** @see QWidget::resizeEvent() */
     virtual void resizeEvent(QResizeEvent* event);
@@ -129,7 +135,7 @@ private slots:
      * content is updated.
      */
     void updateSpaceInfoContent(const KUrl& url);
-    
+
     /**
      * Sets the zoom level of the item view to \a zoomLevel.
      */
@@ -141,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
@@ -151,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;