mirror of
https://projects.vdr-developer.org/git/vdr-plugin-tvguide.git
synced 2023-10-05 15:01:48 +02:00
lastValidChannel
This commit is contained in:
parent
45a2d6bee0
commit
107f3f945f
@ -6,13 +6,13 @@
|
||||
#include "channelgroups.h"
|
||||
#include "channeljump.h"
|
||||
|
||||
cChannelJump::cChannelJump(cChannelGroups *channelGroups) {
|
||||
cChannelJump::cChannelJump(cChannelGroups *channelGroups, int lastValidChannel) {
|
||||
this->channelGroups = channelGroups;
|
||||
pixmapText = NULL;
|
||||
channel = 0;
|
||||
maxChannels = channelGroups->GetLastValidChannel();
|
||||
maxChannels = lastValidChannel;
|
||||
timeout = Setup.ChannelEntryTimeout;
|
||||
startTime = cTimeMs::Now();
|
||||
startTime = 0;
|
||||
SetPixmaps();
|
||||
Draw();
|
||||
}
|
||||
|
@ -18,7 +18,7 @@ private:
|
||||
void Draw(void);
|
||||
cString BuildChannelString(void);
|
||||
public:
|
||||
cChannelJump(cChannelGroups *channelGroups);
|
||||
cChannelJump(cChannelGroups *channelGroups, int lastValidChannel);
|
||||
virtual ~cChannelJump(void);
|
||||
void Set(int num);
|
||||
void DrawText(void);
|
||||
|
@ -672,9 +672,14 @@ void cTvGuideOsd::TimeJump(int mode) {
|
||||
osdManager.flush();
|
||||
}
|
||||
|
||||
int cTvGuideOsd::GetLastValidChannel(void) {
|
||||
return channelGroups->GetLastValidChannel();
|
||||
}
|
||||
|
||||
void cTvGuideOsd::ChannelJump(int num) {
|
||||
if (!channelJumper) {
|
||||
channelJumper = new cChannelJump(channelGroups);
|
||||
int lastValidChannel = GetLastValidChannel();
|
||||
channelJumper = new cChannelJump(channelGroups, lastValidChannel);
|
||||
}
|
||||
channelJumper->Set(num);
|
||||
channelJumper->DrawText();
|
||||
|
@ -26,6 +26,7 @@ private:
|
||||
cFooter *footer;
|
||||
cRecMenuView *recMenuView;
|
||||
cChannelJump *channelJumper;
|
||||
int GetLastValidChannel(void);
|
||||
bool detailViewActive;
|
||||
void drawOsd();
|
||||
void readChannels(const cChannel *channelStart);
|
||||
|
Loading…
Reference in New Issue
Block a user