mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-01 18:01:06 +02:00
Show tuner locked or not using green or red radar, experimental
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@503 e54a6e83-5905-42d5-8d5c-058d10e6a962
Origin commit data
------------------
Branch: ni/coolstream
Commit: 791eba8069
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2010-03-18 (Thu, 18 Mar 2010)
------------------
This commit was generated by Migit
This commit is contained in:
@@ -914,14 +914,15 @@ void CInfoViewer::showFailure ()
|
||||
void CInfoViewer::showMotorMoving (int duration)
|
||||
{
|
||||
char text[256];
|
||||
#if 0
|
||||
char buffer[10];
|
||||
|
||||
sprintf (buffer, "%d", duration);
|
||||
strcpy (text, g_Locale->getText (LOCALE_INFOVIEWER_MOTOR_MOVING));
|
||||
strcat (text, " (");
|
||||
strcat (text, buffer);
|
||||
strcat (text, " s)");
|
||||
|
||||
#endif
|
||||
sprintf(text, "%s (%ds)", g_Locale->getText (LOCALE_INFOVIEWER_MOTOR_MOVING), duration);
|
||||
ShowHintUTF (LOCALE_MESSAGEBOX_INFO, text, g_Font[SNeutrinoSettings::FONT_TYPE_MENU]->getRenderWidth (text, true) + 10, duration); // UTF-8
|
||||
}
|
||||
|
||||
|
@@ -800,7 +800,7 @@ void CMoviePlayerGui::PlayFile(void)
|
||||
case 6: /*DTS*/
|
||||
apidtitle.append(" (DTS)");
|
||||
enabled = false;
|
||||
break;
|
||||
break;
|
||||
case 7: /*MLP*/
|
||||
apidtitle.append(" (MLP)");
|
||||
break;
|
||||
@@ -1231,6 +1231,7 @@ void CMoviePlayerGui::PlayFile(void)
|
||||
}
|
||||
|
||||
if (exit) {
|
||||
printf("Exit, isMovieBrowser %d p_movie_info %x\n", isMovieBrowser, p_movie_info);
|
||||
if (isMovieBrowser == true && p_movie_info != NULL) {
|
||||
// if we have a movie information, try to save the stop position
|
||||
ftime(¤t_time);
|
||||
|
@@ -193,6 +193,7 @@ int CScanTs::exec(CMenuTarget* /*parent*/, const std::string & actionKey)
|
||||
/* send scantype to zapit */
|
||||
g_Zapit->setScanType((CZapitClient::scanType) CNeutrinoApp::getInstance()->getScanSettings().scanType );
|
||||
|
||||
tuned = frontend->getStatus();
|
||||
paint(test);
|
||||
/* go */
|
||||
if(test) {
|
||||
@@ -310,6 +311,7 @@ int CScanTs::handleMsg(neutrino_msg_t msg, neutrino_msg_data_t data)
|
||||
sprintf(buffer, "%u", data);
|
||||
xpos_frequency = g_Font[SNeutrinoSettings::FONT_TYPE_MENU]->getRenderWidth(buffer, true);
|
||||
paintLine(xpos2, ypos_frequency, xpos_frequency, buffer);
|
||||
paintRadar();
|
||||
break;
|
||||
|
||||
case NeutrinoMessages::EVT_SCAN_REPORT_FREQUENCYP:
|
||||
@@ -377,6 +379,11 @@ void CScanTs::paintRadar(void)
|
||||
{
|
||||
char filename[30];
|
||||
|
||||
if(tuned != frontend->getStatus()) {
|
||||
tuned = frontend->getStatus();
|
||||
frameBuffer->loadPal(tuned ? "radar.pal" : "radar_red.pal", 18, 38);
|
||||
}
|
||||
|
||||
sprintf(filename, "radar%d.raw", radar);
|
||||
radar = (radar + 1) % 10;
|
||||
frameBuffer->paintIcon8(filename, xpos_radar, ypos_radar, 18);
|
||||
@@ -416,7 +423,7 @@ void CScanTs::paint(bool fortest)
|
||||
//frameBuffer->paintBoxRel(x, ypos + hheight, width, height - hheight, COL_MENUCONTENT_PLUS_0);
|
||||
frameBuffer->paintBoxRel(x, ypos + hheight, width, height - hheight, COL_MENUCONTENT_PLUS_0, RADIUS_LARGE, CORNER_BOTTOM);
|
||||
|
||||
frameBuffer->loadPal("radar.pal", 18, 38);
|
||||
frameBuffer->loadPal(tuned ? "radar.pal" : "radar_red.pal", 18, 38);
|
||||
|
||||
ypos = y + hheight + (mheight >> 1);
|
||||
|
||||
@@ -479,7 +486,6 @@ void CScanTs::showSNR ()
|
||||
|
||||
ssig = frontend->getSignalStrength();
|
||||
ssnr = frontend->getSignalNoiseRatio();
|
||||
|
||||
snr = (ssnr & 0xFFFF) * 100 / 65535;
|
||||
sig = (ssig & 0xFFFF) * 100 / 65535;
|
||||
|
||||
|
@@ -65,6 +65,7 @@ class CScanTs : public CMenuTarget
|
||||
uint32_t total;
|
||||
uint32_t done;
|
||||
int lastsnr, lastsig;
|
||||
int tuned;
|
||||
CProgressBar *snrscale, *sigscale;
|
||||
|
||||
void paint(bool fortest = false);
|
||||
|
Reference in New Issue
Block a user