X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/blobdiff_plain/c4bb3db0229bef8adee1daa183892cebba5efe72..e990cbbe3fb00d4e4be42d4bbff8db74e11a2b2b:/src/dolphinviewcontainer.h diff --git a/src/dolphinviewcontainer.h b/src/dolphinviewcontainer.h index 52fd688f6..90df69c8e 100644 --- a/src/dolphinviewcontainer.h +++ b/src/dolphinviewcontainer.h @@ -20,13 +20,10 @@ #include #include -#if HAVE_KACTIVITIES -namespace KActivities +namespace Admin { -class ResourceInstance; +class Bar; } -#endif - class FilterBar; class KMessageWidget; class QAction; @@ -164,7 +161,8 @@ public: */ void readSettings(); - /** Returns true, if the filter bar is visible. */ + /** @returns true, if the filter bar is visible. + * false, if it is hidden or currently animating towards a hidden state. */ bool isFilterBarVisible() const; /** Returns true if the search mode is enabled. */ @@ -337,6 +335,11 @@ private Q_SLOTS: */ void showItemInfo(const KFileItem &item); + /** + * Sets the Admin::Bar visible or invisible based on whether \a url is an admin url. + */ + void updateAdminBarVisibility(const QUrl &url); + void closeFilterBar(); /** @@ -453,6 +456,9 @@ private: DolphinSearchBox *m_searchBox; bool m_searchModeEnabled; + /// A bar shown at the top of the view to signify that the view is currently viewed and acted on with elevated privileges. + Admin::Bar *m_adminBar; + KMessageWidget *m_messageWidget; /// A bar shown at the top of the view to signify that selection mode is currently active. @@ -474,11 +480,6 @@ private: * connected to this ViewContainer. */ std::unique_ptr m_urlNavigatorVisualState; - -#if HAVE_KACTIVITIES -private: - KActivities::ResourceInstance *m_activityResourceInstance; -#endif }; #endif // DOLPHINVIEWCONTAINER_H