mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-27 15:32:52 +02:00
gui/scan_setup: show unit for motor speed
Origin commit data
------------------
Commit: a0f2960501
Author: martii <m4rtii@gmx.de>
Date: 2013-12-21 (Sat, 21 Dec 2013)
This commit is contained in:
@@ -606,6 +606,13 @@ int CScanSetup::showScanMenuFrontendSetup()
|
||||
return res;
|
||||
}
|
||||
|
||||
static std::string rotationSpeed2str(int i)
|
||||
{
|
||||
char s[40];
|
||||
snprintf(s, sizeof(s), "%d.%d°/s", i / 10, i % 10);
|
||||
return std::string(s);
|
||||
}
|
||||
|
||||
int CScanSetup::showFrontendSetup(int number)
|
||||
{
|
||||
int shortcut = 1;
|
||||
@@ -737,6 +744,7 @@ int CScanSetup::showFrontendSetup(int number)
|
||||
|
||||
setupMenu->addItem(new CMenuSeparator(CMenuSeparator::LINE | CMenuSeparator::STRING, LOCALE_SATSETUP_EXTENDED_MOTOR));
|
||||
CMenuOptionNumberChooser * nc = new CMenuOptionNumberChooser(LOCALE_EXTRA_ZAPIT_MOTOR_SPEED, (int *)&fe_config.motorRotationSpeed, allow_moptions, 0, 64, NULL);
|
||||
nc->setNumberFormat(rotationSpeed2str);
|
||||
nc->setHint("", LOCALE_MENU_HINT_SCAN_MOTOR_SPEED);
|
||||
setupMenu->addItem(nc);
|
||||
msettings.Add(nc);
|
||||
|
Reference in New Issue
Block a user