CComponentsItem is shorter then CComponentsContainer, but also
plausible and appropriately.
paint() is required in all sub classes and useful for coming functions.
changed isPainted() to isPicPainted(), return of isPicPainted() value was
not marked-down to false and isPainted() means the container frame and
isPicPainted() means the picture itself, so the last state was wrong. Now
it should work fine.
Btw: scope of x_text reduced, is only required in member paintText()
...also removed parameter for text ailgnment, because the most titelbars
need only left alignment and if required more elements, we can use the
addElement() methode.
*rename col_text to class relevant names,
col_text is already defined in class CComponents InfoBox and
its easy to confuse member names
*add member printItemBox() and
move calculateElements() into CComponentsItemBox and use it
in print() and refreshElement()
- change default colors for info box
- add member methode to synchronize system colors
- add class CComponentsShapeCircle
- add class CComponentsShapeSquare
- add sub class CComponentsPIP
- add virtual members to set colors
- remove parameters from CComponents constructor and set default values
in constructor
- v_fbdata becomes a protected member, because old members like
v_screen_val and v_infobox_val not needed in sub classes
- using sizeof() to get size of fbdata structs in paint() members,
so we don't need explizit defines for struct size
- new class CComponentsContainer is a basic class for
CComponentsInfoBox and other similar coming sub classes
- use enums for fbdata types
- add function setShadowOnOff()
- also add defines for plausible usage of setShadowOnOff(CC_SHADOW_ON/OFF)
The components could over time become quite large,
so it makes more sense, coming features to split into
multiple files and to do it in a separate directory.