Commit Graph

158 Commits

Author SHA1 Message Date
Thilo Graf
4df4ea1ac5 menue.h/cpp: add member to get item id by name 2021-07-19 05:52:59 +02:00
vanhofen
2a708439d4 - menue: simplifying lcd code
Conflicts:
	src/gui/widget/menue.cpp
2020-07-05 12:59:12 +02:00
Jacek Jendrzej
94be52cfea use pass by reference 2020-01-21 15:20:56 +01:00
Thilo Graf
890d04b0ca widget: reset some object vars to NULL, only for sure 2020-01-05 21:17:59 +01:00
svenhoefer
f0240d89a0 - pick graphlcd support from DDT but include it in another way
Conflicts:
	src/driver/Makefile.am
	src/driver/nglcd.cpp
	src/gui/Makefile.am
	src/gui/bouquetlist.cpp
	src/gui/channellist.cpp
	src/gui/osd_setup.cpp
	src/gui/widget/menue.cpp
	src/gui/widget/menue.h
	src/neutrino.cpp
	src/system/flashtool.cpp
	src/system/settings.h

Signed-off-by: Thilo Graf <dbt@novatux.de>
2020-01-05 16:53:14 +01:00
Thilo Graf
d46645ec93 menue.h/cpp: add method to override menu position from user settings 2019-06-20 20:41:19 +02:00
Thilo Graf
8eb418617b menue.cpp/h: re add SUB_HEAD option with some samples inside test menu 2019-04-03 15:35:29 +02:00
Thilo Graf
3f84d53b05 CMenueWidget: use native header as sub header 2019-04-02 16:34:56 +02:00
Thilo Graf
756968ab97 CMenueWidget: get header height directly from header object 2019-03-31 18:18:00 +02:00
Thilo Graf
06e968df78 CMenueWidget: add overloaded version of addIntroItems()
Allows additional usage of strings as text parameter.
2019-03-29 23:29:51 +01:00
Thilo Graf
f717984a83 menu.cpp: add member to set action key 2019-03-29 23:26:36 +01:00
Thilo Graf
e8bc676f76 CMenuOptionStringChooser: remember last item
useful for some cases if needed, default off
2019-03-18 15:53:21 +01:00
Thilo Graf
43f77618be /widget/menue.h/cpp: add missing signal OnAfterChangeOption() 2019-03-12 10:49:56 +01:00
svenhoefer
9913a578b2 - menu: add possibility to get action state of menu widget
Signed-off-by: Thilo Graf <dbt@novatux.de>
2018-12-31 11:47:44 +01:00
GetAway
99a6ab267d add lcd4linux support, ported from
defans and vanhofen, modded by TangoCash
2018-12-26 20:04:32 +01:00
svenhoefer
47105169e1 - menu: add condition to enable/disable items in record mode (version 2)
Signed-off-by: Thilo Graf <dbt@novatux.de>

Unused but useful if conditions are required to disable
or enable items depends of record mode.
2018-08-04 00:18:27 +02:00
Thilo Graf
1fda31ad12 src/gui/widget/menue.h: add plausible alias for disableSaveScreen() method 2018-07-28 14:34:48 +02:00
svenhoefer
28fab3c6da - menu: fix return value of getSelectedLine() for RC_timeout and RC_setup
This fixes the bahaviour of StartPosSelectionMenu in moviebrowser.
When this menu was closed by its timeout or RC_setup was pressed
the movie starts anyway.

Signed-off-by: Thilo Graf <dbt@novatux.de>
2018-07-18 11:56:46 +02:00
Thilo Graf
3301be5484 menu: add optional usage of toggle buttons to visualze options 2018-04-11 17:03:11 +02:00
Thilo Graf
86e9f742e6 src/gui/widget/menue.h: fix possible compile error with older compliers
avoids possible error with extended initializer lists,
only available with -std=c++11 or -std=gnu++11

supplement to:
'CMenuOptionNumberChooser: expand localize functionality for any number'
2018-04-05 16:34:05 +02:00
Thilo Graf
fdbddce9dd CMenuOptionNumberChooser: expand localize functionality for any number 2018-04-04 15:28:57 +02:00
Stefan Seyfried
1318b448a8 widget/menue: one more forgotten sys/types.h include 2018-01-13 20:08:50 +01:00
Stefan Seyfried
b982458d2d reduce dependencies on driver/rcinput.h
* add new header that only contains neutrino_msg_t and friends, often this
  is all that's needed instead of full rcinput.h
* directly include rcinput.h in some cpp files instead of relying on
  accidental inclusion in some header
* add class forward declarations to avoid dragging in rcinput indirectly
This could use more work to further reduce the impact; maybe separating
the CRCinput::key_* constants from the rcinput class would be good.
2018-01-13 20:08:20 +01:00
GetAway
7c9bf1df92 menue.cpp: dont use one-time init of a variable that could be changed on runtime
Signed-off-by: Thilo Graf <dbt@novatux.de>
2017-11-02 21:31:12 +01:00
svenhoefer
d9e540b865 - menue: add possibility to add localized values in CMenuOptionNumberChooser seperately 2017-09-26 12:41:05 +02:00
Thilo Graf
f0660dc66c CMenuItem: add members set/get info icon inside menu items 2017-09-17 13:52:43 +02:00
Thilo Graf
7f7054018b CMenuWidget: use CComponentsFooter for paint footers in menues
Another step for more unified window designs.
2017-09-14 12:14:41 +02:00
svenhoefer
f2ec46311c - plugin-code: cleanup from many unused code; ...
* remove intergration conversion because we can use the integer as it is
* update headers

  Do we need /src/plugin.h anymore? Maybe this code could be merged into src/gui/plugins.h.

Signed-off-by: Thilo Graf <dbt@novatux.de>
2017-09-14 12:14:41 +02:00
svenhoefer
cd5fc80ebe - menu: always add an offset to menus; not only in round-border-mode
Signed-off-by: Thilo Graf <dbt@novatux.de>
2017-09-14 12:14:41 +02:00
svenhoefer
944ad7cb63 Revert "neutrino: disable some menus in upnp & ts mode"
This reverts commit 90de51de38.

Signed-off-by: Thilo Graf <dbt@novatux.de>
2017-08-12 14:05:17 +02:00
GetAway
90de51de38 neutrino: disable some menus in upnp & ts mode
to prevent inoperability of neutrino
2017-08-07 07:52:41 +02:00
Thilo Graf
326a9634e1 CMenuSeparator: clean up multiple code parts 2017-06-18 00:04:40 +02:00
Thilo Graf
f2e8f95e66 CMenuOptionNumberChooser: clean up multiple code parts 2017-06-18 00:04:40 +02:00
Thilo Graf
7b3ce6f330 CMenuForwarder: clean up multiple code parts 2017-06-18 00:04:40 +02:00
Thilo Graf
284dba8c25 CMenuOptionStringChooser: clean up multiple code parts 2017-06-18 00:04:40 +02:00
Thilo Graf
8899660dad CMenuOptionChooser: clean up multiple code parts 2017-06-18 00:04:40 +02:00
M. Liebmann
2677543cc4 Merge branch 'master' into pu/fb-setmode 2017-03-13 21:55:50 +01:00
svenhoefer
5b0faeab8c - unify DetailsLine-names; move define to settings.h 2017-03-13 12:40:04 +01:00
M. Liebmann
30db40da1a CMenuWidget::calcSize: Recalculation of min_width ...
... for adjustment to the osd resolution
2017-03-13 09:55:58 +01:00
M. Liebmann
db8ea57da2 Merge branch 'master' into pu/fb-modules 2017-02-09 22:58:09 +01:00
Thilo Graf
0435ca20a3 CMenuWidget: remove dub code from init 2017-02-09 16:35:03 +01:00
Thilo Graf
2dda93ed2b CMenuWidget: use only nameString as container for widget name
neutrino_locale_t	name could be transformed always to real string to
unify this container
2017-02-09 15:52:39 +01:00
Stefan Seyfried
e490f84ea8 replace framebuffer.h include with forward declaration
instead of including framebuffer.h almost everywhere, replace it with
class CFrameBuffer forward declarations and/or generic system includes.
Add a hack to define fb_pixel_t to config.h (one reason for
framebuffer.h includes was the fb_pixel_t define)
2017-02-07 17:23:42 +01:00
Thilo Graf
c92fa3f0f4 menue.cpp: CChangeObserver add overloaded changeNotify() with string param 2016-12-23 20:46:30 +01:00
Jacek Jendrzej
91e0f8070b supplement to a8ea7c60d5 2016-11-25 16:45:26 +01:00
Jacek Jendrzej
a8ea7c60d5 src/gui/widget/menue.cpp try to fix widget segfault menu with keyboard and background restore 2016-11-24 19:21:14 +01:00
Thilo Graf
098905e8e1 CMenuTarget: outsource CMenuTarget-class
It's required for some inheritations into other classes if include
of menue.h is not wanted
2016-11-10 09:08:47 +01:00
Jacek Jendrzej
a918ca56b6 pass by reference 2016-04-20 12:52:16 +02:00
Thilo Graf
77518102f8 CMenuWidget: rework cc modules implementation
- don't create header instance on every widget paint.
- remove parameters from hide(), not needed anymore
- add signal/slot OnBeforePaint(), OnAfterHide()
- try to fix infoclock handling
- add member ResetModules()
- allow separator to paint with gradient
2015-12-27 14:42:28 +01:00
Thilo Graf
1f95f38d32 Main Menu: try to add dynamic possibility to disable items on runtime
The issue is that it's not really possible to disable/enable menu items on
runtime with an existant menu widget instance eg with personalized menu items.

Here we need a dynamic solution to disable items depends on stb-mode (mode_ts, mode_tv etc)
This should be solved here with an additional parameter for personalized items.

New paramter is named: disable_condition
Possible alvailable values at the moment are:

  DCOND_MODE_NONE as default

  DCOND_MODE_TV
  DCOND_MODE_RADIO
  DCOND_MODE_TS

includes some improvements by Sven

- menue: remove old_iconName handling
  ... icons should be painted on deactivated items too

- menue: try to fix position <-> selection missmatch
2015-12-22 13:14:18 +01:00