┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphintabwidget.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/dolphintabwidget.h')
-rw-r--r--src/dolphintabwidget.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/dolphintabwidget.h b/src/dolphintabwidget.h
index ba2fd4867..b4493f7ed 100644
--- a/src/dolphintabwidget.h
+++ b/src/dolphintabwidget.h
@@ -40,6 +40,18 @@ public:
DolphinTabPage* currentTabPage() const;
/**
+ * @return the next tab page. If the current active tab is the last tab,
+ * it returns the first tab. If there is only one tab, returns nullptr
+ */
+ DolphinTabPage* nextTabPage() const;
+
+ /**
+ * @return the previous tab page. If the current active tab is the first tab,
+ * it returns the last tab. If there is only one tab, returns nullptr
+ */
+ DolphinTabPage* prevTabPage() const;
+
+ /**
* @return Tab page at the given \a index (can be 0 if the index is out-of-range)
*/
DolphinTabPage* tabPageAt(const int index) const;
@@ -187,7 +199,7 @@ private:
/** Caches the (negated) places panel visibility */
bool m_placesSelectorVisible;
- int m_previousTab;
+ int m_lastViewedTab;
};
#endif