Commit Graph

963 Commits

Author SHA1 Message Date
Thilo Graf
18fb99688c CComponentsHeader: optimize logo size/position handling
Prevent oversized paint with stupid screen and/or font size settings
2017-05-03 21:29:41 +02:00
Thilo Graf
cb02d6253d Revert "-cc_form_header: add max caption width"
This reverts commit c482dd139f.
2017-05-03 21:29:41 +02:00
Thilo Graf
1d63606bb9 Merge branch 'master' into pu/fb-setmode 2017-05-02 21:15:26 +02:00
TangoCash
c482dd139f -cc_form_header: add max caption width
picked from:	https://github.com/TangoCash/neutrino-mp-cst-next
commit:	4ff6c9f89b194c5fffdc4ee4e4eb744829be975f

Signed-off-by: Thilo Graf <dbt@novatux.de>
review reqiured
2017-05-02 21:07:59 +02:00
Thilo Graf
801d1beb10 CComponentsForm: expand debug output with address. 2017-05-02 21:07:56 +02:00
Thilo Graf
30b58f4940 cc_types: add missing image types 2017-05-02 21:07:52 +02:00
Thilo Graf
e7d60f7c08 CComponentsForm: use current bg save mode while paint items
Mode was always false but current mode could be required in
many constellations.
2017-05-02 21:07:45 +02:00
Thilo Graf
5ac5db718d CCDraw: add methode do get current background save mode 2017-05-02 21:07:36 +02:00
Thilo Graf
5b2a013da5 Merge branch 'master' into pu/fb-setmode 2017-04-29 22:51:54 +02:00
Thilo Graf
891b2e9ad2 cc_frm_chain.cpp: fix c/p error in comment 2017-04-29 18:11:06 +02:00
Thilo Graf
1a750df510 Merge branch 'master' into pu/fb-setmode 2017-04-29 18:02:20 +02:00
Thilo Graf
c8326af0df CComponentsHeader: adjust context button offset 2017-04-29 18:00:03 +02:00
Thilo Graf
3dda388c8d CComponentsFrmChain: add possibility to assign border offsets 2017-04-29 18:00:03 +02:00
Thilo Graf
19fc8c6d3b CComponentsForm: add member hideCCItems()
In case of items with cached background it is useful to have
possibility to restore their background. (eg. items are painted
outside of form).
2017-04-27 09:27:45 +02:00
Thilo Graf
71606d0860 CComponentsHeader: rectification for 'optimize auto size mode for logos'
see commit: 76cd93555d

Additional variable was required.
Values were overwritten and had no effect.
2017-04-27 09:27:45 +02:00
M. Liebmann
76574279a5 Merge branch 'master' into pu/fb-setmode 2017-04-26 14:06:44 +02:00
Thilo Graf
c2bc8b4f8f CComponentsHeader: fix logo position with clock
This reverts "fix logo position with clock",
commit b696007ec8.
Was not the right way.

Id's are not in visual order, therefore it's better to calculate direct
with the ''width"" properties of possible following items clock
and context buttons.
2017-04-26 12:24:21 +02:00
M. Liebmann
c91084aa14 Merge branch 'master' into pu/fb-setmode 2017-04-26 04:45:01 +02:00
Jacek Jendrzej
b696007ec8 fix logo position with clock 2017-04-25 16:38:47 +02:00
Thilo Graf
8554722323 Merge branch 'master' into pu/fb-setmode 2017-04-25 11:46:41 +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
Thilo Graf
a11f5e07c2 Merge branch 'master' into pu/fb-setmode 2017-04-23 17:06:58 +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
5cc587b8a8 Merge branch 'master' into pu/fb-setmode 2017-04-22 16:12:33 +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
M. Liebmann
b46f566e2a Merge branch 'master' into pu/fb-setmode 2017-04-17 18:12:39 +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
M. Liebmann
2afb8fef86 Merge branch 'master' into pu/fb-setmode 2017-04-16 19:42:14 +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