diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-06-18 23:35:58 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-06-18 23:39:07 +0300 |
commit | dc6771670569d2f296f4c12595966bbcb9aadf65 (patch) | |
tree | 92e0a21bd121c7abe43f22e1d25a8f17b6969214 /src/gui/widgets/vertcontainer.h | |
parent | 6a10bc8d7d186fd83099c75c2a03409d0881aae9 (diff) | |
download | manaverse-dc6771670569d2f296f4c12595966bbcb9aadf65.tar.gz manaverse-dc6771670569d2f296f4c12595966bbcb9aadf65.tar.bz2 manaverse-dc6771670569d2f296f4c12595966bbcb9aadf65.tar.xz manaverse-dc6771670569d2f296f4c12595966bbcb9aadf65.zip |
Start implimenting new setup pages.
Add new container for setup items. Imporved other containers.
Diffstat (limited to 'src/gui/widgets/vertcontainer.h')
-rw-r--r-- | src/gui/widgets/vertcontainer.h | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/src/gui/widgets/vertcontainer.h b/src/gui/widgets/vertcontainer.h index e96bd5561..268c61d4f 100644 --- a/src/gui/widgets/vertcontainer.h +++ b/src/gui/widgets/vertcontainer.h @@ -40,14 +40,26 @@ class VertContainer : public Container, public gcn::WidgetListener { public: - VertContainer(int spacing); - virtual void add(gcn::Widget *widget); + VertContainer(int verticalItemSize, bool resizable = true, + int leftSpacing = 0); + + virtual void add(gcn::Widget *widget, bool resizable, + int spacing = -1); + + virtual void add(gcn::Widget *widget, int spacing = -1); + virtual void clear(); + void widgetResized(const gcn::Event &event); private: - int mSpacing; + std::list<gcn::Widget*> mResizableWidgets; + int mVerticalItemSize; int mCount; + int mNextY; + int mLeftSpacing; + int mVerticalSpacing; + bool mResizable; }; #endif |