diff options
| author | Felix Domke <tmbinc@elitedvb.net> | 2005-02-25 01:46:44 +0000 |
|---|---|---|
| committer | Felix Domke <tmbinc@elitedvb.net> | 2005-02-25 01:46:44 +0000 |
| commit | 1cdf6cb021fcaa6548b90ba7b6765cf1e8b8b37b (patch) | |
| tree | 5bd4dbac6538cf499f641849d26193958b48a187 /lib/gui/elistbox.cpp | |
| parent | e677ac4a7bf81391877c909a703e5918ce4a511b (diff) | |
| download | enigma2-1cdf6cb021fcaa6548b90ba7b6765cf1e8b8b37b.tar.gz enigma2-1cdf6cb021fcaa6548b90ba7b6765cf1e8b8b37b.zip | |
- work on actions
- changed time when screens are acutally constructed
- added service name (not working atm) and event info (now&next)
Diffstat (limited to 'lib/gui/elistbox.cpp')
| -rw-r--r-- | lib/gui/elistbox.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/lib/gui/elistbox.cpp b/lib/gui/elistbox.cpp index 361d7b99..1dae137f 100644 --- a/lib/gui/elistbox.cpp +++ b/lib/gui/elistbox.cpp @@ -1,9 +1,22 @@ #include <lib/gui/elistbox.h> #include <lib/gui/elistboxcontent.h> +#include <lib/actions/action.h> eListbox::eListbox(eWidget *parent): eWidget(parent) { setContent(new eListboxStringContent()); + + ePtr<eActionMap> ptr; + eActionMap::getInstance(ptr); + + ptr->bindAction("ListboxActions", 0, 0, this); +} + +eListbox::~eListbox() +{ + ePtr<eActionMap> ptr; + eActionMap::getInstance(ptr); + ptr->unbindAction(this, 0); } void eListbox::setContent(iListboxContent *content) @@ -108,6 +121,9 @@ int eListbox::event(int event, void *data, void *data2) return 0; } + case evtAction: + moveSelection((int)data2); + return 1; default: return eWidget::event(event, data, data2); } |
