mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-28 07:51:19 +02:00
CHintBox: add overloaded version of setMsgText() with locale parameter
This commit is contained in:
@@ -330,6 +330,11 @@ void CHintBox::setMsgText(const std::string& Text, const uint& hint_id, const in
|
|||||||
obj_text->setText(Text, mode, font, color_text, style);
|
obj_text->setText(Text, mode, font, color_text, style);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void CHintBox::setMsgText(const neutrino_locale_t& locale, const uint& hint_id, const int& mode, Font* font_text, const fb_pixel_t& color_text, const int& style)
|
||||||
|
{
|
||||||
|
setMsgText(g_Locale->getText(locale), hint_id, mode, font_text, color_text, style);
|
||||||
|
}
|
||||||
|
|
||||||
void CHintBox::ReSize()
|
void CHintBox::ReSize()
|
||||||
{
|
{
|
||||||
int h = (ccw_head ? ccw_head->getHeight() : 0);
|
int h = (ccw_head ? ccw_head->getHeight() : 0);
|
||||||
|
@@ -290,6 +290,12 @@ class CHintBox : public CComponentsWindow
|
|||||||
Font* font_text = NULL,
|
Font* font_text = NULL,
|
||||||
const fb_pixel_t& color_text = COL_MENUCONTENT_TEXT,
|
const fb_pixel_t& color_text = COL_MENUCONTENT_TEXT,
|
||||||
const int& style = CComponentsText::FONT_STYLE_REGULAR);
|
const int& style = CComponentsText::FONT_STYLE_REGULAR);
|
||||||
|
void setMsgText(const neutrino_locale_t& locale,
|
||||||
|
const uint& hint_id = 0,
|
||||||
|
const int& mode = CTextBox::AUTO_WIDTH | CTextBox::AUTO_HIGH | CTextBox::CENTER,
|
||||||
|
Font* font_text = NULL,
|
||||||
|
const fb_pixel_t& color_text = COL_MENUCONTENT_TEXT,
|
||||||
|
const int& style = CComponentsText::FONT_STYLE_REGULAR);
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user