Page tree


Search

  Wiki Navigation

    Loading...


 Recently Updated


 Latest Releases

 MediaPortal 1.23 
            Releasenews | Download
 MediaPortal 2.2.2
            Releasenews | Download

Purpose

  • Required:  Yes
  • Type of Change:  Rework

In 1.2.0. Beta an Incompatible Plugins dialog was introduced at startup to show the plugins that where found to be incompatible based on the new compatibility system. This dialog was implemented using WinForms, which causes certain visual and functional issues.

Description of Change

A new skinnable dialog has been implemented to replace the WinForms dialog.  Thus all skins must provide DialogIncompatiblePlugins.xml

The new dialog should cover the entire screen area as there is no other window to provide a background (it is a dialog only to avoid getting into the window manager's history). There is a 30 second timeout, after which the dialog will close automatically. It contains a list view to show the incompatible plugins, and one button to allow the user to continue without waiting for the timeout.

 

Controls on the dialog are:

 

Control ID

Control

Purpose

2

ListControl (GUIListControl)

This is the list of plugins that are incompatible

3

Button (GUIButtonControl)

This button if selected will close the dialog (which will close automatically after 30 seconds anyway)

 

The dialog defines a property: #countdownseconds. This property returns the number of seconds remaining until the dialog closes automatically. If the user moves focus to the list, the countdown stops and #countdownseconds is set to an empty string.

You can use the expression in the sample below to show the countdown inside the button label.

 

Also two new localizable strings are defined for use in the dialog:

 

String ID

English text

1911

The following plugins are incompatible with this version of MediaPortal and were automatically disabled:

1912

Continue

Continue ({0})...

Continue ({0})...

 String 1912 allows embedding the #countdownseconds property in the button text.

Additional Information and References

Mantis Issue:

3581

Related xml(s):

DialogIncompatiblePlugins.xml (new)

Windows IDs:

2021

Related GUI control:

 

Author:

arion_p

Date added:

Mon, 30 May 2011

XML/Code Samples

<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<window>
  <id>2021</id>
  <defaultcontrol>3</defaultcontrol>
  <allowoverlay>no</allowoverlay>
  <controls>
    <control>
      <id>0</id>
      <type>image</type>
      <width>1280</width>
      <height>720</height>
      <texture>background.png</texture>
    </control>
    <control>
      <type>label</type>
      <id>0</id>
      <posX>60</posX>
      <posY>27</posY>
      <font>font16</font>
      <align>left</align>
      <label>1910</label>
      <textcolor>White</textcolor>
    </control>
    <control>
      <id>0</id>
      <type>image</type>
      <posX>512</posX>
      <posY>232</posY>
      <colordiffuse>d0d0d0d0</colordiffuse>
      <texture>warning-icon.png</texture>
    </control>
    <control>
      <id>0</id>
      <description>dialog line 1</description>
      <type>textbox</type>
      <posX>60</posX>
      <posY>66</posY>
      <width>1160</width>
      <height>88</height>
      <textcolor>ffffffff</textcolor>
      <font>font13</font>
      <align>LEFT</align>
      <label>#(L(1911))</label>
    </control>
    <control>
      <id>2</id>
      <description>listcontrol</description>
      <type>listcontrol</type>
      <onright>3</onright>
      <ondown>3</ondown>
      <posX>60</posX>
      <posY>169</posY>
      <width>785</width>
      <height>439</height>
      <scrollOffset>2</scrollOffset>
      <unfocusedAlpha>160</unfocusedAlpha>
    </control>
    <control>
      <id>3</id>
      <description>Continue button</description>
      <type>button</type>
      <onleft>2</onleft>
      <onup>2</onup>
      <posX>826</posX>
      <posY>632</posY>
      <width>400</width>
      <height>47</height>
      <textureFocus>button_focus.png</textureFocus>
      <textureNoFocus>button_nofocus.png</textureNoFocus>
      <label>#(string.formatcount(iif(eq(#countdownseconds,''),0,#countdownseconds), 1912))</label>
      <textalign>CENTER</textalign>
    </control>
  </controls>
</window>

Screenshots

 

   

 

This page has no comments.