mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-30 00:41:09 +02:00
update.cpp/update_menu.cpp: add hotkeys
Origin commit data
------------------
Commit: 6ff5a915bd
Author: defans <defans@bluepeercrew.us>
Date: 2012-06-16 (Sat, 16 Jun 2012)
Origin message was:
------------------
- update.cpp/update_menu.cpp: add hotkeys
This commit is contained in:
@@ -607,6 +607,8 @@ void CFlashExpert::writemtd(const std::string & filename, int mtdNumber)
|
|||||||
|
|
||||||
void CFlashExpert::showMTDSelector(const std::string & actionkey)
|
void CFlashExpert::showMTDSelector(const std::string & actionkey)
|
||||||
{
|
{
|
||||||
|
int shortcut = 0;
|
||||||
|
|
||||||
mn_widget_id_t widget_id = NO_WIDGET_ID;
|
mn_widget_id_t widget_id = NO_WIDGET_ID;
|
||||||
if (actionkey == "readmtd")
|
if (actionkey == "readmtd")
|
||||||
widget_id = MN_WIDGET_ID_MTDREAD_SELECTOR;
|
widget_id = MN_WIDGET_ID_MTDREAD_SELECTOR;
|
||||||
@@ -625,7 +627,7 @@ void CFlashExpert::showMTDSelector(const std::string & actionkey)
|
|||||||
if ((actionkey == "writemtd") && (lx == 0))
|
if ((actionkey == "writemtd") && (lx == 0))
|
||||||
enabled = false;
|
enabled = false;
|
||||||
sprintf(sActionKey, "%s%d", actionkey.c_str(), lx);
|
sprintf(sActionKey, "%s%d", actionkey.c_str(), lx);
|
||||||
mtdselector->addItem(new CMenuForwarderNonLocalized(mtdInfo->getMTDName(lx).c_str(), enabled, NULL, this, sActionKey));
|
mtdselector->addItem(new CMenuForwarderNonLocalized(mtdInfo->getMTDName(lx).c_str(), enabled, NULL, this, sActionKey, CRCInput::convertDigitToKey(shortcut++)));
|
||||||
}
|
}
|
||||||
mtdselector->exec(NULL,"");
|
mtdselector->exec(NULL,"");
|
||||||
delete mtdselector;
|
delete mtdselector;
|
||||||
|
@@ -101,6 +101,6 @@ void CSoftwareUpdate::showSoftwareUpdateExpert(CMenuWidget *w_mtd_expert)
|
|||||||
{
|
{
|
||||||
w_mtd_expert->addIntroItems();
|
w_mtd_expert->addIntroItems();
|
||||||
|
|
||||||
w_mtd_expert->addItem(new CMenuForwarder(LOCALE_FLASHUPDATE_READFLASHMTD , true, NULL, fe, "readflashmtd" ));
|
w_mtd_expert->addItem(new CMenuForwarder(LOCALE_FLASHUPDATE_READFLASHMTD , true, NULL, fe, "readflashmtd" , CRCInput::RC_red , NEUTRINO_ICON_BUTTON_RED));
|
||||||
w_mtd_expert->addItem(new CMenuForwarder(LOCALE_FLASHUPDATE_WRITEFLASHMTD, true, NULL, fe, "writeflashmtd"));
|
w_mtd_expert->addItem(new CMenuForwarder(LOCALE_FLASHUPDATE_WRITEFLASHMTD, true, NULL, fe, "writeflashmtd", CRCInput::RC_green, NEUTRINO_ICON_BUTTON_GREEN));
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user