]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/dolphincontroller.cpp
* allow to toggle the content of split views by the context menu
[dolphin.git] / src / dolphincontroller.cpp
index e1d4c48e344f28e4b201238a029d48e7e683b73a..378c1b4ba86d443999d824ea36d84c70ea003bbe 100644 (file)
 
 DolphinController::DolphinController(QObject* parent) :
     QObject(parent),
-    m_showPreview(false)
+    m_showPreview(false),
+    m_showAdditionalInfo(false),
+    m_zoomInPossible(false),
+    m_zoomOutPossible(false)
 {
 }
 
@@ -41,9 +44,10 @@ void DolphinController::triggerActivation()
 }
 
 void DolphinController::indicateDroppedUrls(const KUrl::List& urls,
-                                            const QPoint& pos)
+        const QModelIndex& index,
+        QWidget* source)
 {
-    emit urlsDropped(urls, pos);
+    emit urlsDropped(urls, index, source);
 }
 
 
@@ -57,22 +61,45 @@ void DolphinController::indicateSortOrderChange(Qt::SortOrder order)
     emit sortOrderChanged(order);
 }
 
-void DolphinController::setShowPreview(bool showPreview)
+void DolphinController::setShowPreview(bool show)
 {
-    if (m_showPreview != showPreview) {
-        m_showPreview = showPreview;
-        emit showPreviewChanged(showPreview);
+    if (m_showPreview != show) {
+        m_showPreview = show;
+        emit showPreviewChanged(show);
     }
 }
 
+void DolphinController::setShowAdditionalInfo(bool show)
+{
+    if (m_showAdditionalInfo != show) {
+        m_showAdditionalInfo = show;
+        emit showAdditionalInfoChanged(show);
+    }
+}
+
+void DolphinController::triggerZoomIn()
+{
+    emit zoomIn();
+}
+
+void DolphinController::triggerZoomOut()
+{
+    emit zoomOut();
+}
+
 void DolphinController::triggerItem(const QModelIndex& index)
 {
     emit itemTriggered(index);
 }
 
-void DolphinController::indicateSelectionChange()
+void DolphinController::emitItemEntered(const QModelIndex& index)
+{
+    emit itemEntered(index);
+}
+
+void DolphinController::emitViewportEntered()
 {
-    emit selectionChanged();
+    emit viewportEntered();
 }
 
 #include "dolphincontroller.moc"