menu: add optional usage of toggle buttons to visualze options

Origin commit data
------------------
Commit: f0f4698984
Author: Thilo Graf <dbt@novatux.de>
Date: 2018-04-11 (Wed, 11 Apr 2018)
This commit is contained in:
2018-04-11 23:58:16 +02:00
committed by vanhofen
parent 518a0f362c
commit 614badcf9e
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;
@@ -442,7 +446,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,