Commit Graph

395 Commits

Author SHA1 Message Date
Thilo Graf
f33efdbdc4 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.


Origin commit data
------------------
Commit: 23d7b62cf0
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-03-03 (Mon, 03 Mar 2014)
2014-03-03 09:43:39 +01:00
Thilo Graf
111a2f9946 cc_types.h: add forward declaration for CComponentsForm()
required for parameter in CComponentsItem constructors


Origin commit data
------------------
Commit: 4a76ca953e
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-02-27 (Thu, 27 Feb 2014)
2014-03-03 08:54:11 +01:00
Thilo Graf
fb883e238a CComponentsPicture: add comment to isPicPainted()
Not to confuse with isPainted(). Because isPicPainted() is related to
internal image.


Origin commit data
------------------
Commit: 2fade10a11
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-02-27 (Thu, 27 Feb 2014)
2014-03-03 08:54:11 +01:00
Thilo Graf
bafa64bba9 CComponentsItem: add methodes to set width and height via percent value
Percent value is related to current screen or parent size


Origin commit data
------------------
Commit: a33cad448a
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-02-27 (Thu, 27 Feb 2014)
2014-03-03 08:54:10 +01:00
Thilo Graf
9aa9f374e6 CComponentsItem: comments corrected
Origin commit data
------------------
Commit: 9b18d0cf5b
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-02-27 (Thu, 27 Feb 2014)
2014-03-03 08:54:10 +01:00
Thilo Graf
cc24c195ee 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.


Origin commit data
------------------
Commit: 8a897103ac
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-02-27 (Thu, 27 Feb 2014)
2014-03-03 08:54:10 +01:00
Thilo Graf
ecdc19e8bc CComponentsItem: add members to set item position via percent value
Origin commit data
------------------
Commit: 38dffb8456
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-02-26 (Wed, 26 Feb 2014)
2014-03-03 08:54:10 +01:00
Thilo Graf
20782a486c CComponentsInfoBox, CComponentsPicture: add overloaded members setPicture()
Origin commit data
------------------
Commit: c34f25bb7d
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-02-26 (Wed, 26 Feb 2014)
2014-03-03 08:54:09 +01:00
Thilo Graf
aa7a96a5a8 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.


Origin commit data
------------------
Commit: f813b9ea98
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-02-23 (Sun, 23 Feb 2014)

Origin message was:
------------------
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
217b46e625 CComponentsFrmClock: remove statement
stopThread() is doing check against NULL itself


Origin commit data
------------------
Commit: 2b65f1d1b3
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-12-16 (Mon, 16 Dec 2013)
2014-03-03 08:54:09 +01:00
Thilo Graf
247a4d7c1c CComponentsFrmClock: change wording of comment, was unsuituable
Origin commit data
------------------
Commit: c6db496de6
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-12-16 (Mon, 16 Dec 2013)
2014-03-03 08:54:08 +01:00
Michael Liebmann
8ef66ccda2 CComponentsButton: Incrase height for btn font
Origin commit data
------------------
Commit: c4bff391a5
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2014-02-21 (Fri, 21 Feb 2014)
2014-02-21 00:02:46 +01:00
Thilo Graf
1b4e545c5d CComponentsPicture: fix item position
x/y position was not assigned here for internal pic_x/pic_y vars.
Therefore x/y was ignored.


Origin commit data
------------------
Commit: 27c6bdccaf
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-02-14 (Fri, 14 Feb 2014)
2014-02-16 19:11:38 +01:00
Michael Liebmann
c259eb1dc8 CComponentsFrmClock: Fix thread handling
- Set clock activ = false for default


Origin commit data
------------------
Commit: ddc826ab51
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2014-02-13 (Thu, 13 Feb 2014)
2014-02-13 18:26:04 +01:00
Thilo Graf
1dae34a82f CComponentsForm, CSignalBar: rename offset vars
Origin commit data
------------------
Commit: c2c79060b8
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-02-06 (Thu, 06 Feb 2014)
2014-02-13 16:26:16 +01:00
Thilo Graf
caf0d7db19 CComponentsWindow: fix missing define of header position
Position is strictly top and left within of Window


Origin commit data
------------------
Commit: c6221581ed
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-02-07 (Fri, 07 Feb 2014)
2014-02-07 09:31:30 +01:00
Thilo Graf
0781fc000b CComponentsWindow: remove redundant init of header and footer
Origin commit data
------------------
Commit: a6eb67d456
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-02-05 (Wed, 05 Feb 2014)
2014-02-05 11:56:48 +01:00
Thilo Graf
6327804c8a CComponentsPicture: add debug output for handled item dimensions and pos
Origin commit data
------------------
Commit: 14a3546b5f
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-02-03 (Mon, 03 Feb 2014)
2014-02-05 11:56:48 +01:00
Thilo Graf
83afb37b11 CComponentsPicture: rework constructors, clean ups
Origin commit data
------------------
Commit: 34fcdec276
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-02-03 (Mon, 03 Feb 2014)
2014-02-05 11:56:48 +01:00
Thilo Graf
c0b74d30e8 CComponentsPicture: show paint mode in debug output
Origin commit data
------------------
Commit: 718824015a
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-02-03 (Mon, 03 Feb 2014)
2014-02-05 11:56:48 +01:00
Thilo Graf
1c21514660 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.


Origin commit data
------------------
Commit: 57a6c36329
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-01-31 (Fri, 31 Jan 2014)
2014-02-05 11:56:48 +01:00
Thilo Graf
10289e5d36 CComponentsWindowMax: add missing parameters to constructors
Origin commit data
------------------
Commit: 9482613d4c
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-01-31 (Fri, 31 Jan 2014)
2014-02-05 11:56:47 +01:00
Thilo Graf
1cc801f931 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.


Origin commit data
------------------
Commit: 9d3febd080
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-01-31 (Fri, 31 Jan 2014)
2014-02-05 11:56:47 +01:00
Thilo Graf
b48decae3a CComponentsIconForm: rework constructors
Origin commit data
------------------
Commit: 59723d89f0
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-01-30 (Thu, 30 Jan 2014)
2014-02-05 11:56:46 +01:00
Thilo Graf
e15a28753e CComponentsHeader/CComponentsFooter: move footer class into its own file
Origin commit data
------------------
Commit: 7151608c8b
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-01-28 (Tue, 28 Jan 2014)
2014-02-05 11:56:46 +01:00
Thilo Graf
dc31f29382 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.


Origin commit data
------------------
Commit: 1838a71c20
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-01-24 (Fri, 24 Jan 2014)
2014-01-24 23:38:25 +01:00
Thilo Graf
e9c5308a3c CComponentsWindow: cleanup
Origin commit data
------------------
Commit: d35da1afb6
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-01-24 (Fri, 24 Jan 2014)
2014-01-24 23:38:19 +01:00
Thilo Graf
c75a306cdd 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.


Origin commit data
------------------
Commit: 66ae096372
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-01-24 (Fri, 24 Jan 2014)
2014-01-24 23:13:49 +01:00
Thilo Graf
3994fb14c0 CComponents: rework some debug outputs
This shows also x or y values < 0.


Origin commit data
------------------
Commit: 39d6340598
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-01-18 (Sat, 18 Jan 2014)
2014-01-24 23:13:45 +01:00
Thilo Graf
50250176c8 CComponentsWindow: add member doCenter()
Allows centering of window on screen, mostly senseful for
window objects without parent


Origin commit data
------------------
Commit: 8cad2a3ca5
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-01-18 (Sat, 18 Jan 2014)
2014-01-24 23:13:41 +01:00
Thilo Graf
c3216202f6 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.


Origin commit data
------------------
Commit: 21e0321c53
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-01-24 (Fri, 24 Jan 2014)

Origin message was:
------------------
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
5ad73f09aa 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.


Origin commit data
------------------
Commit: 5ea7ec48df
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-01-18 (Sat, 18 Jan 2014)

Origin message was:
------------------
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
Michael Liebmann
336fa941e0 CSignalBar: Fix display "value caption"
Origin commit data
------------------
Commit: 4fa3a245df
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2014-01-21 (Tue, 21 Jan 2014)
2014-01-21 18:09:46 +01:00
Michael Liebmann
128047f61f CSignalBox: Set current tuner as the default frontend
Origin commit data
------------------
Commit: c83f195637
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2014-01-20 (Mon, 20 Jan 2014)
2014-01-20 21:35:39 +01:00
Thilo Graf
39306fc99e CComponentsSlider: fix vertical arrangement for slider body
Centering was broken.


Origin commit data
------------------
Commit: 72cb72695f
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-01-12 (Sun, 12 Jan 2014)
2014-01-12 13:57:11 +01:00
Thilo Graf
01e77944df CComponents: add member to set color for selected items
Origin commit data
------------------
Commit: f6d7352dca
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-01-12 (Sun, 12 Jan 2014)
2014-01-12 13:57:11 +01:00
Thilo Graf
871324ec19 CComponentsSlider: fix debug output
Origin commit data
------------------
Commit: 2ca246a30d
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-01-12 (Sun, 12 Jan 2014)
2014-01-12 13:57:10 +01:00
Thilo Graf
34249fc1d9 CComponentsFrmClock: fix shaodow warning
size is a member name of CComponentsForm


Origin commit data
------------------
Commit: 4e1caf8afe
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-01-08 (Wed, 08 Jan 2014)
2014-01-08 11:22:22 +01:00
Thilo Graf
e652f1eca2 CComponentsFrmClock: update license text
Origin commit data
------------------
Commit: 8828e27968
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-01-08 (Wed, 08 Jan 2014)
2014-01-08 11:20:18 +01:00
Thilo Graf
d0aaeecb1a CComponentsForm: add members to get count of items
Origin commit data
------------------
Commit: 2191fded38
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-01-08 (Wed, 08 Jan 2014)
2014-01-08 08:42:16 +01:00
Thilo Graf
ba7524f6bb CComponents: replace clear() with clearFbData(), remove cleanCCForm()
clear() replaces now clearCCItems() and cleanCCForm() is superfluous.


Origin commit data
------------------
Commit: ed7a2fd625
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-01-07 (Tue, 07 Jan 2014)
2014-01-07 09:41:06 +01:00
Thilo Graf
e2587b12cd CComponents: split some header files
Should bring more overview and less susceptibility to conflicts (merge etc)

License texts updated.


Origin commit data
------------------
Commit: 04574fc6eb
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-01-06 (Mon, 06 Jan 2014)
2014-01-06 22:27:59 +01:00
Thilo Graf
97218a2827 CComponentsForm: update license text
Origin commit data
------------------
Commit: d2991b49c8
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-01-06 (Mon, 06 Jan 2014)
2014-01-06 14:47:13 +01:00
Thilo Graf
e2d7ca2668 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.


Origin commit data
------------------
Commit: a08a418d88
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-01-06 (Mon, 06 Jan 2014)
2014-01-06 14:47:12 +01:00
Thilo Graf
0fa668d3b6 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.


Origin commit data
------------------
Commit: a0a4cc1355
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-01-06 (Mon, 06 Jan 2014)
2014-01-06 14:47:12 +01:00
Thilo Graf
53a2b66947 CComponentsFrmClock: cleanup constructors
Remove single constructor, usage of default parameters in main constructor
have same effect.


Origin commit data
------------------
Commit: bc8b81a190
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-12-25 (Wed, 25 Dec 2013)
2013-12-25 19:50:32 +01:00
Thilo Graf
fc5b364545 CComponents: clean up unused stuff
Subclasses are never used, and the functionality is already provided or
can be constructed from current classes.


Origin commit data
------------------
Commit: 82ed49a45a
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-12-25 (Wed, 25 Dec 2013)
2013-12-25 19:50:32 +01:00
Thilo Graf
a17e73a494 CComponentsSlider: fix possible null pointer dereference
csl_body_obj, csl_slider_obj,
otherwise it is redundant to check it against null.


Origin commit data
------------------
Commit: 0079782696
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-12-25 (Wed, 25 Dec 2013)
2013-12-25 19:50:31 +01:00
Thilo Graf
3c26fc3e4b CComponentsButton: reduce scope of variable face_x
The scope of the variable 'face_x' can be reduced. (style)


Origin commit data
------------------
Commit: 9ac35f0d92
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-12-24 (Tue, 24 Dec 2013)
2013-12-25 19:50:31 +01:00
Thilo Graf
2c61cdb86e CComponentsForm: use passed by reference in addCCItem()
Function parameter 'cc_Items' should be passed by reference (performance).


Origin commit data
------------------
Commit: abe1de16b0
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-12-24 (Tue, 24 Dec 2013)
2013-12-25 19:50:31 +01:00