|
From: <an...@us...> - 2007-03-11 15:18:17
|
Revision: 182
http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=182&view=rev
Author: and-81
Date: 2007-03-11 08:18:13 -0700 (Sun, 11 Mar 2007)
Log Message:
-----------
Modified Paths:
--------------
trunk/plugins/ComSkipLauncher TVE2/AssemblyInfo.cs
trunk/plugins/ComSkipLauncher TVE2/ComSkipLauncher.cs
trunk/plugins/ComSkipLauncher TVE3/AssemblyInfo.cs
trunk/plugins/ComSkipLauncher TVE3/ComSkipLauncher.cs
trunk/plugins/MCEReplacement/Forms/MacroEditor.cs
trunk/plugins/MCEReplacement/MCEReplacement.cs
trunk/plugins/MCEReplacement/MCEReplacement.csproj
trunk/plugins/TV3MceBlaster/TV3MceBlaster.cs
Added Paths:
-----------
trunk/plugins/ComSkipLauncher TVE2/ComSkipLauncher TVE2.csproj
trunk/plugins/ComSkipLauncher TVE3/ComSkipLauncher TVE3.csproj
trunk/plugins/ComSkipLauncher TVE3/PluginSetup.Designer.cs
trunk/plugins/ComSkipLauncher TVE3/PluginSetup.cs
trunk/plugins/ComSkipLauncher TVE3/PluginSetup.resx
Removed Paths:
-------------
trunk/plugins/ComSkipLauncher TVE2/ComSkipLauncher.csproj
trunk/plugins/ComSkipLauncher TVE3/ComSkipLauncher.csproj
trunk/plugins/ComSkipLauncher TVE3/Configuration.Designer.cs
trunk/plugins/ComSkipLauncher TVE3/Configuration.cs
trunk/plugins/ComSkipLauncher TVE3/Configuration.resx
Modified: trunk/plugins/ComSkipLauncher TVE2/AssemblyInfo.cs
===================================================================
--- trunk/plugins/ComSkipLauncher TVE2/AssemblyInfo.cs 2007-03-11 13:44:57 UTC (rev 181)
+++ trunk/plugins/ComSkipLauncher TVE2/AssemblyInfo.cs 2007-03-11 15:18:13 UTC (rev 182)
@@ -8,7 +8,7 @@
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
//
-[assembly: AssemblyTitle("ComSkipLauncher")]
+[assembly: AssemblyTitle("ComSkipLauncher TVE2")]
[assembly: AssemblyDescription("Launches ComSkip when a recording completes")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("For MediaPortal")]
Added: trunk/plugins/ComSkipLauncher TVE2/ComSkipLauncher TVE2.csproj
===================================================================
--- trunk/plugins/ComSkipLauncher TVE2/ComSkipLauncher TVE2.csproj (rev 0)
+++ trunk/plugins/ComSkipLauncher TVE2/ComSkipLauncher TVE2.csproj 2007-03-11 15:18:13 UTC (rev 182)
@@ -0,0 +1,87 @@
+<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <PropertyGroup>
+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+ <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+ <ProductVersion>8.0.50727</ProductVersion>
+ <SchemaVersion>2.0</SchemaVersion>
+ <ProjectGuid>{35EE9B81-1774-498E-94A0-0FD47E213FB5}</ProjectGuid>
+ <OutputType>Library</OutputType>
+ <AppDesignerFolder>Properties</AppDesignerFolder>
+ <RootNamespace>MediaPortal.Plugins</RootNamespace>
+ <AssemblyName>ComSkipLauncher</AssemblyName>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+ <DebugSymbols>false</DebugSymbols>
+ <DebugType>full</DebugType>
+ <Optimize>false</Optimize>
+ <OutputPath>bin\Debug\</OutputPath>
+ <DefineConstants>DEBUG</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ <UseVSHostingProcess>false</UseVSHostingProcess>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+ <DebugType>none</DebugType>
+ <Optimize>true</Optimize>
+ <OutputPath>bin\Release\</OutputPath>
+ <DefineConstants>
+ </DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ <UseVSHostingProcess>false</UseVSHostingProcess>
+ </PropertyGroup>
+ <ItemGroup>
+ <Reference Include="Core, Version=1.0.2581.1884, Culture=neutral, processorArchitecture=MSIL">
+ <SpecificVersion>False</SpecificVersion>
+ <HintPath>..\..\MediaPortal\Core\bin\Release\Core.dll</HintPath>
+ <Private>False</Private>
+ </Reference>
+ <Reference Include="Databases, Version=1.0.2623.6915, Culture=neutral, processorArchitecture=x86">
+ <SpecificVersion>False</SpecificVersion>
+ <HintPath>..\..\MediaPortal\xbmc\bin\Release\Databases.dll</HintPath>
+ <Private>False</Private>
+ </Reference>
+ <Reference Include="System" />
+ <Reference Include="System.Data" />
+ <Reference Include="System.Drawing" />
+ <Reference Include="System.Windows.Forms" />
+ <Reference Include="System.Xml" />
+ <Reference Include="TVCapture, Version=1.0.2623.6917, Culture=neutral, processorArchitecture=x86">
+ <SpecificVersion>False</SpecificVersion>
+ <HintPath>..\..\MediaPortal\xbmc\bin\Release\TVCapture.dll</HintPath>
+ <Private>False</Private>
+ </Reference>
+ <Reference Include="Utils, Version=1.0.2622.31921, Culture=neutral, processorArchitecture=x86">
+ <SpecificVersion>False</SpecificVersion>
+ <HintPath>..\..\MediaPortal\Utils\bin\Release\Utils.dll</HintPath>
+ <Private>False</Private>
+ </Reference>
+ </ItemGroup>
+ <ItemGroup>
+ <Compile Include="ComSkipLauncher.cs" />
+ <Compile Include="AssemblyInfo.cs" />
+ <Compile Include="Configuration.cs">
+ <SubType>Form</SubType>
+ </Compile>
+ <Compile Include="Configuration.designer.cs">
+ <DependentUpon>Configuration.cs</DependentUpon>
+ </Compile>
+ </ItemGroup>
+ <ItemGroup>
+ <EmbeddedResource Include="Configuration.resx">
+ <DependentUpon>Configuration.cs</DependentUpon>
+ <SubType>Designer</SubType>
+ </EmbeddedResource>
+ </ItemGroup>
+ <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
+ <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
+ Other similar extension points exist, see Microsoft.Common.targets.
+ <Target Name="BeforeBuild">
+ </Target>
+ <Target Name="AfterBuild">
+ </Target>
+ -->
+ <PropertyGroup>
+ <PostBuildEvent>copy "*.*" "\MediaPortal Development\Plugin Releases\ComSkip Launcher TVE2\"</PostBuildEvent>
+ </PropertyGroup>
+</Project>
\ No newline at end of file
Modified: trunk/plugins/ComSkipLauncher TVE2/ComSkipLauncher.cs
===================================================================
--- trunk/plugins/ComSkipLauncher TVE2/ComSkipLauncher.cs 2007-03-11 13:44:57 UTC (rev 181)
+++ trunk/plugins/ComSkipLauncher TVE2/ComSkipLauncher.cs 2007-03-11 15:18:13 UTC (rev 182)
@@ -21,9 +21,12 @@
public static readonly string MPConfigFile = Config.GetFolder(Config.Dir.Config) + "\\MediaPortal.xml";
- public static readonly string DefaultProgram = "C:\\Program Files\\ComSkip\\ComSkip.exe";
- public static readonly string DefaultParameters = "--playnice \"{0}\"";
+ public static readonly string DefaultStartProgram = "\\Program Files\\ComSkip\\ComSkip.exe";
+ public static readonly string DefaultStartParameters = "--playnice \"{0}\"";
+ public static readonly string DefaultEndProgram = "\\Program Files\\ComSkip\\ComClean.bat";
+ public static readonly string DefaultEndParameters = "\"{0}\"";
+
#endregion Constants
#region Members
@@ -182,12 +185,12 @@
using (MediaPortal.Profile.Settings xmlreader = new MediaPortal.Profile.Settings(MPConfigFile))
{
_runAtStart = xmlreader.GetValueAsBool("ComSkipLauncher", "RunAtStart", false);
- _startProgram = xmlreader.GetValueAsString("ComSkipLauncher", "StartProgram", DefaultProgram);
- _startParameters = xmlreader.GetValueAsString("ComSkipLauncher", "StartParameters", DefaultParameters);
+ _startProgram = xmlreader.GetValueAsString("ComSkipLauncher", "StartProgram", DefaultStartProgram);
+ _startParameters = xmlreader.GetValueAsString("ComSkipLauncher", "StartParameters", DefaultStartParameters);
_runAtEnd = xmlreader.GetValueAsBool("ComSkipLauncher", "RunAtEnd", false);
- _endProgram = xmlreader.GetValueAsString("ComSkipLauncher", "EndProgram", DefaultProgram);
- _endParameters = xmlreader.GetValueAsString("ComSkipLauncher", "EndParameters", DefaultParameters);
+ _endProgram = xmlreader.GetValueAsString("ComSkipLauncher", "EndProgram", DefaultEndProgram);
+ _endParameters = xmlreader.GetValueAsString("ComSkipLauncher", "EndParameters", DefaultEndParameters);
}
}
catch (Exception ex)
Deleted: trunk/plugins/ComSkipLauncher TVE2/ComSkipLauncher.csproj
===================================================================
--- trunk/plugins/ComSkipLauncher TVE2/ComSkipLauncher.csproj 2007-03-11 13:44:57 UTC (rev 181)
+++ trunk/plugins/ComSkipLauncher TVE2/ComSkipLauncher.csproj 2007-03-11 15:18:13 UTC (rev 182)
@@ -1,87 +0,0 @@
-<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <PropertyGroup>
- <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
- <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
- <ProductVersion>8.0.50727</ProductVersion>
- <SchemaVersion>2.0</SchemaVersion>
- <ProjectGuid>{35EE9B81-1774-498E-94A0-0FD47E213FB5}</ProjectGuid>
- <OutputType>Library</OutputType>
- <AppDesignerFolder>Properties</AppDesignerFolder>
- <RootNamespace>MediaPortal.Plugins</RootNamespace>
- <AssemblyName>ComSkipLauncher</AssemblyName>
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
- <DebugSymbols>false</DebugSymbols>
- <DebugType>full</DebugType>
- <Optimize>false</Optimize>
- <OutputPath>bin\Debug\</OutputPath>
- <DefineConstants>DEBUG</DefineConstants>
- <ErrorReport>prompt</ErrorReport>
- <WarningLevel>4</WarningLevel>
- <UseVSHostingProcess>false</UseVSHostingProcess>
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
- <DebugType>none</DebugType>
- <Optimize>true</Optimize>
- <OutputPath>bin\Release\</OutputPath>
- <DefineConstants>
- </DefineConstants>
- <ErrorReport>prompt</ErrorReport>
- <WarningLevel>4</WarningLevel>
- <UseVSHostingProcess>false</UseVSHostingProcess>
- </PropertyGroup>
- <ItemGroup>
- <Reference Include="Core, Version=1.0.2581.1884, Culture=neutral, processorArchitecture=MSIL">
- <SpecificVersion>False</SpecificVersion>
- <HintPath>..\..\MediaPortal\Core\bin\Release\Core.dll</HintPath>
- <Private>False</Private>
- </Reference>
- <Reference Include="Databases, Version=1.0.2623.6915, Culture=neutral, processorArchitecture=x86">
- <SpecificVersion>False</SpecificVersion>
- <HintPath>..\..\MediaPortal\xbmc\bin\Release\Databases.dll</HintPath>
- <Private>False</Private>
- </Reference>
- <Reference Include="System" />
- <Reference Include="System.Data" />
- <Reference Include="System.Drawing" />
- <Reference Include="System.Windows.Forms" />
- <Reference Include="System.Xml" />
- <Reference Include="TVCapture, Version=1.0.2623.6917, Culture=neutral, processorArchitecture=x86">
- <SpecificVersion>False</SpecificVersion>
- <HintPath>..\..\MediaPortal\xbmc\bin\Release\TVCapture.dll</HintPath>
- <Private>False</Private>
- </Reference>
- <Reference Include="Utils, Version=1.0.2622.31921, Culture=neutral, processorArchitecture=x86">
- <SpecificVersion>False</SpecificVersion>
- <HintPath>..\..\MediaPortal\Utils\bin\Release\Utils.dll</HintPath>
- <Private>False</Private>
- </Reference>
- </ItemGroup>
- <ItemGroup>
- <Compile Include="ComSkipLauncher.cs" />
- <Compile Include="AssemblyInfo.cs" />
- <Compile Include="Configuration.cs">
- <SubType>Form</SubType>
- </Compile>
- <Compile Include="Configuration.designer.cs">
- <DependentUpon>Configuration.cs</DependentUpon>
- </Compile>
- </ItemGroup>
- <ItemGroup>
- <EmbeddedResource Include="Configuration.resx">
- <DependentUpon>Configuration.cs</DependentUpon>
- <SubType>Designer</SubType>
- </EmbeddedResource>
- </ItemGroup>
- <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
- <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
- Other similar extension points exist, see Microsoft.Common.targets.
- <Target Name="BeforeBuild">
- </Target>
- <Target Name="AfterBuild">
- </Target>
- -->
- <PropertyGroup>
- <PostBuildEvent>copy "*.*" "\MediaPortal Development\Plugin Releases\ComSkip Launcher\"</PostBuildEvent>
- </PropertyGroup>
-</Project>
\ No newline at end of file
Modified: trunk/plugins/ComSkipLauncher TVE3/AssemblyInfo.cs
===================================================================
--- trunk/plugins/ComSkipLauncher TVE3/AssemblyInfo.cs 2007-03-11 13:44:57 UTC (rev 181)
+++ trunk/plugins/ComSkipLauncher TVE3/AssemblyInfo.cs 2007-03-11 15:18:13 UTC (rev 182)
@@ -8,7 +8,7 @@
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
//
-[assembly: AssemblyTitle("ComSkipLauncher")]
+[assembly: AssemblyTitle("ComSkipLauncher TVE3")]
[assembly: AssemblyDescription("Launches ComSkip when a recording completes")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("For MediaPortal")]
Added: trunk/plugins/ComSkipLauncher TVE3/ComSkipLauncher TVE3.csproj
===================================================================
--- trunk/plugins/ComSkipLauncher TVE3/ComSkipLauncher TVE3.csproj (rev 0)
+++ trunk/plugins/ComSkipLauncher TVE3/ComSkipLauncher TVE3.csproj 2007-03-11 15:18:13 UTC (rev 182)
@@ -0,0 +1,107 @@
+<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <PropertyGroup>
+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+ <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+ <ProductVersion>8.0.50727</ProductVersion>
+ <SchemaVersion>2.0</SchemaVersion>
+ <ProjectGuid>{AD20D519-D1AF-484E-ADDE-251F7CA912D9}</ProjectGuid>
+ <OutputType>Library</OutputType>
+ <AppDesignerFolder>Properties</AppDesignerFolder>
+ <RootNamespace>TvEngine</RootNamespace>
+ <AssemblyName>ComSkipLauncher</AssemblyName>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+ <DebugSymbols>false</DebugSymbols>
+ <DebugType>full</DebugType>
+ <Optimize>false</Optimize>
+ <OutputPath>bin\Debug\</OutputPath>
+ <DefineConstants>DEBUG</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ <UseVSHostingProcess>false</UseVSHostingProcess>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+ <DebugType>none</DebugType>
+ <Optimize>true</Optimize>
+ <OutputPath>bin\Release\</OutputPath>
+ <DefineConstants>
+ </DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ <UseVSHostingProcess>false</UseVSHostingProcess>
+ </PropertyGroup>
+ <ItemGroup>
+ <Reference Include="Gentle.Common, Version=1.2.9.1285, Culture=neutral, PublicKeyToken=80b5de62e27be49b">
+ <SpecificVersion>False</SpecificVersion>
+ <HintPath>..\..\TV Engine\TVLibrary\TVDatabase\bin\Release\\Gentle.Common.dll</HintPath>
+ <Private>False</Private>
+ </Reference>
+ <Reference Include="Gentle.Framework, Version=1.2.9.1286, Culture=neutral, PublicKeyToken=80b5de62e27be49b">
+ <SpecificVersion>False</SpecificVersion>
+ <HintPath>..\..\TV Engine\TVLibrary\TVDatabase\bin\Release\\Gentle.Framework.dll</HintPath>
+ <Private>False</Private>
+ </Reference>
+ <Reference Include="PluginBase, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
+ <SpecificVersion>False</SpecificVersion>
+ <HintPath>..\..\TV Engine\TVLibrary\Plugins\PluginBase\bin\Release\PluginBase.dll</HintPath>
+ <Private>False</Private>
+ </Reference>
+ <Reference Include="SetupControls, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
+ <SpecificVersion>False</SpecificVersion>
+ <HintPath>..\..\TV Engine\TVLibrary\SetupControls\bin\Release\SetupControls.dll</HintPath>
+ <Private>False</Private>
+ </Reference>
+ <Reference Include="System" />
+ <Reference Include="System.Data" />
+ <Reference Include="System.Drawing" />
+ <Reference Include="System.Windows.Forms" />
+ <Reference Include="System.Xml" />
+ <Reference Include="TvBusinessLayer, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
+ <SpecificVersion>False</SpecificVersion>
+ <HintPath>..\..\TV Engine\TVLibrary\TvService\bin\Release\TvBusinessLayer.dll</HintPath>
+ <Private>False</Private>
+ </Reference>
+ <Reference Include="TvControl, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
+ <SpecificVersion>False</SpecificVersion>
+ <HintPath>..\..\TV Engine\TVLibrary\TvService\bin\Release\TvControl.dll</HintPath>
+ <Private>False</Private>
+ </Reference>
+ <Reference Include="TVDatabase, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
+ <SpecificVersion>False</SpecificVersion>
+ <HintPath>..\..\TV Engine\TVLibrary\TVDatabase\bin\Release\\TVDatabase.dll</HintPath>
+ <Private>False</Private>
+ </Reference>
+ <Reference Include="TvLibrary.Interfaces, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
+ <SpecificVersion>False</SpecificVersion>
+ <HintPath>..\..\TV Engine\TVLibrary\TvLibrary.Interfaces\bin\Release\TvLibrary.Interfaces.dll</HintPath>
+ <Private>False</Private>
+ </Reference>
+ </ItemGroup>
+ <ItemGroup>
+ <Compile Include="ComSkipLauncher.cs" />
+ <Compile Include="AssemblyInfo.cs" />
+ <Compile Include="PluginSetup.cs">
+ <SubType>UserControl</SubType>
+ </Compile>
+ <Compile Include="PluginSetup.Designer.cs">
+ <DependentUpon>PluginSetup.cs</DependentUpon>
+ </Compile>
+ </ItemGroup>
+ <ItemGroup>
+ <EmbeddedResource Include="PluginSetup.resx">
+ <DependentUpon>PluginSetup.cs</DependentUpon>
+ <SubType>Designer</SubType>
+ </EmbeddedResource>
+ </ItemGroup>
+ <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
+ <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
+ Other similar extension points exist, see Microsoft.Common.targets.
+ <Target Name="BeforeBuild">
+ </Target>
+ <Target Name="AfterBuild">
+ </Target>
+ -->
+ <PropertyGroup>
+ <PostBuildEvent>copy "*.*" "\MediaPortal Development\Plugin Releases\ComSkip Launcher TVE3\"</PostBuildEvent>
+ </PropertyGroup>
+</Project>
\ No newline at end of file
Modified: trunk/plugins/ComSkipLauncher TVE3/ComSkipLauncher.cs
===================================================================
--- trunk/plugins/ComSkipLauncher TVE3/ComSkipLauncher.cs 2007-03-11 13:44:57 UTC (rev 181)
+++ trunk/plugins/ComSkipLauncher TVE3/ComSkipLauncher.cs 2007-03-11 15:18:13 UTC (rev 182)
@@ -5,24 +5,28 @@
using System.Text;
using System.Windows.Forms;
-using MediaPortal.Configuration;
-using MediaPortal.GUI.Library;
-using MediaPortal.TV.Database;
-using MediaPortal.TV.Recording;
-using MediaPortal.Util;
+using TvLibrary.Log;
+using TvControl;
+using SetupTv;
+using TvEngine;
+using TvEngine.Events;
+using TvLibrary.Interfaces;
+using TvLibrary.Implementations;
+using TvDatabase;
-namespace MediaPortal.Plugins
+namespace TvEngine
{
- public class ComSkipLauncher : IPlugin, ISetupForm
+ public class ComSkipLauncher : ITvServerPlugin
{
#region Constants
- public static readonly string MPConfigFile = Config.GetFolder(Config.Dir.Config) + "\\MediaPortal.xml";
+ public static readonly string DefaultStartProgram = "\\Program Files\\ComSkip\\ComSkip.exe";
+ public static readonly string DefaultStartParameters = "--playnice \"{0}\"";
- public static readonly string DefaultProgram = "C:\\Program Files\\ComSkip\\ComSkip.exe";
- public static readonly string DefaultParameters = "--playnice \"{0}\"";
+ public static readonly string DefaultEndProgram = "\\Program Files\\ComSkip\\ComClean.bat";
+ public static readonly string DefaultEndParameters = "\"{0}\"";
#endregion Constants
@@ -38,177 +42,125 @@
#endregion Members
- #region IPlugin Members
+ #region Properties
- public void Start()
+ /// <summary>
+ /// returns the name of the plugin
+ /// </summary>
+ public string Name
{
- Log.Info("ComSkipLauncher: Start");
-
- LoadSettings();
-
- if (_runAtStart)
- Recorder.OnTvRecordingStarted += new Recorder.OnTvRecordingHandler(Recorder_OnTvRecordingStarted);
-
- if (_runAtEnd)
- Recorder.OnTvRecordingEnded += new Recorder.OnTvRecordingHandler(Recorder_OnTvRecordingEnded);
+ get { return "ComSkipLauncher"; }
}
- public void Stop()
+ /// <summary>
+ /// returns the version of the plugin
+ /// </summary>
+ public string Version
{
- Log.Info("ComSkipLauncher: Stop");
-
- if (_runAtStart)
- Recorder.OnTvRecordingStarted -= new Recorder.OnTvRecordingHandler(Recorder_OnTvRecordingStarted);
-
- if (_runAtEnd)
- Recorder.OnTvRecordingEnded -= new Recorder.OnTvRecordingHandler(Recorder_OnTvRecordingEnded);
+ get { return "1.0.2.0"; }
}
+ /// <summary>
+ /// returns the author of the plugin
+ /// </summary>
+ public string Author
+ {
+ get { return "and-81"; }
+ }
+ /// <summary>
+ /// returns if the plugin should only run on the master server
+ /// or also on slave servers
+ /// </summary>
+ public bool MasterOnly
+ {
+ get { return false; }
+ }
- #endregion
+ #endregion Properties
- #region ISetupForm Members
+ #region IPlugin Members
- public string Author() { return "and-81"; }
- public bool CanEnable() { return true; }
- public bool DefaultEnabled() { return true; }
- public string Description() { return "Launches ComSkip when a recording completes."; }
- public int GetWindowId() { return 0; }
- public bool HasSetup() { return true; }
- public string PluginName() { return "ComSkip Launcher"; }
-
- public void ShowPlugin()
+ [CLSCompliant(false)]
+ public void Start(IController controller)
{
+ Log.Info("ComSkipLauncher: Start");
+
LoadSettings();
- Configuration configuration = new Configuration();
- configuration.RunAtStart = _runAtStart;
- configuration.StartProgram = _startProgram;
- configuration.StartParameters = _startParameters;
+ if (_runAtStart || _runAtEnd)
+ GlobalServiceProvider.Instance.Get<ITvServerEvent>().OnTvServerEvent += new TvServerEventHandler(ComSkipLauncher_OnTvServerEvent);
+ }
- configuration.RunAtEnd = _runAtEnd;
- configuration.EndProgram = _endProgram;
- configuration.EndParameters = _endParameters;
+ public void Stop()
+ {
+ Log.Info("ComSkipLauncher: Stop");
- if (configuration.ShowDialog() == DialogResult.OK)
- {
- _runAtStart = configuration.RunAtStart;
- _startProgram = configuration.StartProgram;
- _startParameters = configuration.StartParameters;
-
- _runAtEnd = configuration.RunAtEnd;
- _endProgram = configuration.EndProgram;
- _endParameters = configuration.EndParameters;
-
- SaveSettings();
- }
+ if (_runAtStart || _runAtEnd)
+ GlobalServiceProvider.Instance.Get<ITvServerEvent>().OnTvServerEvent -= new TvServerEventHandler(ComSkipLauncher_OnTvServerEvent);
}
- public bool GetHome(out string strButtonText, out string strButtonImage, out string strButtonImageFocus, out string strPictureImage)
+ [CLSCompliant(false)]
+ public SetupTv.SectionSettings Setup
{
- strButtonText = strButtonImage = strButtonImageFocus = strPictureImage = "";
- return false;
+ get { return new SetupTv.Sections.PluginSetup(); }
}
#endregion
#region Implementation
- void Recorder_OnTvRecordingStarted(string recordingFilename, TVRecording recording, TVProgram program)
+ void ComSkipLauncher_OnTvServerEvent(object sender, EventArgs eventArgs)
{
- Log.Debug("ComSkipLauncher: Recorder_OnTvRecordingStarted {0}", recordingFilename);
-
try
{
- string parameters = ProcessParameters(_startParameters, recordingFilename);
+ TvServerEventArgs tvEvent = (TvServerEventArgs)eventArgs;
+ string parameters;
- Log.Info(
+ if (tvEvent.EventType == TvServerEventType.RecordingStarted)
+ {
+ parameters = ProcessParameters(_startParameters, tvEvent.Recording.FileName);
+
+ Log.Info(
"ComSkipLauncher: Recording started ({0}), launching program ({1} {2}) ...",
- recordingFilename,
+ tvEvent.Recording.FileName,
_startProgram,
parameters
- );
+ );
- LaunchProcess(_startProgram, parameters, Path.GetDirectoryName(recordingFilename), ProcessWindowStyle.Hidden);
- }
- catch (Exception ex)
- {
- Log.Error("ComSkipLauncher: {0}", ex.Message);
- }
- }
- void Recorder_OnTvRecordingEnded(string recordingFilename, TVRecording recording, TVProgram program)
- {
- Log.Debug("ComSkipLauncher: Recorder_OnTvRecordingEnded {0}", recordingFilename);
-
- try
- {
- string fileName = String.Empty;
- List<TVRecorded> recorded = new List<TVRecorded>();
- TVDatabase.GetRecordedTV(ref recorded);
- foreach (TVRecorded rec in recorded)
- {
- if (rec.Title == recording.Title && rec.StartTime == recording.StartTime)
- {
- fileName = rec.FileName;
- break;
- }
+ LaunchProcess(_startProgram, parameters, Path.GetDirectoryName(tvEvent.Recording.FileName), ProcessWindowStyle.Hidden);
}
-
- if (String.IsNullOrEmpty(fileName))
+ else if (tvEvent.EventType == TvServerEventType.RecordingEnded)
{
- Log.Warn("ComSkipLauncher: Couldn't process recording titled {0}, no filename found.", recording.Title);
- return;
- }
+ parameters = ProcessParameters(_endParameters, tvEvent.Recording.FileName);
- string parameters = ProcessParameters(_endParameters, fileName);
+ Log.Info(
+ "ComSkipLauncher: Recording ended ({0}), launching program ({1} {2}) ...",
+ tvEvent.Recording.FileName,
+ _endProgram,
+ parameters
+ );
- Log.Info(
- "ComSkipLauncher: Recording ended ({0}), launching program ({1} {2}) ...",
- fileName,
- _endProgram,
- parameters
- );
-
- LaunchProcess(_endProgram, parameters, Path.GetDirectoryName(fileName), ProcessWindowStyle.Hidden);
+ LaunchProcess(_endProgram, parameters, Path.GetDirectoryName(tvEvent.Recording.FileName), ProcessWindowStyle.Hidden);
+ }
}
catch (Exception ex)
{
Log.Error("ComSkipLauncher: {0}", ex.Message);
}
+
}
void LoadSettings()
{
try
{
- using (MediaPortal.Profile.Settings xmlreader = new MediaPortal.Profile.Settings(MPConfigFile))
- {
- _runAtStart = xmlreader.GetValueAsBool("ComSkipLauncher", "RunAtStart", false);
- _startProgram = xmlreader.GetValueAsString("ComSkipLauncher", "StartProgram", DefaultProgram);
- _startParameters = xmlreader.GetValueAsString("ComSkipLauncher", "StartParameters", DefaultParameters);
+ TvBusinessLayer layer = new TvBusinessLayer();
- _runAtEnd = xmlreader.GetValueAsBool("ComSkipLauncher", "RunAtEnd", false);
- _endProgram = xmlreader.GetValueAsString("ComSkipLauncher", "EndProgram", DefaultProgram);
- _endParameters = xmlreader.GetValueAsString("ComSkipLauncher", "EndParameters", DefaultParameters);
- }
- }
- catch (Exception ex)
- {
- Log.Error("ComSkipLauncher: {0}", ex.Message);
- }
- }
- void SaveSettings()
- {
- try
- {
- using (MediaPortal.Profile.Settings xmlwriter = new MediaPortal.Profile.Settings(MPConfigFile))
- {
- xmlwriter.SetValueAsBool("ComSkipLauncher", "RunAtStart", _runAtStart);
- xmlwriter.SetValue("ComSkipLauncher", "StartProgram", _startProgram);
- xmlwriter.SetValue("ComSkipLauncher", "StartParameters", _startParameters);
+ _runAtStart = Convert.ToBoolean(layer.GetSetting("ComSkipLauncher_RunAtStart", "False").Value);
+ _startProgram = layer.GetSetting("ComSkipLauncher_StartProgram", DefaultStartProgram).Value;
+ _startParameters = layer.GetSetting("ComSkipLauncher_StartParameters", DefaultStartParameters).Value;
- xmlwriter.SetValueAsBool("ComSkipLauncher", "RunAtEnd", _runAtEnd);
- xmlwriter.SetValue("ComSkipLauncher", "EndProgram", _endProgram);
- xmlwriter.SetValue("ComSkipLauncher", "EndParameters", _endParameters);
- }
+ _runAtEnd = Convert.ToBoolean(layer.GetSetting("ComSkipLauncher_RunAtEnd", "False").Value);
+ _endProgram = layer.GetSetting("ComSkipLauncher_EndProgram", DefaultEndProgram).Value;
+ _endParameters = layer.GetSetting("ComSkipLauncher_EndParameters", DefaultEndParameters).Value;
}
catch (Exception ex)
{
Deleted: trunk/plugins/ComSkipLauncher TVE3/ComSkipLauncher.csproj
===================================================================
--- trunk/plugins/ComSkipLauncher TVE3/ComSkipLauncher.csproj 2007-03-11 13:44:57 UTC (rev 181)
+++ trunk/plugins/ComSkipLauncher TVE3/ComSkipLauncher.csproj 2007-03-11 15:18:13 UTC (rev 182)
@@ -1,87 +0,0 @@
-<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <PropertyGroup>
- <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
- <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
- <ProductVersion>8.0.50727</ProductVersion>
- <SchemaVersion>2.0</SchemaVersion>
- <ProjectGuid>{35EE9B81-1774-498E-94A0-0FD47E213FB5}</ProjectGuid>
- <OutputType>Library</OutputType>
- <AppDesignerFolder>Properties</AppDesignerFolder>
- <RootNamespace>MediaPortal.Plugins</RootNamespace>
- <AssemblyName>ComSkipLauncher</AssemblyName>
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
- <DebugSymbols>false</DebugSymbols>
- <DebugType>full</DebugType>
- <Optimize>false</Optimize>
- <OutputPath>bin\Debug\</OutputPath>
- <DefineConstants>DEBUG</DefineConstants>
- <ErrorReport>prompt</ErrorReport>
- <WarningLevel>4</WarningLevel>
- <UseVSHostingProcess>false</UseVSHostingProcess>
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
- <DebugType>none</DebugType>
- <Optimize>true</Optimize>
- <OutputPath>bin\Release\</OutputPath>
- <DefineConstants>
- </DefineConstants>
- <ErrorReport>prompt</ErrorReport>
- <WarningLevel>4</WarningLevel>
- <UseVSHostingProcess>false</UseVSHostingProcess>
- </PropertyGroup>
- <ItemGroup>
- <Reference Include="Core, Version=1.0.2581.1884, Culture=neutral, processorArchitecture=MSIL">
- <SpecificVersion>False</SpecificVersion>
- <HintPath>..\..\MediaPortal\Core\bin\Release\Core.dll</HintPath>
- <Private>False</Private>
- </Reference>
- <Reference Include="Databases, Version=1.0.2623.6915, Culture=neutral, processorArchitecture=x86">
- <SpecificVersion>False</SpecificVersion>
- <HintPath>..\..\MediaPortal\xbmc\bin\Release\Databases.dll</HintPath>
- <Private>False</Private>
- </Reference>
- <Reference Include="System" />
- <Reference Include="System.Data" />
- <Reference Include="System.Drawing" />
- <Reference Include="System.Windows.Forms" />
- <Reference Include="System.Xml" />
- <Reference Include="TVCapture, Version=1.0.2623.6917, Culture=neutral, processorArchitecture=x86">
- <SpecificVersion>False</SpecificVersion>
- <HintPath>..\..\MediaPortal\xbmc\bin\Release\TVCapture.dll</HintPath>
- <Private>False</Private>
- </Reference>
- <Reference Include="Utils, Version=1.0.2622.31921, Culture=neutral, processorArchitecture=x86">
- <SpecificVersion>False</SpecificVersion>
- <HintPath>..\..\MediaPortal\Utils\bin\Release\Utils.dll</HintPath>
- <Private>False</Private>
- </Reference>
- </ItemGroup>
- <ItemGroup>
- <Compile Include="ComSkipLauncher.cs" />
- <Compile Include="AssemblyInfo.cs" />
- <Compile Include="Configuration.cs">
- <SubType>Form</SubType>
- </Compile>
- <Compile Include="Configuration.designer.cs">
- <DependentUpon>Configuration.cs</DependentUpon>
- </Compile>
- </ItemGroup>
- <ItemGroup>
- <EmbeddedResource Include="Configuration.resx">
- <DependentUpon>Configuration.cs</DependentUpon>
- <SubType>Designer</SubType>
- </EmbeddedResource>
- </ItemGroup>
- <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
- <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
- Other similar extension points exist, see Microsoft.Common.targets.
- <Target Name="BeforeBuild">
- </Target>
- <Target Name="AfterBuild">
- </Target>
- -->
- <PropertyGroup>
- <PostBuildEvent>copy "*.*" "\MediaPortal Development\Plugin Releases\ComSkip Launcher\"</PostBuildEvent>
- </PropertyGroup>
-</Project>
\ No newline at end of file
Deleted: trunk/plugins/ComSkipLauncher TVE3/Configuration.Designer.cs
===================================================================
--- trunk/plugins/ComSkipLauncher TVE3/Configuration.Designer.cs 2007-03-11 13:44:57 UTC (rev 181)
+++ trunk/plugins/ComSkipLauncher TVE3/Configuration.Designer.cs 2007-03-11 15:18:13 UTC (rev 182)
@@ -1,458 +0,0 @@
-namespace MediaPortal.Plugins
-{
- partial class Configuration
- {
- /// <summary>
- /// Required designer variable.
- /// </summary>
- private System.ComponentModel.IContainer components = null;
-
- /// <summary>
- /// Clean up any resources being used.
- /// </summary>
- /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
- protected override void Dispose(bool disposing)
- {
- if (disposing && (components != null))
- {
- components.Dispose();
- }
- base.Dispose(disposing);
- }
-
- #region Windows Form Designer generated code
-
- /// <summary>
- /// Required method for Designer support - do not modify
- /// the contents of this method with the code editor.
- /// </summary>
- private void InitializeComponent()
- {
- this.components = new System.ComponentModel.Container();
- this.buttonOK = new System.Windows.Forms.Button();
- this.buttonCancel = new System.Windows.Forms.Button();
- this.openFileDialog = new System.Windows.Forms.OpenFileDialog();
- this.buttonTest = new System.Windows.Forms.Button();
- this.textBoxTest = new System.Windows.Forms.TextBox();
- this.buttonFindTestFile = new System.Windows.Forms.Button();
- this.radioButtonStartDoNothing = new System.Windows.Forms.RadioButton();
- this.radioButtonStartLaunch = new System.Windows.Forms.RadioButton();
- this.toolTips = new System.Windows.Forms.ToolTip(this.components);
- this.textBoxEndParameters = new System.Windows.Forms.TextBox();
- this.buttonEndParameters = new System.Windows.Forms.Button();
- this.buttonEndProgram = new System.Windows.Forms.Button();
- this.textBoxEndProgram = new System.Windows.Forms.TextBox();
- this.textBoxStartParameters = new System.Windows.Forms.TextBox();
- this.buttonStartParameters = new System.Windows.Forms.Button();
- this.buttonStartProgram = new System.Windows.Forms.Button();
- this.textBoxStartProgram = new System.Windows.Forms.TextBox();
- this.radioButtonEndDoNothing = new System.Windows.Forms.RadioButton();
- this.radioButtonEndLaunch = new System.Windows.Forms.RadioButton();
- this.tabControl = new System.Windows.Forms.TabControl();
- this.tabPageStart = new System.Windows.Forms.TabPage();
- this.groupBoxStartProgram = new System.Windows.Forms.GroupBox();
- this.labelStartParameters = new System.Windows.Forms.Label();
- this.labelStartProgram = new System.Windows.Forms.Label();
- this.tabPageEnd = new System.Windows.Forms.TabPage();
- this.groupBoxEndProgram = new System.Windows.Forms.GroupBox();
- this.labelEndParameters = new System.Windows.Forms.Label();
- this.labelEndProgram = new System.Windows.Forms.Label();
- this.groupBoxTest = new System.Windows.Forms.GroupBox();
- this.tabControl.SuspendLayout();
- this.tabPageStart.SuspendLayout();
- this.groupBoxStartProgram.SuspendLayout();
- this.tabPageEnd.SuspendLayout();
- this.groupBoxEndProgram.SuspendLayout();
- this.groupBoxTest.SuspendLayout();
- this.SuspendLayout();
- //
- // buttonOK
- //
- this.buttonOK.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
- this.buttonOK.Location = new System.Drawing.Point(216, 288);
- this.buttonOK.Name = "buttonOK";
- this.buttonOK.Size = new System.Drawing.Size(56, 24);
- this.buttonOK.TabIndex = 2;
- this.buttonOK.Text = "OK";
- this.buttonOK.UseVisualStyleBackColor = true;
- this.buttonOK.Click += new System.EventHandler(this.buttonOK_Click);
- //
- // buttonCancel
- //
- this.buttonCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
- this.buttonCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
- this.buttonCancel.Location = new System.Drawing.Point(280, 288);
- this.buttonCancel.Name = "buttonCancel";
- this.buttonCancel.Size = new System.Drawing.Size(56, 24);
- this.buttonCancel.TabIndex = 3;
- this.buttonCancel.Text = "Cancel";
- this.buttonCancel.UseVisualStyleBackColor = true;
- this.buttonCancel.Click += new System.EventHandler(this.buttonCancel_Click);
- //
- // openFileDialog
- //
- this.openFileDialog.Filter = "All files|*.*";
- //
- // buttonTest
- //
- this.buttonTest.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
- this.buttonTest.Location = new System.Drawing.Point(272, 24);
- this.buttonTest.Name = "buttonTest";
- this.buttonTest.Size = new System.Drawing.Size(48, 20);
- this.buttonTest.TabIndex = 2;
- this.buttonTest.Text = "Test";
- this.toolTips.SetToolTip(this.buttonTest, "Click here to test the above settings");
- this.buttonTest.UseVisualStyleBackColor = true;
- this.buttonTest.Click += new System.EventHandler(this.buttonTest_Click);
- //
- // textBoxTest
- //
- this.textBoxTest.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
- | System.Windows.Forms.AnchorStyles.Right)));
- this.textBoxTest.Location = new System.Drawing.Point(8, 24);
- this.textBoxTest.Name = "textBoxTest";
- this.textBoxTest.Size = new System.Drawing.Size(224, 20);
- this.textBoxTest.TabIndex = 0;
- this.toolTips.SetToolTip(this.textBoxTest, "File to test launch with");
- //
- // buttonFindTestFile
- //
- this.buttonFindTestFile.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
- this.buttonFindTestFile.Location = new System.Drawing.Point(240, 24);
- this.buttonFindTestFile.Name = "buttonFindTestFile";
- this.buttonFindTestFile.Size = new System.Drawing.Size(24, 20);
- this.buttonFindTestFile.TabIndex = 1;
- this.buttonFindTestFile.Text = "...";
- this.toolTips.SetToolTip(this.buttonFindTestFile, "Click here to locate a file to test with");
- this.buttonFindTestFile.UseVisualStyleBackColor = true;
- this.buttonFindTestFile.Click += new System.EventHandler(this.buttonFindTestFile_Click);
- //
- // radioButtonStartDoNothing
- //
- this.radioButtonStartDoNothing.Location = new System.Drawing.Point(8, 8);
- this.radioButtonStartDoNothing.Name = "radioButtonStartDoNothing";
- this.radioButtonStartDoNothing.Size = new System.Drawing.Size(96, 24);
- this.radioButtonStartDoNothing.TabIndex = 0;
- this.radioButtonStartDoNothing.Text = "Do nothing";
- this.toolTips.SetToolTip(this.radioButtonStartDoNothing, "Launch ComSkip as soon as the recording starts (this requires the LiveTV setting " +
- "in comskip.ini)");
- this.radioButtonStartDoNothing.UseVisualStyleBackColor = true;
- //
- // radioButtonStartLaunch
- //
- this.radioButtonStartLaunch.Checked = true;
- this.radioButtonStartLaunch.Location = new System.Drawing.Point(8, 32);
- this.radioButtonStartLaunch.Name = "radioButtonStartLaunch";
- this.radioButtonStartLaunch.Size = new System.Drawing.Size(96, 24);
- this.radioButtonStartLaunch.TabIndex = 1;
- this.radioButtonStartLaunch.Text = "Launch:";
- this.toolTips.SetToolTip(this.radioButtonStartLaunch, "Launch ComSkip to process the recording after it has finished");
- this.radioButtonStartLaunch.UseVisualStyleBackColor = true;
- this.radioButtonStartLaunch.CheckedChanged += new System.EventHandler(this.radioButtonStartLaunch_CheckedChanged);
- //
- // textBoxEndParameters
- //
- this.textBoxEndParameters.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
- | System.Windows.Forms.AnchorStyles.Right)));
- this.textBoxEndParameters.Location = new System.Drawing.Point(8, 80);
- this.textBoxEndParameters.Name = "textBoxEndParameters";
- this.textBoxEndParameters.Size = new System.Drawing.Size(256, 20);
- this.textBoxEndParameters.TabIndex = 4;
- this.toolTips.SetToolTip(this.textBoxEndParameters, "Provide command line parameters for the program");
- //
- // buttonEndParameters
- //
- this.buttonEndParameters.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
- this.buttonEndParameters.Location = new System.Drawing.Point(272, 80);
- this.buttonEndParameters.Name = "buttonEndParameters";
- this.buttonEndParameters.Size = new System.Drawing.Size(24, 20);
- this.buttonEndParameters.TabIndex = 5;
- this.buttonEndParameters.Text = "?";
- this.toolTips.SetToolTip(this.buttonEndParameters, "Click here for a list of additional command line parameters");
- this.buttonEndParameters.UseVisualStyleBackColor = true;
- this.buttonEndParameters.Click += new System.EventHandler(this.buttonParamQuestion_Click);
- //
- // buttonEndProgram
- //
- this.buttonEndProgram.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
- this.buttonEndProgram.Location = new System.Drawing.Point(272, 40);
- this.buttonEndProgram.Name = "buttonEndProgram";
- this.buttonEndProgram.Size = new System.Drawing.Size(24, 20);
- this.buttonEndProgram.TabIndex = 2;
- this.buttonEndProgram.Text = "...";
- this.toolTips.SetToolTip(this.buttonEndProgram, "Locate the program you wish to launch");
- this.buttonEndProgram.UseVisualStyleBackColor = true;
- this.buttonEndProgram.Click += new System.EventHandler(this.buttonEndProgram_Click);
- //
- // textBoxEndProgram
- //
- this.textBoxEndProgram.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
- | System.Windows.Forms.AnchorStyles.Right)));
- this.textBoxEndProgram.Location = new System.Drawing.Point(8, 40);
- this.textBoxEndProgram.Name = "textBoxEndProgram";
- this.textBoxEndProgram.Size = new System.Drawing.Size(256, 20);
- this.textBoxEndProgram.TabIndex = 1;
- this.toolTips.SetToolTip(this.textBoxEndProgram, "The full location of the program to launch");
- //
- // textBoxStartParameters
- //
- this.textBoxStartParameters.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
- | System.Windows.Forms.AnchorStyles.Right)));
- this.textBoxStartParameters.Location = new System.Drawing.Point(8, 80);
- this.textBoxStartParameters.Name = "textBoxStartParameters";
- this.textBoxStartParameters.Size = new System.Drawing.Size(256, 20);
- this.textBoxStartParameters.TabIndex = 4;
- this.toolTips.SetToolTip(this.textBoxStartParameters, "Provide command line parameters for the program");
- //
- // buttonStartParameters
- //
- this.buttonStartParameters.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
- this.buttonStartParameters.Location = new System.Drawing.Point(272, 80);
- this.buttonStartParameters.Name = "buttonStartParameters";
- this.buttonStartParameters.Size = new System.Drawing.Size(24, 20);
- this.buttonStartParameters.TabIndex = 5;
- this.buttonStartParameters.Text = "?";
- this.toolTips.SetToolTip(this.buttonStartParameters, "Click here for a list of additional command line parameters");
- this.buttonStartParameters.UseVisualStyleBackColor = true;
- this.buttonStartParameters.Click += new System.EventHandler(this.buttonParamQuestion_Click);
- //
- // buttonStartProgram
- //
- this.buttonStartProgram.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
- this.buttonStartProgram.Location = new System.Drawing.Point(272, 40);
- this.buttonStartProgram.Name = "buttonStartProgram";
- this.buttonStartProgram.Size = new System.Drawing.Size(24, 20);
- this.buttonStartProgram.TabIndex = 2;
- this.buttonStartProgram.Text = "...";
- this.toolTips.SetToolTip(this.buttonStartProgram, "Locate the program you wish to launch");
- this.buttonStartProgram.UseVisualStyleBackColor = true;
- this.buttonStartProgram.Click += new System.EventHandler(this.buttonStartProgram_Click);
- //
- // textBoxStartProgram
- //
- this.textBoxStartProgram.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
- | System.Windows.Forms.AnchorStyles.Right)));
- this.textBoxStartProgram.Location = new System.Drawing.Point(8, 40);
- this.textBoxStartProgram.Name = "textBoxStartProgram";
- this.textBoxStartProgram.Size = new System.Drawing.Size(256, 20);
- this.textBoxStartProgram.TabIndex = 1;
- this.toolTips.SetToolTip(this.textBoxStartProgram, "The full location of the program to launch");
- //
- // radioButtonEndDoNothing
- //
- this.radioButtonEndDoNothing.Location = new System.Drawing.Point(8, 8);
- this.radioButtonEndDoNothing.Name = "radioButtonEndDoNothing";
- this.radioButtonEndDoNothing.Size = new System.Drawing.Size(96, 24);
- this.radioButtonEndDoNothing.TabIndex = 0;
- this.radioButtonEndDoNothing.Text = "Do nothing";
- this.radioButtonEndDoNothing.UseVisualStyleBackColor = true;
- //
- // radioButtonEndLaunch
- //
- this.radioButtonEndLaunch.Checked = true;
- this.radioButtonEndLaunch.Location = new System.Drawing.Point(8, 32);
- this.radioButtonEndLaunch.Name = "radioButtonEndLaunch";
- this.radioButtonEndLaunch.Size = new System.Drawing.Size(96, 24);
- this.radioButtonEndLaunch.TabIndex = 1;
- this.radioButtonEndLaunch.Text = "Launch:";
- this.radioButtonEndLaunch.UseVisualStyleBackColor = true;
- this.radioButtonEndLaunch.CheckedChanged += new System.EventHandler(this.radioButtonEndLaunch_CheckedChanged);
- //
- // tabControl
- //
- this.tabControl.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
- | System.Windows.Forms.AnchorStyles.Left)
- | System.Windows.Forms.AnchorStyles.Right)));
- this.tabControl.Controls.Add(this.tabPageStart);
- this.tabControl.Controls.Add(this.tabPageEnd);
- this.tabControl.Location = new System.Drawing.Point(8, 8);
- this.tabControl.Name = "tabControl";
- this.tabControl.SelectedIndex = 0;
- this.tabControl.Size = new System.Drawing.Size(328, 208);
- this.tabControl.TabIndex = 0;
- //
- // tabPageStart
- //
- this.tabPageStart.Controls.Add(this.groupBoxStartProgram);
- this.tabPageStart.Controls.Add(this.radioButtonStartDoNothing);
- this.tabPageStart.Controls.Add(this.radioButtonStartLaunch);
- this.tabPageStart.Location = new System.Drawing.Point(4, 22);
- this.tabPageStart.Name = "tabPageStart";
- this.tabPageStart.Padding = new System.Windows.Forms.Padding(3);
- this.tabPageStart.Size = new System.Drawing.Size(320, 182);
- this.tabPageStart.TabIndex = 0;
- this.tabPageStart.Text = "When recording starts ...";
- this.tabPageStart.UseVisualStyleBackColor = true;
- //
- // groupBoxStartProgram
- //
- this.groupBoxStartProgram.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
- | System.Windows.Forms.AnchorStyles.Left)
- | System.Windows.Forms.AnchorStyles.Right)));
- this.groupBoxStartProgram.Controls.Add(this.labelStartParameters);
- this.groupBoxStartProgram.Controls.Add(this.textBoxStartParameters);
- this.groupBoxStartProgram.Controls.Add(this.buttonStartParameters);
- this.groupBoxStartProgram.Controls.Add(this.labelStartProgram);
- this.groupBoxStartProgram.Controls.Add(this.buttonStartProgram);
- this.groupBoxStartProgram.Controls.Add(this.textBoxStartProgram);
- this.groupBoxStartProgram.Location = new System.Drawing.Point(8, 64);
- this.groupBoxStartProgram.Name = "groupBoxStartProgram";
- this.groupBoxStartProgram.Size = new System.Drawing.Size(304, 112);
- this.groupBoxStartProgram.TabIndex = 2;
- this.groupBoxStartProgram.TabStop = false;
- this.groupBoxStartProgram.Text = "What to do";
- //
- // labelStartParameters
- //
- this.labelStartParameters.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
- | System.Windows.Forms.AnchorStyles.Right)));
- this.labelStartParameters.Location = new System.Drawing.Point(8, 64);
- this.labelStartParameters.Name = "labelStartParameters";
- this.labelStartParameters.Size = new System.Drawing.Size(256, 16);
- this.labelStartParameters.TabIndex = 3;
- this.labelStartParameters.Text = "Parameters:";
- this.labelStartParameters.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
- //
- // labelStartProgram
- //
- this.labelStartProgram.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
- | System.Windows.Forms.AnchorStyles.Right)));
- this.labelStartProgram.Location = new System.Drawing.Point(8, 24);
- this.labelStartProgram.Name = "labelStartProgram";
- this.labelStartProgram.Size = new System.Drawing.Size(256, 16);
- this.labelStartProgram.TabIndex = 0;
- this.labelStartProgram.Text = "Program:";
- this.labelStartProgram.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
- //
- // tabPageEnd
- //
- this.tabPageEnd.Controls.Add(this.groupBoxEndProgram);
- this.tabPageEnd.Controls.Add(this.radioButtonEndDoNothing);
- this.tabPageEnd.Controls.Add(this.radioButtonEndLaunch);
- this.tabPageEnd.Location = new System.Drawing.Point(4, 22);
- this.tabPageEnd.Name = "tabPageEnd";
- this.tabPageEnd.Padding = new System.Windows.Forms.Padding(3);
- this.tabPageEnd.Size = new System.Drawing.Size(320, 182);
- this.tabPageEnd.TabIndex = 1;
- this.tabPageEnd.Text = "When recording ends ...";
- this.tabPageEnd.UseVisualStyleBackColor = true;
- //
- // groupBoxEndProgram
- //
- this.groupBoxEndProgram.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
- | System.Windows.Forms.AnchorStyles.Left)
- | System.Windows.Forms.AnchorStyles.Right)));
- this.groupBoxEndProgram.Controls.Add(this.labelEndParameters);
- this.groupBoxEndProgram.Controls.Add(this.textBoxEndParameters);
- this.groupBoxEndProgram.Controls.Add(this.buttonEndParameters);
- this.groupBoxEndProgram.Controls.Add(this.labelEndProgram);
- this.groupBoxEndProgram.Controls.Add(this.buttonEndProgram);
- this.groupBoxEndProgram.Controls.Add(this.textBoxEndProgram);
- this.groupBoxEndProgram.Location = new System.Drawing.Point(8, 64);
- this.groupBoxEndProgram.Name = "groupBoxEndProgram";
- this.groupBoxEndProgram.Size = new System.Drawing.Size(304, 112);
- this.groupBoxEndProgram.TabIndex = 2;
- this.groupBoxEndProgram.TabStop = false;
- this.groupBoxEndProgram.Text = "What to do";
- //
- // labelEndParameters
- //
- this.labelEndParameters.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
- | System.Windows.Forms.AnchorStyles.Right)));
- this.labelEndParameters.Location = new System.Drawing.Point(8, 64);
- this.labelEndParameters.Name = "labelEndParameters";
- this.labelEndParameters.Size = new System.Drawing.Size(256, 16);
- this.labelEndParameters.TabIndex = 3;
- this.labelEndParameters.Text = "Parameters:";
- this.labelEndParameters.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
- //
- // labelEndProgram
- //
- this.labelEndProgram.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
- | System.Windows.Forms.AnchorStyles.Right)));
- this.labelEndProgram.Location = new System.Drawing.Point(8, 24);
- this.labelEndProgram.Name = "labelEndProgram";
- this.labelEndProgram.Size = new System.Drawing.Size(256, 16);
- this.labelEndProgram.TabIndex = 0;
- this.labelEndProgram.Text = "Program:";
- this.labelEndProgram.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
- //
- // groupBoxTest
- //
- this.groupBoxTest.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
- | System.Windows.Forms.AnchorStyles.Right)));
- this.groupBoxTest.Controls.Add(this.textBoxTest);
- this.groupBoxTest.Controls.Add(this.buttonTest);
- this.groupBoxTest.Controls.Add(this.buttonFindTestFile);
- this.groupBoxTest.Location = new System.Drawing.Point(8, 224);
- this.groupBoxTest.Name = "groupBoxTest";
- this.groupBoxTest.Size = new System.Drawing.Size(328, 56);
- this.groupBoxTest.TabIndex = 1;
- this.groupBoxTest.TabStop = false;
- this.groupBoxTest.Text = "Test";
- //
- // Configuration
- //
- this.AcceptButton = this.buttonOK;
- this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
- this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
- this.CancelButton = this.buttonCancel;
- this.ClientSize = new System.Drawing.Size(344, 320);
- this.Controls.Add(this.groupBoxTest);
- this.Controls.Add(this.tabControl);
- this.Controls.Add(this.buttonCancel);
- this.Controls.Add(this.buttonOK);
- this.MaximizeBox = false;
- this.MinimizeBox = false;
- this.MinimumSize = new System.Drawing.Size(360, 356);
- this.Name = "Configuration";
- this.ShowIcon = false;
- this.ShowInTaskbar = false;
- this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
- this.Text = "ComSkip Launcher";
- this.tabControl.ResumeLayout(false);
- this.tabPageStart.ResumeLayout(false);
- this.groupBoxStartProgram.ResumeLayout(false);
- this.groupBoxStartProgram.PerformLayout();
- this.tabPageEnd.ResumeLayout(false);
- this.groupBoxEndProgram.ResumeLayout(false);
- this.groupBoxEndProgram.PerformLayout();
- this.groupBoxTest.ResumeLayout(false);
- this.groupBoxTest.PerformLayout();
- this.ResumeLayout(false);
-
- }
-
- #endregion
-
- private System.Windows.Forms.Button buttonOK;
- private System.Windows.Forms.Button buttonCancel;
- private System.Windows.Forms.OpenFileDialog openFileDialog;
- private System.Windows.Forms.Button buttonTest;
- private System.Windows.Forms.TextBox textBoxTest;
- private System.Windows.Forms.Button buttonFindTestFile;
- private System.Windows.Forms.RadioButton radioButtonStartDoNothing;
- private System.Windows.Forms.RadioButton radioButtonStartLaunch;
- private System.Windows.Forms.ToolTip toolTips;
- private System.Windows.Forms.TabControl tabControl;
- private System.Windows.Forms.TabPage tabPageStart;
- private System.Windows.Forms.TabPage tabPageEnd;
- private System.Windows.Forms.GroupBox groupBoxTest;
- private System.Windows.Forms.RadioButton radioButtonEndDoNothing;
- private System.Windows.Forms.RadioButton radioButtonEndLaunch;
- private System.Windows.Forms.Label labelEndParameters;
- private System.Windows.Forms.TextBox textBoxEndParameters;
- private System.Windows.Forms.Button buttonEndParameters;
- private System.Windows.Forms.Label labelEndProgram;
- private System.Windows.Forms.Button buttonEndProgram;
- private System.Windows.Forms.TextBox textBoxEndProgram;
- private System.Windows.Forms.GroupBox groupBoxEndProgram;
- private System.Windows.Forms.GroupBox groupBoxStartProgram;
- private System.Windows.Forms.Label labelStartParameters;
- private System.Windows.Forms.TextBox textBoxStartParameters;
- private System.Windows.Forms.Button buttonStartParameters;
- private System.Windows.Forms.Label labelStartProgram;
- private System.Windows.Forms.Button buttonStartProgram;
- private System.Windows.Forms.TextBox textBoxStartProgram;
- }
-}
\ No newline at end of file
Deleted: trunk/plugins/ComSkipLauncher TVE3/Configuration.cs
===================================================================
--- trunk/plugins/ComSkipLauncher TVE3/Configuration.cs 2007-03-11 13:44:57 UTC (rev 181)
+++ trunk/plugins/ComSkipLauncher TVE3/Configuration.cs 2007-03-11 15:18:13 UTC (rev 182)
@@ -1,176 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.ComponentModel;
-using System.Data;
-using System.Diagnostics;
-using System.Drawing;
-using System.IO;
-using System.Text;
-using System.Windows.Forms;
-
-using MediaPortal.GUI.Library;
-
-namespace MediaPortal.Plugins
-{
-
- public partial class Configuration : Form
- {
-
- #region Constants
-
- const string ParametersMessage =
-@"{0} = Recorded filename (includes path)
-{1} = Reco...
[truncated message content] |