Commit Graph

1212 Commits

Author SHA1 Message Date
Thilo Graf
9b299824d6 CComponents: prevent possible segfaults, remove redundant delete
- if dx, dy == 0, it is not senseful to save screen.
- delete[] v_fbdata[i].pixbuf is also called in clear()
2013-12-22 20:07:33 +01:00
Stefan Seyfried
9eddaedfdd CComponents: fix compiler warnings with DEBUG_CC 2013-12-18 21:10:17 +01:00
martii
fbbb0ac57d gui/components: CSignalBox: allow for horizontal arrangement; add methods to retrieve current value
Signed-off-by: Thilo Graf <dbt@novatux.de>
2013-12-18 20:39:54 +01:00
Thilo Graf
8442b39c28 CComponents: replace __FUNCTION__ with __func__
__func__ is more suitable for portability
2013-12-18 15:13:19 +01:00
M. Liebmann
f5f12b78b5 CComponentsFrmClock: Add comment (THX dbt) 2013-12-17 08:35:32 +01:00
martii
1c53781218 gui/timeosd: rewrite based on infoclock implementation 2013-12-17 00:11:43 +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
b41e444887 CComponentsHeader: Fix positioning of items 2013-12-13 22:33:21 +01:00
M. Liebmann
c2c5b931cd CComponentsHeader: Fix height calculation 2013-12-11 15:55:14 +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
63392accda CComponentsHeader: use also lower height if size mode==CC_HEADER_SIZE_SMALL 2013-12-10 09:30:53 +01:00
Thilo Graf
ad80daea96 CComponentsForm/CComponentsHeader: use start pos x=1 instead 0
0 could make problems on fit items into container
2013-12-10 09:30:52 +01:00
Stefan Seyfried
5976f03ca2 Merge remote-tracking branch 'check/next-cc' 2013-12-07 18:28:56 +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
Stefan Seyfried
b5e736e81b Merge branch 'check/next-cc'
Only compile-tested.
2013-11-30 20:17:31 +01:00
Thilo Graf
dff2733bc2 CSignalBar/CSignalNoiseRatioBar: reduce code, clean ups
Some var inits can be reduced, because of inheritance.
2013-11-30 00:41:45 +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
1e5e36b7c8 cc_item_progressbar.cpp: fix attempt to draw box with width=0 2013-11-29 17:27:10 +04:00
[CST] Focus
90c76a2985 components: remove initVarHeader calls in classes derived from CComponentsHeader 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
[CST] Focus
9897b9045c cc_item_progressbar.cpp: for advanced paint, replace paintShapes with paintBoxRel:
too much overhead to replace single paintBoxRel call
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
[CST] Focus
5f80ab6450 cc_base.h: make private initVarBasic and initVarItem, they are is called from constructors 2013-11-29 17:27:10 +04:00
[CST] Focus
5526bedc26 gui/components/cc_frm_signalbars.cpp: fix mem leak:
initVarSigBar call from CSignalNoiseRatioBar reset pointers created by initSBItems from CSignalBar ctor
2013-11-29 17:27:10 +04:00
[CST] Focus
1378ef4ad0 gui/components/cc_item_infobox.cpp: fix memleak:
CComponentsInfoBox ctor -> CComponentsText ctor -> initCCText(), initVarInfobox() -> initVarText() ->
created ct_textbox = NULL, pointer lost;
comment calls in CComponentsInfoBox dtor, which already called from base CComponentsText dtor
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
0ae3d34ceb CComponentsWindow: add missing member paint()
This is a partial revert of cbeb9f3ac6
2013-11-17 20:53:45 +01:00
Thilo Graf
b12ae03073 CSignalBox: add unified label mode and add member to get value label object
defaul mode for value is now CTextBox::NO_AUTO_LINEBREAK | CTextBox::RIGHT
2013-11-17 16:58:41 +01:00
Thilo Graf
cf32badb10 CComponentsExtTextForm: use correct declared type 2013-11-17 15:19:43 +01:00
Thilo Graf
b8bd8c3704 CComponents: move debug enable switch to cc_types.h 2013-11-17 15:19:43 +01:00
Thilo Graf
a7379d6cee CComponents: use DEBUG_CC for debug output 2013-11-17 15:19:43 +01:00
Stefan Seyfried
518612d601 CComponents: fix compiler warnings with DEBUG_CC 2013-11-15 11:38:01 +01:00
Stefan Seyfried
548448456a Merge branch 'check/next-cc'
Only compile-tested.
2013-11-13 14:04:15 +01:00
Stefan Seyfried
630c66330d fix format string warnings 2013-11-13 10:38:27 +01:00
Thilo Graf
a6e0564c2b CComponents: remove log spam 2013-11-12 10:52:24 +01:00
Stefan Seyfried
3a728f9ee1 Makefiles: simplify includes for libcoolstream/libstb-hal 2013-11-11 21:51:08 +01:00
Thilo Graf
05ce023278 CComponentsExtTextForm: remove check for empty strings
This check causes possible segfault and check is already in ccx_text_obj.
2013-11-11 00:19:49 +01:00
Thilo Graf
74d25a6089 CComponentsExtTextForm: fix assign of width with percent value
Assigning of value before width was set, had no effect
2013-11-11 00:19:48 +01:00
Thilo Graf
e5b0673259 CComponents: add log warning if position = 0
Value 0 for embedded items should be unproblematic, buy single items
should have minimum value = 1.
2013-11-11 00:19:48 +01:00
Thilo Graf
812168416f CComponentsButton: add members to get caption properties 2013-11-11 00:19:48 +01:00
Thilo Graf
cbeb9f3ac6 CComponentsWindow: remove paint() member
The derived member of ComponentsForm() should be sufficiently
and should serve its purpose.
2013-11-11 00:19:48 +01:00