Normal
A plugin can now have its own setup/configuration form(s)I've setup a simple interface :[code]using System;namespace MediaPortal.GUI.Library{ /// <summary> /// Interface for plugin setup configuration screens. /// /// Plugins may have a configuration screen. By implementing this interface in your plugin /// MediaPortal will add it to the tools->plugin menu where users can configure your plugin /// Look at the home subproject for a sample /// </summary> public interface ISetupForm { string PluginName(); // Return the name which should b shown in the plugin menu string Description(); // Return the description which should b shown in the plugin menu string Author(); // Return the author which should b shown in the plugin menu void ShowPlugin(); // show the setup dialog bool CanEnable(); // Indicates whether plugin can be enabled/disabled int GetWindowId(); // get ID of plugin window /// <summary> /// If the plugin should have its own button on the home screen then it /// should return true to this method, otherwise if it should not be on home /// it should return false /// </summary> /// <param name="strButtonText">text the button should have</param> /// <param name="strButtonImage">image for the button, or empty for default</param> /// <param name="strButtonImageFocus">image for the button, or empty for default</param> /// <param name="strPictureImage">subpicture for the button or empty for none</param> /// <returns>true : plugin needs its own button on home /// false : plugin does not need its own button on home</returns> bool GetHome(out string strButtonText, out string strButtonImage, out string strButtonImageFocus, out string strPictureImage); }}[/code]If your own plugin contains class(es) which implement this interface they will show up on the tools->plugin... menu When a user wants to configure the plugin the ShowPlugIn() will be calledFrodo
A plugin can now have its own setup/configuration form(s)
I've setup a simple interface :
[code]
using System;
namespace MediaPortal.GUI.Library
{
/// <summary>
/// Interface for plugin setup configuration screens.
///
/// Plugins may have a configuration screen. By implementing this interface in your plugin
/// MediaPortal will add it to the tools->plugin menu where users can configure your plugin
/// Look at the home subproject for a sample
/// </summary>
public interface ISetupForm
string PluginName(); // Return the name which should b shown in the plugin menu
string Description(); // Return the description which should b shown in the plugin menu
string Author(); // Return the author which should b shown in the plugin menu
void ShowPlugin(); // show the setup dialog
bool CanEnable(); // Indicates whether plugin can be enabled/disabled
int GetWindowId(); // get ID of plugin window
/// If the plugin should have its own button on the home screen then it
/// should return true to this method, otherwise if it should not be on home
/// it should return false
/// <param name="strButtonText">text the button should have</param>
/// <param name="strButtonImage">image for the button, or empty for default</param>
/// <param name="strButtonImageFocus">image for the button, or empty for default</param>
/// <param name="strPictureImage">subpicture for the button or empty for none</param>
/// <returns>true : plugin needs its own button on home
/// false : plugin does not need its own button on home</returns>
bool GetHome(out string strButtonText, out string strButtonImage, out string strButtonImageFocus, out string strPictureImage);
}
[/code]
If your own plugin contains class(es) which implement this interface they will show up on the tools->plugin... menu
When a user wants to configure the plugin the ShowPlugIn() will be called
Frodo