summaryrefslogtreecommitdiff
path: root/src/gui/windows/shopwindow.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-01-27 23:15:33 +0300
committerAndrei Karas <akaras@inbox.ru>2015-01-27 23:15:33 +0300
commitffaadb3ddad5b8577786f7176e4415db68f115f0 (patch)
treef68658325c9fef107e6129180a6142342187eedd /src/gui/windows/shopwindow.h
parent8b4892c3ae052a48f6de65846981373584329f1a (diff)
downloadmanaverse-ffaadb3ddad5b8577786f7176e4415db68f115f0.tar.gz
manaverse-ffaadb3ddad5b8577786f7176e4415db68f115f0.tar.bz2
manaverse-ffaadb3ddad5b8577786f7176e4415db68f115f0.tar.xz
manaverse-ffaadb3ddad5b8577786f7176e4415db68f115f0.zip
Redesign shop window into tabbed window.
Diffstat (limited to 'src/gui/windows/shopwindow.h')
-rw-r--r--src/gui/windows/shopwindow.h22
1 files changed, 10 insertions, 12 deletions
diff --git a/src/gui/windows/shopwindow.h b/src/gui/windows/shopwindow.h
index c8ad56294..8ab765e3c 100644
--- a/src/gui/windows/shopwindow.h
+++ b/src/gui/windows/shopwindow.h
@@ -36,6 +36,7 @@ class ScrollArea;
class ShopItem;
class ShopItems;
class ShopListBox;
+class TabStrip;
/**
* The buy dialog.
@@ -140,6 +141,8 @@ class ShopWindow final : public Window,
private:
void startTrade();
+ void updateSelection();
+
typedef std::list<ShopWindow*> DialogList;
static DialogList instances;
@@ -151,19 +154,13 @@ class ShopWindow final : public Window,
ShopListBox *mBuyShopItemList;
ShopListBox *mSellShopItemList;
- ScrollArea *mBuyScrollArea;
- ScrollArea *mSellScrollArea;
- Label *mBuyLabel;
- Label *mSellLabel;
- Button *mBuyAddButton;
- Button *mBuyDeleteButton;
- Button *mBuyAnnounceButton;
- Button *mBuyAuctionButton;
- Button *mSellAddButton;
- Button *mSellDeleteButton;
- Button *mSellAnnounceButton;
- Button *mSellAuctionButton;
+ ShopListBox *mCurrentShopItemList;
+ ScrollArea *mScrollArea;
+ Button *mAddButton;
+ Button *mDeleteButton;
+ Button *mAnnounceButton;
CheckBox *mAnnounceLinks;
+ TabStrip *mTabs;
std::string mAcceptPlayer;
std::string mTradeNick;
int mSelectedItem;
@@ -173,6 +170,7 @@ class ShopWindow final : public Window,
int mRandCounter;
int mTradeMoney;
int mAnnounceCounter[2];
+ bool isBuySelected;
};
extern ShopWindow *shopWindow;