summaryrefslogtreecommitdiff
path: root/src/gui/buy.h
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2007-08-28 00:01:38 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2007-08-28 00:01:38 +0000
commit55786731e0517efdc123d4e8245b2aa94fa55cbe (patch)
tree17d64454f3daeb9f55241e8c9a95b5671f2da023 /src/gui/buy.h
parent76291862ce0e26040f251bc4764539d8ff6634a0 (diff)
downloadmana-55786731e0517efdc123d4e8245b2aa94fa55cbe.tar.gz
mana-55786731e0517efdc123d4e8245b2aa94fa55cbe.tar.bz2
mana-55786731e0517efdc123d4e8245b2aa94fa55cbe.tar.xz
mana-55786731e0517efdc123d4e8245b2aa94fa55cbe.zip
Made buy dialog resizable and added a WindowListener class for listening for
window resize and move events.
Diffstat (limited to 'src/gui/buy.h')
-rw-r--r--src/gui/buy.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/gui/buy.h b/src/gui/buy.h
index 8f1893dc..d8016216 100644
--- a/src/gui/buy.h
+++ b/src/gui/buy.h
@@ -41,7 +41,8 @@ class ListBox;
*
* \ingroup Interface
*/
-class BuyDialog : public Window, public gcn::ActionListener, SelectionListener
+class BuyDialog : public Window, public gcn::ActionListener, SelectionListener,
+ WindowListener
{
public:
/**
@@ -99,6 +100,11 @@ class BuyDialog : public Window, public gcn::ActionListener, SelectionListener
void
updateButtonsAndLabels();
+ /**
+ * Called whenever the window is resized.
+ */
+ void windowResized(const WindowEvent &event);
+
private:
Network *mNetwork;
gcn::Button *mBuyButton;