Commit Graph

103 Commits

Author SHA1 Message Date
Thilo Graf
96ff115b71 src/gui/components/cc_frm_window.cpp: fix too small left bottom corner
radius is allready calculatetd in base class src/gui/components/cc_frm.cpp
in member CComponentsForm::paintCCItems()

NOTE:
It seems the radius calculation inside framebuffer don't working correct
for corners on the right site on top and bottom.
Seen on hd51 hardware on osd-boxes with shadow
(e.g. infobar) or Boxes with frames e.g. on error message windows, buttons.
There are pixel errors like minimal holes on osd or displaced pixels.
On CST hardware evreything is ok.


Origin commit data
------------------
Commit: 94517d3404
Author: Thilo Graf <dbt@novatux.de>
Date: 2017-11-19 (Sun, 19 Nov 2017)

Origin message was:
------------------
src/gui/components/cc_frm_window.cpp: fix too small left bottom corner

radius is allready calculatetd in base class src/gui/components/cc_frm.cpp
in member CComponentsForm::paintCCItems()

NOTE:
It seems the radius calculation inside framebuffer don't working correct
for corners on the right site on top and bottom.
Seen on hd51 hardware on osd-boxes with shadow
(e.g. infobar) or Boxes with frames e.g. on error message windows, buttons.
There are pixel errors like minimal holes on osd or displaced pixels.
On CST hardware evreything is ok.
2017-11-19 21:12:42 +01:00
Jacek Jendrzej
a23840bc0c Merge branch 'master' into pu/mp
Origin commit data
------------------
Commit: 23797d29c0
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2017-08-29 (Tue, 29 Aug 2017)
2017-08-29 11:26:54 +02:00
Thilo Graf
fbb0fc68b0 cc_frm.cpp, cc_frm_button.cpp: remove unread stored variables
Origin commit data
------------------
Commit: fe6a24351b
Author: Thilo Graf <dbt@novatux.de>
Date: 2017-08-28 (Mon, 28 Aug 2017)
2017-08-28 12:16:45 +02:00
Jacek Jendrzej
b01bf9414d Merge branch 'master' into pu/mp
Origin commit data
------------------
Commit: 1763bb9e64
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2017-08-08 (Tue, 08 Aug 2017)
2017-08-08 20:06:40 +02:00
Thilo Graf
8f59422060 CComponentsForm: add functions to get used or free space of form dimensions
Origin commit data
------------------
Commit: 67a71d5e4e
Author: Thilo Graf <dbt@novatux.de>
Date: 2017-08-04 (Fri, 04 Aug 2017)
2017-08-08 14:25:12 +02:00
Thilo Graf
fed7d85cff CComponentsForm: add methods to get previous and next item
Origin commit data
------------------
Commit: a4af92d219
Author: Thilo Graf <dbt@novatux.de>
Date: 2017-08-04 (Fri, 04 Aug 2017)
2017-08-08 14:25:12 +02:00
Jacek Jendrzej
9159d45c90 Merge branch 'master' into pu/mp
Origin commit data
------------------
Commit: 4c3002cb26
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2017-06-15 (Thu, 15 Jun 2017)
2017-06-15 12:32:31 +02:00
Thilo Graf
e8ba380719 CComponentsForm: remove extra item declaration
Remove instances from vector only for sure.


Origin commit data
------------------
Commit: 0066430b77
Author: Thilo Graf <dbt@novatux.de>
Date: 2017-06-15 (Thu, 15 Jun 2017)
2017-06-15 01:01:54 +02:00
Jacek Jendrzej
d41ab9d3e3 Merge branch 'master' into pu/mp
Origin commit data
------------------
Commit: 4ae57d1567
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2017-05-02 (Tue, 02 May 2017)
2017-05-02 22:35:18 +02:00
Thilo Graf
35f39f107d CComponentsForm: expand debug output with address.
Origin commit data
------------------
Commit: 801d1beb10
Author: Thilo Graf <dbt@novatux.de>
Date: 2017-05-02 (Tue, 02 May 2017)
2017-05-02 21:07:56 +02:00
Thilo Graf
2c43a84e12 CComponentsForm: use current bg save mode while paint items
Mode was always false but current mode could be required in
many constellations.


Origin commit data
------------------
Commit: e7d60f7c08
Author: Thilo Graf <dbt@novatux.de>
Date: 2017-05-01 (Mon, 01 May 2017)
2017-05-02 21:07:45 +02:00
Jacek Jendrzej
ad27563c6a Merge branch 'master' into pu/mp
Origin commit data
------------------
Commit: 0ef6e3fe98
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2017-04-27 (Thu, 27 Apr 2017)
2017-04-27 14:27:27 +02:00
Thilo Graf
440333ff79 CComponentsForm: add member hideCCItems()
In case of items with cached background it is useful to have
possibility to restore their background. (eg. items are painted
outside of form).


Origin commit data
------------------
Commit: 19fc8c6d3b
Author: Thilo Graf <dbt@novatux.de>
Date: 2017-04-27 (Thu, 27 Apr 2017)
2017-04-27 09:27:45 +02:00
vanhofen
4ad063d3f5 Merge branch 'master' into pu/mp
Origin commit data
------------------
Commit: 11a28c07d6
Author: vanhofen <vanhofen@gmx.de>
Date: 2017-04-19 (Wed, 19 Apr 2017)
2017-04-19 21:35:56 +02:00
Thilo Graf
2e471317fc CComponentsForm: use global default width for scrollbar
Origin commit data
------------------
Commit: 0e94c6830b
Author: Thilo Graf <dbt@novatux.de>
Date: 2017-04-17 (Mon, 17 Apr 2017)
2017-04-17 17:43:55 +02:00
Thilo Graf
589cf00f6f CComponentsForm: try to fix fit items inside forms
Some items had offsets on screen. Was seen eg. in message windows.


Origin commit data
------------------
Commit: 9ac706b86c
Author: Thilo Graf <dbt@novatux.de>
Date: 2017-04-17 (Mon, 17 Apr 2017)
2017-04-17 15:18:22 +02:00
Stefan Seyfried
706a5ba010 Merge remote-tracking branch 'tuxbox/master'
Origin commit data
------------------
Commit: 8b47699447
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2017-02-11 (Sat, 11 Feb 2017)
2017-02-11 11:18:45 +01:00
Thilo Graf
680970ff29 CComponentsForm: move slots into base classes
Usable for all form classes


Origin commit data
------------------
Commit: 06fa3f2488
Author: Thilo Graf <dbt@novatux.de>
Date: 2017-02-06 (Mon, 06 Feb 2017)
2017-02-07 17:12:25 +01:00
Thilo Graf
b0295112ba Forms/header/clock: implement slot into OnBeforeRePaint
Origin commit data
------------------
Commit: 1c217b404f
Author: Thilo Graf <dbt@novatux.de>
Date: 2017-02-02 (Thu, 02 Feb 2017)
2017-02-02 11:18:27 +01:00
Stefan Seyfried
f9341822cf Merge remote-tracking branch 'tuxbox/master'
Origin commit data
------------------
Commit: 7497722646
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2017-02-01 (Wed, 01 Feb 2017)
2017-02-01 22:03:40 +01:00
Thilo Graf
8c257ff449 CComponentsForm: remove debug spam
Origin commit data
------------------
Commit: 31146bd9af
Author: Thilo Graf <dbt@novatux.de>
Date: 2017-01-24 (Tue, 24 Jan 2017)
2017-01-31 16:36:42 +01:00
Thilo Graf
3bb81b5b73 CComponentsForm: add some usefull slots/signal to help paint backgrounds
Requried to paint form items only on changed contents and on repaint


Origin commit data
------------------
Commit: 5c8aa90e01
Author: Thilo Graf <dbt@novatux.de>
Date: 2017-01-24 (Tue, 24 Jan 2017)
2017-01-31 16:36:41 +01:00
Thilo Graf
2748077074 Experimental try to rework isPainted()
Origin commit data
------------------
Commit: 26eb4d079b
Author: Thilo Graf <dbt@novatux.de>
Date: 2017-01-19 (Thu, 19 Jan 2017)
2017-01-31 16:36:41 +01:00
Stefan Seyfried
c95aca9252 Merge remote-tracking branch 'tuxbox/master'
Origin commit data
------------------
Commit: a409047714
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2017-01-22 (Sun, 22 Jan 2017)
2017-01-22 22:59:39 +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
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
Stefan Seyfried
eab48f2ed9 Merge remote-tracking branch 'tuxbox/master'
Origin commit data
------------------
Commit: c6d7968381
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2016-12-04 (Sun, 04 Dec 2016)
2016-12-04 18:02:51 +01:00
Thilo Graf
3278e0e103 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.


Origin commit data
------------------
Commit: edd2e48bbe
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-10-13 (Thu, 13 Oct 2016)
2016-10-24 10:31:27 +02:00
Thilo Graf
2871269810 CComponentsForm: add parameters to setSelectedItem() methode
Were not passed to items


Origin commit data
------------------
Commit: 375451f0a6
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-09-30 (Fri, 30 Sep 2016)
2016-10-24 10:31:25 +02:00
Thilo Graf
11b3307251 CMsgBox: rework msgbox classes with Window class implementation
Replacing messagebox, hintbox_ext and some derivated parts with
basic class hintbox and derivated class CMsgBox. This should unify
window handling and avoids maintain of multiple classes with quasi
same purpose and adds more functionality.

TODO: fix and optimize details


Origin commit data
------------------
Commit: dde298b1b7
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-04-04 (Mon, 04 Apr 2016)
2016-10-24 10:31:24 +02:00
Stefan Seyfried
54189f271a Merge remote-tracking branch 'tuxbox/master'
* needs compile fixes
* needs additional tests, of course :-)


Origin commit data
------------------
Commit: 13ab1ebc8a
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2016-10-22 (Sat, 22 Oct 2016)
2016-10-22 11:37:40 +02:00
vanhofen
f21851aec0 rename SHADOW_OFFSET -> OFFSET_SHADOW
Origin commit data
------------------
Commit: 5d450c60d3
Author: vanhofen <vanhofen@gmx.de>
Date: 2016-10-10 (Mon, 10 Oct 2016)

Origin message was:
------------------
- rename SHADOW_OFFSET -> OFFSET_SHADOW
2016-10-10 14:19:55 +02:00
Stefan Seyfried
fee0e83b55 cc_frm: fix printf warning (this time for real ;)
Origin commit data
------------------
Commit: 7d268c16b9
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2016-01-01 (Fri, 01 Jan 2016)
2016-01-01 20:49:37 +01:00
Stefan Seyfried
0222346c9a Merge remote-tracking branch 'uncool/cst-next'
Origin commit data
------------------
Commit: 9113716171
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2016-01-01 (Fri, 01 Jan 2016)
2016-01-01 14:10:48 +01:00
Thilo Graf
c5b4a22cfc CComponentsForm: add return value to addCCItem()
return value = current id of added item


Origin commit data
------------------
Commit: 888c575ef4
Author: Thilo Graf <dbt@novatux.de>
Date: 2015-12-01 (Tue, 01 Dec 2015)
2015-12-28 17:58:46 +01:00
Stefan Seyfried
3b60f5db24 fix debug output printf type warnings
Origin commit data
------------------
Commit: 3e37715c86
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2015-12-28 (Mon, 28 Dec 2015)
2015-12-28 16:23:26 +01:00
Stefan Seyfried
8822421c6b Merge remote-tracking branch 'uncool/cst-next'
Origin commit data
------------------
Commit: b837d8697b
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2015-12-28 (Mon, 28 Dec 2015)
2015-12-28 16:15:14 +01:00
Thilo Graf
72a289a90c components: rework classes
- outsourced some classes cc_item.cpp/h, cc_draw.cpp/h
- added extra methodes for simple use of some basic components extra.cpp/h
- rework clock handling: use timer class, reworked members for
 enable/disable clock with external timer events,
 tryed to fix some display issues related with infoclock and
 time osd clock in moviebrowser, channellist, menuus
- reworked hide/kill handling, removed parameter for hide(), try to use
 cached backgrounds for other constallations, paint cache, image cache (all beta)
- reworked shadow/frame handling, add shadow modes for left/right
 arrangement, TODO: repaint for existant instances required
- reworked color gradient assignment (beta)

... Note: I had a data crash in my local git tree
and i tryed to restore my historie, but most was lost. Therefore here
the commit is large


Origin commit data
------------------
Commit: 0146511f38
Author: Thilo Graf <dbt@novatux.de>
Date: 2015-11-18 (Wed, 18 Nov 2015)

Origin message was:
------------------
components: rework classes

- outsourced some classes cc_item.cpp/h, cc_draw.cpp/h
- added extra methodes for simple use of some basic components extra.cpp/h
- rework clock handling: use timer class, reworked members for
 enable/disable clock with external timer events,
 tryed to fix some display issues related with infoclock and
 time osd clock in moviebrowser, channellist, menuus
- reworked hide/kill handling, removed parameter for hide(), try to use
 cached backgrounds for other constallations, paint cache, image cache (all beta)
- reworked shadow/frame handling, add shadow modes for left/right
 arrangement, TODO: repaint for existant instances required
- reworked color gradient assignment (beta)

... Note: I had a data crash in my local git tree
and i tryed to restore my historie, but most was lost. Therefore here
the commit is large
2015-12-27 14:42:27 +01:00
Jacek Jendrzej
ba37f4015e fix compil fix change 64 to 32
Origin commit data
------------------
Commit: 322b58a598
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2015-12-27 (Sun, 27 Dec 2015)
2015-12-27 13:58:32 +01:00
Jacek Jendrzej
74678238cf some gcc5 compil fixes
Origin commit data
------------------
Commit: ddb3c15d4b
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2015-12-26 (Sat, 26 Dec 2015)
2015-12-26 17:03:42 +01:00
Stefan Seyfried
17880c4125 Merge remote-tracking branch 'uncool/cst-next'
This need buildfixes and some functional updates...


Origin commit data
------------------
Commit: eeee5bacab
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2015-12-13 (Sun, 13 Dec 2015)
2015-12-13 17:41:55 +01:00
Thilo Graf
d88c995cb2 CComponentsForm: reduce log spam in info mode
Origin commit data
------------------
Commit: 674f2f983a
Author: Thilo Graf <dbt@novatux.de>
Date: 2015-01-04 (Sun, 04 Jan 2015)
2015-03-29 22:40:04 +02:00
Thilo Graf
1f062fd43a CComponentsForm: prevent wrong id parameter if item size out of range
Origin commit data
------------------
Commit: d72603665c
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-11-14 (Fri, 14 Nov 2014)
2015-03-29 22:39:57 +02:00
Thilo Graf
0519d62d0b CComponentsForm: fix init value of getPageCount()
value is always 1


Origin commit data
------------------
Commit: 52f7c79db8
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-11-07 (Fri, 07 Nov 2014)
2015-03-29 22:39:56 +02:00
Thilo Graf
2a12679ee6 CComponentsForm: fix unnecessary try for scroll
This avoids unnecessary flicker effects, because no paint is required,
if page count = 1 and also ensures, that this page is defined as current page.


Origin commit data
------------------
Commit: 23c708b787
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-10-05 (Sun, 05 Oct 2014)
2015-03-29 22:39:51 +02:00
Thilo Graf
85e2ac21f6 CComponentsForm: reduce corner radius on frame border
If we have a frame around parent item, ensure matching corners
inside of embedded item, this avoids ugly unpainted spaces
between frame and item border.

TODO: other constellations are not considered at the moment!


Origin commit data
------------------
Commit: 09851f3b9f
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-10-04 (Sat, 04 Oct 2014)
2015-03-29 22:39:51 +02:00
Thilo Graf
64a7f05f93 CComponentsForm: fix item offset with enabled frame
frame width was not considered


Origin commit data
------------------
Commit: f7faf07ab1
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-10-04 (Sat, 04 Oct 2014)
2015-03-29 22:39:50 +02:00
Stefan Seyfried
7d770b41f8 components: fix format strings
Origin commit data
------------------
Commit: daeefa9757
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2014-12-26 (Fri, 26 Dec 2014)
2014-12-26 20:00:42 +01:00
Michael Liebmann
b12069a5c6 CComponentsForm: Fix compiler warning (-Wsign-compare)
Origin commit data
------------------
Commit: 4c2704fb2f
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2014-09-21 (Sun, 21 Sep 2014)
2014-09-25 11:05:18 +04:00
Thilo Graf
91c254dc16 CComponentsForm/CComponentsWindow: add page scroll handling
This provides page scroll with up/down, left/right or combined.
Usage of exec() methods with implemented signals allows a
generic implematation of button or other message handling with
signal/slot solutions.

still to do: page cache


Origin commit data
------------------
Commit: 88ce62ea84
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-09-07 (Sun, 07 Sep 2014)
2014-09-25 11:02:55 +04:00