CTimeOSD: use class konform member names

CTimeOSD is inherited from CComponentsForm/Item.
Therefore, it is usual to keep the functional layout.
Overwritable virtual members should be used with same
functionality. kill() is similar with paintBackground() known from
CFrameBuffer, hide(bool) do restore saved background and expects a
parameter.

TODO: It works, but class layout of CTimeOSD is currently not conform
with Components, because the functionalities are partially undermined
and must be reworked.
For Example: timescale and clock object not used as sub objects
in a parent form object.
This commit is contained in:
2014-01-07 11:53:02 +01:00
parent 12fd92e3e4
commit 7403aa2d46
3 changed files with 24 additions and 19 deletions

View File

@@ -648,7 +648,7 @@ void CMoviePlayerGui::PlayFile(void)
}
if (time_forced) {
time_forced = false;
FileTime.hide();
FileTime.kill();
}
} else if (msg == (neutrino_msg_t) g_settings.mpkey_pause) {
if (playstate == CMoviePlayerGui::PAUSE) {
@@ -752,7 +752,7 @@ void CMoviePlayerGui::PlayFile(void)
//showHelpTS();
} else if(timeshift && (msg == CRCInput::RC_text || msg == CRCInput::RC_epg || msg == NeutrinoMessages::SHOW_EPG)) {
bool restore = FileTime.IsVisible();
FileTime.hide();
FileTime.kill();
if( msg == CRCInput::RC_epg )
g_EventList->exec(CNeutrinoApp::getInstance()->channelList->getActiveChannel_ChannelID(), CNeutrinoApp::getInstance()->channelList->getActiveChannelName());
@@ -833,7 +833,7 @@ void CMoviePlayerGui::PlayFile(void)
}
}
FileTime.hide();
FileTime.kill();
clearSubtitle();
playback->SetSpeed(1);