- connect(m_view, SIGNAL(urlChanged(KUrl)),
- this, SLOT(slotUrlChanged(KUrl)));
- connect(m_view, SIGNAL(modeChanged()),
- this, SLOT(updateViewActions()));
+ connect(m_view, SIGNAL(modeChanged(DolphinView::Mode,DolphinView::Mode)),
+ this, SIGNAL(viewModeChanged())); // relay signal
+ connect(m_view, SIGNAL(redirection(KUrl,KUrl)),
+ this, SLOT(slotDirectoryRedirection(KUrl,KUrl)));
+
+ // Watch for changes that should result in updates to the
+ // status bar text.
+ connect(m_view, SIGNAL(itemCountChanged()), this, SLOT(updateStatusBar()));
+ connect(m_view, SIGNAL(selectionChanged(KFileItemList)), this, SLOT(updateStatusBar()));
+
+ m_actionHandler = new DolphinViewActionHandler(actionCollection(), this);
+ m_actionHandler->setCurrentView(m_view);
+ connect(m_actionHandler, SIGNAL(createDirectory()), SLOT(createDirectory()));
+
+ m_remoteEncoding = new DolphinRemoteEncoding(this, m_actionHandler);
+ connect(this, SIGNAL(aboutToOpenURL()),
+ m_remoteEncoding, SLOT(slotAboutToOpenUrl()));