Commit Graph

40 Commits

Author SHA1 Message Date
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
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
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
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
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
Thilo Graf
58193fa29c CComponents: add new class CComponentsFrmChain
CComponentsFrmChain provides a form for chained cc-items with
optional dynamic arrangement or direction parameters


Origin commit data
------------------
Commit: eb16ea3ac6
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-12-23 (Mon, 23 Dec 2013)
2013-12-23 23:55:43 +01:00
Stefan Seyfried
5256979422 CComponents: fix compiler warnings with DEBUG_CC
Origin commit data
------------------
Commit: 9eddaedfdd
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2013-11-15 (Fri, 15 Nov 2013)
2013-12-18 21:10:17 +01:00
Thilo Graf
c9d2e43271 CComponents: replace __FUNCTION__ with __func__
__func__ is more suitable for portability


Origin commit data
------------------
Commit: 8442b39c28
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-12-15 (Sun, 15 Dec 2013)
2013-12-18 15:13:19 +01:00
Thilo Graf
52be18ff3a CComponentsForm/CComponentsHeader: use start pos x=1 instead 0
0 could make problems on fit items into container


Origin commit data
------------------
Commit: ad80daea96
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-12-04 (Wed, 04 Dec 2013)
2013-12-10 09:30:52 +01:00
[CST] Focus
d1a54573ae components: cleanup destructors - remove calls to functions,
already called inside base classes destructors


Origin commit data
------------------
Commit: dd7c7fc7ae
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2013-11-29 (Fri, 29 Nov 2013)
2013-11-29 17:27:10 +04:00
[CST] Focus
ea03f3c7a5 components: remove initVarBasic and initVarItem calls from derived classes
Origin commit data
------------------
Commit: 93a326e9eb
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2013-11-27 (Wed, 27 Nov 2013)
2013-11-29 17:27:10 +04:00
Thilo Graf
1f85322357 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().


Origin commit data
------------------
Commit: 8ae491a994
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-11-08 (Fri, 08 Nov 2013)
2013-11-11 00:19:48 +01:00
Thilo Graf
5f9bb84b28 revert 2649ca147a
Was bad idea to rename. Other Classes can also inherit this. See CMenuTarget


Origin commit data
------------------
Commit: 6dd1da0628
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-10-25 (Fri, 25 Oct 2013)
2013-10-26 23:25:59 +02:00
Thilo Graf
2649ca147a CComponents: rename hide() to hideCC()
There are too many name conflicts with hide-members in other classes.


Origin commit data
------------------
Commit: 6ee7fac1a5
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-10-24 (Thu, 24 Oct 2013)
2013-10-24 21:39:04 +02:00
Thilo Graf
a1b81db73e CComponentsItem: move function isAdded() to CComponentsItem class
Origin commit data
------------------
Commit: 3438b23f68
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-10-19 (Sat, 19 Oct 2013)
2013-10-19 01:25:23 +02:00
Thilo Graf
92926e57b2 CComponentsForm: add predefine CC_CENTERED for auto positions
This saves explicit position calculations to arrange items centered


Origin commit data
------------------
Commit: 3ff09c88bd
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-10-11 (Fri, 11 Oct 2013)
2013-10-16 11:54:05 +02:00
Thilo Graf
114be445ee CComponentsForm/CComponentsWindow: add new members
CComponentsForm: Overload member removeCCItem so we can use
cc_item as parameter.
CComponentsWindow: add member bool showFooter().
This allows to hide a footer in window.


Origin commit data
------------------
Commit: 4eb26988e9
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-09-08 (Sun, 08 Sep 2013)
2013-09-19 08:24:38 +02:00
Thilo Graf
a89cab9b5e CComponentsForm: fix fitting of item on the right and bottom edges
Frame of form was overpainted by item,
small whitespace fixes


Origin commit data
------------------
Commit: 5cb7d66993
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-08-28 (Wed, 28 Aug 2013)
2013-08-30 22:14:35 +02:00
Thilo Graf
4227c602f1 CComponentsForm: add more debug details
Origin commit data
------------------
Commit: f3cb2bc41c
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-06-25 (Tue, 25 Jun 2013)
2013-06-25 11:36:04 +02:00
Thilo Graf
bef294c807 CComponentsForm: fix possible segfault
Origin commit data
------------------
Commit: 7fd870a063
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-06-25 (Tue, 25 Jun 2013)
2013-06-25 11:36:04 +02:00
Thilo Graf
82d16348d7 CComponentsForm: fix position of inserted item
It's not enough to insert an item object only. Also properties like
parent and index must be defined to inserted item to ensure that
positions are calculated correctly.


Origin commit data
------------------
Commit: 75fe48043e
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-06-23 (Sun, 23 Jun 2013)
2013-06-23 22:54:40 +02:00
Thilo Graf
927691cab0 CComponentsForm: use addCCItem() instead push_back
push_back doesn't make all necessary steps to add an item


Origin commit data
------------------
Commit: 460c8bbff3
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-06-23 (Sun, 23 Jun 2013)
2013-06-23 22:54:35 +02:00
Thilo Graf
1b9f02b750 CComponentsForm: add new member genIndex()
Origin commit data
------------------
Commit: a8721fa72a
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-06-23 (Sun, 23 Jun 2013)
2013-06-23 22:54:30 +02:00
Thilo Graf
05a6f46dbe CComponentsForm: fix position of replaced item
If cc-item is bound on a parent form, it's not enough
to replace the item object only, also properties like
parent and index must be moved to new item to ensure that positions are calculated correctly.
But it's matter for unbound cc-items.


Origin commit data
------------------
Commit: c66c778326
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-06-23 (Sun, 23 Jun 2013)
2013-06-23 20:34:19 +02:00
Thilo Graf
d05f9843f7 CComponents: rework position handling
The real position already used here, if item is bound to a parent.
(bound or embedded means: added with addCCItem() to a form)
This causes no separate calculation in paint methodes of embedded
sub items or sub forms and more nested sub forms.

CComponentsForm have also some new members
- exchangeCCItem() to exchange the order items
- setAppendOffset() to set an offset for auto append mode
 Autoappend is enabled if x or y have value -1 (defined also in CC_APPEND)
 x=horizontal, y=vertical
 Is this activated, no separate calculation of incremental offset
 is required.

However items with independent rendered parts, needs
a separate calculation. In some subclasses was this necessary.


Origin commit data
------------------
Commit: 04300f1874
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-06-16 (Sun, 16 Jun 2013)

Origin message was:
------------------
CComponents: rework position handling

The real position already used here, if item is bound to a parent.
(bound or embedded means: added with addCCItem() to a form)
This causes no separate calculation in paint methodes of embedded
sub items or sub forms and more nested sub forms.

CComponentsForm have also some new members
- exchangeCCItem() to exchange the order items
- setAppendOffset() to set an offset for auto append mode
 Autoappend is enabled if x or y have value -1 (defined also in CC_APPEND)
 x=horizontal, y=vertical
 Is this activated, no separate calculation of incremental offset
 is required.

However items with independent rendered parts, needs
a separate calculation. In some subclasses was this necessary.
2013-06-16 00:34:06 +02:00
Thilo Graf
d2cbb44c4d CComponentsForm: add new member isAdded()
Origin commit data
------------------
Commit: f968abe6c5
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-06-12 (Wed, 12 Jun 2013)
2013-06-16 00:34:04 +02:00
Thilo Graf
1a3048552e CComponentsForm: return id only if parameter is not 0
Origin commit data
------------------
Commit: 2af1c5d8b2
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-06-12 (Wed, 12 Jun 2013)
2013-06-16 00:34:04 +02:00
Thilo Graf
b71dc91ee4 CComponentsForm: add missing item type
Origin commit data
------------------
Commit: d862de87eb
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-06-08 (Sat, 08 Jun 2013)
2013-06-16 00:34:03 +02:00
Thilo Graf
46533626c2 CComponentsForm: fix position of items in added forms
Position of added items in subforms was fitted with wrong offset.
Usage of relative x/y position avoids wrong positions of items in subforms.


Origin commit data
------------------
Commit: d3d0bff7ac
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-05-29 (Wed, 29 May 2013)
2013-06-03 22:11:19 +02:00
Thilo Graf
26f6390906 CComponentsForm: add index to items
Helpers to identfie added items.


Origin commit data
------------------
Commit: ddaa7a876e
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-05-29 (Wed, 29 May 2013)
2013-06-03 22:06:30 +02:00
Thilo Graf
a034567d97 CComponentsItem: add members to set pointer for parent object
Pointer is typically of type CComponentsForm or derived classes,
default intialized with NULL and serves to access for
properties of parent object by embedded items.


Origin commit data
------------------
Commit: 336c3bc7a1
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-04-15 (Mon, 15 Apr 2013)
2013-04-16 08:26:56 +02:00
Thilo Graf
36a293b309 CComponentsForm: add own header for form classes
Origin commit data
------------------
Commit: 39a4e3400e
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-04-15 (Mon, 15 Apr 2013)
2013-04-16 08:26:56 +02:00
Thilo Graf
48237184c8 CComponentsItem/Form: add var for real item position
If items are used in forms it can be usefully to have a variable
which contains the real position on screen.
This can happen e.g. if an item contains separate render methods, because within forms
usual x/y values related to form dimensions and be converted.


Origin commit data
------------------
Commit: 62efe2cb59
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-04-10 (Wed, 10 Apr 2013)
2013-04-16 08:26:54 +02:00
Stefan Seyfried
691b4639b9 cc_frm: fix invalid cast
Origin commit data
------------------
Commit: 8d8ce4c55a
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2013-04-06 (Sat, 06 Apr 2013)
2013-04-06 22:20:58 +02:00
Thilo Graf
17d13ef103 CComponents: move item type enum to cc_types.h
Origin commit data
------------------
Commit: d391bedd5f
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-03-26 (Tue, 26 Mar 2013)
2013-04-02 09:31:05 +02:00
Thilo Graf
0e9ff3d23c fix license text, sorry, was a c&p error
Origin commit data
------------------
Commit: 0dc4686874
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-03-20 (Wed, 20 Mar 2013)
2013-03-21 11:37:00 +01:00
Thilo Graf
7ad21cfd07 CComponentsForm/PIP: ensure hiding of minitv during hide of forms
Handling of minitv items are different to other item types
and need an explizit call of hide(). So it is possible to hide a form-
object without a extra call of hide() for minitv objects.


Origin commit data
------------------
Commit: 69476903ee
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-03-14 (Thu, 14 Mar 2013)
2013-03-18 12:04:37 +01:00
Thilo Graf
15a7b60515 CComponentsForm/Header/Icons/Window: try to fix multiple inits and paints
Some items had multiple inits and some calls of clearCCItems()
have caused segfaults, hope this fix this.


Origin commit data
------------------
Commit: 4a931af6ef
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-03-13 (Wed, 13 Mar 2013)
2013-03-18 12:04:25 +01:00
Thilo Graf
b35eeb6c3c CComponentsHeader/Icon: use inherited destructor
Inherited destructor contains identic code.


Origin commit data
------------------
Commit: da356d94da
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-03-10 (Sun, 10 Mar 2013)
2013-03-18 12:04:21 +01:00
Thilo Graf
de00ec3d5e CComponents: split cc_base.cpp
It's easier to work with smaller files.
Most files contain only one cc-class and their names are
derived on the particular class that is contained therein.


Origin commit data
------------------
Commit: 3ed9af87ad
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-02-26 (Tue, 26 Feb 2013)
2013-03-06 11:28:18 +01:00