CComponentsHeader: rework constructors, add CComponentsHeaderLocalized

Member initVarHeader() now used with parameters, so it's possible
to remove multiple code in constructors, but some class must be
renamed to CComponentsHeaderLocalized.


Origin commit data
------------------
Commit: 5ea7ec48df
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-01-18 (Sat, 18 Jan 2014)

Origin message was:
------------------
CComponentsHeader: rework constructors, add CComponentsHeaderLocalized

Member initVarHeader() now used with parameters, so it's possible
to remove multiple code in constructors, but some class must be
renamed to CComponentsHeaderLocalized.
This commit is contained in:
2014-01-18 20:41:55 +01:00
parent fc1f33db14
commit 5ad73f09aa
18 changed files with 271 additions and 140 deletions

View File

@@ -1321,7 +1321,7 @@ void CFileBrowser::paintHead()
while ((fnt_title->getRenderWidth(&l_name[i]) > width - 20) && (i < l))
i++;
CComponentsHeader header(x, y, width, theight, &l_name[i], NULL /*no header icon*/);
CComponentsHeader header(x, y, width, theight, &l_name[i]);
header.paint(CC_SAVE_SCREEN_NO);
free(l_name);