summaryrefslogtreecommitdiff
path: root/src/gui/widgets/popuplist.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-12-16 00:43:47 +0300
committerAndrei Karas <akaras@inbox.ru>2012-12-16 00:56:57 +0300
commit955c9fcba2a4a8b19389760bc74a59ab2173de02 (patch)
tree50dc69ff5c8a4d94238f51b707db1718e7ae5dcb /src/gui/widgets/popuplist.h
parent661a14c66685de67ec560005c285267fe7098c62 (diff)
downloadplus-955c9fcba2a4a8b19389760bc74a59ab2173de02.tar.gz
plus-955c9fcba2a4a8b19389760bc74a59ab2173de02.tar.bz2
plus-955c9fcba2a4a8b19389760bc74a59ab2173de02.tar.xz
plus-955c9fcba2a4a8b19389760bc74a59ab2173de02.zip
Add keyboard selection in drop down.
Diffstat (limited to 'src/gui/widgets/popuplist.h')
-rw-r--r--src/gui/widgets/popuplist.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/gui/widgets/popuplist.h b/src/gui/widgets/popuplist.h
index a74d82c20..e609b52f6 100644
--- a/src/gui/widgets/popuplist.h
+++ b/src/gui/widgets/popuplist.h
@@ -27,7 +27,6 @@
#include <guichan/actionlistener.hpp>
#include "guichan/focuslistener.hpp"
#include <guichan/listmodel.hpp>
-#include "guichan/selectionlistener.hpp"
#include "localconsts.h"
@@ -36,8 +35,7 @@ class ListBox;
class ScrollArea;
class PopupList final : public Popup,
- public gcn::FocusListener,
- public gcn::SelectionListener
+ public gcn::FocusListener
{
public:
PopupList(DropDown *const widget,
@@ -62,12 +60,12 @@ class PopupList final : public Popup,
void adjustSize();
- void valueChanged(const gcn::SelectionEvent& event);
-
void focusGained(const gcn::Event& event A_UNUSED);
void focusLost(const gcn::Event& event A_UNUSED);
+ void mousePressed(gcn::MouseEvent& mouseEvent);
+
private:
gcn::ListModel *mListModel;
ListBox *mListBox;