mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 00:11:14 +02:00
gui/infoviewer.cpp: add set/getUpdateTimer, dont set timer in start()
This commit is contained in:
@@ -193,10 +193,6 @@ void CInfoViewer::start ()
|
|||||||
time_left_width = 2 * g_Font[SNeutrinoSettings::FONT_TYPE_INFOBAR_CHANNAME]->getWidth(); /* still a kludge */
|
time_left_width = 2 * g_Font[SNeutrinoSettings::FONT_TYPE_INFOBAR_CHANNAME]->getWidth(); /* still a kludge */
|
||||||
time_dot_width = g_Font[SNeutrinoSettings::FONT_TYPE_INFOBAR_CHANNAME]->getRenderWidth(":");
|
time_dot_width = g_Font[SNeutrinoSettings::FONT_TYPE_INFOBAR_CHANNAME]->getRenderWidth(":");
|
||||||
time_width = time_left_width* 2+ time_dot_width;
|
time_width = time_left_width* 2+ time_dot_width;
|
||||||
|
|
||||||
const int lcd_update_time_tv_mode = (60 * 1000 * 1000);
|
|
||||||
if (lcdUpdateTimer == 0)
|
|
||||||
lcdUpdateTimer = g_RCInput->addTimer (lcd_update_time_tv_mode, false, true);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void CInfoViewer::changePB()
|
void CInfoViewer::changePB()
|
||||||
@@ -1893,6 +1889,13 @@ void CInfoViewer::showEpgInfo() //message on event change
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void CInfoViewer::setUpdateTimer(uint64_t interval)
|
||||||
|
{
|
||||||
|
g_RCInput->killTimer(lcdUpdateTimer);
|
||||||
|
if (interval)
|
||||||
|
lcdUpdateTimer = g_RCInput->addTimer(interval, false);
|
||||||
|
}
|
||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
int CInfoViewerHandler::exec (CMenuTarget * parent, const std::string & /*actionkey*/)
|
int CInfoViewerHandler::exec (CMenuTarget * parent, const std::string & /*actionkey*/)
|
||||||
{
|
{
|
||||||
|
@@ -107,6 +107,8 @@ class CInfoViewer
|
|||||||
CProgressBar *snrscale, *sigscale, *timescale;
|
CProgressBar *snrscale, *sigscale, *timescale;
|
||||||
bool casysChange;
|
bool casysChange;
|
||||||
bool channellogoChange;
|
bool channellogoChange;
|
||||||
|
uint32_t lcdUpdateTimer;
|
||||||
|
|
||||||
void paintBackground(int col_Numbox);
|
void paintBackground(int col_Numbox);
|
||||||
void show_Data( bool calledFromEvent = false );
|
void show_Data( bool calledFromEvent = false );
|
||||||
void display_Info(const char *current, const char *next, bool UTF8 = true,
|
void display_Info(const char *current, const char *next, bool UTF8 = true,
|
||||||
@@ -136,7 +138,6 @@ class CInfoViewer
|
|||||||
bool chanready;
|
bool chanready;
|
||||||
bool is_visible;
|
bool is_visible;
|
||||||
bool virtual_zap_mode;
|
bool virtual_zap_mode;
|
||||||
uint32_t lcdUpdateTimer;
|
|
||||||
char aspectRatio;
|
char aspectRatio;
|
||||||
uint32_t sec_timer_id;
|
uint32_t sec_timer_id;
|
||||||
|
|
||||||
@@ -170,6 +171,8 @@ class CInfoViewer
|
|||||||
void showSNR();
|
void showSNR();
|
||||||
void Init(void);
|
void Init(void);
|
||||||
bool SDT_freq_update;
|
bool SDT_freq_update;
|
||||||
|
void setUpdateTimer(uint64_t interval);
|
||||||
|
uint32_t getUpdateTimer(void) { return lcdUpdateTimer; }
|
||||||
};
|
};
|
||||||
#if 0
|
#if 0
|
||||||
class CInfoViewerHandler : public CMenuTarget
|
class CInfoViewerHandler : public CMenuTarget
|
||||||
|
Reference in New Issue
Block a user