summaryrefslogtreecommitdiff
path: root/src/gui/sell.h
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2007-08-29 00:31:59 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2007-08-29 00:31:59 +0000
commitc8c4fd4850b543215faf4de83cc0f93c17b5a038 (patch)
tree55776c951c1dee2500d645542a3cb548a2f036b0 /src/gui/sell.h
parent3641a74507d692a7fbababfd8beb738f71e48acb (diff)
downloadmana-client-c8c4fd4850b543215faf4de83cc0f93c17b5a038.tar.gz
mana-client-c8c4fd4850b543215faf4de83cc0f93c17b5a038.tar.bz2
mana-client-c8c4fd4850b543215faf4de83cc0f93c17b5a038.tar.xz
mana-client-c8c4fd4850b543215faf4de83cc0f93c17b5a038.zip
Made sell dialog resizable and tweaked inventory resize code a bit.
Diffstat (limited to 'src/gui/sell.h')
-rw-r--r--src/gui/sell.h16
1 files changed, 12 insertions, 4 deletions
diff --git a/src/gui/sell.h b/src/gui/sell.h
index d3ea7136..d5c70c45 100644
--- a/src/gui/sell.h
+++ b/src/gui/sell.h
@@ -28,6 +28,7 @@
#include "window.h"
#include "selectionlistener.h"
+#include "windowlistener.h"
#include "../guichanfwd.h"
@@ -41,7 +42,8 @@ class ShopListBox;
*
* \ingroup Interface
*/
-class SellDialog : public Window, gcn::ActionListener, SelectionListener
+class SellDialog : public Window, gcn::ActionListener, SelectionListener,
+ WindowListener
{
public:
/**
@@ -79,22 +81,28 @@ class SellDialog : public Window, gcn::ActionListener, SelectionListener
void selectionChanged(const SelectionEvent &event);
/**
+ * Called whenever the window is resized.
+ */
+ void windowResized(const WindowEvent &event);
+
+ /**
* Gives Player's Money amount
*/
void setMoney(int amount);
+ private:
/**
* Updates the state of buttons and labels.
*/
- void
- updateButtonsAndLabels();
+ void updateButtonsAndLabels();
- private:
Network *mNetwork;
gcn::Button *mSellButton;
+ gcn::Button *mQuitButton;
gcn::Button *mIncreaseButton;
gcn::Button *mDecreaseButton;
ShopListBox *mShopItemList;
+ gcn::ScrollArea *mScrollArea;
gcn::Label *mMoneyLabel;
gcn::Label *mItemDescLabel;
gcn::Label *mItemEffectLabel;