X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/blobdiff_plain/830dd0148a26d91ba7f3e0316da1e021fe2b83e4..ffce84e759714e94de01a546009b4b41c64cdf28:/src/dolphinmainwindow.h diff --git a/src/dolphinmainwindow.h b/src/dolphinmainwindow.h index 62f8ceb6e..5f2ed20ca 100644 --- a/src/dolphinmainwindow.h +++ b/src/dolphinmainwindow.h @@ -10,6 +10,7 @@ #define DOLPHIN_MAINWINDOW_H #include "config-dolphin.h" +#include "disabledactionnotifier.h" #include "dolphintabwidget.h" #include "selectionmode/bottombar.h" #include @@ -41,14 +42,19 @@ class KFileItem; class KFileItemList; class KJob; class KNewFileMenu; +class KRecentFilesAction; class KToolBarPopupAction; class QToolButton; class PlacesPanel; class TerminalPanel; +/** Used to identify that a custom command should be triggered on a view background double-click.*/ +constexpr QLatin1String customCommand{"CUSTOM_COMMAND"}; + namespace KIO { class OpenUrlJob; +class CommandLauncherJob; } namespace SelectionMode { @@ -130,6 +136,11 @@ public: bool isInformationPanelEnabled() const; bool isSplitViewEnabledInCurrentTab() const; + /** + * Activates a user set action when double clicking the view's background. + */ + void slotDoubleClickViewBackground(Qt::MouseButton button); + public Q_SLOTS: /** * Opens each directory in \p dirs in a separate tab. If \a splitView is set, @@ -727,6 +738,7 @@ private: QPointer m_settingsDialog; DolphinBookmarkHandler *m_bookmarkHandler; SelectionMode::ActionTextHelper *m_actionTextHelper; + DisabledActionNotifier *m_disabledActionNotifier; KIO::OpenUrlJob *m_lastHandleUrlOpenJob; @@ -746,6 +758,10 @@ private: QFutureWatcher *m_sessionSaveWatcher; bool m_sessionSaveScheduled; + KIO::CommandLauncherJob *m_job; + + KRecentFilesAction *m_recentFiles = nullptr; + friend class DolphinMainWindowTest; };