gui/vfd_setup.cpp: modify brightness menu so vfd follow selected menu item on scroll

This commit is contained in:
[CST] Focus
2014-10-22 15:47:12 +04:00
parent 2b50060bab
commit 2edfa2655b
2 changed files with 65 additions and 34 deletions

View File

@@ -36,23 +36,22 @@
#include <string>
class CVfdSetup : public CMenuTarget, CChangeObserver
class CVfdSetup : public CMenuTarget, CChangeObserver, CActivateObserver
{
private:
int width;
int showSetup();
void showBrightnessSetup(CMenuWidget *mn_widget);
int showBrightnessSetup();
void showLedSetup(CMenuWidget *mn_led_widget);
void showBacklightSetup(CMenuWidget *mn_led_widget);
virtual bool changeNotify(const neutrino_locale_t OptionName, void *data);
virtual void activateNotify(const neutrino_locale_t OptionName);
int brightness;
int brightnessstandby;
int brightnessdeepstandby;
bool vfd_enabled;
CStringInput * dim_time;
public:
CVfdSetup();