@ added script editor find/replace dialog (work in progress)

This commit is contained in:
codeimp 2009-03-01 21:42:41 +00:00
parent a7d64b60d1
commit 2dbc282b29
6 changed files with 452 additions and 47 deletions

View file

@ -674,6 +674,12 @@
<Compile Include="Windows\ErrorsForm.Designer.cs"> <Compile Include="Windows\ErrorsForm.Designer.cs">
<DependentUpon>ErrorsForm.cs</DependentUpon> <DependentUpon>ErrorsForm.cs</DependentUpon>
</Compile> </Compile>
<Compile Include="Windows\ScriptFindReplaceForm.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="Windows\ScriptFindReplaceForm.Designer.cs">
<DependentUpon>ScriptFindReplaceForm.cs</DependentUpon>
</Compile>
<Compile Include="Windows\StatusInfo.cs" /> <Compile Include="Windows\StatusInfo.cs" />
<Compile Include="ZDoom\ActorStructure.cs" /> <Compile Include="ZDoom\ActorStructure.cs" />
<Compile Include="ZDoom\PatchStructure.cs" /> <Compile Include="ZDoom\PatchStructure.cs" />
@ -795,6 +801,10 @@
<SubType>Designer</SubType> <SubType>Designer</SubType>
<DependentUpon>ScriptEditorForm.cs</DependentUpon> <DependentUpon>ScriptEditorForm.cs</DependentUpon>
</EmbeddedResource> </EmbeddedResource>
<EmbeddedResource Include="Windows\ScriptFindReplaceForm.resx">
<SubType>Designer</SubType>
<DependentUpon>ScriptFindReplaceForm.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Windows\TextEditForm.resx"> <EmbeddedResource Include="Windows\TextEditForm.resx">
<SubType>Designer</SubType> <SubType>Designer</SubType>
<DependentUpon>TextEditForm.cs</DependentUpon> <DependentUpon>TextEditForm.cs</DependentUpon>

View file

@ -110,8 +110,8 @@ namespace CodeImp.DoomBuilder.Windows
// //
// ErrorsForm // ErrorsForm
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 14F); this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi;
this.CancelButton = this.close; this.CancelButton = this.close;
this.ClientSize = new System.Drawing.Size(756, 453); this.ClientSize = new System.Drawing.Size(756, 453);
this.Controls.Add(this.close); this.Controls.Add(this.close);

View file

@ -127,52 +127,53 @@
<value> <value>
AAEAAAD/////AQAAAAAAAAAMAgAAAFdTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj0yLjAuMC4w AAEAAAD/////AQAAAAAAAAAMAgAAAFdTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj0yLjAuMC4w
LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACZTeXN0 LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACZTeXN0
ZW0uV2luZG93cy5Gb3Jtcy5JbWFnZUxpc3RTdHJlYW1lcgEAAAAERGF0YQcCAgAAAAkDAAAADwMAAACA ZW0uV2luZG93cy5Gb3Jtcy5JbWFnZUxpc3RTdHJlYW1lcgEAAAAERGF0YQcCAgAAAAkDAAAADwMAAACk
CgAAAk1TRnQBSQFMAgEBAgEAAQQBAAEEAQABEgEAARIBAAT/ASEBAAj/AUIBTQE2BwABNgMAASgDAAFI CgAAAk1TRnQBSQFMAgEBAgEAAQQBAAEEAQABEgEAARIBAAT/ASEBAAj/AUIBTQE2BwABNgMAASgDAAFI
AwABEgMAAQEBAAEgBQABQAEUKgABFgIVAR4BLQIpAUUBMwItAVEBJwIlATsDDAEQ/wAFAAEmAiQBOAFQ AwABEgMAAQEBAAEgBQABQAEUKgABFwIBAR4BLgIEAUUBNAIFAVEBKAIDATsBDQIBARD/AAUAAScCAwE4
AjcBnQFpAUgBVAHZAXEBWwGCAe8BbQFaAY8B8gFzAVYBeQHrAWABPgFCAcoBRQI1AX4DEwEa9AADAwEE AVECFgGdAWcBNAE9AdkBcAFPAXMB7wFsAVABggHyAXIBSQ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XYB6gFZARwBHQGrAScCAwE5MAABVgIaAaYBsAKhAfIBIAICAS3/AP8A8gABQgFN
AfwBHwL/AfAHAAHwAQcC/wHwBwABwAEDAcABAAEwBwABwAEBAcABAAEwBwABgAEAAcABAAEwCQAB4AEA AT4HAAE+AwABKAMAAUgDAAESAwABAQEAAQEFAAHYFwAD/wEAAfwBHwL/AfAHAAHwAQcC/wHwBwABwAED
ATAJAAHgAQABcAkAAfABAAFwCQAB8AEAAfAJAAH4AQEB8AkAAfwBAQHwCQAB/AEDAfAHAAGAAQAB/gED AcABAAEwBwABwAEBAcABAAEwBwABgAEAAcABAAEwCQAB4AEAATAJAAHgAQABcAkAAfABAAFwCQAB8AEA
AfAHAAGAAQEB/gEHAfAHAAHAAQMB/wEHAfAHAAHgAQcB/wGPAfAHAAT/AfAHAAT/AfAHAAs= AfAJAAH4AQEB8AkAAfwBAQHwCQAB/AEDAfAHAAGAAQAB/gEDAfAHAAGAAQEB/gEHAfAHAAHAAQMB/wEH
AfAHAAHgAQcB/wGPAfAHAAT/AfAHAAT/AfAHAAs=
</value> </value>
</data> </data>
<metadata name="copyselected.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> <metadata name="copyselected.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">

View file

@ -0,0 +1,184 @@
namespace CodeImp.DoomBuilder.Windows
{
partial class ScriptFindReplaceForm
{
/// <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.label1 = new System.Windows.Forms.Label();
this.findtext = new System.Windows.Forms.TextBox();
this.casesensitive = new System.Windows.Forms.CheckBox();
this.wordonly = new System.Windows.Forms.CheckBox();
this.replace = new System.Windows.Forms.CheckBox();
this.replacetext = new System.Windows.Forms.TextBox();
this.label2 = new System.Windows.Forms.Label();
this.findnextbutton = new System.Windows.Forms.Button();
this.replaceallbutton = new System.Windows.Forms.Button();
this.closebutton = new System.Windows.Forms.Button();
this.replacebutton = new System.Windows.Forms.Button();
this.SuspendLayout();
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(29, 23);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(30, 14);
this.label1.TabIndex = 0;
this.label1.Text = "Find:";
//
// findtext
//
this.findtext.Location = new System.Drawing.Point(65, 20);
this.findtext.Name = "findtext";
this.findtext.Size = new System.Drawing.Size(180, 20);
this.findtext.TabIndex = 1;
//
// casesensitive
//
this.casesensitive.AutoSize = true;
this.casesensitive.Location = new System.Drawing.Point(65, 52);
this.casesensitive.Name = "casesensitive";
this.casesensitive.Size = new System.Drawing.Size(97, 18);
this.casesensitive.TabIndex = 2;
this.casesensitive.Text = "Case sensitive";
this.casesensitive.UseVisualStyleBackColor = true;
//
// wordonly
//
this.wordonly.AutoSize = true;
this.wordonly.Location = new System.Drawing.Point(65, 76);
this.wordonly.Name = "wordonly";
this.wordonly.Size = new System.Drawing.Size(108, 18);
this.wordonly.TabIndex = 3;
this.wordonly.Text = "Whole word only";
this.wordonly.UseVisualStyleBackColor = true;
//
// replace
//
this.replace.AutoSize = true;
this.replace.Location = new System.Drawing.Point(21, 105);
this.replace.Name = "replace";
this.replace.Size = new System.Drawing.Size(65, 18);
this.replace.TabIndex = 4;
this.replace.Text = "Replace";
this.replace.UseVisualStyleBackColor = true;
//
// replacetext
//
this.replacetext.Location = new System.Drawing.Point(65, 129);
this.replacetext.Name = "replacetext";
this.replacetext.Size = new System.Drawing.Size(180, 20);
this.replacetext.TabIndex = 5;
//
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(28, 132);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(31, 14);
this.label2.TabIndex = 6;
this.label2.Text = "With:";
//
// findnextbutton
//
this.findnextbutton.Location = new System.Drawing.Point(277, 18);
this.findnextbutton.Name = "findnextbutton";
this.findnextbutton.Size = new System.Drawing.Size(98, 25);
this.findnextbutton.TabIndex = 7;
this.findnextbutton.Text = "Find Next";
this.findnextbutton.UseVisualStyleBackColor = true;
//
// replaceallbutton
//
this.replaceallbutton.Location = new System.Drawing.Point(277, 80);
this.replaceallbutton.Name = "replaceallbutton";
this.replaceallbutton.Size = new System.Drawing.Size(98, 25);
this.replaceallbutton.TabIndex = 8;
this.replaceallbutton.Text = "Replace All";
this.replaceallbutton.UseVisualStyleBackColor = true;
//
// closebutton
//
this.closebutton.DialogResult = System.Windows.Forms.DialogResult.Cancel;
this.closebutton.Location = new System.Drawing.Point(277, 127);
this.closebutton.Name = "closebutton";
this.closebutton.Size = new System.Drawing.Size(98, 25);
this.closebutton.TabIndex = 9;
this.closebutton.Text = "Close";
this.closebutton.UseVisualStyleBackColor = true;
//
// replacebutton
//
this.replacebutton.Location = new System.Drawing.Point(277, 49);
this.replacebutton.Name = "replacebutton";
this.replacebutton.Size = new System.Drawing.Size(98, 25);
this.replacebutton.TabIndex = 10;
this.replacebutton.Text = "Replace";
this.replacebutton.UseVisualStyleBackColor = true;
//
// ScriptFindReplaceForm
//
this.AcceptButton = this.findnextbutton;
this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi;
this.CancelButton = this.closebutton;
this.ClientSize = new System.Drawing.Size(387, 171);
this.Controls.Add(this.replacebutton);
this.Controls.Add(this.closebutton);
this.Controls.Add(this.replaceallbutton);
this.Controls.Add(this.findnextbutton);
this.Controls.Add(this.label2);
this.Controls.Add(this.replacetext);
this.Controls.Add(this.replace);
this.Controls.Add(this.wordonly);
this.Controls.Add(this.casesensitive);
this.Controls.Add(this.findtext);
this.Controls.Add(this.label1);
this.Font = new System.Drawing.Font("Arial", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
this.Name = "ScriptFindReplaceForm";
this.Text = "Find and Replace";
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.Label label1;
private System.Windows.Forms.TextBox findtext;
private System.Windows.Forms.CheckBox casesensitive;
private System.Windows.Forms.CheckBox wordonly;
private System.Windows.Forms.CheckBox replace;
private System.Windows.Forms.TextBox replacetext;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.Button findnextbutton;
private System.Windows.Forms.Button replaceallbutton;
private System.Windows.Forms.Button closebutton;
private System.Windows.Forms.Button replacebutton;
}
}

View file

@ -0,0 +1,54 @@
#region ================== Copyright (c) 2007 Pascal vd Heiden
/*
* Copyright (c) 2007 Pascal vd Heiden, www.codeimp.com
* This program is released under GNU General Public License
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
*/
#endregion
#region ================== Namespaces
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using CodeImp.DoomBuilder.Map;
using System.IO;
using CodeImp.DoomBuilder.Data;
using CodeImp.DoomBuilder.Controls;
#endregion
namespace CodeImp.DoomBuilder.Windows
{
public partial class ScriptFindReplaceForm : DelayedForm
{
#region ================== Variables
#endregion
#region ================== Properties
#endregion
#region ================== Constructor
// Constructor
public ScriptFindReplaceForm()
{
InitializeComponent();
}
#endregion
}
}

View file

@ -0,0 +1,156 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<metadata name="label1.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="findtext.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="casesensitive.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="wordonly.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="replace.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="replacetext.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="label2.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="findnextbutton.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="replaceallbutton.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="closebutton.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="replacebutton.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="$this.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
</root>