Commit Graph

1212 Commits

Author SHA1 Message Date
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
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
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
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
e06d835396 CComponentsHeader: remove superfluous semicolon 2014-05-22 20:38:22 +02:00
Thilo Graf
f4447b38e0 CComponentsText: fix fit of textbox object inside cc text object dimensions
Position related to parent container was wrong. Some variables were
unused and removed.
2014-05-16 09:08:26 +02:00
Thilo Graf
6ba757bd9d CComponentsItem: don't increase x/y position if frame width already defined 2014-05-16 09:08:25 +02:00
Thilo Graf
b038d1b6c1 CComponentsIconForm: consider relevant paint direction, don't use 0 values
Value 0 can not be used without problems here, because explicit values
are required since a9a6a925240675c44243754e82dbee79f2d84698
2014-05-16 09:08:25 +02:00
Thilo Graf
6a2e701a7a CComponents/CComponentsItem: add advanced version of kill()
kill() allows now paint with defined colors over rendered objects
without restore of background. It's similar to paintBackgroundBoxRel()
known from CFrameBuffer, but with possiblity to define color,
default color is 0 like before (empty background).
Items with parent bindings use the background color of its parent
as default, but can also be ignored.

This function can be useful before repaint of items and/or,
if required, to have a clean background inside item containers.
2014-05-16 09:08:25 +02:00
Stefan Seyfried
38e524b385 cc_frm_header: fix format-string warning 2014-04-27 19:27:24 +02:00
Stefan Seyfried
44ba8fafca Merge remote-tracking branch 'check/next-cc'
build-tested only, needs fixing

Conflicts:
	data/locale/deutsch.locale
	data/locale/english.locale
	src/Makefile.am
	src/driver/rcinput.cpp
	src/driver/streamts.cpp
	src/eitd/sectionsd.cpp
	src/gui/Makefile.am
	src/gui/bouquetlist.cpp
	src/gui/hdd_menu.cpp
	src/gui/luainstance.cpp
	src/gui/luainstance.h
	src/gui/moviebrowser.cpp
	src/gui/movieplayer.cpp
	src/gui/pluginlist.cpp
	src/gui/plugins.cpp
	src/gui/plugins.h
	src/gui/scan.cpp
	src/gui/scan_setup.cpp
	src/gui/user_menue.cpp
	src/gui/videosettings.cpp
	src/gui/widget/menue.cpp
	src/neutrino.cpp
	src/neutrinoMessages.h
	src/system/locals.h
	src/system/locals_intern.h
	src/zapit/include/zapit/scan.h
	src/zapit/src/femanager.cpp
	src/zapit/src/frontend.cpp
	src/zapit/src/getservices.cpp
	src/zapit/src/transponder.cpp
2014-04-27 19:14:06 +02:00
Thilo Graf
2997b5eea2 CComponentsFrmClock: add missing init of items 2014-04-02 08:40:22 +02:00
Thilo Graf
d21df99ed4 CComponentsText: rework constructor
allows usage of parent parameter without another parameter
2014-04-02 08:40:22 +02:00
Thilo Graf
6fe7b452c1 CComponentsHeader: rework context button handling
CComponentsHeader uses now CComponentsIconForm, which is now derived
from CComponentsFrmChain. Some methods should be now simplified and
allow to handle some modifications easier.
2014-04-02 08:40:21 +02:00
Thilo Graf
a573b02b85 CComponentsPIP: use a default frame with thickness 2 and small corner radius 2014-04-02 08:40:21 +02:00
Thilo Graf
7cc66fea93 CComponentsFrmChain: add missing parameter 'parent'
supplement to 23d7b62cf0
2014-04-02 08:40:21 +02:00
Thilo Graf
750691fbbf CComponents: use neutrino debug mode for debug output 2014-04-02 08:40:21 +02:00
Thilo Graf
e6a004be87 CComponents: remove error message.
Log output should be enough.
2014-03-05 12:10:17 +01:00
M. Liebmann
d1b8246316 CComponents: More precise error message (commit f813b9e) 2014-03-03 20:20:57 +01: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
4a76ca953e cc_types.h: add forward declaration for CComponentsForm()
required for parameter in CComponentsItem constructors
2014-03-03 08:54:11 +01:00
Thilo Graf
2fade10a11 CComponentsPicture: add comment to isPicPainted()
Not to confuse with isPainted(). Because isPicPainted() is related to
internal image.
2014-03-03 08:54:11 +01:00
Thilo Graf
a33cad448a CComponentsItem: add methodes to set width and height via percent value
Percent value is related to current screen or parent size
2014-03-03 08:54:10 +01:00
Thilo Graf
9b18d0cf5b CComponentsItem: comments corrected 2014-03-03 08:54:10 +01:00
Thilo Graf
8a897103ac CComponentsItem: move/rename doCenter()to base class CComponentsItem
So it's possible to use this method for all cc-items.
setCenterPos() comes now with parameter 'along_mode' (CC_ALONG_X, CC_ALONG_Y).
So it's possible to center in x or y direction. As default are
both directions predefined.
2014-03-03 08:54:10 +01:00
Thilo Graf
38dffb8456 CComponentsItem: add members to set item position via percent value 2014-03-03 08:54:10 +01:00
Thilo Graf
c34f25bb7d CComponentsInfoBox, CComponentsPicture: add overloaded members setPicture() 2014-03-03 08:54:09 +01:00
Thilo Graf
f813b9ea98 CComponents: add member CheckFbData() for fbdata check
This check happens several times, therefore it is senseful, to move into own member.
Function returns false on error and is used here to show an error message if
something was wrong.
Such errors can happen on position or dimension errors e.g. out of screen or
too large display values.

Note:  this is only an emergency helper for debugging on
fatal errors during developing of window stuff. Mostly errors
of this kind causing crashes and must be fixed.
2014-03-03 08:54:09 +01:00
Thilo Graf
2b65f1d1b3 CComponentsFrmClock: remove statement
stopThread() is doing check against NULL itself
2014-03-03 08:54:09 +01:00
Thilo Graf
c6db496de6 CComponentsFrmClock: change wording of comment, was unsuituable 2014-03-03 08:54:08 +01:00