Commit Graph

108 Commits

Author SHA1 Message Date
Thilo Graf
801e94d938 Merge branch 'master' into pu/fb-setmode
# Conflicts:
#	src/gui/components/cc_frm_window.h


Origin commit data
------------------
Commit: aaa34d8887
Author: Thilo Graf <dbt@novatux.de>
Date: 2017-05-11 (Thu, 11 May 2017)
2017-05-11 12:18:38 +02:00
Thilo Graf
653c5af07c cc_frm_header.cpp/h: remove CTextBox types for title allignment
Title object has only width of current text content. This causes CTextBox
types have not a really visible effect. Now we have only three align types for title
and these are related to cc-text object position.

Involved classes adjusted too.


Origin commit data
------------------
Commit: 942a27e3ef
Author: Thilo Graf <dbt@novatux.de>
Date: 2017-05-11 (Thu, 11 May 2017)
2017-05-11 12:15:16 +02:00
vanhofen
1bf92d5fdd fix funny typo
Origin commit data
------------------
Commit: 8862ef621b
Author: vanhofen <vanhofen@gmx.de>
Date: 2017-03-03 (Fri, 03 Mar 2017)

Origin message was:
------------------
- fix funny typo
2017-03-03 09:52:57 +01:00
Thilo Graf
ff4dae4c43 CTestMenu: adaopt progress sample with discret percental window dimensions
Origin commit data
------------------
Commit: 4d50172fbd
Author: Thilo Graf <dbt@novatux.de>
Date: 2017-03-03 (Fri, 03 Mar 2017)
2017-03-03 09:22:08 +01:00
Thilo Graf
c56c971dd3 CTestMenu: add samples for progress window with signals
Origin commit data
------------------
Commit: 42619c8d2c
Author: Thilo Graf <dbt@novatux.de>
Date: 2017-02-17 (Fri, 17 Feb 2017)
2017-02-26 21:29:53 +01:00
Thilo Graf
34f40c9417 CTestMenu: ad samples for progress window
Origin commit data
------------------
Commit: b250ae6b9d
Author: Thilo Graf <dbt@novatux.de>
Date: 2017-02-15 (Wed, 15 Feb 2017)
2017-02-26 21:29:53 +01:00
vanhofen
4339876aa2 test_menu: add missing include of gui/components/cc_timer.h
Origin commit data
------------------
Commit: ba4b67436c
Author: vanhofen <vanhofen@gmx.de>
Date: 2017-02-12 (Sun, 12 Feb 2017)

Origin message was:
------------------
- test_menu: add missing include of gui/components/cc_timer.h
2017-02-12 23:27:18 +01:00
Stefan Seyfried
f6d5a96838 replace fontrenderer.h include with forward declaration
in order to flatten the build dependency tree further, include
fontrenderer.h directly where needed, in header files a forward
declaration is enough


Origin commit data
------------------
Commit: 2303d94300
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2017-02-05 (Sun, 05 Feb 2017)
2017-02-07 17:23:42 +01:00
Thilo Graf
1690a9ae75 CTestMenu: fix icon container
was not removed from screen


Origin commit data
------------------
Commit: b2f1226324
Author: Thilo Graf <dbt@novatux.de>
Date: 2017-01-24 (Tue, 24 Jan 2017)
2017-01-31 16:36:41 +01:00
Thilo Graf
59298d77d3 CTestMenu: fix blink of extended text sample
Origin commit data
------------------
Commit: 4a288240f2
Author: Thilo Graf <dbt@novatux.de>
Date: 2017-01-23 (Mon, 23 Jan 2017)
2017-01-31 16:36:40 +01:00
Thilo Graf
470400d885 CTestMenu: edd expanded sample for blinking items with syncroinized effect
Origin commit data
------------------
Commit: 2e2d0d6b19
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-12-17 (Sat, 17 Dec 2016)
2016-12-17 22:39:15 +01:00
Thilo Graf
0086404fb3 CTestMenu: add sample to visualize current running records
Origin commit data
------------------
Commit: 864cda9cfc
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-12-10 (Sat, 10 Dec 2016)
2016-12-10 00:19:16 +01:00
Thilo Graf
45b558cec7 Message timeout: try to fix timeout defines
Some parameters were confused.


Origin commit data
------------------
Commit: 4382daf5e4
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-12-07 (Wed, 07 Dec 2016)
2016-12-08 12:54:37 +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
2e13b9647e CTestMenu: add form sample
Origin commit data
------------------
Commit: d6c5bc2d28
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-11-20 (Sun, 20 Nov 2016)
2016-11-20 23:14:59 +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
dbf42b9d5c CTestMenu: add sample for hintbox with timeout
Origin commit data
------------------
Commit: 43c1349ffa
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-11-10 (Thu, 10 Nov 2016)
2016-11-10 11:19:09 +01:00
Thilo Graf
6354af262f CTestMenu: add sample for message box with parameter CMsgBox::mbNoYes
Origin commit data
------------------
Commit: 3d12e059c4
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-10-27 (Thu, 27 Oct 2016)
2016-10-27 12:17:33 +02:00
Thilo Graf
4c8e3c6fd4 CTestMenu: ensure remove hintbox from screen after pressed exit button.
call of hide() was missed.

Use hintbox object on stack.
Is completely sufficient here.


Origin commit data
------------------
Commit: 912ca8647e
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-10-22 (Sat, 22 Oct 2016)
2016-10-24 10:31:28 +02:00
Thilo Graf
7179f3d3f0 Try to rework footer
* try to fix enableButtonShadow(), seems an init is missing
* shadow fixed


Origin commit data
------------------
Commit: 2e631fd0ce
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-09-24 (Sat, 24 Sep 2016)
2016-10-24 10:31:25 +02:00
Thilo Graf
4300865679 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


Origin commit data
------------------
Commit: a17d61de8c
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-08-30 (Tue, 30 Aug 2016)
2016-10-24 10:31:25 +02:00
Thilo Graf
749a4a7185 CTestMenu: adopt for last changes
Origin commit data
------------------
Commit: b233c06af3
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-08-27 (Sat, 27 Aug 2016)
2016-10-24 10:31:25 +02:00
Thilo Graf
ffdd2a760c CTestMenu: shadow for circle
TODO: not really nice at the moment


Origin commit data
------------------
Commit: 1888189fb3
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-08-19 (Fri, 19 Aug 2016)
2016-10-24 10:31:24 +02:00
Thilo Graf
e58f8fafd5 shadow: paint shadow layer with multiple renderboxes
Should help to paint a clean shadow frame


Origin commit data
------------------
Commit: 307b2763bd
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-08-18 (Thu, 18 Aug 2016)

Origin message was:
------------------
shadow: paint shadow layer with multiple renderboxes

Should help to paint a clean shadow frame
2016-10-24 10:31:24 +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
Thilo Graf
ee8f21c72c test_menue.cpp: fix broken build with --enable-testing
Origin commit data
------------------
Commit: 133ec1f2bb
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-10-11 (Tue, 11 Oct 2016)
2016-10-11 00:43:38 +02:00
vanhofen
e49ee18fb3 fonts: add and use own font for all footers
Origin commit data
------------------
Commit: 54f2ac510f
Author: vanhofen <vanhofen@gmx.de>
Date: 2016-08-15 (Mon, 15 Aug 2016)

Origin message was:
------------------
- fonts: add and use own font for all footers
2016-08-15 19:02:42 +02:00
Thilo Graf
f5932d9cd8 CComponentsTimer: rework timer class
Origin commit data
------------------
Commit: 4904279fd5
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-04-25 (Mon, 25 Apr 2016)
2016-04-25 10:26:32 +02:00
Jacek Jendrzej
632508bae5 src/gui/test_menu.cpp fix pugixml compil
Origin commit data
------------------
Commit: 929bc61cf5
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2016-03-12 (Sat, 12 Mar 2016)
2016-03-12 13:48:42 +01:00
Thilo Graf
f48a2a49e9 CTestMenu: disable unused vars
prevents possible compiler warnings or builderrors with pedantic gcc settings


Origin commit data
------------------
Commit: 9ff903f7a6
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-02-07 (Sun, 07 Feb 2016)
2016-02-16 09:39:05 +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
vanhofen
3429bd79b2 fix and use ICONSDIR variable; move ICONSSDIR_VAR to global.h
Origin commit data
------------------
Commit: 89a11de651
Author: vanhofen <vanhofen@gmx.de>
Date: 2015-05-06 (Wed, 06 May 2015)

Origin message was:
------------------
- fix and use ICONSDIR variable; move ICONSSDIR_VAR to global.h
2015-05-06 22:58:54 +02:00
Thilo Graf
fe311b3ee2 gui/test_menu.cpp: fix broken build
Fixed missing include that come with commit
2f0e76ff67


Origin commit data
------------------
Commit: 0f9fc4b870
Author: Thilo Graf <dbt@novatux.de>
Date: 2015-04-25 (Sat, 25 Apr 2015)
2015-04-30 09:39:42 +02:00
Thilo Graf
61656865d0 Merge branch 'cst-next.pre' into cst-next
Origin commit data
------------------
Commit: a58f1621b4
Author: Thilo Graf <dbt@novatux.de>
Date: 2015-04-30 (Thu, 30 Apr 2015)
2015-04-30 09:20:43 +02:00
vanhofen
92960161a9 remove w_max()-calls to define menu-width, because ...
w-max() returns a pixel-value, but menus need a percentage-value.


Origin commit data
------------------
Commit: 9041bff59c
Author: vanhofen <vanhofen@gmx.de>
Date: 2015-04-24 (Fri, 24 Apr 2015)

Origin message was:
------------------
- remove w_max()-calls to define menu-width, because ...

 w-max() returns a pixel-value, but menus need a percentage-value.
2015-04-24 09:11:04 +02:00
Thilo Graf
c9956ada97 CTestMenu: disable tuner test code
Doesn't work with newer frontend api, and not really required.


Origin commit data
------------------
Commit: 1f81228d7b
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-08-27 (Wed, 27 Aug 2014)
2015-03-29 22:39:48 +02:00
Thilo Graf
8be2c9da59 CTestMenu: remove window close statement
Origin commit data
------------------
Commit: 07c5547965
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-09-07 (Sun, 07 Sep 2014)
2014-09-25 11:02:39 +04:00
[CST] Focus
c33f6a8c85 gui/test_menu.cpp: sync fe test params; fix compile
Origin commit data
------------------
Commit: 5ec1873982
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2014-08-28 (Thu, 28 Aug 2014)
2014-08-28 10:04:55 +04:00
Thilo Graf
80c6f6f813 CTestMenu: remove unused variables
Origin commit data
------------------
Commit: 0806a2c30d
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-07-19 (Sat, 19 Jul 2014)
2014-08-26 17:26:49 +04:00
Thilo Graf
3224594375 CComponents: implement scroll functionality into CComponentsForm
CComponentsForm provides page scroll if found more
than one pre defined page and is working with all derivated sub classes from CComponentsForm .

Pages are defined with setPageNumber(0...n) in items (1st page = 0). The item page number property is
defined in variable cc_page_number. The highest page number sets the
count of pages inside container to required value. Thats compellingly!

To show a page, we can use setCurrentPage(0...n ) and paintCurPage() or use directly paintPage(0...n).
Note: global paint() will show the current page. Default page is 0 (as first).
Use setCurrentPage(0...n) to change this before first call of paint().
Note: In CComponentsWindow class, these methods are applied to window body.

For examples, take a look into CTestMenu


Origin commit data
------------------
Commit: 672757606c
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-06-26 (Thu, 26 Jun 2014)
2014-06-27 20:49:41 +02:00
Thilo Graf
46495cbf40 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.


Origin commit data
------------------
Commit: 5eb63b9515
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-06-20 (Fri, 20 Jun 2014)

Origin message was:
------------------
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
831f7bd8a6 CTestMenu: clean up, change some sample comments for footer init
Origin commit data
------------------
Commit: 7e6ce8acc6
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-05-05 (Mon, 05 May 2014)
2014-05-22 21:50:51 +02:00
Thilo Graf
dbd4bd10a4 CTestMenu: set dynamic size of buttons, use 1/10 of footer width
Origin commit data
------------------
Commit: 2bde5a6d08
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-05-01 (Thu, 01 May 2014)
2014-05-22 21:50:46 +02:00
Thilo Graf
f2a19fbc2d CComponentsButton, CComponentsFooter: rework bestfit of buttons inside chain
Origin commit data
------------------
Commit: 9ffdb1cb98
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-05-01 (Thu, 01 May 2014)
2014-05-22 21:50:45 +02:00
Thilo Graf
4af8bf7132 CTestMenu: add samples for new button handling in cc footer
Origin commit data
------------------
Commit: 45ce42e505
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-04-27 (Sun, 27 Apr 2014)
2014-05-22 21:50:45 +02:00
vanhofen
d7545ddf1f menu: add possibility to add a footer to the menus; fix alignment of menus
add footer-keys to testmenu

 (some of this code is based on code by martii; thx)


Origin commit data
------------------
Commit: 4fba818cc2
Author: vanhofen <vanhofen@gmx.de>
Date: 2014-04-11 (Fri, 11 Apr 2014)

Origin message was:
------------------
- menu: add possibility to add a footer to the menus; fix alignment of menus

 add footer-keys to testmenu

 (some of this code is based on code by martii; thx)
2014-04-11 00:26:52 +02:00
Thilo Graf
8b6c92681e CComponentsHeader: rework context button handling
CComponentsHeader uses now CComponentsIconForm, which is now derived
from CComponentsFrmChain. Some methods should be now simplified and
allow to handle some modifications easier.


Origin commit data
------------------
Commit: 6fe7b452c1
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-03-22 (Sat, 22 Mar 2014)
2014-04-02 08:40:21 +02:00
Thilo Graf
f33efdbdc4 CComponents: add new parameter 'parent'
Use strictly CComponentsForm as parent parameter in constructors.
Some parts have been cleaned up (Constructors, init methodes removed)

New parameter makes it possible already add current item in constructor.
So in mostly situations is it not necessary to use explicit addCCItem(),
but addCCItem()is still valid and necessary in certain situations.

Affected are all cc-classes and their derivates.
Some classes must or can be adapted later. The function is
not currently restricted, because usage of parent parameter is not explicit
defined in constructors, see CImageInfo, here yet are used addCCItem()
methodes.

Generally this parameter is located in the constructors before bool has_shadow,
but it is not sure whether it would be better to use this parameter as the first.
That remains to be clarified.


Origin commit data
------------------
Commit: 23d7b62cf0
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-03-03 (Mon, 03 Mar 2014)
2014-03-03 09:43:39 +01:00
Michael Liebmann
c259eb1dc8 CComponentsFrmClock: Fix thread handling
- Set clock activ = false for default


Origin commit data
------------------
Commit: ddc826ab51
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2014-02-13 (Thu, 13 Feb 2014)
2014-02-13 18:26:04 +01:00
vanhofen
8d5aa84e20 adapt ShowMsg handling from martii's neutrino-mp
Origin commit data
------------------
Commit: 53f5801d6f
Author: vanhofen <vanhofen@gmx.de>
Date: 2014-01-22 (Wed, 22 Jan 2014)

Origin message was:
------------------
- adapt ShowMsg handling from martii's neutrino-mp
2014-01-22 12:37:21 +01:00