summaryrefslogtreecommitdiff
path: root/src/gui/tabbedcontainer.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/tabbedcontainer.h')
-rw-r--r--src/gui/tabbedcontainer.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/gui/tabbedcontainer.h b/src/gui/tabbedcontainer.h
index babf68a2..2fc41247 100644
--- a/src/gui/tabbedcontainer.h
+++ b/src/gui/tabbedcontainer.h
@@ -23,8 +23,8 @@
#define _TMW_TABPANE_H
#include <iosfwd>
-#include <vector>
#include <map>
+#include <vector>
#include <guichan/actionlistener.hpp>
@@ -35,7 +35,8 @@
class TabbedContainer : public gcn::Container, public gcn::ActionListener
{
public:
- TabbedContainer();
+ TabbedContainer(int width, int padX, int buttonHeight,
+ int height, int padY, int buttonsPerRow);
~TabbedContainer();
void addTab(gcn::Widget *widget, const std::string &caption);
@@ -60,6 +61,14 @@ class TabbedContainer : public gcn::Container, public gcn::ActionListener
std::map<gcn::Widget*, std::string> mWidgets;
gcn::Widget *mActiveContent;
+
+ int mWidth; /**< The total width of all buttons */
+ int mPadX; /**< The horizontal gap between buttons */
+ int mButtonHeight; /**< The height of each button */
+ int mHeight; /**< Height of the panel */
+ int mPadY; /**< The vertical gap between buttons */
+ int mButtonsPerRow; /**< The number of buttons on each row */
+ int mButtonWidth; /**< The width of each button */
};
#endif