]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/infosidebarpage.h
KDEDesktopMimeType -> KDesktopFileActions
[dolphin.git] / src / infosidebarpage.h
index 6664f56fce9a94ade64fc87e824cc2e53afafa68..cd233b6ef29915906c2ab8be59b5bcae1405db42 100644 (file)
 
 #include <sidebarpage.h>
 
-#include <q3valuevector.h>
 #include <qpushbutton.h>
-//Added by qt3to4:
 #include <QPixmap>
 #include <QEvent>
 #include <QLabel>
-#include <Q3PtrList>
+#include <QList>
 
 #include <kurl.h>
 #include <kmimetype.h>
-#include <kdedesktopmimetype.h>
+#include <kdesktopfileactions.h>
 #include <kvbox.h>
 
 namespace KIO {
@@ -46,7 +44,6 @@ class QPainter;
 class KFileItem;
 class QLabel;
 class KVBox;
-class Q3Grid;
 class PixmapViewer;
 class MetaDataWidget;
 
@@ -60,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:
     /**
@@ -76,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.
@@ -115,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.
@@ -156,6 +139,7 @@ private:
     QTimer* m_timer;
     KUrl m_shownUrl;
     KUrl m_urlCandidate;
+       KFileItemList m_currentSelection;
 
     PixmapViewer* m_preview;
     QLabel* m_name;
@@ -164,8 +148,7 @@ private:
     QLabel* m_infos;
 
     KVBox* m_actionBox;
-    Q3PtrList<QWidget> m_actionWidgets;    // TODO: use children() from QObject instead
-    Q3ValueVector<KDEDesktopMimeType::Service> m_actionsVector;
+    QVector<KDesktopFileActions::Service> m_actionsVector;
 
     MetaDataWidget* m_metadataWidget;
 };