From e5eae108ca4511be9dae5f8bb4a4e1fbb0d89c7a Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Mon, 25 Jan 2010 07:58:24 +0000 Subject: * Adjust code to use the improved KUrlNavigator API. * Open a new tab if the URL navigator requests it. * Get rid of a cyclic dependency between DolphinViewContainer and DolphinMainWindow. BUG: 181223 svn path=/trunk/KDE/kdebase/apps/; revision=1079843 --- src/dolphinmainwindow.h | 33 +++++++++++++++++++++++++-------- 1 file changed, 25 insertions(+), 8 deletions(-) (limited to 'src/dolphinmainwindow.h') diff --git a/src/dolphinmainwindow.h b/src/dolphinmainwindow.h index a70aa4c23..bdc80b359 100644 --- a/src/dolphinmainwindow.h +++ b/src/dolphinmainwindow.h @@ -379,13 +379,19 @@ private slots: */ 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); + /** + * Is connected to the QTabBar signal tabMoved(int from, int to). + * Reorders the list of tabs after a tab was moved in the tab bar + * and sets m_tabIndex to the new index of the current tab. + */ + void slotTabMoved(int from, int to); + /** * Handles a click on a places item: if the middle mouse button is * clicked, a new tab is opened for \a url, otherwise the current @@ -405,13 +411,6 @@ private slots: */ void searchItems(); - /** - * Is connected to the QTabBar signal tabMoved(int from, int to). - * Reorders the list of tabs after a tab was moved in the tab bar - * and sets m_tabIndex to the new index of the current tab. - */ - void slotTabMoved(int from, int to); - /** * Is connected to the searchbox signal 'requestSearchOptions' and * takes care to show the search options. @@ -430,6 +429,24 @@ private slots: */ void slotCaptionStatFinished(KJob* job); + /** + * Is invoked when the write state of a folder has been changed and + * enables/disables the "Create New..." menu entry. + */ + void slotWriteStateChanged(bool isFolderWritable); + + /** + * Opens the context menu on the current mouse position. + * @item File item context. If item is null, the context menu + * should be applied to \a url. + * @url URL which contains \a item. + * @customActions Actions that should be added to the context menu, + * if the file item is null. + */ + void openContextMenu(const KFileItem& item, + const KUrl& url, + const QList& customActions); + private: DolphinMainWindow(int id); void init(); -- cgit v1.3