}
}
+void VChannelList::highlightChannel(Channel* chan)
+{
+ sl.hintSetCurrent(chan->index);
+ sl.draw();
+ doShowingBar();
+ ViewMan::getInstance()->updateView(this);
+}
+
void VChannelList::draw()
{
View::draw();
// if (chan->type == VDR::RADIO) return 2;
- VVideoLive* v = new VVideoLive(chanList, chan->type);
+ VVideoLive* v = new VVideoLive(chanList, chan->type, this);
v->draw();
ViewMan::getInstance()->add(v);
~VChannelList();
void setList(ChannelList* chanList);
+ void highlightChannel(Channel* channel);
int handleCommand(int command);
void draw();
VVideoLive* VVideoLive::instance = NULL;
-VVideoLive::VVideoLive(ChannelList* tchanList, ULONG tstreamType)
+VVideoLive::VVideoLive(ChannelList* tchanList, ULONG tstreamType, VChannelList* tvchannelList)
{
instance = this;
vdr = VDR::getInstance();
video = Video::getInstance();
chanList = tchanList;
+ vchannelList = tvchannelList;
+
currentChannel = 0;
previousChannel = 0;
unavailable = 0;
{
if (unavailable) showUnavailable(0);
else stop();
+
+ vchannelList->highlightChannel((*chanList)[currentChannel]);
return 4;
}
// Take up and down from new remote and do live banner
#include "wtextbox.h"
class VEpg;
-
+class VChannelList;
class VLiveBanner;
class VVideoLive : public View
{
public:
- VVideoLive(ChannelList* chanList, ULONG streamType);
+ VVideoLive(ChannelList* chanList, ULONG streamType, VChannelList* vchannelList);
~VVideoLive();
static VVideoLive* getInstance();
void draw();
Video* video;
Player* player;
ChannelList* chanList;
+ VChannelList* vchannelList;
UINT currentChannel; // index in list
UINT previousChannel; // index in list
int unavailable;