mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-29 16:31:05 +02:00
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:
@@ -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)
|
||||||
{
|
{
|
||||||
|
@@ -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;
|
||||||
|
Reference in New Issue
Block a user