Commit Graph

72 Commits

Author SHA1 Message Date
Thilo Graf
dec32f88eb cc_item_text: add global mutex 2020-01-05 21:17:59 +01:00
Thilo Graf
7f2c9ca41b cc_frm/cc_item_text: use mutexes in some members
Watched some problems with thredead parts in some
window objects (e.g. messageboxes, clock ...) thx satbaby for some hints
and testings
2019-10-27 16:24:47 +01:00
Thilo Graf
d86dcd36a7 components: use const bool& parameter in paint methodes 2019-10-27 16:24:47 +01:00
Thilo Graf
25d55b60b9 cc_item_text.cpp/h: move functions into cpp file
clean up
2018-12-31 11:46:55 +01:00
Thilo Graf
7c14322653 cc_item_text.cpp: avoid evaluation within parameters 2018-11-20 09:17:02 +01:00
Thilo Graf
692d39bfb0 cc_item_text.cpp: add missing paint state after rendered text box
Evaluations while usage of this state could has been wrong or incomplete
and therefore it was possible that some effects were unintended or
without any effect.
2018-11-20 09:17:02 +01:00
Thilo Graf
243bfb9cb4 cc_item_text.cpp: fix missing pass through of var cc_allow_paint
In case of cc_allow_paint = false, text would be farther rendered
and this is not intended.
2018-10-28 19:41:22 +01:00
Stefan Seyfried
448838b069 cc_item_text: fix "text changed" detection 2018-01-13 19:56:14 +01:00
Thilo Graf
fb5c943db4 cc: expand cc-type with name
Required for internal operations where it is useful to have object
names and for better debugging.
2017-12-30 22:58:15 +01:00
M. Liebmann
ef61905a2d Merge branch 'master' into pu/fb-modules 2017-02-08 20:16:41 +01:00
Stefan Seyfried
2303d94300 replace fontrenderer.h include with forward declaration
in order to flatten the build dependency tree further, include
fontrenderer.h directly where needed, in header files a forward
declaration is enough
2017-02-07 17:23:42 +01:00
Thilo Graf
06fa3f2488 CComponentsForm: move slots into base classes
Usable for all form classes
2017-02-07 17:12:25 +01:00
Thilo Graf
e4d0abc7dc signals: reduce multiple includes for sigc++/bind.h 2017-02-07 17:12:25 +01:00
Thilo Graf
53f956c0f9 CComponentsText: add signal OnBeforePaint into text paint() methode 2017-01-31 16:36:42 +01:00
Thilo Graf
f219da23bf CComponentsText: add missing parameters to kill() methode 2017-01-31 16:36:42 +01:00
Thilo Graf
4c71edbd3c CComponentsText: add explicit kill methode and add ct_force_text_paint
After hide or kill text will does not paint without ct_force_text_paint,
so it is required to add this.
2017-01-31 16:36:42 +01:00
Thilo Graf
8bd4633cb4 CComponentsText: fix order of paint init 2017-01-31 16:36:41 +01:00
Thilo Graf
c42f1240f0 CComponentsText: fix wrong item type 2017-01-31 16:36:40 +01:00
Thilo Graf
fad2adffa2 partial revert: "CTextBox: expand parameters of member setTextBorderWidth()"
related commit: 153d2f3c78

Since this commit, TextBox received a lot of optimizations, so it is possible
we have no described side effects.
2016-12-22 09:49:40 +01:00
Thilo Graf
9331c59b0e CComponentsText: revert inheritition of CBox, useage as object
It has shown, that the positioning and
Dimensions calculations are not correct. CBox object must be embedded
with frame properties.
2016-11-28 21:42:50 +01:00
svenhoefer
c35414bc56 - cc_item_text: avoid using INFOBAR_SMALL font; use MENU_INFO instead
it's a small font too
2016-08-15 19:32:46 +02:00
Thilo Graf
3b6e4bfcc0 CComponentsText: assign missing dim and pos values inside dimension- and position setters 2016-02-24 15:09:44 +01:00
Thilo Graf
5cfe504044 CComponentsText: assign current initialized position values to old var 2016-02-24 15:09:00 +01:00
Thilo Graf
9d72b086a2 text screen save: try to rework screen save behavior for textbox objects
Screen save now always disabled by default and can be controlled
outside of relevant objects.
2016-01-21 11:00:38 +01:00
Thilo Graf
60c9dc8432 CComponentsText: try to fix mismatching calculation of y pos inside form 2016-01-21 11:00:19 +01:00
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
M. Liebmann
ae139d4ec2 CComponentsText: Fix default font 2015-03-31 12:00:48 +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
d2ae57e5b6 CComponentsText: avoid unintentional overwriting of current property values
If parameters were not explicitly defined, default values of parameters
overwrite current property values.
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
11c9d0780a CComponentsText: move setTextRenderModeFullBG() to text object
This is mostly required here
2014-09-25 11:08:00 +04:00
Thilo Graf
745f7b70f1 CComponentsText: add parameter for text color in member function setText() 2014-05-22 21:50:51 +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
d21df99ed4 CComponentsText: rework constructor
allows usage of parent parameter without another parameter
2014-04-02 08:40:22 +02:00
Thilo Graf
750691fbbf CComponents: use neutrino debug mode for debug output 2014-04-02 08:40:21 +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
8442b39c28 CComponents: replace __FUNCTION__ with __func__
__func__ is more suitable for portability
2013-12-18 15:13:19 +01:00
[CST] Focus
dd7c7fc7ae components: cleanup destructors - remove calls to functions,
already called inside base classes destructors
2013-11-29 17:27:10 +04:00
[CST] Focus
93a326e9eb components: remove initVarBasic and initVarItem calls from derived classes 2013-11-29 17:27:10 +04:00
Thilo Graf
8ae491a994 CComponents: add property to allow/disallow paint of items
This causes initialization of all properties, but
affects the behavior of item paint.
This can be understood as a counterpart to isPainted().
2013-11-11 00:19:48 +01:00
Thilo Graf
d8514b19ee CComponentsExtTextForm: add new class CComponentsExtTextForm
this provides a combining form, that contains a text object with label
2013-11-11 00:19:46 +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
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
a1e5a60184 CComponentsText: use separated function to get text fro a file 2013-10-19 01:25:22 +02:00
Thilo Graf
2c3b86baa2 CComponentsText: add missing init in constructor 2013-07-21 22:31:10 +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