diff options
Diffstat (limited to 'src/dolphinview.h')
| -rw-r--r-- | src/dolphinview.h | 22 |
1 files changed, 19 insertions, 3 deletions
diff --git a/src/dolphinview.h b/src/dolphinview.h index 96b487961..0ac116fab 100644 --- a/src/dolphinview.h +++ b/src/dolphinview.h @@ -120,16 +120,32 @@ 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. */ |
