Commit Graph

16 Commits

Author SHA1 Message Date
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
f968abe6c5 CComponentsForm: add new member isAdded() 2013-06-16 00:34:04 +02:00
Thilo Graf
2af1c5d8b2 CComponentsForm: return id only if parameter is not 0 2013-06-16 00:34:04 +02:00
Thilo Graf
d862de87eb CComponentsForm: add missing item type 2013-06-16 00:34:03 +02:00
Thilo Graf
d3d0bff7ac CComponentsForm: fix position of items in added forms
Position of added items in subforms was fitted with wrong offset.
Usage of relative x/y position avoids wrong positions of items in subforms.
2013-06-03 22:11:19 +02:00
Thilo Graf
ddaa7a876e CComponentsForm: add index to items
Helpers to identfie added items.
2013-06-03 22:06:30 +02:00
Thilo Graf
336c3bc7a1 CComponentsItem: add members to set pointer for parent object
Pointer is typically of type CComponentsForm or derived classes,
default intialized with NULL and serves to access for
properties of parent object by embedded items.
2013-04-16 08:26:56 +02:00
Thilo Graf
39a4e3400e CComponentsForm: add own header for form classes 2013-04-16 08:26:56 +02:00
Thilo Graf
62efe2cb59 CComponentsItem/Form: add var for real item position
If items are used in forms it can be usefully to have a variable
which contains the real position on screen.
This can happen e.g. if an item contains separate render methods, because within forms
usual x/y values related to form dimensions and be converted.
2013-04-16 08:26:54 +02:00
Stefan Seyfried
8d8ce4c55a cc_frm: fix invalid cast 2013-04-06 22:20:58 +02:00
Thilo Graf
d391bedd5f CComponents: move item type enum to cc_types.h 2013-04-02 09:31:05 +02:00
Thilo Graf
0dc4686874 fix license text, sorry, was a c&p error 2013-03-21 11:37:00 +01:00
Thilo Graf
69476903ee CComponentsForm/PIP: ensure hiding of minitv during hide of forms
Handling of minitv items are different to other item types
and need an explizit call of hide(). So it is possible to hide a form-
object without a extra call of hide() for minitv objects.
2013-03-18 12:04:37 +01:00
Thilo Graf
4a931af6ef CComponentsForm/Header/Icons/Window: try to fix multiple inits and paints
Some items had multiple inits and some calls of clearCCItems()
have caused segfaults, hope this fix this.
2013-03-18 12:04:25 +01:00
Thilo Graf
da356d94da CComponentsHeader/Icon: use inherited destructor
Inherited destructor contains identic code.
2013-03-18 12:04:21 +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