diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2017-04-30 10:30:47 +0200 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2017-04-30 10:30:47 +0200 |
commit | 8fe6d2ec950ed1ebdedd776bab125dff90e5a20f (patch) | |
tree | 08a27b00831425367c1831269008feac14b97028 /plugingui/stackedwidget.h | |
parent | d1e803d4be4cadc3e1204cbd096ae3bbe57c7a95 (diff) |
Add support for rotating the tabs using the scroll-wheel.
Diffstat (limited to 'plugingui/stackedwidget.h')
-rw-r--r-- | plugingui/stackedwidget.h | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/plugingui/stackedwidget.h b/plugingui/stackedwidget.h index 13d764b..24213f7 100644 --- a/plugingui/stackedwidget.h +++ b/plugingui/stackedwidget.h @@ -42,21 +42,29 @@ class StackedWidget : public Widget { public: - StackedWidget(Widget *parent); + StackedWidget(Widget* parent); ~StackedWidget(); //! Add a widget to the stack. - void addWidget(Widget *widget); + void addWidget(Widget* widget); //! Remove a widget from the stack. - void removeWidget(Widget *widget); + void removeWidget(Widget* widget); //! Get currently visible widget. - Widget *getCurrentWidget() const; + Widget* getCurrentWidget() const; //! Show widget. Hide all the others. //! If widget is not in the stack nothing happens. - void setCurrentWidget(Widget *widget); + void setCurrentWidget(Widget* widget); + + //! Returns a pointer to the Widget after the one referenced by 'widget' or + //! nullptr if 'widget' is the last in the list. + Widget* getWidgetAfter(Widget* widget); + + //! Returns a pointer to the Widget beforer the one referenced by 'widget' or + //! nullptr if 'widget' is the first in the list. + Widget* getWidgetBefore(Widget* widget); //! Reports whn a new widget is shown. Notifier<Widget*> currentChanged; |