Commit Graph

48 Commits

Author SHA1 Message Date
Thilo Graf
4875f81491 CPersonalizeGui: try to fix wrong active mode after changed settings
By treating of notifier methods or generally changed personalization
settings of items, the values of "active" and "current_active" may differ
and although that could be active = true, current_active = false, or
vice versa. After restart of neutrino it would not conspicuous because
activ and current_active will be equated.
Otherwise it can happen, the modified items could be displayed
in wrong mode at runtime.
This try should fix this by writing the values from the current
settings into the current_active variable.
2015-12-27 14:42:32 +01:00
Thilo Graf
f3d624b2bc CPersonalizeGui: try to fix disabled observer item
This should avoid disabling observer items inside personalize menu,
because it's possible to lock out an observer item itself.
In This case it's not possible to
enable this item on runtime. Neutrino restart is required.

This effect was observed in mode_ts if an user has tried to change
settings for tv/radio switch. If all three items were disabled, it was
not possible to enable observed items.

NOTE: I think it's not a good idea to enable certain items in main menu or
full sub menus like settings in mode_ts. ...
What should a user do with that during watch a movie? Play with tuner settings, bouquet-, network-, drive settings etc.?
Some users could cause harm, therefore I can't recommend to hold this current state.
2015-12-27 14:42:31 +01:00
Thilo Graf
aec64e8c6c personalize.cpp: add doc for disable conditions 2015-12-22 13:14:18 +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
svenhoefer
520660296b - personalize: add deactivated items too; ...
... visibility is controlled in personalization itself
2015-12-19 18:06:23 +01: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
Jacek Jendrzej
2b5e7b5ba3 use empty to check string 2015-01-09 17:15:11 +01:00
Jacek Jendrzej
5b58992de2 CPersonalizeGui::addPersonalizedItems() fix digikey shortcut after use Personalize-Menu 2014-11-11 21:28:03 +01: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
martii
e84782bc4c drop explicit CMenuForwarder icon assignments
Conflicts:
	src/gui/3dsetup.cpp
	src/gui/bouquetlist.cpp
	src/gui/hdd_menu.cpp
	src/gui/keybind_setup.cpp
	src/gui/mediaplayer.cpp
	src/gui/mediaplayer_setup.cpp
	src/gui/moviebrowser.cpp
	src/gui/network_setup.cpp
	src/gui/nfs.cpp
	src/gui/osd_setup.cpp
	src/gui/osdlang_setup.cpp
	src/gui/parentallock_setup.cpp
	src/gui/personalize.cpp
	src/gui/proxyserver_setup.cpp
	src/gui/record_setup.cpp
	src/gui/scan_setup.cpp
	src/gui/screensetup.cpp
	src/gui/settings_manager.cpp
	src/gui/timerlist.cpp
	src/gui/update_menue.cpp
	src/gui/vfd_setup.cpp
	src/gui/videosettings.cpp
	src/neutrino_menue.cpp
2014-09-15 11:44:08 +04:00
[CST] Focus
d2c836049b gui/personalize.cpp: try to fix usermenu delete 2014-09-09 15:28:35 +04:00
svenhoefer
fafb7399d1 - personalize.cpp: add shortcut to pluginSelectionMenu 2014-09-08 21:20:15 +02:00
svenhoefer
7792a9658e - personalize.cpp: remove non-working colored hotkeys 2014-09-08 21:02:52 +02:00
svenhoefer
c80f73c2c5 - personalize.cpp: resort usermenu 2014-09-08 17:42:10 +02: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
cf91f2eccb merge neutrino-mp menu/buttons/icons changes, (C) martii 2014-07-17 17:02:25 +04:00
M. Liebmann
ee99902be3 CPersonalizeGui: Replaces CMenuOptionChooser::getOptionName() by getName()
Signed-off-by: Thilo Graf <dbt@novatux.de>

partial revert of afbd87083b
2014-04-09 19:02:38 +02:00
M. Liebmann
8f5f6fa0b3 CPersonalizeGui::changeNotify: Fix display error
Signed-off-by: Thilo Graf <dbt@novatux.de>

Resolves issue for repaint of observed items in personalize menu.
In this case, text of item 'TV-' and 'Radio-Mode' was not updated
after switched tv/radio mode item
2014-04-09 19:02:38 +02:00
martii
eb206ae523 gui/widget/menue, gui/osdlang_setup: drop CMenuOptionLanguageChooser class 2014-03-02 21:31:26 +01:00
svenhoefer
70f61217f7 - personalizing: show menuhints in plugin type selection menu 2014-02-21 23:59:45 +01:00
Stefan Seyfried
1d4025d3be personalize: reduce include impact of plugins.h
use forward declaration of CPlugins instead of including
plugins.h in personalize.h to reduce the massive impact
of this header file
2014-02-18 14:02:54 +01:00
svenhoefer
e97ea955c9 - plugins: type for listed plugins on blue key is more selectable 2014-02-06 22:51:18 +01:00
svenhoefer
f9ad30f183 - plugins: type for listed plugins on blue key is selectable
* add mainmenu items for tools and lua-extensions
  (default not visible)
* add usermenu items for tools and lua-extensions
  (default off)
2014-02-04 09:08:21 +01:00
svenhoefer
53f5801d6f - adapt ShowMsg handling from martii's neutrino-mp 2014-01-22 12:37:21 +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
[CST] Focus
40e3106e53 gui/personalize.cpp: fix pin change active/enactive,
broken after commit 404de5376b
2013-11-06 15:09:58 +04:00
[CST] Focus
3a5d58f139 gui/personalize.cpp: fix pin access in case personalize pin is off,
but items with enabled pincode present
2013-11-06 15:09:58 +04:00
[CST] Focus
404de5376b gui/personalize.cpp: fix CPinSetupNotifier: return false, menu repaint not needed 2013-11-05 11:44:43 +04:00
[CST] Focus
6b58f32c48 gui/personalize.cpp: fix memleak, fix warnings 2013-10-25 13:53:36 +04:00
[CST] Focus
606bd01878 as requested, implement 'easy' menu mode for novice users;
default behavior should not be changed, easy mode forced by /var/etc/.easymenu file inside image;
at the moment switch between modes is done by main menu -> 'stop' button -> enter pin code,
restart needed after mode switch
2013-10-25 13:03:26 +04:00
Thilo Graf
0dc4686874 fix license text, sorry, was a c&p error 2013-03-21 11:37:00 +01:00
Thilo Graf
12e778773b *user_menu: personalize also yellow and green buttons 2012-11-05 21:26:19 +01:00
Thilo Graf
24dd74e471 personalize: changeNotify - no repaint menu after changed option values
reduces the flicker effect on screen
2012-07-08 22:01:12 +02:00
[CST] Focus
1e411cdafd gui/personalize.cpp: copy hint fields 2012-07-08 21:40:49 +04:00
[CST] Focus
f84dab82f2 gui/personalize.cpp: remove unused lcdcontroler.h include 2012-06-13 18:24:26 +04:00
[CST] Focus
0319c4faad GUI: remove CMenuWidget->hide() calls - CMenuWidget->exec() always hide before return 2012-05-07 15:37:02 +04:00
Thilo Graf
5aff1f189c personalize: clean up
remove unused code in addSeparator()
thx focus for hint
2012-05-04 08:45:59 +02:00
[CST] Focus
c2578710fe gui/personalize.cpp: fix memleak in addSeparator(), fix close all on menu key 2012-05-03 17:14:56 +04:00
focus
107d65aafb gui/personalize.cpp: fix memleaks - delete all created CUserMenuSetup
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-beta@2163 e54a6e83-5905-42d5-8d5c-058d10e6a962
2012-03-26 15:27:46 +00:00
thilo
3e4f90c194 *neutrino personalize: rework pin access
PIN access of  personalize setup now managed with an own pin management.

git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-beta@2105 e54a6e83-5905-42d5-8d5c-058d10e6a962
2012-02-15 18:21:52 +00:00
thilo
5f8fd9b42e *neutrino personalize: add observed option choosers in personalize menu
Add new parameter 'observer_Item'.
If you want to observe an item with another item (observer), then use this
new prameter.
Effect: While user sets an option of an observer item  to
'visible' or 'pin-protected', the observed items are deactivated.

git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-beta@2078 e54a6e83-5905-42d5-8d5c-058d10e6a962
2012-01-28 15:28:13 +00:00
thilo
0db7df99bd *neutrino usermenu: rework manage of usermenu name
TODO:
- fix handling of menu names on changed buttons in infoviewer
- fix handling in user menu setup, if no item was defined
...just to name a few

git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-beta@2036 e54a6e83-5905-42d5-8d5c-058d10e6a962
2012-01-05 23:38:54 +00:00
thilo
27a44fc37d *neutrino: leave personalize setup with menu key
Note: works not in sub menues

git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-beta@2018 e54a6e83-5905-42d5-8d5c-058d10e6a962
2011-12-28 00:20:04 +00:00
thilo
c1cb264231 *neutrino personalize: don't use codlines for prevered keys
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-beta@2012 e54a6e83-5905-42d5-8d5c-058d10e6a962
2011-12-28 00:19:26 +00:00
thilo
aaa988db5f *neutrino: port personalize feature from tuxbox
This is a partial port of original neutrino personalize feature
and includes also moving of user menu settings from key setup into this setup,
but it's not completley yet in some details and so I think it's a lot to do.
I hope it works fine and the many user requests are justifying this feature.

TODO:
- doc into wiki
- adapt for yWeb
- some reworks for user menu settings and plugin management
- add timer and rework tv radio mode switch item(s)
and many more...

please report: http://www.dbox2world.net/board293-coolstream-hd1/board314-coolstream-development/9565-diskussion-neutrino-goes-neutrinohd-welche-features-funktionen-aus-dem-tuxbox-cvs-%C3%BCbernehmen/

git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-beta@2010 e54a6e83-5905-42d5-8d5c-058d10e6a962
2011-12-28 00:19:15 +00:00