┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphinview.h
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2009-03-17 20:47:03 +0000
committerPeter Penz <[email protected]>2009-03-17 20:47:03 +0000
commitb8c2f5377772c618b2b032bcd67cd32045c97fc9 (patch)
treea40e28a867bd741587c8afa785a17da3a245b9fc /src/dolphinview.h
parentb7b31ce1946ad36b7f5d86838d878aa12b0dfb11 (diff)
After creating an item with the "Create New..." menu, the new item should get selected and it must be assured that the item stays visible. Thanks a lot to Rahman Duran for the original patch and the good discussions :-)
Open issues: - F10 shortcut does not work yet (interface extension might be done in KNewMenu) - Does not work in column view yet, but this is a colum view specific issue. CCMAIL: [email protected] CCMAIL: [email protected] svn path=/trunk/KDE/kdebase/apps/; revision=940624
Diffstat (limited to 'src/dolphinview.h')
-rw-r--r--src/dolphinview.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/dolphinview.h b/src/dolphinview.h
index 1498de08a..c18785151 100644
--- a/src/dolphinview.h
+++ b/src/dolphinview.h
@@ -642,6 +642,21 @@ private slots:
*/
void deleteWhenNotDragSource(QAbstractItemView* view);
+ /**
+ * Observes the item with the URL \a url. As soon as the directory
+ * model indicates that the item is available, the item will
+ * get selected and it is assure that the item stays visible.
+ *
+ * @see selectAndScrollToCreatedItem()
+ */
+ void observeCreatedItem(const KUrl& url);
+
+ /**
+ * Selects and scrolls to the item that got observed
+ * by observeCreatedItem().
+ */
+ void selectAndScrollToCreatedItem();
+
private:
void loadDirectory(const KUrl& url, bool reload = false);
@@ -744,6 +759,7 @@ private:
KUrl m_rootUrl;
KUrl m_currentItemUrl;
+ KUrl m_createdItemUrl; // URL for a new item that got created by the "Create New..." menu
QAbstractItemView* m_expandedDragSource;
};