Commit Graph

594 Commits

Author SHA1 Message Date
Thilo Graf
4a76ca953e cc_types.h: add forward declaration for CComponentsForm()
required for parameter in CComponentsItem constructors
2014-03-03 08:54:11 +01:00
Thilo Graf
2fade10a11 CComponentsPicture: add comment to isPicPainted()
Not to confuse with isPainted(). Because isPicPainted() is related to
internal image.
2014-03-03 08:54:11 +01:00
Thilo Graf
a33cad448a CComponentsItem: add methodes to set width and height via percent value
Percent value is related to current screen or parent size
2014-03-03 08:54:10 +01:00
Thilo Graf
9b18d0cf5b CComponentsItem: comments corrected 2014-03-03 08:54:10 +01:00
Thilo Graf
8a897103ac CComponentsItem: move/rename doCenter()to base class CComponentsItem
So it's possible to use this method for all cc-items.
setCenterPos() comes now with parameter 'along_mode' (CC_ALONG_X, CC_ALONG_Y).
So it's possible to center in x or y direction. As default are
both directions predefined.
2014-03-03 08:54:10 +01:00
Thilo Graf
38dffb8456 CComponentsItem: add members to set item position via percent value 2014-03-03 08:54:10 +01:00
Thilo Graf
c34f25bb7d CComponentsInfoBox, CComponentsPicture: add overloaded members setPicture() 2014-03-03 08:54:09 +01:00
Thilo Graf
f813b9ea98 CComponents: add member CheckFbData() for fbdata check
This check happens several times, therefore it is senseful, to move into own member.
Function returns false on error and is used here to show an error message if
something was wrong.
Such errors can happen on position or dimension errors e.g. out of screen or
too large display values.

Note:  this is only an emergency helper for debugging on
fatal errors during developing of window stuff. Mostly errors
of this kind causing crashes and must be fixed.
2014-03-03 08:54:09 +01:00
Thilo Graf
2b65f1d1b3 CComponentsFrmClock: remove statement
stopThread() is doing check against NULL itself
2014-03-03 08:54:09 +01:00
Thilo Graf
c6db496de6 CComponentsFrmClock: change wording of comment, was unsuituable 2014-03-03 08:54:08 +01:00
M. Liebmann
c4bff391a5 CComponentsButton: Incrase height for btn font 2014-02-21 00:02:46 +01:00
Thilo Graf
27c6bdccaf CComponentsPicture: fix item position
x/y position was not assigned here for internal pic_x/pic_y vars.
Therefore x/y was ignored.
2014-02-16 19:11:38 +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
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