summaryrefslogtreecommitdiff
path: root/src/gui/listbox.cpp
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2008-04-07 15:23:07 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2008-04-07 15:23:07 +0000
commit92950d2f309550e21b33d851ef9bbf7906ce5e50 (patch)
tree18a6d2539c6e004e52cbebb1e61d8f8f0344f9a0 /src/gui/listbox.cpp
parent3f3ba5f3e18b0a5093e7275aee574ecd6f293ec6 (diff)
downloadmana-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/listbox.cpp')
-rw-r--r--src/gui/listbox.cpp21
1 files changed, 0 insertions, 21 deletions
diff --git a/src/gui/listbox.cpp b/src/gui/listbox.cpp
index 94e8b38c..634afa07 100644
--- a/src/gui/listbox.cpp
+++ b/src/gui/listbox.cpp
@@ -23,8 +23,6 @@
#include "listbox.h"
-#include "selectionlistener.h"
-
#include <guichan/font.hpp>
#include <guichan/graphics.hpp>
#include <guichan/listmodel.hpp>
@@ -62,28 +60,9 @@ void ListBox::draw(gcn::Graphics *graphics)
}
void
-ListBox::setSelected(int selected)
-{
- gcn::ListBox::setSelected(selected);
- fireSelectionChangedEvent();
-}
-
-void
ListBox::mouseDragged(gcn::MouseEvent &event)
{
// Pretend mouse is pressed continuously while dragged. Causes list
// selection to be updated as is default in many GUIs.
mousePressed(event);
}
-
-void ListBox::fireSelectionChangedEvent()
-{
- SelectionEvent event(this);
- SelectionListeners::iterator i_end = mListeners.end();
- SelectionListeners::iterator i;
-
- for (i = mListeners.begin(); i != i_end; ++i)
- {
- (*i)->selectionChanged(event);
- }
-}