* having a split view setup, the nonactive view
* is usually shown in darker colors.
*/
- DolphinViewContainer *activeViewContainer() const;
+ DolphinViewContainer* activeViewContainer() const;
/**
- * Returns the active view containers of all tabs.
- * @see activeViewContainer()
- * Use viewContainers() to also include the inactive ones.
+ * Returns view container for all tabs
*/
- QVector<DolphinViewContainer *> activeViewContainers() const;
-
- /**
- * Returns all view containers.
- */
- QVector<DolphinViewContainer *> viewContainers() const;
+ QVector<DolphinViewContainer*> viewContainers() const;
/**
* Opens each directory in \p dirs in a separate tab. If \a splitView is set,
void quit();
/**
- * Opens a new tab and places it after the current tab
- */
- void openNewTabAfterCurrentTab(const QUrl& url);
-
- /**
- * Opens a new tab and places it as the last tab
+ * Opens a new tab in the background showing the URL \a url.
*/
- void openNewTabAfterLastTab(const QUrl& url);
+ void openNewTab(const QUrl& url);
signals:
/**
/** Handles QWhatsThisClickedEvent and passes all others on. */
bool eventFilter(QObject*, QEvent*) override;
+protected slots:
+ /**
+ * Calls the base method KXmlGuiWindow::saveNewToolbarConfig().
+ * Is also used to set toolbar constraints and UrlNavigator position
+ * based on the newly changed toolbar configuration.
+ */
+ void saveNewToolbarConfig() override;
+
private slots:
/**
* Refreshes the views of the main window by recreating them according to
void disableStopAction();
void showFilterBar();
-
- /**
- * Toggle between either using an UrlNavigator in the toolbar or the
- * ones in the location bar for navigating.
- */
- void toggleLocationInToolbar();
+ void toggleFilterBar();
/**
* Toggles between edit and browse mode of the navigation bar.
*/
void addToPlaces();
- /**
- * Opens a new tab in the background showing the URL \a url.
- */
- void openNewTab(const QUrl& url, DolphinTabWidget::TabPlacement tabPlacement);
-
/**
* Opens the selected folder in a new tab.
*/
*/
void updateSplitAction();
+ /**
+ * Sets the window sides the toolbar may be moved to based on toolbar contents.
+ */
+ void updateAllowedToolbarAreas();
+
bool isKompareInstalled() const;
/**
KToolBarPopupAction* m_backAction;
KToolBarPopupAction* m_forwardAction;
+ /** Makes sure that only one object is ever connected to the history. */
+ QMetaObject::Connection m_updateHistoryConnection;
+
QMenu m_searchTools;
};