┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphinmainwindow.h
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2007-01-25 19:37:19 +0000
committerPeter Penz <[email protected]>2007-01-25 19:37:19 +0000
commitfb0b2a777ba8064d4afc3e4e38a80d3505b49d0a (patch)
treed736b7b7378b32a14b7e79f2aac6afeeab46c438 /src/dolphinmainwindow.h
parent33fab30e5788ee9cda288f72a737a5369174415e (diff)
Use custom implementation of KonqUndoManager::UiInterface for Dolphin. This allows that error messages are shown inside the status bar of Dolphin (otherwise a modal error dialog containing an "OK" button would be opened).
svn path=/trunk/playground/utils/dolphin/; revision=627130
Diffstat (limited to 'src/dolphinmainwindow.h')
-rw-r--r--src/dolphinmainwindow.h26
1 files changed, 18 insertions, 8 deletions
diff --git a/src/dolphinmainwindow.h b/src/dolphinmainwindow.h
index 804192aa4..ac10a37b4 100644
--- a/src/dolphinmainwindow.h
+++ b/src/dolphinmainwindow.h
@@ -27,6 +27,7 @@
#include <kmainwindow.h>
#include <ksortablelist.h>
#include <konq_operations.h>
+#include <konq_undo.h>
#include <QList>
@@ -338,6 +339,7 @@ private:
void updateGoActions();
void copyUrls(const KUrl::List& source, const KUrl& dest);
void moveUrls(const KUrl::List& source, const KUrl& dest);
+ void linkUrls(const KUrl::List& source, const KUrl& dest);
void clearStatusBar();
/**
@@ -367,14 +369,22 @@ private:
/// remember pending undo operations until they are finished
QList<KonqOperations::Operation> m_undoOperations;
- /** Contains meta information for creating files. */
- struct CreateFileEntry
- {
- QString name;
- QString filePath;
- QString templatePath;
- QString icon;
- QString comment;
+ /**
+ * Implements a custom error handling for the undo manager. This
+ * assures that all errors are shown in the status bar of Dolphin
+ * instead as modal error dialog with an OK button.
+ */
+ class UndoUiInterface : public KonqUndoManager::UiInterface {
+ public:
+ UndoUiInterface(DolphinMainWindow* mainWin);
+ virtual ~UndoUiInterface();
+ virtual void jobError(KIO::Job* job);
+ virtual bool copiedFileWasModified(const KUrl& src,
+ const KUrl& dest,
+ time_t srcTime,
+ time_t destTime);
+ private:
+ DolphinMainWindow* m_mainWin;
};
};