From: <an...@us...> - 2007-11-05 14:39:49
|
Revision: 1030 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=1030&view=rev Author: and-81 Date: 2007-11-05 06:39:47 -0800 (Mon, 05 Nov 2007) Log Message: ----------- Modified Paths: -------------- trunk/plugins/IR Server Suite/Applications/Translator/ButtonMapping.cs trunk/plugins/IR Server Suite/Applications/Translator/Configuration.cs trunk/plugins/IR Server Suite/Applications/Translator/CopyDataWM.cs trunk/plugins/IR Server Suite/Applications/Translator/EventSchedule.cs trunk/plugins/IR Server Suite/Applications/Translator/MappedEvent.cs trunk/plugins/IR Server Suite/Applications/Translator/Program.cs trunk/plugins/IR Server Suite/Applications/Translator/ProgramSettings.cs trunk/plugins/IR Server Suite/Applications/Translator/Translator.csproj 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/Custom HID Receiver.csproj trunk/plugins/IR Server Suite/IR Server Plugins/IgorPlug Receiver/IgorPlug Receiver.cs trunk/plugins/IR Server Suite/IR Server Plugins/IgorPlug Receiver/IgorPlug Receiver.csproj Modified: trunk/plugins/IR Server Suite/Applications/Translator/ButtonMapping.cs =================================================================== --- trunk/plugins/IR Server Suite/Applications/Translator/ButtonMapping.cs 2007-11-05 13:23:54 UTC (rev 1029) +++ trunk/plugins/IR Server Suite/Applications/Translator/ButtonMapping.cs 2007-11-05 14:39:47 UTC (rev 1030) @@ -55,7 +55,16 @@ #region Constructors - public ButtonMapping() { } + /// <summary> + /// Initializes a new instance of the <see cref="ButtonMapping"/> class. + /// </summary> + public ButtonMapping() { } + /// <summary> + /// Initializes a new instance of the <see cref="ButtonMapping"/> class. + /// </summary> + /// <param name="keyCode">The remote key code.</param> + /// <param name="description">The description.</param> + /// <param name="command">The command to execute for this remote button.</param> public ButtonMapping(string keyCode, string description, string command) { _keyCode = keyCode; Modified: trunk/plugins/IR Server Suite/Applications/Translator/Configuration.cs =================================================================== --- trunk/plugins/IR Server Suite/Applications/Translator/Configuration.cs 2007-11-05 13:23:54 UTC (rev 1029) +++ trunk/plugins/IR Server Suite/Applications/Translator/Configuration.cs 2007-11-05 14:39:47 UTC (rev 1030) @@ -73,6 +73,9 @@ #region Constructors + /// <summary> + /// Initializes a new instance of the <see cref="Configuration"/> class. + /// </summary> public Configuration() { _serverHost = "localhost"; Modified: trunk/plugins/IR Server Suite/Applications/Translator/CopyDataWM.cs =================================================================== --- trunk/plugins/IR Server Suite/Applications/Translator/CopyDataWM.cs 2007-11-05 13:23:54 UTC (rev 1029) +++ trunk/plugins/IR Server Suite/Applications/Translator/CopyDataWM.cs 2007-11-05 14:39:47 UTC (rev 1030) @@ -139,6 +139,10 @@ #endregion Overrides + /// <summary> + /// Sends a copy data message. + /// </summary> + /// <param name="data">The data.</param> public static void SendCopyDataMessage(string data) { Win32.COPYDATASTRUCT copyData; Modified: trunk/plugins/IR Server Suite/Applications/Translator/EventSchedule.cs =================================================================== --- trunk/plugins/IR Server Suite/Applications/Translator/EventSchedule.cs 2007-11-05 13:23:54 UTC (rev 1029) +++ trunk/plugins/IR Server Suite/Applications/Translator/EventSchedule.cs 2007-11-05 14:39:47 UTC (rev 1030) @@ -6,7 +6,7 @@ { #region Enumerations - + /* public enum ScheduleRepeat { Never, @@ -48,7 +48,7 @@ November, December, } - + */ #endregion Enumerations class EventSchedule Modified: trunk/plugins/IR Server Suite/Applications/Translator/MappedEvent.cs =================================================================== --- trunk/plugins/IR Server Suite/Applications/Translator/MappedEvent.cs 2007-11-05 13:23:54 UTC (rev 1029) +++ trunk/plugins/IR Server Suite/Applications/Translator/MappedEvent.cs 2007-11-05 14:39:47 UTC (rev 1030) @@ -13,12 +13,33 @@ /// </summary> public enum MappingEvent { + /// <summary> + /// No event. + /// </summary> None, + /// <summary> + /// Translator started. + /// </summary> Translator_Start, + /// <summary> + /// Translator quit. + /// </summary> Translator_Quit, + /// <summary> + /// The PC is shutting down. + /// </summary> PC_Shutdown, + /// <summary> + /// The PC is suspending. + /// </summary> PC_Suspend, + /// <summary> + /// The PC has returned from suspend. + /// </summary> PC_Resume, + /// <summary> + /// The user is logging off. + /// </summary> PC_Logoff, //Scheduled_Event, } Modified: trunk/plugins/IR Server Suite/Applications/Translator/Program.cs =================================================================== --- trunk/plugins/IR Server Suite/Applications/Translator/Program.cs 2007-11-05 13:23:54 UTC (rev 1029) +++ trunk/plugins/IR Server Suite/Applications/Translator/Program.cs 2007-11-05 14:39:47 UTC (rev 1030) @@ -409,7 +409,6 @@ _notifyIcon.ContextMenuStrip.Items.Add(macros); } - /**/ ToolStripMenuItem actions = new ToolStripMenuItem("&Actions"); actions.DropDownItems.Add("Next Window", null, new EventHandler(ClickAction)); actions.DropDownItems.Add("Last Window", null, new EventHandler(ClickAction)); @@ -442,7 +441,6 @@ actions.DropDownItems.Add("Volume Mute", null, new EventHandler(ClickAction)); _notifyIcon.ContextMenuStrip.Items.Add(actions); - /**/ _notifyIcon.ContextMenuStrip.Items.Add(new ToolStripSeparator()); _notifyIcon.ContextMenuStrip.Items.Add("&Setup", null, new EventHandler(ClickSetup)); Modified: trunk/plugins/IR Server Suite/Applications/Translator/ProgramSettings.cs =================================================================== --- trunk/plugins/IR Server Suite/Applications/Translator/ProgramSettings.cs 2007-11-05 13:23:54 UTC (rev 1029) +++ trunk/plugins/IR Server Suite/Applications/Translator/ProgramSettings.cs 2007-11-05 14:39:47 UTC (rev 1030) @@ -123,6 +123,9 @@ #region Constructors + /// <summary> + /// Initializes a new instance of the <see cref="ProgramSettings"/> class. + /// </summary> public ProgramSettings() { _name = "New Program"; Modified: trunk/plugins/IR Server Suite/Applications/Translator/Translator.csproj =================================================================== --- trunk/plugins/IR Server Suite/Applications/Translator/Translator.csproj 2007-11-05 13:23:54 UTC (rev 1029) +++ trunk/plugins/IR Server Suite/Applications/Translator/Translator.csproj 2007-11-05 14:39:47 UTC (rev 1030) @@ -54,6 +54,7 @@ <PlatformTarget>x86</PlatformTarget> <ErrorReport>prompt</ErrorReport> <UseVSHostingProcess>true</UseVSHostingProcess> + <DocumentationFile>bin\x86\Debug\Translator.XML</DocumentationFile> </PropertyGroup> <ItemGroup> <Reference Include="System" /> Modified: 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/Custom HID Receiver.cs 2007-11-05 13:23:54 UTC (rev 1029) +++ trunk/plugins/IR Server Suite/IR Server Plugins/Custom HID Receiver/Custom HID Receiver.cs 2007-11-05 14:39:47 UTC (rev 1030) @@ -14,12 +14,15 @@ namespace CustomHIDReceiver { + /// <summary> + /// IR Server plugin to support HID USB devices. + /// </summary> public class CustomHIDReceiver : IRServerPluginBase, IConfigure, IRemoteReceiver, IKeyboardReceiver, IMouseReceiver { #region Constants - public static readonly string ConfigurationFile = + static readonly string ConfigurationFile = Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData) + "\\IR Server Suite\\IR Server\\Custom HID Receiver.xml"; @@ -56,6 +59,9 @@ #region Constructor + /// <summary> + /// Initializes a new instance of the <see cref="CustomHIDReceiver"/> class. + /// </summary> public CustomHIDReceiver() { LoadSettings(); @@ -67,9 +73,25 @@ #endregion Constructor + /// <summary> + /// Name of the IR Server plugin. + /// </summary> + /// <value>The name.</value> public override string Name { get { return "Custom HID Receiver"; } } + /// <summary> + /// IR Server plugin version. + /// </summary> + /// <value>The version.</value> public override string Version { get { return "1.0.3.5"; } } + /// <summary> + /// The IR Server plugin's author. + /// </summary> + /// <value>The author.</value> public override string Author { get { return "and-81"; } } + /// <summary> + /// A description of the IR Server plugin. + /// </summary> + /// <value>The description.</value> public override string Description { get { return "Supports HID USB devices."; } } /// <summary> @@ -101,16 +123,25 @@ { Stop(); } + /// <summary> + /// Resume the IR Server plugin when the computer returns from standby. + /// </summary> public override void Resume() { Start(); } + /// <summary> + /// Stop the IR Server plugin. + /// </summary> public override void Stop() { _device.dwFlags |= RawInput.RawInputDeviceFlags.Remove; RegisterForRawInput(_device); } - + + /// <summary> + /// Configure the IR Server plugin. + /// </summary> public void Configure() { DeviceSelect deviceSelect = new DeviceSelect(); @@ -147,6 +178,9 @@ set { _mouseHandler = value; } } + /// <summary> + /// Loads the settings. + /// </summary> void LoadSettings() { try @@ -175,6 +209,9 @@ _repeatDelay = 250; } } + /// <summary> + /// Saves the settings. + /// </summary> void SaveSettings() { try @@ -240,7 +277,9 @@ void ProcessKeyDown(int param) { +#if TRACE Trace.WriteLine(String.Format("KeyDown - Param: {0}", param)); +#endif if (_keyboardHandler != null) _keyboardHandler(param, false); @@ -248,7 +287,9 @@ void ProcessKeyUp(int param) { +#if TRACE Trace.WriteLine(String.Format("KeyUp - Param: {0}", param)); +#endif if (_keyboardHandler != null) _keyboardHandler(param, true); @@ -256,7 +297,9 @@ void ProcessAppCommand(int param) { +#if TRACE Trace.WriteLine(String.Format("AppCommand - Param: {0}", param)); +#endif } void ProcessInputCommand(ref Message message) @@ -304,6 +347,7 @@ case RawInput.RawInputType.Mouse: { +#if TRACE Trace.WriteLine(String.Format("Mouse Event")); Trace.WriteLine(String.Format("Buttons: {0}", raw.mouse.ulButtons)); Trace.WriteLine(String.Format("Raw Buttons: {0}", raw.mouse.ulRawButtons)); @@ -311,7 +355,7 @@ Trace.WriteLine(String.Format("Extra: {0}", raw.mouse.ulExtraInformation)); Trace.WriteLine(String.Format("Button Data: {0}", raw.mouse.buttonsStr.usButtonData)); Trace.WriteLine(String.Format("Button Flags: {0}", raw.mouse.buttonsStr.usButtonFlags)); - +#endif //if (_mouseHandler != null) //_mouseHandler(0, 0, (int)raw.mouse.ulButtons); @@ -320,12 +364,16 @@ case RawInput.RawInputType.Keyboard: { +#if TRACE Trace.WriteLine(String.Format("Keyboard Event")); +#endif switch (raw.keyboard.Flags) { case RawInput.RawKeyboardFlags.KeyBreak: +#if TRACE Trace.WriteLine( String.Format("Break: {0}", raw.keyboard.VKey)); +#endif if (_keyboardHandler != null) _keyboardHandler(raw.keyboard.VKey, true); @@ -333,15 +381,21 @@ break; case RawInput.RawKeyboardFlags.KeyE0: +#if TRACE Trace.WriteLine( String.Format("E0: {0}", raw.keyboard.MakeCode)); +#endif break; case RawInput.RawKeyboardFlags.KeyE1: +#if TRACE Trace.WriteLine( String.Format("E1")); +#endif break; case RawInput.RawKeyboardFlags.KeyMake: +#if TRACE Trace.WriteLine( String.Format("Make: {0}", raw.keyboard.VKey)); +#endif if (_keyboardHandler != null) _keyboardHandler(raw.keyboard.VKey, false); @@ -349,13 +403,18 @@ break; case RawInput.RawKeyboardFlags.TerminalServerSetLED: +#if TRACE Trace.WriteLine( String.Format("TerminalServerSetLED")); +#endif break; case RawInput.RawKeyboardFlags.TerminalServerShadow: +#if TRACE Trace.WriteLine( String.Format("TerminalServerShadow")); +#endif break; } + break; } } @@ -367,7 +426,6 @@ } - } } Modified: trunk/plugins/IR Server Suite/IR Server Plugins/Custom HID Receiver/Custom HID Receiver.csproj =================================================================== --- trunk/plugins/IR Server Suite/IR Server Plugins/Custom HID Receiver/Custom HID Receiver.csproj 2007-11-05 13:23:54 UTC (rev 1029) +++ trunk/plugins/IR Server Suite/IR Server Plugins/Custom HID Receiver/Custom HID Receiver.csproj 2007-11-05 14:39:47 UTC (rev 1030) @@ -41,8 +41,7 @@ <PlatformTarget>x86</PlatformTarget> <UseVSHostingProcess>false</UseVSHostingProcess> <ErrorReport>prompt</ErrorReport> - <DocumentationFile> - </DocumentationFile> + <DocumentationFile>bin\x86\Debug\Custom HID Receiver.XML</DocumentationFile> </PropertyGroup> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' "> <OutputPath>bin\x86\Release\</OutputPath> Modified: trunk/plugins/IR Server Suite/IR Server Plugins/IgorPlug Receiver/IgorPlug Receiver.cs =================================================================== --- trunk/plugins/IR Server Suite/IR Server Plugins/IgorPlug Receiver/IgorPlug Receiver.cs 2007-11-05 13:23:54 UTC (rev 1029) +++ trunk/plugins/IR Server Suite/IR Server Plugins/IgorPlug Receiver/IgorPlug Receiver.cs 2007-11-05 14:39:47 UTC (rev 1030) @@ -14,6 +14,9 @@ namespace IgorPlugReceiver { + /// <summary> + /// IR Server plugin supporting the IgorPlug device. + /// </summary> public class IgorPlugReceiver : IRServerPluginBase, IRemoteReceiver { @@ -145,11 +148,31 @@ #region Implementation + /// <summary> + /// Name of the IR Server plugin. + /// </summary> + /// <value>The name.</value> public override string Name { get { return "IgorPlug"; } } + /// <summary> + /// IR Server plugin version. + /// </summary> + /// <value>The version.</value> public override string Version { get { return "1.0.3.5"; } } + /// <summary> + /// The IR Server plugin's author. + /// </summary> + /// <value>The author.</value> public override string Author { get { return "and-81"; } } + /// <summary> + /// A description of the IR Server plugin. + /// </summary> + /// <value>The description.</value> public override string Description { get { return "IgorPlug Receiver"; } } + /// <summary> + /// Start the IR Server plugin. + /// </summary> + /// <returns>true if successful, otherwise false.</returns> public override bool Start() { ThreadStart readThreadStart = new ThreadStart(ReadThread); @@ -159,14 +182,23 @@ return true; } + /// <summary> + /// Suspend the IR Server plugin when computer enters standby. + /// </summary> public override void Suspend() { Stop(); } + /// <summary> + /// Resume the IR Server plugin when the computer returns from standby. + /// </summary> public override void Resume() { Start(); } + /// <summary> + /// Stop the IR Server plugin. + /// </summary> public override void Stop() { _readThread.Abort(); Modified: trunk/plugins/IR Server Suite/IR Server Plugins/IgorPlug Receiver/IgorPlug Receiver.csproj =================================================================== --- trunk/plugins/IR Server Suite/IR Server Plugins/IgorPlug Receiver/IgorPlug Receiver.csproj 2007-11-05 13:23:54 UTC (rev 1029) +++ trunk/plugins/IR Server Suite/IR Server Plugins/IgorPlug Receiver/IgorPlug Receiver.csproj 2007-11-05 14:39:47 UTC (rev 1030) @@ -41,6 +41,7 @@ <PlatformTarget>x86</PlatformTarget> <UseVSHostingProcess>false</UseVSHostingProcess> <ErrorReport>prompt</ErrorReport> + <DocumentationFile>bin\x86\Debug\IgorPlug Receiver.XML</DocumentationFile> </PropertyGroup> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' "> <OutputPath>bin\x86\Release\</OutputPath> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |