Commit Graph

58 Commits

Author SHA1 Message Date
Thilo Graf
43477d076a CComponentsItem: prevent reinit of already initialized parent form
Origin commit data
------------------
Commit: a4b2e25bf2
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-09-29 (Thu, 29 Sep 2016)
2016-09-29 10:19:37 +02:00
vanhofen
9c8dabd7ba ccomponents: use COL_SHADOW for shadows
Origin commit data
------------------
Commit: 1f60557e0b
Author: vanhofen <vanhofen@gmx.de>
Date: 2016-08-16 (Tue, 16 Aug 2016)

Origin message was:
------------------
- ccomponents: use COL_SHADOW for shadows
2016-08-16 08:37:54 +02:00
Thilo Graf
b57cc261e0 CComponentsItem: ensure display of frame as last layer
Origin commit data
------------------
Commit: 711cb98754
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-05-16 (Mon, 16 May 2016)
2016-06-26 15:32:36 +02:00
Thilo Graf
a8154e53d6 CComponentsItem: add missing parameter to kill() member
Was not passed to parent methode.


Origin commit data
------------------
Commit: 65de6dee9f
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-01-28 (Thu, 28 Jan 2016)
2016-01-29 15:31:12 +01:00
Thilo Graf
674e1f34c5 CComponentsItem: reset paint mode after cleanup
Origin commit data
------------------
Commit: 107c3234b2
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-01-24 (Sun, 24 Jan 2016)
2016-01-26 20:00:22 +01:00
Thilo Graf
43732bf678 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.


Origin commit data
------------------
Commit: 695f845907
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-01-10 (Sun, 10 Jan 2016)
2016-01-21 10:16:37 +01:00
Thilo Graf
4c8eebb0d1 CComponentsItem: try to fix clean up screen buffers after killed items
Origin commit data
------------------
Commit: 976e0251ee
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-01-03 (Sun, 03 Jan 2016)
2016-01-03 20:25:15 +01:00
Thilo Graf
72a289a90c 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


Origin commit data
------------------
Commit: 0146511f38
Author: Thilo Graf <dbt@novatux.de>
Date: 2015-11-18 (Wed, 18 Nov 2015)

Origin message was:
------------------
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
fdc360bdb2 gui/components/cc_item.cpp: use theme option for one/two color gradient
Origin commit data
------------------
Commit: 62a9621cb0
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2015-05-07 (Thu, 07 May 2015)
2015-05-07 16:39:28 +03:00
TangoCash
26337a2c8a enable color-to-color gradient
Origin commit data
------------------
Commit: a8be4f6365
Author: TangoCash <eric@loxat.de>
Date: 2015-05-04 (Mon, 04 May 2015)
2015-05-04 09:41:41 +02:00
[CST] Focus
c4d94d60fd gradient: try to fix delete gradient data only on color change
Signed-off-by: Thilo Graf <dbt@novatux.de>


Origin commit data
------------------
Commit: 53ce471af8
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2015-04-27 (Mon, 27 Apr 2015)
2015-04-27 09:25:34 +02:00
Thilo Graf
b1bcb22dd9 Revert "CComponentsItem: fix remove gradient buffer on killed item"
This reverts commit 75deb5712c.


Origin commit data
------------------
Commit: d8da2a3087
Author: Thilo Graf <dbt@novatux.de>
Date: 2015-04-27 (Mon, 27 Apr 2015)
2015-04-27 09:21:19 +02:00
Thilo Graf
75deb5712c CComponentsItem: fix remove gradient buffer on killed item
Origin commit data
------------------
Commit: 51aab307c3
Author: Thilo Graf <dbt@novatux.de>
Date: 2015-01-14 (Wed, 14 Jan 2015)
2015-03-29 22:40:08 +02:00
Thilo Graf
e83a7beda7 CComponentsItem: add setXPos/setYPos(), that consider real position
Origin commit data
------------------
Commit: 8ebb5f98ca
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-11-30 (Sun, 30 Nov 2014)
2015-03-29 22:39:58 +02:00
Michael Liebmann
acfc4981e4 CColorGradient::gradientOneColor: Adjustment for min/max brightness...
...and color saturation added
- Use only the hue of base color for gradient


Origin commit data
------------------
Commit: 58224099fd
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2014-09-20 (Sat, 20 Sep 2014)
2014-09-25 11:08:22 +04:00
Thilo Graf
3ffddab216 CComponents: add setColBodyGradient() to set gradient properties
This provides possibility to set relevant gradiant properties in cc sub classes


Origin commit data
------------------
Commit: f9147d185a
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-09-20 (Sat, 20 Sep 2014)
2014-09-25 11:08:08 +04:00
Thilo Graf
efdceca857 CComponentsItem: move initBodyGradient() into base class
This provides functinality for all sub classes too


Origin commit data
------------------
Commit: 581405e076
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-09-20 (Sat, 20 Sep 2014)
2014-09-25 11:08:04 +04:00
Michael Liebmann
7fd3742c49 CComponents: Add color gradient for CC_FBDATA_TYPE_BOX
Origin commit data
------------------
Commit: db6fd8480d
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2014-09-20 (Sat, 20 Sep 2014)
2014-09-25 11:06:01 +04:00
Thilo Graf
7fbe2501f6 CComponentsItem/CComponentsForm: add property focus
Specifies that some certain operations especially eg. exec events for
that item are possible.


Origin commit data
------------------
Commit: 0c0e0e85ff
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-09-02 (Tue, 02 Sep 2014)
2014-09-25 11:02:32 +04:00
Thilo Graf
d46f16cdca CComponentsItem: fix percentage dimensions setters
heigth and width were swapped, parameter "real" was false


Origin commit data
------------------
Commit: 62acbb47ab
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-07-17 (Thu, 17 Jul 2014)
2014-07-18 13:31:29 +04:00
Thilo Graf
3224594375 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


Origin commit data
------------------
Commit: 672757606c
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-06-26 (Thu, 26 Jun 2014)
2014-06-27 20:49:41 +02:00
Thilo Graf
b11d88cae8 CComponentsItem: remove unnecessary calculation of position with frame
This should be done in the arrangement of the container contents


Origin commit data
------------------
Commit: 2aff49deea
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-06-22 (Sun, 22 Jun 2014)
2014-06-23 18:43:47 +02:00
Thilo Graf
f56cc44f9e CComponents: use paintBoxRel() only in kill()
paintBackgroundBoxRel() ignores rounded corners. This avoids painting of
undesirable parts on corners.


Origin commit data
------------------
Commit: dc007e810a
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-05-18 (Sun, 18 May 2014)
2014-05-22 21:50:55 +02:00
Thilo Graf
421feedf2a CComponents/CComponentsItem: simplify statement
Origin commit data
------------------
Commit: 336ddf75b6
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-05-18 (Sun, 18 May 2014)
2014-05-22 21:50:55 +02:00
Thilo Graf
eae22e3579 CComponentsItem: don't increase x/y position if frame width already defined
Origin commit data
------------------
Commit: 6ba757bd9d
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-05-04 (Sun, 04 May 2014)
2014-05-16 09:08:25 +02:00
Thilo Graf
41218662ff CComponents/CComponentsItem: add advanced version of kill()
kill() allows now paint with defined colors over rendered objects
without restore of background. It's similar to paintBackgroundBoxRel()
known from CFrameBuffer, but with possiblity to define color,
default color is 0 like before (empty background).
Items with parent bindings use the background color of its parent
as default, but can also be ignored.

This function can be useful before repaint of items and/or,
if required, to have a clean background inside item containers.


Origin commit data
------------------
Commit: 6a2e701a7a
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-05-05 (Mon, 05 May 2014)
2014-05-16 09:08:25 +02:00
Thilo Graf
37915b1e2e CComponents: use neutrino debug mode for debug output
Origin commit data
------------------
Commit: 750691fbbf
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-03-08 (Sat, 08 Mar 2014)
2014-04-02 08:40:21 +02:00
Thilo Graf
f33efdbdc4 CComponents: add new parameter 'parent'
Use strictly CComponentsForm as parent parameter in constructors.
Some parts have been cleaned up (Constructors, init methodes removed)

New parameter makes it possible already add current item in constructor.
So in mostly situations is it not necessary to use explicit addCCItem(),
but addCCItem()is still valid and necessary in certain situations.

Affected are all cc-classes and their derivates.
Some classes must or can be adapted later. The function is
not currently restricted, because usage of parent parameter is not explicit
defined in constructors, see CImageInfo, here yet are used addCCItem()
methodes.

Generally this parameter is located in the constructors before bool has_shadow,
but it is not sure whether it would be better to use this parameter as the first.
That remains to be clarified.


Origin commit data
------------------
Commit: 23d7b62cf0
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-03-03 (Mon, 03 Mar 2014)
2014-03-03 09:43:39 +01:00
Thilo Graf
bafa64bba9 CComponentsItem: add methodes to set width and height via percent value
Percent value is related to current screen or parent size


Origin commit data
------------------
Commit: a33cad448a
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-02-27 (Thu, 27 Feb 2014)
2014-03-03 08:54:10 +01:00
Thilo Graf
cc24c195ee 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.


Origin commit data
------------------
Commit: 8a897103ac
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-02-27 (Thu, 27 Feb 2014)
2014-03-03 08:54:10 +01:00
Thilo Graf
ecdc19e8bc CComponentsItem: add members to set item position via percent value
Origin commit data
------------------
Commit: 38dffb8456
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-02-26 (Wed, 26 Feb 2014)
2014-03-03 08:54:10 +01:00
Thilo Graf
ba7524f6bb CComponents: replace clear() with clearFbData(), remove cleanCCForm()
clear() replaces now clearCCItems() and cleanCCForm() is superfluous.


Origin commit data
------------------
Commit: ed7a2fd625
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-01-07 (Tue, 07 Jan 2014)
2014-01-07 09:41:06 +01:00
Thilo Graf
c9d2e43271 CComponents: replace __FUNCTION__ with __func__
__func__ is more suitable for portability


Origin commit data
------------------
Commit: 8442b39c28
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-12-15 (Sun, 15 Dec 2013)
2013-12-18 15:13:19 +01:00
[CST] Focus
ea03f3c7a5 components: remove initVarBasic and initVarItem calls from derived classes
Origin commit data
------------------
Commit: 93a326e9eb
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2013-11-27 (Wed, 27 Nov 2013)
2013-11-29 17:27:10 +04:00
Thilo Graf
d31fe6eef8 CComponentsItem: add missing is_painted to hideCCItem()
Origin commit data
------------------
Commit: 4ed6e54da6
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-10-30 (Wed, 30 Oct 2013)
2013-11-11 00:19:46 +01:00
Thilo Graf
5f9bb84b28 revert 2649ca147a
Was bad idea to rename. Other Classes can also inherit this. See CMenuTarget


Origin commit data
------------------
Commit: 6dd1da0628
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-10-25 (Fri, 25 Oct 2013)
2013-10-26 23:25:59 +02:00
Thilo Graf
2649ca147a CComponents: rename hide() to hideCC()
There are too many name conflicts with hide-members in other classes.


Origin commit data
------------------
Commit: 6ee7fac1a5
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-10-24 (Thu, 24 Oct 2013)
2013-10-24 21:39:04 +02:00
Thilo Graf
41d131eb32 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.


Origin commit data
------------------
Commit: f7798affc6
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-10-24 (Thu, 24 Oct 2013)
2013-10-24 21:19:07 +02:00
Michael Liebmann
38f34886e6 CComponentsItem: Remove parameter from function isAdded()
Origin commit data
------------------
Commit: b3559e37f8
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2013-10-21 (Mon, 21 Oct 2013)
2013-10-21 09:32:15 +02:00
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