Thilo Graf
38dffb8456
CComponentsItem: add members to set item position via percent value
2014-03-03 08:54:10 +01:00
Thilo Graf
f813b9ea98
CComponents: add member CheckFbData() for fbdata check
...
This check happens several times, therefore it is senseful, to move into own member.
Function returns false on error and is used here to show an error message if
something was wrong.
Such errors can happen on position or dimension errors e.g. out of screen or
too large display values.
Note: this is only an emergency helper for debugging on
fatal errors during developing of window stuff. Mostly errors
of this kind causing crashes and must be fixed.
2014-03-03 08:54:09 +01:00
Thilo Graf
57a6c36329
CComponents: remove wrong init value for item position
...
This causes an unnecessary offset and possible fb-remains.
This was observed at the header in Imageinfo, but only without shadow.
2014-02-05 11:56:48 +01:00
Thilo Graf
39d6340598
CComponents: rework some debug outputs
...
This shows also x or y values < 0.
2014-01-24 23:13:45 +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
9b299824d6
CComponents: prevent possible segfaults, remove redundant delete
...
- if dx, dy == 0, it is not senseful to save screen.
- delete[] v_fbdata[i].pixbuf is also called in clear()
2013-12-22 20:07:33 +01:00
Stefan Seyfried
9eddaedfdd
CComponents: fix compiler warnings with DEBUG_CC
2013-12-18 21:10:17 +01:00
Thilo Graf
8442b39c28
CComponents: replace __FUNCTION__ with __func__
...
__func__ is more suitable for portability
2013-12-18 15:13:19 +01:00
Thilo Graf
a7379d6cee
CComponents: use DEBUG_CC for debug output
2013-11-17 15:19:43 +01:00
Thilo Graf
a6e0564c2b
CComponents: remove log spam
2013-11-12 10:52:24 +01:00
Thilo Graf
e5b0673259
CComponents: add log warning if position = 0
...
Value 0 for embedded items should be unproblematic, buy single items
should have minimum value = 1.
2013-11-11 00:19:48 +01:00
Thilo Graf
8ae491a994
CComponents: add property to allow/disallow paint of items
...
This causes initialization of all properties, but
affects the behavior of item paint.
This can be understood as a counterpart to isPainted().
2013-11-11 00:19:48 +01:00
Thilo Graf
72705b19de
CComponents: use correct initial values screen start position
...
Value '0' is wrong.
2013-11-11 00:19:47 +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
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
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
Michael Liebmann
c5e223a231
* CComponents: Add corner_type to paintFbItems() => paintBoxFrame()
2013-05-16 11:01:41 +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
Michael Liebmann
612ef514a3
* CComponents::paintFbItems: Fix paint frame
...
- Remove function CComponents::allowPaint()
2013-05-10 11:32:12 +01:00
Michael Liebmann
309b371060
* CComponents::paintFbItems: Don't paint item if dx or dy are 0
2013-05-08 07:06:12 +01: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
894d229b09
CComponents: add vars to modifie frames in selected mode
2013-04-16 08:32:42 +02:00
Thilo Graf
d7c35b07e4
CComonents: use allowPaint() as private, parameter as by rev
...
not used in sub classes
2013-04-16 08:26:56 +02:00
Jacek Jendrzej
d18217effb
CComponents: don't paint the same box with different colors as background
2013-04-04 12:19:31 +02:00
Thilo Graf
860be9a412
CComponents: add progressbar class to cc-items
...
CProgressbar moved into components sub directory and adapt includes.
Progressbar objects are now usable as cc-item
TODO:
-some color and size corrections
-found some dub codes for sig and snr-bars, needs rework
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
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
Thilo Graf
10f429ee0f
CComponents: move components.cpp to cc_base.cpp, move types to own header
2013-03-06 11:28:18 +01:00