Commit Graph

14 Commits

Author SHA1 Message Date
Thilo Graf
6dd1da0628 revert 6ee7fac1a5
Was bad idea to rename. Other Classes can also inherit this. See CMenuTarget
2013-10-26 23:25:59 +02:00
Thilo Graf
6ee7fac1a5 CComponents: rename hide() to hideCC()
There are too many name conflicts with hide-members in other classes.
2013-10-24 21:39:04 +02:00
Thilo Graf
04300f1874 CComponents: rework position handling
The real position already used here, if item is bound to a parent.
(bound or embedded means: added with addCCItem() to a form)
This causes no separate calculation in paint methodes of embedded
sub items or sub forms and more nested sub forms.

CComponentsForm have also some new members
- exchangeCCItem() to exchange the order items
- setAppendOffset() to set an offset for auto append mode
  Autoappend is enabled if x or y have value -1 (defined also in CC_APPEND)
  x=horizontal, y=vertical
  Is this activated, no separate calculation of incremental offset
  is required.

However items with independent rendered parts, needs
a separate calculation. In some subclasses was this necessary.
2013-06-16 00:34:06 +02:00
Thilo Graf
d39eaa22fc CComponents: split some header files
CComponentsInfoBox
CComponentsShapeCircle/Square
CComponentsDetailLine
CComponentsPIP
CComponentsText/CComponentsLabel
CComponentsPicture
2013-05-27 09:30:50 +02:00
Thilo Graf
cadb66e225 CComponentsInfoBox: add missing define for text color 2013-04-27 22:20:10 +02:00
Thilo Graf
f774eb833f CComponentsInfoBox: replace static parameter with inherited member
member value was not looped through
2013-04-27 22:16:15 +02:00
Michael Liebmann
3a19edda45 * CComponentsText: Use 'std::string' instead of 'const char*' for ct_text 2013-04-22 15:41:03 +01:00
Thilo Graf
d7ce847471 CComponentsInfoBox: move statement for check of image name
Ensure empty pic object otherwise it can be retained on exit
of paintPicture(), if an instance of Infobox already exists.

supplement to 095c0e1b04
2013-04-06 08:49:16 +02:00
Michael Liebmann
095c0e1b04 * CComponentsInfoBox: CComponentsPicture not create when no image to draw 2013-04-04 16:10:15 +01:00
Thilo Graf
4e7f81a126 CComponentsInfoBox: prevent background paint in infobox
Background for text is not needed here
2013-04-04 09:56:53 +02:00
Thilo Graf
9af63bdc72 CComponentsInfoBox: ensure new init of picture
Delete causes a clean background because it is possible that remnants are
left after changed font size.
2013-03-25 20:23:35 +01:00
Thilo Graf
0dc4686874 fix license text, sorry, was a c&p error 2013-03-21 11:37:00 +01:00
Thilo Graf
0fa2bbc7c9 CComponentsInfoBox: delete clean textbox object before create new object
Ensures a clean environment for changed properties of a textbox in infobox.
2013-03-19 08:10:49 +01:00
Thilo Graf
3ed9af87ad CComponents: split cc_base.cpp
It's easier to work with smaller files.
Most files contain only one cc-class and their names are
derived on the particular class that is contained therein.
2013-03-06 11:28:18 +01:00