Thilo Graf
c2bc275d5d
CComponentsForm: add functions to get first and last item
2014-06-27 20:38:59 +02:00
Thilo Graf
67ab4addeb
CComponentsWindow: add missing comment for sidebars
2014-06-23 18:43:47 +02:00
Thilo Graf
dce25e94b3
CComponentsForm: don't consider frame for position calculation
...
This should be done in the arrangement of the container contents
2014-06-23 18:43:47 +02:00
Thilo Graf
eee10df7bb
CComponentsForm: add comment
2014-06-23 18:43:47 +02:00
Thilo Graf
2aff49deea
CComponentsItem: remove unnecessary calculation of position with frame
...
This should be done in the arrangement of the container contents
2014-06-23 18:43:47 +02:00
Thilo Graf
5eb63b9515
CComponentsPicture: structure of class highly simplified
...
It should be now easier to use images as objects. An initialized
picture object should provide all relevant properties and some
functionalities of picture viewer.
2014-06-23 18:43:47 +02:00
Thilo Graf
8bbd7024d9
CComponents: epand method setFrameThickness() to change selected frame
2014-06-23 18:43:47 +02:00
Thilo Graf
33202059cc
CComponentsText: add function to get current text content from object
2014-06-23 18:43:47 +02:00
Thilo Graf
581b9c7701
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.
2014-06-23 18:43:47 +02:00
Thilo Graf
f21c119517
CComponentsWindow: add possibilty to add sidebars in window objects
...
This allows to add objects in to window on left or right site. eg. for
navigation icons or other similar stuff. Default this feature is disabled.
to enable with methode enableSidebar(TYPE); With parameter
CC_WINDOW_LEFT_SIDEBAR, CC_WINDOW_RIGHT_SIDEBAR or both.
Width of sidebar can be changed with methode setWidthSidebar(int)
2014-06-23 18:43:47 +02:00
Thilo Graf
53cf57876c
CComponents: inherit COSDFader class
...
Allows a simplified implementation without prior declaration and
initialisation
2014-06-23 18:43:47 +02:00
svenhoefer
8b91cda918
- change getRenderWidth() default to UTF8
2014-06-11 23:07:00 +02:00
Thilo Graf
f74a000929
CComponents: fix screen rests
...
Frame of painted box was incomplete removed, eg hint box see also:
http://www.dbox2world.net/board293-cst-coolstream/board314-cst-coolstream-development/12230-r%C3%BCckst%C3%A4nde-auf-bildschirm-bei-apollo/
2014-06-01 23:12:29 +02:00
Thilo Graf
dc007e810a
CComponents: use paintBoxRel() only in kill()
...
paintBackgroundBoxRel() ignores rounded corners. This avoids painting of
undesirable parts on corners.
2014-05-22 21:50:55 +02:00
Thilo Graf
336ddf75b6
CComponents/CComponentsItem: simplify statement
2014-05-22 21:50:55 +02:00
Thilo Graf
df4151936b
CComponentsFooter: use same corner properties like parent object
...
This avoids paint of unnecessary edges inside parent object.
2014-05-22 21:50:54 +02:00
Thilo Graf
7096e701b6
CComponents/CComponentsItem: use correct background color
...
color "0" was wrong
2014-05-22 21:50:54 +02:00
Thilo Graf
6aecdf3b5a
CComponentsFooter: use dynamic font on too small footer width
...
If required width of evaluated buttons larger than footer width,
then use dynamic font for caption, and try to fit buttons into chain
container. Dynamic font is used if ccf_btn_font==NULL
NOTE: user should not use too small window size and not select too large
fontsize. At some point this possibility will be depleted and it's no
more space for readable caption.
2014-05-22 21:50:54 +02:00
Thilo Graf
a0492bc530
CComponentsButton: use darker color for Button
...
COL_LIGHT_GRAY is too garish related to background
2014-05-22 21:50:53 +02:00
Thilo Graf
b6c781f7e4
CComponents: cc_base.h: expand override of is_painted variable
...
Value of is_painted is modified temporarily till next paint
of item
Not sure whether this is sufficiently or has bad side effects?
2014-05-22 21:50:53 +02:00
Thilo Graf
bed36eab33
CComponentsHeader: add member getContextBtnObject()
...
Allow access directly to methods and properties of context button object.
2014-05-22 21:50:53 +02:00
Thilo Graf
9937c0fae8
CComponentsFooter: ignore item, if no text and icon are defined
...
Empty buttons with defined width are causing gaps...looks not nice!
2014-05-22 21:50:52 +02:00
Thilo Graf
18f13b0062
CComponentsFooter: add member paintButtons()
...
This is a nearly methode similar with the older button handler find
in gui/widget/buttons.h, some parameters are different,
but require minimalized input.
This member sets some basic parameters and will paint
concurrently on execute, explicit call of paint() is not required.
This should simplify the implementation of the footer class.
2014-05-22 21:50:52 +02:00
Thilo Graf
f073c74a40
CComponentsForm: paint log on debug level 2 if dimensions too large
2014-05-22 21:50:52 +02:00
Thilo Graf
745f7b70f1
CComponentsText: add parameter for text color in member function setText()
2014-05-22 21:50:51 +02:00
Thilo Graf
0a3101728a
CComponentsFooter: simplified dimensions init for default height
2014-05-22 21:50:50 +02:00
Thilo Graf
9c4aadd2bf
CComponentsButton: use y position 0 for general alignment
2014-05-22 21:50:50 +02:00
Thilo Graf
2f889b9563
CComponentsForm: fix centering of items inside form
2014-05-22 21:50:49 +02:00
Thilo Graf
421296932e
CComponentsForm: use variable instead function
2014-05-22 21:50:49 +02:00
Thilo Graf
9d014d2039
CComponentsButton: ensure matching icons inside button
...
Some icons can be too large for defined button height, so it's required to
scale icons. Scaling happens inside cc_btn_icon_obj during its init.
2014-05-22 21:50:49 +02:00
Thilo Graf
75bf3aa276
CComponentsButton: remove additonal y offset
...
Any other offset could have bad side effects for centered text,
it must be centered here. Other font sizes can make problems here.
2014-05-22 21:50:49 +02:00
Thilo Graf
7cbd4e3469
CComponentsFooter: add member to get pointer to button container
2014-05-22 21:50:48 +02:00
Thilo Graf
995eff8ffe
CComponentsFooter: set color of button frames to button type, default=gray
2014-05-22 21:50:48 +02:00
Thilo Graf
f7860fed35
CComponentsFooter: apply showButtonContour() after init of labels
...
Function was without effect after adding of button objects,
showButtonContour() now changes property explicit for all items, also
after their addition to chain.
2014-05-22 21:50:47 +02:00
Thilo Graf
bd03327cb4
CComponentsFooter: use chain object in global scope of class
2014-05-22 21:50:47 +02:00
Thilo Graf
2c87bb750a
CComponentsButton: add class with const char* parameters for icon names
2014-05-22 21:50:47 +02:00
Thilo Graf
14ea1de789
CComponentsFooter: fix missing types for log output
2014-05-22 21:50:47 +02:00
Thilo Graf
95c7e44eb1
CComponentsButton: ignonre objects if no inititalized
...
This makes it possible to use buttons with or without icons or text
2014-05-22 21:50:46 +02:00
Thilo Graf
9ffdb1cb98
CComponentsButton, CComponentsFooter: rework bestfit of buttons inside chain
2014-05-22 21:50:45 +02:00
Thilo Graf
2256c83b98
CComponentsButton: reinit button items after changed font type
2014-05-22 21:50:45 +02:00
Thilo Graf
41c01cedad
CComponentsFooter: add possibility to change font type
2014-05-22 21:50:44 +02:00
Thilo Graf
419fc12f2e
CComponentsButton: add possibility to change font type, whitespace fixes
2014-05-22 21:50:44 +02:00
Thilo Graf
7b279ddd33
CComponentsButton: simplify handling of init of buttons with chain class
2014-05-22 21:50:43 +02:00
Thilo Graf
8797872d47
CComponentsFooter: add functionality to add button labels via struct
...
This function uses struct label like old button label function
see /gui/widget/buttons.cpp, but can also use strings in structs
also possible: add single button with text or locale
2014-05-22 21:50:43 +02:00
Thilo Graf
40cfc7533d
CComponentsFrmChain: add possibility to use individual positions for items
2014-05-22 21:50:43 +02:00
Thilo Graf
9955fa9203
CComponentsHeader: add icons to button collection for use in headers or footers
2014-05-22 21:50:42 +02:00
Thilo Graf
1c39d08c60
CComponentsHeader: add missing init of icon
2014-05-22 21:50:42 +02:00
Thilo Graf
e06d835396
CComponentsHeader: remove superfluous semicolon
2014-05-22 20:38:22 +02:00
Thilo Graf
f4447b38e0
CComponentsText: fix fit of textbox object inside cc text object dimensions
...
Position related to parent container was wrong. Some variables were
unused and removed.
2014-05-16 09:08:26 +02:00
Thilo Graf
6ba757bd9d
CComponentsItem: don't increase x/y position if frame width already defined
2014-05-16 09:08:25 +02:00