menu: move class CNonLocalizedMenuSeparator from update.cpp into gui/menu.h

Origin commit data
------------------
Commit: 0a147da535
Author: Thilo Graf <dbt@novatux.de>
Date: 2012-06-03 (Sun, 03 Jun 2012)
This commit is contained in:
2012-06-03 13:10:36 +02:00
parent 8e5f3b43c6
commit dad2920f12
2 changed files with 16 additions and 16 deletions

View File

@@ -114,22 +114,6 @@ public:
} }
}; };
class CNonLocalizedMenuSeparator : public CMenuSeparator
{
const char * the_text;
public:
CNonLocalizedMenuSeparator(const char * ptext, const neutrino_locale_t Text1) : CMenuSeparator(CMenuSeparator::LINE | CMenuSeparator::STRING, Text1)
{
the_text = ptext;
}
virtual const char * getString(void)
{
return the_text;
}
};
//#define DEBUG //#define DEBUG
bool CFlashUpdate::selectHttpImage(void) bool CFlashUpdate::selectHttpImage(void)
{ {

View File

@@ -175,6 +175,22 @@ class CMenuSeparator : public CMenuItem
void setString(const std::string& text); void setString(const std::string& text);
}; };
class CNonLocalizedMenuSeparator : public CMenuSeparator
{
const char * the_text;
public:
CNonLocalizedMenuSeparator(const char * ptext, const neutrino_locale_t Text1) : CMenuSeparator(CMenuSeparator::LINE | CMenuSeparator::STRING, Text1)
{
the_text = ptext;
}
virtual const char * getString(void)
{
return the_text;
}
};
class CMenuForwarder : public CMenuItem class CMenuForwarder : public CMenuItem
{ {
const char * option; const char * option;