From b902c4ee96f87e582a47fc42bf077348e8f9b862 Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Thu, 22 Sep 2022 15:47:53 +0200 Subject: [PATCH] test_menu.cpp: add ShortHint demo with NEUTRINO_ICON_LOADER --- src/gui/test_menu.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/gui/test_menu.cpp b/src/gui/test_menu.cpp index 49eba8b2f..a849e4dab 100644 --- a/src/gui/test_menu.cpp +++ b/src/gui/test_menu.cpp @@ -1154,7 +1154,7 @@ int CTestMenu::exec(CMenuTarget *parent, const std::string &actionKey) } else if (actionKey == "short_hint_timed") { - ShowHintS("Info Test...", 3, true); + ShowHintS("Info Test with timeout and loader graphic...", 3, true, NEUTRINO_ICON_LOADER); return menu_return::RETURN_REPAINT; } else if (actionKey == "short_hint_timed_slot") @@ -1168,6 +1168,7 @@ int CTestMenu::exec(CMenuTarget *parent, const std::string &actionKey) hint.text = "Info Test..."; hint.slot = sigc::mem_fun(*this, &CTestMenu::showRecords); hint.timeout = 3; + hint.Picon = NULL; ShowHintS(hint); return menu_return::RETURN_REPAINT; } @@ -1439,6 +1440,7 @@ int CTestMenu::showTestMenu() w_test.addKey(CRCInput::RC_red, this, "footer_key"); w_test.addKey(CRCInput::RC_green, this, "footer_key"); int res = w_test.exec(NULL, ""); + w_hw->hide(); delete w_hw; delete w_cc; delete w_msg; @@ -1569,7 +1571,7 @@ void CTestMenu::showMsgTests(CMenuWidget *widget) widget->addItem(new CMenuForwarder("Info Message!", true, NULL, this, "msgbox_info")); widget->addItem(new CMenuSeparator(CMenuSeparator::STRING | CMenuSeparator::LINE, "Short Hint")); widget->addItem(new CMenuForwarder("Short hint!", true, NULL, this, "short_hint")); - widget->addItem(new CMenuForwarder("Short hint with timeout!", true, NULL, this, "short_hint_timed")); + widget->addItem(new CMenuForwarder("Short hint with timeout and visual loader!", true, NULL, this, "short_hint_timed")); widget->addItem(new CMenuForwarder("Short hint with timeout and function!", true, NULL, this, "short_hint_timed_slot")); widget->addItem(new CMenuForwarder("Short hint with struct arg!", true, NULL, this, "short_hint_struct")); }