class DolphinSearchBox;
class DolphinSettingsDialog;
class DolphinViewContainer;
+class DolphinRemoteEncoding;
class KNewMenu;
class KTabBar;
class KUrl;
public:
virtual ~DolphinMainWindow();
- //TODO: This struct should be private, but I couldn't figure out how to make it that way
- //when using Q_DECLARE_METATYPE(), which is a needed macro.
- struct ClosedTab
- {
- KUrl primaryUrl;
- KUrl secondaryUrl;
- bool isSplit;
- };
/**
* Returns the currently active view.
/** Opens Kompare for 2 selected files. */
void compareFiles();
- /**
- * Initiates a preview of the selected files
- * on the desktop by the Previewer plasmoid.
- */
- void quickView();
-
/**
* Hides the menu bar if it is visible, makes the menu bar
* visible if it is hidden.
*/
void toggleShowMenuBar();
+ /** Opens a terminal window for the current location. */
+ void openTerminal();
+
/** Opens the settings dialog for Dolphin. */
void editSettings();
void createSecondaryView(int tabIndex);
+ /**
+ * Helper method for saveProperties() and readProperties(): Returns
+ * the property string for a tab with the index \a tabIndex and
+ * the property \a property.
+ */
+ QString tabProperty(const QString& property, int tabIndex) const;
+
private:
/**
* Implements a custom error handling for the undo manager. This
QList<ViewTab> m_viewTab;
DolphinViewActionHandler* m_actionHandler;
+ DolphinRemoteEncoding* m_remoteEncoding;
QPointer<DolphinSettingsDialog> m_settingsDialog;
};
-Q_DECLARE_METATYPE(DolphinMainWindow::ClosedTab)
-
inline DolphinViewContainer* DolphinMainWindow::activeViewContainer() const
{
return m_activeViewContainer;