#include "dolphintabwidget.h"
#include <config-baloo.h>
+#include <KFileItemActions>
#include <kio/fileundomanager.h>
-#include <KSortableList>
#include <kxmlguiwindow.h>
#ifdef HAVE_BALOO
*/
KNewFileMenu* newFileMenu() const;
+ /**
+ * Augments Qt's build-in QMainWindow context menu to add
+ * Dolphin-specific actions, such as "unlock panels".
+ */
+ QMenu *createPopupMenu() override;
+
/**
* Switch the window's view containers' locations to display the home path
* for any which are currently displaying a location corresponding to or
*/
void setViewsToHomeIfMountPathOpen(const QString& mountPath);
- /**
- * Sets any of the window's view containers which are currently displaying
- * invalid locations to the home path
- */
- void setViewsWithInvalidPathsToHome();
-
bool isFoldersPanelEnabled() const;
bool isInformationPanelEnabled() const;
*/
void openNewTab(const QUrl& url);
+ /**
+ * Opens a new tab showing the URL \a url and activate it.
+ */
+ void openNewTabAndActivate(const QUrl &url);
+
+ /**
+ * Opens a new window showing the URL \a url.
+ */
+ void openNewWindow(const QUrl &url);
+
+ /** @see GeneralSettings::splitViewChanged() */
+ void slotSplitViewChanged();
+
Q_SIGNALS:
/**
* Is sent if the selection of the currently active view has
* to go to.
*/
void slotGoForward(QAction* action);
+
+ /**
+ * Is called when configuring the keyboard shortcuts
+ */
+ void slotKeyBindings();
+
private:
/**
* Sets up the various menus and actions and connects them.
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;
+ KFileItemActions m_fileItemActions;
+
};
inline DolphinViewContainer* DolphinMainWindow::activeViewContainer() const