gui/widget/menu: CMenuOptionNumberChooser: add option to show units

Origin commit data
------------------
Commit: 86221de3d9
Author: martii <m4rtii@gmx.de>
Date: 2013-12-21 (Sat, 21 Dec 2013)
This commit is contained in:
martii
2013-12-21 22:01:21 +01:00
committed by vanhofen
parent 9cb816129b
commit 6aaa91242a
2 changed files with 10 additions and 1 deletions

View File

@@ -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