┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphinview.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/dolphinview.h')
-rw-r--r--src/dolphinview.h24
1 files changed, 22 insertions, 2 deletions
diff --git a/src/dolphinview.h b/src/dolphinview.h
index ff72bbaa7..c20ea10d2 100644
--- a/src/dolphinview.h
+++ b/src/dolphinview.h
@@ -29,6 +29,7 @@
#include <kparts/part.h>
#include <kfileitem.h>
#include <kfileitemdelegate.h>
+#include <konq_fileundomanager.h>
#include <kio/job.h>
#include <QBoxLayout>
@@ -343,6 +344,13 @@ public:
*/
QString currentViewModeActionName() const;
+ /**
+ * Returns the state of the paste action:
+ * first is whether the action should be enabled
+ * second is the text for the action
+ */
+ QPair<bool, QString> pasteInfo() const;
+
public slots:
/**
* Changes the directory to \a url. If the current directory is equal to
@@ -364,6 +372,18 @@ public slots:
*/
void renameSelectedItems();
+ /**
+ * Copies all selected items to the clipboard and marks
+ * the items as cutted.
+ */
+ void cutSelectedItems();
+
+ /** Copies all selected items to the clipboard. */
+ void copySelectedItems();
+
+ /** Pastes the clipboard data to this view. */
+ void paste();
+
signals:
/**
* Is emitted if the view has been activated by e. g. a mouse click.
@@ -452,10 +472,10 @@ signals:
void startedPathLoading(const KUrl& url);
/**
- * Is emitted when renaming one or more items.
+ * Is emitted when renaming, copying, moving, linking etc.
* Used for feedback in the mainwindow.
*/
- void renaming();
+ void doingOperation(KonqFileUndoManager::CommandType type);
protected:
/** @see QWidget::mouseReleaseEvent */