#include <config-nepomuk.h>
#include <kfileitemdelegate.h>
-#include <konq_fileundomanager.h>
+#include <kio/fileundomanager.h>
#include <ksortablelist.h>
#include <kxmlguiwindow.h>
*/
void editLocation();
- /**
- * Opens the view properties dialog, which allows to modify the properties
- * of the currently active view.
- */
- void adjustViewProperties();
-
/** Goes back on step of the URL history. */
void goBack();
/** Goes to the home URL. */
void goHome();
- /** Opens KFind for the current shown directory. */
- void findFile();
-
/** Opens Kompare for 2 selected files. */
void compareFiles();
void toggleActiveView();
/** Called when the view is doing a file operation, like renaming, copying, moving etc. */
- void slotDoingOperation(KonqFileUndoManager::CommandType type);
+ void slotDoingOperation(KIO::FileUndoManager::CommandType type);
/**
* Activates the tab with the index \a index, which means that the current view
*/
void openTabContextMenu(int index, const QPoint& pos);
+ /**
+ * Handles a click on a places item: if the middle mouse button is
+ * clicked, a new tab is opened for \a url, otherwise the current
+ * view is replaced by \a url.
+ */
+ void handlePlacesClick(const KUrl& url, Qt::MouseButtons buttons);
+
private:
DolphinMainWindow(int id);
void init();
/** Returns the name of the tab for the URL \a url. */
QString tabName(const KUrl& url) const;
+ bool isKompareInstalled() const;
+
private:
/**
* 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 KonqFileUndoManager::UiInterface
+ class UndoUiInterface : public KIO::FileUndoManager::UiInterface
{
public:
UndoUiInterface();
DolphinViewActionHandler* m_actionHandler;
/// remember pending undo operations until they are finished
- QList<KonqFileUndoManager::CommandType> m_undoCommandTypes;
+ QList<KIO::FileUndoManager::CommandType> m_undoCommandTypes;
};
inline DolphinViewContainer* DolphinMainWindow::activeViewContainer() const