diff options
| author | Peter Penz <[email protected]> | 2007-10-09 21:10:17 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2007-10-09 21:10:17 +0000 |
| commit | 1d4cfd16fd5ceb8f37400d4890807e3c56619971 (patch) | |
| tree | f2d6cf306175a65ed61ccd91474dced063169405 /src/dolphincontroller.h | |
| parent | 0c1d1c42f4abeaa03522b3059c485788276464f7 (diff) | |
column view fixes:
* assure that the history does not get messed up when changing the focus to an existing column
* fix issue that the status bar does not get updated when the focus is changed between the columns
svn path=/trunk/KDE/kdebase/apps/; revision=723519
Diffstat (limited to 'src/dolphincontroller.h')
| -rw-r--r-- | src/dolphincontroller.h | 25 |
1 files changed, 24 insertions, 1 deletions
diff --git a/src/dolphincontroller.h b/src/dolphincontroller.h index 118b945f0..c48a0340f 100644 --- a/src/dolphincontroller.h +++ b/src/dolphincontroller.h @@ -49,6 +49,7 @@ class QWidget; * The communication of the view implementations to the abstract view is done by: * - triggerContextMenuRequest() * - requestActivation() + * - triggerUrlChangeRequest() * - indicateDroppedUrls() * - indicateSortingChange() * - indicateSortOrderChanged() @@ -59,6 +60,7 @@ class QWidget; * - emitViewportEntered() * * The communication of the abstract view to the view implementations is done by: + * - setUrl() * - setShowHiddenFiles() * - setShowPreview() * - setAdditionalInfoCount() @@ -74,11 +76,26 @@ public: explicit DolphinController(QObject* parent); virtual ~DolphinController(); - /** Sets the URL to \a url and emits the signal urlChanged(). */ + /** + * Sets the URL to \a url and emits the signal urlChanged() if + * \a url is different for the current URL. This method should + * be invoked by the abstract Dolphin view whenever the current + * URL has been changed. + */ void setUrl(const KUrl& url); const KUrl& url() const; /** + * Allows a view implementation to request an URL change to \a url. + * The signal requestUrlChange() is emitted and the abstract Dolphin view + * will assure that the URL of the Dolphin Controller will be updated + * later. Invoking this method makes only sense if the view implementation + * shows a hierarchy of URLs and allows to change the URL within + * the view (e. g. this is the case in the column view). + */ + void triggerUrlChangeRequest(const KUrl& url); + + /** * Requests a context menu for the position \a pos. This method * should be invoked by the view implementation when a context * menu should be opened. The abstract Dolphin view itself @@ -216,6 +233,12 @@ signals: void urlChanged(const KUrl& url); /** + * Is emitted if the view implementation requests a changing of the current + * URL to \a url (see triggerUrlChangeRequest()). + */ + void requestUrlChange(const KUrl& url); + + /** * Is emitted if a context menu should be opened (see triggerContextMenuRequest()). * The abstract Dolphin view connects to this signal and will open the context menu. * @param pos Position relative to the view widget where the |
