From: <an...@us...> - 2007-08-27 13:37:18
|
Revision: 871 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=871&view=rev Author: and-81 Date: 2007-08-27 05:46:19 -0700 (Mon, 27 Aug 2007) Log Message: ----------- Modified Paths: -------------- trunk/plugins/IR Server Suite/Applications/Debug Client/MainForm.cs trunk/plugins/IR Server Suite/Applications/Debug Client/Properties/AssemblyInfo.cs trunk/plugins/IR Server Suite/Applications/IR Blast/Properties/AssemblyInfo.cs trunk/plugins/IR Server Suite/Applications/IR Blast (No Window)/Properties/AssemblyInfo.cs trunk/plugins/IR Server Suite/Applications/IR Server/IRServer.cs trunk/plugins/IR Server Suite/Applications/IR Server/Program.cs trunk/plugins/IR Server Suite/Applications/IR Server/Properties/AssemblyInfo.cs trunk/plugins/IR Server Suite/Applications/Translator/Forms/ButtonMappingForm.Designer.cs trunk/plugins/IR Server Suite/Applications/Translator/Forms/ButtonMappingForm.cs trunk/plugins/IR Server Suite/Applications/Translator/Forms/EditProgramForm.cs trunk/plugins/IR Server Suite/Applications/Translator/Forms/MainForm.cs trunk/plugins/IR Server Suite/Applications/Translator/ProgramSettings.cs trunk/plugins/IR Server Suite/Applications/Translator/Properties/AssemblyInfo.cs trunk/plugins/IR Server Suite/Applications/Tray Launcher/Properties/AssemblyInfo.cs trunk/plugins/IR Server Suite/Applications/Virtual Remote/Properties/AssemblyInfo.cs trunk/plugins/IR Server Suite/Applications/Virtual Remote Skin Editor/Properties/AssemblyInfo.cs trunk/plugins/IR Server Suite/Common/IrssUtils/IrssUtils.csproj trunk/plugins/IR Server Suite/Common/IrssUtils/Properties/AssemblyInfo.cs trunk/plugins/IR Server Suite/Common/IrssUtils/Properties/Resources.Designer.cs trunk/plugins/IR Server Suite/Common/MPUtils/Properties/AssemblyInfo.cs trunk/plugins/IR Server Suite/IPC/Named Pipes/Properties/AssemblyInfo.cs trunk/plugins/IR Server Suite/IR Server Plugins/Custom HID Receiver/Custom HID Receiver.cs trunk/plugins/IR Server Suite/IR Server Plugins/Custom HID Receiver/Properties/AssemblyInfo.cs trunk/plugins/IR Server Suite/IR Server Plugins/FusionRemote Receiver/FusionREMOTE Receiver.csproj trunk/plugins/IR Server Suite/IR Server Plugins/FusionRemote Receiver/FusionRemoteReceiver.cs trunk/plugins/IR Server Suite/IR Server Plugins/FusionRemote Receiver/Properties/AssemblyInfo.cs trunk/plugins/IR Server Suite/IR Server Plugins/HCW Transceiver/Configure.Designer.cs trunk/plugins/IR Server Suite/IR Server Plugins/HCW Transceiver/Configure.cs trunk/plugins/IR Server Suite/IR Server Plugins/HCW Transceiver/Configure.resx trunk/plugins/IR Server Suite/IR Server Plugins/HCW Transceiver/HcwTransceiver.cs trunk/plugins/IR Server Suite/IR Server Plugins/HCW Transceiver/Properties/AssemblyInfo.cs trunk/plugins/IR Server Suite/IR Server Plugins/HCW Transceiver/irremote.cs trunk/plugins/IR Server Suite/IR Server Plugins/IR Server Plugin Interface/Properties/AssemblyInfo.cs trunk/plugins/IR Server Suite/IR Server Plugins/IRMan Receiver/IRMan Receiver.cs trunk/plugins/IR Server Suite/IR Server Plugins/IRMan Receiver/IRMan Receiver.csproj trunk/plugins/IR Server Suite/IR Server Plugins/IRMan Receiver/Properties/AssemblyInfo.cs trunk/plugins/IR Server Suite/IR Server Plugins/IRTrans Transceiver/IRTrans Transceiver.csproj trunk/plugins/IR Server Suite/IR Server Plugins/IRTrans Transceiver/IRTransTransceiver.cs trunk/plugins/IR Server Suite/IR Server Plugins/IRTrans Transceiver/Properties/AssemblyInfo.cs trunk/plugins/IR Server Suite/IR Server Plugins/IgorPlug USB Receiver/IgorPlug USB Receiver.cs trunk/plugins/IR Server Suite/IR Server Plugins/IgorPlug USB Receiver/Properties/AssemblyInfo.cs trunk/plugins/IR Server Suite/IR Server Plugins/USB-UIRT Transceiver/Properties/AssemblyInfo.cs trunk/plugins/IR Server Suite/IR Server Plugins/USB-UIRT Transceiver/USB-UIRT Transceiver.csproj trunk/plugins/IR Server Suite/IR Server Plugins/USB-UIRT Transceiver/UirtTransceiver.cs trunk/plugins/IR Server Suite/IR Server Plugins/WinLirc Transceiver/Configure.cs trunk/plugins/IR Server Suite/IR Server Plugins/WinLirc Transceiver/CreateIRFile.Designer.cs trunk/plugins/IR Server Suite/IR Server Plugins/WinLirc Transceiver/CreateIRFile.cs trunk/plugins/IR Server Suite/IR Server Plugins/WinLirc Transceiver/CreateIRFile.resx trunk/plugins/IR Server Suite/IR Server Plugins/WinLirc Transceiver/Properties/AssemblyInfo.cs trunk/plugins/IR Server Suite/IR Server Plugins/WinLirc Transceiver/WinLirc Transceiver.cs trunk/plugins/IR Server Suite/IR Server Plugins/WinLirc Transceiver/WinLirc Transceiver.csproj trunk/plugins/IR Server Suite/IR Server Plugins/Windows Message Receiver/Properties/AssemblyInfo.cs trunk/plugins/IR Server Suite/IR Server Plugins/Windows Message Receiver/Windows Message Receiver.cs trunk/plugins/IR Server Suite/IR Server Plugins/Windows Message Receiver/Windows Message Receiver.csproj trunk/plugins/IR Server Suite/IR Server Plugins/X10 Transceiver/Properties/AssemblyInfo.cs trunk/plugins/IR Server Suite/IR Server Plugins/X10 Transceiver/X10 Transceiver.csproj trunk/plugins/IR Server Suite/IR Server Plugins/X10 Transceiver/X10Transceiver.cs trunk/plugins/IR Server Suite/IR Server Plugins/XBCDRC Receiver/Properties/AssemblyInfo.cs trunk/plugins/IR Server Suite/IR Server Plugins/XBCDRC Receiver/XBCDRC Receiver.cs trunk/plugins/IR Server Suite/IR Server Plugins/XBCDRC Receiver/XBCDRC Receiver.csproj trunk/plugins/IR Server Suite/MediaPortal Plugins/MP Blast Zone Plugin/MPBlastZonePlugin.cs trunk/plugins/IR Server Suite/MediaPortal Plugins/MP Blast Zone Plugin/Properties/AssemblyInfo.cs trunk/plugins/IR Server Suite/MediaPortal Plugins/MP Control Plugin/MPControlPlugin.cs trunk/plugins/IR Server Suite/MediaPortal Plugins/MP Control Plugin/Properties/AssemblyInfo.cs trunk/plugins/IR Server Suite/MediaPortal Plugins/TV2 Blaster Plugin/Properties/AssemblyInfo.cs trunk/plugins/IR Server Suite/MediaPortal Plugins/TV2 Blaster Plugin/TV2BlasterPlugin.cs trunk/plugins/IR Server Suite/MediaPortal Plugins/TV3 Blaster Plugin/Properties/AssemblyInfo.cs trunk/plugins/IR Server Suite/MediaPortal Plugins/TV3 Blaster Plugin/TV3BlasterPlugin.cs Added Paths: ----------- trunk/plugins/IR Server Suite/Applications/IR File Tool/ trunk/plugins/IR Server Suite/Applications/IR File Tool/FormMain.Designer.cs trunk/plugins/IR Server Suite/Applications/IR File Tool/FormMain.cs trunk/plugins/IR Server Suite/Applications/IR File Tool/IR File Tool.csproj trunk/plugins/IR Server Suite/Applications/IR File Tool/Program.cs trunk/plugins/IR Server Suite/Applications/IR File Tool/Properties/ trunk/plugins/IR Server Suite/Applications/IR File Tool/Properties/AssemblyInfo.cs trunk/plugins/IR Server Suite/Applications/SageSetup/ trunk/plugins/IR Server Suite/Applications/SageSetup/FormMain.Designer.cs trunk/plugins/IR Server Suite/Applications/SageSetup/FormMain.cs trunk/plugins/IR Server Suite/Applications/SageSetup/FormMain.resx trunk/plugins/IR Server Suite/Applications/SageSetup/Program.cs trunk/plugins/IR Server Suite/Applications/SageSetup/Properties/ trunk/plugins/IR Server Suite/Applications/SageSetup/Properties/AssemblyInfo.cs trunk/plugins/IR Server Suite/Applications/SageSetup/Sage Setup.csproj trunk/plugins/IR Server Suite/Applications/Translator/EventSchedule.cs trunk/plugins/IR Server Suite/Common/IrssUtils/Win32ErrorCodes.cs trunk/plugins/IR Server Suite/IR Server Plugins/Microsoft MCE Transceiver/Advanced.Designer.cs trunk/plugins/IR Server Suite/IR Server Plugins/Microsoft MCE Transceiver/Advanced.cs trunk/plugins/IR Server Suite/IR Server Plugins/Microsoft MCE Transceiver/Advanced.resx trunk/plugins/IR Server Suite/IR Server Plugins/Microsoft MCE Transceiver/Win32ErrorCodes.cs trunk/plugins/IR Server Suite/IR Server Plugins/Windows Message Receiver/ReceiverWindow.cs Property Changed: ---------------- trunk/plugins/IR Server Suite/MediaPortal Plugins/MP Blast Zone Plugin/ Modified: trunk/plugins/IR Server Suite/Applications/Debug Client/MainForm.cs =================================================================== --- trunk/plugins/IR Server Suite/Applications/Debug Client/MainForm.cs 2007-08-27 10:30:17 UTC (rev 870) +++ trunk/plugins/IR Server Suite/Applications/Debug Client/MainForm.cs 2007-08-27 12:46:19 UTC (rev 871) @@ -97,7 +97,7 @@ #region Constants - const string TempIRFile = "test.IR"; + static readonly string DebugIRFile = IrssUtils.Common.FolderIRCommands + "DebugClient.IR"; #endregion @@ -424,7 +424,7 @@ return; } - if (BlastIR(TempIRFile, comboBoxPort.SelectedItem as string)) + if (BlastIR(DebugIRFile, comboBoxPort.SelectedItem as string)) AddStatusLine("Blasting"); else AddStatusLine("Can't Blast"); @@ -443,7 +443,7 @@ return; } - if (LearnIR(TempIRFile)) + if (LearnIR(DebugIRFile)) AddStatusLine("Learning IR"); else AddStatusLine("Learn IR Busy"); Modified: trunk/plugins/IR Server Suite/Applications/Debug Client/Properties/AssemblyInfo.cs =================================================================== --- trunk/plugins/IR Server Suite/Applications/Debug Client/Properties/AssemblyInfo.cs 2007-08-27 10:30:17 UTC (rev 870) +++ trunk/plugins/IR Server Suite/Applications/Debug Client/Properties/AssemblyInfo.cs 2007-08-27 12:46:19 UTC (rev 871) @@ -33,7 +33,7 @@ // You can specify all the values or you can default the Revision and Build Numbers // by using the '*' as shown below: -[assembly: AssemblyVersion("1.0.3.3")] -[assembly: AssemblyFileVersion("1.0.3.3")] +[assembly: AssemblyVersion("1.0.3.4")] +[assembly: AssemblyFileVersion("1.0.3.4")] [assembly: CLSCompliant(true)] Modified: trunk/plugins/IR Server Suite/Applications/IR Blast/Properties/AssemblyInfo.cs =================================================================== --- trunk/plugins/IR Server Suite/Applications/IR Blast/Properties/AssemblyInfo.cs 2007-08-27 10:30:17 UTC (rev 870) +++ trunk/plugins/IR Server Suite/Applications/IR Blast/Properties/AssemblyInfo.cs 2007-08-27 12:46:19 UTC (rev 871) @@ -33,7 +33,7 @@ // You can specify all the values or you can default the Revision and Build Numbers // by using the '*' as shown below: -[assembly: AssemblyVersion("1.0.3.3")] -[assembly: AssemblyFileVersion("1.0.3.3")] +[assembly: AssemblyVersion("1.0.3.4")] +[assembly: AssemblyFileVersion("1.0.3.4")] [assembly: CLSCompliant(true)] \ No newline at end of file Modified: trunk/plugins/IR Server Suite/Applications/IR Blast (No Window)/Properties/AssemblyInfo.cs =================================================================== --- trunk/plugins/IR Server Suite/Applications/IR Blast (No Window)/Properties/AssemblyInfo.cs 2007-08-27 10:30:17 UTC (rev 870) +++ trunk/plugins/IR Server Suite/Applications/IR Blast (No Window)/Properties/AssemblyInfo.cs 2007-08-27 12:46:19 UTC (rev 871) @@ -33,7 +33,7 @@ // You can specify all the values or you can default the Revision and Build Numbers // by using the '*' as shown below: -[assembly: AssemblyVersion("1.0.3.3")] -[assembly: AssemblyFileVersion("1.0.3.3")] +[assembly: AssemblyVersion("1.0.3.4")] +[assembly: AssemblyFileVersion("1.0.3.4")] [assembly: CLSCompliant(true)] \ No newline at end of file Added: trunk/plugins/IR Server Suite/Applications/IR File Tool/FormMain.Designer.cs =================================================================== --- trunk/plugins/IR Server Suite/Applications/IR File Tool/FormMain.Designer.cs (rev 0) +++ trunk/plugins/IR Server Suite/Applications/IR File Tool/FormMain.Designer.cs 2007-08-27 12:46:19 UTC (rev 871) @@ -0,0 +1,39 @@ +namespace IR_File_Tool +{ + partial class FormMain + { + /// <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.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.Text = "Form1"; + } + + #endregion + } +} + Added: trunk/plugins/IR Server Suite/Applications/IR File Tool/FormMain.cs =================================================================== --- trunk/plugins/IR Server Suite/Applications/IR File Tool/FormMain.cs (rev 0) +++ trunk/plugins/IR Server Suite/Applications/IR File Tool/FormMain.cs 2007-08-27 12:46:19 UTC (rev 871) @@ -0,0 +1,18 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Text; +using System.Windows.Forms; + +namespace IR_File_Tool +{ + public partial class FormMain : Form + { + public FormMain() + { + InitializeComponent(); + } + } +} \ No newline at end of file Added: trunk/plugins/IR Server Suite/Applications/IR File Tool/IR File Tool.csproj =================================================================== --- trunk/plugins/IR Server Suite/Applications/IR File Tool/IR File Tool.csproj (rev 0) +++ trunk/plugins/IR Server Suite/Applications/IR File Tool/IR File Tool.csproj 2007-08-27 12:46:19 UTC (rev 871) @@ -0,0 +1,72 @@ +<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>{B5E711A2-E6D0-4BEA-B66B-7A8B0BCA6A4D}</ProjectGuid> + <OutputType>WinExe</OutputType> + <AppDesignerFolder>Properties</AppDesignerFolder> + <RootNamespace>IR_File_Tool</RootNamespace> + <AssemblyName>IR File Tool</AssemblyName> + </PropertyGroup> + <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> + <DebugSymbols>true</DebugSymbols> + <DebugType>full</DebugType> + <Optimize>false</Optimize> + <OutputPath>bin\Debug\</OutputPath> + <DefineConstants>DEBUG;TRACE</DefineConstants> + <ErrorReport>prompt</ErrorReport> + <WarningLevel>4</WarningLevel> + </PropertyGroup> + <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> + <DebugType>pdbonly</DebugType> + <Optimize>true</Optimize> + <OutputPath>bin\Release\</OutputPath> + <DefineConstants>TRACE</DefineConstants> + <ErrorReport>prompt</ErrorReport> + <WarningLevel>4</WarningLevel> + </PropertyGroup> + <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' "> + <DebugSymbols>true</DebugSymbols> + <OutputPath>bin\x86\Debug\</OutputPath> + <DefineConstants>DEBUG;TRACE</DefineConstants> + <DebugType>full</DebugType> + <PlatformTarget>x86</PlatformTarget> + <ErrorReport>prompt</ErrorReport> + </PropertyGroup> + <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' "> + <OutputPath>bin\x86\Release\</OutputPath> + <DefineConstants>TRACE</DefineConstants> + <Optimize>true</Optimize> + <DebugType>pdbonly</DebugType> + <PlatformTarget>x86</PlatformTarget> + <ErrorReport>prompt</ErrorReport> + </PropertyGroup> + <ItemGroup> + <Reference Include="System" /> + <Reference Include="System.Data" /> + <Reference Include="System.Deployment" /> + <Reference Include="System.Drawing" /> + <Reference Include="System.Windows.Forms" /> + <Reference Include="System.Xml" /> + </ItemGroup> + <ItemGroup> + <Compile Include="FormMain.cs"> + <SubType>Form</SubType> + </Compile> + <Compile Include="FormMain.Designer.cs"> + <DependentUpon>FormMain.cs</DependentUpon> + </Compile> + <Compile Include="Program.cs" /> + <Compile Include="Properties\AssemblyInfo.cs" /> + </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> + --> +</Project> \ No newline at end of file Added: trunk/plugins/IR Server Suite/Applications/IR File Tool/Program.cs =================================================================== --- trunk/plugins/IR Server Suite/Applications/IR File Tool/Program.cs (rev 0) +++ trunk/plugins/IR Server Suite/Applications/IR File Tool/Program.cs 2007-08-27 12:46:19 UTC (rev 871) @@ -0,0 +1,20 @@ +using System; +using System.Collections.Generic; +using System.Windows.Forms; + +namespace IR_File_Tool +{ + static class Program + { + /// <summary> + /// The main entry point for the application. + /// </summary> + [STAThread] + static void Main() + { + Application.EnableVisualStyles(); + Application.SetCompatibleTextRenderingDefault(false); + Application.Run(new FormMain()); + } + } +} \ No newline at end of file Added: trunk/plugins/IR Server Suite/Applications/IR File Tool/Properties/AssemblyInfo.cs =================================================================== --- trunk/plugins/IR Server Suite/Applications/IR File Tool/Properties/AssemblyInfo.cs (rev 0) +++ trunk/plugins/IR Server Suite/Applications/IR File Tool/Properties/AssemblyInfo.cs 2007-08-27 12:46:19 UTC (rev 871) @@ -0,0 +1,33 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("IR File Tool")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("IR File Tool")] +[assembly: AssemblyCopyright("Copyright © 2007")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("74144852-ec06-4af4-925f-459e8053b2f8")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] Modified: trunk/plugins/IR Server Suite/Applications/IR Server/IRServer.cs =================================================================== --- trunk/plugins/IR Server Suite/Applications/IR Server/IRServer.cs 2007-08-27 10:30:17 UTC (rev 870) +++ trunk/plugins/IR Server Suite/Applications/IR Server/IRServer.cs 2007-08-27 12:46:19 UTC (rev 871) @@ -218,6 +218,8 @@ _notifyIcon.Visible = true; + SystemEvents.PowerModeChanged += new PowerModeChangedEventHandler(SystemEvents_PowerModeChanged); + IrssLog.Info("IR Server started"); return true; @@ -236,6 +238,8 @@ { IrssLog.Info("Stopping IR Server ..."); + SystemEvents.PowerModeChanged -= new PowerModeChangedEventHandler(SystemEvents_PowerModeChanged); + _notifyIcon.Visible = false; if (_mode == IRServerMode.ServerMode) @@ -268,7 +272,7 @@ } try { - if (_pluginTransmit != null) + if (_pluginTransmit != null && _pluginTransmit != _pluginReceive) _pluginTransmit.Stop(); } catch (Exception ex) @@ -609,7 +613,45 @@ } } + void SystemEvents_PowerModeChanged(object sender, PowerModeChangedEventArgs e) + { + switch (e.Mode) + { + case PowerModes.Resume: + { + IrssLog.Info("Resume from standby ..."); + if (_pluginReceive != null) + _pluginReceive.Resume(); + if (_pluginTransmit != null && _pluginTransmit != _pluginReceive) + _pluginTransmit.Resume(); + + // TODO: Inform clients + break; + } + + case PowerModes.Suspend: + { + IrssLog.Info("Enter low-power standby ..."); + + if (_pluginReceive != null) + _pluginReceive.Suspend(); + if (_pluginTransmit != null && _pluginTransmit != _pluginReceive) + _pluginTransmit.Suspend(); + + // TODO: Inform clients + /* + if (_mode == IRServerMode.ServerMode) + { + PipeMessage message = new PipeMessage(Common.ServerPipeName, Environment.MachineName, "Server Shutdown", null); + SendToAll(message); + } + */ + break; + } + } + } + void SendToAll(PipeMessage message) { IrssLog.Debug("SendToAll({0})", message.ToString()); Modified: trunk/plugins/IR Server Suite/Applications/IR Server/Program.cs =================================================================== --- trunk/plugins/IR Server Suite/Applications/IR Server/Program.cs 2007-08-27 10:30:17 UTC (rev 870) +++ trunk/plugins/IR Server Suite/Applications/IR Server/Program.cs 2007-08-27 12:46:19 UTC (rev 871) @@ -88,7 +88,7 @@ foreach (Type type in types) { - if (type.IsClass && !type.IsAbstract && type.GetInterface(typeof(IRServerPlugin).Name) == typeof(IRServerPlugin)) + if (type.IsClass && !type.IsAbstract && type.IsSubclassOf(typeof(IRServerPlugin))) { IRServerPlugin plugin = (IRServerPlugin)Activator.CreateInstance(type); if (plugin == null) Modified: trunk/plugins/IR Server Suite/Applications/IR Server/Properties/AssemblyInfo.cs =================================================================== --- trunk/plugins/IR Server Suite/Applications/IR Server/Properties/AssemblyInfo.cs 2007-08-27 10:30:17 UTC (rev 870) +++ trunk/plugins/IR Server Suite/Applications/IR Server/Properties/AssemblyInfo.cs 2007-08-27 12:46:19 UTC (rev 871) @@ -34,8 +34,8 @@ // You can specify all the values or you can default the Revision and Build Numbers // by using the '*' as shown below: -[assembly: AssemblyVersion("1.0.3.3")] -[assembly: AssemblyFileVersion("1.0.3.3")] +[assembly: AssemblyVersion("1.0.3.4")] +[assembly: AssemblyFileVersion("1.0.3.4")] [assembly: CLSCompliant(true)] Added: trunk/plugins/IR Server Suite/Applications/SageSetup/FormMain.Designer.cs =================================================================== --- trunk/plugins/IR Server Suite/Applications/SageSetup/FormMain.Designer.cs (rev 0) +++ trunk/plugins/IR Server Suite/Applications/SageSetup/FormMain.Designer.cs 2007-08-27 12:46:19 UTC (rev 871) @@ -0,0 +1,246 @@ +namespace SageSetup +{ + partial class FormMain + { + /// <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.buttonSet = new System.Windows.Forms.Button(); + this.groupBoxIRBlast = new System.Windows.Forms.GroupBox(); + this.radioButtonConsole = new System.Windows.Forms.RadioButton(); + this.radioButtonWindowless = new System.Windows.Forms.RadioButton(); + this.groupBoxSagePlugin = new System.Windows.Forms.GroupBox(); + this.radioButtonExeTuner = new System.Windows.Forms.RadioButton(); + this.radioButtonExeMultiTuner = new System.Windows.Forms.RadioButton(); + this.groupBoxIRServer = new System.Windows.Forms.GroupBox(); + this.comboBoxComputer = new System.Windows.Forms.ComboBox(); + this.groupBoxChannelFormat = new System.Windows.Forms.GroupBox(); + this.checkBoxPad = new System.Windows.Forms.CheckBox(); + this.numericUpDownPad = new System.Windows.Forms.NumericUpDown(); + this.toolTips = new System.Windows.Forms.ToolTip(this.components); + this.groupBoxIRBlast.SuspendLayout(); + this.groupBoxSagePlugin.SuspendLayout(); + this.groupBoxIRServer.SuspendLayout(); + this.groupBoxChannelFormat.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.numericUpDownPad)).BeginInit(); + this.SuspendLayout(); + // + // buttonSet + // + this.buttonSet.Location = new System.Drawing.Point(184, 312); + this.buttonSet.Name = "buttonSet"; + this.buttonSet.Size = new System.Drawing.Size(56, 24); + this.buttonSet.TabIndex = 4; + this.buttonSet.Text = "Set!"; + this.toolTips.SetToolTip(this.buttonSet, "Put the setttings in place"); + this.buttonSet.UseVisualStyleBackColor = true; + this.buttonSet.Click += new System.EventHandler(this.buttonSet_Click); + // + // groupBoxIRBlast + // + this.groupBoxIRBlast.Controls.Add(this.radioButtonWindowless); + this.groupBoxIRBlast.Controls.Add(this.radioButtonConsole); + this.groupBoxIRBlast.Location = new System.Drawing.Point(8, 96); + this.groupBoxIRBlast.Name = "groupBoxIRBlast"; + this.groupBoxIRBlast.Size = new System.Drawing.Size(232, 80); + this.groupBoxIRBlast.TabIndex = 1; + this.groupBoxIRBlast.TabStop = false; + this.groupBoxIRBlast.Text = "IR Blast"; + // + // radioButtonConsole + // + this.radioButtonConsole.AutoSize = true; + this.radioButtonConsole.Checked = true; + this.radioButtonConsole.Location = new System.Drawing.Point(8, 24); + this.radioButtonConsole.Name = "radioButtonConsole"; + this.radioButtonConsole.Size = new System.Drawing.Size(121, 17); + this.radioButtonConsole.TabIndex = 0; + this.radioButtonConsole.TabStop = true; + this.radioButtonConsole.Text = "Use console version"; + this.toolTips.SetToolTip(this.radioButtonConsole, "Use the console version of IR Blast"); + this.radioButtonConsole.UseVisualStyleBackColor = true; + // + // radioButtonWindowless + // + this.radioButtonWindowless.AutoSize = true; + this.radioButtonWindowless.Location = new System.Drawing.Point(8, 48); + this.radioButtonWindowless.Name = "radioButtonWindowless"; + this.radioButtonWindowless.Size = new System.Drawing.Size(138, 17); + this.radioButtonWindowless.TabIndex = 1; + this.radioButtonWindowless.Text = "Use windowless version"; + this.toolTips.SetToolTip(this.radioButtonWindowless, "Use the No Window version of IR Blast"); + this.radioButtonWindowless.UseVisualStyleBackColor = true; + // + // groupBoxSagePlugin + // + this.groupBoxSagePlugin.Controls.Add(this.radioButtonExeMultiTuner); + this.groupBoxSagePlugin.Controls.Add(this.radioButtonExeTuner); + this.groupBoxSagePlugin.Location = new System.Drawing.Point(8, 8); + this.groupBoxSagePlugin.Name = "groupBoxSagePlugin"; + this.groupBoxSagePlugin.Size = new System.Drawing.Size(232, 80); + this.groupBoxSagePlugin.TabIndex = 0; + this.groupBoxSagePlugin.TabStop = false; + this.groupBoxSagePlugin.Text = "Sage Plugin"; + // + // radioButtonExeTuner + // + this.radioButtonExeTuner.AutoSize = true; + this.radioButtonExeTuner.Checked = true; + this.radioButtonExeTuner.Location = new System.Drawing.Point(8, 24); + this.radioButtonExeTuner.Name = "radioButtonExeTuner"; + this.radioButtonExeTuner.Size = new System.Drawing.Size(96, 17); + this.radioButtonExeTuner.TabIndex = 0; + this.radioButtonExeTuner.TabStop = true; + this.radioButtonExeTuner.Text = "Use EXETuner"; + this.toolTips.SetToolTip(this.radioButtonExeTuner, "Use the Sage EXE Tuner plugin"); + this.radioButtonExeTuner.UseVisualStyleBackColor = true; + // + // radioButtonExeMultiTuner + // + this.radioButtonExeMultiTuner.AutoSize = true; + this.radioButtonExeMultiTuner.Location = new System.Drawing.Point(8, 48); + this.radioButtonExeMultiTuner.Name = "radioButtonExeMultiTuner"; + this.radioButtonExeMultiTuner.Size = new System.Drawing.Size(118, 17); + this.radioButtonExeMultiTuner.TabIndex = 1; + this.radioButtonExeMultiTuner.Text = "Use EXEMultiTuner"; + this.toolTips.SetToolTip(this.radioButtonExeMultiTuner, "Use the Sage EXE Multi Tuner plugin"); + this.radioButtonExeMultiTuner.UseVisualStyleBackColor = true; + // + // groupBoxIRServer + // + this.groupBoxIRServer.Controls.Add(this.comboBoxComputer); + this.groupBoxIRServer.Location = new System.Drawing.Point(8, 184); + this.groupBoxIRServer.Name = "groupBoxIRServer"; + this.groupBoxIRServer.Size = new System.Drawing.Size(232, 56); + this.groupBoxIRServer.TabIndex = 2; + this.groupBoxIRServer.TabStop = false; + this.groupBoxIRServer.Text = "IR Server"; + // + // comboBoxComputer + // + this.comboBoxComputer.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.comboBoxComputer.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.Suggest; + this.comboBoxComputer.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems; + this.comboBoxComputer.FormattingEnabled = true; + this.comboBoxComputer.Location = new System.Drawing.Point(8, 24); + this.comboBoxComputer.Name = "comboBoxComputer"; + this.comboBoxComputer.Size = new System.Drawing.Size(216, 21); + this.comboBoxComputer.TabIndex = 0; + this.toolTips.SetToolTip(this.comboBoxComputer, "Host computer for IR Server"); + // + // groupBoxChannelFormat + // + this.groupBoxChannelFormat.Controls.Add(this.numericUpDownPad); + this.groupBoxChannelFormat.Controls.Add(this.checkBoxPad); + this.groupBoxChannelFormat.Location = new System.Drawing.Point(8, 248); + this.groupBoxChannelFormat.Name = "groupBoxChannelFormat"; + this.groupBoxChannelFormat.Size = new System.Drawing.Size(232, 56); + this.groupBoxChannelFormat.TabIndex = 3; + this.groupBoxChannelFormat.TabStop = false; + this.groupBoxChannelFormat.Text = "Channel Format"; + // + // checkBoxPad + // + this.checkBoxPad.Location = new System.Drawing.Point(8, 24); + this.checkBoxPad.Name = "checkBoxPad"; + this.checkBoxPad.Size = new System.Drawing.Size(144, 20); + this.checkBoxPad.TabIndex = 0; + this.checkBoxPad.Text = "Pad channel number"; + this.toolTips.SetToolTip(this.checkBoxPad, "Do you want to pad channel numbers?"); + this.checkBoxPad.UseVisualStyleBackColor = true; + // + // numericUpDownPad + // + this.numericUpDownPad.Location = new System.Drawing.Point(152, 24); + this.numericUpDownPad.Maximum = new decimal(new int[] { + 9, + 0, + 0, + 0}); + this.numericUpDownPad.Minimum = new decimal(new int[] { + 2, + 0, + 0, + 0}); + this.numericUpDownPad.Name = "numericUpDownPad"; + this.numericUpDownPad.Size = new System.Drawing.Size(72, 20); + this.numericUpDownPad.TabIndex = 1; + this.numericUpDownPad.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; + this.toolTips.SetToolTip(this.numericUpDownPad, "Pad out channel numbers to this many digits"); + this.numericUpDownPad.Value = new decimal(new int[] { + 4, + 0, + 0, + 0}); + // + // FormMain + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(248, 344); + this.Controls.Add(this.groupBoxChannelFormat); + this.Controls.Add(this.groupBoxIRServer); + this.Controls.Add(this.groupBoxSagePlugin); + this.Controls.Add(this.groupBoxIRBlast); + this.Controls.Add(this.buttonSet); + this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; + this.MaximizeBox = false; + this.MinimizeBox = false; + this.Name = "FormMain"; + this.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide; + this.Text = "IR Server - Sage Setup"; + this.Load += new System.EventHandler(this.FormMain_Load); + this.groupBoxIRBlast.ResumeLayout(false); + this.groupBoxIRBlast.PerformLayout(); + this.groupBoxSagePlugin.ResumeLayout(false); + this.groupBoxSagePlugin.PerformLayout(); + this.groupBoxIRServer.ResumeLayout(false); + this.groupBoxChannelFormat.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.numericUpDownPad)).EndInit(); + this.ResumeLayout(false); + + } + + #endregion + + private System.Windows.Forms.Button buttonSet; + private System.Windows.Forms.GroupBox groupBoxIRBlast; + private System.Windows.Forms.RadioButton radioButtonWindowless; + private System.Windows.Forms.RadioButton radioButtonConsole; + private System.Windows.Forms.GroupBox groupBoxSagePlugin; + private System.Windows.Forms.RadioButton radioButtonExeMultiTuner; + private System.Windows.Forms.RadioButton radioButtonExeTuner; + private System.Windows.Forms.GroupBox groupBoxIRServer; + private System.Windows.Forms.ComboBox comboBoxComputer; + private System.Windows.Forms.GroupBox groupBoxChannelFormat; + private System.Windows.Forms.CheckBox checkBoxPad; + private System.Windows.Forms.ToolTip toolTips; + private System.Windows.Forms.NumericUpDown numericUpDownPad; + } +} + Added: trunk/plugins/IR Server Suite/Applications/SageSetup/FormMain.cs =================================================================== --- trunk/plugins/IR Server Suite/Applications/SageSetup/FormMain.cs (rev 0) +++ trunk/plugins/IR Server Suite/Applications/SageSetup/FormMain.cs 2007-08-27 12:46:19 UTC (rev 871) @@ -0,0 +1,108 @@ +using System; +using System.Collections; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Text; +using System.Windows.Forms; + +using Microsoft.Win32; +using IrssUtils; + +namespace SageSetup +{ + + public partial class FormMain : Form + { + string _irBlastLocation = null; + + public FormMain() + { + InitializeComponent(); + } + + private void FormMain_Load(object sender, EventArgs e) + { + ArrayList networkPCs = Win32.GetNetworkComputers(); + if (networkPCs == null) + { + MessageBox.Show(this, "No server names detected.", "Network Error", MessageBoxButtons.OK, MessageBoxIcon.Error); + Application.Exit(); + return; + } + else + { + comboBoxComputer.Items.AddRange(networkPCs.ToArray()); + } + + _irBlastLocation = SystemRegistry.GetInstallFolder(); + + if (String.IsNullOrEmpty(_irBlastLocation)) + { + MessageBox.Show(this, "IR Server Suite install location not found, please re-install IR Server Suite", "Application Location Error", MessageBoxButtons.OK, MessageBoxIcon.Error); + Application.Exit(); + return; + } + } + + private void buttonSet_Click(object sender, EventArgs e) + { +/* +[HKEY_LOCAL_MACHINE\SOFTWARE\Sage\EXETunerPlugin] +"Command"="\"C:\\Program Files\\IR Server Suite\\IR Blast\\IRBlast.exe\" -host localhost -channel %CHANNEL%" + +[HKEY_LOCAL_MACHINE\SOFTWARE\Frey Technologies\Common\EXEMultiTunerPlugin] +"Command"="\"C:\\Program Files\\IR Server Suite\\IR Blast\\IRBlast.exe\" -host localhost -port Port_%DEVICE% -channel %CHANNEL%" +*/ + string hostComputer = comboBoxComputer.Text; + + if (String.IsNullOrEmpty(hostComputer)) + { + MessageBox.Show(this, "You must specify an IR Server host computer", "No Server Host", MessageBoxButtons.OK, MessageBoxIcon.Warning); + return; + } + + try + { + RegistryKey mainKey; + if (radioButtonExeTuner.Checked) + mainKey = Registry.LocalMachine.CreateSubKey("SOFTWARE\\Sage\\EXETunerPlugin"); + else + mainKey = Registry.LocalMachine.CreateSubKey("SOFTWARE\\Frey Technologies\\Common\\EXEMultiTunerPlugin"); + + StringBuilder command = new StringBuilder(); + command.Append("\""); + command.Append(_irBlastLocation); + command.Append("\\IR Blast\\"); + if (radioButtonConsole.Checked) + command.Append("IRBlast.exe"); + else + command.Append("IRBlast-NoWindow.exe"); + command.Append("\""); + + command.Append(" -host "); + command.Append(hostComputer); + + if (radioButtonExeMultiTuner.Checked) + command.Append(" -port Port_%DEVICE%"); + + if (checkBoxPad.Checked) + command.AppendFormat(" -pad {0}", numericUpDownPad.Value); + + command.Append(" -channel %CHANNEL%"); + + mainKey.SetValue("Command", command.ToString(), RegistryValueKind.String); + mainKey.Close(); + + MessageBox.Show(this, "Sage plugin setup complete", "Done", MessageBoxButtons.OK, MessageBoxIcon.Information); + } + catch (Exception ex) + { + MessageBox.Show(this, ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + + } + +} Added: trunk/plugins/IR Server Suite/Applications/SageSetup/FormMain.resx =================================================================== --- trunk/plugins/IR Server Suite/Applications/SageSetup/FormMain.resx (rev 0) +++ trunk/plugins/IR Server Suite/Applications/SageSetup/FormMain.resx 2007-08-27 12:46:19 UTC (rev 871) @@ -0,0 +1,123 @@ +<?xml version="1.0" encoding="utf-8"?> +<root> + <!-- + Microsoft ResX Schema + + Version 2.0 + + The primary goals of this format is to allow a simple XML format + that is mostly human readable. The generation and parsing of the + various data types are done through the TypeConverter classes + associated with the data types. + + Example: + + ... ado.net/XML headers & schema ... + <resheader name="resmimetype">text/microsoft-resx</resheader> + <resheader name="version">2.0</resheader> + <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> + <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> + <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data> + <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> + <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> + <value>[base64 mime encoded serialized .NET Framework object]</value> + </data> + <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> + <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> + <comment>This is a comment</comment> + </data> + + There are any number of "resheader" rows that contain simple + name/value pairs. + + Each data row contains a name, and value. The row also contains a + type or mimetype. Type corresponds to a .NET class that support + text/value conversion through the TypeConverter architecture. + Classes that don't support this are serialized and stored with the + mimetype set. + + The mimetype is used for serialized objects, and tells the + ResXResourceReader how to depersist the object. This is currently not + extensible. For a given mimetype the value must be set accordingly: + + Note - application/x-microsoft.net.object.binary.base64 is the format + that the ResXResourceWriter will generate, however the reader can + read any of the formats listed below. + + mimetype: application/x-microsoft.net.object.binary.base64 + value : The object must be serialized with + : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter + : and then encoded with base64 encoding. + + mimetype: application/x-microsoft.net.object.soap.base64 + value : The object must be serialized with + : System.Runtime.Serialization.Formatters.Soap.SoapFormatter + : and then encoded with base64 encoding. + + mimetype: application/x-microsoft.net.object.bytearray.base64 + value : The object must be serialized into a byte array + : using a System.ComponentModel.TypeConverter + : and then encoded with base64 encoding. + --> + <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> + <xsd:import namespace="http://www.w3.org/XML/1998/namespace" /> + <xsd:element name="root" msdata:IsDataSet="true"> + <xsd:complexType> + <xsd:choice maxOccurs="unbounded"> + <xsd:element name="metadata"> + <xsd:complexType> + <xsd:sequence> + <xsd:element name="value" type="xsd:string" minOccurs="0" /> + </xsd:sequence> + <xsd:attribute name="name" use="required" type="xsd:string" /> + <xsd:attribute name="type" type="xsd:string" /> + <xsd:attribute name="mimetype" type="xsd:string" /> + <xsd:attribute ref="xml:space" /> + </xsd:complexType> + </xsd:element> + <xsd:element name="assembly"> + <xsd:complexType> + <xsd:attribute name="alias" type="xsd:string" /> + <xsd:attribute name="name" type="xsd:string" /> + </xsd:complexType> + </xsd:element> + <xsd:element name="data"> + <xsd:complexType> + <xsd:sequence> + <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> + <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> + </xsd:sequence> + <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" /> + <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> + <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> + <xsd:attribute ref="xml:space" /> + </xsd:complexType> + </xsd:element> + <xsd:element name="resheader"> + <xsd:complexType> + <xsd:sequence> + <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> + </xsd:sequence> + <xsd:attribute name="name" type="xsd:string" use="required" /> + </xsd:complexType> + </xsd:element> + </xsd:choice> + </xsd:complexType> + </xsd:element> + </xsd:schema> + <resheader name="resmimetype"> + <value>text/microsoft-resx</value> + </resheader> + <resheader name="version"> + <value>2.0</value> + </resheader> + <resheader name="reader"> + <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> + </resheader> + <resheader name="writer"> + <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> + </resheader> + <metadata name="toolTips.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> + <value>17, 17</value> + </metadata> +</root> \ No newline at end of file Added: trunk/plugins/IR Server Suite/Applications/SageSetup/Program.cs =================================================================== --- trunk/plugins/IR Server Suite/Applications/SageSetup/Program.cs (rev 0) +++ trunk/plugins/IR Server Suite/Applications/SageSetup/Program.cs 2007-08-27 12:46:19 UTC (rev 871) @@ -0,0 +1,24 @@ +using System; +using System.Collections.Generic; +using System.Windows.Forms; + +namespace SageSetup +{ + + static class Program + { + + /// <summary> + /// The main entry point for the application. + /// </summary> + [STAThread] + static void Main() + { + Application.EnableVisualStyles(); + Application.SetCompatibleTextRenderingDefault(false); + Application.Run(new FormMain()); + } + + } + +} Added: trunk/plugins/IR Server Suite/Applications/SageSetup/Properties/AssemblyInfo.cs =================================================================== --- trunk/plugins/IR Server Suite/Applications/SageSetup/Properties/AssemblyInfo.cs (rev 0) +++ trunk/plugins/IR Server Suite/Applications/SageSetup/Properties/AssemblyInfo.cs 2007-08-27 12:46:19 UTC (rev 871) @@ -0,0 +1,33 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("IR Server - Sage Setup")] +[assembly: AssemblyDescription("Setup the Sage EXE Tuner plugins for use with IR Server")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("SageSetup")] +[assembly: AssemblyCopyright("Copyright © Aaron Dinnage, 2007")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("98cabc3d-5464-4122-aa78-483535991e02")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +[assembly: AssemblyVersion("1.0.3.4")] +[assembly: AssemblyFileVersion("1.0.3.4")] Added: trunk/plugins/IR Server Suite/Applications/SageSetup/Sage Setup.csproj =================================================================== --- trunk/plugins/IR Server Suite/Applications/SageSetup/Sage Setup.csproj (rev 0) +++ trunk/plugins/IR Server Suite/Applications/SageSetup/Sage Setup.csproj 2007-08-27 12:46:19 UTC (rev 871) @@ -0,0 +1,88 @@ +<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>{905131F8-F8AC-4A65-A722-37783902D7B8}</ProjectGuid> + <OutputType>WinExe</OutputType> + <AppDesignerFolder>Properties</AppDesignerFolder> + <RootNamespace>SageSetup</RootNamespace> + <AssemblyName>SageSetup</AssemblyName> + <StartupObject>SageSetup.Program</StartupObject> + <RunPostBuildEvent>OnOutputUpdated</RunPostBuildEvent> + </PropertyGroup> + <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' "> + <DebugSymbols>true</DebugSymbols> + <OutputPath>bin\x86\Debug\</OutputPath> + <DefineConstants>DEBUG;TRACE</DefineConstants> + <DebugType>full</DebugType> + <PlatformTarget>x86</PlatformTarget> + <ErrorReport>prompt</ErrorReport> + </PropertyGroup> + <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' "> + <OutputPath>bin\x86\Release\</OutputPath> + <Optimize>true</Optimize> + <TreatWarningsAsErrors>true</TreatWarningsAsErrors> + <DebugType>none</DebugType> + <PlatformTarget>x86</PlatformTarget> + <UseVSHostingProcess>false</UseVSHostingProcess> + <ErrorReport>prompt</ErrorReport> + </PropertyGroup> + <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> + <DebugSymbols>true</DebugSymbols> + <OutputPath>bin\Debug\</OutputPath> + <DefineConstants>DEBUG;TRACE</DefineConstants> + <DebugType>full</DebugType> + <PlatformTarget>AnyCPU</PlatformTarget> + <ErrorReport>prompt</ErrorReport> + </PropertyGroup> + <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> + <OutputPath>bin\Release\</OutputPath> + <Optimize>true</Optimize> + <TreatWarningsAsErrors>true</TreatWarningsAsErrors> + <DebugType>pdbonly</DebugType> + <PlatformTarget>AnyCPU</PlatformTarget> + <UseVSHostingProcess>false</UseVSHostingProcess> + <ErrorReport>prompt</ErrorReport> + </PropertyGroup> + <ItemGroup> + <Reference Include="System" /> + <Reference Include="System.Data" /> + <Reference Include="System.Deployment" /> + <Reference Include="System.Drawing" /> + <Reference Include="System.Windows.Forms" /> + <Reference Include="System.Xml" /> + </ItemGroup> + <ItemGroup> + <Compile Include="FormMain.cs"> + <SubType>Form</SubType> + </Compile> + <Compile Include="FormMain.Designer.cs"> + <DependentUpon>FormMain.cs</DependentUpon> + </Compile> + <Compile Include="Program.cs" /> + <Compile Include="Properties\AssemblyInfo.cs" /> + <EmbeddedResource Include="FormMain.resx"> + <SubType>Designer</SubType> + <DependentUpon>FormMain.cs</DependentUpon> + </EmbeddedResource> + </ItemGroup> + <ItemGroup> + <ProjectReference Include="..\..\Common\IrssUtils\IrssUtils.csproj"> + <Project>{CA15769C-232E-4CA7-94FD-206A06CA3ABB}</Project> + <Name>IrssUtils</Name> + </ProjectReference> + </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\IR Server Suite\$(ProjectName)\"</PostBuildEvent> + </PropertyGroup> +</Project> \ No newline at end of file Added: trunk/plugins/IR Server Suite/Applications/Translator/EventSchedule.cs =================================================================== --- trunk/plugins/IR Server Suite/Applications/Translator/EventSchedule.cs (rev 0) +++ trunk/plugins/IR Server Suite/Applications/Translator/EventSchedule.cs 2007-08-27 12:46:19 UTC (rev 871) @@ -0,0 +1,64 @@ +using System; +using System.Collections.Generic; +using System.Text; + +namespace Translator +{ + + #region Enumerations + + public enum ScheduleRepeat + { + Never, + Minutes, + Hours, + Days, + Weeks, + Months, + Years, + } + + [Flags] + public enum ScheduleDays + { + None, + Monday, + Tuesday, + Wednesday, + Thursday, + Friday, + Saturday, + Sunday, + } + + [Flags] + public enum ScheduleMonths + { + None, + January, + February, + March, + April, + May, + June, + July, + August, + September, + October, + November, + December, + } + + #endregion Enumerations + + public class EventSchedule + { + //DateTime _start; + + //ScheduleRepeat _repeat = ScheduleRepeat.Never; + //ScheduleDays _days = ScheduleDays.None; + //ScheduleMonths _months = ScheduleMonths.None; + + } + +} Modified: trunk/plugins/IR Server Suite/Applications/Translator/Forms/ButtonMappingForm.Designer.cs =================================================================== --- trunk/plugins/IR Server Suite/Applications/Translator/Forms/ButtonMappingForm.Designer.cs 2007-08-27 10:30:17 UTC (rev 870) +++ trunk/plugins/IR Server Suite/Applications/Translator/Forms/ButtonMappingForm.Designer.cs 2007-08-27 12:46:19 UTC (rev 871) @@ -174,6 +174,7 @@ this.buttonCancel = new System.Windows.Forms.Button(); this.buttonOK = new System.Windows.Forms.Button(); this.toolTips = new System.Windows.Forms.ToolTip(this.components); + this.checkBoxForceFocus = new System.Windows.Forms.CheckBox(); this.groupBoxButton.SuspendLayout(); this.groupBoxSet.SuspendLayout(); this.tabControl.SuspendLayout(); @@ -326,7 +327,7 @@ this.tabPageBlastIR.Location = new System.Drawing.Point(4, 22); this.tabPageBlastIR.Name = "tabPageBlastIR"; this.tabPageBlastIR.Padding = new System.Windows.Forms.Padding(3); - this.tabPageBlastIR.Size = new System.Drawing.Size(432, 206); + this.tabPageBlastIR.Size = new System.Drawing.Size(440, 206); this.tabPageBlastIR.TabIndex = 0; this.tabPageBlastIR.Text = "Blast IR"; this.tabPageBlastIR.UseVisualStyleBackColor = true; @@ -389,7 +390,7 @@ this.tabPageMacro.Location = new System.Drawing.Point(4, 22); this.tabPageMacro.Name = "tabPageMacro"; this.tabPageMacro.Padding = new System.Windows.Forms.Padding(3); - this.tabPageMacro.Size = new System.Drawing.Size(432, 206); + this.tabPageMacro.Size = new System.Drawing.Size(440, 206); this.tabPageMacro.TabIndex = 1; this.tabPageMacro.Text = "Macro"; this.tabPageMacro.UseVisualStyleBackColor = true; @@ -428,6 +429,7 @@ // // tabPageProgram // + this.tabPageProgram.Controls.Add(this.checkBoxForceFocus); this.tabPageProgram.Controls.Add(this.checkBoxNoWindow); this.tabPageProgram.Controls.Add(this.checkBoxShellExecute); this.tabPageProgram.Controls.Add(this.comboBoxWindowStyle); @@ -443,14 +445,14 @@ this.tabPageProgram.Location = new System.Drawing.Point(4, 22); this.tabPageProgram.Name = "tabPageProgram"; this.tabPageProgram.Padding = new System.Windows.Forms.Padding(3); - this.tabPageProgram.Size = new System.Drawing.Size(432, 206); + this.tabPageProgram.Size = new System.Drawing.Size(440, 206); this.tabPageProgram.TabIndex = 3; this.tabPageProgram.Text = "Run"; this.tabPageProgram.UseVisualStyleBackColor = true; // // checkBoxNoWindow // - this.checkBoxNoWindow.Location = new System.Drawing.Point(216, 112); + this.checkBoxNoWindow.Location = new System.Drawing.Point(232, 112); this.checkBoxNoWindow.Name = "checkBoxNoWindow"; this.checkBoxNoWindow.Size = new System.Drawing.Size(104, 21); this.checkBoxNoWindow.TabIndex = 10; @@ -460,9 +462,10 @@ // checkBoxShellExecute // this.checkBoxShellExecute.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.checkBoxShellExecute.AutoSize = true; this.checkBoxShellExecute.Location = new System.Drawing.Point(8, 144); this.checkBoxShellExecute.Name = "checkBoxShellExecute"; - this.checkBoxShellExecute.Size = new System.Drawing.Size(168, 20); + this.checkBoxShellExecute.Size = new System.Drawing.Size(141, 17); this.checkBoxShellExecute.TabIndex = 11; this.checkBoxShellExecute.Text = "Start using ShellExecute"; this.checkBoxShellExecute.UseVisualStyleBackColor = true; @@ -575,7 +578,7 @@ this.tabPageSerial.Location = new System.Drawing.Point(4, 22); this.tabPageSerial.Name = "tabPageSerial"; this.tabPageSerial.Padding = new System.Windows.Forms.Padding(3); - this.tabPageSerial.Size = new System.Drawing.Size(432, 206); + this.tabPageSerial.Size = new System.Drawing.Size(440, 206); this.tabPageSerial.TabIndex = 2; this.tabPageSerial.Text = "Serial"; this.tabPageSerial.UseVisualStyleBackColor = true; @@ -757,7 +760,7 @@ this.tabPageMessage.Location = new System.Drawing.Point(4, 22); this.tabPageMessage.Name = "tabPageMessage"; this.tabPageMessage.Padding = new System.Windows.Forms.Padding(3); - this.tabPageMessage.Size = new System.Drawing.Size(432, 206); + this.tabPageMessage.Size = new System.Drawing.Size(440, 206); this.tabPageMessage.TabIndex = 4; this.tabPageMessage.Text = "Window Message"; this.tabPageMessage.UseVisualStyleBackColor = true; @@ -936,7 +939,7 @@ this.tabPageKeystrokes.Location = new System.Drawing.Point(4, 22); this.tabPageKeystrokes.Name = "tabPageKeystrokes"; this.tabPageKeystrokes.Padding = new System.Windows.Forms.Padding(3); - this.tabPageKeystrokes.Size = new System.Drawing.Size(432, 206); + this.tabPageKeystrokes.Size = new System.Drawing.Size(440, 206); this.tabPageKeystrokes.TabIndex = 5; this.tabPageKeystrokes.Text = "Keystrokes"; this.tabPageKeystrokes.UseVisualStyleBackColor = true; @@ -1427,7 +1430,7 @@ this.tabPageMouse.Location = new System.Drawing.Point(4, 22); this.tabPageMouse.Name = "tabPageMouse"; this.tabPageMouse.Padding = new System.Windows.Forms.Padding(3); - this.tabPageMouse.Size = new System.Drawing.Size(432, 206); + this.tabPageMouse.Size = new System.Drawing.Size(440, 206); this.tabPageMouse.TabIndex = 6; this.tabPageMouse.Text = "Mouse"; this.tabPageMouse.UseVisualStyleBackColor = true; @@ -1684,6 +1687,16 @@ this.buttonOK.UseVisualStyleBackColor = true; this.buttonOK.Click += new System.EventHandler(this.buttonOK_Click); // + // checkBoxForceFocus + // + this.checkBoxForceFocus.AutoSize = true; + this.checkBoxForceFocus.Location = new System.Drawing.Point(232, 144); + this.checkBoxForceFocus.Name = "checkBoxForceFocus"; + this.checkBoxForceFocus.Size = new System.Drawing.Size(121, 17); + this.checkBoxForceFocus.TabIndex = 12; + this.checkBoxForceFocus.Text = "Force window focus"; + this.checkBoxForceFocus.UseVisualStyleBackColor = true; + // // ButtonMappingForm // this.AcceptButton = this.buttonOK; @@ -1883,6 +1896,7 @@ private System.Windows.Forms.TabPage tabPageMisc; private System.Windows.Forms.Label labelMiscCommand; private System.Windows.Forms.ComboBox comboBoxMiscCommand; + private System.Windows.Forms.CheckBox checkBoxForceFocus; } } \ No newline at end of file Modified: trunk/plugins/IR Server Suite/Applications/Translator/Forms/ButtonMappingForm.cs =================================================================== --- trunk/plugins/IR Server Suite/Applications... [truncated message content] |