summaryrefslogtreecommitdiff
path: root/src/gui/windows/shopwindow.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-02-16 23:08:07 +0300
committerAndrei Karas <akaras@inbox.ru>2015-02-16 23:08:07 +0300
commit0561612345f979a3c59ed4feeeddf6491974905a (patch)
treecc8697f8628f34671bb388a86fbfb11ae0015151 /src/gui/windows/shopwindow.h
parentf6b355a4237ddcfa49ab07a1083777a9d171675d (diff)
downloadplus-0561612345f979a3c59ed4feeeddf6491974905a.tar.gz
plus-0561612345f979a3c59ed4feeeddf6491974905a.tar.bz2
plus-0561612345f979a3c59ed4feeeddf6491974905a.tar.xz
plus-0561612345f979a3c59ed4feeeddf6491974905a.zip
Build vendingslotslistener only if eathena support enabled.
Diffstat (limited to 'src/gui/windows/shopwindow.h')
-rw-r--r--src/gui/windows/shopwindow.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/gui/windows/shopwindow.h b/src/gui/windows/shopwindow.h
index 3b418a6da..cff596f5c 100644
--- a/src/gui/windows/shopwindow.h
+++ b/src/gui/windows/shopwindow.h
@@ -47,9 +47,9 @@ class TabStrip;
* \ingroup Interface
*/
class ShopWindow final : public Window,
- public VendingSlotsListener,
#ifdef EATHENA_SUPPORT
public VendingModeListener,
+ public VendingSlotsListener,
public BuyingStoreModeListener,
public BuyingStoreSlotsListener,
#endif
@@ -147,24 +147,26 @@ class ShopWindow final : public Window,
bool isShopEmpty() const A_WARN_UNUSED;
- void vendingSlotsChanged(const int slots) override final;
-
#ifdef EATHENA_SUPPORT
void vendingEnabled(const bool b) override final;
+ void vendingSlotsChanged(const int slots) override final;
+
void buyingStoreEnabled(const bool b) override final;
void buyingStoreSlotsChanged(const int slots) override final;
-#endif
void setShopName(const std::string &name);
+#endif
private:
void startTrade();
void updateSelection();
+#ifdef EATHENA_SUPPORT
void updateShopName();
+#endif
typedef std::list<ShopWindow*> DialogList;
static DialogList instances;