Commit Graph

145 Commits

Author SHA1 Message Date
Thilo Graf
3224594375 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
------------------
Commit: 672757606c
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-06-26 (Thu, 26 Jun 2014)
2014-06-27 20:49:41 +02: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
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
Thilo Graf
1378fccb47 CComponents: add new class CComponentsSlider()
Provides a slider item


Origin commit data
------------------
Commit: 28e344d600
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-12-22 (Sun, 22 Dec 2013)
2013-12-23 23:55:43 +01:00
Thilo Graf
3e2fe115de CComponentsExtTextForm: add new class CComponentsExtTextForm
this provides a combining form, that contains a text object with label


Origin commit data
------------------
Commit: d8514b19ee
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-11-01 (Fri, 01 Nov 2013)
2013-11-11 00:19:46 +01:00
Thilo Graf
41d131eb32 CComponents: add unfied header file for general include of cc classes
Provides a unified header file, so it is not required to select a
certain header file.


Origin commit data
------------------
Commit: f7798affc6
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-10-24 (Thu, 24 Oct 2013)
2013-10-24 21:19:07 +02:00
Michael Liebmann
38f34886e6 CComponentsItem: Remove parameter from function isAdded()
Origin commit data
------------------
Commit: b3559e37f8
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2013-10-21 (Mon, 21 Oct 2013)
2013-10-21 09:32:15 +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
975673532a CComponents: remove member setCornerRadius(),
setCorner() replaces this function, 2nd parameter sets type


Origin commit data
------------------
Commit: 33ec56ad6f
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-09-15 (Sun, 15 Sep 2013)
2013-09-19 08:24:40 +02:00
Thilo Graf
a3ab2dee9e CComponents: add member setCorner()
This replaces setCornerType() and setCornerRadius() soon


Origin commit data
------------------
Commit: c6b9fe432b
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-09-15 (Sun, 15 Sep 2013)
2013-09-19 08:24:40 +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
2517fc0151 CComponents: add new member getFrameThickness()
Origin commit data
------------------
Commit: f14141d49c
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-06-12 (Wed, 12 Jun 2013)
2013-06-16 00:34:05 +02:00
Thilo Graf
70686b7e37 CComponents: add members setRealXPos() and setRealYPos()
Origin commit data
------------------
Commit: 17a2bd59d1
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-06-06 (Thu, 06 Jun 2013)
2013-06-16 00:34:03 +02:00
Thilo Graf
d8e4aa483c CTestMenu: add sample code for footer buttons, disable debug spam
Origin commit data
------------------
Commit: fc3829d695
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-06-03 (Mon, 03 Jun 2013)
2013-06-03 22:12:49 +02:00
Thilo Graf
afaedb70db CComponents: rename and move real position attributes
These attributes are better placed in the basic class.


Origin commit data
------------------
Commit: 3c5f4867fb
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-05-31 (Fri, 31 May 2013)
2013-06-03 22:12:47 +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
ceec88cca1 CComponentsItem: typo fixes
Origin commit data
------------------
Commit: 1e0df8842e
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-05-28 (Tue, 28 May 2013)
2013-05-28 09:44:10 +02:00
Thilo Graf
7b5fd739be CComponentsItem: corrected comment for arg do_save_bg
Origin commit data
------------------
Commit: 6f480c7773
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-05-28 (Tue, 28 May 2013)
2013-05-28 09:21:10 +02:00
Thilo Graf
a9d856c892 CComponentsItem: add more comments
Origin commit data
------------------
Commit: cfc0c72daa
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-05-28 (Tue, 28 May 2013)
2013-05-28 09:10:25 +02:00
Thilo Graf
941295e048 CComponents: split some header files
CComponentsInfoBox
CComponentsShapeCircle/Square
CComponentsDetailLine
CComponentsPIP
CComponentsText/CComponentsLabel
CComponentsPicture


Origin commit data
------------------
Commit: d39eaa22fc
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-05-26 (Sun, 26 May 2013)
2013-05-27 09:30:50 +02:00
Thilo Graf
aced8dd484 CComponents: add comments for documentations
Comments contains doxygen tags.
for results see also: http://www.tuxbox.org/neutrinohd/doc/html/
Help welcome!


Origin commit data
------------------
Commit: 47691515d1
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-05-25 (Sat, 25 May 2013)
2013-05-27 09:22:08 +02:00
Michael Liebmann
60b0c9dfd6 CComponents::paintFbItems: Fix paint frame
- Remove function CComponents::allowPaint()


Origin commit data
------------------
Commit: 612ef514a3
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2013-05-09 (Thu, 09 May 2013)

Origin message was:
------------------
* CComponents::paintFbItems: Fix paint frame

- Remove function CComponents::allowPaint()
2013-05-10 11:32:12 +01:00
Thilo Graf
109a0ba9ac CComponents: rework kill()
There was some problems with restore, hide, clean and save background of item parts,
seen in detailsline. kill() worked not really clean.
kill() works now as virtual member and uses paintBackgroundBoxRel().

In consequence of which:
-unnecessary members in subclasses removed.
-add some comments


Origin commit data
------------------
Commit: a4c3e08f77
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-05-03 (Fri, 03 May 2013)
2013-05-03 19:51:57 +02:00
Thilo Graf
39683163d1 CComponentsPicture: use members as virtual members
Makes members ready for use in subclasses


Origin commit data
------------------
Commit: e84ac6f3a1
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-04-27 (Sat, 27 Apr 2013)
2013-04-28 16:48:10 +02:00
Thilo Graf
21002c268b CComponents: add members setPos() and getSize()
Origin commit data
------------------
Commit: 0fe69feb96
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-04-26 (Fri, 26 Apr 2013)
2013-04-28 16:48:09 +02:00
Thilo Graf
5e92bd4cb6 CComponentsText: paint text only on text change, add members to handle this
It can be usefull to hold unchanged text to avoid unnecessary text
paintings. It's also also possible to force paint of text,
use forceTextPaint(). Use textChanged(), to evaluate current text changes.


Origin commit data
------------------
Commit: dfc6e2069e
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-04-26 (Fri, 26 Apr 2013)
2013-04-27 22:20:10 +02:00
Michael Liebmann
53286b7a4a CComponentsLabel: Use 'std::string' instead of 'const char*' for ct_text
- Supplement to commit 4c87ca5...


Origin commit data
------------------
Commit: eafcbf6a86
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2013-04-25 (Thu, 25 Apr 2013)

Origin message was:
------------------
* CComponentsLabel: Use 'std::string' instead of 'const char*' for ct_text

- Supplement to commit 4c87ca5...
2013-04-25 09:34:53 +01:00
Thilo Graf
be86748e20 CComponentsText: add bool as return value for setTextFromFile()
Origin commit data
------------------
Commit: cc63773920
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-04-24 (Wed, 24 Apr 2013)
2013-04-24 19:56:00 +02:00
Thilo Graf
00df520734 CComponentsText: use member function 'ToString' as static
Origin commit data
------------------
Commit: ca9d7add48
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-04-22 (Mon, 22 Apr 2013)
2013-04-24 19:48:39 +02:00
Thilo Graf
f25a1ef797 CComponentsText: add member to use file as text source
Origin commit data
------------------
Commit: cdfc544809
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-04-22 (Mon, 22 Apr 2013)
2013-04-24 19:48:39 +02:00
Michael Liebmann
4c87ca5fea CComponentsText: Use 'std::string' instead of 'const char*' for ct_text
Origin commit data
------------------
Commit: 3a19edda45
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2013-04-20 (Sat, 20 Apr 2013)

Origin message was:
------------------
* CComponentsText: Use 'std::string' instead of 'const char*' for ct_text
2013-04-22 15:41:03 +01:00
Thilo Graf
7704f0de8c CComonents: disable debug spam
Origin commit data
------------------
Commit: 8813dccc7e
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-04-16 (Tue, 16 Apr 2013)
2013-04-16 11:40:01 +02:00
Thilo Graf
a34b353f06 CComponents: add vars to modifie frames in selected mode
Origin commit data
------------------
Commit: 894d229b09
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-04-16 (Tue, 16 Apr 2013)
2013-04-16 08:32:42 +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
4187dcbf8e CComponents: add own header file for unused experimental classes
Origin commit data
------------------
Commit: 4317b0b4fb
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
9bec663650 CComonents: use allowPaint() as private, parameter as by rev
not used in sub classes


Origin commit data
------------------
Commit: d7c35b07e4
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-04-14 (Sun, 14 Apr 2013)
2013-04-16 08:26:56 +02:00
Thilo Graf
2e343b322e CComponentsItem: add properties for stats enabled/selected
Origin commit data
------------------
Commit: 4f623b822f
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-04-13 (Sat, 13 Apr 2013)
2013-04-16 08:26:56 +02:00
Thilo Graf
8a97c383f9 CComponentsItem: add members to get real item position
Origin commit data
------------------
Commit: 9420edd932
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-04-12 (Fri, 12 Apr 2013)
2013-04-16 08:26:55 +02:00
Thilo Graf
be1c95266b CComponentsText: add overloaded member setText() for int vars
Origin commit data
------------------
Commit: fb64fb5d35
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-04-10 (Wed, 10 Apr 2013)
2013-04-16 08:26:55 +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
Thilo Graf
dbc9c1e08f CComponentsText: add helper to convert integer to string
Origin commit data
------------------
Commit: 546b04b846
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-04-10 (Wed, 10 Apr 2013)
2013-04-16 08:26:54 +02:00
Jacek Jendrzej
ba1e24ee31 CComponents: don't paint the same box with different colors as background
Origin commit data
------------------
Commit: d18217effb
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2013-04-04 (Thu, 04 Apr 2013)
2013-04-04 12:19:31 +02:00
Thilo Graf
6004ccf321 CComponentsText: add member to control background paint on textbox objects
Origin commit data
------------------
Commit: 3a4543b8d2
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-04-04 (Thu, 04 Apr 2013)
2013-04-04 09:56:53 +02:00
Thilo Graf
0fc70f3bb6 CComponents: disable debug spam
Origin commit data
------------------
Commit: bdbea07e71
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-04-01 (Mon, 01 Apr 2013)
2013-04-04 09:56:52 +02:00
Thilo Graf
03b22f2d23 CComponents: add progressbar class to cc-items
CProgressbar moved into components sub directory and adapt includes.
Progressbar objects are now usable as cc-item

TODO:
-some color and size corrections
-found some dub codes for sig and snr-bars, needs rework


Origin commit data
------------------
Commit: 860be9a412
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-04-01 (Mon, 01 Apr 2013)
2013-04-02 09:31:05 +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
9376d64379 CComponentsLabel: add missing item type
Origin commit data
------------------
Commit: c99e23289b
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-03-24 (Sun, 24 Mar 2013)
2013-03-24 21:14:11 +01:00