- connect(m_view, SIGNAL(urlChanged(KUrl)),
- this, SLOT(slotUrlChanged(KUrl)));
- connect(m_view, SIGNAL(modeChanged()),
- this, SLOT(updateViewActions()));
- connect(m_view, SIGNAL(showPreviewChanged()),
- this, SLOT(slotShowPreviewChanged()));
- connect(m_view, SIGNAL(showHiddenFilesChanged()),
- this, SLOT(slotShowHiddenFilesChanged()));
- connect(m_view, SIGNAL(categorizedSortingChanged()),
- this, SLOT(slotCategorizedSortingChanged()));
- // TODO slotSortingChanged
- connect(m_view, SIGNAL(sortOrderChanged(Qt::SortOrder)),
- this, SLOT(slotSortOrderChanged(Qt::SortOrder)));
- connect(m_view, SIGNAL(additionalInfoChanged()),
- this, SLOT(slotAdditionalInfoChanged()));
+ connect(m_view, SIGNAL(modeChanged(DolphinView::Mode,DolphinView::Mode)),
+ this, SIGNAL(viewModeChanged())); // relay signal
+ connect(m_view, SIGNAL(redirection(KUrl,KUrl)),
+ this, SLOT(slotRedirection(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()));