diff options
| author | Peter Penz <[email protected]> | 2009-05-08 16:44:51 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2009-05-08 16:44:51 +0000 |
| commit | 5f548d210e735b713d847525cb3e62140f9e6f4d (patch) | |
| tree | 8ef16d2f3ea4e1fff579f8f584234701d239a9ce /src/dolphinview.h | |
| parent | ffb232fdee7fdc40785c02811610a5fb13b64ff0 (diff) | |
Select copied/moved items automatically if no item is already selected. This gives the user an indication where his pasted items are located and allows invoking operations like "Rename" in an easy way.
BUG: 191723
svn path=/trunk/KDE/kdebase/apps/; revision=965344
Diffstat (limited to 'src/dolphinview.h')
| -rw-r--r-- | src/dolphinview.h | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/src/dolphinview.h b/src/dolphinview.h index 7014aeb02..cb48caf56 100644 --- a/src/dolphinview.h +++ b/src/dolphinview.h @@ -38,6 +38,8 @@ #include <QListView> #include <QWidget> +typedef KIO::FileUndoManager::CommandType CommandType; + class DolphinController; class DolphinColumnView; class DolphinDetailsView; @@ -643,10 +645,10 @@ private slots: void slotRequestUrlChange(const KUrl& url); /** - * Restores the current item (= item that has the keyboard focus) - * to m_currentItemUrl. + * Invoked when the directory lister has completed the loading of + * items. Assures that pasted items and renamed items get seleced. */ - void restoreCurrentItem(); + void slotDirListerCompleted(); /** * Is invoked when the KDirLister indicates refreshed items. @@ -680,6 +682,12 @@ private slots: */ void restoreSelection(); + /** + * Invoked when the undo manager indicates a finished operation. + * If a copy/move-operation has been done, the pasted items get selected. + */ + void slotJobRecordingFinished(CommandType command); + private: void loadDirectory(const KUrl& url, bool reload = false); @@ -754,6 +762,7 @@ private: bool m_isContextMenuOpen : 1; // TODO: workaround for Qt-issue 207192 bool m_ignoreViewProperties : 1; bool m_assureVisibleCurrentIndex : 1; + bool m_selectClipboardItems : 1; Mode m_mode; |
