summaryrefslogtreecommitdiff
path: root/src/gui/buysell.h
diff options
context:
space:
mode:
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;