menu: add optional usage of toggle buttons to visualze options

This commit is contained in:
2018-04-11 16:12:03 +02:00
parent 01e3c02225
commit 3301be5484
2 changed files with 46 additions and 22 deletions

View File

@@ -126,6 +126,10 @@ class CMenuItem : public CComponentsSignals
neutrino_locale_t desc;
std::string descString;
CActivateObserver * actObserv;
bool has_option_icon;
void handleOptionIcon(const std::string& str_option);
const char* getValName(const neutrino_locale_t& Option, const char* ValName);
public:
int height;
bool active, current_active;
@@ -439,7 +443,6 @@ class CMenuOptionChooser : public CAbstractMenuOptionChooser
bool OptionsSort
);
public:
CMenuOptionChooser(const neutrino_locale_t Name, int * const OptionValue, const struct keyval * const Options,
const size_t Number_Of_Options, const bool Active = false, CChangeObserver * const Observ = NULL,