From 6b9369f9f664c45dc2d72cdd5784c7067a3c8cc2 Mon Sep 17 00:00:00 2001 From: vanhofen Date: Mon, 1 Feb 2021 00:25:18 +0100 Subject: [PATCH] move lcd4l-setup to vfd-setup Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/f16ff11d708eb95a75e1a0f431022d71d8f5430a Author: vanhofen Date: 2021-02-01 (Mon, 01 Feb 2021) Origin message was: ------------------ - move lcd4l-setup to vfd-setup --- src/gui/miscsettings_menu.cpp | 7 ------- src/gui/vfd_setup.cpp | 21 +++++++++++++++------ 2 files changed, 15 insertions(+), 13 deletions(-) diff --git a/src/gui/miscsettings_menu.cpp b/src/gui/miscsettings_menu.cpp index 680fb317f..6796a09ca 100644 --- a/src/gui/miscsettings_menu.cpp +++ b/src/gui/miscsettings_menu.cpp @@ -42,7 +42,6 @@ #include #include #include -#include #include #include #include @@ -349,12 +348,6 @@ int CMiscMenue::showMiscSettingsMenu() mf->setHint(NEUTRINO_ICON_HINT_IMAGELOGO, LOCALE_MENU_HINT_INFOICONS_HEAD); misc_menue.addItem(mf); - // LCD4Linux Setup - CLCD4lSetup lcd4lSetup; - mf = new CMenuForwarder(LOCALE_LCD4L_SUPPORT, !find_executable("lcd4linux").empty(), NULL, &lcd4lSetup, NULL, CRCInput::convertDigitToKey(shortcut++)); - mf->setHint(NEUTRINO_ICON_HINT_LCD4LINUX, LOCALE_MENU_HINT_LCD4L_SUPPORT); - misc_menue.addItem(mf); - // plugins mf = new CMenuForwarder(LOCALE_PLUGINS_CONTROL, true, NULL, this, "plugins", CRCInput::convertDigitToKey(shortcut++)); mf->setHint(NEUTRINO_ICON_HINT_IMAGELOGO, LOCALE_MENU_HINT_PLUGINS_CONTROL); diff --git a/src/gui/vfd_setup.cpp b/src/gui/vfd_setup.cpp index c6d045870..c0cf30e71 100644 --- a/src/gui/vfd_setup.cpp +++ b/src/gui/vfd_setup.cpp @@ -33,10 +33,6 @@ #include #endif -#ifdef ENABLE_GRAPHLCD -#include -#endif - #include "vfd_setup.h" #include @@ -46,9 +42,16 @@ #include +#ifdef ENABLE_GRAPHLCD +#include +#endif + +#ifdef ENABLE_LCD4LINUX +#include "gui/lcd4l_setup.h" +#endif + #include #include -#include #include #include @@ -208,10 +211,16 @@ int CVfdSetup::showSetup() vfds->addItem(led_num); } +#ifdef ENABLE_LCD4LINUX + mf = new CMenuForwarder(LOCALE_LCD4L_SUPPORT, !find_executable("lcd4linux").empty(), NULL, CLCD4lSetup::getInstance(), NULL, CRCInput::RC_blue); + mf->setHint(NEUTRINO_ICON_HINT_LCD4LINUX, LOCALE_MENU_HINT_LCD4L_SUPPORT); + vfds->addItem(mf); +#endif + CMenuItem* glcd_setup = NULL; #ifdef ENABLE_GRAPHLCD GLCD_Menu glcdMenu; - glcd_setup = new CMenuForwarder(LOCALE_GLCD_HEAD, true, NULL, &glcdMenu, NULL, CRCInput::RC_blue); + glcd_setup = new CMenuForwarder(LOCALE_GLCD_HEAD, true, NULL, &glcdMenu, NULL); vfds->addItem(glcd_setup); #endif