┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphincontroller.h
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2009-08-30 19:17:08 +0000
committerPeter Penz <[email protected]>2009-08-30 19:17:08 +0000
commita2a99926359cb58519b7814bba662f2afa4eee5d (patch)
treedbcf3d58df13948998d94b356fd39641c8ee625f /src/dolphincontroller.h
parent05762d42ea91ea034086c67099cf9208f86c00ff (diff)
Move the selection listener from DolphinView to ViewExtensionsFactory. The statusbar and information panel are now informed correctly about selection changes also when using the column view.
svn path=/trunk/KDE/kdebase/apps/; revision=1017497
Diffstat (limited to 'src/dolphincontroller.h')
-rw-r--r--src/dolphincontroller.h22
1 files changed, 18 insertions, 4 deletions
diff --git a/src/dolphincontroller.h b/src/dolphincontroller.h
index 355cff8cf..bd2189e21 100644
--- a/src/dolphincontroller.h
+++ b/src/dolphincontroller.h
@@ -62,6 +62,7 @@ class QPoint;
* - handleKeyPressEvent()
* - emitItemEntered()
* - emitViewportEntered()
+ * - emitSelectionChanged()
* - replaceUrlByClipboard()
* - hideToolTip()
* - setVersionControlActions()
@@ -269,23 +270,29 @@ public slots:
/**
* Emits the signal tabRequested(), if the file item for the index \a index
* represents a directory and when the middle mouse button has been pressed.
- * The method should be invoked by the controller parent.
+ * The method should be invoked by the view implementation.
*/
void requestTab(const QModelIndex& index);
/**
* Emits the signal itemEntered() if the file item for the index \a index
- * is not null. The method should be invoked by the controller parent
+ * is not null. The method should be invoked by the view implementation
* whenever the mouse cursor is above an item.
*/
void emitItemEntered(const QModelIndex& index);
/**
* Emits the signal viewportEntered(). The method should be invoked by
- * the controller parent whenever the mouse cursor is above the viewport.
+ * the view implementation whenever the mouse cursor is above the viewport.
*/
void emitViewportEntered();
+ /**
+ * Emits the signal selectionChanged(). The method should be invoked by
+ * the view implementation whenever the selection has been changed.
+ */
+ void emitSelectionChanged();
+
signals:
/**
* Is emitted if the URL for the Dolphin controller has been changed
@@ -389,12 +396,19 @@ signals:
/**
* Is emitted if the mouse cursor has entered
- * the viewport (see emitViewportEntered().
+ * the viewport (see emitViewportEntered()).
* The abstract Dolphin view connects to this signal.
*/
void viewportEntered();
/**
+ * Is emitted whenever the selection of the view implementation
+ * has been changed (see emitSelectionChanged()). The abstract
+ * Dolphin view connects to this signal.
+ */
+ void selectionChanged();
+
+ /**
* Is emitted if the view should respect the name filter \a nameFilter. The view
* implementation must connect to this signal if it supports name filters.
*/