]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/dolphincontextmenu.h
Consider the protocol and directory capabilities for file actions like Move To/Copy...
[dolphin.git] / src / dolphincontextmenu.h
index 05d565feee4f4985e44fa102681c0ede5b93b1e9..8b623114c6e1231f1b3562451525679b5bd67464 100644 (file)
@@ -24,6 +24,7 @@
 #include <kfileitem.h>
 #include <kservice.h>
 #include <kurl.h>
+#include <konq_copytomenu.h>
 
 #include <QtCore/QObject>
 
@@ -33,6 +34,7 @@ class KMenu;
 class KFileItem;
 class QAction;
 class DolphinMainWindow;
+class FileItemCapabilities;
 
 /**
  * @brief Represents the context menu which appears when doing a right
@@ -97,6 +99,22 @@ private:
     bool containsEntry(const KMenu* menu,
                        const QString& entryName) const;
 
+    /**
+     * Adds the "Show menubar" action to the menu if the
+     * menubar is hidden.
+     */
+    void addShowMenubarAction(KMenu* menu);
+
+    /**
+     * Returns a name for adding the URL \a url to the Places panel.
+     */
+    QString placesName(const KUrl& url) const;
+
+    QAction* createPasteAction();
+
+private:
+    FileItemCapabilities& capabilities();
+
 private:
     struct Entry
     {
@@ -116,11 +134,13 @@ private:
     };
 
     DolphinMainWindow* m_mainWindow;
+    FileItemCapabilities* m_capabilities;
     KFileItem m_fileInfo;
     KUrl m_baseUrl;
     KFileItemList m_selectedItems;
     KUrl::List m_selectedUrls;
     int m_context;
+    KonqCopyToMenu m_copyToMenu;
 };
 
 #endif