mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-28 16:01:20 +02:00
CImageInfo: move ScrollLic() to end of file and add comments
This commit is contained in:
@@ -74,21 +74,6 @@ CImageInfo::~CImageInfo()
|
||||
delete cc_win;
|
||||
}
|
||||
|
||||
void CImageInfo::ScrollLic(bool scrollDown)
|
||||
{
|
||||
if (cc_lic && (cc_lic->cctext)) {
|
||||
CTextBox* ctb = cc_lic->cctext->getCCItemTextBoxInst();
|
||||
if (ctb) {
|
||||
ctb->enableBackgroundPaint(true);
|
||||
if (scrollDown)
|
||||
ctb->scrollPageDown(1);
|
||||
else
|
||||
ctb->scrollPageUp(1);
|
||||
ctb->enableBackgroundPaint(false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
int CImageInfo::exec(CMenuTarget* parent, const std::string &)
|
||||
{
|
||||
int res = menu_return::RETURN_REPAINT;
|
||||
@@ -300,6 +285,23 @@ void CImageInfo::InitLicenseText()
|
||||
cc_win->addCCItem(cc_lic);
|
||||
}
|
||||
|
||||
//scroll licens text
|
||||
void CImageInfo::ScrollLic(bool scrollDown)
|
||||
{
|
||||
if (cc_lic && (cc_lic->cctext)) {
|
||||
//get the textbox instance from infobox object and use CTexBbox scroll methods
|
||||
CTextBox* ctb = cc_lic->cctext->getCCItemTextBoxInst();
|
||||
if (ctb) {
|
||||
ctb->enableBackgroundPaint(true);
|
||||
if (scrollDown)
|
||||
ctb->scrollPageDown(1);
|
||||
else
|
||||
ctb->scrollPageUp(1);
|
||||
ctb->enableBackgroundPaint(false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
void CImageInfo::hide()
|
||||
|
Reference in New Issue
Block a user