From 34ff90696f8a9d8a5d2c02be1b11b4d092b888c1 Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Thu, 28 Jun 2007 18:52:54 +0000 Subject: 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 --- src/dolphincolumnview.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'src/dolphincolumnview.h') 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 class DolphinController; +class KDirLister; +class KUrl; /** * @brief Represents the view, where each directory is show as separate column. @@ -50,10 +52,23 @@ 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 @@ -62,6 +77,9 @@ private: */ void updateDecorationSize(); + /** Returns the directory lister used by the view. */ + KDirLister* dirLister() const; + private: DolphinController* m_controller; -- cgit v1.3