Commit Graph

67 Commits

Author SHA1 Message Date
TangoCash
93f74ef829 show event logos only in infoviewer 2018-12-31 15:18:15 +01: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
Thilo Graf
f07a27825d CComponentsPicture: remove benchmark lines
Was only for debugging.
2017-08-28 12:16:45 +02:00
Thilo Graf
0aae491ccc CComponentsPicture: add methode to get real image size 2017-04-25 11:38:30 +02:00
Thilo Graf
ed5e79440a CComponentsPicture: Change order of called base methodes setWidth/Height
Calls of base methods should come after internal method calls.
Values could be changed unintentionally.
2017-04-21 22:47:23 +02:00
Thilo Graf
5361296ff4 CComponentsPicture: add explicit methodes to set image position 2017-04-16 16:53:06 +02:00
Thilo Graf
f499d3d387 CComponentsPicture: init missing vars for old dimension dimensions 2017-04-16 16:53:06 +02:00
Thilo Graf
29a01bd2d8 CComponentsChannelLogo: use separat var for pic name inside setChannel()
picname is a class attribut and should not be touched here till new content
exists. Btw. setChannel() is eqiuvalent to setPicture() from base class, so
it makes sense to use setPicture() inside setChannel() after
picname is known. Explicit call of initCCTitem() is not required.
2017-04-16 16:53:06 +02:00
Thilo Graf
f4762f78a5 CComponentsChannelLogo: add missing type 2017-04-16 16:53:06 +02:00
Stefan Seyfried
c9e1072b94 remove hardware specific code from gui
Use the framebuffer's getWidth4FB_HW_ACC() instead of system/helpers.
The use in cc_item_picture was guarded by a hardware #ifdef, use
needAlign4Blit() instead.

This needs testing on the affected hardware, which I do not have :-)
2017-02-14 20:01:55 +01:00
M. Liebmann
0cb26e6e98 Merge branch 'master' into pu/fb-modules 2017-02-12 09:24:08 +01:00
M. Liebmann
0d66899cbd neutrino: Rename hardware defined macros for coolstream stb
BOXMODEL_NEVIS  => BOXMODEL_CS_HD1
  BOXMODEL_APOLLO => BOXMODEL_CS_HD2
2017-02-12 09:21:04 +01:00
Stefan Seyfried
47b1a8b642 reduce impact of driver/pictureviewer.h header file
before, more than 175 files depended on it, now it's about 35
2017-02-07 18:38:45 +01:00
Jacek Jendrzej
0056a53321 some inits 2017-01-30 19:04:17 +01:00
Jacek Jendrzej
f4f351e9ba some inits 2017-01-30 17:22:41 +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
5394f4b2e1 Merge branch 'master' into pu/msgbox 2016-11-12 22:31:11 +01:00
svenhoefer
73b97ecd4d - cc_item_picture: reset keep_aspect variables after use 2016-11-12 22:00:12 +01:00
Thilo Graf
9b9d2542e6 Merge branch 'master' into pu/msgbox 2016-10-28 08:05:34 +02:00
svenhoefer
874f54af4b - cc_item_picture: fix wrong operator in width calculation 2016-10-27 23:11:43 +02:00
Thilo Graf
9668f89db1 CComponentsPicture: use body color as default clean up color 2016-10-24 10:31:26 +02:00
Thilo Graf
2e631fd0ce Try to rework footer
* try to fix enableButtonShadow(), seems an init is missing
* shadow fixed
2016-10-24 10:31:25 +02:00
svenhoefer
5d450c60d3 - rename SHADOW_OFFSET -> OFFSET_SHADOW 2016-10-10 14:19:55 +02:00
Thilo Graf
69ab25e111 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.
2016-06-02 16:48:35 +02:00
Jacek Jendrzej
9f20b27890 avoid division by zero and fix segfault 2016-05-23 14:17:25 +02:00
Thilo Graf
8be980b621 CComponentsPicture: allow image cache only for scaled images 2016-02-16 10:29:06 +01:00
Thilo Graf
96f9eaf287 CComponentsPicture: move resize to end of methode 2016-02-16 10:28:57 +01:00
Thilo Graf
7ed5b5b886 CComponentsPicture: add more comments an debug lines, remove useless init 2016-02-16 10:28:05 +01:00
Thilo Graf
93777853f0 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.
2016-02-16 10:27:50 +01:00
Thilo Graf
82e2a168f1 CComponentsPicture: add some debug messages to track caching 2016-02-16 10:22:48 +01:00
Thilo Graf
9e4ad83305 CComponentsPicture: ensure cache cleanup on missing image while runtime 2016-02-16 10:22:33 +01:00
M. Liebmann
346b28556f CComponentsPicture: Align pictures at 4 byte boundary...
...for hw blit on apollo/kronos hardware
2016-01-26 09:51:48 +01:00
Thilo Graf
0c67739074 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.
2016-01-19 15:33:05 +01:00
Stefan Seyfried
fa05d6a415 fix debug output printf type warnings 2016-01-14 22:28:59 +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
Thilo Graf
53a350d5af 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.
2015-07-17 15:35:18 +02:00
Thilo Graf
5e380fa4f8 CComponentsPicture: fix internal value for dimension vars
The values contained not values from the scaled image file.
2015-07-01 15:56:42 +02:00
Thilo Graf
e8d46a8a55 CComponentsPicture: fix icon size/scale handling 2015-03-29 22:40:07 +02:00
Thilo Graf
8929255e9e CComponentsPicture: don't paint image, if is not available 2015-03-29 22:39:54 +02:00
Thilo Graf
8227638c06 CComponentsPicture: simplify item init, adapt getHeight/getWidth members
Members getHeight/getWidth returns now image related values dependent of
scale mode
2015-03-29 22:39:53 +02:00
Thilo Graf
f75f0ed6e3 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.
2014-10-08 14:14:29 +04:00
M. Liebmann
a182fca81f 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
M. Liebmann
3d805054f4 CComponentsChannelLogo: disable paint of logo background, it's not required here
- Fix calculation of logo width & height
2014-06-29 13:25:32 +02:00
Thilo Graf
e6f6931b72 CComponentsPicture: use current instance of CPictureViewer
reduce precautionary too much unnecessary impact
2014-06-27 20:38:59 +02:00
Thilo Graf
5eb63b9515 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
750691fbbf CComponents: use neutrino debug mode for debug output 2014-04-02 08:40:21 +02:00
Thilo Graf
23d7b62cf0 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.
2014-03-03 09:43:39 +01:00
Thilo Graf
c34f25bb7d CComponentsInfoBox, CComponentsPicture: add overloaded members setPicture() 2014-03-03 08:54:09 +01:00
Thilo Graf
27c6bdccaf CComponentsPicture: fix item position
x/y position was not assigned here for internal pic_x/pic_y vars.
Therefore x/y was ignored.
2014-02-16 19:11:38 +01:00
Thilo Graf
14a3546b5f CComponentsPicture: add debug output for handled item dimensions and pos 2014-02-05 11:56:48 +01:00