mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-28 16:01:20 +02:00
- hintbox: allow plain neutrino locales in bodytext
This commit is contained in:
@@ -42,11 +42,23 @@ CHintBox::CHintBox(const neutrino_locale_t Caption, const char * const Text, con
|
||||
init(caption_tmp, Text, Width, Icon);
|
||||
}
|
||||
|
||||
CHintBox::CHintBox(const neutrino_locale_t Caption, const neutrino_locale_t Text, const int Width, const char * const Icon)
|
||||
{
|
||||
const char * caption_tmp = g_Locale->getText(Caption);
|
||||
const char * text_tmp = g_Locale->getText(Text);
|
||||
init(caption_tmp, text_tmp, Width, Icon);
|
||||
}
|
||||
|
||||
CHintBox::CHintBox(const char * const Caption, const char * const Text, const int Width, const char * const Icon)
|
||||
{
|
||||
init(Caption, Text, Width, Icon);
|
||||
}
|
||||
|
||||
CHintBox::CHintBox(const char * const Caption, const neutrino_locale_t Text, const int Width, const char * const Icon)
|
||||
{
|
||||
const char * text_tmp = g_Locale->getText(Text);
|
||||
init(Caption, text_tmp, Width, Icon);
|
||||
}
|
||||
void CHintBox::init(const char * const Caption, const char * const Text, const int Width, const char * const Icon)
|
||||
{
|
||||
char * begin;
|
||||
|
@@ -65,7 +65,9 @@ class CHintBox
|
||||
public:
|
||||
// Text is UTF-8 encoded
|
||||
CHintBox(const neutrino_locale_t Caption, const char * const Text, const int Width = 450, const char * const Icon = NEUTRINO_ICON_INFO);
|
||||
CHintBox(const neutrino_locale_t Caption, const neutrino_locale_t Text, const int Width = 450, const char * const Icon = NEUTRINO_ICON_INFO);
|
||||
CHintBox(const char * const Caption, const char * const Text, const int Width = 450, const char * const Icon = NEUTRINO_ICON_INFO);
|
||||
CHintBox(const char * const Caption, const neutrino_locale_t Text, const int Width = 450, const char * const Icon = NEUTRINO_ICON_INFO);
|
||||
~CHintBox(void);
|
||||
|
||||
bool has_scrollbar(void);
|
||||
|
Reference in New Issue
Block a user