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/skill.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/skill.cpp')
-rw-r--r-- | src/gui/skill.cpp | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/src/gui/skill.cpp b/src/gui/skill.cpp index f86d2356..44cbd314 100644 --- a/src/gui/skill.cpp +++ b/src/gui/skill.cpp @@ -71,15 +71,12 @@ SkillDialog::SkillDialog(): skillListBox = new ListBox(this); skillScrollArea = new ScrollArea(skillListBox); pointsLabel = new gcn::Label("Skill Points:"); - incButton = new Button("Up"); - useButton = new Button("Use"); + incButton = new Button("Up", "inc", this); + useButton = new Button("Use", "use", this); useButton->setEnabled(false); - closeButton = new Button("Close"); + closeButton = new Button("Close", "close", this); skillListBox->setEventId("skill"); - incButton->setEventId("inc"); - useButton->setEventId("use"); - closeButton->setEventId("close"); skillScrollArea->setHorizontalScrollPolicy(gcn::ScrollArea::SHOW_NEVER); skillScrollArea->setDimension(gcn::Rectangle(5, 5, 230, 180)); @@ -98,9 +95,6 @@ SkillDialog::SkillDialog(): add(closeButton); skillListBox->addActionListener(this); - incButton->addActionListener(this); - useButton->addActionListener(this); - closeButton->addActionListener(this); setLocationRelativeTo(getParent()); loadWindowState(); |