mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-30 00:41:17 +02:00
gui/widget/menu: CMenuOptionNumberChooser: add option to show units
This commit is contained in:
@@ -298,6 +298,7 @@ private:
|
||||
neutrino_locale_t localized_value_name;
|
||||
bool slider_on;
|
||||
CChangeObserver * observ;
|
||||
std::string numberFormat;
|
||||
|
||||
public:
|
||||
CMenuOptionNumberChooser(const neutrino_locale_t name, int * const OptionValue, const bool Active, const int min_value, const int max_value, CChangeObserver * const Observ = NULL, const int print_offset = 0, const int special_value = 0, const neutrino_locale_t special_value_name = NONEXISTANT_LOCALE, const char * non_localized_name = NULL, bool sliderOn = false );
|
||||
@@ -307,6 +308,7 @@ private:
|
||||
int exec(CMenuTarget* parent);
|
||||
int isMenueOptionChooser(void) const{return 1;}
|
||||
int getWidth(void);
|
||||
void setNumberFormat(std::string format) { numberFormat = format; }
|
||||
};
|
||||
|
||||
class CMenuOptionChooser : public CAbstractMenuOptionChooser
|
||||
|
Reference in New Issue
Block a user