Thilo Graf
d7c35b07e4
CComonents: use allowPaint() as private, parameter as by rev
...
not used in sub classes
2013-04-16 08:26:56 +02:00
Thilo Graf
4f623b822f
CComponentsItem: add properties for stats enabled/selected
2013-04-16 08:26:56 +02:00
Thilo Graf
9420edd932
CComponentsItem: add members to get real item position
2013-04-16 08:26:55 +02:00
Thilo Graf
fb64fb5d35
CComponentsText: add overloaded member setText() for int vars
2013-04-16 08:26:55 +02:00
Thilo Graf
62efe2cb59
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.
2013-04-16 08:26:54 +02:00
Thilo Graf
546b04b846
CComponentsText: add helper to convert integer to string
2013-04-16 08:26:54 +02:00
Jacek Jendrzej
d18217effb
CComponents: don't paint the same box with different colors as background
2013-04-04 12:19:31 +02:00
Thilo Graf
3a4543b8d2
CComponentsText: add member to control background paint on textbox objects
2013-04-04 09:56:53 +02:00
Thilo Graf
bdbea07e71
CComponents: disable debug spam
2013-04-04 09:56:52 +02:00
Thilo Graf
860be9a412
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
2013-04-02 09:31:05 +02:00
Thilo Graf
d391bedd5f
CComponents: move item type enum to cc_types.h
2013-04-02 09:31:05 +02:00
Thilo Graf
c99e23289b
CComponentsLabel: add missing item type
2013-03-24 21:14:11 +01:00
Thilo Graf
cc31a41f43
CComponentsWindow/Header: fix add of header buttons
...
setHeaderButtons was without effect
2013-03-24 21:14:10 +01:00
Thilo Graf
8196cf7671
CComponentsPIP: paint alternate picture if no tv mode
...
Use setPicture() to change image on runtime.
2013-03-24 21:14:10 +01:00
Thilo Graf
6b68259ac6
CComponentsText: rename getCCItemTextBoxInst -> getCTextBoxObject
...
This name should be more plausible
2013-03-21 11:37:20 +01:00
Thilo Graf
0dc4686874
fix license text, sorry, was a c&p error
2013-03-21 11:37:00 +01:00
Michael Liebmann
801a15df7c
* CImageInfo: Scroll license text if text box too small
2013-03-21 06:56:24 +01:00
Thilo Graf
ab00522900
CComponents: fix build, fb_pixel_t and neutrino_locale_t was missed
2013-03-19 08:12:35 +01:00
Thilo Graf
259b58c829
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
2013-03-19 08:11:00 +01:00
Thilo Graf
2f5404d2fa
CComponentsLabel: add new sub class CComponentsLabel
2013-03-18 12:04:58 +01:00
Thilo Graf
ca42d9ba74
CComponentsHeader/Window: add possibility to return header height
2013-03-18 12:04:47 +01:00
Thilo Graf
d87d0754e0
CComponentsWindow: add constructors with parameters for caption and icon
2013-03-18 12:04:35 +01:00
Thilo Graf
4a931af6ef
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.
2013-03-18 12:04:25 +01:00
Thilo Graf
da356d94da
CComponentsHeader/Icon: use inherited destructor
...
Inherited destructor contains identic code.
2013-03-18 12:04:21 +01:00
Thilo Graf
de330ac39c
CComponentsWindow: remove refresh()
...
initCCWItems() does the same, but is private
2013-03-18 12:04:16 +01:00
Thilo Graf
3ed9af87ad
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.
2013-03-06 11:28:18 +01:00
Thilo Graf
10f429ee0f
CComponents: move components.cpp to cc_base.cpp, move types to own header
2013-03-06 11:28:18 +01:00
Thilo Graf
44346c6417
CComponents: fix some includes
...
Included header files don't fit after move of components.
2013-03-06 11:28:17 +01:00
Thilo Graf
399eb696d6
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
2940c4e5f6
CComponents: add more debug output and fix typo in enum CC_ITEMTYPES
2013-03-06 11:28:16 +01:00
Thilo Graf
6175fd989d
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.
2013-03-06 11:28:16 +01:00
Thilo Graf
9605d7438f
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
2013-03-06 11:28:16 +01:00
Thilo Graf
fa9ffdd46e
CComponentsWindow: add sub class CComponentsWindow
2013-03-06 11:28:16 +01:00
Thilo Graf
b9dd3e21bf
CComponentsForm: add virtual members to replace cc-item
2013-03-06 11:28:15 +01:00
Thilo Graf
79dd6456b0
CComponentsHeader: add enums for header items
2013-03-06 11:28:14 +01:00
Thilo Graf
41165d7cb2
CComponentsHeader: add member initCCButtonFormSize()
...
This moves caclulation from initCCHeaderButtons() to its own
member.
2013-03-06 11:28:14 +01:00
Thilo Graf
62f44d7a8c
CComponentsHeader: move int of default buttons into its own member
2013-03-06 11:28:13 +01:00
Thilo Graf
4fb3cde45f
CComponentsHeader: fix button display
...
Calculation of button offset was broken.
2013-03-06 11:28:13 +01:00
Thilo Graf
3644abec66
CComponentsHeader: add parameter buttons onto constructors
...
This adds default buttons to header
2013-03-06 11:28:13 +01:00
Thilo Graf
562b091e66
CComponentsHeader: move init members into its own member
2013-03-06 11:28:12 +01:00
Thilo Graf
949867e4ac
CComponentsForm: add virtual members to manipulate ccitems
2013-03-06 11:28:12 +01:00
Thilo Graf
b330d78ff2
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.
2013-03-06 11:28:12 +01:00
Thilo Graf
84fe7cf134
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
2013-03-06 11:28:12 +01:00
Thilo Graf
6ee87b95ec
CComponentsHeader: add private member variable cch_text_x
2013-03-06 11:28:11 +01:00
Thilo Graf
0dbddbc483
CComponentsForm: remove constructor
...
Call of overloaded 'CComponentsForm(int, int, int, int)' is ambiguous.
2013-03-06 11:28:11 +01:00
Thilo Graf
dd91340a37
CComponentsForm: paintCCItems() is needed as public member
2013-03-06 11:28:11 +01:00
Thilo Graf
a5adaf854a
CComponentsPicture: rework parameter handling
...
Not shure if pic_max_h/w could still make problems in while usage
of CComponentsPicture, we will see...
2013-03-06 11:28:11 +01:00
Thilo Graf
8061b2938f
CComponentsHeader: init code for icon and text outsource
...
slim down of paint()
2013-03-06 11:28:11 +01:00
Thilo Graf
75fbc08269
CComponents: add option paint_bg and apply in CComponentsHeader
2013-03-06 11:28:10 +01:00
Thilo Graf
d538e807d8
CCompnents: rename hideContainer into hideCCItem()
2013-03-06 11:28:10 +01:00