mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-31 09:21:09 +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
------------------
Commit: 7d04113307
Author: Gaucho316 <Gaucho316@hotmail.com>
Date: 2013-12-30 (Mon, 30 Dec 2013)
This commit is contained in:
@@ -1789,10 +1789,10 @@ const char * CMenuForwarder::getOption(void)
|
||||
{
|
||||
if (option)
|
||||
return option;
|
||||
else
|
||||
if (option_string)
|
||||
return option_string->c_str();
|
||||
else
|
||||
if (jumpTarget)
|
||||
return jumpTarget->getTargetValue();
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
@@ -79,6 +79,7 @@ class CMenuTarget
|
||||
virtual void hide(){}
|
||||
virtual int exec(CMenuTarget* parent, const std::string & actionKey) = 0;
|
||||
virtual fb_pixel_t getColor(void) { return 0; }
|
||||
virtual const char * getTargetValue() { return NULL; }
|
||||
};
|
||||
|
||||
class CMenuItem
|
||||
|
Reference in New Issue
Block a user