Author: gedmurphy
Date: Thu Mar 6 16:01:00 2008
New Revision: 32584
URL:
http://svn.reactos.org/svn/reactos?rev=3D32584&view=3Drev
Log:
add missing files
Added:
trunk/tools/RosTE/GUI/DebugForm.Designer.cs
trunk/tools/RosTE/GUI/DebugForm.cs
trunk/tools/RosTE/GUI/DebugForm.resx
Added: trunk/tools/RosTE/GUI/DebugForm.Designer.cs
URL:
http://svn.reactos.org/svn/reactos/trunk/tools/RosTE/GUI/DebugForm.Des=
igner.cs?rev=3D32584&view=3Dauto
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D
--- trunk/tools/RosTE/GUI/DebugForm.Designer.cs (added)
+++ trunk/tools/RosTE/GUI/DebugForm.Designer.cs Thu Mar 6 16:01:00 2008
@@ -1,0 +1,88 @@
+namespace RosTEGUI
+{
+ partial class DebugForm
+ {
+ /// <summary>
+ /// Required designer variable.
+ /// </summary>
+ private System.ComponentModel.IContainer components =3D null;
+
+ /// <summary>
+ /// Clean up any resources being used.
+ /// </summary>
+ /// <param name=3D"disposing">true if managed resources should be
=
disposed; otherwise, false.</param>
+ protected override void Dispose(bool disposing)
+ {
+ if (disposing && (components !=3D 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.errorText =3D new System.Windows.Forms.TextBox();
+ this.errorCloseBtn =3D new System.Windows.Forms.Button();
+ this.errorCopyBtn =3D new System.Windows.Forms.Button();
+ this.SuspendLayout();
+ // =
+ // errorText
+ // =
+ this.errorText.Location =3D new System.Drawing.Point(12, 12);
+ this.errorText.Multiline =3D true;
+ this.errorText.Name =3D "errorText";
+ this.errorText.ReadOnly =3D true;
+ this.errorText.Size =3D new System.Drawing.Size(436, 244);
+ this.errorText.TabIndex =3D 0;
+ // =
+ // errorCloseBtn
+ // =
+ this.errorCloseBtn.Location =3D new System.Drawing.Point(373, =
262);
+ this.errorCloseBtn.Name =3D "errorCloseBtn";
+ this.errorCloseBtn.Size =3D new System.Drawing.Size(75, 23);
+ this.errorCloseBtn.TabIndex =3D 1;
+ this.errorCloseBtn.Text =3D "Close";
+ this.errorCloseBtn.UseVisualStyleBackColor =3D true;
+ this.errorCloseBtn.Click +=3D new System.EventHandler(this.err=
orCloseBtn_Click);
+ // =
+ // errorCopyBtn
+ // =
+ this.errorCopyBtn.Location =3D new System.Drawing.Point(12, 26=
2);
+ this.errorCopyBtn.Name =3D "errorCopyBtn";
+ this.errorCopyBtn.Size =3D new System.Drawing.Size(75, 23);
+ this.errorCopyBtn.TabIndex =3D 2;
+ this.errorCopyBtn.Text =3D "Copy";
+ this.errorCopyBtn.UseVisualStyleBackColor =3D true;
+ this.errorCopyBtn.Click +=3D new System.EventHandler(this.erro=
rCopyBtn_Click);
+ // =
+ // DebugForm
+ // =
+ this.AutoScaleDimensions =3D new System.Drawing.SizeF(6F, 13F);
+ this.AutoScaleMode =3D System.Windows.Forms.AutoScaleMode.Font;
+ this.ClientSize =3D new System.Drawing.Size(460, 290);
+ this.Controls.Add(this.errorCopyBtn);
+ this.Controls.Add(this.errorCloseBtn);
+ this.Controls.Add(this.errorText);
+ this.MaximizeBox =3D false;
+ this.Name =3D "DebugForm";
+ this.ShowIcon =3D false;
+ this.Text =3D "Debug";
+ this.ResumeLayout(false);
+ this.PerformLayout();
+
+ }
+
+ #endregion
+
+ private System.Windows.Forms.TextBox errorText;
+ private System.Windows.Forms.Button errorCloseBtn;
+ private System.Windows.Forms.Button errorCopyBtn;
+ }
+}
Added: trunk/tools/RosTE/GUI/DebugForm.cs
URL:
http://svn.reactos.org/svn/reactos/trunk/tools/RosTE/GUI/DebugForm.cs?=
rev=3D32584&view=3Dauto
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D
--- trunk/tools/RosTE/GUI/DebugForm.cs (added)
+++ trunk/tools/RosTE/GUI/DebugForm.cs Thu Mar 6 16:01:00 2008
@@ -1,0 +1,96 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Data;
+using System.Drawing;
+using System.Text;
+using System.Windows.Forms;
+
+namespace RosTEGUI
+{
+ public partial class DebugForm : Form
+ {
+ public DebugForm()
+ {
+ InitializeComponent();
+ }
+
+ public void AddMessage(string message, string exception, string tr=
ace)
+ {
+ errorText.Text =3D message + " : " + exception + "\n\t" +
trac=
e;
+ }
+
+ private void errorCloseBtn_Click(object sender, EventArgs e)
+ {
+ Debug.DoDebug =3D false;
+ Close();
+ }
+
+ private void errorCopyBtn_Click(object sender, EventArgs e)
+ {
+ Clipboard.SetText(errorText.Text);
+ }
+ }
+
+ public static class Debug
+ {
+ static DebugForm df =3D null;
+ static bool doDebug =3D false;
+
+ public static bool DoDebug
+ {
+ set { doDebug =3D value; }
+ get { return doDebug; }
+ }
+
+ public static void TurnDebuggingOn()
+ {
+ if (df =3D=3D null)
+ {
+ df =3D new DebugForm();
+ df.Show();
+ }
+
+ DoDebug =3D true;
+ }
+
+ public static void TurnDebuggingOff()
+ {
+ if (df !=3D null)
+ {
+ df.Close();
+ df =3D null;
+ }
+
+ DoDebug =3D false;
+ }
+
+ public static void LogMessage(string message)
+ {
+ LogMessage(message, null, null, false);
+ }
+
+ public static void LogMessage(string message, string exception)
+ {
+ LogMessage(message, exception, null, false);
+ }
+
+ public static void LogMessage(string message, string exception, st=
ring trace)
+ {
+ LogMessage(message, exception, trace, false);
+ }
+
+ public static void LogMessage(string message, string exception, st=
ring trace, bool bForce)
+ {
+ if (df =3D=3D null && bForce)
+ {
+ df =3D new DebugForm();
+ df.Show();
+ df.AddMessage(message, exception, trace);
+ }
+
+ if (DoDebug)
+ df.AddMessage(message, null, null);
+ }
+ }
+}
Added: trunk/tools/RosTE/GUI/DebugForm.resx
URL:
http://svn.reactos.org/svn/reactos/trunk/tools/RosTE/GUI/DebugForm.res=
x?rev=3D32584&view=3Dauto
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D
--- trunk/tools/RosTE/GUI/DebugForm.resx (added)
+++ trunk/tools/RosTE/GUI/DebugForm.resx Thu Mar 6 16:01:00 2008
@@ -1,0 +1,120 @@
+<?xml version=3D"1.0" encoding=3D"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=3D"resmimetype">text/microsoft-resx</resheader>
+ <resheader name=3D"version">2.0</resheader>
+ <resheader name=3D"reader">System.Resources.ResXResourceReader,
System=
.Windows.Forms, ...</resheader>
+ <resheader name=3D"writer">System.Resources.ResXResourceWriter,
System=
.Windows.Forms, ...</resheader>
+ <data name=3D"Name1"><value>this is my long
string</value><comment>thi=
s is a comment</comment></data>
+ <data name=3D"Color1" type=3D"System.Drawing.Color,
System.Drawing">Bl=
ue</data>
+ <data name=3D"Bitmap1"
mimetype=3D"application/x-microsoft.net.object.=
binary.base64">
+ <value>[base64 mime encoded serialized .NET Framework object]</val=
ue>
+ </data>
+ <data name=3D"Icon1" type=3D"System.Drawing.Icon,
System.Drawing" mime=
type=3D"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.BinaryFormatt=
er
+ : 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=3D"root" xmlns=3D""
xmlns:xsd=3D"http://www.w3.org/2001/X=
MLSchema" xmlns:msdata=3D"urn:schemas-microsoft-com:xml-msdata">
+ <xsd:import
namespace=3D"http://www.w3.org/XML/1998/namespace" />
+ <xsd:element name=3D"root" msdata:IsDataSet=3D"true">
+ <xsd:complexType>
+ <xsd:choice maxOccurs=3D"unbounded">
+ <xsd:element name=3D"metadata">
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element name=3D"value" type=3D"xsd:string"
minOccurs=
=3D"0" />
+ </xsd:sequence>
+ <xsd:attribute name=3D"name" use=3D"required"
type=3D"xsd:st=
ring" />
+ <xsd:attribute name=3D"type" type=3D"xsd:string"
/>
+ <xsd:attribute name=3D"mimetype" type=3D"xsd:string"
/>
+ <xsd:attribute ref=3D"xml:space" />
+ </xsd:complexType>
+ </xsd:element>
+ <xsd:element name=3D"assembly">
+ <xsd:complexType>
+ <xsd:attribute name=3D"alias" type=3D"xsd:string"
/>
+ <xsd:attribute name=3D"name" type=3D"xsd:string"
/>
+ </xsd:complexType>
+ </xsd:element>
+ <xsd:element name=3D"data">
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element name=3D"value" type=3D"xsd:string"
minOccurs=
=3D"0" msdata:Ordinal=3D"1" />
+ <xsd:element name=3D"comment" type=3D"xsd:string"
minOccur=
s=3D"0" msdata:Ordinal=3D"2" />
+ </xsd:sequence>
+ <xsd:attribute name=3D"name" type=3D"xsd:string"
use=3D"requ=
ired" msdata:Ordinal=3D"1" />
+ <xsd:attribute name=3D"type" type=3D"xsd:string"
msdata:Ordi=
nal=3D"3" />
+ <xsd:attribute name=3D"mimetype" type=3D"xsd:string"
msdata:=
Ordinal=3D"4" />
+ <xsd:attribute ref=3D"xml:space" />
+ </xsd:complexType>
+ </xsd:element>
+ <xsd:element name=3D"resheader">
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element name=3D"value" type=3D"xsd:string"
minOccurs=
=3D"0" msdata:Ordinal=3D"1" />
+ </xsd:sequence>
+ <xsd:attribute name=3D"name" type=3D"xsd:string"
use=3D"requ=
ired" />
+ </xsd:complexType>
+ </xsd:element>
+ </xsd:choice>
+ </xsd:complexType>
+ </xsd:element>
+ </xsd:schema>
+ <resheader name=3D"resmimetype">
+ <value>text/microsoft-resx</value>
+ </resheader>
+ <resheader name=3D"version">
+ <value>2.0</value>
+ </resheader>
+ <resheader name=3D"reader">
+ <value>System.Resources.ResXResourceReader, System.Windows.Forms, Vers=
ion=3D2.0.0.0, Culture=3Dneutral, PublicKeyToken=3Db77a5c561934e089</value>
+ </resheader>
+ <resheader name=3D"writer">
+ <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Vers=
ion=3D2.0.0.0, Culture=3Dneutral, PublicKeyToken=3Db77a5c561934e089</value>
+ </resheader>
+</root>