diff options
author | Björn Steinbrink <B.Steinbrink@gmx.de> | 2006-03-09 02:02:57 +0000 |
---|---|---|
committer | Björn Steinbrink <B.Steinbrink@gmx.de> | 2006-03-09 02:02:57 +0000 |
commit | 81cf85e9ec1d37dc6e8dd9883f42bb50dace9135 (patch) | |
tree | 585415bbb85c48fc8fb83cd5f54e1cfe8e988ee7 /src/gui/sell.cpp | |
parent | 78ab0ec914d3c5a97f162905afb3dede53f8b9ed (diff) | |
download | mana-81cf85e9ec1d37dc6e8dd9883f42bb50dace9135.tar.gz mana-81cf85e9ec1d37dc6e8dd9883f42bb50dace9135.tar.bz2 mana-81cf85e9ec1d37dc6e8dd9883f42bb50dace9135.tar.xz mana-81cf85e9ec1d37dc6e8dd9883f42bb50dace9135.zip |
Made the Button ctor accept eventId and action listener.
Diffstat (limited to 'src/gui/sell.cpp')
-rw-r--r-- | src/gui/sell.cpp | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/src/gui/sell.cpp b/src/gui/sell.cpp index 89aec044..0ab20660 100644 --- a/src/gui/sell.cpp +++ b/src/gui/sell.cpp @@ -58,10 +58,10 @@ SellDialog::SellDialog(Network *network): moneyLabel = new gcn::Label("Price: 0"); itemDescLabel = new gcn::Label("Description:"); itemEffectLabel = new gcn::Label("Effect:"); - increaseButton = new Button("+"); - decreaseButton = new Button("-"); - sellButton = new Button("Sell"); - quitButton = new Button("Quit"); + increaseButton = new Button("+", "+", this); + decreaseButton = new Button("-", "-", this); + sellButton = new Button("Sell", "sell", this); + quitButton = new Button("Quit", "quit", this); sellButton->setEnabled(false); setContentSize(260, 210); @@ -93,17 +93,9 @@ SellDialog::SellDialog(Network *network): itemList->setEventId("item"); slider->setEventId("slider"); - increaseButton->setEventId("+"); - decreaseButton->setEventId("-"); - sellButton->setEventId("sell"); - quitButton->setEventId("quit"); itemList->addActionListener(this); slider->addActionListener(this); - increaseButton->addActionListener(this); - decreaseButton->addActionListener(this); - sellButton->addActionListener(this); - quitButton->addActionListener(this); add(scrollArea); add(slider); |