diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2008-04-07 15:23:07 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2008-04-07 15:23:07 +0000 |
commit | 92950d2f309550e21b33d851ef9bbf7906ce5e50 (patch) | |
tree | 18a6d2539c6e004e52cbebb1e61d8f8f0344f9a0 /src/gui/shoplistbox.cpp | |
parent | 3f3ba5f3e18b0a5093e7275aee574ecd6f293ec6 (diff) | |
download | mana-92950d2f309550e21b33d851ef9bbf7906ce5e50.tar.gz mana-92950d2f309550e21b33d851ef9bbf7906ce5e50.tar.bz2 mana-92950d2f309550e21b33d851ef9bbf7906ce5e50.tar.xz mana-92950d2f309550e21b33d851ef9bbf7906ce5e50.zip |
Upgraded to Guichan 0.8.0 (merge from guichan-0.8 branch, except for
gcn::TabbedArea usage)
Diffstat (limited to 'src/gui/shoplistbox.cpp')
-rw-r--r-- | src/gui/shoplistbox.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/gui/shoplistbox.cpp b/src/gui/shoplistbox.cpp index 4c590e66..026c4aef 100644 --- a/src/gui/shoplistbox.cpp +++ b/src/gui/shoplistbox.cpp @@ -23,8 +23,6 @@ #include "shoplistbox.h" -#include "selectionlistener.h" - #include <guichan/font.hpp> #include <guichan/graphics.hpp> #include <guichan/listmodel.hpp> @@ -101,6 +99,9 @@ void ShopListBox::draw(gcn::Graphics *gcnGraphics) } } +/* TODO: + * This method is no longer virtual, needed to be able to change row height... + * void ShopListBox::setSelected(int selected) { if (!mListModel) @@ -123,15 +124,16 @@ void ShopListBox::setSelected(int selected) } } - fireSelectionChangedEvent(); + distributeValueChangedEvent(); } +*/ void ShopListBox::mousePressed(gcn::MouseEvent &event) { if (event.getButton() == gcn::MouseEvent::LEFT) { setSelected(event.getY() / mRowHeight); - generateAction(); + distributeActionEvent(); } } |