X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/blobdiff_plain/4102ccb80457eea44ea280f0ace2a419602bc34b..134b45aedc420e18352cce82ebe2b0db68d3c42e:/src/dolphinviewcontainer.h diff --git a/src/dolphinviewcontainer.h b/src/dolphinviewcontainer.h index e827c0885..d2d322b08 100644 --- a/src/dolphinviewcontainer.h +++ b/src/dolphinviewcontainer.h @@ -184,6 +184,12 @@ public: */ void showMessage(const QString &message, KMessageWidget::MessageType messageType, std::initializer_list buttonActions = {}); + /** + * Forwards to DolphinStatusBar::showProgress(). Only exception: The button to cancel the task is hidden. + * @see DolphinStatusBar::showProgress(). + */ + void showProgress(const QString ¤tlyRunningTaskTitle, int progressPercent); + /** * Refreshes the view container to get synchronized with the (updated) Dolphin settings. */ @@ -454,6 +460,12 @@ private: */ QRect preferredSmallStatusBarGeometry(); + /** + * Check if a folder can be created at url. + * This method supports only local URLs. + */ + bool isTopMostParentFolderWritable(QUrl url); + protected: bool eventFilter(QObject *object, QEvent *event) override; @@ -481,6 +493,8 @@ private: Admin::Bar *m_adminBar; /// An action to switch to the admin protocol. This variable will always be nullptr unless kio-admin was installed. @see Admin::WorkerIntegration. QAction *m_authorizeToEnterFolderAction; + /// An action to create new folder in case user enters a nonexistent URL in the location bar. + QAction *m_createFolderAction; KMessageWidget *m_messageWidget;