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
committerIra Rice <irarice@gmail.com>2009-01-05 20:51:29 -0700
commitd87d6368b23fe11e5217d674ed1a4bad05d9bf90 (patch)
treed82c7fc1f629fe4806c6d4ce8f8be5902ccc3b8a /src/gui/trade.h
parent4a4b1d993a1c230b0769630949187f299ec6072c (diff)
downloadmana-client-d87d6368b23fe11e5217d674ed1a4bad05d9bf90.tar.gz
mana-client-d87d6368b23fe11e5217d674ed1a4bad05d9bf90.tar.bz2
mana-client-d87d6368b23fe11e5217d674ed1a4bad05d9bf90.tar.xz
mana-client-d87d6368b23fe11e5217d674ed1a4bad05d9bf90.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