mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-30 08:51:04 +02:00
Neutrino menu forwarder: add possibility to show value from jump target
based on idea by martii <m4rtii@gmx.de> in Neutrino-MP Git
Origin commit data
------------------
Branch: ni/coolstream
Commit: 7d04113307
Author: Christian Schuett <Gaucho316@hotmail.com>
Date: 2013-12-30 (Mon, 30 Dec 2013)
------------------
This commit was generated by Migit
This commit is contained in:
committed by
vanhofen
parent
f17f57eb0e
commit
30fb5e2f60
@@ -1789,11 +1789,11 @@ const char * CMenuForwarder::getOption(void)
|
|||||||
{
|
{
|
||||||
if (option)
|
if (option)
|
||||||
return option;
|
return option;
|
||||||
else
|
if (option_string)
|
||||||
if (option_string)
|
return option_string->c_str();
|
||||||
return option_string->c_str();
|
if (jumpTarget)
|
||||||
else
|
return jumpTarget->getTargetValue();
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
const char * CMenuForwarder::getName(void)
|
const char * CMenuForwarder::getName(void)
|
||||||
|
@@ -79,6 +79,7 @@ class CMenuTarget
|
|||||||
virtual void hide(){}
|
virtual void hide(){}
|
||||||
virtual int exec(CMenuTarget* parent, const std::string & actionKey) = 0;
|
virtual int exec(CMenuTarget* parent, const std::string & actionKey) = 0;
|
||||||
virtual fb_pixel_t getColor(void) { return 0; }
|
virtual fb_pixel_t getColor(void) { return 0; }
|
||||||
|
virtual const char * getTargetValue() { return NULL; }
|
||||||
};
|
};
|
||||||
|
|
||||||
class CMenuItem
|
class CMenuItem
|
||||||
|
Reference in New Issue
Block a user