Commit Graph

60 Commits

Author SHA1 Message Date
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
1c217b404f Forms/header/clock: implement slot into OnBeforeRePaint 2017-02-02 11:18:27 +01:00
Thilo Graf
5c8aa90e01 CComponentsForm: add some usefull slots/signal to help paint backgrounds
Requried to paint form items only on changed contents and on repaint
2017-01-31 16:36:41 +01:00
Thilo Graf
81f26a327d CComponentsFrmClock: add slot to handle enforced repaint of segments
If clock removed from screen and instance is not destroyed, then we must
ensure repaint of segments after painted background.

This is required if segments are only will paint if
their content was changed and attribut ct_force_text_paint = false.
2017-01-31 16:36:41 +01:00
Thilo Graf
002cc4c74e CComponentsFrmClock: add missing reinit 2017-01-09 21:28:59 +01:00
Thilo Graf
d0aa901d70 CComponentsFrmClock: disable digit height
Using of digit height is not really required here.
eg. better centering
2017-01-09 20:47:46 +01:00
Thilo Graf
ffeb2d6459 CComponentsFrmClock/CInfoClock: simplify font init 2017-01-08 14:39:38 +01:00
Thilo Graf
02c6df782c CComponentsFrmClock: ensure that no radius is defined for inner items
Radius is not required for inner segments.
TODO: single segment
2016-11-21 10:55:10 +01:00
svenhoefer
5d450c60d3 - rename SHADOW_OFFSET -> OFFSET_SHADOW 2016-10-10 14:19:55 +02:00
Thilo Graf
8d3f70b112 CComponentsFrmClock: disable non-essential debug output
It was just important to see how the texts are fitted inside
a parent element. It's just a debugging relic.
2016-06-26 15:32:33 +02:00
Thilo Graf
4904279fd5 CComponentsTimer: rework timer class 2016-04-25 10:26:32 +02:00
Thilo Graf
8573db8019 CComponentsFrmClock: remove unused parameter,fix possible compiler warnings 2016-04-22 13:29:34 +02:00
Thilo Graf
71adac0a0b CComponentsFrmClock: remove unnecessary paint
Is already handled with OnTimer signal.
2016-04-20 22:49:52 +02:00
Thilo Graf
2b41e1c60f CComponentsFrmClock: ensure slot connect, if it is empty 2016-04-18 17:58:02 +02: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
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
[CST] Focus
f50840ac96 gui/components/cc_frm_clock.cpp: set CTextBox save screen and paint background flag;
add option to call first paint with save bg - default dont save;
detach clock thread
2015-03-06 14:14:00 +03:00
Stefan Seyfried
cf0b9f944a CC-Clock: remove unnecessary cast
Signed-off-by: Jacek Jendrzej <crashdvb@googlemail.com>
2015-02-22 15:58:30 +01:00
M. Liebmann
862a724a3d Fix background paint header clock in channellist 2014-09-26 14:22:30 +04:00
martii
84cf3865b5 gui/components/cc_frm_clock.cpp: add method to enable/disable auto-blit()
Conflicts:
	src/gui/components/cc_frm_clock.cpp
2014-09-11 18:12:51 +04:00
martii
1c39a6edf4 [experimental] gui/components/cc_frm_clock: use a mutex around unsetting/evaluating paintClock. This may or may not help with the clock-still-showing-when-leaving-the-channellist problem. Pretty much untested, as that issue is quite irreproducible. 2014-09-11 18:12:51 +04:00
martii
13118c1148 gui/components/cc_frm_clock: simplify; setClockFormat/setClockBlink has now impact on running thread
Conflicts:
	src/gui/components/cc_frm_clock.cpp
	src/gui/timeosd.cpp
2014-09-11 18:12:51 +04:00
martii
9472155b88 gui/components/cc_frm_clock: disable thread idle timeout; clear clock when thread exits 2014-09-11 18:12:51 +04:00
svenhoefer
8b91cda918 - change getRenderWidth() default to UTF8 2014-06-11 23:07:00 +02:00
Thilo Graf
2997b5eea2 CComponentsFrmClock: add missing init of items 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
2b65f1d1b3 CComponentsFrmClock: remove statement
stopThread() is doing check against NULL itself
2014-03-03 08:54:09 +01:00
M. Liebmann
ddc826ab51 CComponentsFrmClock: Fix thread handling
- Set clock activ = false for default
2014-02-13 18:26:04 +01:00
Thilo Graf
4e1caf8afe CComponentsFrmClock: fix shaodow warning
size is a member name of CComponentsForm
2014-01-08 11:22:22 +01:00
Thilo Graf
8828e27968 CComponentsFrmClock: update license text 2014-01-08 11:20:18 +01:00
Thilo Graf
ed7a2fd625 CComponents: replace clear() with clearFbData(), remove cleanCCForm()
clear() replaces now clearCCItems() and cleanCCForm() is superfluous.
2014-01-07 09:41:06 +01:00
Thilo Graf
bc8b81a190 CComponentsFrmClock: cleanup constructors
Remove single constructor, usage of default parameters in main constructor
have same effect.
2013-12-25 19:50:32 +01:00
Thilo Graf
8442b39c28 CComponents: replace __FUNCTION__ with __func__
__func__ is more suitable for portability
2013-12-18 15:13:19 +01:00
Jacek Jendrzej
ececd844fa use mySleep in CComponentsFrmClock::initClockThread(
Signed-off-by: Jacek Jendrzej <crashdvb@googlemail.com>
2013-12-15 17:40:32 +01:00
M. Liebmann
0434061172 CComponentsFrmClock: Initialize 'activeClock' variable
- Add function setClockActiv()
2013-12-11 15:55:14 +01:00
M. Liebmann
4f93850708 CComponentsFrmClock: Add blinking function 2013-12-11 15:55:14 +01:00
Thilo Graf
467515fd70 CComponentsFrmClock: fix calculate minimal separator width
It's nevertheless necessary to use more than one space char.
Some "exotic" font types can make issues with its size handling.
We use char size of some possible chars to get minimal separator size.
2013-12-10 10:42:55 +01:00
Thilo Graf
08fed0f5d6 CComponentsFrmClock: use only space char for minimal separator width
Calculate of minimal separator width by a space char should be enough
in all cases.
A switch statement should be also unnecessary, if we check for digits.
2013-12-03 20:43:51 +01:00
svenhoefer
ef78791ec2 - cc_frm_clock.cpp: add space as a possible seperator 2013-12-03 12:38:28 +01:00
martii
15b2b2ec05 remove widest_number definition and usage, add Font::getMaxDigitWidth() method instead
Signed-off-by: M. Liebmann <tuxcode.bbg@gmail.com>
2013-11-29 23:02:50 +01:00
martii
c88ad39c67 gui/components/cc_frm_clock: fix label widths for non-standard fonts 2013-11-29 23:02:50 +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
062b10be2a components: remove initVarForm calls in classes derived from CComponentsForm 2013-11-29 17:27:10 +04:00
M. Liebmann
05cc6f18c1 CComponentsFrmClock: Remove double call of initCCLockItems()
- initCCLockItems() is called by the refresh() function
  and the paint() function in initClockThread()
2013-11-28 16:07:49 +01:00
M. Liebmann
1bfb6d2cd3 CComponentsFrmClock: Rework font handling
- Use setClockFont(enum FONT_TYPES) for selection of neutrino fonts
- Use setClockFontSize(size) for Dynamic Font
2013-11-28 16:07:48 +01:00
Thilo Graf
1107e4f89b CComponentsFrmClock: disable separate handle of label paint
This is already handled in CTextBox object itself and should be enough.
2013-11-26 12:00:03 +01:00
M. Liebmann
7466d6f19c InfoClock: Fix display clock in movie browser, file browser etc. 2013-11-22 10:01:35 +01:00
Thilo Graf
b8b61684df CInfoClock: rework infocklock 2013-11-20 09:38:37 +01:00
Thilo Graf
72d2639a73 CComponentsFrmClock: prepare members for usage as virtual members 2013-10-09 22:50:58 +02:00
Thilo Graf
70b43dc021 CComponentsFrmClock: fix posible flicker effects
Textbox handling was changed since 08e23a917c
2013-10-09 22:50:57 +02:00