From: <an...@us...> - 2008-02-28 06:41:37
|
Revision: 1402 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=1402&view=rev Author: and-81 Date: 2008-02-27 22:41:36 -0800 (Wed, 27 Feb 2008) Log Message: ----------- Modified Paths: -------------- trunk/plugins/IR Server Suite/Applications/Debug Client/MainForm.cs trunk/plugins/IR Server Suite/Applications/IR Server/IRServer.cs trunk/plugins/IR Server Suite/Applications/Translator/Forms/GetKeyCodeForm.cs trunk/plugins/IR Server Suite/Applications/Translator/Program.cs trunk/plugins/IR Server Suite/Applications/Tray Launcher/GetKeyCodeForm.cs trunk/plugins/IR Server Suite/Applications/Tray Launcher/Tray.cs trunk/plugins/IR Server Suite/Applications/Virtual Remote Skin Editor/MainForm.cs trunk/plugins/IR Server Suite/Documentation/Translator/index.html trunk/plugins/IR Server Suite/IR Server Plugins/Ads Tech PTV-335 Receiver/AdsTechPTV335Receiver.cs trunk/plugins/IR Server Suite/IR Server Plugins/Custom HID Receiver/Custom HID Receiver.cs trunk/plugins/IR Server Suite/IR Server Plugins/FusionRemote Receiver/FusionRemoteReceiver.cs trunk/plugins/IR Server Suite/IR Server Plugins/Girder Plugin/Girder Plugin.cs trunk/plugins/IR Server Suite/IR Server Plugins/HCW Receiver/HcwReceiver.cs trunk/plugins/IR Server Suite/IR Server Plugins/IR Server Plugin Interface/IKeyboardReceiver.cs trunk/plugins/IR Server Suite/IR Server Plugins/IR Server Plugin Interface/IMouseReceiver.cs trunk/plugins/IR Server Suite/IR Server Plugins/IR Server Plugin Interface/IRemoteReceiver.cs trunk/plugins/IR Server Suite/IR Server Plugins/IR501 Receiver/IR501Receiver.cs trunk/plugins/IR Server Suite/IR Server Plugins/IR507 Receiver/IR507Receiver.cs trunk/plugins/IR Server Suite/IR Server Plugins/IRMan Receiver/IRMan Receiver.cs trunk/plugins/IR Server Suite/IR Server Plugins/IRTrans Transceiver/IRTransTransceiver.cs trunk/plugins/IR Server Suite/IR Server Plugins/IgorPlug Receiver/IgorPlug Receiver.cs trunk/plugins/IR Server Suite/IR Server Plugins/Keyboard Input/Keyboard Input.cs trunk/plugins/IR Server Suite/IR Server Plugins/LiveDrive Receiver/LiveDriveReceiver.cs trunk/plugins/IR Server Suite/IR Server Plugins/Microsoft MCE Transceiver/Configure.cs trunk/plugins/IR Server Suite/IR Server Plugins/Microsoft MCE Transceiver/Microsoft MCE Transceiver.csproj trunk/plugins/IR Server Suite/IR Server Plugins/Microsoft MCE Transceiver/MicrosoftMceTransceiver.cs trunk/plugins/IR Server Suite/IR Server Plugins/RC102 Receiver/RC102Receiver.cs trunk/plugins/IR Server Suite/IR Server Plugins/USB-UIRT Transceiver/UirtTransceiver.cs trunk/plugins/IR Server Suite/IR Server Plugins/Wii Remote Receiver/Wii Remote Receiver.cs trunk/plugins/IR Server Suite/IR Server Plugins/WinLirc Transceiver/WinLirc Transceiver.cs trunk/plugins/IR Server Suite/IR Server Plugins/Windows Message Receiver/Windows Message Receiver.cs trunk/plugins/IR Server Suite/IR Server Plugins/X10 Transceiver/X10Transceiver.cs trunk/plugins/IR Server Suite/IR Server Plugins/XBCDRC Receiver/XBCDRC Receiver.cs trunk/plugins/IR Server Suite/IR Server Suite - Debug.nsi trunk/plugins/IR Server Suite/IR Server Suite - Release.nsi trunk/plugins/IR Server Suite/IR Server Suite.sln trunk/plugins/IR Server Suite/Input Service/Input Service/InputService.cs trunk/plugins/IR Server Suite/MediaPortal Plugins/MP Control Plugin/Forms/SetupForm.cs trunk/plugins/IR Server Suite/MediaPortal Plugins/MP Control Plugin/MPControlPlugin.cs trunk/plugins/MCEReplacement/Forms/SetupForm.cs trunk/plugins/MCEReplacement/MCEReplacement.cs Added Paths: ----------- trunk/plugins/IR Server Suite/Applications/Abstractor/ trunk/plugins/IR Server Suite/Applications/Abstractor/Abstractor.csproj trunk/plugins/IR Server Suite/Applications/Abstractor/MainForm.Designer.cs trunk/plugins/IR Server Suite/Applications/Abstractor/MainForm.cs trunk/plugins/IR Server Suite/Applications/Abstractor/MainForm.resx trunk/plugins/IR Server Suite/Applications/Abstractor/Program.cs trunk/plugins/IR Server Suite/Applications/Abstractor/Properties/ trunk/plugins/IR Server Suite/Applications/Abstractor/Properties/AssemblyInfo.cs trunk/plugins/IR Server Suite/Applications/Abstractor/RemoteTable.Designer.cs trunk/plugins/IR Server Suite/Applications/Abstractor/RemoteTable.xsc trunk/plugins/IR Server Suite/Applications/Abstractor/RemoteTable.xsd trunk/plugins/IR Server Suite/Applications/Abstractor/RemoteTable.xss Added: trunk/plugins/IR Server Suite/Applications/Abstractor/Abstractor.csproj =================================================================== --- trunk/plugins/IR Server Suite/Applications/Abstractor/Abstractor.csproj (rev 0) +++ trunk/plugins/IR Server Suite/Applications/Abstractor/Abstractor.csproj 2008-02-28 06:41:36 UTC (rev 1402) @@ -0,0 +1,93 @@ +<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>{66F37FF9-0398-4954-812D-065C2D153746}</ProjectGuid> + <OutputType>WinExe</OutputType> + <AppDesignerFolder>Properties</AppDesignerFolder> + <RootNamespace>Abstractor</RootNamespace> + <AssemblyName>Abstractor</AssemblyName> + <StartupObject>Abstractor.Program</StartupObject> + </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> + <TreatWarningsAsErrors>true</TreatWarningsAsErrors> + <UseVSHostingProcess>false</UseVSHostingProcess> + </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> + <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="MainForm.cs"> + <SubType>Form</SubType> + </Compile> + <Compile Include="MainForm.Designer.cs"> + <DependentUpon>MainForm.cs</DependentUpon> + </Compile> + <Compile Include="Program.cs" /> + <Compile Include="Properties\AssemblyInfo.cs" /> + <EmbeddedResource Include="MainForm.resx"> + <SubType>Designer</SubType> + <DependentUpon>MainForm.cs</DependentUpon> + </EmbeddedResource> + <None Include="RemoteTable.xsc"> + <DependentUpon>RemoteTable.xsd</DependentUpon> + <CopyToOutputDirectory>Always</CopyToOutputDirectory> + </None> + <None Include="RemoteTable.xsd"> + <Generator>MSDataSetGenerator</Generator> + <LastGenOutput>RemoteTable.Designer.cs</LastGenOutput> + <SubType>Designer</SubType> + <CopyToOutputDirectory>Always</CopyToOutputDirectory> + </None> + <None Include="RemoteTable.xss"> + <DependentUpon>RemoteTable.xsd</DependentUpon> + <CopyToOutputDirectory>Always</CopyToOutputDirectory> + </None> + <Compile Include="RemoteTable.Designer.cs"> + <AutoGen>True</AutoGen> + <DesignTime>True</DesignTime> + <DependentUpon>RemoteTable.xsd</DependentUpon> + <CopyToOutputDirectory>Always</CopyToOutputDirectory> + </Compile> + </ItemGroup> + <ItemGroup> + <ProjectReference Include="..\..\Common\IrssComms\IrssComms.csproj"> + <Project>{BCAFDF45-70DD-46FD-8B98-880DDA585AD2}</Project> + <Name>IrssComms</Name> + </ProjectReference> + <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> + --> +</Project> \ No newline at end of file Added: trunk/plugins/IR Server Suite/Applications/Abstractor/MainForm.Designer.cs =================================================================== --- trunk/plugins/IR Server Suite/Applications/Abstractor/MainForm.Designer.cs (rev 0) +++ trunk/plugins/IR Server Suite/Applications/Abstractor/MainForm.Designer.cs 2008-02-28 06:41:36 UTC (rev 1402) @@ -0,0 +1,308 @@ +namespace Abstractor +{ + partial class MainForm + { + /// <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.groupBoxSetup = new System.Windows.Forms.GroupBox(); + this.comboBoxComputer = new System.Windows.Forms.ComboBox(); + this.labelServerAddress = new System.Windows.Forms.Label(); + this.buttonConnect = new System.Windows.Forms.Button(); + this.buttonDisconnect = new System.Windows.Forms.Button(); + this.groupBoxStatus = new System.Windows.Forms.GroupBox(); + this.listBoxStatus = new System.Windows.Forms.ListBox(); + this.groupBoxMapAbstract = new System.Windows.Forms.GroupBox(); + this.buttonClear = new System.Windows.Forms.Button(); + this.buttonLoad = new System.Windows.Forms.Button(); + this.buttonSave = new System.Windows.Forms.Button(); + this.labelDevice = new System.Windows.Forms.Label(); + this.labelRemote = new System.Windows.Forms.Label(); + this.comboBoxDevice = new System.Windows.Forms.ComboBox(); + this.textBoxRemoteName = new System.Windows.Forms.TextBox(); + this.listViewButtonMap = new System.Windows.Forms.ListView(); + this.columnHeaderAbstractButton = new System.Windows.Forms.ColumnHeader(); + this.columnHeaderKeyCode = new System.Windows.Forms.ColumnHeader(); + this.checkBox1 = new System.Windows.Forms.CheckBox(); + this.groupBoxSetup.SuspendLayout(); + this.groupBoxStatus.SuspendLayout(); + this.groupBoxMapAbstract.SuspendLayout(); + this.SuspendLayout(); + // + // groupBoxSetup + // + this.groupBoxSetup.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.groupBoxSetup.Controls.Add(this.comboBoxComputer); + this.groupBoxSetup.Controls.Add(this.labelServerAddress); + this.groupBoxSetup.Controls.Add(this.buttonConnect); + this.groupBoxSetup.Controls.Add(this.buttonDisconnect); + this.groupBoxSetup.Location = new System.Drawing.Point(8, 8); + this.groupBoxSetup.Name = "groupBoxSetup"; + this.groupBoxSetup.Size = new System.Drawing.Size(440, 64); + this.groupBoxSetup.TabIndex = 4; + this.groupBoxSetup.TabStop = false; + this.groupBoxSetup.Text = "Setup"; + // + // 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, 32); + this.comboBoxComputer.Name = "comboBoxComputer"; + this.comboBoxComputer.Size = new System.Drawing.Size(240, 21); + this.comboBoxComputer.TabIndex = 1; + // + // labelServerAddress + // + this.labelServerAddress.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.labelServerAddress.Location = new System.Drawing.Point(8, 16); + this.labelServerAddress.Name = "labelServerAddress"; + this.labelServerAddress.Size = new System.Drawing.Size(240, 16); + this.labelServerAddress.TabIndex = 0; + this.labelServerAddress.Text = "IR Server host computer:"; + // + // buttonConnect + // + this.buttonConnect.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); + this.buttonConnect.Location = new System.Drawing.Point(264, 32); + this.buttonConnect.Name = "buttonConnect"; + this.buttonConnect.Size = new System.Drawing.Size(80, 24); + this.buttonConnect.TabIndex = 2; + this.buttonConnect.Text = "Connect"; + this.buttonConnect.UseVisualStyleBackColor = true; + this.buttonConnect.Click += new System.EventHandler(this.buttonConnect_Click); + // + // buttonDisconnect + // + this.buttonDisconnect.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); + this.buttonDisconnect.Location = new System.Drawing.Point(352, 32); + this.buttonDisconnect.Name = "buttonDisconnect"; + this.buttonDisconnect.Size = new System.Drawing.Size(80, 24); + this.buttonDisconnect.TabIndex = 3; + this.buttonDisconnect.Text = "Disconnect"; + this.buttonDisconnect.UseVisualStyleBackColor = true; + this.buttonDisconnect.Click += new System.EventHandler(this.buttonDisconnect_Click); + // + // groupBoxStatus + // + this.groupBoxStatus.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.groupBoxStatus.Controls.Add(this.listBoxStatus); + this.groupBoxStatus.Location = new System.Drawing.Point(8, 344); + this.groupBoxStatus.Name = "groupBoxStatus"; + this.groupBoxStatus.Size = new System.Drawing.Size(440, 216); + this.groupBoxStatus.TabIndex = 5; + this.groupBoxStatus.TabStop = false; + this.groupBoxStatus.Text = "Status"; + // + // listBoxStatus + // + this.listBoxStatus.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.listBoxStatus.FormattingEnabled = true; + this.listBoxStatus.HorizontalScrollbar = true; + this.listBoxStatus.IntegralHeight = false; + this.listBoxStatus.Location = new System.Drawing.Point(8, 16); + this.listBoxStatus.Name = "listBoxStatus"; + this.listBoxStatus.ScrollAlwaysVisible = true; + this.listBoxStatus.Size = new System.Drawing.Size(424, 185); + this.listBoxStatus.TabIndex = 0; + // + // groupBoxMapAbstract + // + this.groupBoxMapAbstract.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.groupBoxMapAbstract.Controls.Add(this.checkBox1); + this.groupBoxMapAbstract.Controls.Add(this.buttonClear); + this.groupBoxMapAbstract.Controls.Add(this.buttonLoad); + this.groupBoxMapAbstract.Controls.Add(this.buttonSave); + this.groupBoxMapAbstract.Controls.Add(this.labelDevice); + this.groupBoxMapAbstract.Controls.Add(this.labelRemote); + this.groupBoxMapAbstract.Controls.Add(this.comboBoxDevice); + this.groupBoxMapAbstract.Controls.Add(this.textBoxRemoteName); + this.groupBoxMapAbstract.Controls.Add(this.listViewButtonMap); + this.groupBoxMapAbstract.Location = new System.Drawing.Point(8, 80); + this.groupBoxMapAbstract.Name = "groupBoxMapAbstract"; + this.groupBoxMapAbstract.Size = new System.Drawing.Size(440, 256); + this.groupBoxMapAbstract.TabIndex = 6; + this.groupBoxMapAbstract.TabStop = false; + this.groupBoxMapAbstract.Text = "Abstract Remote Map"; + // + // buttonClear + // + this.buttonClear.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); + this.buttonClear.Location = new System.Drawing.Point(8, 224); + this.buttonClear.Name = "buttonClear"; + this.buttonClear.Size = new System.Drawing.Size(80, 24); + this.buttonClear.TabIndex = 7; + this.buttonClear.Text = "Clear"; + this.buttonClear.UseVisualStyleBackColor = true; + this.buttonClear.Click += new System.EventHandler(this.buttonClear_Click); + // + // buttonLoad + // + this.buttonLoad.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); + this.buttonLoad.Location = new System.Drawing.Point(264, 224); + this.buttonLoad.Name = "buttonLoad"; + this.buttonLoad.Size = new System.Drawing.Size(80, 24); + this.buttonLoad.TabIndex = 5; + this.buttonLoad.Text = "Load"; + this.buttonLoad.UseVisualStyleBackColor = true; + this.buttonLoad.Click += new System.EventHandler(this.buttonLoad_Click); + // + // buttonSave + // + this.buttonSave.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); + this.buttonSave.Location = new System.Drawing.Point(352, 224); + this.buttonSave.Name = "buttonSave"; + this.buttonSave.Size = new System.Drawing.Size(80, 24); + this.buttonSave.TabIndex = 6; + this.buttonSave.Text = "Save"; + this.buttonSave.UseVisualStyleBackColor = true; + this.buttonSave.Click += new System.EventHandler(this.buttonSave_Click); + // + // labelDevice + // + this.labelDevice.Location = new System.Drawing.Point(232, 24); + this.labelDevice.Name = "labelDevice"; + this.labelDevice.Size = new System.Drawing.Size(72, 20); + this.labelDevice.TabIndex = 4; + this.labelDevice.Text = "Receiver:"; + // + // labelRemote + // + this.labelRemote.Location = new System.Drawing.Point(8, 24); + this.labelRemote.Name = "labelRemote"; + this.labelRemote.Size = new System.Drawing.Size(96, 20); + this.labelRemote.TabIndex = 3; + this.labelRemote.Text = "Remote name:"; + // + // comboBoxDevice + // + this.comboBoxDevice.FormattingEnabled = true; + this.comboBoxDevice.Location = new System.Drawing.Point(304, 24); + this.comboBoxDevice.Name = "comboBoxDevice"; + this.comboBoxDevice.Size = new System.Drawing.Size(128, 21); + this.comboBoxDevice.TabIndex = 2; + // + // textBoxRemoteName + // + this.textBoxRemoteName.Location = new System.Drawing.Point(104, 24); + this.textBoxRemoteName.Name = "textBoxRemoteName"; + this.textBoxRemoteName.Size = new System.Drawing.Size(104, 20); + this.textBoxRemoteName.TabIndex = 1; + // + // listViewButtonMap + // + this.listViewButtonMap.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.listViewButtonMap.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] { + this.columnHeaderAbstractButton, + this.columnHeaderKeyCode}); + this.listViewButtonMap.FullRowSelect = true; + this.listViewButtonMap.GridLines = true; + this.listViewButtonMap.HeaderStyle = System.Windows.Forms.ColumnHeaderStyle.Nonclickable; + this.listViewButtonMap.HideSelection = false; + this.listViewButtonMap.Location = new System.Drawing.Point(8, 48); + this.listViewButtonMap.MultiSelect = false; + this.listViewButtonMap.Name = "listViewButtonMap"; + this.listViewButtonMap.Size = new System.Drawing.Size(424, 168); + this.listViewButtonMap.TabIndex = 0; + this.listViewButtonMap.UseCompatibleStateImageBehavior = false; + this.listViewButtonMap.View = System.Windows.Forms.View.Details; + this.listViewButtonMap.KeyDown += new System.Windows.Forms.KeyEventHandler(this.listViewButtonMap_KeyDown); + // + // columnHeaderAbstractButton + // + this.columnHeaderAbstractButton.Text = "AbstractButton"; + this.columnHeaderAbstractButton.Width = 116; + // + // columnHeaderKeyCode + // + this.columnHeaderKeyCode.Text = "KeyCode"; + this.columnHeaderKeyCode.Width = 288; + // + // checkBox1 + // + this.checkBox1.AutoSize = true; + this.checkBox1.Location = new System.Drawing.Point(136, 224); + this.checkBox1.Name = "checkBox1"; + this.checkBox1.Size = new System.Drawing.Size(85, 17); + this.checkBox1.TabIndex = 8; + this.checkBox1.Text = "Toggle Keys"; + this.checkBox1.UseVisualStyleBackColor = true; + // + // MainForm + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(456, 569); + this.Controls.Add(this.groupBoxMapAbstract); + this.Controls.Add(this.groupBoxSetup); + this.Controls.Add(this.groupBoxStatus); + this.Name = "MainForm"; + this.Text = "Abstractor"; + this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.MainForm_FormClosing); + this.groupBoxSetup.ResumeLayout(false); + this.groupBoxStatus.ResumeLayout(false); + this.groupBoxMapAbstract.ResumeLayout(false); + this.groupBoxMapAbstract.PerformLayout(); + this.ResumeLayout(false); + + } + + #endregion + + private System.Windows.Forms.GroupBox groupBoxSetup; + private System.Windows.Forms.ComboBox comboBoxComputer; + private System.Windows.Forms.Label labelServerAddress; + private System.Windows.Forms.Button buttonConnect; + private System.Windows.Forms.Button buttonDisconnect; + private System.Windows.Forms.GroupBox groupBoxStatus; + private System.Windows.Forms.ListBox listBoxStatus; + private System.Windows.Forms.GroupBox groupBoxMapAbstract; + private System.Windows.Forms.Button buttonClear; + private System.Windows.Forms.Button buttonLoad; + private System.Windows.Forms.Button buttonSave; + private System.Windows.Forms.Label labelDevice; + private System.Windows.Forms.Label labelRemote; + private System.Windows.Forms.ComboBox comboBoxDevice; + private System.Windows.Forms.TextBox textBoxRemoteName; + private System.Windows.Forms.ListView listViewButtonMap; + private System.Windows.Forms.ColumnHeader columnHeaderAbstractButton; + private System.Windows.Forms.ColumnHeader columnHeaderKeyCode; + private System.Windows.Forms.CheckBox checkBox1; + } +} + Added: trunk/plugins/IR Server Suite/Applications/Abstractor/MainForm.cs =================================================================== --- trunk/plugins/IR Server Suite/Applications/Abstractor/MainForm.cs (rev 0) +++ trunk/plugins/IR Server Suite/Applications/Abstractor/MainForm.cs 2008-02-28 06:41:36 UTC (rev 1402) @@ -0,0 +1,612 @@ +using System; +using System.Collections; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Diagnostics; +using System.Drawing; +using System.IO; +using System.Net; +using System.Net.Sockets; +using System.Runtime.InteropServices; +using System.Security; +using System.Text; +using System.Threading; +using System.Windows.Forms; + +using IrssComms; +using IrssUtils; + +namespace Abstractor +{ + + public partial class MainForm : Form + { + + public enum AbstractButton + { + Up, + Down, + Left, + Right, + OK, + VolumeUp, + VolumeDown, + ChannelUp, + ChannelDown, + Start, + Back, + Info, + Mute, + Number0, + Number1, + Number2, + Number3, + Number4, + Number5, + Number6, + Number7, + Number8, + Number9, + Play, + Pause, + PlayPause, + Stop, + FastForward, + Rewind, + Record, + NextChapter, + PreviousChapter, + Power, + Power2, + Power3, + Teletext, + TeletextRed, + TeletextGreen, + TeletextYellow, + TeletextBlue, + Subtitles, + Menu, + Clear, + Enter, + Hash, + Star, + TaskSwap, + Fullscreen, + AspectRatio, + Setup, + Music, + Pictures, + Videos, + DVD, + TV, + Guide, + LiveTV, + Snapshot, + Open, + Close, + Eject, + ScrollUp, + ScrollDown, + PageUp, + PageDown, + } + + + #region Variables + + Client _client; + + string _serverHost = "localhost"; + + bool _registered; + + IRServerInfo _irServerInfo = new IRServerInfo(); + + DataSet _abstractRemoteButtons; + + #endregion Variables + + delegate void DelegateAddStatusLine(string status); + DelegateAddStatusLine _addStatusLine; + + void AddStatusLine(string status) + { + IrssLog.Info(status); + + listBoxStatus.Items.Add(status); + + listBoxStatus.SetSelected(listBoxStatus.Items.Count - 1, true); + } + + + delegate void DelegateSetDevices(string[] devices); + DelegateSetDevices _setDevices; + + void SetDevices(string[] devices) + { + comboBoxDevice.Items.Clear(); + comboBoxDevice.Items.AddRange(devices); + comboBoxDevice.SelectedIndex = 0; + + if (String.IsNullOrEmpty(textBoxRemoteName.Text)) + textBoxRemoteName.Text = devices[0]; + } + + + public MainForm() + { + IrssLog.LogLevel = IrssLog.Level.Debug; + IrssLog.Open(Common.FolderIrssLogs + "Abstractor.log"); + + InitializeComponent(); + + _addStatusLine = new DelegateAddStatusLine(AddStatusLine); + _setDevices = new DelegateSetDevices(SetDevices); + + comboBoxComputer.Items.Clear(); + comboBoxComputer.Items.Add("localhost"); + + List<string> networkPCs = Network.GetComputers(false); + if (networkPCs != null) + comboBoxComputer.Items.AddRange(networkPCs.ToArray()); + + comboBoxComputer.Text = _serverHost; + + ClearMap(); + /* + + DataTable table = new DataTable("RemoteTable"); + + DataColumn column; + + column = new DataColumn("RawCode", typeof(string)); + column.Caption = "Raw Code"; + column.ColumnMapping = MappingType.Attribute; + column.DefaultValue = String.Empty; + column.ReadOnly = false; + column.Unique = true; + table.Columns.Add(column); + + column = new DataColumn("AbstractButton", typeof(string)); + column.Caption = "Abstract Button"; + column.ColumnMapping = MappingType.Attribute; + column.DefaultValue = String.Empty; + column.ReadOnly = false; + column.Unique = false; + table.Columns.Add(column); + + string[] names = Enum.GetNames(typeof(MceButton)); + foreach (string name in names) + { + int button = (int)Enum.Parse(typeof(MceButton), name); + + table.Rows.Add(button.ToString(), name); + } + + //table.WriteXmlSchema("RemoteTable.xsd"); + + table.WriteXml("Microsoft MCE.xml"); + table.WriteXml("XBCDRC.xml"); + + */ + + //_abstractRemoteButtons = new DataSet("AbstractRemoteButtons"); + //_abstractRemoteButtons.CaseSensitive = true; + + //_abstractRemoteButtons.ReadXmlSchema("RemoteTable.xsd"); + + + //_abstractRemoteButtons.Tables.Add(table); + //_abstractRemoteButtons.Tables.Add(table); + + + //_lookupTable.WriteXmlSchema("Abstract Remote Model 0.1.xsd"); + //_lookupTable.WriteXml("Abstract Remote Button List.xml", XmlWriteMode.WriteSchema); + //_abstractRemoteButtons.WriteXml("Abstract Remote Button List.xml", XmlWriteMode.WriteSchema); + } + + private void MainForm_FormClosing(object sender, FormClosingEventArgs e) + { + buttonDisconnect_Click(null, null); + + _addStatusLine = null; + _setDevices = null; + + IrssLog.Close(); + } + + + void ReceivedMessage(IrssMessage received) + { + this.Invoke(_addStatusLine, new Object[] { String.Format("Received Message: \"{0}, {1}\"", received.Type, received.Flags) }); + + try + { + switch (received.Type) + { + case MessageType.RegisterClient: + if ((received.Flags & MessageFlags.Success) == MessageFlags.Success) + { + _registered = true; + _irServerInfo = IRServerInfo.FromBytes(received.GetDataAsBytes()); + + _client.Send(new IrssMessage(MessageType.ActiveReceivers, MessageFlags.Request)); + _client.Send(new IrssMessage(MessageType.ActiveBlasters, MessageFlags.Request)); + } + else if ((received.Flags & MessageFlags.Failure) == MessageFlags.Failure) + { + _registered = false; + } + return; + + case MessageType.ActiveBlasters: + this.Invoke(_addStatusLine, new Object[] { received.GetDataAsString() }); + break; + + case MessageType.ActiveReceivers: + this.Invoke(_addStatusLine, new Object[] { received.GetDataAsString() }); + + string[] receivers = received.GetDataAsString().Split(new char[] { ',' }, StringSplitOptions.RemoveEmptyEntries); + + this.Invoke(_setDevices, new Object[] { receivers }); + + LoadDeviceFiles(receivers); + break; + + case MessageType.RemoteEvent: + byte[] data = received.GetDataAsBytes(); + int deviceNameSize = BitConverter.ToInt32(data, 0); + string deviceName = Encoding.ASCII.GetString(data, 4, deviceNameSize); + int keyCodeSize = BitConverter.ToInt32(data, 4 + deviceNameSize); + string keyCode = Encoding.ASCII.GetString(data, 8 + deviceNameSize, keyCodeSize); + + RemoteHandlerCallback(deviceName, keyCode); + return; + + case MessageType.ServerShutdown: + _registered = false; + return; + + case MessageType.Error: + this.Invoke(_addStatusLine, new Object[] { received.GetDataAsString() }); + return; + } + } + catch (Exception ex) + { + this.Invoke(_addStatusLine, new Object[] { ex.Message }); + } + } + + void RemoteHandlerCallback(string deviceName, string keyCode) + { + string text = String.Format("Remote Event \"{0}\", \"{1}\"", deviceName, keyCode); + this.Invoke(_addStatusLine, text); + + // If this remote event matches the criteria then set it to an abstract button in the list view ... + if (deviceName.Equals(comboBoxDevice.Text, StringComparison.OrdinalIgnoreCase)) + { + if (listViewButtonMap.SelectedItems.Count == 1) + { + bool found = false; + foreach (ListViewItem item in listViewButtonMap.Items) + if (item.SubItems[1].Text.Equals(keyCode, StringComparison.OrdinalIgnoreCase)) + found = true; + + if (!found) + { + int index = listViewButtonMap.SelectedIndices[0]; + listViewButtonMap.SelectedItems[0].SubItems[1].Text = keyCode; + listViewButtonMap.SelectedIndices.Clear(); + + if (listViewButtonMap.Items.Count > index + 1) + { + listViewButtonMap.SelectedIndices.Add(index + 1); + listViewButtonMap.SelectedItems[0].Focused = true; + listViewButtonMap.EnsureVisible(index + 1); + } + } + } + } + + // Determine abstract button details ... + string abstractButton = LookupAbstractButton(deviceName, keyCode); + string abstractText = String.Format("Abstract Button \"{0}\"", abstractButton); + this.Invoke(_addStatusLine, abstractText); + } + + void CommsFailure(object obj) + { + Exception ex = obj as Exception; + + if (ex != null) + this.Invoke(_addStatusLine, new Object[] { String.Format("Communications failure: {0}", ex.Message) }); + else + this.Invoke(_addStatusLine, new Object[] { "Communications failure" }); + + StopClient(); + } + void Connected(object obj) + { + IrssLog.Info("Connected to server"); + + IrssMessage message = new IrssMessage(MessageType.RegisterClient, MessageFlags.Request); + _client.Send(message); + } + void Disconnected(object obj) + { + IrssLog.Warn("Communications with server has been lost"); + + Thread.Sleep(1000); + } + + bool StartClient(IPEndPoint endPoint) + { + if (_client != null) + return false; + + ClientMessageSink sink = new ClientMessageSink(ReceivedMessage); + + _client = new Client(endPoint, sink); + _client.CommsFailureCallback = new WaitCallback(CommsFailure); + _client.ConnectCallback = new WaitCallback(Connected); + _client.DisconnectCallback = new WaitCallback(Disconnected); + + if (_client.Start()) + { + return true; + } + else + { + _client = null; + return false; + } + } + void StopClient() + { + if (_client == null) + return; + + _client.Dispose(); + _client = null; + } + + private void buttonConnect_Click(object sender, EventArgs e) + { + _abstractRemoteButtons = new DataSet("AbstractRemoteButtons"); + _abstractRemoteButtons.CaseSensitive = true; + + try + { + AddStatusLine("Connect"); + listBoxStatus.Update(); + + if (_client != null) + { + AddStatusLine("Already connected/connecting"); + return; + } + + _serverHost = comboBoxComputer.Text; + + IPAddress serverIP = Client.GetIPFromName(_serverHost); + IPEndPoint endPoint = new IPEndPoint(serverIP, IrssComms.Server.DefaultPort); + + StartClient(endPoint); + } + catch (Exception ex) + { + AddStatusLine(ex.Message); + } + } + private void buttonDisconnect_Click(object sender, EventArgs e) + { + _abstractRemoteButtons = null; + + AddStatusLine("Disconnect"); + + try + { + if (_client == null) + { + AddStatusLine(" - Not connected"); + return; + } + + if (_registered) + { + IrssMessage message = new IrssMessage(MessageType.UnregisterClient, MessageFlags.Request); + _client.Send(message); + } + + StopClient(); + } + catch (Exception ex) + { + AddStatusLine(ex.Message); + } + } + + string LookupAbstractButton(string deviceName, string keyCode) + { + foreach (DataTable table in _abstractRemoteButtons.Tables) + { + string device = table.ExtendedProperties["Device"] as string; + + if (device.Equals(deviceName, StringComparison.OrdinalIgnoreCase)) + { + string expression = String.Format("RawCode = '{0}'", keyCode); + + DataRow[] rows = table.Select(expression); + if (rows.Length == 1) + { + string button = rows[0]["AbstractButton"].ToString() as string; + if (!String.IsNullOrEmpty(button)) + return button + " on " + table.ExtendedProperties["Remote"] as string + " through " + deviceName; + } + } + } + + return String.Format("{0} ({1})", deviceName, keyCode); + } + + + void LoadDeviceFiles(string[] devices) + { + foreach (string device in devices) + { + string[] files = Directory.GetFiles(device, "*.xml", SearchOption.TopDirectoryOnly); + foreach (string file in files) + { + string remote = Path.GetFileNameWithoutExtension(file); + this.Invoke(_addStatusLine, String.Format("Loading {0} remote map \"{1}\"", device, remote)); + + DataTable table = _abstractRemoteButtons.Tables.Add("RemoteTable"); + table.ReadXmlSchema("RemoteTable.xsd"); + table.ReadXml(file); + + + table.ExtendedProperties.Add("Device", device); + table.ExtendedProperties.Add("Remote", remote); + + table.TableName = String.Format("{0}:{1}", device, remote); + } + } + } + + private void buttonClear_Click(object sender, EventArgs e) + { + ClearMap(); + } + private void buttonLoad_Click(object sender, EventArgs e) + { + LoadMap(); + } + private void buttonSave_Click(object sender, EventArgs e) + { + SaveMap(); + } + + + void ClearMap() + { + string[] abstractButtons = Enum.GetNames(typeof(AbstractButton)); + + listViewButtonMap.Items.Clear(); + foreach (string abstractButton in abstractButtons) + listViewButtonMap.Items.Add(new ListViewItem(new string[] { abstractButton, String.Empty })); + + listViewButtonMap.Sort(); + } + + + void SaveMap() + { + if (String.IsNullOrEmpty(textBoxRemoteName.Text)) + { + MessageBox.Show(this, "You must include a remote name before saving", "Missing remote name", MessageBoxButtons.OK, MessageBoxIcon.Error); + return; + } + + string device = comboBoxDevice.Text; + + string fileName = Path.ChangeExtension(textBoxRemoteName.Text, ".xml"); + + string path = Path.Combine(device, fileName); + + this.Invoke(_addStatusLine, String.Format("Writing to file \"{0}\"", path)); + + DataTable table = new DataTable("RemoteTable"); + table.ReadXmlSchema("RemoteTable.xsd"); + + /* + DataColumn column; + + column = new DataColumn("RawCode", typeof(string)); + column.Caption = "Raw Code"; + column.ColumnMapping = MappingType.Attribute; + column.DefaultValue = String.Empty; + column.ReadOnly = false; + column.Unique = true; + table.Columns.Add(column); + + column = new DataColumn("AbstractButton", typeof(string)); + column.Caption = "Abstract Button"; + column.ColumnMapping = MappingType.Attribute; + column.DefaultValue = String.Empty; + column.ReadOnly = false; + column.Unique = false; + table.Columns.Add(column); + */ + + foreach (ListViewItem item in listViewButtonMap.Items) + { + if (!String.IsNullOrEmpty(item.SubItems[1].Text)) + table.Rows.Add(item.SubItems[1].Text, item.SubItems[0].Text); + } + + table.WriteXml(path); + } + + void LoadMap() + { + if (String.IsNullOrEmpty(textBoxRemoteName.Text)) + { + MessageBox.Show(this, "You must include a remote name before saving", "Missing remote name", MessageBoxButtons.OK, MessageBoxIcon.Error); + return; + } + + string device = comboBoxDevice.Text; + + string fileName = Path.ChangeExtension(textBoxRemoteName.Text, ".xml"); + + string path = Path.Combine(device, fileName); + + if (!File.Exists(path)) + { + MessageBox.Show(this, String.Format("Remote file not found ({0}) in device folder ({1})", fileName, device), "Remote file not found", MessageBoxButtons.OK, MessageBoxIcon.Error); + return; + } + + this.Invoke(_addStatusLine, String.Format("Reading from file \"{0}\"", path)); + + DataTable table = new DataTable("RemoteTable"); + table.ReadXmlSchema("RemoteTable.xsd"); + + table.ReadXml(path); + + string[] abstractButtons = Enum.GetNames(typeof(AbstractButton)); + + listViewButtonMap.Items.Clear(); + foreach (string abstractButton in abstractButtons) + { + string[] subitems = new string[] { abstractButton, String.Empty }; + + DataRow[] rows = table.Select(String.Format("AbstractButton = '{0}'", abstractButton)); + + if (rows.Length == 1) + subitems[1] = rows[0]["RawCode"].ToString(); + + ListViewItem item = new ListViewItem(subitems); + listViewButtonMap.Items.Add(item); + } + + listViewButtonMap.Sort(); + } + + private void listViewButtonMap_KeyDown(object sender, KeyEventArgs e) + { + if (e.KeyCode == Keys.Space) + { + if (listViewButtonMap.SelectedItems.Count == 1) + { + listViewButtonMap.SelectedItems[0].SubItems[1].Text = String.Empty; + } + } + } + + + } + +} Added: trunk/plugins/IR Server Suite/Applications/Abstractor/MainForm.resx =================================================================== --- trunk/plugins/IR Server Suite/Applications/Abstractor/MainForm.resx (rev 0) +++ trunk/plugins/IR Server Suite/Applications/Abstractor/MainForm.resx 2008-02-28 06:41:36 UTC (rev 1402) @@ -0,0 +1,120 @@ +<?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> +</root> \ No newline at end of file Added: trunk/plugins/IR Server Suite/Applications/Abstractor/Program.cs =================================================================== --- trunk/plugins/IR Server Suite/Applications/Abstractor/Program.cs (rev 0) +++ trunk/plugins/IR Server Suite/Applications/Abstractor/Program.cs 2008-02-28 06:41:36 UTC (rev 1402) @@ -0,0 +1,20 @@ +using System; +using System.Collections.Generic; +using System.Windows.Forms; + +namespace Abstractor +{ + static class Program + { + /// <summary> + /// The main entry point for the application. + /// </summary> + [STAThread] + static void Main() + { + Application.EnableVisualStyles(); + Application.SetCompatibleTextRenderingDefault(false); + Application.Run(new MainForm()); + } + } +} \ No newline at end of file Added: trunk/plugins/IR Server Suite/Applications/Abstractor/Properties/AssemblyInfo.cs =================================================================== --- trunk/plugins/IR Server Suite/Applications/Abstractor/Properties/AssemblyInfo.cs (rev 0) +++ trunk/plugins/IR Server Suite/Applications/Abstractor/Properties/AssemblyInfo.cs 2008-02-28 06:41:36 UTC (rev 1402) @@ -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("Abstractor")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("Abstractor")] +[assembly: AssemblyCopyright("Copyright © 2008")] +[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("4d23d334-3b85-4d33-85a2-0071812ce053")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +[assembly: AssemblyVersion("1.0.4.2")] +[assembly: AssemblyFileVersion("1.0.4.2")] Added: trunk/plugins/IR Server Suite/Applications/Abstractor/RemoteTable.Designer.cs =================================================================== --- trunk/plugins/IR Server Suite/Applications/Abstractor/RemoteTable.Designer.cs (rev 0) +++ trunk/plugins/IR Server Suite/Applications/Abstractor/RemoteTable.Designer.cs 2008-02-28 06:41:36 UTC (rev 1402) @@ -0,0 +1,528 @@ +//------------------------------------------------------------------------------ +// <auto-generated> +// This code was generated by a tool. +// Runtime Version:2.0.50727.832 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// </auto-generated> +//------------------------------------------------------------------------------ + +#pragma warning disable 1591 + +namespace Abstractor { + using System; + + + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")] + [Serializable()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.ComponentModel.ToolboxItem(true)] + [System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedDataSetSchema")] + [System.Xml.Serialization.XmlRootAttribute("AbstractRemoteButtons")] + [System.ComponentModel.Design.HelpKeywordAttribute("vs.data.DataSet")] + public partial class AbstractRemoteButtons : System.Data.DataSet { + + private RemoteTableDataTable tableRemoteTable; + + private System.Data.SchemaSerializationMode _schemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema; + + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + public AbstractRemoteButtons() { + this.BeginInit(); + this.InitClass(); + System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged); + base.Tables.CollectionChanged += schemaChangedHandler; + base.Relations.CollectionChanged += schemaChangedHandler; + this.EndInit(); + } + + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected AbstractRemoteButtons(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : + base(info, context, false) { + if ((this.IsBinarySerialized(info, context) == true)) { + this.InitVars(false); + System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler1 = new System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged); + this.Tables.CollectionChanged += schemaChangedHandler1; + this.Relations.CollectionChanged += schemaChangedHandler1; + return; + } + string strSchema = ((string)(info.GetValue("XmlSchema", typeof(string)))); + if ((this.DetermineSchemaSerializationMode(info, context) == System.Data.SchemaSerializationMode.IncludeSchema)) { + System.Data.DataSet ds = new System.Data.DataSet(); + ds.ReadXmlSchema(new System.Xml.XmlTextReader(new System.IO.StringReader(strSchema))); + if ((ds.Tables["RemoteTable"] != null)) { + base.Tables.Add(new RemoteTableDataTable(ds.Tables["RemoteTable"])); + } + this.DataSetName = ds.DataSetName; + this.Prefix = ds.Prefix; + this.Namespace = ds.Namespace; + this.Locale = ds.Locale; + this.CaseSensitive = ds.CaseSensitive; + this.EnforceConstraints = ds.EnforceConstraints; + this.Merge(ds, false, System.Data.MissingSchemaAction.Add); + this.InitVars(); + } + else { + this.ReadXmlSchema(new System.Xml.XmlTextReader(new System.IO.StringReader(strSchema))); + } + this.GetSerializationData(info, context); + System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged); + base.Tables.CollectionChanged += schemaChangedHandler; + this.Relations.CollectionChanged += schemaChangedHandler; + } + + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + [System.ComponentModel.Browsable(false)] + [System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Content)] + public RemoteTableDataTable RemoteTable { + get { + return this.tableRemoteTable; + } + } + + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + [System.ComponentModel.BrowsableAttribute(true)] + [System.ComponentModel.DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Visible)] + public override System.Data.SchemaSerializationMode SchemaSerializationMode { + get { + return this._schemaSerializationMode; + } + set { + this._schemaSerializationMode = value; + } + } + + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + [System.ComponentModel.DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Hidden)] + public new System.Data.DataTableCollection Tables { + get { + return base.Tables; + } + } + + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + [System.ComponentModel.DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Hidden)] + public new System.Data.DataRelationCollection Relations { + get { + return base.Relations; + } + } + + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override void InitializeDerivedDataSet() { + this.BeginInit(); + this.InitClass(); + this.EndInit(); + } + + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + public override System.Data.DataSet Clone() { + AbstractRemoteButtons cln = ((AbstractRemoteButtons)(base.Clone())); + cln.InitVars(); + cln.SchemaSerializationMode = this.SchemaSerializationMode; + return cln; + } + + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override bool ShouldSerializeTables() { + return false; + } + + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override bool ShouldSerializeRelations() { + return false; + } + + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override void ReadXmlSerializable(System.Xml.XmlReader reader) { + if ((this.DetermineSchemaSerializationMode(reader) == System.Data.SchemaSerializationMode.IncludeSchema)) { + this.Reset(); + System.Data.DataSet ds = new System.Data.DataSet(); + ds.ReadXml(reader); + if ((ds.Tables["RemoteTable"] != null)) { + base.Tables.Add(new RemoteTableDataTable(ds.Tables["RemoteTable"])); + } + this.DataSetName = ds.DataSetName; + this.Prefix = ds.Prefix; + this.Namespace = ds.Namespace; + this.Locale = ds.Locale; + this.CaseSensitive = ds.CaseSensitive; + this.EnforceConstraints = ds.EnforceConstraints; + this.Merge(ds, false, System.Data.MissingSchemaAction.Add); + this.InitVars(); + } + else { + this.ReadXml(reader); + this.InitVars(); + } + } + + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override System.Xml.Schema.XmlSchema GetSchemaSerializable() { + System.IO.MemoryStream stream = new System.IO.MemoryStream(); + this.WriteXmlSchema(new System.Xml.XmlTextWriter(stream, null)); + stream.Position = 0; + return System.Xml.Schema.XmlSchema.Read(new System.Xml.XmlTextReader(stream), null); + } + + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + internal void InitVars() { + this.InitVars(true); + } + + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + internal void InitVars(bool initTable) { + this.tableRemoteTable = ((RemoteTableDataTable)(base.Tables["RemoteTable"])); + if ((initTable == true)) { + if ((this.tableRemoteTable != null)) { + this.tableRemoteTable.InitVars(); + } + } + } + + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + private void InitClass() { + this.DataSetName = "AbstractRemoteButtons"; + this.Prefix = ""; + this.Locale = new System.Globalization.CultureInfo("en"); + this.EnforceConstraints = true; + this.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema; + this.tableRemoteTable = new RemoteTableDataTable(); + base.Tables.Add(this.tableRemoteTable... [truncated message content] |