This describes the SystemStateMenu plugin, which is provides various actions to shutdown, suspend or restart the pc or close MediaPortal 2.
github pull request: https://github.com/MediaPortal/MediaPortal-2/pull/14
Opening the shutdown menu
The following ways to open the shutdown menu are the default ones. It does not mean these are fixed and not configurable. These are meant to be the default ones.
Button on homescreen The menu is available as a button on homescreen and should replace the current three buttons (suspend, minimize, close). Power button on remote The power button on a remote should also open the menu Keyboard button A keyboard button should be mapped to open the menu. Suggestion: s
It is possible to configure the visibilty of each item to hide those, which are not used at all. Item order It is possible to reorder the items. Default selected / focused item It should be possible to define the item, which is focused by default to allow easily executing the favorite command with less navigation steps.
Shutdown modes (list items)
visible by default
Define custom shutdown timer
This will open another screen. see below
maybe not needed at all?
Plugin GUI (Dialogs)
The shutdown dialog is based on a simple empty dialog (screens\master_dialog_bare.xaml).
The content is a list of buttons  based on an ItemList,
The visibility and position of each item is configurable through the ConfigureShutdownActionsDialog.
All items are executing
- Available items are provided by an item list.
Each item has a boolean IsVisible (or IsHidden) property.
The item list is ordered so that each item has a configurable position (index).
- The checkbox button's IsChecked value has data binding to the IsVisible property of the item.
- The Up button allows to decrease the index of the item in the list (move up).
If first item, then Up button is disabled.
- The Down button allows to increase the index of the item in the list (move down).
If last item, then Down button is disabled.
This page has no comments.