From 55786731e0517efdc123d4e8245b2aa94fa55cbe Mon Sep 17 00:00:00 2001 From: Bjørn Lindeijer Date: Tue, 28 Aug 2007 00:01:38 +0000 Subject: Made buy dialog resizable and added a WindowListener class for listening for window resize and move events. --- src/gui/buy.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/gui/buy.h') 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; -- cgit v1.2.3-70-g09d2