summaryrefslogtreecommitdiff
path: root/src/gui/trade.h
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2006-09-03 16:47:48 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2006-09-03 16:47:48 +0000
commitfe3ecae6936b41045b405fb5055a9ad754ddec3b (patch)
treeadfcc1071e96fb26b08bb9d5d06fda70c03aeff9 /src/gui/trade.h
parent77efbb50066a030d1f44f8de8d06ace9f284e3a2 (diff)
downloadmana-fe3ecae6936b41045b405fb5055a9ad754ddec3b.tar.gz
mana-fe3ecae6936b41045b405fb5055a9ad754ddec3b.tar.bz2
mana-fe3ecae6936b41045b405fb5055a9ad754ddec3b.tar.xz
mana-fe3ecae6936b41045b405fb5055a9ad754ddec3b.zip
Fixed updating of labels in trade window.
Diffstat (limited to 'src/gui/trade.h')
-rw-r--r--src/gui/trade.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/gui/trade.h b/src/gui/trade.h
index eb3c0f97..339fc4e3 100644
--- a/src/gui/trade.h
+++ b/src/gui/trade.h
@@ -29,6 +29,7 @@
#include <guichan/actionlistener.hpp>
#include "window.h"
+#include "selectionlistener.h"
#include "../guichanfwd.h"
@@ -43,7 +44,7 @@ class ScrollArea;
*
* \ingroup Interface
*/
-class TradeWindow : public Window, gcn::ActionListener
+class TradeWindow : public Window, gcn::ActionListener, SelectionListener
{
public:
/**
@@ -103,14 +104,15 @@ class TradeWindow : public Window, gcn::ActionListener
tradeItem(Item *item, int quantity);
/**
- * Called on mouse click.
+ * Updates the labels and makes sure only one item is selected in
+ * either my inventory or partner inventory.
*/
- void mouseClick(int x, int y, int button, int count);
+ void selectionChanged(const SelectionEvent &event);
/**
* Called when receiving actions from the widgets.
*/
- void action(const std::string& eventId, gcn::Widget* widget);
+ void action(const std::string &eventId, gcn::Widget *widget);
private:
Network *mNetwork;