summaryrefslogtreecommitdiff
path: root/src/gui/windows/shopwindow.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-02-14 23:28:02 +0300
committerAndrei Karas <akaras@inbox.ru>2015-02-14 23:28:02 +0300
commitc7f54151ba693e7f57378b77cc567d5aa26cf4cf (patch)
tree653165d368da9fc58c9dbb5a8161e4e420a0b37c /src/gui/windows/shopwindow.h
parentc26624e72bb8d60bc1fa13cd5a178e06579e49a4 (diff)
downloadmanaverse-c7f54151ba693e7f57378b77cc567d5aa26cf4cf.tar.gz
manaverse-c7f54151ba693e7f57378b77cc567d5aa26cf4cf.tar.bz2
manaverse-c7f54151ba693e7f57378b77cc567d5aa26cf4cf.tar.xz
manaverse-c7f54151ba693e7f57378b77cc567d5aa26cf4cf.zip
Enable publish button in personal buy shop only if it allowed by server.
Diffstat (limited to 'src/gui/windows/shopwindow.h')
-rw-r--r--src/gui/windows/shopwindow.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/gui/windows/shopwindow.h b/src/gui/windows/shopwindow.h
index 0acc814b1..e3398d093 100644
--- a/src/gui/windows/shopwindow.h
+++ b/src/gui/windows/shopwindow.h
@@ -26,6 +26,7 @@
#include "gui/widgets/window.h"
#include "listeners/actionlistener.h"
+#include "listeners/buyingstoreslotslistener.h"
#include "listeners/selectionlistener.h"
#include "listeners/vendingmodelistener.h"
#include "listeners/vendingslotslistener.h"
@@ -48,7 +49,8 @@ class ShopWindow final : public Window,
public ActionListener,
public SelectionListener,
public VendingModeListener,
- public VendingSlotsListener
+ public VendingSlotsListener,
+ public BuyingStoreSlotsListener
{
public:
enum ShopMode
@@ -143,6 +145,8 @@ class ShopWindow final : public Window,
void vendingSlotsChanged(const int slots) override final;
+ void buyingStoreSlotsChanged(const int slots) override final;
+
void vendingEnabled(const bool b) override final;
void setShopName(const std::string &name);
@@ -184,6 +188,7 @@ class ShopWindow final : public Window,
int mRandCounter;
int mTradeMoney;
int mSellShopSize;
+ int mBuyShopSize;
bool isBuySelected;
bool mHaveVending;
bool mEnableVending;