Commit Graph

61 Commits

Author SHA1 Message Date
Thilo Graf
edb00024df CComponentsForm: reduce log spam in info mode
Origin commit data
------------------
Branch: ni/coolstream
Commit: 674f2f983a
Author: Thilo Graf <dbt@novatux.de>
Date: 2015-01-04 (Sun, 04 Jan 2015)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2015-03-29 22:40:04 +02:00
Thilo Graf
c6df155baf CComponentsForm: prevent wrong id parameter if item size out of range
Origin commit data
------------------
Branch: ni/coolstream
Commit: d72603665c
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-11-14 (Fri, 14 Nov 2014)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2015-03-29 22:39:57 +02:00
Thilo Graf
f7df5da3aa CComponentsForm: fix init value of getPageCount()
value is always 1


Origin commit data
------------------
Branch: ni/coolstream
Commit: 52f7c79db8
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-11-07 (Fri, 07 Nov 2014)



------------------
This commit was generated by Migit
2015-03-29 22:39:56 +02:00
Thilo Graf
f074a4ee66 CComponentsForm: fix unnecessary try for scroll
This avoids unnecessary flicker effects, because no paint is required,
if page count = 1 and also ensures, that this page is defined as current page.


Origin commit data
------------------
Branch: ni/coolstream
Commit: 23c708b787
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-10-05 (Sun, 05 Oct 2014)



------------------
This commit was generated by Migit
2015-03-29 22:39:51 +02:00
Thilo Graf
cd4c602c10 CComponentsForm: reduce corner radius on frame border
If we have a frame around parent item, ensure matching corners
inside of embedded item, this avoids ugly unpainted spaces
between frame and item border.

TODO: other constellations are not considered at the moment!


Origin commit data
------------------
Branch: ni/coolstream
Commit: 09851f3b9f
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-10-04 (Sat, 04 Oct 2014)



------------------
This commit was generated by Migit
2015-03-29 22:39:51 +02:00
Thilo Graf
d79698edb6 CComponentsForm: fix item offset with enabled frame
frame width was not considered


Origin commit data
------------------
Branch: ni/coolstream
Commit: f7faf07ab1
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-10-04 (Sat, 04 Oct 2014)



------------------
This commit was generated by Migit
2015-03-29 22:39:50 +02:00
Michael Liebmann
e274e34962 CComponentsForm: Fix compiler warning (-Wsign-compare)
Origin commit data
------------------
Branch: ni/coolstream
Commit: 4c2704fb2f
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2014-09-21 (Sun, 21 Sep 2014)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2014-09-25 11:05:18 +04:00
Thilo Graf
5682b24535 CComponentsForm/CComponentsWindow: add page scroll handling
This provides page scroll with up/down, left/right or combined.
Usage of exec() methods with implemented signals allows a
generic implematation of button or other message handling with
signal/slot solutions.

still to do: page cache


Origin commit data
------------------
Branch: ni/coolstream
Commit: 88ce62ea84
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-09-07 (Sun, 07 Sep 2014)



------------------
This commit was generated by Migit
2014-09-25 11:02:55 +04:00
Thilo Graf
68b8271d90 CComponentsItem/CComponentsForm: add property focus
Specifies that some certain operations especially eg. exec events for
that item are possible.


Origin commit data
------------------
Branch: ni/coolstream
Commit: 0c0e0e85ff
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-09-02 (Tue, 02 Sep 2014)



------------------
This commit was generated by Migit
2014-09-25 11:02:32 +04:00
Thilo Graf
9b4f55abc0 CComponentsForm: add member to get pointer to selected items
Origin commit data
------------------
Branch: ni/coolstream
Commit: e1b9f0a184
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-08-26 (Tue, 26 Aug 2014)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2014-09-25 11:02:17 +04:00
Thilo Graf
aaa4e061d4 CComponentsForm: avoid segfault, if id is out of range
Origin commit data
------------------
Branch: ni/coolstream
Commit: 0ab881b338
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-08-26 (Tue, 26 Aug 2014)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2014-09-25 11:02:13 +04:00
Thilo Graf
9961798df3 CComponentsForm: add members to set or get selected items
Origin commit data
------------------
Branch: ni/coolstream
Commit: ec7d5772f0
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-08-25 (Mon, 25 Aug 2014)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2014-09-25 11:01:54 +04:00
Thilo Graf
060a36dd6b CComponents: implement scroll functionality into CComponentsForm
CComponentsForm provides page scroll if found more
than one pre defined page and is working with all derivated sub classes from CComponentsForm .

Pages are defined with setPageNumber(0...n) in items (1st page = 0). The item page number property is
defined in variable cc_page_number. The highest page number sets the
count of pages inside container to required value. Thats compellingly!

To show a page, we can use setCurrentPage(0...n ) and paintCurPage() or use directly paintPage(0...n).
Note: global paint() will show the current page. Default page is 0 (as first).
Use setCurrentPage(0...n) to change this before first call of paint().
Note: In CComponentsWindow class, these methods are applied to window body.

For examples, take a look into CTestMenu


Origin commit data
------------------
Branch: ni/coolstream
Commit: 672757606c
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-06-26 (Thu, 26 Jun 2014)



------------------
This commit was generated by Migit
2014-06-27 20:49:41 +02:00
Thilo Graf
d04944de2f CComponentsForm: don't consider frame for position calculation
This should be done in the arrangement of the container contents


Origin commit data
------------------
Branch: ni/coolstream
Commit: dce25e94b3
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-06-22 (Sun, 22 Jun 2014)



------------------
This commit was generated by Migit
2014-06-23 18:43:47 +02:00
Thilo Graf
fabc259990 CComponentsForm: add methode killCCItems()
This methode is an equivalent version of CComponentsItem::kill() and
allows to erase all items inside of a container at once.


Origin commit data
------------------
Branch: ni/coolstream
Commit: 581b9c7701
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-06-05 (Thu, 05 Jun 2014)



------------------
This commit was generated by Migit
2014-06-23 18:43:47 +02:00
Thilo Graf
e09b3e485b CComponentsForm: paint log on debug level 2 if dimensions too large
Origin commit data
------------------
Branch: ni/coolstream
Commit: f073c74a40
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-05-10 (Sat, 10 May 2014)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2014-05-22 21:50:52 +02:00
Thilo Graf
1f73a91a36 CComponentsForm: fix centering of items inside form
Origin commit data
------------------
Branch: ni/coolstream
Commit: 2f889b9563
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-05-04 (Sun, 04 May 2014)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2014-05-22 21:50:49 +02:00
Thilo Graf
3f46a8fbc6 CComponentsForm: use variable instead function
Origin commit data
------------------
Branch: ni/coolstream
Commit: 421296932e
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-05-04 (Sun, 04 May 2014)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2014-05-22 21:50:49 +02:00
Thilo Graf
06a7414a31 CComponentsHeader: rework context button handling
CComponentsHeader uses now CComponentsIconForm, which is now derived
from CComponentsFrmChain. Some methods should be now simplified and
allow to handle some modifications easier.


Origin commit data
------------------
Branch: ni/coolstream
Commit: 6fe7b452c1
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-03-22 (Sat, 22 Mar 2014)



------------------
This commit was generated by Migit
2014-04-02 08:40:21 +02:00
Thilo Graf
ebd0111d37 CComponents: use neutrino debug mode for debug output
Origin commit data
------------------
Branch: ni/coolstream
Commit: 750691fbbf
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-03-08 (Sat, 08 Mar 2014)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2014-04-02 08:40:21 +02:00
Thilo Graf
7c70aaa6df 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
------------------
Branch: ni/coolstream
Commit: 23d7b62cf0
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-03-03 (Mon, 03 Mar 2014)



------------------
This commit was generated by Migit
2014-03-03 09:43:39 +01:00
Thilo Graf
b500fbec92 CComponentsForm, CSignalBar: rename offset vars
Origin commit data
------------------
Branch: ni/coolstream
Commit: c2c79060b8
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-02-06 (Thu, 06 Feb 2014)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2014-02-13 16:26:16 +01:00
Thilo Graf
36e40e2a67 CComponents: replace clear() with clearFbData(), remove cleanCCForm()
clear() replaces now clearCCItems() and cleanCCForm() is superfluous.


Origin commit data
------------------
Branch: ni/coolstream
Commit: ed7a2fd625
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-01-07 (Tue, 07 Jan 2014)



------------------
This commit was generated by Migit
2014-01-07 09:41:06 +01:00
Thilo Graf
5baba20b2f CComponentsForm: update license text
Origin commit data
------------------
Branch: ni/coolstream
Commit: d2991b49c8
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-01-06 (Mon, 06 Jan 2014)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2014-01-06 14:47:13 +01:00
Thilo Graf
540cecde0f 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
------------------
Branch: ni/coolstream
Commit: a0a4cc1355
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-01-06 (Mon, 06 Jan 2014)



------------------
This commit was generated by Migit
2014-01-06 14:47:12 +01:00
Thilo Graf
ffda81deb2 CComponentsForm: use passed by reference in addCCItem()
Function parameter 'cc_Items' should be passed by reference (performance).


Origin commit data
------------------
Branch: ni/coolstream
Commit: abe1de16b0
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-12-24 (Tue, 24 Dec 2013)



------------------
This commit was generated by Migit
2013-12-25 19:50:31 +01:00
Thilo Graf
1d8ac9a502 CComponents: add new class CComponentsFrmChain
CComponentsFrmChain provides a form for chained cc-items with
optional dynamic arrangement or direction parameters


Origin commit data
------------------
Branch: ni/coolstream
Commit: eb16ea3ac6
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-12-23 (Mon, 23 Dec 2013)



------------------
This commit was generated by Migit
2013-12-23 23:55:43 +01:00
Stefan Seyfried
4908089769 CComponents: fix compiler warnings with DEBUG_CC
Origin commit data
------------------
Branch: ni/coolstream
Commit: 9eddaedfdd
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2013-11-15 (Fri, 15 Nov 2013)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2013-12-18 21:10:17 +01:00
Thilo Graf
66242f7641 CComponents: replace __FUNCTION__ with __func__
__func__ is more suitable for portability


Origin commit data
------------------
Branch: ni/coolstream
Commit: 8442b39c28
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-12-15 (Sun, 15 Dec 2013)



------------------
This commit was generated by Migit
2013-12-18 15:13:19 +01:00
Thilo Graf
f8a4007a23 CComponentsForm/CComponentsHeader: use start pos x=1 instead 0
0 could make problems on fit items into container


Origin commit data
------------------
Branch: ni/coolstream
Commit: ad80daea96
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-12-04 (Wed, 04 Dec 2013)



------------------
This commit was generated by Migit
2013-12-10 09:30:52 +01:00
[CST] Focus
94a9bb4141 components: cleanup destructors - remove calls to functions,
already called inside base classes destructors


Origin commit data
------------------
Branch: ni/coolstream
Commit: dd7c7fc7ae
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2013-11-29 (Fri, 29 Nov 2013)



------------------
This commit was generated by Migit
2013-11-29 17:27:10 +04:00
[CST] Focus
a03b97d8a6 components: remove initVarBasic and initVarItem calls from derived classes
Origin commit data
------------------
Branch: ni/coolstream
Commit: 93a326e9eb
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2013-11-27 (Wed, 27 Nov 2013)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2013-11-29 17:27:10 +04:00
Thilo Graf
dd2d167dfe 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
------------------
Branch: ni/coolstream
Commit: 8ae491a994
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-11-08 (Fri, 08 Nov 2013)



------------------
This commit was generated by Migit
2013-11-11 00:19:48 +01:00
Thilo Graf
f47146c6ea revert e813d9f32b
Was bad idea to rename. Other Classes can also inherit this. See CMenuTarget


Origin commit data
------------------
Branch: ni/coolstream
Commit: 6dd1da0628
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-10-25 (Fri, 25 Oct 2013)



------------------
This commit was generated by Migit
2013-10-26 23:25:59 +02:00
Thilo Graf
e813d9f32b CComponents: rename hide() to hideCC()
There are too many name conflicts with hide-members in other classes.


Origin commit data
------------------
Branch: ni/coolstream
Commit: 6ee7fac1a5
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-10-24 (Thu, 24 Oct 2013)



------------------
This commit was generated by Migit
2013-10-24 21:39:04 +02:00
Thilo Graf
8288a4eb9a CComponentsItem: move function isAdded() to CComponentsItem class
Origin commit data
------------------
Branch: ni/coolstream
Commit: 3438b23f68
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-10-19 (Sat, 19 Oct 2013)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2013-10-19 01:25:23 +02:00
Thilo Graf
acf753f584 CComponentsForm: add predefine CC_CENTERED for auto positions
This saves explicit position calculations to arrange items centered


Origin commit data
------------------
Branch: ni/coolstream
Commit: 3ff09c88bd
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-10-11 (Fri, 11 Oct 2013)



------------------
This commit was generated by Migit
2013-10-16 11:54:05 +02:00
Thilo Graf
a4bebc144f 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
------------------
Branch: ni/coolstream
Commit: 4eb26988e9
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-09-08 (Sun, 08 Sep 2013)



------------------
This commit was generated by Migit
2013-09-19 08:24:38 +02:00
Thilo Graf
cc799a6055 CComponentsForm: fix fitting of item on the right and bottom edges
Frame of form was overpainted by item,
small whitespace fixes


Origin commit data
------------------
Branch: ni/coolstream
Commit: 5cb7d66993
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-08-28 (Wed, 28 Aug 2013)



------------------
This commit was generated by Migit
2013-08-30 22:14:35 +02:00
Thilo Graf
e2b20f649b CComponentsForm: add more debug details
Origin commit data
------------------
Branch: ni/coolstream
Commit: f3cb2bc41c
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-06-25 (Tue, 25 Jun 2013)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2013-06-25 11:36:04 +02:00
Thilo Graf
71884de80e CComponentsForm: fix possible segfault
Origin commit data
------------------
Branch: ni/coolstream
Commit: 7fd870a063
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-06-25 (Tue, 25 Jun 2013)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2013-06-25 11:36:04 +02:00
Thilo Graf
744b88e627 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
------------------
Branch: ni/coolstream
Commit: 75fe48043e
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-06-23 (Sun, 23 Jun 2013)



------------------
This commit was generated by Migit
2013-06-23 22:54:40 +02:00
Thilo Graf
d09c6a7c3c CComponentsForm: use addCCItem() instead push_back
push_back doesn't make all necessary steps to add an item


Origin commit data
------------------
Branch: ni/coolstream
Commit: 460c8bbff3
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-06-23 (Sun, 23 Jun 2013)



------------------
This commit was generated by Migit
2013-06-23 22:54:35 +02:00
Thilo Graf
ce93cfe5d5 CComponentsForm: add new member genIndex()
Origin commit data
------------------
Branch: ni/coolstream
Commit: a8721fa72a
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-06-23 (Sun, 23 Jun 2013)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2013-06-23 22:54:30 +02:00
Thilo Graf
8a6ae48f5e 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
------------------
Branch: ni/coolstream
Commit: c66c778326
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-06-23 (Sun, 23 Jun 2013)



------------------
This commit was generated by Migit
2013-06-23 20:34:19 +02:00
Thilo Graf
5820028bb9 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
------------------
Branch: ni/coolstream
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.


------------------
This commit was generated by Migit
2013-06-16 00:34:06 +02:00
Thilo Graf
811c8a052b CComponentsForm: add new member isAdded()
Origin commit data
------------------
Branch: ni/coolstream
Commit: f968abe6c5
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-06-12 (Wed, 12 Jun 2013)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2013-06-16 00:34:04 +02:00
Thilo Graf
ef95e68086 CComponentsForm: return id only if parameter is not 0
Origin commit data
------------------
Branch: ni/coolstream
Commit: 2af1c5d8b2
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-06-12 (Wed, 12 Jun 2013)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2013-06-16 00:34:04 +02:00
Thilo Graf
bac6e07b05 CComponentsForm: add missing item type
Origin commit data
------------------
Branch: ni/coolstream
Commit: d862de87eb
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-06-08 (Sat, 08 Jun 2013)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2013-06-16 00:34:03 +02:00
Thilo Graf
a436fb93ed 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
------------------
Branch: ni/coolstream
Commit: d3d0bff7ac
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-05-29 (Wed, 29 May 2013)



------------------
This commit was generated by Migit
2013-06-03 22:11:19 +02:00