diff options
| author | David Faure <[email protected]> | 2007-03-27 19:38:32 +0000 |
|---|---|---|
| committer | David Faure <[email protected]> | 2007-03-27 19:38:32 +0000 |
| commit | 623c19e042cd19c147bc27f50b62c22b4986e6b6 (patch) | |
| tree | a571cdd343919bdb8a051561f3858d2419a8bcfe /src/urlnavigator.h | |
| parent | 6fecb341c2b4b5b73785fac245d56c3c6cb3683a (diff) | |
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
Diffstat (limited to 'src/urlnavigator.h')
| -rw-r--r-- | src/urlnavigator.h | 16 |
1 files changed, 11 insertions, 5 deletions
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 <kurl.h> #include <QWidget> -#include <QList> class KBookmarkManager; class QMouseEvent; @@ -130,6 +129,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 * for fast navigation. @@ -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); |
