10#ifndef KURLNAVIGATOR_H
11#define KURLNAVIGATOR_H
13#include "kiofilewidgets_export.h"
26class KUrlNavigatorPrivate;
92 QUrl locationUrl(
int historyIndex = -1)
const;
113 void saveLocationState(
const QByteArray &state);
121 QByteArray locationState(
int historyIndex = -1)
const;
169 void setHomeUrl(
const QUrl &url);
171 QUrl homeUrl()
const;
179 void setUrlEditable(
bool editable);
186 bool isUrlEditable()
const;
196 void setShowFullPath(
bool show);
202 bool showFullPath()
const;
213 void setActive(
bool active);
219 bool isActive()
const;
227 void setPlacesSelectorVisible(
bool visible);
230 bool isPlacesSelectorVisible()
const;
236 QUrl uncommittedUrl()
const;
243 int historySize()
const;
250 int historyIndex()
const;
267 void setSupportedSchemes(
const QStringList &schemes);
294 void setShowHiddenFolders(
bool showHiddenFolders);
300 bool showHiddenFolders()
const;
306 void setSortHiddenFoldersLast(
bool sortHiddenFoldersLast);
312 bool sortHiddenFoldersLast()
const;
321 void setLocationUrl(
const QUrl &url);
328 void requestActivation();
330#if !defined(K_DOXYGEN)
418#if !defined(K_DOXYGEN)
451 friend class KUrlNavigatorPrivate;
452 std::unique_ptr<KUrlNavigatorPrivate>
const d;
This class is a list view model.
This combobox shows a number of recent URLs/directories, as well as some default directories.
Widget that allows to navigate through the paths of an URL.
void newWindowRequested(const QUrl &url)
Is emitted if the URL url should be opened in a new window because the user left-clicked on a breadcr...
void urlAboutToBeChanged(const QUrl &newUrl)
Is emitted, before the location URL is going to be changed to newUrl.
void editableStateChanged(bool editable)
Is emitted, if the editable state for the URL has been changed (see KUrlNavigator::setUrlEditable()).
void urlSelectionRequested(const QUrl &url)
When the URL is changed and the new URL (e.g. /home/user1/) is a parent of the previous URL (e....
void tabRequested(const QUrl &url)
Is emitted if the URL url should be opened in a new inactive tab because the user clicked on a breadc...
void activeTabRequested(const QUrl &url)
Is emitted if the URL url should be opened in a new active tab because the user clicked on a breadcru...
void urlsDropped(const QUrl &destination, QDropEvent *event)
Is emitted if a dropping has been done above the destination destination.
void historyChanged()
Is emitted, if the history has been changed.
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.
void urlChanged(const QUrl &url)
Is emitted, if the location URL has been changed e.
virtual bool eventFilter(QObject *watched, QEvent *event)