[mapguide-commits] r5695 - in trunk/Tools/Maestro: Maestro.Base
Maestro.Base/Commands/SiteExplorer Maestro.Base/Properties
Maestro.Editors Maestro.Editors/Common
svn_mapguide at osgeo.org
svn_mapguide at osgeo.org
Tue Apr 12 07:24:26 EDT 2011
Author: jng
Date: 2011-04-12 04:24:26 -0700 (Tue, 12 Apr 2011)
New Revision: 5695
Added:
trunk/Tools/Maestro/Maestro.Base/Commands/SiteExplorer/FindReplaceXmlContentCommand.cs
trunk/Tools/Maestro/Maestro.Editors/Common/FindReplaceDialog.Designer.cs
trunk/Tools/Maestro/Maestro.Editors/Common/FindReplaceDialog.cs
trunk/Tools/Maestro/Maestro.Editors/Common/FindReplaceDialog.resx
Modified:
trunk/Tools/Maestro/Maestro.Base/Maestro.Base.addin
trunk/Tools/Maestro/Maestro.Base/Maestro.Base.csproj
trunk/Tools/Maestro/Maestro.Base/Properties/Resources.Designer.cs
trunk/Tools/Maestro/Maestro.Base/Properties/Resources.resx
trunk/Tools/Maestro/Maestro.Editors/Maestro.Editors.csproj
Log:
#1661: Port Find/Replace from Maestro 2.x. As context menu extension is not possible in our UI framework, the command itself invokes a find and replace dialog to prompt for the token to be replaced in all selected resources. This command only applies to a selected document or multiple selected documents.
Added: trunk/Tools/Maestro/Maestro.Base/Commands/SiteExplorer/FindReplaceXmlContentCommand.cs
===================================================================
--- trunk/Tools/Maestro/Maestro.Base/Commands/SiteExplorer/FindReplaceXmlContentCommand.cs (rev 0)
+++ trunk/Tools/Maestro/Maestro.Base/Commands/SiteExplorer/FindReplaceXmlContentCommand.cs 2011-04-12 11:24:26 UTC (rev 5695)
@@ -0,0 +1,86 @@
+#region Disclaimer / License
+// Copyright (C) 2011, Jackie Ng
+// http://trac.osgeo.org/mapguide/wiki/maestro, jumpinjackie at gmail.com
+//
+// This library is free software; you can redistribute it and/or
+// modify it under the terms of the GNU Lesser General Public
+// License as published by the Free Software Foundation; either
+// version 2.1 of the License, or (at your option) any later version.
+//
+// This library 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
+// Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public
+// License along with this library; if not, write to the Free Software
+// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+//
+#endregion
+using System;
+using System.Collections.Generic;
+using System.Text;
+using ICSharpCode.Core;
+using Maestro.Base.Services;
+using Maestro.Editors.Common;
+using System.IO;
+using Maestro.Base.Editor;
+
+namespace Maestro.Base.Commands.SiteExplorer
+{
+ internal class FindReplaceXmlContentCommand : AbstractMenuCommand
+ {
+ public override void Run()
+ {
+ var wb = Workbench.Instance;
+ var exp = wb.ActiveSiteExplorer;
+ var omgr = ServiceRegistry.GetService<OpenResourceManager>();
+ var connMgr = ServiceRegistry.GetService<ServerConnectionManager>();
+ var conn = connMgr.GetConnection(exp.ConnectionName);
+ if (exp.SelectedItems.Length > 0)
+ {
+ int replaced = 0;
+ var diag = new FindReplaceDialog();
+ if (diag.ShowDialog() == System.Windows.Forms.DialogResult.OK)
+ {
+ foreach (var item in exp.SelectedItems)
+ {
+ if (item.IsFolder)
+ continue;
+
+ //To maintain resource integrity, we don't modify any open resources. So we
+ //ask if they want to close down first. If they say no, omit this resource from
+ //the find/replace
+ if (omgr.IsOpen(item.ResourceId))
+ {
+ omgr.CloseEditors(item.ResourceId, false);
+ //Still open. Must've said no
+ if (omgr.IsOpen(item.ResourceId))
+ {
+ LoggingService.Info(string.Format(Properties.Resources.SkippingResource, item.ResourceId));
+ continue;
+ }
+ }
+
+ //Do the find/replace
+ using (var s = conn.ResourceService.GetResourceXmlData(item.ResourceId))
+ {
+ using (var sr = new StreamReader(s))
+ {
+ string xml = sr.ReadToEnd();
+ xml = xml.Replace(diag.FindToken, diag.ReplaceToken);
+ using (var ms = new MemoryStream(Encoding.UTF8.GetBytes(xml)))
+ {
+ conn.ResourceService.SetResourceXmlData(item.ResourceId, ms);
+ }
+ //Re-open in XML editor for user review
+ omgr.Open(item.ResourceId, conn, true, wb.ActiveSiteExplorer);
+ replaced++;
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+}
Modified: trunk/Tools/Maestro/Maestro.Base/Maestro.Base.addin
===================================================================
--- trunk/Tools/Maestro/Maestro.Base/Maestro.Base.addin 2011-04-12 09:56:44 UTC (rev 5694)
+++ trunk/Tools/Maestro/Maestro.Base/Maestro.Base.addin 2011-04-12 11:24:26 UTC (rev 5695)
@@ -497,11 +497,14 @@
icon="cross_script"
label="${res:SiteExplorer_SelectedItem_Delete}"
class="Maestro.Base.Commands.SiteExplorer.DeleteSelectedItemsCommand" />
+ <MenuItem type="Separator" />
<MenuItem id="Duplicate"
icon="document_copy"
label="${res:SiteExplorer_DuplicateResources}"
class="Maestro.Base.Commands.SiteExplorer.DuplicateResourceCommand" />
- <MenuItem type="Separator" />
+ <MenuItem id="FindReplaceXml"
+ label="${res:SiteExplorer_FindReplaceXml}"
+ class="Maestro.Base.Commands.SiteExplorer.FindReplaceXmlContentCommand" />
<Condition action="Disable" name="ResourceType" types="FeatureSource,LayerDefinition">
<MenuItem id="PurgeFsCache"
label="${res:SiteExplorer_PurgeFsCache}"
@@ -564,6 +567,9 @@
icon="document_copy"
label="${res:SiteExplorer_DuplicateResources}"
class="Maestro.Base.Commands.SiteExplorer.DuplicateResourceCommand" />
+ <MenuItem id="FindReplaceXml"
+ label="${res:SiteExplorer_FindReplaceXml}"
+ class="Maestro.Base.Commands.SiteExplorer.FindReplaceXmlContentCommand" />
<MenuItem type="Separator" />
<Condition action="Disable" name="CanCutOrCopy">
<MenuItem id="Copy"
Modified: trunk/Tools/Maestro/Maestro.Base/Maestro.Base.csproj
===================================================================
--- trunk/Tools/Maestro/Maestro.Base/Maestro.Base.csproj 2011-04-12 09:56:44 UTC (rev 5694)
+++ trunk/Tools/Maestro/Maestro.Base/Maestro.Base.csproj 2011-04-12 11:24:26 UTC (rev 5695)
@@ -102,6 +102,7 @@
<Compile Include="Commands\SaveResourceAsCommand.cs" />
<Compile Include="Commands\SaveResourceCommand.cs" />
<Compile Include="Commands\SiteExplorer\DuplicateResourceCommand.cs" />
+ <Compile Include="Commands\SiteExplorer\FindReplaceXmlContentCommand.cs" />
<Compile Include="Commands\SiteExplorer\PurgeFeatureSourceCacheCommand.cs" />
<Compile Include="Commands\SiteExplorer\SaveResourceContentToDiskCommand.cs" />
<Compile Include="Commands\ServerMonitorCommand.cs" />
Modified: trunk/Tools/Maestro/Maestro.Base/Properties/Resources.Designer.cs
===================================================================
--- trunk/Tools/Maestro/Maestro.Base/Properties/Resources.Designer.cs 2011-04-12 09:56:44 UTC (rev 5694)
+++ trunk/Tools/Maestro/Maestro.Base/Properties/Resources.Designer.cs 2011-04-12 11:24:26 UTC (rev 5695)
@@ -1438,6 +1438,15 @@
}
}
+ /// <summary>
+ /// Looks up a localized string similar to Replaced XML content in: {0}.
+ /// </summary>
+ internal static string ReplacedXmlContent {
+ get {
+ return ResourceManager.GetString("ReplacedXmlContent", resourceCulture);
+ }
+ }
+
internal static System.Drawing.Bitmap reports_stack {
get {
object obj = ResourceManager.GetObject("reports_stack", resourceCulture);
@@ -1491,6 +1500,15 @@
}
/// <summary>
+ /// Looks up a localized string similar to {0} resources processed.
+ /// </summary>
+ internal static string ResourcesProcessed {
+ get {
+ return ResourceManager.GetString("ResourcesProcessed", resourceCulture);
+ }
+ }
+
+ /// <summary>
/// Looks up a localized string similar to {0} resources re-pointed to {1}.
/// </summary>
internal static string ResourcesRepointed {
@@ -1795,6 +1813,15 @@
}
/// <summary>
+ /// Looks up a localized string similar to Find and Replace XML content.
+ /// </summary>
+ internal static string SiteExplorer_FindReplaceXml {
+ get {
+ return ResourceManager.GetString("SiteExplorer_FindReplaceXml", resourceCulture);
+ }
+ }
+
+ /// <summary>
/// Looks up a localized string similar to Migrate.
/// </summary>
internal static string SiteExplorer_Migrate {
@@ -1948,6 +1975,15 @@
}
/// <summary>
+ /// Looks up a localized string similar to Skipping resource: {0}.
+ /// </summary>
+ internal static string SkippingResource {
+ get {
+ return ResourceManager.GetString("SkippingResource", resourceCulture);
+ }
+ }
+
+ /// <summary>
/// Looks up a localized string similar to Create a SQLite Feature Source.
/// </summary>
internal static string SltHandlerAction {
Modified: trunk/Tools/Maestro/Maestro.Base/Properties/Resources.resx
===================================================================
--- trunk/Tools/Maestro/Maestro.Base/Properties/Resources.resx 2011-04-12 09:56:44 UTC (rev 5694)
+++ trunk/Tools/Maestro/Maestro.Base/Properties/Resources.resx 2011-04-12 11:24:26 UTC (rev 5695)
@@ -992,4 +992,16 @@
<data name="Toolbar_Validate" xml:space="preserve">
<value>Validate</value>
</data>
+ <data name="SkippingResource" xml:space="preserve">
+ <value>Skipping resource: {0}</value>
+ </data>
+ <data name="ReplacedXmlContent" xml:space="preserve">
+ <value>Replaced XML content in: {0}</value>
+ </data>
+ <data name="ResourcesProcessed" xml:space="preserve">
+ <value>{0} resources processed</value>
+ </data>
+ <data name="SiteExplorer_FindReplaceXml" xml:space="preserve">
+ <value>Find and Replace XML content</value>
+ </data>
</root>
\ No newline at end of file
Added: trunk/Tools/Maestro/Maestro.Editors/Common/FindReplaceDialog.Designer.cs
===================================================================
--- trunk/Tools/Maestro/Maestro.Editors/Common/FindReplaceDialog.Designer.cs (rev 0)
+++ trunk/Tools/Maestro/Maestro.Editors/Common/FindReplaceDialog.Designer.cs 2011-04-12 11:24:26 UTC (rev 5695)
@@ -0,0 +1,106 @@
+namespace Maestro.Editors.Common
+{
+ partial class FindReplaceDialog
+ {
+ /// <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()
+ {
+ System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FindReplaceDialog));
+ this.label1 = new System.Windows.Forms.Label();
+ this.label2 = new System.Windows.Forms.Label();
+ this.txtFind = new System.Windows.Forms.TextBox();
+ this.txtReplace = new System.Windows.Forms.TextBox();
+ this.btnReplace = new System.Windows.Forms.Button();
+ this.btnCancel = new System.Windows.Forms.Button();
+ this.SuspendLayout();
+ //
+ // label1
+ //
+ resources.ApplyResources(this.label1, "label1");
+ this.label1.Name = "label1";
+ //
+ // label2
+ //
+ resources.ApplyResources(this.label2, "label2");
+ this.label2.Name = "label2";
+ //
+ // txtFind
+ //
+ resources.ApplyResources(this.txtFind, "txtFind");
+ this.txtFind.Name = "txtFind";
+ this.txtFind.TextChanged += new System.EventHandler(this.txtFind_TextChanged);
+ //
+ // txtReplace
+ //
+ resources.ApplyResources(this.txtReplace, "txtReplace");
+ this.txtReplace.Name = "txtReplace";
+ this.txtReplace.TextChanged += new System.EventHandler(this.txtReplace_TextChanged);
+ //
+ // btnReplace
+ //
+ resources.ApplyResources(this.btnReplace, "btnReplace");
+ this.btnReplace.Name = "btnReplace";
+ this.btnReplace.UseVisualStyleBackColor = true;
+ this.btnReplace.Click += new System.EventHandler(this.btnReplace_Click);
+ //
+ // btnCancel
+ //
+ resources.ApplyResources(this.btnCancel, "btnCancel");
+ this.btnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
+ this.btnCancel.Name = "btnCancel";
+ this.btnCancel.UseVisualStyleBackColor = true;
+ this.btnCancel.Click += new System.EventHandler(this.btnCancel_Click);
+ //
+ // FindReplaceDialog
+ //
+ this.AcceptButton = this.btnReplace;
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
+ this.CancelButton = this.btnCancel;
+ resources.ApplyResources(this, "$this");
+ this.ControlBox = false;
+ this.Controls.Add(this.btnCancel);
+ this.Controls.Add(this.btnReplace);
+ this.Controls.Add(this.txtReplace);
+ this.Controls.Add(this.txtFind);
+ this.Controls.Add(this.label2);
+ this.Controls.Add(this.label1);
+ this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
+ this.Name = "FindReplaceDialog";
+ this.ResumeLayout(false);
+ this.PerformLayout();
+
+ }
+
+ #endregion
+
+ private System.Windows.Forms.Label label1;
+ private System.Windows.Forms.Label label2;
+ private System.Windows.Forms.TextBox txtFind;
+ private System.Windows.Forms.TextBox txtReplace;
+ private System.Windows.Forms.Button btnReplace;
+ private System.Windows.Forms.Button btnCancel;
+ }
+}
\ No newline at end of file
Added: trunk/Tools/Maestro/Maestro.Editors/Common/FindReplaceDialog.cs
===================================================================
--- trunk/Tools/Maestro/Maestro.Editors/Common/FindReplaceDialog.cs (rev 0)
+++ trunk/Tools/Maestro/Maestro.Editors/Common/FindReplaceDialog.cs 2011-04-12 11:24:26 UTC (rev 5695)
@@ -0,0 +1,79 @@
+#region Disclaimer / License
+// Copyright (C) 2011, Jackie Ng
+// http://trac.osgeo.org/mapguide/wiki/maestro, jumpinjackie at gmail.com
+//
+// This library is free software; you can redistribute it and/or
+// modify it under the terms of the GNU Lesser General Public
+// License as published by the Free Software Foundation; either
+// version 2.1 of the License, or (at your option) any later version.
+//
+// This library 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
+// Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public
+// License along with this library; if not, write to the Free Software
+// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+//
+#endregion
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Data;
+using System.Drawing;
+using System.Text;
+using System.Windows.Forms;
+
+namespace Maestro.Editors.Common
+{
+ /// <summary>
+ /// A generic dialog to prompt for a find and replace token
+ /// </summary>
+ public partial class FindReplaceDialog : Form
+ {
+ /// <summary>
+ /// Constructor
+ /// </summary>
+ public FindReplaceDialog()
+ {
+ InitializeComponent();
+ }
+
+ /// <summary>
+ /// Gets the token to search for
+ /// </summary>
+ public string FindToken
+ {
+ get { return txtFind.Text; }
+ }
+
+ /// <summary>
+ /// Gets the token to replace with
+ /// </summary>
+ public string ReplaceToken
+ {
+ get { return txtReplace.Text; }
+ }
+
+ private void btnCancel_Click(object sender, EventArgs e)
+ {
+ this.DialogResult = DialogResult.Cancel;
+ }
+
+ private void btnReplace_Click(object sender, EventArgs e)
+ {
+ this.DialogResult = DialogResult.OK;
+ }
+
+ private void txtFind_TextChanged(object sender, EventArgs e)
+ {
+ btnReplace.Enabled = (!string.IsNullOrEmpty(txtFind.Text)) && (txtFind.Text != txtReplace.Text);
+ }
+
+ private void txtReplace_TextChanged(object sender, EventArgs e)
+ {
+ btnReplace.Enabled = (!string.IsNullOrEmpty(txtFind.Text)) && (txtFind.Text != txtReplace.Text);
+ }
+ }
+}
Added: trunk/Tools/Maestro/Maestro.Editors/Common/FindReplaceDialog.resx
===================================================================
--- trunk/Tools/Maestro/Maestro.Editors/Common/FindReplaceDialog.resx (rev 0)
+++ trunk/Tools/Maestro/Maestro.Editors/Common/FindReplaceDialog.resx 2011-04-12 11:24:26 UTC (rev 5695)
@@ -0,0 +1,300 @@
+<?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>
+ <assembly alias="mscorlib" name="mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
+ <data name="label1.AutoSize" type="System.Boolean, mscorlib">
+ <value>True</value>
+ </data>
+ <assembly alias="System.Drawing" name="System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
+ <data name="label1.Location" type="System.Drawing.Point, System.Drawing">
+ <value>13, 13</value>
+ </data>
+ <data name="label1.Size" type="System.Drawing.Size, System.Drawing">
+ <value>61, 13</value>
+ </data>
+ <data name="label1.TabIndex" type="System.Int32, mscorlib">
+ <value>0</value>
+ </data>
+ <data name="label1.Text" xml:space="preserve">
+ <value>Find Token</value>
+ </data>
+ <data name=">>label1.Name" xml:space="preserve">
+ <value>label1</value>
+ </data>
+ <data name=">>label1.Type" xml:space="preserve">
+ <value>System.Windows.Forms.Label, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+ </data>
+ <data name=">>label1.Parent" xml:space="preserve">
+ <value>$this</value>
+ </data>
+ <data name=">>label1.ZOrder" xml:space="preserve">
+ <value>5</value>
+ </data>
+ <data name="label2.AutoSize" type="System.Boolean, mscorlib">
+ <value>True</value>
+ </data>
+ <data name="label2.Location" type="System.Drawing.Point, System.Drawing">
+ <value>13, 39</value>
+ </data>
+ <data name="label2.Size" type="System.Drawing.Size, System.Drawing">
+ <value>72, 13</value>
+ </data>
+ <data name="label2.TabIndex" type="System.Int32, mscorlib">
+ <value>1</value>
+ </data>
+ <data name="label2.Text" xml:space="preserve">
+ <value>Replace With</value>
+ </data>
+ <data name=">>label2.Name" xml:space="preserve">
+ <value>label2</value>
+ </data>
+ <data name=">>label2.Type" xml:space="preserve">
+ <value>System.Windows.Forms.Label, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+ </data>
+ <data name=">>label2.Parent" xml:space="preserve">
+ <value>$this</value>
+ </data>
+ <data name=">>label2.ZOrder" xml:space="preserve">
+ <value>4</value>
+ </data>
+ <assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
+ <data name="txtFind.Anchor" type="System.Windows.Forms.AnchorStyles, System.Windows.Forms">
+ <value>Top, Left, Right</value>
+ </data>
+ <data name="txtFind.Location" type="System.Drawing.Point, System.Drawing">
+ <value>117, 10</value>
+ </data>
+ <data name="txtFind.Size" type="System.Drawing.Size, System.Drawing">
+ <value>270, 20</value>
+ </data>
+ <data name="txtFind.TabIndex" type="System.Int32, mscorlib">
+ <value>2</value>
+ </data>
+ <data name=">>txtFind.Name" xml:space="preserve">
+ <value>txtFind</value>
+ </data>
+ <data name=">>txtFind.Type" xml:space="preserve">
+ <value>System.Windows.Forms.TextBox, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+ </data>
+ <data name=">>txtFind.Parent" xml:space="preserve">
+ <value>$this</value>
+ </data>
+ <data name=">>txtFind.ZOrder" xml:space="preserve">
+ <value>3</value>
+ </data>
+ <data name="txtReplace.Anchor" type="System.Windows.Forms.AnchorStyles, System.Windows.Forms">
+ <value>Top, Left, Right</value>
+ </data>
+ <data name="txtReplace.Location" type="System.Drawing.Point, System.Drawing">
+ <value>117, 36</value>
+ </data>
+ <data name="txtReplace.Size" type="System.Drawing.Size, System.Drawing">
+ <value>270, 20</value>
+ </data>
+ <data name="txtReplace.TabIndex" type="System.Int32, mscorlib">
+ <value>3</value>
+ </data>
+ <data name=">>txtReplace.Name" xml:space="preserve">
+ <value>txtReplace</value>
+ </data>
+ <data name=">>txtReplace.Type" xml:space="preserve">
+ <value>System.Windows.Forms.TextBox, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+ </data>
+ <data name=">>txtReplace.Parent" xml:space="preserve">
+ <value>$this</value>
+ </data>
+ <data name=">>txtReplace.ZOrder" xml:space="preserve">
+ <value>2</value>
+ </data>
+ <data name="btnReplace.Anchor" type="System.Windows.Forms.AnchorStyles, System.Windows.Forms">
+ <value>Bottom, Right</value>
+ </data>
+ <data name="btnReplace.Enabled" type="System.Boolean, mscorlib">
+ <value>False</value>
+ </data>
+ <data name="btnReplace.Location" type="System.Drawing.Point, System.Drawing">
+ <value>231, 68</value>
+ </data>
+ <data name="btnReplace.Size" type="System.Drawing.Size, System.Drawing">
+ <value>75, 23</value>
+ </data>
+ <data name="btnReplace.TabIndex" type="System.Int32, mscorlib">
+ <value>4</value>
+ </data>
+ <data name="btnReplace.Text" xml:space="preserve">
+ <value>Replace</value>
+ </data>
+ <data name=">>btnReplace.Name" xml:space="preserve">
+ <value>btnReplace</value>
+ </data>
+ <data name=">>btnReplace.Type" xml:space="preserve">
+ <value>System.Windows.Forms.Button, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+ </data>
+ <data name=">>btnReplace.Parent" xml:space="preserve">
+ <value>$this</value>
+ </data>
+ <data name=">>btnReplace.ZOrder" xml:space="preserve">
+ <value>1</value>
+ </data>
+ <data name="btnCancel.Anchor" type="System.Windows.Forms.AnchorStyles, System.Windows.Forms">
+ <value>Bottom, Right</value>
+ </data>
+ <data name="btnCancel.Location" type="System.Drawing.Point, System.Drawing">
+ <value>312, 68</value>
+ </data>
+ <data name="btnCancel.Size" type="System.Drawing.Size, System.Drawing">
+ <value>75, 23</value>
+ </data>
+ <data name="btnCancel.TabIndex" type="System.Int32, mscorlib">
+ <value>5</value>
+ </data>
+ <data name="btnCancel.Text" xml:space="preserve">
+ <value>Cancel</value>
+ </data>
+ <data name=">>btnCancel.Name" xml:space="preserve">
+ <value>btnCancel</value>
+ </data>
+ <data name=">>btnCancel.Type" xml:space="preserve">
+ <value>System.Windows.Forms.Button, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+ </data>
+ <data name=">>btnCancel.Parent" xml:space="preserve">
+ <value>$this</value>
+ </data>
+ <data name=">>btnCancel.ZOrder" xml:space="preserve">
+ <value>0</value>
+ </data>
+ <metadata name="$this.Localizable" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+ <value>True</value>
+ </metadata>
+ <data name="$this.ClientSize" type="System.Drawing.Size, System.Drawing">
+ <value>399, 103</value>
+ </data>
+ <data name="$this.StartPosition" type="System.Windows.Forms.FormStartPosition, System.Windows.Forms">
+ <value>CenterParent</value>
+ </data>
+ <data name="$this.Text" xml:space="preserve">
+ <value>Find and Replace</value>
+ </data>
+ <data name=">>$this.Name" xml:space="preserve">
+ <value>FindReplaceDialog</value>
+ </data>
+ <data name=">>$this.Type" xml:space="preserve">
+ <value>System.Windows.Forms.Form, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+ </data>
+</root>
\ No newline at end of file
Modified: trunk/Tools/Maestro/Maestro.Editors/Maestro.Editors.csproj
===================================================================
--- trunk/Tools/Maestro/Maestro.Editors/Maestro.Editors.csproj 2011-04-12 09:56:44 UTC (rev 5694)
+++ trunk/Tools/Maestro/Maestro.Editors/Maestro.Editors.csproj 2011-04-12 11:24:26 UTC (rev 5695)
@@ -74,6 +74,12 @@
<Compile Include="Common\ExpressionEditor.designer.cs">
<DependentUpon>ExpressionEditor.cs</DependentUpon>
</Compile>
+ <Compile Include="Common\FindReplaceDialog.cs">
+ <SubType>Form</SubType>
+ </Compile>
+ <Compile Include="Common\FindReplaceDialog.Designer.cs">
+ <DependentUpon>FindReplaceDialog.cs</DependentUpon>
+ </Compile>
<Compile Include="Common\GenericInputDialog.cs">
<SubType>Form</SubType>
</Compile>
@@ -952,6 +958,9 @@
<DependentUpon>ExpressionEditor.cs</DependentUpon>
<SubType>Designer</SubType>
</EmbeddedResource>
+ <EmbeddedResource Include="Common\FindReplaceDialog.resx">
+ <DependentUpon>FindReplaceDialog.cs</DependentUpon>
+ </EmbeddedResource>
<EmbeddedResource Include="Common\GenericInputDialog.resx">
<DependentUpon>GenericInputDialog.cs</DependentUpon>
</EmbeddedResource>
More information about the mapguide-commits
mailing list