summaryrefslogtreecommitdiff
path: root/src/gui/windowmenu.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-02-07 18:03:09 +0200
committerAndrei Karas <akaras@inbox.ru>2011-02-07 18:03:09 +0200
commitb2ce88bae2b95adb612456d9659669d6b686de7b (patch)
treeb165a1f2a98c4c99ce1c0a142a53e71f3d0b3b00 /src/gui/windowmenu.h
parent2c765dc21314b1b32f7a75686571127f8af38bf9 (diff)
downloadmv-b2ce88bae2b95adb612456d9659669d6b686de7b.tar.gz
mv-b2ce88bae2b95adb612456d9659669d6b686de7b.tar.bz2
mv-b2ce88bae2b95adb612456d9659669d6b686de7b.tar.xz
mv-b2ce88bae2b95adb612456d9659669d6b686de7b.zip
Add ability to show/hide buttons in top right window corner.
Diffstat (limited to 'src/gui/windowmenu.h')
-rw-r--r--src/gui/windowmenu.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/gui/windowmenu.h b/src/gui/windowmenu.h
index f619a161a..6486fc62c 100644
--- a/src/gui/windowmenu.h
+++ b/src/gui/windowmenu.h
@@ -67,10 +67,21 @@ class WindowMenu : public Container,
std::map <std::string, gcn::Button*> &getButtonNames()
{ return mButtonNames; }
+ std::list <gcn::Button*> &getButtons()
+ { return mButtons; }
+
+ void showButton(std::string name, bool isVisible);
+
+ void loadButtons();
+
+ void saveButtons();
+
private:
inline void addButton(const char* text, std::string description,
int &x, int &h, int key);
+ void updateButtons();
+
EmotePopup *mEmotePopup;
TextPopup *mTextPopup;
std::list <gcn::Button*> mButtons;