mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-28 07:51:11 +02:00
CHintBox: add overloaded version of setMsgText() with locale parameter
Origin commit data
------------------
Commit: c60accaeae
Author: Thilo Graf <dbt@novatux.de>
Date: 2017-01-04 (Wed, 04 Jan 2017)
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);
|
||||
}
|
||||
|
||||
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()
|
||||
{
|
||||
int h = (ccw_head ? ccw_head->getHeight() : 0);
|
||||
|
@@ -290,6 +290,12 @@ class CHintBox : public CComponentsWindow
|
||||
Font* font_text = NULL,
|
||||
const fb_pixel_t& color_text = COL_MENUCONTENT_TEXT,
|
||||
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