mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 08:21:12 +02:00
CComponentsText: rename getCCItemTextBoxInst -> getCTextBoxObject
This name should be more plausible
This commit is contained in:
@@ -202,7 +202,8 @@ class CComponentsText : public CComponentsItem
|
|||||||
virtual void setText(neutrino_locale_t locale_text, const int mode = ~CTextBox::AUTO_WIDTH, Font* font_text = NULL);
|
virtual void setText(neutrino_locale_t locale_text, const int mode = ~CTextBox::AUTO_WIDTH, Font* font_text = NULL);
|
||||||
virtual void removeLineBreaks(std::string& str);
|
virtual void removeLineBreaks(std::string& str);
|
||||||
|
|
||||||
CTextBox* getCCItemTextBoxInst() { return ct_textbox; };
|
//get a Text Box object, so it's possible to get access directly to its methods
|
||||||
|
CTextBox* getCTextBoxObject() { return ct_textbox; };
|
||||||
};
|
};
|
||||||
|
|
||||||
class CComponentsLabel : public CComponentsText
|
class CComponentsLabel : public CComponentsText
|
||||||
|
@@ -290,7 +290,7 @@ void CImageInfo::ScrollLic(bool scrollDown)
|
|||||||
{
|
{
|
||||||
if (cc_lic && (cc_lic->cctext)) {
|
if (cc_lic && (cc_lic->cctext)) {
|
||||||
//get the textbox instance from infobox object and use CTexBbox scroll methods
|
//get the textbox instance from infobox object and use CTexBbox scroll methods
|
||||||
CTextBox* ctb = cc_lic->cctext->getCCItemTextBoxInst();
|
CTextBox* ctb = cc_lic->cctext->getCTextBoxObject();
|
||||||
if (ctb) {
|
if (ctb) {
|
||||||
ctb->enableBackgroundPaint(true);
|
ctb->enableBackgroundPaint(true);
|
||||||
if (scrollDown)
|
if (scrollDown)
|
||||||
|
Reference in New Issue
Block a user