summaryrefslogtreecommitdiff
path: root/src/gui/trade.h
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2009-01-01 04:01:00 +0100
committerBjørn Lindeijer <bjorn@lindeijer.nl>2009-01-01 04:01:00 +0100
commit69dddef124d870a874b544e478d4c19616fe8370 (patch)
tree1a1173d8a2f2a21a52b39304caad8154740dfc91 /src/gui/trade.h
parent68091131170ceec23a4a34f38c05cd233ac2db65 (diff)
downloadmana-client-69dddef124d870a874b544e478d4c19616fe8370.tar.gz
mana-client-69dddef124d870a874b544e478d4c19616fe8370.tar.bz2
mana-client-69dddef124d870a874b544e478d4c19616fe8370.tar.xz
mana-client-69dddef124d870a874b544e478d4c19616fe8370.zip
Made trade window resizable
Also fixed overlap between description label and the buttons and added the SDL_ttf library to the Code::Blocks project file.
Diffstat (limited to 'src/gui/trade.h')
-rw-r--r--src/gui/trade.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/gui/trade.h b/src/gui/trade.h
index 5d587991..fafe138a 100644
--- a/src/gui/trade.h
+++ b/src/gui/trade.h
@@ -56,6 +56,13 @@ class TradeWindow : public Window, gcn::ActionListener, gcn::SelectionListener
~TradeWindow();
/**
+ * Called when resizing the window.
+ *
+ * @param event The calling event
+ */
+ void widgetResized(const gcn::Event &event);
+
+ /**
* Add money to the trade window.
*/
void addMoney(int quantity);
@@ -98,8 +105,7 @@ class TradeWindow : public Window, gcn::ActionListener, gcn::SelectionListener
/**
* Send trade packet.
*/
- void
- tradeItem(Item *item, int quantity);
+ void tradeItem(Item *item, int quantity);
/**
* Updates the labels and makes sure only one item is selected in