Commit Graph

381 Commits

Author SHA1 Message Date
Thilo Graf
c2c79060b8 CComponentsForm, CSignalBar: rename offset vars 2014-02-13 16:26:16 +01:00
Thilo Graf
c6221581ed CComponentsWindow: fix missing define of header position
Position is strictly top and left within of Window
2014-02-07 09:31:30 +01:00
Thilo Graf
a6eb67d456 CComponentsWindow: remove redundant init of header and footer 2014-02-05 11:56:48 +01:00
Thilo Graf
14a3546b5f CComponentsPicture: add debug output for handled item dimensions and pos 2014-02-05 11:56:48 +01:00
Thilo Graf
34fcdec276 CComponentsPicture: rework constructors, clean ups 2014-02-05 11:56:48 +01:00
Thilo Graf
718824015a CComponentsPicture: show paint mode in debug output 2014-02-05 11:56:48 +01:00
Thilo Graf
57a6c36329 CComponents: remove wrong init value for item position
This causes an unnecessary offset and possible fb-remains.
This was observed at the header in Imageinfo, but only without shadow.
2014-02-05 11:56:48 +01:00
Thilo Graf
9482613d4c CComponentsWindowMax: add missing parameters to constructors 2014-02-05 11:56:47 +01:00
Thilo Graf
9d3febd080 CComponentsWindow: fix handling of window size
On some several cases it's possible that full resulution is not
visible on SD output or video-out modes like 576i/p.
So it's makes more sense to use current osd-settings for max size and
position.
This fixes also current behavior of Imageinfo.
2014-02-05 11:56:47 +01:00
Thilo Graf
59723d89f0 CComponentsIconForm: rework constructors 2014-02-05 11:56:46 +01:00
Thilo Graf
7151608c8b CComponentsHeader/CComponentsFooter: move footer class into its own file 2014-02-05 11:56:46 +01:00
Thilo Graf
1838a71c20 CComponentsHeader: cleanup
-remove variable userHeight, is not used
-change name of parameter in member initCaptionFont(), "font_name" is not a
 suitable name for a type object.
2014-01-24 23:38:25 +01:00
Thilo Graf
d35da1afb6 CComponentsWindow: cleanup 2014-01-24 23:38:19 +01:00
Thilo Graf
66ae096372 CComponentsWindow: adapt header and footer corners for parent window
Corners of header and footer were not adapted to parent form.
It's unsightly, if these elements are not using the same corner types
like the parent window.
2014-01-24 23:13:49 +01:00
Thilo Graf
39d6340598 CComponents: rework some debug outputs
This shows also x or y values < 0.
2014-01-24 23:13:45 +01:00
Thilo Graf
8cad2a3ca5 CComponentsWindow: add member doCenter()
Allows centering of window on screen, mostly senseful for
window objects without parent
2014-01-24 23:13:41 +01:00
Thilo Graf
21e0321c53 CComponentsWindow: rework constructors, add CComponentsWindowMax
Member initVarWindow() now used with parameters, so it's  possible
to remove multiple code in constructors, but some class must be
renamed to CComponentsWindowMax.
2014-01-24 23:12:51 +01:00
Thilo Graf
5ea7ec48df CComponentsHeader: rework constructors, add CComponentsHeaderLocalized
Member initVarHeader() now used with parameters, so it's  possible
to remove multiple code in constructors, but some class must be
renamed to CComponentsHeaderLocalized.
2014-01-24 23:09:56 +01:00
M. Liebmann
4fa3a245df CSignalBar: Fix display "value caption" 2014-01-21 18:09:46 +01:00
M. Liebmann
c83f195637 CSignalBox: Set current tuner as the default frontend 2014-01-20 21:35:39 +01:00
Thilo Graf
72cb72695f CComponentsSlider: fix vertical arrangement for slider body
Centering was broken.
2014-01-12 13:57:11 +01:00
Thilo Graf
f6d7352dca CComponents: add member to set color for selected items 2014-01-12 13:57:11 +01:00
Thilo Graf
2ca246a30d CComponentsSlider: fix debug output 2014-01-12 13:57:10 +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
2191fded38 CComponentsForm: add members to get count of items 2014-01-08 08:42:16 +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
04574fc6eb CComponents: split some header files
Should bring more overview and less susceptibility to conflicts (merge etc)

License texts updated.
2014-01-06 22:27:59 +01:00
Thilo Graf
d2991b49c8 CComponentsForm: update license text 2014-01-06 14:47:13 +01:00
Thilo Graf
a08a418d88 CComponentsExtTextForm: use inherited class for localized version
Removed simple constructor and used default values in constructor has same
effect, this reduces some code parts. Usage is unchanged.
2014-01-06 14:47:12 +01:00
Thilo Graf
a0a4cc1355 CComponentsForm: avoid of height or width error due to odd values
Some calculations can resulting odd values and can provocate
unnecessary debug spam, but more lines should be repaired.
2014-01-06 14:47:12 +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
82ed49a45a CComponents: clean up unused stuff
Subclasses are never used, and the functionality is already provided or
can be constructed from current classes.
2013-12-25 19:50:32 +01:00
Thilo Graf
0079782696 CComponentsSlider: fix possible null pointer dereference
csl_body_obj, csl_slider_obj,
otherwise it is redundant to check it against null.
2013-12-25 19:50:31 +01:00
Thilo Graf
9ac35f0d92 CComponentsButton: reduce scope of variable face_x
The scope of the variable 'face_x' can be reduced. (style)
2013-12-25 19:50:31 +01:00
Thilo Graf
abe1de16b0 CComponentsForm: use passed by reference in addCCItem()
Function parameter 'cc_Items' should be passed by reference (performance).
2013-12-25 19:50:31 +01:00
Thilo Graf
2803bf6f81 CComponentsDetailLine: cleanup constructors
Remove single constructor, usage of default parameters in main constructor
have same effect.
2013-12-25 19:50:31 +01:00
Thilo Graf
eb16ea3ac6 CComponents: add new class CComponentsFrmChain
CComponentsFrmChain provides a form for chained cc-items with
optional dynamic arrangement or direction parameters
2013-12-23 23:55:43 +01:00
Thilo Graf
28e344d600 CComponents: add new class CComponentsSlider()
Provides a slider item
2013-12-23 23:55:43 +01:00
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