mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-31 01:11:06 +02:00
gui/widget/menue.cpp: add activate observer to notify when item become active
Origin commit data
------------------
Branch: ni/coolstream
Commit: 2b50060bab
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2014-10-22 (Wed, 22 Oct 2014)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -82,6 +82,13 @@ class CChangeObserver
|
||||
}
|
||||
};
|
||||
|
||||
class CActivateObserver
|
||||
{
|
||||
public:
|
||||
virtual ~CActivateObserver(){}
|
||||
virtual void activateNotify(const neutrino_locale_t /*OptionName*/) {}
|
||||
};
|
||||
|
||||
class CMenuTarget
|
||||
{
|
||||
protected:
|
||||
@@ -113,6 +120,7 @@ class CMenuItem
|
||||
std::string nameString;
|
||||
neutrino_locale_t desc;
|
||||
std::string descString;
|
||||
CActivateObserver * actObserv;
|
||||
public:
|
||||
int height;
|
||||
bool active;
|
||||
@@ -180,6 +188,8 @@ class CMenuItem
|
||||
virtual void setDescription(const std::string& text);
|
||||
virtual void setDescription(const neutrino_locale_t text);
|
||||
virtual int getDescriptionHeight(void);
|
||||
void setActivateObserver(CActivateObserver * Observ) { actObserv = Observ; }
|
||||
void activateNotify(void);
|
||||
};
|
||||
|
||||
class CMenuSeparator : public CMenuItem
|
||||
|
Reference in New Issue
Block a user