#include "dolphincontroller.h"
DolphinController::DolphinController(QObject* parent) :
- QObject(parent)
+ QObject(parent),
+ m_showPreview(false),
+ m_zoomInPossible(false),
+ m_zoomOutPossible(false)
{
}
{
}
-void DolphinController::triggerContextMenuRequest(const QPoint& pos,
- const QPoint& globalPos)
+void DolphinController::triggerContextMenuRequest(const QPoint& pos)
{
emit activated();
- emit requestContextMenu(pos, globalPos);
+ emit requestContextMenu(pos);
}
void DolphinController::triggerActivation()
emit activated();
}
+void DolphinController::indicateDroppedUrls(const KUrl::List& urls,
+ const QModelIndex& index,
+ QWidget* source)
+{
+ emit urlsDropped(urls, index, source);
+}
+
+
void DolphinController::indicateSortingChange(DolphinView::Sorting sorting)
{
emit sortingChanged(sorting);
emit sortOrderChanged(order);
}
+void DolphinController::setShowPreview(bool showPreview)
+{
+ if (m_showPreview != showPreview) {
+ m_showPreview = showPreview;
+ emit showPreviewChanged(showPreview);
+ }
+}
+
+void DolphinController::triggerZoomIn()
+{
+ emit zoomIn();
+}
+
+void DolphinController::triggerZoomOut()
+{
+ emit zoomOut();
+}
+
void DolphinController::triggerItem(const QModelIndex& index)
{
emit itemTriggered(index);