]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/infosidebarpage.h
KDEDesktopMimeType -> KDesktopFileActions
[dolphin.git] / src / infosidebarpage.h
index 7cb996327fe74bec90455a82e66c3defebed1d51..cd233b6ef29915906c2ab8be59b5bcae1405db42 100644 (file)
@@ -30,7 +30,7 @@
 
 #include <kurl.h>
 #include <kmimetype.h>
-#include <kdedesktopmimetype.h>
+#include <kdesktopfileactions.h>
 #include <kvbox.h>
 
 namespace KIO {
@@ -44,7 +44,6 @@ class QPainter;
 class KFileItem;
 class QLabel;
 class KVBox;
-class Q3Grid;
 class PixmapViewer;
 class MetaDataWidget;
 
@@ -58,12 +57,12 @@ class InfoSidebarPage : public SidebarPage
        Q_OBJECT
 
 public:
-    explicit InfoSidebarPage(DolphinMainWindow* mainWindow, QWidget* parent = 0);
+    explicit InfoSidebarPage(QWidget* parent = 0);
     virtual ~InfoSidebarPage();
 
-protected:
-    /** @see SidebarPage::activeViewChanged() */
-    virtual void activeViewChanged();
+public slots:
+    void setUrl(const KUrl& url);
+    void setSelection(const KFileItemList& selection);
 
 private slots:
     /**
@@ -74,14 +73,6 @@ private slots:
      */
     void requestDelayedItemInfo(const KUrl& url);
 
-    /**
-     * Does a request of information for the item of the given Url and
-     * provides default actions.
-     *
-     * @see InfoSidebarPage::showItemInfo()
-     */
-    void requestItemInfo(const KUrl& url);
-
     /**
      * Shows the information for the item of the Url which has been provided by
      * InfoSidebarPage::requestItemInfo() and provides default actions.
@@ -113,12 +104,6 @@ private slots:
     void startService(int index);
 
 private:
-    /**
-     * Connects to signals from the currently active Dolphin view to get
-     * informed about highlighting changes.
-     */
-    void connectToActiveView();
-
     /**
      * Checks whether the an Url is repesented by a bookmark. If yes,
      * then the bookmark icon and name are shown instead of a preview.
@@ -154,6 +139,7 @@ private:
     QTimer* m_timer;
     KUrl m_shownUrl;
     KUrl m_urlCandidate;
+       KFileItemList m_currentSelection;
 
     PixmapViewer* m_preview;
     QLabel* m_name;
@@ -162,7 +148,7 @@ private:
     QLabel* m_infos;
 
     KVBox* m_actionBox;
-    QVector<KDEDesktopMimeType::Service> m_actionsVector;
+    QVector<KDesktopFileActions::Service> m_actionsVector;
 
     MetaDataWidget* m_metadataWidget;
 };