class DolphinSettingsDialog;
class DolphinViewContainer;
class DolphinRemoteEncoding;
-class KNewMenu;
+class KNewFileMenu;
class KTabBar;
class KUrl;
class QSplitter;
* Returns the 'Create New...' sub menu which also can be shared
* with other menus (e. g. a context menu).
*/
- KNewMenu* newMenu() const;
+ KNewFileMenu* newMenu() const;
/**
* Returns the 'Show Menubar' action which can be shared with
*/
void handleUrl(const KUrl& url);
+ /**
+ * handleUrl() can trigger a stat job to see if the url can actually
+ * be listed.
+ */
+ void slotHandleUrlStatFinished(KJob* job);
+
/**
* setUrlAsCaption() will trigger a stat job which reports its result in
* this slot.
*/
void slotCaptionStatFinished(KJob* job);
+ /**
+ * Is connected to the KTabBar signal receivedDropEvent.
+ * Allows dragging and dropping files onto tabs.
+ */
+ void tabDropEvent(int tab, QDropEvent* event);
+
/**
* Is invoked when the write state of a folder has been changed and
* enables/disables the "Create New..." menu entry.
virtual void jobError(KIO::Job* job);
};
- KNewMenu* m_newMenu;
+ KNewFileMenu* m_newMenu;
KActionMenu* m_recentTabsMenu;
KAction* m_showMenuBar;
KTabBar* m_tabBar;
QPointer<DolphinSettingsDialog> m_settingsDialog;
KJob* m_captionStatJob;
+ KJob* m_lastHandleUrlStatJob;
};
inline DolphinViewContainer* DolphinMainWindow::activeViewContainer() const
return m_viewTab[m_tabIndex].secondaryView != 0;
}
-inline KNewMenu* DolphinMainWindow::newMenu() const
+inline KNewFileMenu* DolphinMainWindow::newMenu() const
{
return m_newMenu;
}