diff options
| author | Peter Penz <[email protected]> | 2010-01-25 07:58:24 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2010-01-25 07:58:24 +0000 |
| commit | e5eae108ca4511be9dae5f8bb4a4e1fbb0d89c7a (patch) | |
| tree | 5bdda6c86079466368486a5e89a5f7105d114461 /src/dolphinmainwindow.h | |
| parent | 0ad9abf7b1621a834d272c55d3989e53b6abf30e (diff) | |
* 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
Diffstat (limited to 'src/dolphinmainwindow.h')
| -rw-r--r-- | src/dolphinmainwindow.h | 33 |
1 files changed, 25 insertions, 8 deletions
diff --git a/src/dolphinmainwindow.h b/src/dolphinmainwindow.h index a70aa4c23..bdc80b359 100644 --- a/src/dolphinmainwindow.h +++ b/src/dolphinmainwindow.h @@ -379,7 +379,6 @@ private slots: */ void closeTab(int index); - /** * Opens a context menu for the tab with the index \a index * on the position \a pos. @@ -387,6 +386,13 @@ private slots: 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 * view is replaced by \a url. @@ -406,13 +412,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<QAction*>& customActions); + private: DolphinMainWindow(int id); void init(); |
