]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/dolphinpart.h
Fix style-issues in items when not using Oxygen
[dolphin.git] / src / dolphinpart.h
index dd5fe1e371cf4850af5fd73be09c577257da60a7..92ee71d2cd8ea9074d395a4b3ef0ae3f161b6cc0 100644 (file)
@@ -22,6 +22,7 @@
 
 #include <kparts/part.h>
 #include <kparts/browserextension.h>
+#include <kparts/fileinfoextension.h>
 
 #include <QItemSelectionModel>
 
@@ -117,7 +118,6 @@ Q_SIGNALS:
 
 private Q_SLOTS:
     void slotCompleted(const KUrl& url);
-    void slotCanceled(const KUrl& url);
     void slotMessage(const QString& msg);
     void slotErrorMessage(const QString& msg);
     /**
@@ -128,20 +128,22 @@ private Q_SLOTS:
     /**
      * Handles clicking on an item
      */
-    void slotItemTriggered(const KFileItem& item);
+    void slotItemActivated(const KFileItem& item);
     /**
      * Creates a new window showing the content of \a url.
      */
     void createNewWindow(const KUrl& url);
     /**
      * Opens the context menu on the current mouse position.
+     * @pos           Position in screen coordinates.
      * @item          File item context. If item is null, the context menu
      *                should be applied to \a url.
      * @url           URL which contains \a item.
      * @customActions Actions that should be added to the context menu,
      *                if the file item is null.
      */
-    void slotOpenContextMenu(const KFileItem& item,
+    void slotOpenContextMenu(const QPoint& pos,
+                             const KFileItem& item,
                              const KUrl& url,
                              const QList<QAction*>& customActions);
 
@@ -192,6 +194,11 @@ private Q_SLOTS:
      */
     void slotOpenTerminal();
 
+    /**
+     * Open KFind with the current path.
+     */
+    void slotFindFile();
+
     /**
      * Updates the 'Create New...' sub menu, just before it's shown.
      */
@@ -224,17 +231,12 @@ private:
                         QActionGroup* actionGroup);
 
     void openSelectionDialog(const QString& title, const QString& text,
-                             QItemSelectionModel::SelectionFlags command);
-
-    QItemSelection childrenMatchingPattern(const QModelIndex& parent, const QRegExp& patternRegExp);
+                             bool selectItems);
 
 private:
     DolphinView* m_view;
     DolphinViewActionHandler* m_actionHandler;
     DolphinRemoteEncoding* m_remoteEncoding;
-    KDirLister* m_dirLister;
-    DolphinModel* m_dolphinModel;
-    DolphinSortFilterProxyModel* m_proxyModel;
     DolphinPartBrowserExtension* m_extension;
     KNewFileMenu* m_newFileMenu;
     QString m_nameFilter;
@@ -262,4 +264,20 @@ private:
     DolphinPart* m_part;
 };
 
+
+class DolphinPartFileInfoExtension : public KParts::FileInfoExtension
+{
+    Q_OBJECT
+
+public:
+    DolphinPartFileInfoExtension(DolphinPart* part);
+
+    virtual QueryModes supportedQueryModes() const;
+    virtual bool hasSelection() const;
+
+    virtual KFileItemList queryFor(QueryMode mode) const;
+protected:
+    DolphinPart* part() const;
+};
+
 #endif /* DOLPHINPART_H */