Commit Graph

19 Commits

Author SHA1 Message Date
Thilo Graf
a1b81db73e CComponentsItem: move function isAdded() to CComponentsItem class
Origin commit data
------------------
Commit: 3438b23f68
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-10-19 (Sat, 19 Oct 2013)
2013-10-19 01:25:23 +02:00
Thilo Graf
d05f9843f7 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.


Origin commit data
------------------
Commit: 04300f1874
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-06-16 (Sun, 16 Jun 2013)

Origin message was:
------------------
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
afaedb70db CComponents: rename and move real position attributes
These attributes are better placed in the basic class.


Origin commit data
------------------
Commit: 3c5f4867fb
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-05-31 (Fri, 31 May 2013)
2013-06-03 22:12:47 +02:00
Michael Liebmann
860a7c8385 CComponents: Reworked paint the shadows
- Paint rounded corners only where it is required
- Skip paint frame/paint shadow, if not defined


Origin commit data
------------------
Commit: 4da83b546c
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2013-05-24 (Fri, 24 May 2013)

Origin message was:
------------------
* CComponents: Reworked paint the shadows

- Paint rounded corners only where it is required
- Skip paint frame/paint shadow, if not defined
2013-05-24 21:48:56 +02:00
Michael Liebmann
b0f334de56 CComponentsItem::paintInit(): Corrected calculation of sw_cur
- Summarized calculate the values of shadow box


Origin commit data
------------------
Commit: b1c7c7a34c
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2013-05-22 (Wed, 22 May 2013)

Origin message was:
------------------
* CComponentsItem::paintInit(): Corrected calculation of sw_cur

- Summarized calculate the values of shadow box
2013-05-22 22:02:17 +02:00
Michael Liebmann
bb87b2fdea CComponentsItem: Set sw_cur = 0 if no shadow
Origin commit data
------------------
Commit: b8da504432
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2013-05-21 (Tue, 21 May 2013)

Origin message was:
------------------
* CComponentsItem: Set sw_cur = 0 if no shadow
2013-05-21 19:34:53 +02:00
Michael Liebmann
6ee44a7687 Fix CComponents::getScreen()/hide() & CComponentsItem::hideCCItem()
- Use CFrameBuffer::waitForIdle() to ensure that all GXA commands
 are finished before SaveScreen() / RestoreScreen() is executed


Origin commit data
------------------
Commit: 072097cd06
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2013-05-17 (Fri, 17 May 2013)

Origin message was:
------------------
* Fix CComponents::getScreen()/hide() & CComponentsItem::hideCCItem()

- Use CFrameBuffer::waitForIdle() to ensure that all GXA commands
 are finished before SaveScreen() / RestoreScreen() is executed
2013-05-18 14:44:20 +01:00
Thilo Graf
2b284c0978 CComponents: fix missing save of background in paint_bg=false mode
Exit in initVarItem() on !paint_bg was too early.


Origin commit data
------------------
Commit: 9ae72bf02d
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-05-12 (Sun, 12 May 2013)
2013-05-12 14:17:10 +02:00
Thilo Graf
109a0ba9ac CComponents: rework kill()
There was some problems with restore, hide, clean and save background of item parts,
seen in detailsline. kill() worked not really clean.
kill() works now as virtual member and uses paintBackgroundBoxRel().

In consequence of which:
-unnecessary members in subclasses removed.
-add some comments


Origin commit data
------------------
Commit: a4c3e08f77
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-05-03 (Fri, 03 May 2013)
2013-05-03 19:51:57 +02:00
Thilo Graf
fdeda0aab1 CComponentsItem: don't render shadow as full box
Origin commit data
------------------
Commit: 48c4142a24
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-04-20 (Sat, 20 Apr 2013)
2013-04-20 22:55:23 +02:00
Thilo Graf
6f6abfc4e6 CComponentsItem: move calculation out of struct an add comment
Origin commit data
------------------
Commit: d725153ebe
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-04-20 (Sat, 20 Apr 2013)
2013-04-20 13:10:54 +02:00
vanhofen
7c8ad1691d cc_item.cpp: fix wrong calc in paintInit()
Origin commit data
------------------
Commit: 263da08fb9
Author: vanhofen <vanhofen@gmx.de>
Date: 2013-04-18 (Thu, 18 Apr 2013)

Origin message was:
------------------
- cc_item.cpp: fix wrong calc in paintInit()
2013-04-18 17:45:48 +02:00
Thilo Graf
22c5bd5db2 CComponentsItem: prevent possible compile error
Origin commit data
------------------
Commit: df0a454efe
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-04-16 (Tue, 16 Apr 2013)
2013-04-16 11:56:27 +02:00
Thilo Graf
a34b353f06 CComponents: add vars to modifie frames in selected mode
Origin commit data
------------------
Commit: 894d229b09
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-04-16 (Tue, 16 Apr 2013)
2013-04-16 08:32:42 +02:00
Thilo Graf
a034567d97 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.


Origin commit data
------------------
Commit: 336c3bc7a1
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-04-15 (Mon, 15 Apr 2013)
2013-04-16 08:26:56 +02:00
Thilo Graf
2e343b322e CComponentsItem: add properties for stats enabled/selected
Origin commit data
------------------
Commit: 4f623b822f
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-04-13 (Sat, 13 Apr 2013)
2013-04-16 08:26:56 +02:00
Thilo Graf
48237184c8 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.


Origin commit data
------------------
Commit: 62efe2cb59
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-04-10 (Wed, 10 Apr 2013)
2013-04-16 08:26:54 +02:00
Thilo Graf
0e9ff3d23c fix license text, sorry, was a c&p error
Origin commit data
------------------
Commit: 0dc4686874
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-03-20 (Wed, 20 Mar 2013)
2013-03-21 11:37:00 +01:00
Thilo Graf
de00ec3d5e 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.


Origin commit data
------------------
Commit: 3ed9af87ad
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-02-26 (Tue, 26 Feb 2013)
2013-03-06 11:28:18 +01:00