]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/dolphinmainwindow.h
BUG: 175658
[dolphin.git] / src / dolphinmainwindow.h
index 8fe9e350a2c55cf7b060e78e58e4b1fa0932a12e..77fc36b58e5840648edc1642e291e93f9445f967 100644 (file)
@@ -43,6 +43,7 @@ class DolphinApplication;
 class DolphinSearchBox;
 class DolphinSettingsDialog;
 class DolphinViewContainer;
+class DolphinRemoteEncoding;
 class KNewMenu;
 class KTabBar;
 class KUrl;
@@ -63,14 +64,6 @@ class DolphinMainWindow: public KXmlGuiWindow
 
 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.
@@ -270,18 +263,15 @@ private slots:
     /** 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();
 
@@ -429,6 +419,13 @@ private:
 
     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
@@ -465,11 +462,10 @@ private:
     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;