Child pages
  • SystemStateMenu


Search

  Wiki Navigation

    Loading...


 Recently Updated


 Latest Releases

 MediaPortal 1.22 
            Releasenews | Download
 MediaPortal 2 2.2.1 
            Releasenews | Download

Table of Contents

Overview

This describes the SystemStateMenu plugin, which is provides various actions to shutdown, suspend or restart the pc or close MediaPortal 2.

source code: https://github.com/MediaPortal/Media...ystemStateMenu

github pull request: https://github.com/MediaPortal/MediaPortal-2/pull/14

mantis: http://mantis.team-mediaportal.com/view.php?id=3998

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

Configuration

Visibility

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)

 

List item

visible by default

comment

Suspend

yes

 

Hibernate

no

 

Shutdown

yes

 

Define custom shutdown timer

yes

This will open another screen. see below

Restart

yes

 

Minimize

no

 

Close MediaPortal

yes

 

(Restart MediaPortal)

no

maybe not needed at all?

Plugin GUI (Dialogs)

ShutdownDialog

The shutdown dialog is based on a simple empty dialog (screens\master_dialog_bare.xaml).

The content is a list of buttons [1] based on an ItemList,

The visibility and position of each item is configurable through the ConfigureShutdownActionsDialog.

All items are executing 

ConfigureShutdownActionsDialog

  1. 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).
  2. The checkbox button's IsChecked value has data binding to the IsVisible property of the item.
  3. The Up button allows to decrease the index of the item in the list (move up).
    If first item, then Up button is disabled.
  4. 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.