Commit Graph

115 Commits

Author SHA1 Message Date
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
M. Liebmann
189b2e0fb0 Disable multimedia plugins and video functions...
...(movie player & upnp browser) when movieplayer is in use
2015-12-08 12:01:25 +01:00
svenhoefer
524563f448 - menue: allow brief hints in all introItems 2015-05-19 12:28:28 +02:00
svenhoefer
af90286a30 - start_wizard: use a global enum; switch detection from bool to int 2015-05-15 03:46:50 +02:00
Thilo Graf
01516cf943 themes: use hintbox and header gradient option in theme settings
Color gradient feature was originally intended for use
inside theme settings and it's not really suitable  for
generally use as default in all themes at the moment, so it makes more
sense to have options in theme settings and let the user decide
to customize this, unless enough other gui parts can use this feature.
2015-04-29 10:16:55 +02:00
Thilo Graf
d3f9aa33f7 CMenuWidget: move include of neutrino_menue.h to menue.h
makes explicit include unnecessary if it is needed by a widget, eg: widget id's are
parameter of constructor and is one of required widget elements.
2015-03-29 22:40:00 +02:00
Thilo Graf
930b40588c CMenuWidget: fix getSelected() member
preselected was not suitable as return value
2015-03-29 22:39:59 +02:00
svenhoefer
389c4c232f - plugins: simplify integratePlugins(); ...
* CPluginsExec(): switch to singleton
* move CPluginsExec() to pluginlist.cpp|h
  because it's not really a settings_helper
2014-11-10 22:41:08 +01:00
[CST] Focus
2b50060bab gui/widget/menue.cpp: add activate observer to notify when item become active 2014-10-22 16:15:27 +04:00
M. Liebmann
7293c53600 CMenuWidget::integratePlugins(): Add shortcut parameter 2014-10-16 09:49:19 +02:00
M. Liebmann
940a41aab2 CMenuWidget: Add function getNextShortcut()/setNextShortcut()
for setting of direktkey in the plugin integration
2014-10-16 09:49:18 +02:00
svenhoefer
1b5a30c326 - add function to integrate plugins
TODO: maybe find a solution without void *pluginsExec
Thanks to micha-bbg and SatBaby
2014-09-29 14:38:43 +04:00
[CST] Focus
420af7a4dc neutrino: sync keybind and usermenu code with neutrino-mp, code (C) martii 2014-09-05 17:49:11 +04:00
[CST] Focus
7cee5d3b2e gui/widget/menue.h: fix suppressDetailsLine() 2014-07-17 17:02:32 +04:00
[CST] Focus
cf91f2eccb merge neutrino-mp menu/buttons/icons changes, (C) martii 2014-07-17 17:02:25 +04:00
Thilo Graf
793230e9a7 CMenuWidget: add member to suppress paint of details line
In some situations is it more senseful to suppress painting of details line.
Required if menu window is painted over another window.
The hide() functionality of detailsline paints only an empty background on screen so we have
blank parts on screen. That looks bad. For example, this is to observe
on context menu in channellist.

We should see this as a workaround. It is not certain whether the
details line is really needed in the future.
2014-06-23 18:43:47 +02:00
Thilo Graf
d87807af67 CMenuWidget: implement CComponentsFooter, remove paintButtons 2014-05-22 21:50:51 +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
5f7f453bd7 /gui/widget/menue.cpp: rework constructors, use methodes for init
Many redundant code lines were never been refactored or reduced,
but instead came many in with some of last changes e.g. b41819190d
2014-04-09 19:02:38 +02:00
M. Liebmann
e07af686f0 CMenuOptionChooser: Remove bad function getOptionName()
- Please use getName() as replacement.

Signed-off-by: Thilo Graf <dbt@novatux.de>

partial revert of afbd87083b
2014-04-09 19:02:37 +02:00
[CST] Focus
b36a66db34 gui/widget/menue.cpp: add CMenuOptionChooser::setOptions 2014-03-21 17:18:21 +04:00
Thilo Graf
8a39f01a79 CMenuItem: remove redundant member for background paint
It seems this method came with more functionality in past,
but it's currently not required in that Form.
2014-03-03 08:54:10 +01:00
martii
eb206ae523 gui/widget/menue, gui/osdlang_setup: drop CMenuOptionLanguageChooser class 2014-03-02 21:31:26 +01:00
M. Liebmann
08130328a0 CMenuForwarder: Fix options handling 2014-01-30 09:13:51 +01:00
svenhoefer
6a821fe2a5 - CLuaInstance::MenuAddItem: add 'next' and 'cancel' items 2014-01-27 21:10:41 +01:00
M. Liebmann
82d4832013 Add a --enable-lua switch to enable LUA support 2014-01-21 17:05:24 +01:00
M. Liebmann
31842369cc Preparing the input classes for Lua
- Add non locale variants for CExtendedInput, CStringInput,
  CStringInputSMS, CPINInput
  THX Martii
2014-01-19 20:57:38 +01:00
M. Liebmann
afbd87083b Preparing the menu classes for Lua Part #3
- Add non locale variants for CMenuOptionNumberChooser and
  CMenuOptionChooser
- Adaptation of CMenuOptionStringChooser, CChangeObserver
  THX Martii
2014-01-19 20:57:37 +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
2c9c9debcc Preparing the menu classes for Lua Part #1
- Remove CNonLocalizedMenuSeparator
- Add overloaded function CMenuSeparator for non local
  THX Martii
2014-01-19 20:57:37 +01:00
M. Liebmann
9af1cdb318 CMenuOptionChooser: Fix multiple menu items, when using sort option 2014-01-04 15:25:28 +01:00
M. Liebmann
8832b803bd CMenuOptionChooser: Add alphanumeric sort option
- default is false
- Activate by OptionsSort = true
2014-01-04 13:08:48 +01:00
Christian Schuett
7d04113307 Neutrino menu forwarder: add possibility to show value from jump target
based on idea by martii <m4rtii@gmx.de> in Neutrino-MP Git
2013-12-30 23:25:26 +01:00
martii
cbc9299df8 convert most char[...] configuration values to std::string
Signed-off-by: Jacek Jendrzej <crashdvb@googlemail.com>
2013-12-25 12:08:14 +01:00
martii
a0f2960501 gui/scan_setup: show unit for motor speed 2013-12-22 16:36:13 +01:00
martii
86221de3d9 gui/widget/menu: CMenuOptionNumberChooser: add option to show units 2013-12-21 22:04:24 +01:00
Thilo Graf
e2d920660e CMenuForwarder: declare some members as const
Technically some member functions can be const
2013-12-03 14:55:39 +01:00
[CST] Focus
ac773ea896 gui/widget/menue.cpp: add CMenuDForwarderNonLocalized 2013-11-29 17:27:10 +04:00
Thilo Graf
f7798affc6 CComponents: add unfied header file for general include of cc classes
Provides a unified header file, so it is not required to select a
certain header file.
2013-10-24 21:19:07 +02:00
[CST] Focus
5d95016b37 colorchooser: display selected color in menue, based on patch (c) martii <m4rtii@gmx.de> 2013-07-18 14:51:59 +04:00
martii
ca519aa074 widget/menue: implement CMenuOptionNumberChooser::getWidth() 2013-07-18 14:51:58 +04:00
martii
3d187e56da CMenuWidget: add action keys
Conflicts:
	src/gui/widget/menue.h
2013-07-18 14:51:58 +04:00
[CST] Focus
8b5bbf8911 gui/widget/menue.cpp: add CMenuItem isStatic param, (c) martii <m4rtii@gmx.de> 2013-07-18 14:51:58 +04:00
Michael Liebmann
5f4d598b1e Revert "CMenuForwarder: Use std::string (not pointer to std::string or char) for option"
This reverts commit b5d1322617.
2013-07-04 07:45:51 +02:00