diff options
| author | Peter Penz <[email protected]> | 2007-09-25 09:02:29 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2007-09-25 09:02:29 +0000 |
| commit | 3bf8fa5901f200d26acc2eb527eef88087e6edb9 (patch) | |
| tree | 48a56e615e2c00636295f8d8fed07d710014802d /src/dolphinview.h | |
| parent | 6fd52b51ac3bd97483988df222da35f53dfc0305 (diff) | |
further root URL handling cleanups
svn path=/trunk/KDE/kdebase/apps/; revision=716789
Diffstat (limited to 'src/dolphinview.h')
| -rw-r--r-- | src/dolphinview.h | 23 |
1 files changed, 15 insertions, 8 deletions
diff --git a/src/dolphinview.h b/src/dolphinview.h index 3f5b9f596..99a5233e9 100644 --- a/src/dolphinview.h +++ b/src/dolphinview.h @@ -137,11 +137,6 @@ public: const KUrl& url() const; /** - * Sets the root URL of the view (see also DolphinView::rootUrl()) - */ - void setRootUrl(const KUrl& url); - - /** * 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 @@ -299,6 +294,16 @@ public: */ void refresh(); + /** + * Changes the directory of the view to \a url. If \a rootUrl is empty, the view + * properties from \a url are used for adjusting the view mode and the other properties. + * If \a rootUrl is not empty, the view properties from the root URL are considered + * instead. Specifying a root URL is only required if a view having a different root URL + * (e. g. the column view) should be restored. Usually using DolphinView::setUrl() + * is enough for changing the current URL. + */ + void updateView(const KUrl& url, const KUrl& rootUrl); + public slots: /** * Changes the directory to \a url. If the current directory is equal to @@ -394,10 +399,12 @@ signals: void errorMessage(const QString& msg); /** - * Is emitted if the root URL of the view has been changed - * to \a url (see also DolphinView::rootUrl()). + * Is emitted after DolphinView::setUrl() has been invoked and + * the path \a url is currently loaded. If this signal is emitted, + * it is assured that the view contains already the correct root + * URL and property settings. */ - void rootUrlChanged(const KUrl& url); + void startedPathLoading(const KUrl& url); protected: /** @see QWidget::mouseReleaseEvent */ |
