From 4317e7371e0acd39fe2ef76fc20a902f5cabdd42 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Nusser?= Date: Sun, 16 Apr 2017 12:55:42 +0200 Subject: Add new tabs to the main window. --- plugingui/tabwidget.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'plugingui/tabwidget.h') diff --git a/plugingui/tabwidget.h b/plugingui/tabwidget.h index 5a67743..d35550f 100644 --- a/plugingui/tabwidget.h +++ b/plugingui/tabwidget.h @@ -29,6 +29,7 @@ #include "widget.h" #include "tabbutton.h" #include "stackedwidget.h" +#include "texture.h" namespace GUI { @@ -44,15 +45,27 @@ public: //! \param widget The widget to show in the tab. void addTab(const std::string& title, Widget* widget); + std::size_t getBarHeight() const; + private: //! Callback for Widget::sizeChangeNotifier void sizeChanged(int width, int height); private: void switchTab(Widget* tabWidget); + void setActiveButtons(Widget* current_widget); std::list buttons; StackedWidget stack; + + TexturedBox topbar{getImageCache(), ":topbar.png", + 0, 0, // atlas offset (x, y) + 1, 1, 1, // dx1, dx2, dx3 + 17, 1, 1}; // dy1, dy2, dy3 + + Texture toplogo{getImageCache(), ":toplogo.png", + 0, 0, // atlas offset (x, y) + 95, 17}; // width, height }; } // GUI:: -- cgit v1.2.3