Commit Graph

318 Commits

Author SHA1 Message Date
[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
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
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
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
a0e00387b6 CComponentsExtTextForm: add member setLabelAndTextFont() 2013-11-11 00:19:47 +01:00
Thilo Graf
989ec25360 CComponentsButton: add constructors with loacalized caption parameter 2013-11-11 00:19:47 +01:00
Thilo Graf
72705b19de CComponents: use correct initial values screen start position
Value '0' is wrong.
2013-11-11 00:19:47 +01:00
Thilo Graf
ffe50db001 CComponentsLabel: use correct body color 2013-11-11 00:19:46 +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
4ed6e54da6 CComponentsItem: add missing is_painted to hideCCItem() 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
64c6eb5945 CComponentsHeader: add possibility to modify text alignment
usable in header and its derived classes and in class CComponentsWindow
2013-10-24 21:19:07 +02:00
Thilo Graf
ad102b69fd CComponentsHeader: use isAdded() to avoid add multiple items 2013-10-24 21:19:06 +02:00
Thilo Graf
5323e92a6f CComponentsWindow: add member showHeader()
Provides show or hide window header
2013-10-24 21:19:06 +02:00
Thilo Graf
e613971c0d CComponentsText: add member to get text color 2013-10-24 21:19:06 +02:00
Thilo Graf
1b0d4fdd05 CComponentsHeader: add member to get header text 2013-10-24 21:19:05 +02:00
Michael Liebmann
b3559e37f8 CComponentsItem: Remove parameter from function isAdded() 2013-10-21 09:32:15 +02:00
Thilo Graf
3438b23f68 CComponentsItem: move function isAdded() to CComponentsItem class 2013-10-19 01:25:23 +02:00
Thilo Graf
a1e5a60184 CComponentsText: use separated function to get text fro a file 2013-10-19 01:25:22 +02:00
Michael Liebmann
5091e920fc Replacing obsolete 'INCLUDES' with 'AM_CPPFLAGS' in all Makefile.am 2013-10-17 04:22:49 +02:00
Thilo Graf
a47091872b CComponentsButton: involving of button text for dyn font evaluation 2013-10-16 11:54:06 +02:00
Thilo Graf
fb3f18b14a CComponentsButton: use empty string as default icon in constructors 2013-10-16 11:54:06 +02:00
Thilo Graf
3ff09c88bd CComponentsForm: add predefine CC_CENTERED for auto positions
This saves explicit position calculations to arrange items centered
2013-10-16 11:54:05 +02:00
Thilo Graf
517313cd82 CSignalBar: optimize caption handling 2013-10-16 11:54:05 +02:00
Thilo Graf
c3a3eea0d8 CComponentsButton: use dynamic fonts, remove old font handling 2013-10-16 11:54:04 +02: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
Thilo Graf
992cac1a55 CComponentsPicture: add class CComponentsChannelLogo 2013-10-06 17:14:31 +02:00