diff --git a/docs/downloads/fnr.zip b/docs/downloads/fnr.zip index c9d7af2..3f7d113 100644 Binary files a/docs/downloads/fnr.zip and b/docs/downloads/fnr.zip differ diff --git a/src/.gitignore b/src/.gitignore new file mode 100644 index 0000000..a1b6b25 --- /dev/null +++ b/src/.gitignore @@ -0,0 +1,20 @@ +################################################################################ +# This .gitignore file was automatically created by Microsoft(R) Visual Studio. +################################################################################ + +/packages +/.vs +/EncodingTools/bin/Debug +/EncodingTools/obj/Debug +/EncodingTools/obj/Release +/FindAndReplace/bin/Debug +/FindAndReplace/obj +/FindAndReplace.App/obj/x86 +/FindAndReplace.App/bin/Debug +/FindAndReplace.Tests/obj +/FindAndReplace.Tests/bin/Debug +/FindAndReplace.Tests.CommandLine/obj +/FindAndReplace.Tests.CommandLine/bin/Debug +/EncodingTools/bin/Release +/FindAndReplace/bin/Release +/FindAndReplace.App/bin/Release diff --git a/src/FindAndReplace.App/MainForm.Designer.cs b/src/FindAndReplace.App/MainForm.Designer.cs index c95d852..d4e1a8c 100644 --- a/src/FindAndReplace.App/MainForm.Designer.cs +++ b/src/FindAndReplace.App/MainForm.Designer.cs @@ -32,648 +32,891 @@ private void InitializeComponent() { this.components = new System.ComponentModel.Container(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MainForm)); - this.label1 = new System.Windows.Forms.Label(); - this.label2 = new System.Windows.Forms.Label(); - this.txtReplace = new System.Windows.Forms.RichTextBox(); - this.btnReplace = new System.Windows.Forms.Button(); - this.label4 = new System.Windows.Forms.Label(); - this.txtDir = new System.Windows.Forms.TextBox(); - this.label5 = new System.Windows.Forms.Label(); - this.txtFileMask = new System.Windows.Forms.TextBox(); - this.btnFindOnly = new System.Windows.Forms.Button(); - this.chkIsCaseSensitive = new System.Windows.Forms.CheckBox(); - this.chkIncludeSubDirectories = new System.Windows.Forms.CheckBox(); - this.btnGenReplaceCommandLine = new System.Windows.Forms.Button(); - this.txtCommandLine = new System.Windows.Forms.TextBox(); - this.lblCommandLine = new System.Windows.Forms.Label(); - this.pnlCommandLine = new System.Windows.Forms.Panel(); - this.gvResults = new System.Windows.Forms.DataGridView(); - this.lblResults = new System.Windows.Forms.Label(); - this.progressBar = new System.Windows.Forms.ProgressBar(); - this.lblStatus = new System.Windows.Forms.Label(); - this.pnlGridResults = new System.Windows.Forms.Panel(); - this.btnCancel = new System.Windows.Forms.Button(); this.errorProvider1 = new System.Windows.Forms.ErrorProvider(this.components); - this.txtNoMatches = new System.Windows.Forms.Label(); - this.lblStats = new System.Windows.Forms.Label(); - this.chkIsRegEx = new System.Windows.Forms.CheckBox(); - this.txtMatchesPreview = new System.Windows.Forms.RichTextBox(); - this.label3 = new System.Windows.Forms.Label(); - this.txtExcludeFileMask = new System.Windows.Forms.TextBox(); - this.btnSelectDir = new System.Windows.Forms.Button(); + this.txtDir = new System.Windows.Forms.TextBox(); this.folderBrowserDialog1 = new System.Windows.Forms.FolderBrowserDialog(); - this.btnSwap = new System.Windows.Forms.Button(); this.toolTip_btnSwap = new System.Windows.Forms.ToolTip(this.components); - this.chkSkipBinaryFileDetection = new System.Windows.Forms.CheckBox(); - this.chkIncludeFilesWithoutMatches = new System.Windows.Forms.CheckBox(); + this.btnSwap = new System.Windows.Forms.Button(); this.toolTip_chkIncludeFilesWithoutMatches = new System.Windows.Forms.ToolTip(this.components); + this.chkIncludeFilesWithoutMatches = new System.Windows.Forms.CheckBox(); this.toolTip_chkSkipBinaryFileDetection = new System.Windows.Forms.ToolTip(this.components); - this.chkShowEncoding = new System.Windows.Forms.CheckBox(); + this.chkSkipBinaryFileDetection = new System.Windows.Forms.CheckBox(); this.toolTip_chkShowEncoding = new System.Windows.Forms.ToolTip(this.components); - this.txtFind = new System.Windows.Forms.RichTextBox(); - this.pnlFind = new System.Windows.Forms.Panel(); - this.pnlReplace = new System.Windows.Forms.Panel(); - this.chkUseEscapeChars = new System.Windows.Forms.CheckBox(); - this.lblEncoding = new System.Windows.Forms.Label(); - this.cmbEncoding = new System.Windows.Forms.ComboBox(); + this.chkShowEncoding = new System.Windows.Forms.CheckBox(); this.mnuMain = new System.Windows.Forms.MenuStrip(); this.helpToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.viewOnlineHelpToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.aboutToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.panel1 = new System.Windows.Forms.Panel(); + this.panel2 = new System.Windows.Forms.Panel(); + this.btnSelectDir = new System.Windows.Forms.Button(); + this.label4 = new System.Windows.Forms.Label(); this.txtExcludeDir = new System.Windows.Forms.TextBox(); this.label6 = new System.Windows.Forms.Label(); - this.label7 = new System.Windows.Forms.Label(); - this.linkLabel1 = new System.Windows.Forms.LinkLabel(); + this.chkIncludeSubDirectories = new System.Windows.Forms.CheckBox(); + this.lblStats = new System.Windows.Forms.Label(); + this.panel5 = new System.Windows.Forms.Panel(); + this.pnlReplace = new System.Windows.Forms.Panel(); + this.txtReplace = new System.Windows.Forms.RichTextBox(); + this.pnlFind = new System.Windows.Forms.Panel(); + this.txtFind = new System.Windows.Forms.RichTextBox(); + this.panel9 = new System.Windows.Forms.Panel(); + this.btnReplace = new System.Windows.Forms.Button(); + this.btnGenReplaceCommandLine = new System.Windows.Forms.Button(); + this.label2 = new System.Windows.Forms.Label(); + this.panel8 = new System.Windows.Forms.Panel(); + this.btnFindOnly = new System.Windows.Forms.Button(); + this.flowLayoutPanel1 = new System.Windows.Forms.FlowLayoutPanel(); + this.chkIsCaseSensitive = new System.Windows.Forms.CheckBox(); + this.chkIsRegEx = new System.Windows.Forms.CheckBox(); + this.chkKeepModifiedDate = new System.Windows.Forms.CheckBox(); + this.chkUseEscapeChars = new System.Windows.Forms.CheckBox(); + this.lblEncoding = new System.Windows.Forms.Label(); + this.cmbEncoding = new System.Windows.Forms.ComboBox(); + this.label1 = new System.Windows.Forms.Label(); + this.panel4 = new System.Windows.Forms.Panel(); + this.txtExcludeFileMask = new System.Windows.Forms.TextBox(); + this.label3 = new System.Windows.Forms.Label(); + this.txtFileMask = new System.Windows.Forms.TextBox(); + this.label5 = new System.Windows.Forms.Label(); + this.panel6 = new System.Windows.Forms.Panel(); + this.panel3 = new System.Windows.Forms.Panel(); + this.panel7 = new System.Windows.Forms.Panel(); + this.label9 = new System.Windows.Forms.Label(); + this.txtMatchesPreview = new System.Windows.Forms.RichTextBox(); + this.pnlGridResults = new System.Windows.Forms.Panel(); + this.lblResults = new System.Windows.Forms.Label(); + this.gvResults = new System.Windows.Forms.DataGridView(); + this.btnCancel = new System.Windows.Forms.Button(); + this.lblStatus = new System.Windows.Forms.Label(); + this.progressBar = new System.Windows.Forms.ProgressBar(); + this.pnlCommandLine = new System.Windows.Forms.Panel(); + this.lblCommandLine = new System.Windows.Forms.Label(); + this.txtCommandLine = new System.Windows.Forms.TextBox(); + this.txtNoMatches = new System.Windows.Forms.Label(); this.label8 = new System.Windows.Forms.Label(); this.pictureBox2 = new System.Windows.Forms.PictureBox(); + this.linkLabel1 = new System.Windows.Forms.LinkLabel(); + this.label7 = new System.Windows.Forms.Label(); this.pictureBox1 = new System.Windows.Forms.PictureBox(); - this.chkKeepModifiedDate = new System.Windows.Forms.CheckBox(); - this.pnlCommandLine.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.gvResults)).BeginInit(); - this.pnlGridResults.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.errorProvider1)).BeginInit(); - this.pnlFind.SuspendLayout(); - this.pnlReplace.SuspendLayout(); this.mnuMain.SuspendLayout(); + this.panel1.SuspendLayout(); + this.panel2.SuspendLayout(); + this.panel5.SuspendLayout(); + this.pnlReplace.SuspendLayout(); + this.pnlFind.SuspendLayout(); + this.panel9.SuspendLayout(); + this.panel8.SuspendLayout(); + this.flowLayoutPanel1.SuspendLayout(); + this.panel4.SuspendLayout(); + this.panel6.SuspendLayout(); + this.panel3.SuspendLayout(); + this.panel7.SuspendLayout(); + this.pnlGridResults.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.gvResults)).BeginInit(); + this.pnlCommandLine.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit(); this.SuspendLayout(); // - // label1 - // - this.label1.AutoSize = true; - this.label1.Location = new System.Drawing.Point(32, 106); - this.label1.Name = "label1"; - this.label1.Size = new System.Drawing.Size(30, 13); - this.label1.TabIndex = 8; - this.label1.Text = "Find:"; - // - // label2 - // - this.label2.AutoSize = true; - this.label2.Location = new System.Drawing.Point(12, 269); - this.label2.Name = "label2"; - this.label2.Size = new System.Drawing.Size(50, 13); - this.label2.TabIndex = 17; - this.label2.Text = "Replace:"; - // - // txtReplace - // - this.txtReplace.BorderStyle = System.Windows.Forms.BorderStyle.None; - this.txtReplace.CausesValidation = false; - this.txtReplace.DetectUrls = false; - this.txtReplace.Dock = System.Windows.Forms.DockStyle.Fill; - this.txtReplace.Location = new System.Drawing.Point(0, 0); - this.txtReplace.Name = "txtReplace"; - this.txtReplace.Size = new System.Drawing.Size(573, 83); - this.txtReplace.TabIndex = 1; - this.txtReplace.Text = ""; - this.txtReplace.KeyDown += new System.Windows.Forms.KeyEventHandler(this.txtReplace_KeyDown); - // - // btnReplace - // - this.btnReplace.Location = new System.Drawing.Point(583, 361); - this.btnReplace.Name = "btnReplace"; - this.btnReplace.Size = new System.Drawing.Size(75, 23); - this.btnReplace.TabIndex = 19; - this.btnReplace.Text = "Replace"; - this.btnReplace.UseVisualStyleBackColor = true; - this.btnReplace.Click += new System.EventHandler(this.btnReplace_Click); - // - // label4 + // errorProvider1 // - this.label4.AutoSize = true; - this.label4.Location = new System.Drawing.Point(39, 32); - this.label4.Name = "label4"; - this.label4.Size = new System.Drawing.Size(23, 13); - this.label4.TabIndex = 0; - this.label4.Text = "Dir:"; + this.errorProvider1.BlinkStyle = System.Windows.Forms.ErrorBlinkStyle.NeverBlink; + this.errorProvider1.ContainerControl = this; // // txtDir // + this.txtDir.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); this.errorProvider1.SetIconPadding(this.txtDir, 30); - this.txtDir.Location = new System.Drawing.Point(83, 32); + this.txtDir.Location = new System.Drawing.Point(79, 2); + this.txtDir.Margin = new System.Windows.Forms.Padding(0); + this.txtDir.MinimumSize = new System.Drawing.Size(539, 20); this.txtDir.Name = "txtDir"; - this.txtDir.Size = new System.Drawing.Size(548, 20); - this.txtDir.TabIndex = 1; + this.txtDir.Size = new System.Drawing.Size(547, 20); + this.txtDir.TabIndex = 0; this.txtDir.Validating += new System.ComponentModel.CancelEventHandler(this.txtDir_Validating); // - // label5 - // - this.label5.AutoSize = true; - this.label5.Location = new System.Drawing.Point(7, 80); - this.label5.Name = "label5"; - this.label5.Size = new System.Drawing.Size(55, 13); - this.label5.TabIndex = 4; - this.label5.Text = "File Mask:"; - // - // txtFileMask - // - this.txtFileMask.Location = new System.Drawing.Point(83, 77); - this.txtFileMask.Name = "txtFileMask"; - this.txtFileMask.Size = new System.Drawing.Size(232, 20); - this.txtFileMask.TabIndex = 5; - this.txtFileMask.Text = "*.*"; - this.txtFileMask.Validating += new System.ComponentModel.CancelEventHandler(this.txtFileMask_Validating); - // - // btnFindOnly - // - this.btnFindOnly.Location = new System.Drawing.Point(583, 196); - this.btnFindOnly.Name = "btnFindOnly"; - this.btnFindOnly.Size = new System.Drawing.Size(75, 23); - this.btnFindOnly.TabIndex = 16; - this.btnFindOnly.Text = "Find Only"; - this.btnFindOnly.UseVisualStyleBackColor = true; - this.btnFindOnly.Click += new System.EventHandler(this.btnFindOnly_Click); + // folderBrowserDialog1 // - // chkIsCaseSensitive + this.folderBrowserDialog1.Description = "Select folder with files to find and replace."; // - this.chkIsCaseSensitive.AutoSize = true; - this.chkIsCaseSensitive.Location = new System.Drawing.Point(83, 198); - this.chkIsCaseSensitive.Name = "chkIsCaseSensitive"; - this.chkIsCaseSensitive.Size = new System.Drawing.Size(94, 17); - this.chkIsCaseSensitive.TabIndex = 10; - this.chkIsCaseSensitive.Text = "Case sensitive"; - this.chkIsCaseSensitive.UseVisualStyleBackColor = true; + // btnSwap // - // chkIncludeSubDirectories + this.btnSwap.AccessibleDescription = ""; + this.btnSwap.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + | System.Windows.Forms.AnchorStyles.Right))); + this.btnSwap.CausesValidation = false; + this.btnSwap.Location = new System.Drawing.Point(657, 147); + this.btnSwap.MaximumSize = new System.Drawing.Size(33, 31); + this.btnSwap.Name = "btnSwap"; + this.btnSwap.Size = new System.Drawing.Size(33, 31); + this.btnSwap.TabIndex = 1; + this.btnSwap.Text = "↑ ↓"; + this.toolTip_btnSwap.SetToolTip(this.btnSwap, "Swap find text and replace text"); + this.btnSwap.UseVisualStyleBackColor = true; + this.btnSwap.Click += new System.EventHandler(this.btnSwap_Click); // - this.chkIncludeSubDirectories.AutoSize = true; - this.chkIncludeSubDirectories.Checked = true; - this.chkIncludeSubDirectories.CheckState = System.Windows.Forms.CheckState.Checked; - this.chkIncludeSubDirectories.Location = new System.Drawing.Point(83, 54); - this.chkIncludeSubDirectories.Name = "chkIncludeSubDirectories"; - this.chkIncludeSubDirectories.Size = new System.Drawing.Size(132, 17); - this.chkIncludeSubDirectories.TabIndex = 3; - this.chkIncludeSubDirectories.Text = "Include sub-directories"; - this.chkIncludeSubDirectories.UseVisualStyleBackColor = true; - this.chkIncludeSubDirectories.CheckedChanged += new System.EventHandler(this.chkIncludeSubDirectories_CheckedChanged); + // chkIncludeFilesWithoutMatches // - // btnGenReplaceCommandLine + this.chkIncludeFilesWithoutMatches.AutoSize = true; + this.chkIncludeFilesWithoutMatches.Location = new System.Drawing.Point(235, 26); + this.chkIncludeFilesWithoutMatches.Name = "chkIncludeFilesWithoutMatches"; + this.chkIncludeFilesWithoutMatches.Size = new System.Drawing.Size(162, 17); + this.chkIncludeFilesWithoutMatches.TabIndex = 5; + this.chkIncludeFilesWithoutMatches.Text = "Include files without matches"; + this.toolTip_chkIncludeFilesWithoutMatches.SetToolTip(this.chkIncludeFilesWithoutMatches, "Show files without matches in results."); + this.chkIncludeFilesWithoutMatches.UseVisualStyleBackColor = true; // - this.btnGenReplaceCommandLine.Location = new System.Drawing.Point(484, 388); - this.btnGenReplaceCommandLine.Name = "btnGenReplaceCommandLine"; - this.btnGenReplaceCommandLine.Size = new System.Drawing.Size(174, 23); - this.btnGenReplaceCommandLine.TabIndex = 20; - this.btnGenReplaceCommandLine.Text = "Gen Replace Command Line"; - this.btnGenReplaceCommandLine.UseVisualStyleBackColor = true; - this.btnGenReplaceCommandLine.Click += new System.EventHandler(this.btnGenReplaceCommandLine_Click); + // chkSkipBinaryFileDetection // - // txtCommandLine + this.chkSkipBinaryFileDetection.AutoSize = true; + this.chkSkipBinaryFileDetection.Location = new System.Drawing.Point(247, 3); + this.chkSkipBinaryFileDetection.Name = "chkSkipBinaryFileDetection"; + this.chkSkipBinaryFileDetection.Size = new System.Drawing.Size(141, 17); + this.chkSkipBinaryFileDetection.TabIndex = 2; + this.chkSkipBinaryFileDetection.Text = "Skip binary file detection"; + this.toolTip_chkSkipBinaryFileDetection.SetToolTip(this.chkSkipBinaryFileDetection, "Include binary files when searching for the string in \'Find\'."); + this.chkSkipBinaryFileDetection.UseVisualStyleBackColor = true; // - this.txtCommandLine.Location = new System.Drawing.Point(80, 11); - this.txtCommandLine.Multiline = true; - this.txtCommandLine.Name = "txtCommandLine"; - this.txtCommandLine.Size = new System.Drawing.Size(916, 74); - this.txtCommandLine.TabIndex = 15; - this.txtCommandLine.KeyDown += new System.Windows.Forms.KeyEventHandler(this.txtCommandLine_KeyDown); + // chkShowEncoding // - // lblCommandLine + this.chkShowEncoding.AutoSize = true; + this.chkShowEncoding.Location = new System.Drawing.Point(129, 26); + this.chkShowEncoding.Name = "chkShowEncoding"; + this.chkShowEncoding.Size = new System.Drawing.Size(100, 17); + this.chkShowEncoding.TabIndex = 4; + this.chkShowEncoding.Text = "Show encoding"; + this.toolTip_chkShowEncoding.SetToolTip(this.chkShowEncoding, "Indicate encoding detected for each file"); + this.chkShowEncoding.UseVisualStyleBackColor = true; // - this.lblCommandLine.AutoSize = true; - this.lblCommandLine.Location = new System.Drawing.Point(-1, 11); - this.lblCommandLine.Name = "lblCommandLine"; - this.lblCommandLine.Size = new System.Drawing.Size(80, 13); - this.lblCommandLine.TabIndex = 20; - this.lblCommandLine.Text = "Command Line:"; + // mnuMain // - // pnlCommandLine + this.mnuMain.BackColor = System.Drawing.SystemColors.Control; + this.mnuMain.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { + this.helpToolStripMenuItem}); + this.mnuMain.Location = new System.Drawing.Point(0, 0); + this.mnuMain.Name = "mnuMain"; + this.mnuMain.Size = new System.Drawing.Size(984, 24); + this.mnuMain.TabIndex = 5; + this.mnuMain.Text = "menuStrip1"; // - this.pnlCommandLine.Controls.Add(this.lblCommandLine); - this.pnlCommandLine.Controls.Add(this.txtCommandLine); - this.pnlCommandLine.Location = new System.Drawing.Point(3, 417); - this.pnlCommandLine.Name = "pnlCommandLine"; - this.pnlCommandLine.Size = new System.Drawing.Size(996, 100); - this.pnlCommandLine.TabIndex = 21; - this.pnlCommandLine.Visible = false; + // helpToolStripMenuItem // - // gvResults + this.helpToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { + this.viewOnlineHelpToolStripMenuItem, + this.aboutToolStripMenuItem}); + this.helpToolStripMenuItem.Name = "helpToolStripMenuItem"; + this.helpToolStripMenuItem.Size = new System.Drawing.Size(44, 20); + this.helpToolStripMenuItem.Text = "Help"; // - this.gvResults.AllowUserToAddRows = false; - this.gvResults.AllowUserToDeleteRows = false; - this.gvResults.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; - this.gvResults.Location = new System.Drawing.Point(73, 10); - this.gvResults.MultiSelect = false; - this.gvResults.Name = "gvResults"; - this.gvResults.ReadOnly = true; - this.gvResults.RowHeadersVisible = false; - this.gvResults.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; - this.gvResults.Size = new System.Drawing.Size(916, 129); - this.gvResults.TabIndex = 18; - this.gvResults.CellClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.gvResults_CellClick); - this.gvResults.CellDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.gvResults_CellDoubleClick); - this.gvResults.RowEnter += new System.Windows.Forms.DataGridViewCellEventHandler(this.gvResults_CellClick); + // viewOnlineHelpToolStripMenuItem // - // lblResults + this.viewOnlineHelpToolStripMenuItem.Name = "viewOnlineHelpToolStripMenuItem"; + this.viewOnlineHelpToolStripMenuItem.Size = new System.Drawing.Size(165, 22); + this.viewOnlineHelpToolStripMenuItem.Text = "View Online Help"; + this.viewOnlineHelpToolStripMenuItem.Click += new System.EventHandler(this.viewOnlineHelpToolStripMenuItem_Click_1); // - this.lblResults.AutoSize = true; - this.lblResults.Location = new System.Drawing.Point(17, 9); - this.lblResults.Name = "lblResults"; - this.lblResults.Size = new System.Drawing.Size(45, 13); - this.lblResults.TabIndex = 19; - this.lblResults.Text = "Results:"; + // aboutToolStripMenuItem // - // progressBar + this.aboutToolStripMenuItem.Name = "aboutToolStripMenuItem"; + this.aboutToolStripMenuItem.Size = new System.Drawing.Size(165, 22); + this.aboutToolStripMenuItem.Text = "About"; + this.aboutToolStripMenuItem.Click += new System.EventHandler(this.aboutToolStripMenuItem_Click_1); // - this.progressBar.Location = new System.Drawing.Point(77, 170); - this.progressBar.Name = "progressBar"; - this.progressBar.Size = new System.Drawing.Size(849, 23); - this.progressBar.TabIndex = 20; + // panel1 + // + this.panel1.Controls.Add(this.panel2); + this.panel1.Controls.Add(this.txtExcludeDir); + this.panel1.Controls.Add(this.label6); + this.panel1.Controls.Add(this.chkIncludeSubDirectories); + this.panel1.Dock = System.Windows.Forms.DockStyle.Top; + this.panel1.Location = new System.Drawing.Point(0, 24); + this.panel1.Name = "panel1"; + this.panel1.Size = new System.Drawing.Size(984, 50); + this.panel1.TabIndex = 38; + // + // panel2 + // + this.panel2.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.panel2.Controls.Add(this.btnSelectDir); + this.panel2.Controls.Add(this.txtDir); + this.panel2.Controls.Add(this.label4); + this.panel2.Location = new System.Drawing.Point(0, 0); + this.panel2.Margin = new System.Windows.Forms.Padding(0, 0, 5, 0); + this.panel2.Name = "panel2"; + this.panel2.Size = new System.Drawing.Size(651, 24); + this.panel2.TabIndex = 0; // - // lblStatus + // btnSelectDir // - this.lblStatus.AutoSize = true; - this.lblStatus.Location = new System.Drawing.Point(74, 154); - this.lblStatus.Name = "lblStatus"; - this.lblStatus.Size = new System.Drawing.Size(16, 13); - this.lblStatus.TabIndex = 21; - this.lblStatus.Text = "..."; + this.btnSelectDir.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + | System.Windows.Forms.AnchorStyles.Right))); + this.btnSelectDir.CausesValidation = false; + this.btnSelectDir.Location = new System.Drawing.Point(626, 1); + this.btnSelectDir.Margin = new System.Windows.Forms.Padding(0, 0, 5, 0); + this.btnSelectDir.MaximumSize = new System.Drawing.Size(25, 20); + this.btnSelectDir.MinimumSize = new System.Drawing.Size(25, 20); + this.btnSelectDir.Name = "btnSelectDir"; + this.btnSelectDir.Size = new System.Drawing.Size(25, 20); + this.btnSelectDir.TabIndex = 1; + this.btnSelectDir.Text = "..."; + this.btnSelectDir.UseVisualStyleBackColor = true; + this.btnSelectDir.Click += new System.EventHandler(this.btnSelectDir_Click); // - // pnlGridResults + // label4 // - this.pnlGridResults.Controls.Add(this.btnCancel); - this.pnlGridResults.Controls.Add(this.lblStatus); - this.pnlGridResults.Controls.Add(this.progressBar); - this.pnlGridResults.Controls.Add(this.lblResults); - this.pnlGridResults.Controls.Add(this.gvResults); - this.pnlGridResults.Location = new System.Drawing.Point(10, 418); - this.pnlGridResults.Name = "pnlGridResults"; - this.pnlGridResults.Size = new System.Drawing.Size(989, 196); - this.pnlGridResults.TabIndex = 22; - this.pnlGridResults.Visible = false; + this.label4.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.label4.AutoSize = true; + this.label4.Location = new System.Drawing.Point(8, 6); + this.label4.Name = "label4"; + this.label4.Size = new System.Drawing.Size(23, 13); + this.label4.TabIndex = 2; + this.label4.Text = "Dir:"; // - // btnCancel + // txtExcludeDir // - this.btnCancel.Location = new System.Drawing.Point(932, 170); - this.btnCancel.Name = "btnCancel"; - this.btnCancel.Size = new System.Drawing.Size(75, 23); - this.btnCancel.TabIndex = 26; - this.btnCancel.Text = "Cancel"; - this.btnCancel.UseVisualStyleBackColor = true; - this.btnCancel.Click += new System.EventHandler(this.btnCancel_Click); + this.txtExcludeDir.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.txtExcludeDir.Location = new System.Drawing.Point(394, 26); + this.txtExcludeDir.MinimumSize = new System.Drawing.Size(50, 20); + this.txtExcludeDir.Name = "txtExcludeDir"; + this.txtExcludeDir.Size = new System.Drawing.Size(257, 20); + this.txtExcludeDir.TabIndex = 2; // - // errorProvider1 + // label6 // - this.errorProvider1.BlinkStyle = System.Windows.Forms.ErrorBlinkStyle.NeverBlink; - this.errorProvider1.ContainerControl = this; + this.label6.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.label6.AutoSize = true; + this.label6.Location = new System.Drawing.Point(323, 29); + this.label6.Name = "label6"; + this.label6.Size = new System.Drawing.Size(64, 13); + this.label6.TabIndex = 36; + this.label6.Text = "Exclude Dir:"; // - // txtNoMatches + // chkIncludeSubDirectories // - this.txtNoMatches.AutoSize = true; - this.txtNoMatches.Location = new System.Drawing.Point(80, 398); - this.txtNoMatches.Name = "txtNoMatches"; - this.txtNoMatches.Size = new System.Drawing.Size(124, 13); - this.txtNoMatches.TabIndex = 21; - this.txtNoMatches.Text = " No matching files found."; - this.txtNoMatches.Visible = false; + this.chkIncludeSubDirectories.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.chkIncludeSubDirectories.AutoSize = true; + this.chkIncludeSubDirectories.Checked = true; + this.chkIncludeSubDirectories.CheckState = System.Windows.Forms.CheckState.Checked; + this.chkIncludeSubDirectories.Location = new System.Drawing.Point(79, 28); + this.chkIncludeSubDirectories.Name = "chkIncludeSubDirectories"; + this.chkIncludeSubDirectories.Size = new System.Drawing.Size(132, 17); + this.chkIncludeSubDirectories.TabIndex = 1; + this.chkIncludeSubDirectories.Text = "Include sub-directories"; + this.chkIncludeSubDirectories.UseVisualStyleBackColor = true; + this.chkIncludeSubDirectories.CheckedChanged += new System.EventHandler(this.chkIncludeSubDirectories_CheckedChanged); // // lblStats // + this.lblStats.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + | System.Windows.Forms.AnchorStyles.Right))); this.lblStats.AutoSize = true; - this.lblStats.Location = new System.Drawing.Point(697, 196); + this.lblStats.Location = new System.Drawing.Point(698, 8); this.lblStats.Name = "lblStats"; - this.lblStats.Size = new System.Drawing.Size(37, 13); - this.lblStats.TabIndex = 25; - this.lblStats.Text = "[Stats]"; + this.lblStats.Size = new System.Drawing.Size(0, 13); + this.lblStats.TabIndex = 51; + // + // panel5 + // + this.panel5.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.panel5.Controls.Add(this.pnlReplace); + this.panel5.Controls.Add(this.pnlFind); + this.panel5.Controls.Add(this.panel9); + this.panel5.Controls.Add(this.lblStats); + this.panel5.Controls.Add(this.label2); + this.panel5.Controls.Add(this.btnSwap); + this.panel5.Controls.Add(this.panel8); + this.panel5.Controls.Add(this.flowLayoutPanel1); + this.panel5.Controls.Add(this.label1); + this.panel5.Location = new System.Drawing.Point(0, 40); + this.panel5.MaximumSize = new System.Drawing.Size(0, 500); + this.panel5.MinimumSize = new System.Drawing.Size(971, 386); + this.panel5.Name = "panel5"; + this.panel5.Size = new System.Drawing.Size(971, 500); + this.panel5.TabIndex = 2; // - // chkIsRegEx + // pnlReplace // - this.chkIsRegEx.AutoSize = true; - this.chkIsRegEx.Location = new System.Drawing.Point(193, 198); - this.chkIsRegEx.Name = "chkIsRegEx"; - this.chkIsRegEx.Size = new System.Drawing.Size(138, 17); - this.chkIsRegEx.TabIndex = 11; - this.chkIsRegEx.Text = "Use regular expressions"; - this.chkIsRegEx.UseVisualStyleBackColor = true; + this.pnlReplace.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.pnlReplace.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.pnlReplace.Controls.Add(this.txtReplace); + this.pnlReplace.Location = new System.Drawing.Point(79, 211); + this.pnlReplace.Name = "pnlReplace"; + this.pnlReplace.Size = new System.Drawing.Size(572, 107); + this.pnlReplace.TabIndex = 8; + this.pnlReplace.Validating += new System.ComponentModel.CancelEventHandler(this.pnlReplace_Validating); // - // txtMatchesPreview + // txtReplace // - this.txtMatchesPreview.BackColor = System.Drawing.SystemColors.Info; - this.txtMatchesPreview.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.txtMatchesPreview.DetectUrls = false; - this.txtMatchesPreview.Location = new System.Drawing.Point(82, 628); - this.txtMatchesPreview.Name = "txtMatchesPreview"; - this.txtMatchesPreview.ReadOnly = true; - this.txtMatchesPreview.Size = new System.Drawing.Size(930, 166); - this.txtMatchesPreview.TabIndex = 24; - this.txtMatchesPreview.Text = ""; - this.txtMatchesPreview.Visible = false; + this.txtReplace.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.txtReplace.BorderStyle = System.Windows.Forms.BorderStyle.None; + this.txtReplace.CausesValidation = false; + this.txtReplace.DetectUrls = false; + this.txtReplace.Location = new System.Drawing.Point(0, 2); + this.txtReplace.Name = "txtReplace"; + this.txtReplace.Size = new System.Drawing.Size(570, 101); + this.txtReplace.TabIndex = 0; + this.txtReplace.Text = ""; + this.txtReplace.KeyDown += new System.Windows.Forms.KeyEventHandler(this.txtReplace_KeyDown); + this.txtReplace.Validating += new System.ComponentModel.CancelEventHandler(this.pnlReplace_Validating); // - // label3 + // pnlFind // - this.label3.AutoSize = true; - this.label3.Location = new System.Drawing.Point(330, 80); - this.label3.Name = "label3"; - this.label3.Size = new System.Drawing.Size(77, 13); - this.label3.TabIndex = 6; - this.label3.Text = "Exclude Mask:"; + this.pnlFind.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.pnlFind.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.pnlFind.Controls.Add(this.txtFind); + this.pnlFind.Location = new System.Drawing.Point(79, 8); + this.pnlFind.Name = "pnlFind"; + this.pnlFind.Size = new System.Drawing.Size(576, 99); + this.pnlFind.TabIndex = 72; + this.pnlFind.Validating += new System.ComponentModel.CancelEventHandler(this.pnlFind_Validating); // - // txtExcludeFileMask + // txtFind // - this.txtExcludeFileMask.Location = new System.Drawing.Point(408, 77); - this.txtExcludeFileMask.Name = "txtExcludeFileMask"; - this.txtExcludeFileMask.Size = new System.Drawing.Size(250, 20); - this.txtExcludeFileMask.TabIndex = 7; - this.txtExcludeFileMask.Text = "*.dll, *.exe"; + this.txtFind.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.txtFind.BorderStyle = System.Windows.Forms.BorderStyle.None; + this.txtFind.DetectUrls = false; + this.txtFind.Location = new System.Drawing.Point(0, 0); + this.txtFind.Name = "txtFind"; + this.txtFind.Size = new System.Drawing.Size(572, 97); + this.txtFind.TabIndex = 0; + this.txtFind.Text = ""; + this.txtFind.WordWrap = false; + this.txtFind.KeyDown += new System.Windows.Forms.KeyEventHandler(this.txtFind_KeyDown); // - // btnSelectDir + // panel9 // - this.btnSelectDir.CausesValidation = false; - this.btnSelectDir.Location = new System.Drawing.Point(634, 30); - this.btnSelectDir.Margin = new System.Windows.Forms.Padding(0); - this.btnSelectDir.Name = "btnSelectDir"; - this.btnSelectDir.Size = new System.Drawing.Size(24, 23); - this.btnSelectDir.TabIndex = 2; - this.btnSelectDir.Text = "..."; - this.btnSelectDir.UseVisualStyleBackColor = true; - this.btnSelectDir.Click += new System.EventHandler(this.btnSelectDir_Click); + this.panel9.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.panel9.Controls.Add(this.btnReplace); + this.panel9.Controls.Add(this.btnGenReplaceCommandLine); + this.panel9.Location = new System.Drawing.Point(79, 321); + this.panel9.Name = "panel9"; + this.panel9.Size = new System.Drawing.Size(572, 58); + this.panel9.TabIndex = 1; // - // folderBrowserDialog1 + // btnReplace // - this.folderBrowserDialog1.Description = "Select folder with files to find and replace."; + this.btnReplace.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + | System.Windows.Forms.AnchorStyles.Right))); + this.btnReplace.Location = new System.Drawing.Point(497, 0); + this.btnReplace.Name = "btnReplace"; + this.btnReplace.Size = new System.Drawing.Size(75, 25); + this.btnReplace.TabIndex = 0; + this.btnReplace.Text = "Replace"; + this.btnReplace.UseVisualStyleBackColor = true; + this.btnReplace.Click += new System.EventHandler(this.btnReplace_Click); // - // btnSwap + // btnGenReplaceCommandLine // - this.btnSwap.AccessibleDescription = ""; - this.btnSwap.CausesValidation = false; - this.btnSwap.Location = new System.Drawing.Point(521, 216); - this.btnSwap.Name = "btnSwap"; - this.btnSwap.Size = new System.Drawing.Size(32, 23); - this.btnSwap.TabIndex = 15; - this.btnSwap.Text = "↑ ↓"; - this.toolTip_btnSwap.SetToolTip(this.btnSwap, "Swap find text and replace text"); - this.btnSwap.UseVisualStyleBackColor = true; - this.btnSwap.Click += new System.EventHandler(this.btnSwap_Click); + this.btnGenReplaceCommandLine.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + | System.Windows.Forms.AnchorStyles.Right))); + this.btnGenReplaceCommandLine.Location = new System.Drawing.Point(398, 30); + this.btnGenReplaceCommandLine.Name = "btnGenReplaceCommandLine"; + this.btnGenReplaceCommandLine.Size = new System.Drawing.Size(174, 25); + this.btnGenReplaceCommandLine.TabIndex = 1; + this.btnGenReplaceCommandLine.Text = "Gen Replace Command Line"; + this.btnGenReplaceCommandLine.UseVisualStyleBackColor = true; + this.btnGenReplaceCommandLine.Click += new System.EventHandler(this.btnGenReplaceCommandLine_Click); // - // chkSkipBinaryFileDetection + // label2 // - this.chkSkipBinaryFileDetection.AutoSize = true; - this.chkSkipBinaryFileDetection.Location = new System.Drawing.Point(361, 198); - this.chkSkipBinaryFileDetection.Name = "chkSkipBinaryFileDetection"; - this.chkSkipBinaryFileDetection.Size = new System.Drawing.Size(141, 17); - this.chkSkipBinaryFileDetection.TabIndex = 12; - this.chkSkipBinaryFileDetection.Text = "Skip binary file detection"; - this.toolTip_chkSkipBinaryFileDetection.SetToolTip(this.chkSkipBinaryFileDetection, "Include binary files when searching for the string in \'Find\'."); - this.chkSkipBinaryFileDetection.UseVisualStyleBackColor = true; + this.label2.AutoSize = true; + this.label2.Location = new System.Drawing.Point(0, 211); + this.label2.Name = "label2"; + this.label2.Size = new System.Drawing.Size(50, 13); + this.label2.TabIndex = 0; + this.label2.Text = "Replace:"; // - // chkIncludeFilesWithoutMatches + // panel8 + // + this.panel8.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + | System.Windows.Forms.AnchorStyles.Right))); + this.panel8.Controls.Add(this.btnFindOnly); + this.panel8.Location = new System.Drawing.Point(557, 112); + this.panel8.Name = "panel8"; + this.panel8.Size = new System.Drawing.Size(94, 210); + this.panel8.TabIndex = 8; // - this.chkIncludeFilesWithoutMatches.AutoSize = true; - this.chkIncludeFilesWithoutMatches.Location = new System.Drawing.Point(193, 221); - this.chkIncludeFilesWithoutMatches.Name = "chkIncludeFilesWithoutMatches"; - this.chkIncludeFilesWithoutMatches.Size = new System.Drawing.Size(162, 17); - this.chkIncludeFilesWithoutMatches.TabIndex = 14; - this.chkIncludeFilesWithoutMatches.Text = "Include files without matches"; - this.toolTip_chkIncludeFilesWithoutMatches.SetToolTip(this.chkIncludeFilesWithoutMatches, "Show files without matches in results."); - this.chkIncludeFilesWithoutMatches.UseVisualStyleBackColor = true; + // btnFindOnly // - // chkShowEncoding + this.btnFindOnly.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + | System.Windows.Forms.AnchorStyles.Right))); + this.btnFindOnly.Location = new System.Drawing.Point(23, 3); + this.btnFindOnly.MaximumSize = new System.Drawing.Size(71, 29); + this.btnFindOnly.Name = "btnFindOnly"; + this.btnFindOnly.Size = new System.Drawing.Size(71, 29); + this.btnFindOnly.TabIndex = 0; + this.btnFindOnly.Text = "Find Only"; + this.btnFindOnly.UseVisualStyleBackColor = true; + this.btnFindOnly.Click += new System.EventHandler(this.btnFindOnly_Click); // - this.chkShowEncoding.AutoSize = true; - this.chkShowEncoding.Location = new System.Drawing.Point(83, 221); - this.chkShowEncoding.Name = "chkShowEncoding"; - this.chkShowEncoding.Size = new System.Drawing.Size(100, 17); - this.chkShowEncoding.TabIndex = 13; - this.chkShowEncoding.TabStop = false; - this.chkShowEncoding.Text = "Show encoding"; - this.toolTip_chkShowEncoding.SetToolTip(this.chkShowEncoding, "Indicate encoding detected for each file"); - this.chkShowEncoding.UseVisualStyleBackColor = true; + // flowLayoutPanel1 + // + this.flowLayoutPanel1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.flowLayoutPanel1.Controls.Add(this.chkIsCaseSensitive); + this.flowLayoutPanel1.Controls.Add(this.chkIsRegEx); + this.flowLayoutPanel1.Controls.Add(this.chkSkipBinaryFileDetection); + this.flowLayoutPanel1.Controls.Add(this.chkKeepModifiedDate); + this.flowLayoutPanel1.Controls.Add(this.chkShowEncoding); + this.flowLayoutPanel1.Controls.Add(this.chkIncludeFilesWithoutMatches); + this.flowLayoutPanel1.Controls.Add(this.chkUseEscapeChars); + this.flowLayoutPanel1.Controls.Add(this.lblEncoding); + this.flowLayoutPanel1.Controls.Add(this.cmbEncoding); + this.flowLayoutPanel1.Location = new System.Drawing.Point(79, 110); + this.flowLayoutPanel1.Name = "flowLayoutPanel1"; + this.flowLayoutPanel1.Size = new System.Drawing.Size(413, 96); + this.flowLayoutPanel1.TabIndex = 8; // - // txtFind + // chkIsCaseSensitive // - this.txtFind.BorderStyle = System.Windows.Forms.BorderStyle.None; - this.txtFind.DetectUrls = false; - this.txtFind.Dock = System.Windows.Forms.DockStyle.Fill; - this.txtFind.Location = new System.Drawing.Point(0, 0); - this.txtFind.Name = "txtFind"; - this.txtFind.Size = new System.Drawing.Size(573, 83); - this.txtFind.TabIndex = 1; - this.txtFind.Text = ""; - this.txtFind.WordWrap = false; - this.txtFind.KeyDown += new System.Windows.Forms.KeyEventHandler(this.txtFind_KeyDown); + this.chkIsCaseSensitive.AutoSize = true; + this.chkIsCaseSensitive.Location = new System.Drawing.Point(3, 3); + this.chkIsCaseSensitive.Name = "chkIsCaseSensitive"; + this.chkIsCaseSensitive.Size = new System.Drawing.Size(94, 17); + this.chkIsCaseSensitive.TabIndex = 0; + this.chkIsCaseSensitive.Text = "Case sensitive"; + this.chkIsCaseSensitive.UseVisualStyleBackColor = true; // - // pnlFind + // chkIsRegEx // - this.pnlFind.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.pnlFind.Controls.Add(this.txtFind); - this.pnlFind.Location = new System.Drawing.Point(83, 103); - this.pnlFind.Name = "pnlFind"; - this.pnlFind.Size = new System.Drawing.Size(575, 85); - this.pnlFind.TabIndex = 9; - this.pnlFind.Validating += new System.ComponentModel.CancelEventHandler(this.pnlFind_Validating); + this.chkIsRegEx.AutoSize = true; + this.chkIsRegEx.Location = new System.Drawing.Point(103, 3); + this.chkIsRegEx.Name = "chkIsRegEx"; + this.chkIsRegEx.Size = new System.Drawing.Size(138, 17); + this.chkIsRegEx.TabIndex = 1; + this.chkIsRegEx.Text = "Use regular expressions"; + this.chkIsRegEx.UseVisualStyleBackColor = true; // - // pnlReplace + // chkKeepModifiedDate // - this.pnlReplace.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.pnlReplace.Controls.Add(this.txtReplace); - this.pnlReplace.Location = new System.Drawing.Point(83, 269); - this.pnlReplace.Name = "pnlReplace"; - this.pnlReplace.Size = new System.Drawing.Size(575, 85); - this.pnlReplace.TabIndex = 18; - this.pnlReplace.Validating += new System.ComponentModel.CancelEventHandler(this.pnlReplace_Validating); + this.chkKeepModifiedDate.AutoSize = true; + this.chkKeepModifiedDate.Location = new System.Drawing.Point(3, 26); + this.chkKeepModifiedDate.Name = "chkKeepModifiedDate"; + this.chkKeepModifiedDate.Size = new System.Drawing.Size(120, 17); + this.chkKeepModifiedDate.TabIndex = 3; + this.chkKeepModifiedDate.Text = "Keep Modified Date"; + this.chkKeepModifiedDate.UseVisualStyleBackColor = true; // // chkUseEscapeChars // this.chkUseEscapeChars.AutoSize = true; - this.chkUseEscapeChars.Location = new System.Drawing.Point(361, 221); + this.flowLayoutPanel1.SetFlowBreak(this.chkUseEscapeChars, true); + this.chkUseEscapeChars.Location = new System.Drawing.Point(3, 49); this.chkUseEscapeChars.Name = "chkUseEscapeChars"; this.chkUseEscapeChars.Size = new System.Drawing.Size(112, 17); - this.chkUseEscapeChars.TabIndex = 26; + this.chkUseEscapeChars.TabIndex = 6; this.chkUseEscapeChars.Text = "Use escape chars"; this.chkUseEscapeChars.UseVisualStyleBackColor = true; // // lblEncoding // this.lblEncoding.AutoSize = true; - this.lblEncoding.Location = new System.Drawing.Point(80, 245); + this.lblEncoding.Location = new System.Drawing.Point(3, 69); this.lblEncoding.Name = "lblEncoding"; this.lblEncoding.Size = new System.Drawing.Size(55, 13); - this.lblEncoding.TabIndex = 27; + this.lblEncoding.TabIndex = 7; this.lblEncoding.Text = "Encoding:"; // // cmbEncoding // this.cmbEncoding.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.cmbEncoding.FormattingEnabled = true; - this.cmbEncoding.Location = new System.Drawing.Point(140, 242); + this.cmbEncoding.Location = new System.Drawing.Point(64, 72); this.cmbEncoding.Name = "cmbEncoding"; this.cmbEncoding.Size = new System.Drawing.Size(121, 21); - this.cmbEncoding.TabIndex = 28; + this.cmbEncoding.TabIndex = 8; // - // mnuMain + // label1 // - this.mnuMain.BackColor = System.Drawing.SystemColors.Control; - this.mnuMain.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { - this.helpToolStripMenuItem}); - this.mnuMain.Location = new System.Drawing.Point(0, 0); - this.mnuMain.Name = "mnuMain"; - this.mnuMain.Size = new System.Drawing.Size(677, 24); - this.mnuMain.TabIndex = 29; - this.mnuMain.Text = "menuStrip1"; + this.label1.AutoSize = true; + this.label1.Location = new System.Drawing.Point(3, 7); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(30, 13); + this.label1.TabIndex = 1; + this.label1.Text = "Find:"; // - // helpToolStripMenuItem + // panel4 // - this.helpToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { - this.viewOnlineHelpToolStripMenuItem, - this.aboutToolStripMenuItem}); - this.helpToolStripMenuItem.Name = "helpToolStripMenuItem"; - this.helpToolStripMenuItem.Size = new System.Drawing.Size(44, 20); - this.helpToolStripMenuItem.Text = "Help"; + this.panel4.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.panel4.Controls.Add(this.txtExcludeFileMask); + this.panel4.Controls.Add(this.label3); + this.panel4.Location = new System.Drawing.Point(329, 2); + this.panel4.Name = "panel4"; + this.panel4.Size = new System.Drawing.Size(322, 34); + this.panel4.TabIndex = 0; // - // viewOnlineHelpToolStripMenuItem + // txtExcludeFileMask // - this.viewOnlineHelpToolStripMenuItem.Name = "viewOnlineHelpToolStripMenuItem"; - this.viewOnlineHelpToolStripMenuItem.Size = new System.Drawing.Size(165, 22); - this.viewOnlineHelpToolStripMenuItem.Text = "View Online Help"; - this.viewOnlineHelpToolStripMenuItem.Click += new System.EventHandler(this.viewOnlineHelpToolStripMenuItem_Click_1); + this.txtExcludeFileMask.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.txtExcludeFileMask.Location = new System.Drawing.Point(73, 3); + this.txtExcludeFileMask.MinimumSize = new System.Drawing.Size(225, 20); + this.txtExcludeFileMask.Name = "txtExcludeFileMask"; + this.txtExcludeFileMask.Size = new System.Drawing.Size(249, 20); + this.txtExcludeFileMask.TabIndex = 1; + this.txtExcludeFileMask.Text = "*.dll, *.exe"; // - // aboutToolStripMenuItem + // label3 // - this.aboutToolStripMenuItem.Name = "aboutToolStripMenuItem"; - this.aboutToolStripMenuItem.Size = new System.Drawing.Size(165, 22); - this.aboutToolStripMenuItem.Text = "About"; - this.aboutToolStripMenuItem.Click += new System.EventHandler(this.aboutToolStripMenuItem_Click_1); + this.label3.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.label3.AutoSize = true; + this.label3.Location = new System.Drawing.Point(0, 6); + this.label3.Name = "label3"; + this.label3.Size = new System.Drawing.Size(77, 13); + this.label3.TabIndex = 1; + this.label3.Text = "Exclude Mask:"; // - // txtExcludeDir + // txtFileMask // - this.txtExcludeDir.Location = new System.Drawing.Point(408, 56); - this.txtExcludeDir.Name = "txtExcludeDir"; - this.txtExcludeDir.Size = new System.Drawing.Size(250, 20); - this.txtExcludeDir.TabIndex = 31; + this.txtFileMask.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.txtFileMask.Location = new System.Drawing.Point(79, 3); + this.txtFileMask.MinimumSize = new System.Drawing.Size(237, 20); + this.txtFileMask.Name = "txtFileMask"; + this.txtFileMask.Size = new System.Drawing.Size(245, 20); + this.txtFileMask.TabIndex = 0; + this.txtFileMask.Text = "*.*"; + this.txtFileMask.Validating += new System.ComponentModel.CancelEventHandler(this.txtFileMask_Validating); // - // label6 + // label5 // - this.label6.AutoSize = true; - this.label6.Location = new System.Drawing.Point(330, 59); - this.label6.Name = "label6"; - this.label6.Size = new System.Drawing.Size(64, 13); - this.label6.TabIndex = 30; - this.label6.Text = "Exclude Dir:"; + this.label5.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.label5.AutoSize = true; + this.label5.Location = new System.Drawing.Point(3, 6); + this.label5.Name = "label5"; + this.label5.Size = new System.Drawing.Size(55, 13); + this.label5.TabIndex = 1; + this.label5.Text = "File Mask:"; // - // label7 + // panel6 + // + this.panel6.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.panel6.Controls.Add(this.txtFileMask); + this.panel6.Controls.Add(this.label5); + this.panel6.Location = new System.Drawing.Point(0, 2); + this.panel6.Name = "panel6"; + this.panel6.Size = new System.Drawing.Size(330, 34); + this.panel6.TabIndex = 0; + // + // panel3 + // + this.panel3.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.panel3.Controls.Add(this.panel7); + this.panel3.Controls.Add(this.panel6); + this.panel3.Controls.Add(this.panel4); + this.panel3.Controls.Add(this.panel5); + this.panel3.Location = new System.Drawing.Point(0, 74); + this.panel3.Name = "panel3"; + this.panel3.Size = new System.Drawing.Size(982, 851); + this.panel3.TabIndex = 42; + // + // panel7 + // + this.panel7.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.panel7.Controls.Add(this.label9); + this.panel7.Controls.Add(this.txtMatchesPreview); + this.panel7.Controls.Add(this.pnlGridResults); + this.panel7.Controls.Add(this.pnlCommandLine); + this.panel7.Location = new System.Drawing.Point(-2, 428); + this.panel7.Name = "panel7"; + this.panel7.Size = new System.Drawing.Size(982, 398); + this.panel7.TabIndex = 40; + // + // label9 + // + this.label9.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); + this.label9.AutoSize = true; + this.label9.Location = new System.Drawing.Point(4, 205); + this.label9.Name = "label9"; + this.label9.Size = new System.Drawing.Size(48, 13); + this.label9.TabIndex = 58; + this.label9.Text = "Preview:"; // - this.label7.AutoSize = true; - this.label7.Location = new System.Drawing.Point(815, 20); - this.label7.Name = "label7"; - this.label7.Size = new System.Drawing.Size(74, 13); - this.label7.TabIndex = 33; - this.label7.Text = "Supported By:"; + // txtMatchesPreview // - // linkLabel1 + this.txtMatchesPreview.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.txtMatchesPreview.BackColor = System.Drawing.SystemColors.Info; + this.txtMatchesPreview.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.txtMatchesPreview.DetectUrls = false; + this.txtMatchesPreview.Enabled = false; + this.txtMatchesPreview.Location = new System.Drawing.Point(53, 205); + this.txtMatchesPreview.Name = "txtMatchesPreview"; + this.txtMatchesPreview.ReadOnly = true; + this.txtMatchesPreview.Size = new System.Drawing.Size(925, 190); + this.txtMatchesPreview.TabIndex = 57; + this.txtMatchesPreview.Text = ""; // - this.linkLabel1.AutoSize = true; - this.linkLabel1.Location = new System.Drawing.Point(815, 40); - this.linkLabel1.Name = "linkLabel1"; - this.linkLabel1.Size = new System.Drawing.Size(69, 13); - this.linkLabel1.TabIndex = 34; - this.linkLabel1.TabStop = true; - this.linkLabel1.Text = "ZZZ Projects"; - this.linkLabel1.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkLabel1_LinkClicked); + // pnlGridResults + // + this.pnlGridResults.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.pnlGridResults.Controls.Add(this.lblResults); + this.pnlGridResults.Controls.Add(this.gvResults); + this.pnlGridResults.Controls.Add(this.btnCancel); + this.pnlGridResults.Controls.Add(this.lblStatus); + this.pnlGridResults.Controls.Add(this.progressBar); + this.pnlGridResults.Location = new System.Drawing.Point(5, 5); + this.pnlGridResults.Name = "pnlGridResults"; + this.pnlGridResults.Size = new System.Drawing.Size(976, 393); + this.pnlGridResults.TabIndex = 51; + // + // lblResults + // + this.lblResults.AutoSize = true; + this.lblResults.Location = new System.Drawing.Point(2, 4); + this.lblResults.Name = "lblResults"; + this.lblResults.Size = new System.Drawing.Size(45, 13); + this.lblResults.TabIndex = 52; + this.lblResults.Text = "Results:"; + // + // gvResults + // + this.gvResults.AllowUserToAddRows = false; + this.gvResults.AllowUserToDeleteRows = false; + this.gvResults.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.gvResults.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; + this.gvResults.Location = new System.Drawing.Point(49, 4); + this.gvResults.MultiSelect = false; + this.gvResults.Name = "gvResults"; + this.gvResults.ReadOnly = true; + this.gvResults.RowHeadersVisible = false; + this.gvResults.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; + this.gvResults.Size = new System.Drawing.Size(923, 151); + this.gvResults.TabIndex = 51; + this.gvResults.CellClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.gvResults_CellClick); + this.gvResults.CellDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.gvResults_CellDoubleClick); + this.gvResults.RowEnter += new System.Windows.Forms.DataGridViewCellEventHandler(this.gvResults_CellClick); + // + // btnCancel + // + this.btnCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); + this.btnCancel.Enabled = false; + this.btnCancel.Location = new System.Drawing.Point(897, 173); + this.btnCancel.Name = "btnCancel"; + this.btnCancel.Size = new System.Drawing.Size(75, 24); + this.btnCancel.TabIndex = 26; + this.btnCancel.Text = "Cancel"; + this.btnCancel.UseVisualStyleBackColor = true; + this.btnCancel.Click += new System.EventHandler(this.btnCancel_Click); + // + // lblStatus + // + this.lblStatus.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.lblStatus.AutoSize = true; + this.lblStatus.Location = new System.Drawing.Point(49, 158); + this.lblStatus.Name = "lblStatus"; + this.lblStatus.Size = new System.Drawing.Size(16, 13); + this.lblStatus.TabIndex = 21; + this.lblStatus.Text = "..."; + // + // progressBar + // + this.progressBar.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.progressBar.Location = new System.Drawing.Point(48, 173); + this.progressBar.Name = "progressBar"; + this.progressBar.Size = new System.Drawing.Size(842, 23); + this.progressBar.TabIndex = 20; + // + // pnlCommandLine + // + this.pnlCommandLine.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.pnlCommandLine.Controls.Add(this.lblCommandLine); + this.pnlCommandLine.Controls.Add(this.txtCommandLine); + this.pnlCommandLine.Controls.Add(this.txtNoMatches); + this.pnlCommandLine.Location = new System.Drawing.Point(0, 0); + this.pnlCommandLine.Name = "pnlCommandLine"; + this.pnlCommandLine.Size = new System.Drawing.Size(981, 200); + this.pnlCommandLine.TabIndex = 54; + this.pnlCommandLine.Visible = false; + // + // lblCommandLine + // + this.lblCommandLine.AutoSize = true; + this.lblCommandLine.Location = new System.Drawing.Point(2, 6); + this.lblCommandLine.Name = "lblCommandLine"; + this.lblCommandLine.Size = new System.Drawing.Size(80, 13); + this.lblCommandLine.TabIndex = 20; + this.lblCommandLine.Text = "Command Line:"; + // + // txtCommandLine + // + this.txtCommandLine.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.txtCommandLine.Location = new System.Drawing.Point(82, 6); + this.txtCommandLine.Multiline = true; + this.txtCommandLine.Name = "txtCommandLine"; + this.txtCommandLine.Size = new System.Drawing.Size(898, 112); + this.txtCommandLine.TabIndex = 0; + this.txtCommandLine.KeyDown += new System.Windows.Forms.KeyEventHandler(this.txtCommandLine_KeyDown); + // + // txtNoMatches + // + this.txtNoMatches.AutoSize = true; + this.txtNoMatches.Location = new System.Drawing.Point(3, 5); + this.txtNoMatches.Name = "txtNoMatches"; + this.txtNoMatches.Size = new System.Drawing.Size(124, 13); + this.txtNoMatches.TabIndex = 49; + this.txtNoMatches.Text = " No matching files found."; + this.txtNoMatches.Visible = false; // // label8 // + this.label8.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + | System.Windows.Forms.AnchorStyles.Right))); this.label8.AutoSize = true; - this.label8.Location = new System.Drawing.Point(815, 80); + this.label8.Location = new System.Drawing.Point(759, 26); + this.label8.MaximumSize = new System.Drawing.Size(184, 13); this.label8.Name = "label8"; this.label8.Size = new System.Drawing.Size(184, 13); - this.label8.TabIndex = 35; + this.label8.TabIndex = 87; this.label8.Text = "Help us to keep this library supported."; // // pictureBox2 // + this.pictureBox2.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + | System.Windows.Forms.AnchorStyles.Right))); this.pictureBox2.Image = global::FindAndReplace.App.Properties.Resources.donate2; - this.pictureBox2.Location = new System.Drawing.Point(811, 104); + this.pictureBox2.Location = new System.Drawing.Point(775, 45); + this.pictureBox2.MaximumSize = new System.Drawing.Size(125, 50); this.pictureBox2.Name = "pictureBox2"; this.pictureBox2.Size = new System.Drawing.Size(125, 50); this.pictureBox2.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; - this.pictureBox2.TabIndex = 36; + this.pictureBox2.TabIndex = 88; this.pictureBox2.TabStop = false; this.pictureBox2.Click += new System.EventHandler(this.pictureBox2_Click); // + // linkLabel1 + // + this.linkLabel1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + | System.Windows.Forms.AnchorStyles.Right))); + this.linkLabel1.AutoSize = true; + this.linkLabel1.Location = new System.Drawing.Point(844, 104); + this.linkLabel1.MaximumSize = new System.Drawing.Size(69, 13); + this.linkLabel1.Name = "linkLabel1"; + this.linkLabel1.Size = new System.Drawing.Size(69, 13); + this.linkLabel1.TabIndex = 85; + this.linkLabel1.TabStop = true; + this.linkLabel1.Text = "ZZZ Projects"; + this.linkLabel1.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkLabel1_LinkClicked); + // + // label7 + // + this.label7.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + | System.Windows.Forms.AnchorStyles.Right))); + this.label7.AutoSize = true; + this.label7.Location = new System.Drawing.Point(764, 104); + this.label7.MaximumSize = new System.Drawing.Size(74, 13); + this.label7.Name = "label7"; + this.label7.Size = new System.Drawing.Size(74, 13); + this.label7.TabIndex = 84; + this.label7.Text = "Supported By:"; + // // pictureBox1 // + this.pictureBox1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + | System.Windows.Forms.AnchorStyles.Right))); this.pictureBox1.ErrorImage = null; this.pictureBox1.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox1.Image"))); - this.pictureBox1.Location = new System.Drawing.Point(700, 20); + this.pictureBox1.Location = new System.Drawing.Point(659, 23); + this.pictureBox1.MaximumSize = new System.Drawing.Size(96, 96); + this.pictureBox1.MinimumSize = new System.Drawing.Size(96, 96); this.pictureBox1.Name = "pictureBox1"; this.pictureBox1.Size = new System.Drawing.Size(96, 96); this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; - this.pictureBox1.TabIndex = 32; + this.pictureBox1.TabIndex = 86; this.pictureBox1.TabStop = false; this.pictureBox1.Click += new System.EventHandler(this.pictureBox1_Click); // - // chkKeepModifiedDate - // - this.chkKeepModifiedDate.AutoSize = true; - this.chkKeepModifiedDate.Location = new System.Drawing.Point(361, 242); - this.chkKeepModifiedDate.Name = "chkKeepModifiedDate"; - this.chkKeepModifiedDate.Size = new System.Drawing.Size(120, 17); - this.chkKeepModifiedDate.TabIndex = 37; - this.chkKeepModifiedDate.Text = "Keep Modified Date"; - this.chkKeepModifiedDate.UseVisualStyleBackColor = true; - // // MainForm // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.AutoValidate = System.Windows.Forms.AutoValidate.Disable; - this.ClientSize = new System.Drawing.Size(677, 517); - this.Controls.Add(this.chkKeepModifiedDate); - this.Controls.Add(this.pictureBox2); + this.ClientSize = new System.Drawing.Size(984, 902); this.Controls.Add(this.label8); + this.Controls.Add(this.pictureBox2); this.Controls.Add(this.linkLabel1); this.Controls.Add(this.label7); this.Controls.Add(this.pictureBox1); - this.Controls.Add(this.txtExcludeDir); - this.Controls.Add(this.label6); - this.Controls.Add(this.cmbEncoding); - this.Controls.Add(this.lblEncoding); - this.Controls.Add(this.chkUseEscapeChars); - this.Controls.Add(this.chkShowEncoding); - this.Controls.Add(this.btnSwap); - this.Controls.Add(this.btnSelectDir); - this.Controls.Add(this.txtExcludeFileMask); - this.Controls.Add(this.label3); - this.Controls.Add(this.chkIncludeFilesWithoutMatches); - this.Controls.Add(this.chkIsRegEx); - this.Controls.Add(this.lblStats); - this.Controls.Add(this.txtMatchesPreview); - this.Controls.Add(this.txtNoMatches); - this.Controls.Add(this.pnlGridResults); - this.Controls.Add(this.btnGenReplaceCommandLine); - this.Controls.Add(this.chkIncludeSubDirectories); - this.Controls.Add(this.chkSkipBinaryFileDetection); - this.Controls.Add(this.chkIsCaseSensitive); - this.Controls.Add(this.btnFindOnly); - this.Controls.Add(this.txtFileMask); - this.Controls.Add(this.label5); - this.Controls.Add(this.txtDir); - this.Controls.Add(this.label4); - this.Controls.Add(this.btnReplace); - this.Controls.Add(this.label2); - this.Controls.Add(this.label1); - this.Controls.Add(this.pnlCommandLine); - this.Controls.Add(this.pnlFind); - this.Controls.Add(this.pnlReplace); + this.Controls.Add(this.panel3); + this.Controls.Add(this.panel1); this.Controls.Add(this.mnuMain); - this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.Fixed3D; this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); this.MainMenuStrip = this.mnuMain; + this.MinimumSize = new System.Drawing.Size(1000, 941); this.Name = "MainForm"; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.Text = "Find and Replace"; this.FormClosed += new System.Windows.Forms.FormClosedEventHandler(this.MainForm_FormClosed); this.Load += new System.EventHandler(this.MainForm_Load); - this.pnlCommandLine.ResumeLayout(false); - this.pnlCommandLine.PerformLayout(); - ((System.ComponentModel.ISupportInitialize)(this.gvResults)).EndInit(); - this.pnlGridResults.ResumeLayout(false); - this.pnlGridResults.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.errorProvider1)).EndInit(); - this.pnlFind.ResumeLayout(false); - this.pnlReplace.ResumeLayout(false); this.mnuMain.ResumeLayout(false); this.mnuMain.PerformLayout(); + this.panel1.ResumeLayout(false); + this.panel1.PerformLayout(); + this.panel2.ResumeLayout(false); + this.panel2.PerformLayout(); + this.panel5.ResumeLayout(false); + this.panel5.PerformLayout(); + this.pnlReplace.ResumeLayout(false); + this.pnlFind.ResumeLayout(false); + this.panel9.ResumeLayout(false); + this.panel8.ResumeLayout(false); + this.flowLayoutPanel1.ResumeLayout(false); + this.flowLayoutPanel1.PerformLayout(); + this.panel4.ResumeLayout(false); + this.panel4.PerformLayout(); + this.panel6.ResumeLayout(false); + this.panel6.PerformLayout(); + this.panel3.ResumeLayout(false); + this.panel7.ResumeLayout(false); + this.panel7.PerformLayout(); + this.pnlGridResults.ResumeLayout(false); + this.pnlGridResults.PerformLayout(); + ((System.ComponentModel.ISupportInitialize)(this.gvResults)).EndInit(); + this.pnlCommandLine.ResumeLayout(false); + this.pnlCommandLine.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit(); this.ResumeLayout(false); @@ -682,64 +925,73 @@ private void InitializeComponent() } #endregion - - private System.Windows.Forms.Label label1; - private System.Windows.Forms.Label label2; - private System.Windows.Forms.RichTextBox txtReplace; - private System.Windows.Forms.Button btnReplace; - private System.Windows.Forms.Label label4; - private System.Windows.Forms.TextBox txtDir; - private System.Windows.Forms.Label label5; - private System.Windows.Forms.TextBox txtFileMask; - private System.Windows.Forms.Button btnFindOnly; - private System.Windows.Forms.CheckBox chkIsCaseSensitive; - private System.Windows.Forms.CheckBox chkIncludeSubDirectories; - private System.Windows.Forms.Button btnGenReplaceCommandLine; - private System.Windows.Forms.TextBox txtCommandLine; - private System.Windows.Forms.Label lblCommandLine; - private System.Windows.Forms.Panel pnlCommandLine; - public System.Windows.Forms.DataGridView gvResults; - private System.Windows.Forms.Label lblResults; - public System.Windows.Forms.ProgressBar progressBar; - private System.Windows.Forms.Label lblStatus; - private System.Windows.Forms.Panel pnlGridResults; private System.Windows.Forms.ErrorProvider errorProvider1; - private System.Windows.Forms.Label txtNoMatches; - //public System.Windows.Forms.RichTextBox txtMatches; - private System.Windows.Forms.RichTextBox txtMatchesPreview; - private System.Windows.Forms.Label lblStats; - private System.Windows.Forms.CheckBox chkIsRegEx; - private System.Windows.Forms.Button btnCancel; - private System.Windows.Forms.TextBox txtExcludeFileMask; - private System.Windows.Forms.Label label3; - private System.Windows.Forms.Button btnSelectDir; private System.Windows.Forms.FolderBrowserDialog folderBrowserDialog1; - private System.Windows.Forms.Button btnSwap; private System.Windows.Forms.ToolTip toolTip_btnSwap; - private System.Windows.Forms.CheckBox chkSkipBinaryFileDetection; - private System.Windows.Forms.CheckBox chkIncludeFilesWithoutMatches; private System.Windows.Forms.ToolTip toolTip_chkIncludeFilesWithoutMatches; private System.Windows.Forms.ToolTip toolTip_chkSkipBinaryFileDetection; - private System.Windows.Forms.CheckBox chkShowEncoding; private System.Windows.Forms.ToolTip toolTip_chkShowEncoding; - private System.Windows.Forms.RichTextBox txtFind; - private System.Windows.Forms.Panel pnlFind; - private System.Windows.Forms.Panel pnlReplace; - private System.Windows.Forms.CheckBox chkUseEscapeChars; - private System.Windows.Forms.ComboBox cmbEncoding; - private System.Windows.Forms.Label lblEncoding; private System.Windows.Forms.MenuStrip mnuMain; private System.Windows.Forms.ToolStripMenuItem helpToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem viewOnlineHelpToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem aboutToolStripMenuItem; + private System.Windows.Forms.Panel panel1; private System.Windows.Forms.TextBox txtExcludeDir; private System.Windows.Forms.Label label6; - private System.Windows.Forms.PictureBox pictureBox1; - private System.Windows.Forms.Label label7; - private System.Windows.Forms.LinkLabel linkLabel1; - private System.Windows.Forms.PictureBox pictureBox2; - private System.Windows.Forms.Label label8; + private System.Windows.Forms.CheckBox chkIncludeSubDirectories; + private System.Windows.Forms.Panel panel2; + private System.Windows.Forms.Button btnSelectDir; + private System.Windows.Forms.TextBox txtDir; + private System.Windows.Forms.Label label4; + private System.Windows.Forms.Label lblStats; + private System.Windows.Forms.Panel panel3; + private System.Windows.Forms.Panel panel6; + private System.Windows.Forms.Panel panel4; + private System.Windows.Forms.TextBox txtFileMask; + private System.Windows.Forms.Label label5; + private System.Windows.Forms.Panel panel5; + private System.Windows.Forms.Label label1; + private System.Windows.Forms.Panel panel8; + private System.Windows.Forms.Button btnFindOnly; + private System.Windows.Forms.FlowLayoutPanel flowLayoutPanel1; + private System.Windows.Forms.CheckBox chkIsCaseSensitive; + private System.Windows.Forms.CheckBox chkIsRegEx; + private System.Windows.Forms.CheckBox chkSkipBinaryFileDetection; private System.Windows.Forms.CheckBox chkKeepModifiedDate; + private System.Windows.Forms.CheckBox chkShowEncoding; + private System.Windows.Forms.CheckBox chkIncludeFilesWithoutMatches; + private System.Windows.Forms.CheckBox chkUseEscapeChars; + private System.Windows.Forms.Label lblEncoding; + private System.Windows.Forms.ComboBox cmbEncoding; + private System.Windows.Forms.Button btnSwap; + private System.Windows.Forms.Label label2; + private System.Windows.Forms.Button btnGenReplaceCommandLine; + private System.Windows.Forms.Button btnReplace; + private System.Windows.Forms.Panel panel9; + private System.Windows.Forms.Panel pnlFind; + private System.Windows.Forms.RichTextBox txtFind; + private System.Windows.Forms.Panel pnlReplace; + private System.Windows.Forms.RichTextBox txtReplace; + private System.Windows.Forms.Panel panel7; + private System.Windows.Forms.Panel pnlGridResults; + private System.Windows.Forms.Button btnCancel; + private System.Windows.Forms.Label lblStatus; + public System.Windows.Forms.ProgressBar progressBar; + private System.Windows.Forms.Label txtNoMatches; + private System.Windows.Forms.Label lblResults; + public System.Windows.Forms.DataGridView gvResults; + private System.Windows.Forms.Panel pnlCommandLine; + private System.Windows.Forms.Label lblCommandLine; + private System.Windows.Forms.TextBox txtCommandLine; + private System.Windows.Forms.Label label8; + private System.Windows.Forms.PictureBox pictureBox2; + private System.Windows.Forms.LinkLabel linkLabel1; + private System.Windows.Forms.Label label7; + private System.Windows.Forms.PictureBox pictureBox1; + private System.Windows.Forms.TextBox txtExcludeFileMask; + private System.Windows.Forms.Label label3; + private System.Windows.Forms.RichTextBox txtMatchesPreview; + private System.Windows.Forms.Label label9; } } diff --git a/src/FindAndReplace.App/MainForm.cs b/src/FindAndReplace.App/MainForm.cs index a218520..0c5dca0 100644 --- a/src/FindAndReplace.App/MainForm.cs +++ b/src/FindAndReplace.App/MainForm.cs @@ -15,7 +15,7 @@ namespace FindAndReplace.App public partial class MainForm : Form { - public const int ExtraWidthWhenResults = 335; + //public const int ExtraWidthWhenResults = 335; private Finder _finder; private Replacer _replacer; @@ -68,8 +68,8 @@ private void btnFindOnly_Click(object sender, EventArgs e) CreateListener(finder); ShowResultPanel(); - - SaveToRegistry(); + txtMatchesPreview.Clear(); + SaveToRegistry(); _currentThread = new Thread(DoFindWork); _currentThread.IsBackground = true; @@ -118,10 +118,11 @@ private void PrepareFinderGrid() if (chkShowEncoding.Checked) AddResultsColumn("FileEncoding", "Encoding", 100); - AddResultsColumn("NumMatches", "Matches", 50); + AddResultsColumn("NumMatches", "Matches", 55); AddResultsColumn("ErrorMessage", "Error", 150); + gvResults.Columns[gvResults.ColumnCount - 1].AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill; - gvResults.Columns.Add("MatchesPreview", ""); + gvResults.Columns.Add("MatchesPreview", ""); gvResults.Columns[gvResults.ColumnCount - 1].Visible = false; HideMatchesPreviewPanel(); @@ -137,7 +138,7 @@ private void AddResultsColumn(string dataPropertyName, string headerText, int wi HeaderText = headerText, CellTemplate = new DataGridViewTextBoxCell(), Width = width, - SortMode = DataGridViewColumnSortMode.Automatic + SortMode = DataGridViewColumnSortMode.Automatic, }); } @@ -290,14 +291,14 @@ private void ShowResultPanel() { pnlGridResults.Visible = true; - if (pnlCommandLine.Visible) - { - this.Height -= pnlCommandLine.Height + 10; - pnlCommandLine.Visible = false; - } + //if (pnlCommandLine.Visible) + //{ + // this.Height -= pnlCommandLine.Height + 10; + // pnlCommandLine.Visible = false; + //} - this.Height += pnlGridResults.Height + 10; - this.Width += ExtraWidthWhenResults; + //this.Height += pnlGridResults.Height + 10; + //this.Width += ExtraWidthWhenResults; } } @@ -307,8 +308,8 @@ private void HideResultPanel() { pnlGridResults.Visible = false; - this.Height -= pnlGridResults.Height + 10; - this.Width -= ExtraWidthWhenResults; + //this.Height -= pnlGridResults.Height + 10; + //this.Width -= ExtraWidthWhenResults; } } @@ -320,8 +321,8 @@ private void ShowCommandLinePanel() if (!pnlCommandLine.Visible) { pnlCommandLine.Visible = true; - this.Height += pnlCommandLine.Height + 10; - this.Width += ExtraWidthWhenResults; + //this.Height += pnlCommandLine.Height + 10; + //this.Width += ExtraWidthWhenResults; } } @@ -330,27 +331,27 @@ private void HideCommandLinePanel() if (pnlCommandLine.Visible) { pnlCommandLine.Visible = false; - this.Height -= pnlCommandLine.Height + 10; - this.Width -= ExtraWidthWhenResults; + //this.Height -= pnlCommandLine.Height + 10; + //this.Width -= ExtraWidthWhenResults; } } private void ShowMatchesPreviewPanel() { - if (!txtMatchesPreview.Visible) + if (!txtMatchesPreview.Enabled) { - txtMatchesPreview.Visible = true; - this.Height += txtMatchesPreview.Height + 50; + txtMatchesPreview.Enabled = true; + //this.Height += txtMatchesPreview.Height + 50; } } private void HideMatchesPreviewPanel() { - if (txtMatchesPreview.Visible) + if (txtMatchesPreview.Enabled) { - txtMatchesPreview.Visible = false; - this.Height -= (txtMatchesPreview.Height + 50); + txtMatchesPreview.Enabled = false; + //this.Height -= (txtMatchesPreview.Height + 50); } } @@ -433,7 +434,7 @@ private void btnReplace_Click(object sender, EventArgs e) lblStatus.Text = "Getting file list..."; PrepareReplacerGrid(); - txtMatchesPreview.Visible = false; + txtMatchesPreview.Clear(); var replacer = GetReplacer(); @@ -469,8 +470,9 @@ private void PrepareReplacerGrid() AddResultsColumn("NumMatches", "Matches", 50); AddResultsColumn("IsSuccess", "Replaced", 60); AddResultsColumn("ErrorMessage", "Error", 150); + gvResults.Columns[gvResults.ColumnCount - 1].AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill; - gvResults.Columns.Add("MatchesPreview", ""); + gvResults.Columns.Add("MatchesPreview", ""); gvResults.Columns[gvResults.ColumnCount - 1].Visible = false; HideMatchesPreviewPanel(); @@ -780,6 +782,8 @@ private void MainForm_Load(object sender, EventArgs e) cmbEncoding.SelectedIndex = 0; InitWithRegistryData(); + + txtDir.Focus(); } //from http://stackoverflow.com/questions/334630/c-open-folder-and-select-the-file diff --git a/src/FindAndReplace.App/MainForm.resx b/src/FindAndReplace.App/MainForm.resx index b9b551a..6a261c5 100644 --- a/src/FindAndReplace.App/MainForm.resx +++ b/src/FindAndReplace.App/MainForm.resx @@ -544,18 +544,6 @@ zoFiI4PBcA4UGxkMhnOg2MhgMJwBwv0/5L0EE64PDbYAAAAASUVORK5CYII= - - 259, 56 - - - 316, 17 - - - 459, 17 - - - 17, 56 - 453, 56 @@ -849,4 +837,28 @@ 147, 17 + + 316, 17 + + + 316, 17 + + + 459, 17 + + + 459, 17 + + + 17, 56 + + + 17, 56 + + + 259, 56 + + + 259, 56 + \ No newline at end of file diff --git a/src/FindAndReplace.App/Properties/AssemblyInfo.cs b/src/FindAndReplace.App/Properties/AssemblyInfo.cs index 0a2032f..66e2a4f 100644 --- a/src/FindAndReplace.App/Properties/AssemblyInfo.cs +++ b/src/FindAndReplace.App/Properties/AssemblyInfo.cs @@ -31,5 +31,5 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.7.9")] -[assembly: AssemblyFileVersion("1.7.9")] +[assembly: AssemblyVersion("1.8.0")] +[assembly: AssemblyFileVersion("1.8.0")]