mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-31 09:21:09 +02:00
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:
committed by
vanhofen
parent
56fec50f22
commit
5385dcf9a5
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user