Commit Graph

5933 Commits

Author SHA1 Message Date
martii
cc80a79f58 zapit/src/zapit.cpp: simplify 2014-05-27 17:01:49 +02:00
Jacek Jendrzej
c86ad2ef48 /pictureviewer.cpp CPictureViewer::GetLogoName: don't add the same dir twice 2014-05-26 16:55:02 +02:00
martii
3a52a97fce zapit/bouquets: rename bAlwaysLocked => bLockCount 2014-05-25 18:43:46 +02:00
martii
abe03ad749 zapit/bouquets: count locked bouquets a channels is in, and honor lock in all bouquets 2014-05-25 18:43:38 +02:00
Stefan Seyfried
7dac1e7ad9 movieplayer: memset() with zero length is useless 2014-05-23 17:50:34 +02:00
Thilo Graf
61dc01f719 deutsch.locale: use capitalization for now/next button caption
Labels are generally always capitalized
2014-05-22 21:50:55 +02:00
Thilo Graf
dc007e810a CComponents: use paintBoxRel() only in kill()
paintBackgroundBoxRel() ignores rounded corners. This avoids painting of
undesirable parts on corners.
2014-05-22 21:50:55 +02:00
Thilo Graf
336ddf75b6 CComponents/CComponentsItem: simplify statement 2014-05-22 21:50:55 +02:00
Thilo Graf
df4151936b CComponentsFooter: use same corner properties like parent object
This avoids paint of unnecessary edges inside parent object.
2014-05-22 21:50:54 +02:00
Thilo Graf
7096e701b6 CComponents/CComponentsItem: use correct background color
color "0" was wrong
2014-05-22 21:50:54 +02:00
Thilo Graf
6aecdf3b5a CComponentsFooter: use dynamic font on too small footer width
If required width of evaluated buttons larger than footer width,
then use dynamic font for caption, and try to fit buttons into chain
container. Dynamic font is used if ccf_btn_font==NULL

NOTE: user should not use too small window size and not select too large
fontsize. At some point this possibility will be depleted and it's no
more space for readable caption.
2014-05-22 21:50:54 +02:00
Thilo Graf
a0492bc530 CComponentsButton: use darker color for Button
COL_LIGHT_GRAY is too garish related to background
2014-05-22 21:50:53 +02:00
Thilo Graf
b6c781f7e4 CComponents: cc_base.h: expand override of is_painted variable
Value of is_painted is modified temporarily till next paint
of item

Not sure whether this is sufficiently or has bad side effects?
2014-05-22 21:50:53 +02:00
Thilo Graf
bed36eab33 CComponentsHeader: add member getContextBtnObject()
Allow access directly to methods and properties of context button object.
2014-05-22 21:50:53 +02:00
Thilo Graf
9937c0fae8 CComponentsFooter: ignore item, if no text and icon are defined
Empty buttons with defined width are causing gaps...looks not nice!
2014-05-22 21:50:52 +02:00
Thilo Graf
18f13b0062 CComponentsFooter: add member paintButtons()
This is a nearly methode similar with the older button handler find
in gui/widget/buttons.h, some parameters are different,
but require minimalized input.
This member sets some basic parameters and will paint
concurrently on execute, explicit call of paint() is not required.
This should simplify the implementation of the footer class.
2014-05-22 21:50:52 +02:00
Thilo Graf
f073c74a40 CComponentsForm: paint log on debug level 2 if dimensions too large 2014-05-22 21:50:52 +02:00
Thilo Graf
745f7b70f1 CComponentsText: add parameter for text color in member function setText() 2014-05-22 21:50:51 +02:00
Thilo Graf
7e6ce8acc6 CTestMenu: clean up, change some sample comments for footer init 2014-05-22 21:50:51 +02:00
Thilo Graf
d87807af67 CMenuWidget: implement CComponentsFooter, remove paintButtons 2014-05-22 21:50:51 +02:00
Thilo Graf
0a3101728a CComponentsFooter: simplified dimensions init for default height 2014-05-22 21:50:50 +02:00
Thilo Graf
9c4aadd2bf CComponentsButton: use y position 0 for general alignment 2014-05-22 21:50:50 +02:00
Thilo Graf
2f889b9563 CComponentsForm: fix centering of items inside form 2014-05-22 21:50:49 +02:00
Thilo Graf
421296932e CComponentsForm: use variable instead function 2014-05-22 21:50:49 +02:00
Thilo Graf
9d014d2039 CComponentsButton: ensure matching icons inside button
Some icons can be too large for defined button height, so it's required to
scale icons. Scaling happens inside cc_btn_icon_obj during its init.
2014-05-22 21:50:49 +02:00
Thilo Graf
75bf3aa276 CComponentsButton: remove additonal y offset
Any other offset could have bad side effects for centered text,
it must be centered here. Other font sizes can make problems here.
2014-05-22 21:50:49 +02:00
Thilo Graf
7cbd4e3469 CComponentsFooter: add member to get pointer to button container 2014-05-22 21:50:48 +02:00
Thilo Graf
995eff8ffe CComponentsFooter: set color of button frames to button type, default=gray 2014-05-22 21:50:48 +02:00
Thilo Graf
f7860fed35 CComponentsFooter: apply showButtonContour() after init of labels
Function was without effect after adding of button objects,
showButtonContour() now changes property explicit for all items, also
after their addition to chain.
2014-05-22 21:50:47 +02:00
Thilo Graf
bd03327cb4 CComponentsFooter: use chain object in global scope of class 2014-05-22 21:50:47 +02:00
Thilo Graf
2c87bb750a CComponentsButton: add class with const char* parameters for icon names 2014-05-22 21:50:47 +02:00
Thilo Graf
14ea1de789 CComponentsFooter: fix missing types for log output 2014-05-22 21:50:47 +02:00
Thilo Graf
95c7e44eb1 CComponentsButton: ignonre objects if no inititalized
This makes it possible to use buttons with or without icons or text
2014-05-22 21:50:46 +02:00
Thilo Graf
2bde5a6d08 CTestMenu: set dynamic size of buttons, use 1/10 of footer width 2014-05-22 21:50:46 +02:00
Thilo Graf
9ffdb1cb98 CComponentsButton, CComponentsFooter: rework bestfit of buttons inside chain 2014-05-22 21:50:45 +02:00
Thilo Graf
2256c83b98 CComponentsButton: reinit button items after changed font type 2014-05-22 21:50:45 +02:00
Thilo Graf
45ce42e505 CTestMenu: add samples for new button handling in cc footer 2014-05-22 21:50:45 +02:00
Thilo Graf
87031e79b8 CTestMenu: use correct class name for footer object 2014-05-22 21:50:44 +02:00
Thilo Graf
41c01cedad CComponentsFooter: add possibility to change font type 2014-05-22 21:50:44 +02:00
Thilo Graf
419fc12f2e CComponentsButton: add possibility to change font type, whitespace fixes 2014-05-22 21:50:44 +02:00
Thilo Graf
7b279ddd33 CComponentsButton: simplify handling of init of buttons with chain class 2014-05-22 21:50:43 +02:00
Thilo Graf
8797872d47 CComponentsFooter: add functionality to add button labels via struct
This function uses struct label like old button label function
see /gui/widget/buttons.cpp, but can also use strings in structs

also possible: add single button with text or locale
2014-05-22 21:50:43 +02:00
Thilo Graf
40cfc7533d CComponentsFrmChain: add possibility to use individual positions for items 2014-05-22 21:50:43 +02:00
Thilo Graf
9955fa9203 CComponentsHeader: add icons to button collection for use in headers or footers 2014-05-22 21:50:42 +02:00
Thilo Graf
1c39d08c60 CComponentsHeader: add missing init of icon 2014-05-22 21:50:42 +02:00
Thilo Graf
aa46ba6156 COPKGManager: simplify intro items 2014-05-22 21:36:03 +02:00
Thilo Graf
e06d835396 CComponentsHeader: remove superfluous semicolon 2014-05-22 20:38:22 +02:00
Thilo Graf
4a28d853d2 CChannelList: ensure erase of clock after stopping 2014-05-22 20:38:21 +02:00
[CST] Focus
d602f6b1d9 gui/upnpbrowser.cpp: avoid crash, if TotalMatches is wrong;
try to fix ogg mime type, add audio/x-wav for wav
2014-05-21 14:45:59 +04:00
Jacek Jendrzej
9d916ba8d7 gui/bedit details line osd fix 2014-05-16 11:59:03 +02:00