timerlist: use CListHelpers

remove duplicated code and use CListHelpers::UpDownKey().
Some variable types had to be changed to avoid typecasts, as
a result (int) casts to foo.size() had to be added :-)


Origin commit data
------------------
Branch: ni/coolstream
Commit: ed7eaafbcb
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2016-01-16 (Sat, 16 Jan 2016)



------------------
This commit was generated by Migit
This commit is contained in:
Stefan Seyfried
2016-01-16 18:18:50 +01:00
committed by vanhofen
parent 56fec50f22
commit 5385dcf9a5
3 changed files with 19 additions and 52 deletions

View File

@@ -36,6 +36,7 @@
#include <timerdclient/timerdtypes.h>
#include <gui/widget/menue.h>
#include <gui/widget/listhelpers.h>
#include <driver/framebuffer.h>
@@ -43,7 +44,7 @@
class CTimerdClient;
class CTimerList : public CMenuTarget
class CTimerList : public CMenuTarget, public CListHelpers
{
private:
CFrameBuffer *frameBuffer;
@@ -54,8 +55,8 @@ class CTimerList : public CMenuTarget
int fheight; // fontheight content
int theight; // fontheight titel
int footerHeight;
unsigned int selected;
unsigned int liststart;
int selected;
int liststart;
unsigned int listmaxshow;
bool visible;