From d42e9ea834a07c6f60dd5248db6520d1ff423ac4 Mon Sep 17 00:00:00 2001 From: Bjørn Lindeijer Date: Thu, 19 May 2005 11:43:41 +0000 Subject: Made item amount window a modal dialog and removed support for old map format. --- src/gui/trade.h | 24 ++++++++++-------------- 1 file changed, 10 insertions(+), 14 deletions(-) (limited to 'src/gui/trade.h') diff --git a/src/gui/trade.h b/src/gui/trade.h index 09e56d06..90c688c3 100644 --- a/src/gui/trade.h +++ b/src/gui/trade.h @@ -22,7 +22,7 @@ */ #ifndef _TMW_TRADE_H -#define _TMW_TRADE_H +#define _TMW_TRADE_H #include "../log.h" #include "../net/network.h" @@ -37,7 +37,8 @@ * * \ingroup Interface */ -class TradeWindow : public Window, gcn::ActionListener { +class TradeWindow : public Window, gcn::ActionListener +{ public: /** * Constructor. @@ -49,11 +50,6 @@ class TradeWindow : public Window, gcn::ActionListener { */ ~TradeWindow(); - /** - * Draws the trade window. - */ - void draw(gcn::Graphics *graphics); - /** * Add an item the trade window. */ @@ -78,35 +74,35 @@ class TradeWindow : public Window, gcn::ActionListener { * Increase quantity of an item. */ void increaseQuantity(int index, bool own, int quantity); - + /** * Set trade Button disabled */ void setTradeButton(bool enabled); - + /** * Player received ok message from server */ void receivedOk(bool own); - + /** * Send trade packet. */ void TradeWindow::tradeItem(int index, int quantity); - + /** * Called on mouse click. */ void mouseClick(int x, int y, int button, int count); - + /** * Called when receiving actions from the widgets. */ void action(const std::string& eventId); - + ItemContainer *myItems; ItemContainer *partnerItems; - + private: gcn::Label *itemNameLabel; gcn::Label *itemDescriptionLabel; -- cgit v1.2.3-70-g09d2