23#ifndef KURLNAVIGATOR_H
24#define KURLNAVIGATOR_H
29#include <QtGui/QWidget>
30#include <QtCore/QByteArray>
98 KUrl locationUrl(
int historyIndex = -1)
const;
120 void saveLocationState(
const QByteArray& state);
128 QByteArray locationState(
int historyIndex = -1)
const;
177 void setHomeUrl(
const KUrl& url);
179 KUrl homeUrl()
const;
187 void setUrlEditable(
bool editable);
194 bool isUrlEditable()
const;
205 void setShowFullPath(
bool show);
211 bool showFullPath()
const;
222 void setActive(
bool active);
228 bool isActive()
const;
236 void setPlacesSelectorVisible(
bool visible);
239 bool isPlacesSelectorVisible()
const;
245 KUrl uncommittedUrl()
const;
252 int historySize()
const;
259 int historyIndex()
const;
273 void setCustomProtocols(
const QStringList& protocols);
278 QStringList customProtocols()
const;
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;
305 KDE_DEPRECATED
KUrl historyUrl(
int historyIndex)
const;
311 KDE_DEPRECATED
const KUrl& savedRootUrl()
const;
318 KDE_DEPRECATED QPoint savedPosition()
const;
321 KDE_DEPRECATED
void setHomeUrl(
const QString& homeUrl);
332 void setLocationUrl(
const KUrl& url);
339 void requestActivation();
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)
432 KDE_DEPRECATED
void urlsDropped(
const KUrl::List& urls,
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.
Widget that allows to navigate through the paths of an URL.
void urlChanged(const KUrl &url)
Is emitted, if the location URL has been changed e.
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()).
void urlAboutToBeChanged(const KUrl &newUrl)
Is emitted, before the location URL is going to be changed to newUrl.
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.
void returnPressed()
This signal is emitted when the Return or Enter key is pressed.