]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/dolphintabwidget.h
Fix Wayland window activation when attaching to an existing instance
[dolphin.git] / src / dolphintabwidget.h
index 8342d719d12978152646e83a5ac4b280f4375658..24d9e228b4ff9dafcf172af60cc3f4f616c5ed4f 100644 (file)
@@ -226,6 +226,21 @@ private:
         const int tabIndex;
         const bool isInPrimaryView;
     };
+
+    /**
+     * Getter for a view container.
+     * @param viewIndex specifies the tab and the view within that tab.
+     * @return the view container specified in @p viewIndex or nullptr if it doesn't exist.
+     */
+    DolphinViewContainer *viewContainerAt(ViewIndex viewIndex) const;
+
+    /**
+     * Makes the view container specified in @p viewIndex become the active view container within this tab widget.
+     * @param viewIndex Specifies the tab to activate and the view container within the tab to activate.
+     * @return the freshly activated view container or nullptr if there is no view container at @p viewIndex.
+     */
+    DolphinViewContainer *activateViewContainerAt(ViewIndex viewIndex);
+
     /**
      * Get the position of the view within this widget that is open at @p directory.
      * @param directory The URL of the directory we want to find.