CImageInfo: move ScrollLic() to end of file and add comments

This commit is contained in:
2013-03-21 08:12:12 +01:00
parent 0dc4686874
commit 322de62366

View File

@@ -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()