this, SLOT(slotSelectionChanged(KFileItemList)));
connect(m_view, SIGNAL(requestItemInfo(KFileItem)),
this, SLOT(slotRequestItemInfo(KFileItem)));
- connect(m_view, SIGNAL(requestUrlChange(KUrl)),
- this, SLOT(slotRequestUrlChange(KUrl)));
connect(m_view, SIGNAL(modeChanged()),
this, SIGNAL(viewModeChanged())); // relay signal
connect(m_view, SIGNAL(redirection(KUrl, KUrl)),
}
}
-void DolphinPart::slotRequestUrlChange(const KUrl& url)
-{
- if (m_view->url() != url) {
- // If the view URL is not equal to 'url', then an inner URL change has
- // been done (e. g. by activating an existing column in the column view).
- openUrl(url);
- emit m_extension->openUrlNotify();
- }
-}
-
////
void DolphinPartBrowserExtension::restoreState(QDataStream &stream)
const KUrl& url,
const QList<QAction*>& customActions);
- /**
- * Asks the host to open the URL \a url if the current view has
- * a different URL.
- */
- void slotRequestUrlChange(const KUrl& url);
-
/**
* Informs the host that we are opening \a url (e.g. after a redirection
* coming from KDirLister).
connect(m_controller, SIGNAL(urlChanged(const KUrl&)),
this, SIGNAL(urlChanged(const KUrl&)));
- connect(m_controller, SIGNAL(requestUrlChange(const KUrl&)),
- this, SLOT(slotRequestUrlChange(const KUrl&)));
connect(m_controller, SIGNAL(requestContextMenu(const QPoint&, const QList<QAction*>&)),
this, SLOT(openContextMenu(const QPoint&, const QList<QAction*>&)));
}
}
-void DolphinView::slotRequestUrlChange(const KUrl& url)
-{
- emit requestUrlChange(url);
- m_controller->setUrl(url);
-}
-
void DolphinView::slotDirListerCompleted()
{
if (!m_expanderActive) {
/** Is emitted if URL of the view has been changed to \a url. */
void urlChanged(const KUrl& url);
- /**
- * Is emitted if the view requests a changing of the current
- * URL to \a url (see DolphinController::triggerUrlChangeRequest()).
- */
- void requestUrlChange(const KUrl& url);
-
/**
* Is emitted when clicking on an item with the left mouse button.
*/
*/
void slotDeleteFileFinished(KJob* job);
- /**
- * Is emitted if the controller requests a changing of the current
- * URL to \a url
- */
- void slotRequestUrlChange(const KUrl& url);
-
/**
* Invoked when the directory lister has completed the loading of
* items. Assures that pasted items and renamed items get seleced.