Commit Graph

79 Commits

Author SHA1 Message Date
Thilo Graf
8a897103ac CComponentsItem: move/rename doCenter()to base class CComponentsItem
So it's possible to use this method for all cc-items.
setCenterPos() comes now with parameter 'along_mode' (CC_ALONG_X, CC_ALONG_Y).
So it's possible to center in x or y direction. As default are
both directions predefined.
2014-03-03 08:54:10 +01:00
Thilo Graf
38dffb8456 CComponentsItem: add members to set item position via percent value 2014-03-03 08:54:10 +01:00
Thilo Graf
ed7a2fd625 CComponents: replace clear() with clearFbData(), remove cleanCCForm()
clear() replaces now clearCCItems() and cleanCCForm() is superfluous.
2014-01-07 09:41:06 +01:00
Thilo Graf
8442b39c28 CComponents: replace __FUNCTION__ with __func__
__func__ is more suitable for portability
2013-12-18 15:13:19 +01:00
[CST] Focus
93a326e9eb components: remove initVarBasic and initVarItem calls from derived classes 2013-11-29 17:27:10 +04:00
Thilo Graf
4ed6e54da6 CComponentsItem: add missing is_painted to hideCCItem() 2013-11-11 00:19:46 +01:00
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
f7798affc6 CComponents: add unfied header file for general include of cc classes
Provides a unified header file, so it is not required to select a
certain header file.
2013-10-24 21:19:07 +02:00
Michael Liebmann
b3559e37f8 CComponentsItem: Remove parameter from function isAdded() 2013-10-21 09:32:15 +02:00
Thilo Graf
3438b23f68 CComponentsItem: move function isAdded() to CComponentsItem class 2013-10-19 01:25:23 +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
3c5f4867fb CComponents: rename and move real position attributes
These attributes are better placed in the basic class.
2013-06-03 22:12:47 +02:00
Michael Liebmann
4da83b546c * 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
b1c7c7a34c * CComponentsItem::paintInit(): Corrected calculation of sw_cur
- Summarized calculate the values of shadow box
2013-05-22 22:02:17 +02:00
Michael Liebmann
b8da504432 * CComponentsItem: Set sw_cur = 0 if no shadow 2013-05-21 19:34:53 +02:00
Michael Liebmann
072097cd06 * 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
9ae72bf02d CComponents: fix missing save of background in paint_bg=false mode
Exit in initVarItem() on !paint_bg was too early.
2013-05-12 14:17:10 +02:00
Thilo Graf
a4c3e08f77 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
2013-05-03 19:51:57 +02:00
Thilo Graf
48c4142a24 CComponentsItem: don't render shadow as full box 2013-04-20 22:55:23 +02:00
Thilo Graf
d725153ebe CComponentsItem: move calculation out of struct an add comment 2013-04-20 13:10:54 +02:00
svenhoefer
263da08fb9 - cc_item.cpp: fix wrong calc in paintInit() 2013-04-18 17:45:48 +02:00
Thilo Graf
df0a454efe CComponentsItem: prevent possible compile error 2013-04-16 11:56:27 +02:00
Thilo Graf
894d229b09 CComponents: add vars to modifie frames in selected mode 2013-04-16 08:32:42 +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
4f623b822f CComponentsItem: add properties for stats enabled/selected 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
Thilo Graf
0dc4686874 fix license text, sorry, was a c&p error 2013-03-21 11:37:00 +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