summaryrefslogtreecommitdiff
path: root/src/gui/buysell.h
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2005-02-23 23:46:23 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2005-02-23 23:46:23 +0000
commit5c1093ffa9fea3d979a720169e97ed31725e95c4 (patch)
tree3f40c4000c2f0317e12640eb818a781c3a892497 /src/gui/buysell.h
parent1fcefe616a39c2e572b8078c5c51c8e81a59c487 (diff)
downloadmana-client-5c1093ffa9fea3d979a720169e97ed31725e95c4.tar.gz
mana-client-5c1093ffa9fea3d979a720169e97ed31725e95c4.tar.bz2
mana-client-5c1093ffa9fea3d979a720169e97ed31725e95c4.tar.xz
mana-client-5c1093ffa9fea3d979a720169e97ed31725e95c4.zip
Committed patch by Mra, which fixes multiple NPCs talks in one window and
moves the action listener used with BuySellDialog into that class.
Diffstat (limited to 'src/gui/buysell.h')
-rw-r--r--src/gui/buysell.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/gui/buysell.h b/src/gui/buysell.h
index 2d1d3c29..19c1e859 100644
--- a/src/gui/buysell.h
+++ b/src/gui/buysell.h
@@ -31,7 +31,8 @@
*
* \ingroup GUI
*/
-class BuySellDialog : public Window {
+class BuySellDialog : public Window, public gcn::ActionListener
+{
public:
/**
* Constructor. The action listener passed will receive "sell", "buy"
@@ -39,12 +40,17 @@ class BuySellDialog : public Window {
*
* @see Window::Window
*/
- BuySellDialog(gcn::ActionListener *al);
+ BuySellDialog();
/**
* Destructor.
*/
~BuySellDialog();
+
+ /**
+ * Called when receiving actions from the widgets.
+ */
+ void action(const std::string& eventId);
private:
gcn::Button *buyButton;