Commit Graph

798 Commits

Author SHA1 Message Date
Jacek Jendrzej
c30af8edf8 some inits
Origin commit data
------------------
Commit: f4f351e9ba
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2017-01-30 (Mon, 30 Jan 2017)
2017-01-30 17:22:41 +01:00
Thilo Graf
39eb60eedc CComponentsDetailLine: remove multiple init of cc_save_bg.
Init is passed with paintFbItems() at the end of paint() methode.


Origin commit data
------------------
Commit: 5f0aea48d2
Author: Thilo Graf <dbt@novatux.de>
Date: 2017-01-30 (Mon, 30 Jan 2017)
2017-01-30 11:27:49 +01:00
Jacek Jendrzej
542ba9679a fix uninitialised values
Origin commit data
------------------
Commit: f76dda36df
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2017-01-29 (Sun, 29 Jan 2017)
2017-01-29 20:54:35 +01:00
Thilo Graf
db337a9a4d CComponentsFrmClock: add missing reinit
Origin commit data
------------------
Commit: 002cc4c74e
Author: Thilo Graf <dbt@novatux.de>
Date: 2017-01-09 (Mon, 09 Jan 2017)
2017-01-09 21:28:59 +01:00
Thilo Graf
c2f6fc5539 CComponentsFrmClock: disable digit height
Using of digit height is not really required here.
eg. better centering


Origin commit data
------------------
Commit: d0aa901d70
Author: Thilo Graf <dbt@novatux.de>
Date: 2017-01-09 (Mon, 09 Jan 2017)
2017-01-09 20:47:46 +01:00
Thilo Graf
0a8605fbd4 CComponentsFrmClock/CInfoClock: simplify font init
Origin commit data
------------------
Commit: ffeb2d6459
Author: Thilo Graf <dbt@novatux.de>
Date: 2017-01-08 (Sun, 08 Jan 2017)
2017-01-08 14:39:38 +01:00
Thilo Graf
8d6fb1e022 CComponentsFooter: optimize button position and size
Buttons are now smaller so it should be enough, to center only, if not
please report.


Origin commit data
------------------
Commit: a9b8b22339
Author: Thilo Graf <dbt@novatux.de>
Date: 2017-01-05 (Thu, 05 Jan 2017)
2017-01-05 22:53:31 +01:00
Thilo Graf
da941689f0 CComponentsFooter: fix default button font type
Deafult buttonfont is FONT_TYPE_BUTTON_TEXT not FONT_TYPE_MENU_FOOT


Origin commit data
------------------
Commit: 60a77d38b3
Author: Thilo Graf <dbt@novatux.de>
Date: 2017-01-03 (Tue, 03 Jan 2017)
2017-01-05 22:19:18 +01:00
Thilo Graf
35166dadce CComponentsButton: try to fix fallback for font size
Some conditions were not catched.


Origin commit data
------------------
Commit: a5d2c2cb1d
Author: Thilo Graf <dbt@novatux.de>
Date: 2017-01-03 (Tue, 03 Jan 2017)
2017-01-05 22:19:18 +01:00
Thilo Graf
18b9d54586 CComponentsButton: fix height comparsion
comparsion with itself


Origin commit data
------------------
Commit: 4a03eb6980
Author: Thilo Graf <dbt@novatux.de>
Date: 2017-01-05 (Thu, 05 Jan 2017)
2017-01-05 22:19:18 +01:00
Thilo Graf
a1356ceff6 CComponentsButton: try to fix font size in buttons
Some text in button chains had different font sizes. To see in some
Messageboxes.


Origin commit data
------------------
Commit: b335408913
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-12-29 (Thu, 29 Dec 2016)
2016-12-30 20:33:26 +01:00
Thilo Graf
476641a626 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.


Origin commit data
------------------
Commit: b98319cb91
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-12-29 (Thu, 29 Dec 2016)
2016-12-30 20:33:26 +01:00
Thilo Graf
7072471b76 CComponentsWindow: use FONT_TYPE_BUTTON_TEXT instead FONT_TYPE_MENU_FOOT
Buttton text is not the same like footer text.


Origin commit data
------------------
Commit: 6a3b07152f
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-12-29 (Thu, 29 Dec 2016)
2016-12-30 20:33:26 +01:00
Thilo Graf
ddb8e2f397 CComponentsTimer: try to fix possible uncanceled thread
Origin commit data
------------------
Commit: e9122fbc4b
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-12-29 (Thu, 29 Dec 2016)
2016-12-30 20:33:26 +01:00
Thilo Graf
64e72db3a4 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


Origin commit data
------------------
Commit: 4cdae3fdf6
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-12-27 (Tue, 27 Dec 2016)
2016-12-30 20:33:26 +01:00
Thilo Graf
de7feba890 CComponentsButton: rename cc_btn_capt -> cc_btn_text
More plausible


Origin commit data
------------------
Commit: 2889fbd70d
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-12-29 (Thu, 29 Dec 2016)
2016-12-30 20:33:26 +01:00
Jacek Jendrzej
542feb926c some dead assignment
Origin commit data
------------------
Commit: c0564ec574
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2016-12-29 (Thu, 29 Dec 2016)
2016-12-29 18:51:06 +01:00
vanhofen
ff22643691 themes: allow progressbar-settings in themes
Origin commit data
------------------
Commit: 888bfb6687
Author: vanhofen <vanhofen@gmx.de>
Date: 2016-12-29 (Thu, 29 Dec 2016)

Origin message was:
------------------
- themes: allow progressbar-settings in themes
2016-12-29 00:47:34 +01:00
Thilo Graf
60ed437f3e 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.


Origin commit data
------------------
Commit: 3cd509aa2d
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-12-27 (Tue, 27 Dec 2016)
2016-12-27 18:18:00 +01:00
Thilo Graf
9b76cf01e6 partial revert: "CTextBox: expand parameters of member setTextBorderWidth()"
related commit: 43a759358d

Since this commit, TextBox received a lot of optimizations, so it is possible
we have no described side effects.


Origin commit data
------------------
Commit: fad2adffa2
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-12-22 (Thu, 22 Dec 2016)
2016-12-22 09:49:40 +01:00
vanhofen
66a2c95b0d cc_frm_scrollbar: use SCROLLBAR_WIDTH define
Origin commit data
------------------
Commit: 52ad1f76c2
Author: vanhofen <vanhofen@gmx.de>
Date: 2016-12-20 (Tue, 20 Dec 2016)

Origin message was:
------------------
- cc_frm_scrollbar: use SCROLLBAR_WIDTH define
2016-12-20 10:26:59 +01:00
Thilo Graf
3069495033 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.


Origin commit data
------------------
Commit: 239496c207
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-12-18 (Sun, 18 Dec 2016)
2016-12-18 20:30:41 +01:00
Thilo Graf
c98374ff73 CCDraw: add overloaded version of paint Blink()
It's useful to have synchronized timer for more than one item.


Origin commit data
------------------
Commit: f7ad79c371
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-12-17 (Sat, 17 Dec 2016)
2016-12-17 22:39:15 +01:00
vanhofen
77d89d2f0a cc_frm_scrollbar: fix offsets; use OFFSET defines
Origin commit data
------------------
Commit: 38c621ad5e
Author: vanhofen <vanhofen@gmx.de>
Date: 2016-12-16 (Fri, 16 Dec 2016)

Origin message was:
------------------
- cc_frm_scrollbar: fix offsets; use OFFSET defines
2016-12-16 09:03:07 +01:00
vanhofen
e5a5a8b41e cc_frm_scrollbar: set default height to 0
Origin commit data
------------------
Commit: c3439ad09d
Author: vanhofen <vanhofen@gmx.de>
Date: 2016-12-16 (Fri, 16 Dec 2016)

Origin message was:
------------------
- cc_frm_scrollbar: set default height to 0
2016-12-16 09:03:07 +01:00
vanhofen
3665652646 cc_frm: avoid artificially offsets
Origin commit data
------------------
Commit: b46a35cdf4
Author: vanhofen <vanhofen@gmx.de>
Date: 2016-12-16 (Fri, 16 Dec 2016)

Origin message was:
------------------
- cc_frm: avoid artificially offsets
2016-12-16 09:03:07 +01:00
Thilo Graf
c0e881773a CCDraw: reduce debug spam
Origin commit data
------------------
Commit: 689866c872
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-12-15 (Thu, 15 Dec 2016)
2016-12-15 22:02:21 +01:00
Thilo Graf
c6f16e5acf CComponentsScrollBar: fix pos and use current width to set height of arrows
This fix size and position and dimensions of arrows.


Origin commit data
------------------
Commit: 6dda28d612
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-12-15 (Thu, 15 Dec 2016)
2016-12-15 21:56:41 +01:00
Thilo Graf
c049ef1038 CComponentsScrollBar: use corner settings for scrollbar body
Origin commit data
------------------
Commit: 1d541834b1
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-12-15 (Thu, 15 Dec 2016)
2016-12-15 16:53:32 +01:00
Thilo Graf
d8878ea74a CComponentsScrollBar: add easy to handle scrollbar methode
Origin commit data
------------------
Commit: 728b95ac1c
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-12-15 (Thu, 15 Dec 2016)
2016-12-15 16:53:25 +01:00
Thilo Graf
c36053860a CComponentsHeader: fix font and height handling
Font was not changeable. setCaptionFont() was without effect.


Origin commit data
------------------
Commit: ab8aa77687
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-12-14 (Wed, 14 Dec 2016)
2016-12-14 16:21:15 +01:00
Thilo Graf
6a339c19e2 CCDraw: try to avoid rendering with bad dimensions
Origin commit data
------------------
Commit: bd5e82fdc4
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-12-08 (Thu, 08 Dec 2016)
2016-12-08 09:33:40 +01:00
vanhofen
8f55c83ce0 rename BUTTON_TOP to BUTTON_UP; it isn't a top-button
Origin commit data
------------------
Commit: 0dc0789de8
Author: vanhofen <vanhofen@gmx.de>
Date: 2016-12-07 (Wed, 07 Dec 2016)

Origin message was:
------------------
- rename BUTTON_TOP to BUTTON_UP; it isn't a top-button
2016-12-07 15:37:03 +01:00
vanhofen
317c73efcc cc_frm_header: show left button before the right one
Origin commit data
------------------
Commit: 3d78174b8f
Author: vanhofen <vanhofen@gmx.de>
Date: 2016-12-07 (Wed, 07 Dec 2016)

Origin message was:
------------------
- cc_frm_header: show left button before the right one
2016-12-07 15:24:45 +01:00
TangoCash
0aac3d7949 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


Origin commit data
------------------
Commit: 0c4c90bf2e
Author: TangoCash <eric@loxat.de>
Date: 2016-12-06 (Tue, 06 Dec 2016)
2016-12-06 11:34:59 +01:00
Thilo Graf
7fc8a13b2f CComponentsWindow: fix window body color
Color parameter was not passed to body. Parameters in constructor and
setters had no effect.


Origin commit data
------------------
Commit: c1ec746321
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-12-01 (Thu, 01 Dec 2016)
2016-12-01 22:42:21 +01:00
Thilo Graf
b79c87dcfe 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).


Origin commit data
------------------
Commit: 8bf6b7fb3a
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-11-29 (Tue, 29 Nov 2016)
2016-11-29 16:13:47 +01:00
Thilo Graf
b2e71497d8 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.


Origin commit data
------------------
Commit: 427b65813d
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-11-27 (Sun, 27 Nov 2016)

Origin message was:
------------------
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
fb0f85365a CComponentsExtTextForm: rework class overloading
class CComponentsExtTextFormLocalized is not required.


Origin commit data
------------------
Commit: 31bfb1b383
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-11-27 (Sun, 27 Nov 2016)
2016-11-28 21:43:33 +01:00
Thilo Graf
ef014b2112 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.


Origin commit data
------------------
Commit: 9331c59b0e
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-11-28 (Mon, 28 Nov 2016)
2016-11-28 21:42:50 +01:00
Thilo Graf
e10e0583ae 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.


Origin commit data
------------------
Commit: ee4a443c8a
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-11-23 (Wed, 23 Nov 2016)
2016-11-23 10:33:58 +01:00
Thilo Graf
5474e555a8 CComponentsWindow: remove default values from internal init method
Is not really required for this private member.


Origin commit data
------------------
Commit: 4e1a3a89dc
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-11-23 (Wed, 23 Nov 2016)
2016-11-23 10:04:50 +01:00
Thilo Graf
3634c26ea1 CComponentsInfoBox: add methode to get internal picture object
Origin commit data
------------------
Commit: 0d2c612adb
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-11-21 (Mon, 21 Nov 2016)
2016-11-21 10:55:11 +01:00
Thilo Graf
d137ca8969 CComponentsFrmClock: ensure that no radius is defined for inner items
Radius is not required for inner segments.
TODO: single segment


Origin commit data
------------------
Commit: 02c6df782c
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-11-21 (Mon, 21 Nov 2016)
2016-11-21 10:55:10 +01:00
Thilo Graf
af471915c9 CComponentsFooter: use select/unselect colors from menues as default
Origin commit data
------------------
Commit: 4b88a244da
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-11-20 (Sun, 20 Nov 2016)
2016-11-20 16:33:53 +01:00
Thilo Graf
33e7afdf8d CComponentsFooter: use minimal frame width as default for buttons
Origin commit data
------------------
Commit: 7567f7de00
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-11-20 (Sun, 20 Nov 2016)
2016-11-20 16:33:32 +01:00
Thilo Graf
c35d8b0c26 CCDraw: add function for blink effect for cc items
NOTE: experimental, for examples see CTestMenu class


Origin commit data
------------------
Commit: 717dec02c5
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-11-20 (Sun, 20 Nov 2016)
2016-11-20 14:09:19 +01:00
Thilo Graf
2b0b1c9f0f CComponentsFooter: add parameter for frame width for selected buttons
Frame width was hard coded.


Origin commit data
------------------
Commit: 696989dcf1
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-11-20 (Sun, 20 Nov 2016)
2016-11-20 01:33:57 +01:00
Thilo Graf
5d258a58dd 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.


Origin commit data
------------------
Commit: 04a75327dd
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-11-19 (Sat, 19 Nov 2016)
2016-11-19 23:21:06 +01:00
Thilo Graf
d9b71722a5 Merge branch 'master' into pu/msgbox
Origin commit data
------------------
Commit: 5394f4b2e1
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-11-12 (Sat, 12 Nov 2016)
2016-11-12 22:31:11 +01:00