From 623c19e042cd19c147bc27f50b62c22b4986e6b6 Mon Sep 17 00:00:00 2001 From: David Faure Date: Tue, 27 Mar 2007 19:38:32 +0000 Subject: Added setters in urlnavigator to remove dependency on dolphinsettings. Removed old unused kfileiconview.h header, fixed some unrelated missing includes due to that one being removed. svn path=/trunk/KDE/kdebase/apps/; revision=647244 --- src/urlnavigator.h | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) (limited to 'src/urlnavigator.h') diff --git a/src/urlnavigator.h b/src/urlnavigator.h index 15b683576..4b277d1b8 100644 --- a/src/urlnavigator.h +++ b/src/urlnavigator.h @@ -24,7 +24,6 @@ #include #include -#include class KBookmarkManager; class QMouseEvent; @@ -129,6 +128,11 @@ public: */ void goHome(); + /** + * Sets the home URL used by goHome(). + */ + void setHomeUrl(const QString& homeUrl); + /** * @return True, if the URL is editable by the user within a line editor. * If false is returned, each part of the URL is presented by a button @@ -137,16 +141,18 @@ public: bool isUrlEditable() const; /** - * Switches to the edit mode and assures that the keyboard focus - * is assigned. + * Allows to edit the URL of the navigation bar if \a editable + * is true, and sets the focus accordingly. + * If \a editable is false, each part of + * the URL is presented by a button for a fast navigation. */ - void editUrl(bool editOrBrowse); //TODO: switch to an enum + void setUrlEditable(bool editable); /** * Set the URL navigator to the active mode, if \a active * is true. The active mode is default. Using the URL navigator * in the inactive mode is useful when having split views, - * where the inactive view is indicated by a an inactive URL + * where the inactive view is indicated by an inactive URL * navigator visually. */ void setActive(bool active); -- cgit v1.3