Author: arty
Date: Sat Aug 9 07:40:32 2008
New Revision: 35223
URL:
http://svn.reactos.org/svn/reactos?rev=35223&view=rev
Log:
Also forgottent from Gregor Schneider's patch (sorry)
Added:
trunk/tools/reactosdbg/RosDBG/SerialTargetSelect.Designer.cs
trunk/tools/reactosdbg/RosDBG/SerialTargetSelect.cs
trunk/tools/reactosdbg/RosDBG/SerialTargetSelect.resx
Added: trunk/tools/reactosdbg/RosDBG/SerialTargetSelect.Designer.cs
URL:
http://svn.reactos.org/svn/reactos/trunk/tools/reactosdbg/RosDBG/SerialTarg…
==============================================================================
--- trunk/tools/reactosdbg/RosDBG/SerialTargetSelect.Designer.cs (added)
+++ trunk/tools/reactosdbg/RosDBG/SerialTargetSelect.Designer.cs [iso-8859-1] Sat Aug 9
07:40:32 2008
@@ -1,0 +1,130 @@
+namespace RosDBG
+{
+ partial class SerialTargetSelect
+ {
+ /// <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.cPort = new System.Windows.Forms.ComboBox();
+ this.cBaud = new System.Windows.Forms.ComboBox();
+ this.label1 = new System.Windows.Forms.Label();
+ this.label2 = new System.Windows.Forms.Label();
+ this.bCancel = new System.Windows.Forms.Button();
+ this.bOK = new System.Windows.Forms.Button();
+ this.SuspendLayout();
+ //
+ // cPort
+ //
+ this.cPort.FormattingEnabled = true;
+ this.cPort.Location = new System.Drawing.Point(50, 9);
+ this.cPort.Name = "cPort";
+ this.cPort.Size = new System.Drawing.Size(121, 21);
+ this.cPort.TabIndex = 0;
+ //
+ // cBaud
+ //
+ this.cBaud.FormattingEnabled = true;
+ this.cBaud.Items.AddRange(new object[] {
+ "9600",
+ "19200",
+ "38400",
+ "57600",
+ "115200"});
+ this.cBaud.Location = new System.Drawing.Point(50, 48);
+ this.cBaud.Name = "cBaud";
+ this.cBaud.Size = new System.Drawing.Size(121, 21);
+ this.cBaud.TabIndex = 1;
+ //
+ // label1
+ //
+ this.label1.AutoSize = true;
+ this.label1.Location = new System.Drawing.Point(12, 12);
+ this.label1.Name = "label1";
+ this.label1.Size = new System.Drawing.Size(26, 13);
+ this.label1.TabIndex = 5;
+ this.label1.Text = "Port";
+ //
+ // label2
+ //
+ this.label2.AutoSize = true;
+ this.label2.Location = new System.Drawing.Point(12, 51);
+ this.label2.Name = "label2";
+ this.label2.Size = new System.Drawing.Size(32, 13);
+ this.label2.TabIndex = 6;
+ this.label2.Text = "Baud";
+ //
+ // bCancel
+ //
+ this.bCancel.Anchor =
((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom |
System.Windows.Forms.AnchorStyles.Right)));
+ this.bCancel.Location = new System.Drawing.Point(150, 90);
+ this.bCancel.Name = "bCancel";
+ this.bCancel.Size = new System.Drawing.Size(75, 23);
+ this.bCancel.TabIndex = 4;
+ this.bCancel.Text = "Cancel";
+ this.bCancel.UseVisualStyleBackColor = true;
+ this.bCancel.Click += new System.EventHandler(this.bCancel_Click);
+ //
+ // bOK
+ //
+ this.bOK.Anchor =
((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom |
System.Windows.Forms.AnchorStyles.Right)));
+ this.bOK.Location = new System.Drawing.Point(69, 90);
+ this.bOK.Name = "bOK";
+ this.bOK.Size = new System.Drawing.Size(75, 23);
+ this.bOK.TabIndex = 3;
+ this.bOK.Text = "OK";
+ this.bOK.UseVisualStyleBackColor = true;
+ this.bOK.Click += new System.EventHandler(this.bOK_Click);
+ //
+ // SerialTargetSelect
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.ClientSize = new System.Drawing.Size(237, 125);
+ this.Controls.Add(this.bOK);
+ this.Controls.Add(this.bCancel);
+ this.Controls.Add(this.label2);
+ this.Controls.Add(this.label1);
+ this.Controls.Add(this.cBaud);
+ this.Controls.Add(this.cPort);
+ this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
+ this.Name = "SerialTargetSelect";
+ this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
+ this.Text = "SerialTargetSelect";
+ this.ResumeLayout(false);
+ this.PerformLayout();
+
+ }
+
+ #endregion
+
+ private System.Windows.Forms.ComboBox cPort;
+ private System.Windows.Forms.ComboBox cBaud;
+ private System.Windows.Forms.Label label1;
+ private System.Windows.Forms.Label label2;
+ private System.Windows.Forms.Button bCancel;
+ private System.Windows.Forms.Button bOK;
+ }
+}
Added: trunk/tools/reactosdbg/RosDBG/SerialTargetSelect.cs
URL:
http://svn.reactos.org/svn/reactos/trunk/tools/reactosdbg/RosDBG/SerialTarg…
==============================================================================
--- trunk/tools/reactosdbg/RosDBG/SerialTargetSelect.cs (added)
+++ trunk/tools/reactosdbg/RosDBG/SerialTargetSelect.cs [iso-8859-1] Sat Aug 9 07:40:32
2008
@@ -1,0 +1,50 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Data;
+using System.Drawing;
+using System.Linq;
+using System.Text;
+using System.Windows.Forms;
+using System.IO.Ports;
+
+namespace RosDBG
+{
+ public partial class SerialTargetSelect : Form
+ {
+ public String Port
+ {
+ get { return cPort.Text; }
+ set { Port = value; }
+ }
+
+ public int Baudrate
+ {
+ get { return Convert.ToInt32(cBaud.Text); }
+ set { Baudrate = value; }
+ }
+
+ public SerialTargetSelect()
+ {
+ InitializeComponent();
+ foreach (string s in SerialPort.GetPortNames())
+ {
+ cPort.Items.Add(s);
+ }
+ cPort.SelectedIndex = 0;
+ cBaud.SelectedIndex = 0;
+ }
+
+ private void bOK_Click(object sender, EventArgs e)
+ {
+ DialogResult = DialogResult.OK;
+ Close();
+ }
+
+ private void bCancel_Click(object sender, EventArgs e)
+ {
+ DialogResult = DialogResult.Cancel;
+ Close();
+ }
+ }
+}
Added: trunk/tools/reactosdbg/RosDBG/SerialTargetSelect.resx
URL:
http://svn.reactos.org/svn/reactos/trunk/tools/reactosdbg/RosDBG/SerialTarg…
==============================================================================
--- trunk/tools/reactosdbg/RosDBG/SerialTargetSelect.resx (added)
+++ trunk/tools/reactosdbg/RosDBG/SerialTargetSelect.resx [iso-8859-1] Sat Aug 9 07:40:32
2008
@@ -1,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>