diff options
| author | Peter Penz <[email protected]> | 2008-03-29 14:54:56 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2008-03-29 14:54:56 +0000 |
| commit | c33b01efb2aed904af9ffaef27fb3b0b4bdda37b (patch) | |
| tree | 8de624beb23caaf5296e4bf3428d8e92174fc689 /src/dolphinview.h | |
| parent | 6816615900b3175ceccaa1b85f318d4a8f5f1230 (diff) | |
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
Diffstat (limited to 'src/dolphinview.h')
| -rw-r--r-- | src/dolphinview.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/dolphinview.h b/src/dolphinview.h index 4f2964761..c058338a8 100644 --- a/src/dolphinview.h +++ b/src/dolphinview.h @@ -359,6 +359,13 @@ public slots: 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. * If the view properties should be remembered for each directory @@ -612,6 +619,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, * this method has been introduced for convenience. |
