Commit Graph

173 Commits

Author SHA1 Message Date
Thilo Graf
5612f13d94 CComponentsText: rename getCCItemTextBoxInst -> getCTextBoxObject
This name should be more plausible


Origin commit data
------------------
Commit: 6b68259ac6
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-03-21 (Thu, 21 Mar 2013)
2013-03-21 11:37:20 +01: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
Michael Liebmann
45f96526b9 CImageInfo: Scroll license text if text box too small
Origin commit data
------------------
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
2013-03-21 06:56:24 +01:00
Thilo Graf
91b0577c45 CComponents: fix build, fb_pixel_t and neutrino_locale_t was missed
Origin commit data
------------------
Commit: ab00522900
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-03-19 (Tue, 19 Mar 2013)
2013-03-19 08:12:35 +01:00
Thilo Graf
dd28162c61 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
------------------
Commit: 259b58c829
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-03-18 (Mon, 18 Mar 2013)
2013-03-19 08:11:00 +01:00
Thilo Graf
efbc9fd655 CComponentsInfoBox: delete clean textbox object before create new object
Ensures a clean environment for changed properties of a textbox in infobox.


Origin commit data
------------------
Commit: 0fa2bbc7c9
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-03-18 (Mon, 18 Mar 2013)
2013-03-19 08:10:49 +01:00
Thilo Graf
a4460b8623 CComponentsLabel: add new sub class CComponentsLabel
Origin commit data
------------------
Commit: 2f5404d2fa
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-03-17 (Sun, 17 Mar 2013)
2013-03-18 12:04:58 +01:00
Thilo Graf
4448ce48bc CComponentsHeader: remove unused lines
Origin commit data
------------------
Commit: 824bc8913e
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-03-15 (Fri, 15 Mar 2013)
2013-03-18 12:04:54 +01:00
Thilo Graf
c3ec552f46 CComponentsText: move overloaded setText() from header into main file
Origin commit data
------------------
Commit: eee2cd0d41
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-03-15 (Fri, 15 Mar 2013)
2013-03-18 12:04:50 +01:00
Thilo Graf
d2e2248b03 CComponentsHeader/Window: add possibility to return header height
Origin commit data
------------------
Commit: ca42d9ba74
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-03-15 (Fri, 15 Mar 2013)
2013-03-18 12:04:47 +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
bb1b5bc188 CComponentsWindow: add constructors with parameters for caption and icon
Origin commit data
------------------
Commit: d87d0754e0
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-03-14 (Thu, 14 Mar 2013)
2013-03-18 12:04:35 +01:00
Thilo Graf
6c4f390215 CComponentsHeader: init text always before paint header
Origin commit data
------------------
Commit: 544e3bb8ef
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-03-14 (Thu, 14 Mar 2013)
2013-03-18 12:04:29 +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
078e3414cc CComponentsWindow: remove refresh()
initCCWItems() does the same, but is private


Origin commit data
------------------
Commit: de330ac39c
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-03-09 (Sat, 09 Mar 2013)
2013-03-18 12:04:16 +01:00
Thilo Graf
4d6f33296a CComponentsWindow: using current screen settings for default dimensions
Origin commit data
------------------
Commit: 74b2dde248
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-03-09 (Sat, 09 Mar 2013)
2013-03-18 12:04:13 +01:00
Thilo Graf
e7b6c2c01b CComponentsPicture: fix build
Build can be broken with other build environments


Origin commit data
------------------
Commit: 061700a5f8
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-03-08 (Fri, 08 Mar 2013)
2013-03-08 08:44:05 +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
Thilo Graf
3e41a76a1d CComponents: move components.cpp to cc_base.cpp, move types to own header
Origin commit data
------------------
Commit: 10f429ee0f
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-02-23 (Sat, 23 Feb 2013)
2013-03-06 11:28:18 +01:00
Thilo Graf
94b2477fa4 CComponents: fix some includes
Included header files don't fit after move of components.


Origin commit data
------------------
Commit: 44346c6417
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-02-20 (Wed, 20 Feb 2013)
2013-03-06 11:28:17 +01:00
Thilo Graf
45a9f295e7 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
------------------
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
2013-03-06 11:28:17 +01:00
Thilo Graf
9dc65b1879 CComponents: add more debug output and fix typo in enum CC_ITEMTYPES
Origin commit data
------------------
Commit: 2940c4e5f6
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-02-17 (Sun, 17 Feb 2013)
2013-03-06 11:28:16 +01:00
Thilo Graf
7b6db46cbc 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
------------------
Commit: 6175fd989d
Author: Thilo Graf <dbt@novatux.de>
Date: 2012-12-04 (Tue, 04 Dec 2012)
2013-03-06 11:28:16 +01:00
Thilo Graf
b0d34073ee 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
------------------
Commit: 9605d7438f
Author: Thilo Graf <dbt@novatux.de>
Date: 2012-11-30 (Fri, 30 Nov 2012)
2013-03-06 11:28:16 +01:00
Thilo Graf
f4bfcc6657 CComponentsWindow: add sub class CComponentsWindow
Origin commit data
------------------
Commit: fa9ffdd46e
Author: Thilo Graf <dbt@novatux.de>
Date: 2012-11-30 (Fri, 30 Nov 2012)
2013-03-06 11:28:16 +01:00
Thilo Graf
5545ec8e35 CComponents: change of debug marking for better recognition during logging
Origin commit data
------------------
Commit: 6cdb948dd4
Author: Thilo Graf <dbt@novatux.de>
Date: 2012-11-26 (Mon, 26 Nov 2012)
2013-03-06 11:28:15 +01:00
Thilo Graf
0fa3c86ab9 CComponentsForm: add virtual members to replace cc-item
Origin commit data
------------------
Commit: b9dd3e21bf
Author: Thilo Graf <dbt@novatux.de>
Date: 2012-11-26 (Mon, 26 Nov 2012)
2013-03-06 11:28:15 +01:00
Thilo Graf
8acb33dcf0 CComponentsHeader: reset icon width, if no icon is defined
Origin commit data
------------------
Commit: a9caa07318
Author: Thilo Graf <dbt@novatux.de>
Date: 2012-11-25 (Sun, 25 Nov 2012)
2013-03-06 11:28:15 +01:00
Thilo Graf
449e3e3055 CComponentsPicture: add missing define of dimensions after init
Origin commit data
------------------
Commit: 764dbcd429
Author: Thilo Graf <dbt@novatux.de>
Date: 2012-11-25 (Sun, 25 Nov 2012)
2013-03-06 11:28:15 +01:00
Thilo Graf
981ea7a87f CComponentsHeader: fix broken addHeaderButton() and removeHeaderButtons()
Simple push_back() has no effect, buttons must be initialized and destroy
of cch_btn_obj is an easy way for clean up.


Origin commit data
------------------
Commit: 9150088088
Author: Thilo Graf <dbt@novatux.de>
Date: 2012-11-25 (Sun, 25 Nov 2012)
2013-03-06 11:28:14 +01:00
Thilo Graf
4ea3ce9297 CComponentsHeader: add enums for header items
Origin commit data
------------------
Commit: 79dd6456b0
Author: Thilo Graf <dbt@novatux.de>
Date: 2012-11-25 (Sun, 25 Nov 2012)
2013-03-06 11:28:14 +01:00
Thilo Graf
012fee53f9 CComponentsHeader: move init of items ito cobstructors
Inherited methodes like insertCCItem, removeCCItem ... don't work
nice, if cc-items are ititialized too late. If we init in constructors,
we can manipulate header items, otherwise not.
clearCCItems() is to find in the destructor, and should be called with
delete.
Handle with care!


Origin commit data
------------------
Commit: c039b4ae5c
Author: Thilo Graf <dbt@novatux.de>
Date: 2012-11-25 (Sun, 25 Nov 2012)
2013-03-06 11:28:14 +01:00
Thilo Graf
450d7dd230 CComponentsForm: prevent crashs, if no item is available in v_cc_items
insertCCItem() and removeCCItem() occured crashes, if no items was added.
Also added debug messages.


Origin commit data
------------------
Commit: 2e729ffdb9
Author: Thilo Graf <dbt@novatux.de>
Date: 2012-11-25 (Sun, 25 Nov 2012)
2013-03-06 11:28:14 +01:00
Thilo Graf
a3c8fb9680 CComponentsHeader: add member initCCButtonFormSize()
This moves caclulation from initCCHeaderButtons() to its own
member.


Origin commit data
------------------
Commit: 41165d7cb2
Author: Thilo Graf <dbt@novatux.de>
Date: 2012-11-24 (Sat, 24 Nov 2012)
2013-03-06 11:28:14 +01:00
Thilo Graf
74da6f8b1d CComponentsHeader: move int of default buttons into its own member
Origin commit data
------------------
Commit: 62f44d7a8c
Author: Thilo Graf <dbt@novatux.de>
Date: 2012-11-24 (Sat, 24 Nov 2012)
2013-03-06 11:28:13 +01:00
Thilo Graf
b24c728a1d CComponentsHeader: fix button display
Calculation of button offset was broken.


Origin commit data
------------------
Commit: 4fb3cde45f
Author: Thilo Graf <dbt@novatux.de>
Date: 2012-11-24 (Sat, 24 Nov 2012)
2013-03-06 11:28:13 +01:00
Thilo Graf
06b10642b8 CComponentsForm: do not paint out of form
If is x or y position of embedded item out of allowed form dimension, then
set a new x or y value to item.
Added debug message should help to find issues.


Origin commit data
------------------
Commit: fb3646c9be
Author: Thilo Graf <dbt@novatux.de>
Date: 2012-11-23 (Fri, 23 Nov 2012)
2013-03-06 11:28:13 +01:00
Thilo Graf
068cb4c6a2 CComponentsHeader: add parameter buttons onto constructors
This adds default buttons to header


Origin commit data
------------------
Commit: 3644abec66
Author: Thilo Graf <dbt@novatux.de>
Date: 2012-11-21 (Wed, 21 Nov 2012)
2013-03-06 11:28:13 +01:00
Thilo Graf
3009416331 CComponentsHeader: move init members into its own member
Origin commit data
------------------
Commit: 562b091e66
Author: Thilo Graf <dbt@novatux.de>
Date: 2012-11-19 (Mon, 19 Nov 2012)
2013-03-06 11:28:12 +01:00
Thilo Graf
2e3859dea7 CComponentsForm: add virtual members to manipulate ccitems
Origin commit data
------------------
Commit: 949867e4ac
Author: Thilo Graf <dbt@novatux.de>
Date: 2012-11-19 (Mon, 19 Nov 2012)
2013-03-06 11:28:12 +01:00
Thilo Graf
7cedb3a2bc 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
------------------
Commit: b330d78ff2
Author: Thilo Graf <dbt@novatux.de>
Date: 2012-11-18 (Sun, 18 Nov 2012)
2013-03-06 11:28:12 +01:00
Thilo Graf
7b8e3f7047 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
------------------
Commit: 84fe7cf134
Author: Thilo Graf <dbt@novatux.de>
Date: 2012-11-12 (Mon, 12 Nov 2012)
2013-03-06 11:28:12 +01:00
Thilo Graf
11a111d196 CComponentsHeader: add private member variable cch_text_x
Origin commit data
------------------
Commit: 6ee87b95ec
Author: Thilo Graf <dbt@novatux.de>
Date: 2012-11-10 (Sat, 10 Nov 2012)
2013-03-06 11:28:11 +01:00
Thilo Graf
9efd94c28e CComponentsForm: remove constructor
Call of overloaded 'CComponentsForm(int, int, int, int)' is ambiguous.


Origin commit data
------------------
Commit: 0dbddbc483
Author: Thilo Graf <dbt@novatux.de>
Date: 2012-11-10 (Sat, 10 Nov 2012)
2013-03-06 11:28:11 +01:00
Thilo Graf
a975f9c42a CComponentsForm: paintCCItems() is needed as public member
Origin commit data
------------------
Commit: dd91340a37
Author: Thilo Graf <dbt@novatux.de>
Date: 2012-11-10 (Sat, 10 Nov 2012)
2013-03-06 11:28:11 +01:00
Thilo Graf
5297e58c72 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
------------------
Commit: a5adaf854a
Author: Thilo Graf <dbt@novatux.de>
Date: 2012-11-10 (Sat, 10 Nov 2012)
2013-03-06 11:28:11 +01:00
Thilo Graf
3f42a360e1 CComponentsHeader: init code for icon and text outsource
slim down of paint()


Origin commit data
------------------
Commit: 8061b2938f
Author: Thilo Graf <dbt@novatux.de>
Date: 2012-11-09 (Fri, 09 Nov 2012)
2013-03-06 11:28:11 +01:00
Thilo Graf
808f3618bb CComponentsHeader: use height of header as default height for icon space
Origin commit data
------------------
Commit: 6bdd8cd771
Author: Thilo Graf <dbt@novatux.de>
Date: 2012-11-09 (Fri, 09 Nov 2012)
2013-03-06 11:28:11 +01:00
Thilo Graf
4cece41b29 CComponents: add option paint_bg and apply in CComponentsHeader
Origin commit data
------------------
Commit: 75fbc08269
Author: Thilo Graf <dbt@novatux.de>
Date: 2012-11-09 (Fri, 09 Nov 2012)
2013-03-06 11:28:10 +01:00