From 12c1feb0c5ac8d402ee03dc9da39f826ae04ce0b Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Wed, 16 Apr 2008 20:03:05 +0000 Subject: * provide context menu for tabs * assure that the tab name is set to "/" for the root URL instead of using an empty string svn path=/trunk/KDE/kdebase/apps/; revision=797725 --- src/dolphinmainwindow.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/dolphinmainwindow.h') diff --git a/src/dolphinmainwindow.h b/src/dolphinmainwindow.h index 3ac766d77..2f0fb9589 100644 --- a/src/dolphinmainwindow.h +++ b/src/dolphinmainwindow.h @@ -331,11 +331,20 @@ private slots: */ void setActiveTab(int index); + /** Closes the currently active tab. */ + void closeTab(); + /** * Closes the tab with the index \index and activates the tab with index - 1. */ void closeTab(int index); + /** + * Opens a context menu for the tab with the index \a index + * on the position \a pos. + */ + void openTabContextMenu(int index, const QPoint& pos); + private: DolphinMainWindow(int id); void init(); @@ -370,6 +379,9 @@ private: */ void updateSplitAction(); + /** Returns the name of the tab for the URL \a url. */ + QString tabName(const KUrl& url) const; + private: /** * Implements a custom error handling for the undo manager. This -- cgit v1.3