]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/dolphinmainwindow.h
First version of a unit test for KItemListController
[dolphin.git] / src / dolphinmainwindow.h
index 6736e24aaa089461a86dfc87c7ad447db024e338..c2a548906966c302a4b9183c6142b603cd5e53e5 100644 (file)
@@ -301,6 +301,11 @@ private slots:
      */
     void goUp(Qt::MouseButtons buttons);
 
+    /**
+     * Open the home URL in a new tab
+     */
+    void goHome(Qt::MouseButtons buttons);
+
     /** Opens Kompare for 2 selected files. */
     void compareFiles();
 
@@ -531,13 +536,15 @@ private:
     QString squeezedText(const QString& text) const;
 
     /**
-     * Adds a clone of the action \a action to the action-collection with
-     * the name \a actionName, so that the action \a action also can be
-     * added to the toolbar by the user. This is useful if the creation of
-     * \a action is e.g. done in Qt and hence cannot be added directly
-     * to the action-collection.
+     * Creates an action for showing/hiding a panel, that is accessible
+     * in "Configure toolbars..." and "Configure shortcuts...". This is necessary
+     * as the action for toggling the dock visibility is done by Qt which
+     * is no KAction instance.
      */
-    void addActionCloneToCollection(QAction* action, const QString& actionName);
+    void createPanelAction(const KIcon& icon,
+                           const QKeySequence& shortcut,
+                           QAction* dockAction,
+                           const QString& actionName);
 
 private:
     /**
@@ -563,8 +570,9 @@ private:
     // Members for the tab-handling:
     struct ViewTab
     {
-        ViewTab() : isPrimaryViewActive(true), primaryView(0), secondaryView(0), splitter(0) {}
+        ViewTab() : isPrimaryViewActive(true), wasActive(false), primaryView(0), secondaryView(0), splitter(0) {}
         bool isPrimaryViewActive;
+        bool wasActive;
         DolphinViewContainer* primaryView;
         DolphinViewContainer* secondaryView;
         QSplitter* splitter;