summaryrefslogtreecommitdiff
path: root/src/gui/buy.h
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2008-04-07 15:23:07 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2008-04-07 15:23:07 +0000
commit92950d2f309550e21b33d851ef9bbf7906ce5e50 (patch)
tree18a6d2539c6e004e52cbebb1e61d8f8f0344f9a0 /src/gui/buy.h
parent3f3ba5f3e18b0a5093e7275aee574ecd6f293ec6 (diff)
downloadmana-client-92950d2f309550e21b33d851ef9bbf7906ce5e50.tar.gz
mana-client-92950d2f309550e21b33d851ef9bbf7906ce5e50.tar.bz2
mana-client-92950d2f309550e21b33d851ef9bbf7906ce5e50.tar.xz
mana-client-92950d2f309550e21b33d851ef9bbf7906ce5e50.zip
Upgraded to Guichan 0.8.0 (merge from guichan-0.8 branch, except for
gcn::TabbedArea usage)
Diffstat (limited to 'src/gui/buy.h')
-rw-r--r--src/gui/buy.h14
1 files changed, 6 insertions, 8 deletions
diff --git a/src/gui/buy.h b/src/gui/buy.h
index 5ee7ab95..3a9ea3c5 100644
--- a/src/gui/buy.h
+++ b/src/gui/buy.h
@@ -25,9 +25,9 @@
#define _TMW_BUY_H
#include <guichan/actionlistener.hpp>
+#include <guichan/selectionlistener.hpp>
#include "window.h"
-#include "selectionlistener.h"
#include "../guichanfwd.h"
@@ -41,8 +41,8 @@ class ListBox;
*
* \ingroup Interface
*/
-class BuyDialog : public Window, public gcn::ActionListener, SelectionListener,
- WindowListener
+class BuyDialog : public Window, public gcn::ActionListener,
+ gcn::SelectionListener
{
public:
/**
@@ -84,10 +84,8 @@ class BuyDialog : public Window, public gcn::ActionListener, SelectionListener,
/**
* Updates the labels according to the selected item.
- *
- * @see SelectionListener::selectionChanged
*/
- void selectionChanged(const SelectionEvent &event);
+ void valueChanged(const gcn::SelectionEvent &event);
/**
* Returns the name of item number i in the shop inventory.
@@ -101,9 +99,9 @@ class BuyDialog : public Window, public gcn::ActionListener, SelectionListener,
updateButtonsAndLabels();
/**
- * Called whenever the window is resized.
+ * Called whenever the widget changes size.
*/
- void windowResized(const WindowEvent &event);
+ void widgetResized(const gcn::Event &event);
private:
Network *mNetwork;