]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/dolphinviewcontainer.h
GIT_SILENT Sync po/docbooks with svn
[dolphin.git] / src / dolphinviewcontainer.h
index f9c62296e99148ba27b7dae86ead53192616ac5f..90df69c8e8b27d40b17e1dcd10f3132ffc342ada 100644 (file)
 #include <QPushButton>
 #include <QWidget>
 
-#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. */
@@ -326,12 +324,22 @@ private Q_SLOTS:
      */
     void slotItemsActivated(const KFileItemList &items);
 
+    /**
+     * Handles middle click of file. It opens the file passed using the second application associated with the file's mimetype.
+     */
+    void slotfileMiddleClickActivated(const KFileItem &item);
+
     /**
      * Shows the information for the item \a item inside the statusbar. If the
      * item is null, the default statusbar information is shown.
      */
     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();
 
     /**
@@ -377,6 +385,7 @@ private Q_SLOTS:
      * Gets the search URL from the searchbox and starts searching.
      */
     void startSearching();
+    void openSearchBox();
     void closeSearchBox();
 
     /**
@@ -447,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.
@@ -468,11 +480,6 @@ private:
      * connected to this ViewContainer.
      */
     std::unique_ptr<DolphinUrlNavigator::VisualState> m_urlNavigatorVisualState;
-
-#if HAVE_KACTIVITIES
-private:
-    KActivities::ResourceInstance *m_activityResourceInstance;
-#endif
 };
 
 #endif // DOLPHINVIEWCONTAINER_H