Commit Graph

52 Commits

Author SHA1 Message Date
Thilo Graf
c35d8b0c26 CCDraw: add function for blink effect for cc items
NOTE: experimental, for examples see CTestMenu class


Origin commit data
------------------
Commit: 717dec02c5
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-11-20 (Sun, 20 Nov 2016)
2016-11-20 14:09:19 +01:00
Thilo Graf
d9b71722a5 Merge branch 'master' into pu/msgbox
Origin commit data
------------------
Commit: 5394f4b2e1
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-11-12 (Sat, 12 Nov 2016)
2016-11-12 22:31:11 +01:00
vanhofen
9533a9ba4e cc_item_picture: reset keep_aspect variables after use
Origin commit data
------------------
Commit: 73b97ecd4d
Author: vanhofen <vanhofen@gmx.de>
Date: 2016-11-12 (Sat, 12 Nov 2016)

Origin message was:
------------------
- cc_item_picture: reset keep_aspect variables after use
2016-11-12 22:00:12 +01:00
Thilo Graf
5d9e739abf Merge branch 'master' into pu/msgbox
Origin commit data
------------------
Commit: 9b9d2542e6
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-10-28 (Fri, 28 Oct 2016)
2016-10-28 08:05:34 +02:00
vanhofen
7764cfac0a cc_item_picture: fix wrong operator in width calculation
Origin commit data
------------------
Commit: 874f54af4b
Author: vanhofen <vanhofen@gmx.de>
Date: 2016-10-27 (Thu, 27 Oct 2016)

Origin message was:
------------------
- cc_item_picture: fix wrong operator in width calculation
2016-10-27 23:11:43 +02:00
Thilo Graf
fcb732f839 CComponentsPicture: use body color as default clean up color
Origin commit data
------------------
Commit: 9668f89db1
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-10-05 (Wed, 05 Oct 2016)
2016-10-24 10:31:26 +02:00
Thilo Graf
7179f3d3f0 Try to rework footer
* try to fix enableButtonShadow(), seems an init is missing
* shadow fixed


Origin commit data
------------------
Commit: 2e631fd0ce
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-09-24 (Sat, 24 Sep 2016)
2016-10-24 10:31:25 +02:00
vanhofen
f21851aec0 rename SHADOW_OFFSET -> OFFSET_SHADOW
Origin commit data
------------------
Commit: 5d450c60d3
Author: vanhofen <vanhofen@gmx.de>
Date: 2016-10-10 (Mon, 10 Oct 2016)

Origin message was:
------------------
- rename SHADOW_OFFSET -> OFFSET_SHADOW
2016-10-10 14:19:55 +02:00
Thilo Graf
3fd0290be3 CComponentsChannelLogo: rework logic of inital statement in setChannel()
This should fix missing logos on existant chnannellogo instances.
For example, this was to see if user has opened eventlist and
opens timerlist with button '0'. After closed timerlist logos were lost.


Origin commit data
------------------
Commit: 69ab25e111
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-06-02 (Thu, 02 Jun 2016)
2016-06-02 16:48:35 +02:00
Jacek Jendrzej
c1aa2509a3 avoid division by zero and fix segfault
Origin commit data
------------------
Commit: 9f20b27890
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2016-05-23 (Mon, 23 May 2016)
2016-05-23 14:17:25 +02:00
Thilo Graf
f2890c0051 CComponentsPicture: allow image cache only for scaled images
Origin commit data
------------------
Commit: 8be980b621
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-02-16 (Tue, 16 Feb 2016)
2016-02-16 10:29:06 +01:00
Thilo Graf
862b4cec54 CComponentsPicture: move resize to end of methode
Origin commit data
------------------
Commit: 96f9eaf287
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-02-08 (Mon, 08 Feb 2016)
2016-02-16 10:28:57 +01:00
Thilo Graf
486cc04a53 CComponentsPicture: add more comments an debug lines, remove useless init
Origin commit data
------------------
Commit: 7ed5b5b886
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-02-07 (Sun, 07 Feb 2016)
2016-02-16 10:28:05 +01:00
Thilo Graf
bcbd30325d CComponentsPicture: try to rework init behavior inside object
need_init var shoul help to avoid not required inits.
Size of cached image are packed into own vars, should avoid possible
overwriting with current dimensions.


Origin commit data
------------------
Commit: 93777853f0
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-02-05 (Fri, 05 Feb 2016)
2016-02-16 10:27:50 +01:00
Thilo Graf
e57763b959 CComponentsPicture: add some debug messages to track caching
Origin commit data
------------------
Commit: 82e2a168f1
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-02-03 (Wed, 03 Feb 2016)
2016-02-16 10:22:48 +01:00
Thilo Graf
7bcb7eb06c CComponentsPicture: ensure cache cleanup on missing image while runtime
Origin commit data
------------------
Commit: 9e4ad83305
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-01-31 (Sun, 31 Jan 2016)
2016-02-16 10:22:33 +01:00
Michael Liebmann
1db2e30241 CComponentsPicture: Align pictures at 4 byte boundary...
...for hw blit on apollo/kronos hardware


Origin commit data
------------------
Commit: 346b28556f
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2016-01-26 (Tue, 26 Jan 2016)
2016-01-26 09:51:48 +01:00
Thilo Graf
eb98cfb3ee CComponentsPicture: fix missing dimension values on wrong image location
In some constellations we can't get dimensions from getIconSize(),
so it is useful to fall back to g_PicViewer->getSize().

Cache cleanup removed, can be done at runtime if required.


Origin commit data
------------------
Commit: 0c67739074
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-01-19 (Tue, 19 Jan 2016)
2016-01-19 15:33:05 +01:00
Stefan Seyfried
ad28aac339 fix debug output printf type warnings
Origin commit data
------------------
Commit: fa05d6a415
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2015-12-28 (Mon, 28 Dec 2015)
2016-01-14 22:28:59 +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
Thilo Graf
bc4a8cc364 CComponentsPicture: fix and simplify image scale handling
Aspect ratio was not considered in some constallations, To see on button
icons and oversized custom channellogos in channllist.
Now this is handeled on init of image object and setters for width and height.


Origin commit data
------------------
Commit: 53a350d5af
Author: Thilo Graf <dbt@novatux.de>
Date: 2015-07-11 (Sat, 11 Jul 2015)
2015-07-17 15:35:18 +02:00
Thilo Graf
37dd574464 CComponentsPicture: fix internal value for dimension vars
The values contained not values from the scaled image file.


Origin commit data
------------------
Commit: 5e380fa4f8
Author: Thilo Graf <dbt@novatux.de>
Date: 2015-06-30 (Tue, 30 Jun 2015)
2015-07-01 15:56:42 +02:00
Thilo Graf
a828999513 CComponentsPicture: fix icon size/scale handling
Origin commit data
------------------
Commit: e8d46a8a55
Author: Thilo Graf <dbt@novatux.de>
Date: 2015-01-14 (Wed, 14 Jan 2015)
2015-03-29 22:40:07 +02:00
Thilo Graf
02e7e4a685 CComponentsPicture: don't paint image, if is not available
Origin commit data
------------------
Commit: 8929255e9e
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-10-30 (Thu, 30 Oct 2014)
2015-03-29 22:39:54 +02:00
Thilo Graf
0e7495bde4 CComponentsPicture: simplify item init, adapt getHeight/getWidth members
Members getHeight/getWidth returns now image related values dependent of
scale mode


Origin commit data
------------------
Commit: 8227638c06
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-10-12 (Sun, 12 Oct 2014)
2015-03-29 22:39:53 +02:00
Thilo Graf
a82a5a972b CComponentsPicture: rework scale behavior
Scaling mode not longer only dependent from image name.
Now also evaluated parameters.
Image objects with defined dimensions will be scaled.
Icons without defined path and file type, will be scaled as before.


Origin commit data
------------------
Commit: f75f0ed6e3
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-10-07 (Tue, 07 Oct 2014)
2014-10-08 14:14:29 +04:00
Michael Liebmann
1376d2c518 CComponentsPicture: Add parameter 'transparent'...
...to set the transparency of pictures

- Set default transparency for CComponentsChannelLogo to
 CFrameBuffer::TM_BLACK
 (Transparency when black content -> 'pseudo' transparency)

- Set default transparency for CComponentsPicture to
 CFrameBuffer::TM_NONE (No 'pseudo' transparency)


Origin commit data
------------------
Commit: a182fca81f
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2014-07-10 (Thu, 10 Jul 2014)

Origin message was:
------------------
CComponentsPicture: Add parameter 'transparent'...

...to set the transparency of pictures

- Set default transparency for CComponentsChannelLogo to
 CFrameBuffer::TM_BLACK
 (Transparency when black content -> 'pseudo' transparency)

- Set default transparency for CComponentsPicture to
 CFrameBuffer::TM_NONE (No 'pseudo' transparency)
2014-07-10 16:38:09 +02:00
Michael Liebmann
2811ab583b CComponentsChannelLogo: disable paint of logo background, it's not required here
- Fix calculation of logo width & height


Origin commit data
------------------
Commit: 3d805054f4
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2014-06-28 (Sat, 28 Jun 2014)
2014-06-29 13:25:32 +02:00
Thilo Graf
60455587be CComponentsPicture: use current instance of CPictureViewer
reduce precautionary too much unnecessary impact


Origin commit data
------------------
Commit: e6f6931b72
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-06-25 (Wed, 25 Jun 2014)
2014-06-27 20:38:59 +02:00
Thilo Graf
46495cbf40 CComponentsPicture: structure of class highly simplified
It should be now easier to use images as objects. An initialized
picture object should provide all relevant properties and some
functionalities of picture viewer.


Origin commit data
------------------
Commit: 5eb63b9515
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-06-20 (Fri, 20 Jun 2014)

Origin message was:
------------------
CComponentsPicture: structure of class highly simplified

It should be now easier to use images as objects. An initialized
picture object should provide all relevant properties and some
functionalities of picture viewer.
2014-06-23 18:43:47 +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
20782a486c CComponentsInfoBox, CComponentsPicture: add overloaded members setPicture()
Origin commit data
------------------
Commit: c34f25bb7d
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-02-26 (Wed, 26 Feb 2014)
2014-03-03 08:54:09 +01:00
Thilo Graf
1b4e545c5d CComponentsPicture: fix item position
x/y position was not assigned here for internal pic_x/pic_y vars.
Therefore x/y was ignored.


Origin commit data
------------------
Commit: 27c6bdccaf
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-02-14 (Fri, 14 Feb 2014)
2014-02-16 19:11:38 +01:00
Thilo Graf
6327804c8a CComponentsPicture: add debug output for handled item dimensions and pos
Origin commit data
------------------
Commit: 14a3546b5f
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-02-03 (Mon, 03 Feb 2014)
2014-02-05 11:56:48 +01:00
Thilo Graf
83afb37b11 CComponentsPicture: rework constructors, clean ups
Origin commit data
------------------
Commit: 34fcdec276
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-02-03 (Mon, 03 Feb 2014)
2014-02-05 11:56:48 +01:00
Thilo Graf
c0b74d30e8 CComponentsPicture: show paint mode in debug output
Origin commit data
------------------
Commit: 718824015a
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-02-03 (Mon, 03 Feb 2014)
2014-02-05 11:56:48 +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
Stefan Seyfried
68e18e35d3 fix format string warnings
Origin commit data
------------------
Commit: 630c66330d
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2013-11-10 (Sun, 10 Nov 2013)
2013-11-13 10:38:27 +01:00
Thilo Graf
1f85322357 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().


Origin commit data
------------------
Commit: 8ae491a994
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-11-08 (Fri, 08 Nov 2013)
2013-11-11 00:19:48 +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
0aea432f02 CComponentsPicture: add class CComponentsChannelLogo
Origin commit data
------------------
Commit: 992cac1a55
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-10-05 (Sat, 05 Oct 2013)
2013-10-06 17:14:31 +02:00
Thilo Graf
72b897f920 CComponentsPicture: add member initPosition()
Origin commit data
------------------
Commit: d88b28445f
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-06-15 (Sat, 15 Jun 2013)
2013-06-16 00:34:06 +02:00
Thilo Graf
974338c86d CComponentsPicture: add member function paintPicture()
compact calling in paint()


Origin commit data
------------------
Commit: 4df8d1d088
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-06-15 (Sat, 15 Jun 2013)
2013-06-16 00:34:04 +02:00
Thilo Graf
941295e048 CComponents: split some header files
CComponentsInfoBox
CComponentsShapeCircle/Square
CComponentsDetailLine
CComponentsPIP
CComponentsText/CComponentsLabel
CComponentsPicture


Origin commit data
------------------
Commit: d39eaa22fc
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-05-26 (Sun, 26 May 2013)
2013-05-27 09:30:50 +02:00
Thilo Graf
e17766ee1e CComponentsPicture: add debug output
Origin commit data
------------------
Commit: 3d35a30ecf
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-04-12 (Fri, 12 Apr 2013)
2013-04-16 08:26:55 +02:00
Michael Liebmann
64c8fa2e62 CComponentsPicture: initVarPicture() not execute if pic_name is blank
Origin commit data
------------------
Commit: bd47ef2060
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2013-04-04 (Thu, 04 Apr 2013)

Origin message was:
------------------
* CComponentsPicture: initVarPicture() not execute if pic_name is blank
2013-04-04 16:10:15 +01: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