From c33b01efb2aed904af9ffaef27fb3b0b4bdda37b Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Sat, 29 Mar 2008 14:54:56 +0000 Subject: Move the pasteIntoFolder() method from the contextmenu into DolphinView. This allows to show the information inside the statusbar, that the paste operation has been completed (also some code duplication can be prevented by the way). svn path=/trunk/KDE/kdebase/apps/; revision=791436 --- src/dolphinview.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/dolphinview.h') diff --git a/src/dolphinview.h b/src/dolphinview.h index 4f2964761..c058338a8 100644 --- a/src/dolphinview.h +++ b/src/dolphinview.h @@ -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, -- cgit v1.3