Commit Graph

789 Commits

Author SHA1 Message Date
Thilo Graf
4a03eb6980 CComponentsButton: fix height comparsion
comparsion with itself
2017-01-05 22:19:18 +01:00
Thilo Graf
b335408913 CComponentsButton: try to fix font size in buttons
Some text in button chains had different font sizes. To see in some
Messageboxes.
2016-12-30 20:33:26 +01:00
Thilo Graf
b98319cb91 CComponentsHeader/CComponentsFooter: prevent crash on changed font settings
Default fonts for header and footer must be handled too.
After font settings changes these objects could be invalid.
Default fonts have invalid pointers after font changes too. Extra reset is required.
2016-12-30 20:33:26 +01:00
Thilo Graf
6a3b07152f CComponentsWindow: use FONT_TYPE_BUTTON_TEXT instead FONT_TYPE_MENU_FOOT
Buttton text is not the same like footer text.
2016-12-30 20:33:26 +01:00
Thilo Graf
e9122fbc4b CComponentsTimer: try to fix possible uncanceled thread 2016-12-30 20:33:26 +01:00
Thilo Graf
4cdae3fdf6 CComponentsHeader: declare l_font, s_font as global
Useful for init in header sub classes. So its possible to use
other prefined size mode fonts
2016-12-30 20:33:26 +01:00
Thilo Graf
2889fbd70d CComponentsButton: rename cc_btn_capt -> cc_btn_text
More plausible
2016-12-30 20:33:26 +01:00
Jacek Jendrzej
c0564ec574 some dead assignment 2016-12-29 18:51:06 +01:00
svenhoefer
888bfb6687 - themes: allow progressbar-settings in themes 2016-12-29 00:47:34 +01:00
Thilo Graf
3cd509aa2d CComponentsTimer: disconnecting slots before stop timer thread, show error
Disconnecting of slots before stop threads ensures disconnecting
also on thread errors and keeps timer slots clear.
2016-12-27 18:18:00 +01:00
Thilo Graf
fad2adffa2 partial revert: "CTextBox: expand parameters of member setTextBorderWidth()"
related commit: 153d2f3c78

Since this commit, TextBox received a lot of optimizations, so it is possible
we have no described side effects.
2016-12-22 09:49:40 +01:00
svenhoefer
52ad1f76c2 - cc_frm_scrollbar: use SCROLLBAR_WIDTH define 2016-12-20 10:26:59 +01:00
Thilo Graf
239496c207 CComponentsHeader: ensure to have correct font instances after changed font
On possible changed font settings, font objects can be invalid and
we have a crash. With this fix it's possible, that
CNeutrinoApp::setupFont() method clean up header font object itself.
2016-12-18 20:30:41 +01:00
Thilo Graf
f7ad79c371 CCDraw: add overloaded version of paint Blink()
It's useful to have synchronized timer for more than one item.
2016-12-17 22:39:15 +01:00
svenhoefer
38c621ad5e - cc_frm_scrollbar: fix offsets; use OFFSET defines 2016-12-16 09:03:07 +01:00
svenhoefer
c3439ad09d - cc_frm_scrollbar: set default height to 0 2016-12-16 09:03:07 +01:00
svenhoefer
b46a35cdf4 - cc_frm: avoid artificially offsets 2016-12-16 09:03:07 +01:00
Thilo Graf
689866c872 CCDraw: reduce debug spam 2016-12-15 22:02:21 +01:00
Thilo Graf
6dda28d612 CComponentsScrollBar: fix pos and use current width to set height of arrows
This fix size and position and dimensions of arrows.
2016-12-15 21:56:41 +01:00
Thilo Graf
1d541834b1 CComponentsScrollBar: use corner settings for scrollbar body 2016-12-15 16:53:32 +01:00
Thilo Graf
728b95ac1c CComponentsScrollBar: add easy to handle scrollbar methode 2016-12-15 16:53:25 +01:00
Thilo Graf
ab8aa77687 CComponentsHeader: fix font and height handling
Font was not changeable. setCaptionFont() was without effect.
2016-12-14 16:21:15 +01:00
Thilo Graf
bd5e82fdc4 CCDraw: try to avoid rendering with bad dimensions 2016-12-08 09:33:40 +01:00
svenhoefer
0dc0789de8 - rename BUTTON_TOP to BUTTON_UP; it isn't a top-button 2016-12-07 15:37:03 +01:00
svenhoefer
3d78174b8f - cc_frm_header: show left button before the right one 2016-12-07 15:24:45 +01:00
TangoCash
0c4c90bf2e cc_frm correct scroll direction if more than 2 pages (thx dbo)
Signed-off-by: Thilo Graf <dbt@novatux.de>

picked from:
	github.com/TangoCash/neutrino-mp-cst-next
commit:
	abce1c6be4bae17f343d3ff878670184708aa185
2016-12-06 11:34:59 +01:00
Thilo Graf
c1ec746321 CComponentsWindow: fix window body color
Color parameter was not passed to body. Parameters in constructor and
setters had no effect.
2016-12-01 22:42:21 +01:00
Thilo Graf
8bf6b7fb3a CComponentsFooter: fix wrong text color with single button in footers
* remove size compare

If only one button exists, possible new text color would be ignored
and wrong Text color was visible with one item.
This behavior was observed in message boxes with
single buttons (eg OK, or Cancel).
2016-11-29 16:13:47 +01:00
Thilo Graf
427b65813d CComponentsFooter: disable gradient for footers
This is not really completly implemented for footer at the momemnt, because
button objects are still not prepared or tuned for that.

If it is enabled, currently it could occur unintentionally background behavior
eg.: flickereffects or background display errors in button objects.

NOTE:  anyway users can enable gradient in theme files and could override this setting.
Now here it is globally disabled for footers. If it works right,
it will be enabled in future.
2016-11-28 21:44:05 +01:00
Thilo Graf
31bfb1b383 CComponentsExtTextForm: rework class overloading
class CComponentsExtTextFormLocalized is not required.
2016-11-28 21:43:33 +01:00
Thilo Graf
9331c59b0e CComponentsText: revert inheritition of CBox, useage as object
It has shown, that the positioning and
Dimensions calculations are not correct. CBox object must be embedded
with frame properties.
2016-11-28 21:42:50 +01:00
Thilo Graf
ee4a443c8a CComponentsItem: fix possible negativ value for box radius
If frame width > 0 and radius too small, we have an negative value.
This should prevent this.
2016-11-23 10:33:58 +01:00
Thilo Graf
4e1a3a89dc CComponentsWindow: remove default values from internal init method
Is not really required for this private member.
2016-11-23 10:04:50 +01:00
Thilo Graf
0d2c612adb CComponentsInfoBox: add methode to get internal picture object 2016-11-21 10:55:11 +01:00
Thilo Graf
02c6df782c CComponentsFrmClock: ensure that no radius is defined for inner items
Radius is not required for inner segments.
TODO: single segment
2016-11-21 10:55:10 +01:00
Thilo Graf
4b88a244da CComponentsFooter: use select/unselect colors from menues as default 2016-11-20 16:33:53 +01:00
Thilo Graf
7567f7de00 CComponentsFooter: use minimal frame width as default for buttons 2016-11-20 16:33:32 +01:00
Thilo Graf
717dec02c5 CCDraw: add function for blink effect for cc items
NOTE: experimental, for examples see CTestMenu class
2016-11-20 14:09:19 +01:00
Thilo Graf
696989dcf1 CComponentsFooter: add parameter for frame width for selected buttons
Frame width was hard coded.
2016-11-20 01:33:57 +01:00
Thilo Graf
04a75327dd CSignalBar: remove offset for signal name and remove right allignment
Text have more space, otherwise it's possible it can be truncated.
Indent from left site of text don't looks not so good.
2016-11-19 23:21:06 +01:00
Thilo Graf
5394f4b2e1 Merge branch 'master' into pu/msgbox 2016-11-12 22:31:11 +01:00
svenhoefer
73b97ecd4d - cc_item_picture: reset keep_aspect variables after use 2016-11-12 22:00:12 +01:00
Thilo Graf
3efaac5725 Merge branch 'master' into pu/msgbox
Conflicts:
	src/gui/moviebrowser/mb.cpp
2016-11-10 10:27:22 +01:00
svenhoefer
15e24a3e66 - cc_frm_header: use OFFSET define 2016-11-07 21:08:51 +01:00
Thilo Graf
3e7a1943c3 Merge branch 'master' into pu/msgbox 2016-11-06 23:16:36 +01:00
Thilo Graf
18695fb0c9 CComponentsInfoBox: ensure matching object height after assigned image
Images are not defined with constructor, so it is possible we must
consider the image height after called setPicture() methode.
This is important if an infobox sould be
added into a cc form object. This avoids overlapping of dynamic added items.
2016-11-05 21:17:31 +01:00
Thilo Graf
28a146e0ba Merge branch 'master' into pu/msgbox 2016-11-05 00:08:05 +01:00
Thilo Graf
90a693a1ec CComponentsInfoBox: fix missing calculation of image position with parent 2016-11-04 23:56:29 +01:00
Thilo Graf
ab9bf2ffa6 Merge branch 'master' into pu/msgbox 2016-11-02 21:05:36 +01:00
Jacek Jendrzej
b8849d53b5 fix possible segfault and negative height 2016-10-31 15:53:29 +01:00