mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-27 23:42:58 +02:00
COSDFader: rename member functions, adapt implementations
Stop() is not exactly attributable if fader class used as inherited and Fade() don't tell really what done and related to return value 'bool'... especially as the fader class members have been not documented.
This commit is contained in:
@@ -563,7 +563,7 @@ int CMenuWidget::exec(CMenuTarget* parent, const std::string &)
|
||||
|
||||
std::map<neutrino_msg_t, keyAction>::iterator it = keyActionMap.find(msg);
|
||||
if (it != keyActionMap.end()) {
|
||||
fader.Stop();
|
||||
fader.StopFade();
|
||||
int rv = it->second.menue->exec(this, it->second.action);
|
||||
switch ( rv ) {
|
||||
case menu_return::RETURN_EXIT_ALL:
|
||||
@@ -611,8 +611,8 @@ int CMenuWidget::exec(CMenuTarget* parent, const std::string &)
|
||||
|
||||
switch (msg) {
|
||||
case (NeutrinoMessages::EVT_TIMER):
|
||||
if(data == fader.GetTimer()) {
|
||||
if(fader.Fade())
|
||||
if(data == fader.GetFadeTimer()) {
|
||||
if(fader.FadeDone())
|
||||
msg = CRCInput::RC_timeout;
|
||||
} else {
|
||||
if ( CNeutrinoApp::getInstance()->handleMsg( msg, data ) & messages_return::cancel_all ) {
|
||||
@@ -699,7 +699,7 @@ int CMenuWidget::exec(CMenuTarget* parent, const std::string &)
|
||||
if (!item->isSelectable())
|
||||
break;
|
||||
item->msg = msg;
|
||||
fader.Stop();
|
||||
fader.StopFade();
|
||||
int rv = item->exec( this );
|
||||
switch ( rv ) {
|
||||
case menu_return::RETURN_EXIT_ALL:
|
||||
@@ -773,7 +773,7 @@ int CMenuWidget::exec(CMenuTarget* parent, const std::string &)
|
||||
delete[] background;
|
||||
background = NULL;
|
||||
|
||||
fader.Stop();
|
||||
fader.StopFade();
|
||||
|
||||
if(!parent)
|
||||
if(oldLcdMode != CVFD::getInstance()->getMode())
|
||||
|
Reference in New Issue
Block a user