Commit Graph

87 Commits

Author SHA1 Message Date
Thilo Graf
b233c06af3 CTestMenu: adopt for last changes 2016-10-24 10:31:25 +02:00
Thilo Graf
1888189fb3 CTestMenu: shadow for circle
TODO: not really nice at the moment
2016-10-24 10:31:24 +02:00
Thilo Graf
307b2763bd 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
dde298b1b7 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
2016-10-24 10:31:24 +02:00
Thilo Graf
133ec1f2bb test_menue.cpp: fix broken build with --enable-testing 2016-10-11 00:43:38 +02:00
svenhoefer
54f2ac510f - fonts: add and use own font for all footers 2016-08-15 19:02:42 +02:00
Thilo Graf
4904279fd5 CComponentsTimer: rework timer class 2016-04-25 10:26:32 +02:00
Jacek Jendrzej
929bc61cf5 src/gui/test_menu.cpp fix pugixml compil 2016-03-12 13:48:42 +01:00
Thilo Graf
9ff903f7a6 CTestMenu: disable unused vars
prevents possible compiler warnings or builderrors with pedantic gcc settings
2016-02-16 09:39:05 +01:00
Thilo Graf
0146511f38 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
svenhoefer
89a11de651 - fix and use ICONSDIR variable; move ICONSSDIR_VAR to global.h 2015-05-06 22:58:54 +02:00
Thilo Graf
0f9fc4b870 gui/test_menu.cpp: fix broken build
Fixed missing include that come with commit
09adc177d8
2015-04-30 09:39:42 +02:00
Thilo Graf
a58f1621b4 Merge branch 'cst-next.pre' into cst-next 2015-04-30 09:20:43 +02:00
svenhoefer
9041bff59c - 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
1f81228d7b CTestMenu: disable tuner test code
Doesn't work with newer frontend api, and not really required.
2015-03-29 22:39:48 +02:00
Thilo Graf
07c5547965 CTestMenu: remove window close statement 2014-09-25 11:02:39 +04:00
[CST] Focus
5ec1873982 gui/test_menu.cpp: sync fe test params; fix compile 2014-08-28 10:04:55 +04:00
Thilo Graf
0806a2c30d CTestMenu: remove unused variables 2014-08-26 17:26:49 +04:00
Thilo Graf
672757606c 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
2014-06-27 20:49:41 +02:00
Thilo Graf
5eb63b9515 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
7e6ce8acc6 CTestMenu: clean up, change some sample comments for footer init 2014-05-22 21:50:51 +02:00
Thilo Graf
2bde5a6d08 CTestMenu: set dynamic size of buttons, use 1/10 of footer width 2014-05-22 21:50:46 +02:00
Thilo Graf
9ffdb1cb98 CComponentsButton, CComponentsFooter: rework bestfit of buttons inside chain 2014-05-22 21:50:45 +02:00
Thilo Graf
45ce42e505 CTestMenu: add samples for new button handling in cc footer 2014-05-22 21:50:45 +02:00
svenhoefer
4fba818cc2 - 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
6fe7b452c1 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.
2014-04-02 08:40:21 +02:00
Thilo Graf
23d7b62cf0 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.
2014-03-03 09:43:39 +01:00
M. Liebmann
ddc826ab51 CComponentsFrmClock: Fix thread handling
- Set clock activ = false for default
2014-02-13 18:26:04 +01:00
svenhoefer
53f5801d6f - adapt ShowMsg handling from martii's neutrino-mp 2014-01-22 12:37:21 +01:00
M. Liebmann
0a5a7b3146 CScanSettings: convert char[...] configuration values to std::string 2014-01-19 20:57:38 +01:00
M. Liebmann
b41819190d Preparing the menu classes for Lua Part #2
- Remove CMenuForwarderNonLocalized
- Add overloaded function CMenuForwarder for non local
  THX Martii
2014-01-19 20:57:37 +01:00
M. Liebmann
90985f11d2 Adapting certain files to the changed font handling of info clock 2013-11-28 16:07:48 +01:00
svenhoefer
633278a532 Revert "CTestMenu: fix build, add missing include"
This reverts commit 25909c10b6.
2013-11-13 23:39:37 +01:00
Thilo Graf
25909c10b6 CTestMenu: fix build, add missing include
supplement to 3845feb0e4

Signed-off-by: Thilo Graf <dbt@novatux.de>
2013-11-13 11:54:31 +01:00
Thilo Graf
ac6f547d0f CTestMenu: add buildinfo as menu entry
Buildinfo also exists in infomenu, but is outcommented, so it is
prepared just for testings.
2013-11-11 00:20:10 +01:00
Thilo Graf
29abd4f1dd CTestMenu: add sample code for CComponentsExtTextForm 2013-11-11 00:19:46 +01:00
Thilo Graf
6f700d80c0 CTestMenu: add configure option --enable-testmenu 2013-11-05 13:22:28 +01:00
Thilo Graf
6dd1da0628 revert 6ee7fac1a5
Was bad idea to rename. Other Classes can also inherit this. See CMenuTarget
2013-10-26 23:25:59 +02:00
Thilo Graf
6ee7fac1a5 CComponents: rename hide() to hideCC()
There are too many name conflicts with hide-members in other classes.
2013-10-24 21:39:04 +02:00
Thilo Graf
2ed9357222 CTestMenu: add sample code for channel logo item 2013-10-06 17:14:31 +02:00
Thilo Graf
740e7e8129 CTestMenu: fix build of test menu, name of member was changed 2013-09-21 00:24:13 +02:00
Thilo Graf
03ef18cdb9 CComponentsFrmClock: set font only with fontrender object 2013-06-18 19:33:34 +02:00
Thilo Graf
b7e5121001 CTestMenu: add some sample codes for window and button handling, 2013-06-16 00:34:08 +02:00
[CST] Focus
1d3ec8c7af gui/test_menu.cpp: change tuner test params again 2013-06-13 19:24:10 +04:00
[CST] Focus
25dc8bc10f gui/test_menu.cpp: change scan test params, add mmc mount check 2013-06-13 13:14:26 +04:00
Michael Liebmann
6409cc8a19 CComponentsFrmClock: Move thread start/stop to constructor/destructor 2013-06-12 01:32:24 +02:00
Michael Liebmann
c5e0552438 CTestMenu: Fix memleak 2013-06-12 01:32:24 +02:00
[CST] Focus
23c387755c gui/test_menu.cpp: change tuner test code to support more than 2 and cable 2013-06-10 15:57:33 +04:00
Thilo Graf
fc3829d695 CTestMenu: add sample code for footer buttons, disable debug spam 2013-06-03 22:12:49 +02:00
Thilo Graf
e665ab18ab CComponentsFooter: add new class CComponentsFooter 2013-06-03 22:06:03 +02:00