summaryrefslogtreecommitdiff
path: root/src/gui/widgets/tabs/socialtab.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-08-18 22:05:19 +0300
committerAndrei Karas <akaras@inbox.ru>2016-08-18 22:05:19 +0300
commit9f2993aaa89a4a837455e78a4e00826a779b036c (patch)
treec36c593f320c9590a04b0791d1239ae4ebb94f57 /src/gui/widgets/tabs/socialtab.h
parent215ce3e68738159ec98056874a4ad86e451418d0 (diff)
downloadmv-9f2993aaa89a4a837455e78a4e00826a779b036c.tar.gz
mv-9f2993aaa89a4a837455e78a4e00826a779b036c.tar.bz2
mv-9f2993aaa89a4a837455e78a4e00826a779b036c.tar.xz
mv-9f2993aaa89a4a837455e78a4e00826a779b036c.zip
Add baic menu into social window menu button.
Allow create/leave party or guild.
Diffstat (limited to 'src/gui/widgets/tabs/socialtab.h')
-rw-r--r--src/gui/widgets/tabs/socialtab.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/gui/widgets/tabs/socialtab.h b/src/gui/widgets/tabs/socialtab.h
index dfd6ad828..9d8469321 100644
--- a/src/gui/widgets/tabs/socialtab.h
+++ b/src/gui/widgets/tabs/socialtab.h
@@ -80,7 +80,8 @@ class SocialTab notfinal : public Tab
mConfirmDialog(nullptr),
mScroll(nullptr),
mList(nullptr),
- mCounterString()
+ mCounterString(),
+ mMenuAction("menu")
{
}
@@ -116,12 +117,19 @@ class SocialTab notfinal : public Tab
void setCurrent() override final
{
updateCounter();
+ updateMenu();
}
void updateCounter() const
{
if (socialWindow)
- socialWindow->setCounter(this, mCounterString);
+ socialWindow->updateCounter(this, mCounterString);
+ }
+
+ void updateMenu() const
+ {
+ if (socialWindow)
+ socialWindow->updateMenu(this, mMenuAction);
}
TextDialog *mInviteDialog;
@@ -129,6 +137,7 @@ class SocialTab notfinal : public Tab
ScrollArea *mScroll;
AvatarListBox *mList;
std::string mCounterString;
+ std::string mMenuAction;
};
#endif // GUI_WIDGETS_TABS_SOCIALTAB_H