]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/dolphinviewcontainer.h
Remember and restore position of viewport when reloading or going back in history...
[dolphin.git] / src / dolphinviewcontainer.h
index 5652e4b4a6fc5d9ad6fe09b5c8e3eda14daef041..83ef159448c2865e9a869be0ab8a73a170f6e7de 100644 (file)
@@ -107,13 +107,6 @@ public:
 
     KFileItem* fileItem(const QModelIndex index) const;
 
-    /**
-     * Renames the filename of the source URL by the new file name.
-     * If the new file name already exists, a dialog is opened which
-     * asks the user to enter a new name.
-     */
-    void rename(const KUrl& source, const QString& newName);
-
     DolphinStatusBar* statusBar() const;
 
     /**
@@ -163,6 +156,12 @@ private slots:
      */
     void updateItemCount();
 
+    /**
+     * Shows the item information for the URL \a url inside the statusbar. If the
+     * URL is empty, the default statusbar information is shown.
+     */
+    void showItemInfo(const KUrl& url);
+
     /** Shows the information \a msg inside the statusbar. */
     void showInfoMessage(const QString& msg);
 
@@ -185,6 +184,18 @@ private slots:
      */
     void openContextMenu(KFileItem* item, const KUrl& url);
 
+    /**
+     * Saves the position of the contents to the
+     * current history element.
+     */
+    void saveContentsPos(int x, int y);
+
+    /**
+     * Restores the contents position of the view, if the view
+     * is part of the history.
+     */
+    void restoreContentsPos();
+
 private:
     /**
      * Returns the default text of the status bar, if no item is