menue.cpp/h: re add SUB_HEAD option with some samples inside test menu

This commit is contained in:
2019-04-03 15:35:29 +02:00
parent eceefe6f27
commit 8eb418617b
3 changed files with 28 additions and 4 deletions

View File

@@ -1127,7 +1127,7 @@ int CTestMenu::showTestMenu()
char rev[255];
sprintf(rev, "Test menu, System revision %d %s", system_rev, system_rev == 0 ? "WARNING - INVALID" : "");
CMenuWidget w_test(rev /*"Test menu"*/, NEUTRINO_ICON_INFO, width, MN_WIDGET_ID_TESTMENU);
w_test.addIntroItems();
w_test.addIntroItems("Subhead");
w_test.addItem(new CMenuForwarder("Shell Window Test", true, NULL, this, "shellwindow"));
//hardware
@@ -1156,6 +1156,18 @@ int CTestMenu::showTestMenu()
//restart gui
w_test.addItem(new CMenuForwarder(LOCALE_SERVICEMENU_RESTART , true, NULL, CNeutrinoApp::getInstance(), "restart", CRCInput::RC_standby));
w_test.addItem(GenericMenuSeparatorLine);
w_test.addItem(new CMenuSeparator(CMenuSeparator::STRING, "String Separator"));
w_test.addItem(new CMenuSeparator(CMenuSeparator::STRING | CMenuSeparator::LINE, "String Line Separator"));
w_test.addItem(new CMenuSeparator(CMenuSeparator::SUB_HEAD, "Sub Title"));
w_test.addItem(new CMenuSeparator(CMenuSeparator::SUB_HEAD | CMenuSeparator::ALIGN_LEFT, "Sub Title L"));
w_test.addItem(new CMenuSeparator(CMenuSeparator::SUB_HEAD | CMenuSeparator::ALIGN_RIGHT, "Sub Title R"));
//footer buttons
static const struct button_label footerButtons[2] = {
{ NEUTRINO_ICON_BUTTON_RED, LOCALE_COLORCHOOSER_RED },