Thilo Graf
689d35db25
cc_draw: remove virtual from position setters
2019-10-27 16:24:47 +01:00
Thilo Graf
d86dcd36a7
components: use const bool& parameter in paint methodes
2019-10-27 16:24:47 +01:00
Thilo Graf
73f0c4b25e
cc_item.cpp/cc_detailsline.cpp: clean up and simplify fblayer init
...
use v_fbdata.push_back() for direct fill with contents, reduced effort
2018-12-07 22:57:19 +01:00
Thilo Graf
09940ed419
cc_item.cpp/h: move getPageNumber() into cpp file
...
clean up
2018-12-07 21:47:33 +01:00
Thilo Graf
a25fd62be8
CCTypes: outsource type variables and methods into own inheritable class
2018-04-05 20:55:46 +02:00
Thilo Graf
fb5c943db4
cc: expand cc-type with name
...
Required for internal operations where it is useful to have object
names and for better debugging.
2017-12-30 22:58:15 +01:00
Jacek Jendrzej
75fd96f6b7
silence -Wparentheses-equality warning
2017-11-03 20:14:37 +01:00
Thilo Graf
a19a1f067e
CComponentsItem: fix possible issues with position inside forms
...
This ensures relative position for items inside form
2017-08-08 14:25:12 +02:00
Thilo Graf
069379930a
CComponentsItem: add missing methodes for position setters
...
Parent items were not considered for position calculation.
2017-04-16 16:53:06 +02:00
Thilo Graf
6135a827da
CComponentsItem: disable unused variable
2017-04-08 08:24:41 +02:00
Thilo Graf
bad5f02c06
CComponentsItem: fix possible artefacts if fb box is smaller the radius
...
If box height/2 is smaller than corner radius it is possible
we have artefacts after killed or hided fb box. This effect only I have seen
with full hd resolution, in hd ready mode it was ok.
Sideeffects with this changes I have not seen, but I can't exclude. Must be watched.
2017-04-08 08:15:49 +02:00
Jacek Jendrzej
f76dda36df
fix uninitialised values
2017-01-29 20:54:35 +01:00
Thilo Graf
ee4a443c8a
CComponentsItem: fix possible negativ value for box radius
...
If frame width > 0 and radius too small, we have an negative value.
This should prevent this.
2016-11-23 10:33:58 +01:00
Thilo Graf
717dec02c5
CCDraw: add function for blink effect for cc items
...
NOTE: experimental, for examples see CTestMenu class
2016-11-20 14:09:19 +01:00
Thilo Graf
5bd4903b27
cc_item.cpp: subtract frame width from the inner radius Box
...
Is necessary, because otherwise the frame radius would not match with outside radius
This would mean that there are "holes" at the box corners.
So now it seems to work.
2016-10-24 10:31:26 +02:00
Thilo Graf
59e8a17061
CComponentsItem: ensure some dimensions for shadow are not < 0
2016-10-24 10:31:26 +02:00
Thilo Graf
f62ddcf61d
cc_item.cpp: remove frame width from boxrad
...
In framed boxes, frame radius was too big and was looking bad.
Not sure if this is now fixed everywhere (eg. hintboxes)
2016-10-24 10:31:26 +02:00
Thilo Graf
7266628207
CCDraw: add private variable col_shadow_clean
...
Should help to control shadow clean up in some constallations
2016-10-24 10:31:26 +02:00
Thilo Graf
eb78743e4a
CComponentsItem: unused vars commented out
2016-10-24 10:31:25 +02:00
Thilo Graf
b6185ea78d
CComponentsItem: remove frame witdth from boxrad calculation
...
This fix possible artefacts on the bottom right corner with frame
2016-10-24 10:31:25 +02:00
Thilo Graf
a17d61de8c
Shadow: try to optimize shadow areas
...
* cleanup inner part of box on round corners, frames considered
* adopt implementations in some gui classes
* some debug lines removed
* test menu adopted
* try to fix corner caluculation to avoid transparent holes
2016-10-24 10:31:25 +02:00
Thilo Graf
929b5da892
CComponetnsItem: try to assign shadow areas
...
TODO: possible crashes on some constellations
2016-10-24 10:31:25 +02:00
Thilo Graf
3477e28cd7
CComponentsItem: fix changeing color on select switching of frames
...
expand select mode methodes with paremters for frame properties
This should make variables col_frame_sel and fr_thickness_sel superfluous.
2016-10-24 10:31:25 +02:00
Thilo Graf
307b2763bd
shadow: paint shadow layer with multiple renderboxes
...
Should help to paint a clean shadow frame
2016-10-24 10:31:24 +02:00
svenhoefer
75fe6e407d
- colors: add COL_FRAME wrapper
2016-10-10 14:19:54 +02:00
Thilo Graf
a4b2e25bf2
CComponentsItem: prevent reinit of already initialized parent form
2016-09-29 10:19:37 +02:00
svenhoefer
1f60557e0b
- ccomponents: use COL_SHADOW for shadows
2016-08-16 08:37:54 +02:00
Thilo Graf
711cb98754
CComponentsItem: ensure display of frame as last layer
2016-06-26 15:32:36 +02:00
Thilo Graf
65de6dee9f
CComponentsItem: add missing parameter to kill() member
...
Was not passed to parent methode.
2016-01-29 15:31:12 +01:00
Thilo Graf
107c3234b2
CComponentsItem: reset paint mode after cleanup
2016-01-26 20:00:22 +01:00
Thilo Graf
695f845907
CComponentsItem: remove clean up from kill()
...
It is not always useful to clean up everything with kill().
For more control in some cases an separate clean up should be better.
2016-01-21 10:16:37 +01:00
Thilo Graf
976e0251ee
CComponentsItem: try to fix clean up screen buffers after killed items
2016-01-03 20:25:15 +01:00
Thilo Graf
0146511f38
components: rework classes
...
- outsourced some classes cc_item.cpp/h, cc_draw.cpp/h
- added extra methodes for simple use of some basic components extra.cpp/h
- rework clock handling: use timer class, reworked members for
enable/disable clock with external timer events,
tryed to fix some display issues related with infoclock and
time osd clock in moviebrowser, channellist, menuus
- reworked hide/kill handling, removed parameter for hide(), try to use
cached backgrounds for other constallations, paint cache, image cache (all beta)
- reworked shadow/frame handling, add shadow modes for left/right
arrangement, TODO: repaint for existant instances required
- reworked color gradient assignment (beta)
... Note: I had a data crash in my local git tree
and i tryed to restore my historie, but most was lost. Therefore here
the commit is large
2015-12-27 14:42:27 +01:00
[CST] Focus
62a9621cb0
gui/components/cc_item.cpp: use theme option for one/two color gradient
2015-05-07 16:39:28 +03:00
TangoCash
a8be4f6365
enable color-to-color gradient
2015-05-04 09:41:41 +02:00
[CST] Focus
53ce471af8
gradient: try to fix delete gradient data only on color change
...
Signed-off-by: Thilo Graf <dbt@novatux.de >
2015-04-27 09:25:34 +02:00
Thilo Graf
d8da2a3087
Revert "CComponentsItem: fix remove gradient buffer on killed item"
...
This reverts commit 51aab307c3
.
2015-04-27 09:21:19 +02:00
Thilo Graf
51aab307c3
CComponentsItem: fix remove gradient buffer on killed item
2015-03-29 22:40:08 +02:00
Thilo Graf
8ebb5f98ca
CComponentsItem: add setXPos/setYPos(), that consider real position
2015-03-29 22:39:58 +02:00
M. Liebmann
58224099fd
CColorGradient::gradientOneColor: Adjustment for min/max brightness...
...
...and color saturation added
- Use only the hue of base color for gradient
2014-09-25 11:08:22 +04:00
Thilo Graf
f9147d185a
CComponents: add setColBodyGradient() to set gradient properties
...
This provides possibility to set relevant gradiant properties in cc sub classes
2014-09-25 11:08:08 +04:00
Thilo Graf
581405e076
CComponentsItem: move initBodyGradient() into base class
...
This provides functinality for all sub classes too
2014-09-25 11:08:04 +04:00
M. Liebmann
db6fd8480d
CComponents: Add color gradient for CC_FBDATA_TYPE_BOX
2014-09-25 11:06:01 +04:00
Thilo Graf
0c0e0e85ff
CComponentsItem/CComponentsForm: add property focus
...
Specifies that some certain operations especially eg. exec events for
that item are possible.
2014-09-25 11:02:32 +04:00
Thilo Graf
62acbb47ab
CComponentsItem: fix percentage dimensions setters
...
heigth and width were swapped, parameter "real" was false
2014-07-18 13:31:29 +04:00
Thilo Graf
672757606c
CComponents: implement scroll functionality into CComponentsForm
...
CComponentsForm provides page scroll if found more
than one pre defined page and is working with all derivated sub classes from CComponentsForm .
Pages are defined with setPageNumber(0...n) in items (1st page = 0). The item page number property is
defined in variable cc_page_number. The highest page number sets the
count of pages inside container to required value. Thats compellingly!
To show a page, we can use setCurrentPage(0...n ) and paintCurPage() or use directly paintPage(0...n).
Note: global paint() will show the current page. Default page is 0 (as first).
Use setCurrentPage(0...n) to change this before first call of paint().
Note: In CComponentsWindow class, these methods are applied to window body.
For examples, take a look into CTestMenu
2014-06-27 20:49:41 +02:00
Thilo Graf
2aff49deea
CComponentsItem: remove unnecessary calculation of position with frame
...
This should be done in the arrangement of the container contents
2014-06-23 18:43:47 +02:00
Thilo Graf
dc007e810a
CComponents: use paintBoxRel() only in kill()
...
paintBackgroundBoxRel() ignores rounded corners. This avoids painting of
undesirable parts on corners.
2014-05-22 21:50:55 +02:00
Thilo Graf
336ddf75b6
CComponents/CComponentsItem: simplify statement
2014-05-22 21:50:55 +02:00
Thilo Graf
6ba757bd9d
CComponentsItem: don't increase x/y position if frame width already defined
2014-05-16 09:08:25 +02:00