]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/dolphinviewcontainer.h
Always automatically choose a new file name while duplicating
[dolphin.git] / src / dolphinviewcontainer.h
index 7d5e87c327604981212e16da7fb259f6c51725cf..89fd697607422ff6344f4c84ac9cf5cb0fd5bbd8 100644 (file)
 #include <QPushButton>
 #include <QWidget>
 
-#if HAVE_KACTIVITIES
-namespace KActivities
-{
-class ResourceInstance;
-}
-#endif
-
 class FilterBar;
 class KMessageWidget;
 class QAction;
@@ -66,6 +59,7 @@ public:
      * The URL navigator is synchronized with this URL.
      */
     QUrl url() const;
+    KFileItem rootItem() const;
 
     /**
      * If \a active is true, the view container will marked as active. The active
@@ -325,6 +319,11 @@ 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.
@@ -376,6 +375,7 @@ private Q_SLOTS:
      * Gets the search URL from the searchbox and starts searching.
      */
     void startSearching();
+    void openSearchBox();
     void closeSearchBox();
 
     /**
@@ -467,11 +467,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