23#ifndef KURLNAVIGATOR_H
24#define KURLNAVIGATOR_H
29#include <QtGui/QWidget>
30#include <QtCore/QByteArray>
280#if !defined(KDE_NO_DEPRECATED) && !defined(DOXYGEN_SHOULD_SKIP_THIS)
285 KDE_DEPRECATED
const KUrl& url()
const;
297 KDE_DEPRECATED
KUrl url(
int index)
const;
311 KDE_DEPRECATED
const KUrl& savedRootUrl()
const;
318 KDE_DEPRECATED QPoint savedPosition()
const;
341#if !defined(DOXYGEN_SHOULD_SKIP_THIS)
346#if !defined(KDE_NO_DEPRECATED) && !defined(DOXYGEN_SHOULD_SKIP_THIS)
351 KDE_DEPRECATED
void setUrl(
const KUrl& url);
357 KDE_DEPRECATED
void saveRootUrl(
const KUrl& url);
363 KDE_DEPRECATED
void savePosition(
int x,
int y);
422#if !defined(KDE_NO_DEPRECATED) && !defined(DOXYGEN_SHOULD_SKIP_THIS)
433 const KUrl& destination);
437#if !defined(DOXYGEN_SHOULD_SKIP_THIS)
443 virtual void keyPressEvent(QKeyEvent* event);
448 virtual void keyReleaseEvent(QKeyEvent* event);
455 virtual void mouseReleaseEvent(QMouseEvent* event);
457 virtual void resizeEvent(QResizeEvent* event);
459 virtual void wheelEvent(QWheelEvent* event);
461 virtual bool eventFilter(
QObject* watched, QEvent* event);
465 Q_PRIVATE_SLOT(d,
void slotReturnPressed())
466 Q_PRIVATE_SLOT(d,
void slotProtocolChanged(const QString& protocol))
467 Q_PRIVATE_SLOT(d,
void switchView())
468 Q_PRIVATE_SLOT(d,
void dropUrls(const
KUrl& destination, QDropEvent*))
469 Q_PRIVATE_SLOT(d,
void slotNavigatorButtonClicked(const
KUrl& url, Qt::MouseButton button))
470 Q_PRIVATE_SLOT(d,
void openContextMenu())
471 Q_PRIVATE_SLOT(d,
void openPathSelectorMenu())
472 Q_PRIVATE_SLOT(d,
void updateButtonVisibility())
473 Q_PRIVATE_SLOT(d,
void switchToBreadcrumbMode())
474 Q_PRIVATE_SLOT(d,
void slotPathBoxChanged(const QString& text))
475 Q_PRIVATE_SLOT(d,
void updateContent())
This class is a list view model.
void urlChanged(const KUrl &url)
Is emitted, if the location URL has been changed e.
void setShowFullPath(bool show)
Shows the full path of the URL even if a place represents a part of the URL.
void setCustomProtocols(const QStringList &protocols)
If an application supports only some special protocols, they can be set with protocols .
KUrl locationUrl(int historyIndex=-1) const
void setPlacesSelectorVisible(bool visible)
Sets the places selector visible, if visible is true.
KUrl uncommittedUrl() const
bool goUp()
Goes up one step of the URL path and remembers the old path in the history.
void tabRequested(const KUrl &url)
Is emitted if the URL url should be opened in a new tab because the user clicked on a breadcrumb with...
void editableStateChanged(bool editable)
Is emitted, if the editable state for the URL has been changed (see KUrlNavigator::setUrlEditable()).
KUrlComboBox * editor() const
void urlAboutToBeChanged(const KUrl &newUrl)
Is emitted, before the location URL is going to be changed to newUrl.
void saveLocationState(const QByteArray &state)
Saves the location state described by state for the current location.
void goHome()
Goes to the home URL and remembers the old URL in the history.
QStringList customProtocols() const
bool goBack()
Goes back one step in the URL history.
KUrlNavigator(QWidget *parent=0)
void requestActivation()
Activates the URL navigator (KUrlNavigator::isActive() will return true) and emits the signal KUrlNav...
void setUrlEditable(bool editable)
Allows to edit the URL of the navigation bar if editable is true, and sets the focus accordingly.
bool isPlacesSelectorVisible() const
void setLocationUrl(const KUrl &url)
Sets the location to url.
bool showFullPath() const
bool goForward()
Goes forward one step in the URL history.
void setActive(bool active)
Set the URL navigator to the active mode, if active is true.
void historyChanged()
Is emitted, if the history has been changed.
void urlsDropped(const KUrl &destination, QDropEvent *event)
Is emitted if a dropping has been done above the destination destination.
void activated()
Is emitted, if the URL navigator has been activated by an user interaction.
QByteArray locationState(int historyIndex=-1) const
bool isUrlEditable() const
void returnPressed()
This signal is emitted when the Return or Enter key is pressed.
void setHomeUrl(const KUrl &url)
Sets the home URL used by KUrlNavigator::goHome().