]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/dolphinview.h
Move the pasteIntoFolder() method from the contextmenu into DolphinView. This allows...
[dolphin.git] / src / dolphinview.h
index 4f296476133d02c6bb49de884a4791723d681197..c058338a8c6c9cba699742226915281e3c0c1fd4 100644 (file)
@@ -358,6 +358,13 @@ public slots:
     /** Pastes the clipboard data to this view. */
     void paste();
 
+    /**
+     * Pastes the clipboard data into the currently selected
+     * folder. If the current selection is not exactly one folder, no
+     * paste operation is done.
+     */
+    void pasteIntoFolder();
+
     /**
      * Turns on the file preview for the all files of the current directory,
      * if \a show is true.
@@ -611,6 +618,12 @@ private:
      */
     bool isCutItem(const KFileItem& item) const;
 
+    /**
+     * Helper method for DolphinView::paste() and DolphinView::pasteIntoFolder().
+     * Pastes the clipboard data into the URL \a url.
+     */
+    void pasteToUrl(const KUrl& url);
+
     /**
      * Returns true, if the ColumnView is activated. As the column view
      * requires some special handling for iterating through directories,