Commit Graph

947 Commits

Author SHA1 Message Date
Jacek Jendrzej
de7847f096 Merge branch 'master' into pu/mp 2017-04-25 13:43:33 +02:00
Thilo Graf
76cd93555d CComponentsHeader: optimize auto size mode for logos
With very large font size settings it is possible
that header is too large for reasonable display of logos, because of
possible bad upscale effects (eg. step effects).
So it seems it's better to use original size as largest possible size.
2017-04-25 11:38:30 +02:00
Thilo Graf
0aae491ccc CComponentsPicture: add methode to get real image size 2017-04-25 11:38:30 +02:00
Thilo Graf
cffab5f8f9 CProgressBar: add own position methodes
NOTE: not required in branch pu/fb-setmode, remove this after merge!
2017-04-25 11:38:22 +02:00
Thilo Graf
220829ffaa CComponentsHeader: unifiy init value for logo align 2017-04-25 11:36:49 +02:00
Jacek Jendrzej
f292ba6b69 Merge branch 'master' into pu/mp 2017-04-24 21:33:15 +02:00
Thilo Graf
330171c90b CComponentsHeader: use previous offset to fit logo
Was OFFSET_INNER_MIN in older versions, not OFFSET_INNER_SMALL.
2017-04-23 17:01:15 +02:00
Thilo Graf
1413f296ae CComponentsHeader: add fallback if title and logo are overlapping
Logo is now general centered on screen, not as before between title and clock
2017-04-23 17:01:08 +02:00
svenhoefer
8e50353773 - colors: add and use missing COL_SCROLLBAR_PLUS_0 wrapper 2017-04-22 17:02:48 +02:00
svenhoefer
0b2eb4bfb3 Merge branch 'master' into pu/mp 2017-04-22 16:13:02 +02:00
Thilo Graf
9ef6c49a23 CComponentsHeader/CChannelList: unify methode names 2017-04-21 23:07:14 +02:00
Thilo Graf
324ba258a0 CComponentsScrollBar: add missing attributes for different visual modes 2017-04-21 22:47:23 +02:00
Thilo Graf
c5451046d4 CComponentsScrollBar: fix radius for single segment
Radius on top was missed if only one segment is available.
2017-04-21 22:47:23 +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
68835056c3 CComponentsHeader: add possibility to show channellogo
Contains methode setChannelLogo() with parameters
for channel id, channel name and optional
alignment (primary between title and clock). Default
alignment is centered.
Optional parameter to set logo height is available too.

Hope it works on first try. To see how it works, take look
at channellist class.
2017-04-21 22:47:23 +02:00
svenhoefer
11a28c07d6 Merge branch 'master' into pu/mp 2017-04-19 21:35:56 +02:00
Thilo Graf
f74724ceb6 CSignalBox: remove CC_APPEND flag
Should be gradually removed in all affected classes
2017-04-17 17:43:59 +02:00
Thilo Graf
0e94c6830b CComponentsForm: use global default width for scrollbar 2017-04-17 17:43:55 +02:00
Thilo Graf
b8822803d9 CSignalBar: use global offsets for init of min height 2017-04-17 17:43:48 +02:00
Thilo Graf
04f9468ddb CComponentsFrmClock: use correct setHeight() 2017-04-17 16:45:00 +02:00
Thilo Graf
cbba7b78f4 CComponentsFrmClock: remove unnecessary call of cch_cl_obj->setYPos() 2017-04-17 16:44:57 +02:00
Thilo Graf
42db55e61d CComponentsHeader: Reduce offset between clock and right border.
Was too large
2017-04-17 16:44:53 +02:00
Thilo Graf
e1f51050b2 CComponentsWindow: try to fix header and footer arrangement
Header and footer were placed too much on left side.
2017-04-17 15:18:45 +02:00
Thilo Graf
9ac706b86c CComponentsForm: try to fix fit items inside forms
Some items had offsets on screen. Was seen eg. in message windows.
2017-04-17 15:18:22 +02:00
Thilo Graf
5361296ff4 CComponentsPicture: add explicit methodes to set image position 2017-04-16 16:53:06 +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
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
Thilo Graf
dbc4a487e4 CComponentsTimer: use sleep() instead mySleep()
Had some problems with mySleep() related to select() which was used
inside mySleep()
2017-04-13 23:36:34 +02:00
Thilo Graf
fb0dc47e35 CComponentsFooter: avoid crash because possible divisions by 0 2017-04-13 23:36:29 +02:00
Jacek Jendrzej
b4bb9ef5ea fix init cl_force_repaint 2017-04-13 17:32:24 +02:00
svenhoefer
064f693bf7 Merge branch 'master' into pu/mp
Conflicts:
	src/gui/epgplus.cpp
2017-04-08 14:36:12 +02:00
Thilo Graf
6135a827da CComponentsItem: disable unused variable 2017-04-08 08:24:41 +02:00
Thilo Graf
47fceca188 CComponentsFooter: add missing member inits 2017-04-08 08:16:05 +02:00
Thilo Graf
3e342a7661 CComponentsHeader: add methode initRepaintSlot() and considered parent
Required in sub classes. Considering of parent ensures usage of
required background color in sub classes.
2017-04-08 08:16:01 +02:00
Thilo Graf
62a2a29a12 CCDraw: remove some debug lines, and override comparisons
This should reduce some effort in this method.
2017-04-08 08:15:54 +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
Thilo Graf
c9152beada CComponentsButton: remove unused member 2017-04-08 08:15:45 +02:00
Thilo Graf
6d45fbb4eb CCDraw: fix wrong intit values for corners and position 2017-04-08 08:15:41 +02:00
Thilo Graf
511486c404 CComponentsFrmClock: add members to control segment refreshing on interval
Refreshing of segments is now enabled on default.
In certain conditions this should be better.
2017-04-07 22:00:33 +02:00
svenhoefer
b1ba85c8c1 Merge branch 'master' into pu/mp
Conflicts:
	acinclude.m4
2017-03-22 12:16:01 +01:00
Thilo Graf
4eb6a315fc CComponentsButton: simplify assignment of button message values
Count of alternate message values was limited to 1 value. Now it is
possible to add any count of message values.

directKey and directKeyAlt were removed from struct type 'button_label_cc'
and directKeys was added as container for possible message values.

Some methods of CComponentsFooter had to be adapted for that.
2017-03-20 22:55:05 +01:00
svenhoefer
8bdb16cec6 Merge remote-tracking branch 'neutrino-mp/master' into pu/mp
Conflicts:
	src/neutrino.cpp
	src/nhttpd/tuxboxapi/neutrinoyparser.cpp
2017-03-13 16:14:33 +01:00
svenhoefer
5b0faeab8c - unify DetailsLine-names; move define to settings.h 2017-03-13 12:40:04 +01:00
Thilo Graf
3fa097ebb9 cc_types.h: expand button_label_cc with hint as descrpition for button 2017-03-13 09:45:38 +01:00
Thilo Graf
e777ecdfdb cc_types: move struct button_label_cc into cc_types.h 2017-03-13 09:45:38 +01:00
Thilo Graf
e2ca965ee9 CComponentsFooter: add bg_image to button_label_cc type 2017-03-13 09:45:38 +01:00
Thilo Graf
c766a970dc CComponentsFooter: simplify implementation of button labels
button_label_l and button_label_s are now
merged to button_label_cc with prepared default values for text and locales.This type contains all possible
button label properties. Values for locales and string
are evaluated in setButtonLabels(), so it's possible to remove some
overloaded methodes.
2017-03-11 00:45:25 +01:00
Thilo Graf
ccb82083e2 CCDraw: add possibility to use background images as item background
Provides functionality to use a backround image instead to render
usual box. If an image is defined, box render is disabled, but behavior
for hide, kill, cache... is not changed.

TODO:
- maybe needs global caching because images are not yet managed like icons in framebuffer class
2017-03-11 00:45:25 +01:00