From c35843f38c596eda4a9b04ba4c6a3247f3bdebc9 Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Thu, 17 May 2007 13:29:13 +0000 Subject: when the column view is used, then 'Split view' should take the root URL of the column view as new base for the secondary view svn path=/trunk/KDE/kdebase/apps/; revision=665630 --- src/dolphinview.h | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) (limited to 'src/dolphinview.h') diff --git a/src/dolphinview.h b/src/dolphinview.h index 96b487961..0ac116fab 100644 --- a/src/dolphinview.h +++ b/src/dolphinview.h @@ -120,15 +120,31 @@ public: virtual ~DolphinView(); /** - * Sets the current active URL. - * The signals KUrlNavigator::urlChanged() and KUrlNavigator::historyChanged() + * Sets the current active URL, where all actions are applied. The + * URL navigator is synchronized with this URL. The signals + * KUrlNavigator::urlChanged() and KUrlNavigator::historyChanged() * are emitted. + * @see DolphinView::urlNavigator() */ void setUrl(const KUrl& url); - /** Returns the current active URL. */ + /** + * Returns the current active URL, where all actions are applied. + * The URL navigator is synchronized with this URL. + */ const KUrl& url() const; + /** + * Returns the root URL of the view, which is defined as the first + * visible path of DolphinView::url(). Usually the root URL is + * equal to DolphinView::url(), but in the case of the column view + * when 2 columns are shown, the root URL might be: + * /home/peter/Documents + * and DolphinView::url() might return + * /home/peter/Documents/Music/ + */ + KUrl rootUrl() const; + /** * Returns true if the view is active and hence all actions are * applied to this view. -- cgit v1.3