┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphincolumnview.h
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2007-06-28 18:52:54 +0000
committerPeter Penz <[email protected]>2007-06-28 18:52:54 +0000
commit34ff90696f8a9d8a5d2c02be1b11b4d092b888c1 (patch)
tree512848c4c0a77b5e967b5426199516c5f48da3e8 /src/dolphincolumnview.h
parentba6c853219c78e4e2a491d416b94e4e4c1aef591 (diff)
Improve handling of column view:
* Activate column on a mouse press event * Always synchronize the active column with the URL navigator and vice versa svn path=/trunk/KDE/kdebase/apps/; revision=681369
Diffstat (limited to 'src/dolphincolumnview.h')
-rw-r--r--src/dolphincolumnview.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/dolphincolumnview.h b/src/dolphincolumnview.h
index 978847ab6..eb5d33342 100644
--- a/src/dolphincolumnview.h
+++ b/src/dolphincolumnview.h
@@ -24,6 +24,8 @@
#include <QtGui/QStyleOption>
class DolphinController;
+class KDirLister;
+class KUrl;
/**
* @brief Represents the view, where each directory is show as separate column.
@@ -50,11 +52,24 @@ private slots:
void zoomOut();
void triggerItem(const QModelIndex& index);
+ /**
+ * Updates the activation state of all columns, where \a url
+ * represents the URL of the active column. All operations
+ * are applied only to the column which is marked as active.
+ */
+ void updateColumnsState(const KUrl& url);
+
private:
bool isZoomInPossible() const;
bool isZoomOutPossible() const;
/**
+ * Requests the activation for the column \a column. The URL
+ * navigator will be changed to represent the column.
+ */
+ void requestActivation(QWidget* column);
+
+ /**
* Updates the size of the decoration dependent on the
* icon size of the ColumnModeSettings. The controller
* will get informed about possible zoom in/zoom out
@@ -62,6 +77,9 @@ private:
*/
void updateDecorationSize();
+ /** Returns the directory lister used by the view. */
+ KDirLister* dirLister() const;
+
private:
DolphinController* m_controller;