Commit Graph

96 Commits

Author SHA1 Message Date
Thilo Graf
a2123237b8 CComponentsLabel: add missing item type
Origin commit data
------------------
Branch: ni/coolstream
Commit: c99e23289b
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-03-24 (Sun, 24 Mar 2013)


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

------------------
This commit was generated by Migit
2013-03-24 21:14:11 +01:00
Thilo Graf
46af4825e3 CComponentsWindow/Header: fix add of header buttons
setHeaderButtons was without effect


Origin commit data
------------------
Branch: ni/coolstream
Commit: cc31a41f43
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-03-22 (Fri, 22 Mar 2013)



------------------
This commit was generated by Migit
2013-03-24 21:14:10 +01:00
Thilo Graf
dc2b54ca27 CComponentsPIP: paint alternate picture if no tv mode
Use setPicture() to change image on runtime.


Origin commit data
------------------
Branch: ni/coolstream
Commit: 8196cf7671
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-03-22 (Fri, 22 Mar 2013)

Origin message was:
------------------
CComponentsPIP: paint alternate picture if no tv mode

Use setPicture() to change image on runtime.


------------------
This commit was generated by Migit
2013-03-24 21:14:10 +01:00
Thilo Graf
e4de9cdbdb CComponentsText: rename getCCItemTextBoxInst -> getCTextBoxObject
This name should be more plausible


Origin commit data
------------------
Branch: ni/coolstream
Commit: 6b68259ac6
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-03-21 (Thu, 21 Mar 2013)



------------------
This commit was generated by Migit
2013-03-21 11:37:20 +01:00
Thilo Graf
6d6cf7e177 fix license text, sorry, was a c&p error
Origin commit data
------------------
Branch: ni/coolstream
Commit: 0dc4686874
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-03-20 (Wed, 20 Mar 2013)


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

------------------
This commit was generated by Migit
2013-03-21 11:37:00 +01:00
Michael Liebmann
21a5dba4fc CImageInfo: Scroll license text if text box too small
Origin commit data
------------------
Branch: ni/coolstream
Commit: 801a15df7c
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2013-03-20 (Wed, 20 Mar 2013)

Origin message was:
------------------
* CImageInfo: Scroll license text if text box too small

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

------------------
This commit was generated by Migit
2013-03-21 06:56:24 +01:00
Thilo Graf
dd0a8e40a6 CComponents: fix build, fb_pixel_t and neutrino_locale_t was missed
Origin commit data
------------------
Branch: ni/coolstream
Commit: ab00522900
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-03-19 (Tue, 19 Mar 2013)


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

------------------
This commit was generated by Migit
2013-03-19 08:12:35 +01:00
Thilo Graf
32668a3643 CComponentsInfoBox: add NULL as default parameter for info_text
It's better to handel with NULL.

make clearCCItems() public and virtual so it can be used in window objects


Origin commit data
------------------
Branch: ni/coolstream
Commit: 259b58c829
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-03-18 (Mon, 18 Mar 2013)



------------------
This commit was generated by Migit
2013-03-19 08:11:00 +01:00
Thilo Graf
f7c8ecb067 CComponentsLabel: add new sub class CComponentsLabel
Origin commit data
------------------
Branch: ni/coolstream
Commit: 2f5404d2fa
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-03-17 (Sun, 17 Mar 2013)


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

------------------
This commit was generated by Migit
2013-03-18 12:04:58 +01:00
Thilo Graf
913634e7f2 CComponentsHeader/Window: add possibility to return header height
Origin commit data
------------------
Branch: ni/coolstream
Commit: ca42d9ba74
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-03-15 (Fri, 15 Mar 2013)


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

------------------
This commit was generated by Migit
2013-03-18 12:04:47 +01:00
Thilo Graf
2bdccc0643 CComponentsWindow: add constructors with parameters for caption and icon
Origin commit data
------------------
Branch: ni/coolstream
Commit: d87d0754e0
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-03-14 (Thu, 14 Mar 2013)


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

------------------
This commit was generated by Migit
2013-03-18 12:04:35 +01:00
Thilo Graf
f918ed8e2a 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
------------------
Branch: ni/coolstream
Commit: 4a931af6ef
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-03-13 (Wed, 13 Mar 2013)



------------------
This commit was generated by Migit
2013-03-18 12:04:25 +01:00
Thilo Graf
bfda4b1d37 CComponentsHeader/Icon: use inherited destructor
Inherited destructor contains identic code.


Origin commit data
------------------
Branch: ni/coolstream
Commit: da356d94da
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-03-10 (Sun, 10 Mar 2013)



------------------
This commit was generated by Migit
2013-03-18 12:04:21 +01:00
Thilo Graf
db094c3a10 CComponentsWindow: remove refresh()
initCCWItems() does the same, but is private


Origin commit data
------------------
Branch: ni/coolstream
Commit: de330ac39c
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-03-09 (Sat, 09 Mar 2013)



------------------
This commit was generated by Migit
2013-03-18 12:04:16 +01:00
Thilo Graf
5e27da7def 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
------------------
Branch: ni/coolstream
Commit: 3ed9af87ad
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-02-26 (Tue, 26 Feb 2013)



------------------
This commit was generated by Migit
2013-03-06 11:28:18 +01:00
Thilo Graf
b35d23be61 CComponents: move components.cpp to cc_base.cpp, move types to own header
Origin commit data
------------------
Branch: ni/coolstream
Commit: 10f429ee0f
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-02-23 (Sat, 23 Feb 2013)


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

------------------
This commit was generated by Migit
2013-03-06 11:28:18 +01:00
Thilo Graf
910863ba17 CComponents: fix some includes
Included header files don't fit after move of components.


Origin commit data
------------------
Branch: ni/coolstream
Commit: 44346c6417
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-02-20 (Wed, 20 Feb 2013)



------------------
This commit was generated by Migit
2013-03-06 11:28:17 +01:00
Thilo Graf
f9d8a289d5 CComponents: add some new variables and parameters and modifie debug output
- add var for object index
 can be usefull for identifications of objects for focus operations soon

- add default value for screen size (30%) to CComponentsPIP constructor
 most size we mostly use is 30% of size

- add setters for screen_w and screen_h
 also this can be usefull t adapt screen sizes e.g. during
 runtime operations


Origin commit data
------------------
Branch: ni/coolstream
Commit: 399eb696d6
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-02-17 (Sun, 17 Feb 2013)

Origin message was:
------------------
CComponents: add some new variables and parameters and modifie debug output

- add var for object index
 can be usefull for identifications of objects for focus operations soon

- add default value for screen size (30%) to CComponentsPIP constructor
 most size we mostly use is 30% of size

- add setters for screen_w and screen_h
 also this can be usefull t adapt screen sizes e.g. during
 runtime operations


------------------
This commit was generated by Migit
2013-03-06 11:28:17 +01:00
Thilo Graf
9d1b8eed1f CComponents: add more debug output and fix typo in enum CC_ITEMTYPES
Origin commit data
------------------
Branch: ni/coolstream
Commit: 2940c4e5f6
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-02-17 (Sun, 17 Feb 2013)


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

------------------
This commit was generated by Migit
2013-03-06 11:28:16 +01:00
Thilo Graf
afaacd21e7 CComponentsItem: add members getItemType(), cc_item_type
Small helper for detection of item types.
This could be useful, if it is necessary, to track these at runtime or
debugging, because it's not really detectable, which items just be used.
e.g forms could contain very much items, but many of these items
are inherited from CComponentsItem and an assignment to a certain subclass.


Origin commit data
------------------
Branch: ni/coolstream
Commit: 6175fd989d
Author: Thilo Graf <dbt@novatux.de>
Date: 2012-12-04 (Tue, 04 Dec 2012)



------------------
This commit was generated by Migit
2013-03-06 11:28:16 +01:00
Thilo Graf
31ea6e09dc CComponentsHeader: add member 'setHeaderButtons()'
Gives possibility to set default button types,

possible parameter types are:
CC_BTN_HELP, CC_BTN_INFO, CC_BTN_MENU, CC_BTN_EXIT


Origin commit data
------------------
Branch: ni/coolstream
Commit: 9605d7438f
Author: Thilo Graf <dbt@novatux.de>
Date: 2012-11-30 (Fri, 30 Nov 2012)



------------------
This commit was generated by Migit
2013-03-06 11:28:16 +01:00
Thilo Graf
37e41b539e CComponentsWindow: add sub class CComponentsWindow
Origin commit data
------------------
Branch: ni/coolstream
Commit: fa9ffdd46e
Author: Thilo Graf <dbt@novatux.de>
Date: 2012-11-30 (Fri, 30 Nov 2012)


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

------------------
This commit was generated by Migit
2013-03-06 11:28:16 +01:00
Thilo Graf
5b3ea563b0 CComponentsForm: add virtual members to replace cc-item
Origin commit data
------------------
Branch: ni/coolstream
Commit: b9dd3e21bf
Author: Thilo Graf <dbt@novatux.de>
Date: 2012-11-26 (Mon, 26 Nov 2012)


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

------------------
This commit was generated by Migit
2013-03-06 11:28:15 +01:00
Thilo Graf
c9664408d7 CComponentsHeader: add enums for header items
Origin commit data
------------------
Branch: ni/coolstream
Commit: 79dd6456b0
Author: Thilo Graf <dbt@novatux.de>
Date: 2012-11-25 (Sun, 25 Nov 2012)


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

------------------
This commit was generated by Migit
2013-03-06 11:28:14 +01:00
Thilo Graf
1366a261dd CComponentsHeader: add member initCCButtonFormSize()
This moves caclulation from initCCHeaderButtons() to its own
member.


Origin commit data
------------------
Branch: ni/coolstream
Commit: 41165d7cb2
Author: Thilo Graf <dbt@novatux.de>
Date: 2012-11-24 (Sat, 24 Nov 2012)



------------------
This commit was generated by Migit
2013-03-06 11:28:14 +01:00
Thilo Graf
63a7996e10 CComponentsHeader: move int of default buttons into its own member
Origin commit data
------------------
Branch: ni/coolstream
Commit: 62f44d7a8c
Author: Thilo Graf <dbt@novatux.de>
Date: 2012-11-24 (Sat, 24 Nov 2012)


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

------------------
This commit was generated by Migit
2013-03-06 11:28:13 +01:00
Thilo Graf
f75b2b68af CComponentsHeader: fix button display
Calculation of button offset was broken.


Origin commit data
------------------
Branch: ni/coolstream
Commit: 4fb3cde45f
Author: Thilo Graf <dbt@novatux.de>
Date: 2012-11-24 (Sat, 24 Nov 2012)



------------------
This commit was generated by Migit
2013-03-06 11:28:13 +01:00
Thilo Graf
eba57997fb CComponentsHeader: add parameter buttons onto constructors
This adds default buttons to header


Origin commit data
------------------
Branch: ni/coolstream
Commit: 3644abec66
Author: Thilo Graf <dbt@novatux.de>
Date: 2012-11-21 (Wed, 21 Nov 2012)



------------------
This commit was generated by Migit
2013-03-06 11:28:13 +01:00
Thilo Graf
6835dc611c CComponentsHeader: move init members into its own member
Origin commit data
------------------
Branch: ni/coolstream
Commit: 562b091e66
Author: Thilo Graf <dbt@novatux.de>
Date: 2012-11-19 (Mon, 19 Nov 2012)


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

------------------
This commit was generated by Migit
2013-03-06 11:28:12 +01:00
Thilo Graf
a7ba423845 CComponentsForm: add virtual members to manipulate ccitems
Origin commit data
------------------
Branch: ni/coolstream
Commit: 949867e4ac
Author: Thilo Graf <dbt@novatux.de>
Date: 2012-11-19 (Mon, 19 Nov 2012)


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

------------------
This commit was generated by Migit
2013-03-06 11:28:12 +01:00
Thilo Graf
9908a6f233 CComponentsHeader: add header buttons to header form
Use addHeaderButton() to add any button icon ont header form.
The buttons have a right alignment, this means, the first button
is on the right boarder of header.
For existing instances it's recommended to remove old button icons
before add new buttons, otherwise icons will be append.

See also sample code in CTestMenu.


Origin commit data
------------------
Branch: ni/coolstream
Commit: b330d78ff2
Author: Thilo Graf <dbt@novatux.de>
Date: 2012-11-18 (Sun, 18 Nov 2012)



------------------
This commit was generated by Migit
2013-03-06 11:28:12 +01:00
Thilo Graf
b7d160cad3 CComponents: add sub class CComponentsIconForm based upon CComponentsForm
Collects only icons.You can add icons step by step or
with a vector and paint the form at once.
Width and height are dynamic calculated if parameters
width or height are smaller then summary of lenght of all added icons.

It's also possible to manipulate the icon array with members:
- insertIcon()
- removeIcon()
- removeAllIcons()

TODO: support for resizable images


Origin commit data
------------------
Branch: ni/coolstream
Commit: 84fe7cf134
Author: Thilo Graf <dbt@novatux.de>
Date: 2012-11-12 (Mon, 12 Nov 2012)



------------------
This commit was generated by Migit
2013-03-06 11:28:12 +01:00
Thilo Graf
e445d158fb CComponentsHeader: add private member variable cch_text_x
Origin commit data
------------------
Branch: ni/coolstream
Commit: 6ee87b95ec
Author: Thilo Graf <dbt@novatux.de>
Date: 2012-11-10 (Sat, 10 Nov 2012)


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

------------------
This commit was generated by Migit
2013-03-06 11:28:11 +01:00
Thilo Graf
fb9080b019 CComponentsForm: remove constructor
Call of overloaded 'CComponentsForm(int, int, int, int)' is ambiguous.


Origin commit data
------------------
Branch: ni/coolstream
Commit: 0dbddbc483
Author: Thilo Graf <dbt@novatux.de>
Date: 2012-11-10 (Sat, 10 Nov 2012)



------------------
This commit was generated by Migit
2013-03-06 11:28:11 +01:00
Thilo Graf
0640b4d592 CComponentsForm: paintCCItems() is needed as public member
Origin commit data
------------------
Branch: ni/coolstream
Commit: dd91340a37
Author: Thilo Graf <dbt@novatux.de>
Date: 2012-11-10 (Sat, 10 Nov 2012)


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

------------------
This commit was generated by Migit
2013-03-06 11:28:11 +01:00
Thilo Graf
b97881b150 CComponentsPicture: rework parameter handling
Not shure if pic_max_h/w could still make problems in while usage
of CComponentsPicture, we will see...


Origin commit data
------------------
Branch: ni/coolstream
Commit: a5adaf854a
Author: Thilo Graf <dbt@novatux.de>
Date: 2012-11-10 (Sat, 10 Nov 2012)



------------------
This commit was generated by Migit
2013-03-06 11:28:11 +01:00
Thilo Graf
b1a92d1e8c CComponentsHeader: init code for icon and text outsource
slim down of paint()


Origin commit data
------------------
Branch: ni/coolstream
Commit: 8061b2938f
Author: Thilo Graf <dbt@novatux.de>
Date: 2012-11-09 (Fri, 09 Nov 2012)



------------------
This commit was generated by Migit
2013-03-06 11:28:11 +01:00
Thilo Graf
4ee32b90c1 CComponents: add option paint_bg and apply in CComponentsHeader
Origin commit data
------------------
Branch: ni/coolstream
Commit: 75fbc08269
Author: Thilo Graf <dbt@novatux.de>
Date: 2012-11-09 (Fri, 09 Nov 2012)


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

------------------
This commit was generated by Migit
2013-03-06 11:28:10 +01:00
Thilo Graf
849c0ae13e CCompnents: rename hideContainer into hideCCItem()
Origin commit data
------------------
Branch: ni/coolstream
Commit: d538e807d8
Author: Thilo Graf <dbt@novatux.de>
Date: 2012-11-09 (Fri, 09 Nov 2012)


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

------------------
This commit was generated by Migit
2013-03-06 11:28:10 +01:00
Thilo Graf
916fae83a8 CComponentsHeader: optimize allocations an deallocations for cc-items
Bequeath of destructor from CComponentsForm into CCcomponentsHeader.
clearCCItems() does already manage deallocations for cc-items,
so some 'delete" calls are unnecessary.
There was also the danger to overfill the cc-item vector with new added
objects, if it is not have been cleaned previously in existing instances.


Origin commit data
------------------
Branch: ni/coolstream
Commit: 1934ceef69
Author: Thilo Graf <dbt@novatux.de>
Date: 2012-11-07 (Wed, 07 Nov 2012)



------------------
This commit was generated by Migit
2013-03-06 11:28:10 +01:00
Thilo Graf
dd19f97b42 CComponents: add new sub class CComponentsHeader()
This should replace CComponentsTitleBar comming soon.

TODO:
- add additional icons,
- fix frame painting with other corner types , but this is an issue in
 CFramebuffer. paintBoxFrame provides parameters for corner radius,
 but no corner types.


Origin commit data
------------------
Branch: ni/coolstream
Commit: d14b9903f9
Author: Thilo Graf <dbt@novatux.de>
Date: 2012-11-04 (Sun, 04 Nov 2012)

Origin message was:
------------------
CComponents: add new sub class CComponentsHeader()

This should replace CComponentsTitleBar comming soon.

TODO:
- add additional icons,
- fix frame painting with other corner types , but this is an issue in
 CFramebuffer. paintBoxFrame provides parameters for corner radius,
 but no corner types.


------------------
This commit was generated by Migit
2013-03-06 11:28:09 +01:00
Thilo Graf
ab6f2eea7d CComponentsForm: members become virtual
Members of CComponentsForm will be used in sub classes.


Origin commit data
------------------
Branch: ni/coolstream
Commit: 9601760137
Author: Thilo Graf <dbt@novatux.de>
Date: 2012-11-02 (Fri, 02 Nov 2012)



------------------
This commit was generated by Migit
2013-03-06 11:28:09 +01:00
Thilo Graf
658bf4cdda CComponents: add new methodes to create forms
Create forms with default constructor and now you can add
cc-items into form with new member addCCItem().

The x/y values are valid to inside of form dimensions itself not inside of screen.
Addable cc-items are all CComponentItem objects and their inheritances
including CComponentsForm itself. So are even nestings possible.

Some changes on other cc-item classes were necessary.
For example, CComponentsPicture or CComponentsText and it's still
much to do.


Origin commit data
------------------
Branch: ni/coolstream
Commit: cda02273ea
Author: Thilo Graf <dbt@novatux.de>
Date: 2012-11-01 (Thu, 01 Nov 2012)



------------------
This commit was generated by Migit
2013-03-06 11:28:08 +01:00
Thilo Graf
4804b70573 CComponentsInfoBox: paint text with innstance of CComponentsText
This should be a stable state for painting info boxes in gui parts.
This fix also an automaticaly correction of font size changes while
runtime.


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



------------------
This commit was generated by Migit
2013-03-06 11:28:08 +01:00
Thilo Graf
436667a392 CComponentsText: fix paint text into Textbox
Origin commit data
------------------
Branch: ni/coolstream
Commit: 80ffab8999
Author: Thilo Graf <dbt@novatux.de>
Date: 2012-10-26 (Fri, 26 Oct 2012)


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

------------------
This commit was generated by Migit
2013-03-06 11:28:07 +01:00
Thilo Graf
bbf6bb8156 CComponentsInfoBox: inherit setText
Origin commit data
------------------
Branch: ni/coolstream
Commit: ed5aac229b
Author: Thilo Graf <dbt@novatux.de>
Date: 2012-10-24 (Wed, 24 Oct 2012)


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

------------------
This commit was generated by Migit
2013-03-06 11:28:07 +01:00
Thilo Graf
64a168444d CComponentsInfoBox: inherit setTextFont and setTextMode
Origin commit data
------------------
Branch: ni/coolstream
Commit: ac94ad0d3b
Author: Thilo Graf <dbt@novatux.de>
Date: 2012-10-24 (Wed, 24 Oct 2012)


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

------------------
This commit was generated by Migit
2013-03-06 11:28:07 +01:00
Thilo Graf
9fc52e1a2b CComponentsInfoBox: inherit setTextColor
Origin commit data
------------------
Branch: ni/coolstream
Commit: c4ef839ad4
Author: Thilo Graf <dbt@novatux.de>
Date: 2012-10-24 (Wed, 24 Oct 2012)


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

------------------
This commit was generated by Migit
2013-03-06 11:28:07 +01:00
Thilo Graf
d8738e130b CComponentsText: add member clearCCText()
Origin commit data
------------------
Branch: ni/coolstream
Commit: 5c5805d0ea
Author: Thilo Graf <dbt@novatux.de>
Date: 2012-10-24 (Wed, 24 Oct 2012)


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

------------------
This commit was generated by Migit
2013-03-06 11:28:07 +01:00
Thilo Graf
f21355566b CComponentsText: fix possible segfault
segfault happens on left empty text

CComponentsInfoBox: inherit ct_textbox

CComponentsInfoBox: inherit ct_box

CComponentsInfoBox: inherit ct_box


Origin commit data
------------------
Branch: ni/coolstream
Commit: d970c5303f
Author: Thilo Graf <dbt@novatux.de>
Date: 2012-10-23 (Tue, 23 Oct 2012)



------------------
This commit was generated by Migit
2013-03-06 11:28:07 +01:00