Commit Graph

26 Commits

Author SHA1 Message Date
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
ccdaacb0a0 CComponentsText: add switch for utf8 disable/enable 2015-07-12 21:08:25 +02:00
Thilo Graf
884e3b7cb5 CComponentsText: declare function getTextFromFile() as static
Is usable as standalone member too.
2015-05-04 10:37:03 +02:00
Thilo Graf
341b142aa0 CComponentsText: add possibilty to set font style
Usable with methode setText() and parameter 'style'

provided enums are:
	FONT_STYLE_REGULAR
	FONT_STYLE_BOLD
	FONT_STYLE_ITALIC
2015-03-29 22:40:13 +02:00
Thilo Graf
4a0975eb90 CComponentsText: expand setTextColor() methode
apply color value direct in text box object
2015-03-29 22:40:10 +02:00
[CST] Focus
86a236bc7e gui/components/cc_item_text.cpp: set CTextBox save screen flag 2015-03-06 14:14:00 +03:00
Thilo Graf
6842dc530a CComponentsText: fix missing refresh of text mode
assign of text mode was without any effect
2014-09-14 00:01:04 +02:00
Thilo Graf
33202059cc CComponentsText: add function to get current text content from object 2014-06-23 18:43:47 +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
d21df99ed4 CComponentsText: rework constructor
allows usage of parent parameter without another parameter
2014-04-02 08:40:22 +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
ffe50db001 CComponentsLabel: use correct body color 2013-11-11 00:19:46 +01:00
Thilo Graf
5fb7959ddb CComponentsLabel: remove alternate constructor
default parameters can also be used
2013-11-11 00:19:45 +01:00
Thilo Graf
6dd1da0628 revert 6ee7fac1a5
Was bad idea to rename. Other Classes can also inherit this. See CMenuTarget
2013-10-26 23:25:59 +02:00
Thilo Graf
6ee7fac1a5 CComponents: rename hide() to hideCC()
There are too many name conflicts with hide-members in other classes.
2013-10-24 21:39:04 +02:00
Thilo Graf
f7798affc6 CComponents: add unfied header file for general include of cc classes
Provides a unified header file, so it is not required to select a
certain header file.
2013-10-24 21:19:07 +02:00
Michael Liebmann
ad630c5acb CComponentsText: Add function getTextLinesAutoHeight()
- Function is used for determine the number of lines
  in a text box in AUTO_HIGH mode.

Signed-off-by: Thilo Graf <dbt@novatux.de>
2013-10-24 21:19:07 +02:00
Thilo Graf
e613971c0d CComponentsText: add member to get text color 2013-10-24 21:19:06 +02:00
Thilo Graf
a1e5a60184 CComponentsText: use separated function to get text fro a file 2013-10-19 01:25:22 +02:00
Thilo Graf
2cffcf53a3 CComponentsText: do also paint text on changed text color 2013-07-21 22:05:07 +02:00
Thilo Graf
a6c43a62bd CComponentsText: try to use an inherited version of CBox class
It's a partial solution to use full functionality for size handling
of CTextBox in CComponentsText.
2013-07-21 22:02:43 +02:00
Michael Liebmann
c60c5c5ce3 Replace color indexes of the text colors by real color values for RenderString()
- If necessary, Correct data types of the color values
2013-07-21 22:00:58 +02:00
FlatTV
153d2f3c78 CTextBox: expand parameters of member setTextBorderWidth()
This allows to use different horizontal and vertical width of borders
in text boxes.

Signed-off-by: Thilo Graf <dbt@novatux.de>
2013-07-07 14:24:02 +02:00
Thilo Graf
3f02d391bc CComponentsLabel: trivial format fix 2013-06-16 00:34:06 +02:00
FlatTV
96da2f95b8 - CComponentsText: add possibility to set a text border 2013-06-06 22:08:46 +02:00
Thilo Graf
d39eaa22fc CComponents: split some header files
CComponentsInfoBox
CComponentsShapeCircle/Square
CComponentsDetailLine
CComponentsPIP
CComponentsText/CComponentsLabel
CComponentsPicture
2013-05-27 09:30:50 +02:00