Commit Graph

8786 Commits

Author SHA1 Message Date
Thilo Graf
527e65df77 CMsgBox: add doc for CMsgBox 2016-10-24 10:31:28 +02:00
Thilo Graf
a5ce26dfd9 CHintBox: try to optimize height and width of message window 2016-10-24 10:31:28 +02:00
Thilo Graf
21e8188b5b CMsgBox: use default text mode parameter with scroll for all derivatives 2016-10-24 10:31:28 +02:00
Thilo Graf
55ac581523 CComponentsFooter: optimize select buttons, try to assign better contrast
Now it's possible to set parameters for frames and text.
Parameters are prdefined for better contrasts in select or default mode.

TODO: background modes have no effects at the moment. Here are other things need to be done.
2016-10-24 10:31:28 +02:00
Thilo Graf
969e2fe600 CHintBox: add doc with doxygen tags 2016-10-24 10:31:28 +02:00
Thilo Graf
912ca8647e CTestMenu: ensure remove hintbox from screen after pressed exit button.
call of hide() was missed.

Use hintbox object on stack.
Is completely sufficient here.
2016-10-24 10:31:28 +02:00
Thilo Graf
6580c5a54a CHintBox: ensure remove timeout bar from screen if hintbox object is closed
Timeout bar is not embedded like other cc items in  this form, therefor is
is better to kill this object explicit from screen otherwise it is possible
we hab artefacts after closing of hintbox window.
2016-10-24 10:31:28 +02:00
Thilo Graf
2952dcc124 CHintBox: fix text mode pass
Rquired in inherited classes
2016-10-24 10:31:28 +02:00
Thilo Graf
4ff7bd8f7e CHintBox: visualize timeoutbar with smooth progress 2016-10-24 10:31:28 +02:00
Thilo Graf
d0dd14040f CComponentsTimer: add support for nano seconds
To enable nano mode, parameter is_nano must set to true.
2016-10-24 10:31:28 +02:00
Thilo Graf
542de648f5 CComponentsFooter: reduce button height inside footer
TODO: more optimization seems required
2016-10-24 10:31:27 +02:00
Thilo Graf
78259c6ec3 CCDraw: add signals into hide() methode
alows to use slots
2016-10-24 10:31:27 +02:00
Thilo Graf
3280b44471 CMsgBox: ensure reset of progress value on used key 2016-10-24 10:31:27 +02:00
Thilo Graf
d50ef787a2 CMsgBox: enlarge footer height
Buttons has too small offset to bottom of footer.
Framed and shaded buttons are arranged on the top of footer, so
we have a larger offset.
2016-10-24 10:31:27 +02:00
Thilo Graf
013cd1f2cc CComponentsWindow: prepare possibility to change footer height 2016-10-24 10:31:27 +02:00
Thilo Graf
edd2e48bbe CComponentsForm: try to fix possible transparent bars
Ion enabled frame it's possible we have transparent bars
between frame and the last item on window bottom. This should avoid this.
2016-10-24 10:31:27 +02:00
Thilo Graf
c035b2fc15 CHintBox: add space for timeout bar 2016-10-24 10:31:27 +02:00
Thilo Graf
52abf18c22 CPictureViewerGui: add helpbox 2016-10-24 10:31:27 +02:00
Thilo Graf
cb3699deb5 CHintbox/CMsgBox: add vizualized timeout bar 2016-10-24 10:31:27 +02:00
Thilo Graf
b9d44a3fc8 CHintbox: use default text frame depends from default height and width 2016-10-24 10:31:27 +02:00
Thilo Graf
8579758884 Helpbox: fix possible transparent holes behind images 2016-10-24 10:31:27 +02:00
Thilo Graf
1338ce2b8e CMovieHelp: add localized items
TODO: add missings locales
2016-10-24 10:31:27 +02:00
Thilo Graf
87a9a69578 CPersonalizeGui: remove centered text alignment fro helptext 2016-10-24 10:31:27 +02:00
Thilo Graf
3221b7467e Helpbox: use auto sized width for footer button 2016-10-24 10:31:27 +02:00
Thilo Graf
bd57627b8f Helpbox: use current shadow color 2016-10-24 10:31:27 +02:00
Thilo Graf
3b60a55f59 CHintBox: reduce window size for used auto size depends on text content 2016-10-24 10:31:26 +02:00
Thilo Graf
ce11a3a0df CComponentsButton: remake caption size to 85% of button height
Better optical matching size.
2016-10-24 10:31:26 +02:00
Thilo Graf
b3e7e49592 CComponentsFooter: use different select color for button, if count = 1
TODO: 	should be configurable. Not all theme color combinations
	have matched contrasts.
2016-10-24 10:31:26 +02:00
Thilo Graf
5bd4903b27 cc_item.cpp: subtract frame width from the inner radius Box
Is necessary, because otherwise the frame radius would not match with outside radius
This would mean that there are "holes" at the box corners.
So now it seems to work.
2016-10-24 10:31:26 +02:00
Thilo Graf
59e8a17061 CComponentsItem: ensure some dimensions for shadow are not < 0 2016-10-24 10:31:26 +02:00
Thilo Graf
03d010fa29 CComponentsButton: remove enableShadow() from button class
is not required
2016-10-24 10:31:26 +02:00
Thilo Graf
f62ddcf61d cc_item.cpp: remove frame width from boxrad
In framed boxes, frame radius was too big and was looking bad.
Not sure if this is now fixed everywhere (eg. hintboxes)
2016-10-24 10:31:26 +02:00
Thilo Graf
857b494c47 CMsgBox: use same colors for window body, footer and button container 2016-10-24 10:31:26 +02:00
Thilo Graf
9d09bc36ce CMovieBrowser: add current content background color as image backkground
Avoids transparent shadow artefacts during repaint of images
2016-10-24 10:31:26 +02:00
Thilo Graf
9668f89db1 CComponentsPicture: use body color as default clean up color 2016-10-24 10:31:26 +02:00
Thilo Graf
7266628207 CCDraw: add private variable col_shadow_clean
Should help to control shadow clean up in some constallations
2016-10-24 10:31:26 +02:00
Thilo Graf
0f6e8e1f5d CComponentsButton: remove clear()-methode and initVarButton()
clear() killed all button object with all key values and key properties.
So return values of messeage objects was killed.

initVarButton() contains Oobjekt intits to already existant object.
Bad idea, if we init again or pre init with NULL.

Mode pass was missed.
2016-10-24 10:31:26 +02:00
Thilo Graf
ebf2e65b38 CComponentsFooter: remove debug spam 2016-10-24 10:31:26 +02:00
Thilo Graf
3e01cbe1ac CMsgBox: set some alternate keys to default key values 2016-10-24 10:31:26 +02:00
Thilo Graf
b272c407d7 CMsgBox: add colors to debug output 2016-10-24 10:31:25 +02:00
Thilo Graf
e2a1e7dc5b cc_frm_button.cpp/cc_frm_footer.cpp: fix passed parameter
were not passed through
2016-10-24 10:31:25 +02:00
Thilo Graf
375451f0a6 CComponentsForm: add parameters to setSelectedItem() methode
Were not passed to items
2016-10-24 10:31:25 +02:00
Thilo Graf
2e631fd0ce Try to rework footer
* try to fix enableButtonShadow(), seems an init is missing
* shadow fixed
2016-10-24 10:31:25 +02:00
Thilo Graf
eb78743e4a CComponentsItem: unused vars commented out 2016-10-24 10:31:25 +02:00
Thilo Graf
b6185ea78d CComponentsItem: remove frame witdth from boxrad calculation
This fix possible artefacts on the bottom right corner with frame
2016-10-24 10:31:25 +02:00
Thilo Graf
a17d61de8c Shadow: try to optimize shadow areas
* cleanup inner part of box on round corners, frames considered
* adopt implementations in some gui classes
* some debug lines removed
* test menu adopted
* try to fix corner caluculation to avoid transparent holes
2016-10-24 10:31:25 +02:00
Thilo Graf
b233c06af3 CTestMenu: adopt for last changes 2016-10-24 10:31:25 +02:00
Thilo Graf
929b5da892 CComponetnsItem: try to assign shadow areas
TODO: possible crashes on some constellations
2016-10-24 10:31:25 +02:00
Thilo Graf
147246cead cc_types.h: add compatible types shadow types
CC_SHADOW_ON is should compatible
2016-10-24 10:31:25 +02:00
Thilo Graf
363cf101d1 CComponentsFooter: add member enableButtonShadow()
Possibility to pass button properties into button objects
2016-10-24 10:31:25 +02:00