diff --git a/Text Editor Setup/Text Editor Setup-SetupFiles/Text_Editor_1_0_1_Setup.msi b/Text Editor Setup/Text Editor Setup-SetupFiles/Text_Editor_1_0_1_Setup.msi new file mode 100644 index 0000000..56ac5fb Binary files /dev/null and b/Text Editor Setup/Text Editor Setup-SetupFiles/Text_Editor_1_0_1_Setup.msi differ diff --git a/Text Editor Setup/Text Editor Setup-SetupFiles/Text_Editor_1_0_2_Setup.msi b/Text Editor Setup/Text Editor Setup-SetupFiles/Text_Editor_1_0_2_Setup.msi new file mode 100644 index 0000000..1b96729 Binary files /dev/null and b/Text Editor Setup/Text Editor Setup-SetupFiles/Text_Editor_1_0_2_Setup.msi differ diff --git a/Text Editor Setup/Text Editor Setup-cache/cacheIndex.txt b/Text Editor Setup/Text Editor Setup-cache/cacheIndex.txt index a603ff0..5fe5afe 100644 Binary files a/Text Editor Setup/Text Editor Setup-cache/cacheIndex.txt and b/Text Editor Setup/Text Editor Setup-cache/cacheIndex.txt differ diff --git a/Text Editor Setup/Text Editor Setup-cache/part1/disk1.cab b/Text Editor Setup/Text Editor Setup-cache/part1/disk1.cab new file mode 100644 index 0000000..7e0569b Binary files /dev/null and b/Text Editor Setup/Text Editor Setup-cache/part1/disk1.cab differ diff --git a/Text Editor Setup/Text Editor Setup-cache/part2/output-info.ini b/Text Editor Setup/Text Editor Setup-cache/part1/output-info.ini similarity index 78% rename from Text Editor Setup/Text Editor Setup-cache/part2/output-info.ini rename to Text Editor Setup/Text Editor Setup-cache/part1/output-info.ini index 359c9bf..c8030cc 100644 Binary files a/Text Editor Setup/Text Editor Setup-cache/part2/output-info.ini and b/Text Editor Setup/Text Editor Setup-cache/part1/output-info.ini differ diff --git a/Text Editor Setup/Text Editor Setup-cache/part2/disk1.cab b/Text Editor Setup/Text Editor Setup-cache/part2/disk1.cab deleted file mode 100644 index 8d1ec2b..0000000 Binary files a/Text Editor Setup/Text Editor Setup-cache/part2/disk1.cab and /dev/null differ diff --git a/Text Editor Setup/Text Editor Setup.aip b/Text Editor Setup/Text Editor Setup.aip index b2ba774..3803a8c 100644 --- a/Text Editor Setup/Text Editor Setup.aip +++ b/Text Editor Setup/Text Editor Setup.aip @@ -11,10 +11,10 @@ - + - + @@ -55,7 +55,7 @@ - + diff --git a/Text Editor/AboutForm.Designer.cs b/Text Editor/AboutForm.Designer.cs index 3135e01..1d915a9 100644 --- a/Text Editor/AboutForm.Designer.cs +++ b/Text Editor/AboutForm.Designer.cs @@ -63,7 +63,7 @@ private void InitializeComponent() this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(69, 13); this.label2.TabIndex = 2; - this.label2.Text = "Version 1.0.0"; + this.label2.Text = "Version 1.0.2"; this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; // // label3 diff --git a/Text Editor/Form1.Designer.cs b/Text Editor/Form1.Designer.cs index 9c688ec..1e92306 100644 --- a/Text Editor/Form1.Designer.cs +++ b/Text Editor/Form1.Designer.cs @@ -44,6 +44,7 @@ private void InitializeComponent() this.menuItem11 = new System.Windows.Forms.MenuItem(); this.menuItem12 = new System.Windows.Forms.MenuItem(); this.menuItem13 = new System.Windows.Forms.MenuItem(); + this.menuItem25 = new System.Windows.Forms.MenuItem(); this.menuItem14 = new System.Windows.Forms.MenuItem(); this.menuItem15 = new System.Windows.Forms.MenuItem(); this.menuItem16 = new System.Windows.Forms.MenuItem(); @@ -57,6 +58,7 @@ private void InitializeComponent() this.menuItem24 = new System.Windows.Forms.MenuItem(); this.panel1 = new System.Windows.Forms.Panel(); this.mainEditor = new System.Windows.Forms.RichTextBox(); + this.menuItem26 = new System.Windows.Forms.MenuItem(); this.panel1.SuspendLayout(); this.SuspendLayout(); // @@ -137,6 +139,8 @@ private void InitializeComponent() this.menuItem12, this.menuItem13, this.menuItem14, + this.menuItem25, + this.menuItem26, this.menuItem15, this.menuItem16}); this.menuItem9.Text = "Edit"; @@ -167,6 +171,11 @@ private void InitializeComponent() this.menuItem13.Text = "Copy"; this.menuItem13.Click += new System.EventHandler(this.menuItem13_Click); // + // menuItem25 + // + this.menuItem25.Index = 5; + this.menuItem25.Text = "-"; + // // menuItem14 // this.menuItem14.Index = 4; @@ -176,12 +185,12 @@ private void InitializeComponent() // // menuItem15 // - this.menuItem15.Index = 5; + this.menuItem15.Index = 7; this.menuItem15.Text = "-"; // // menuItem16 // - this.menuItem16.Index = 6; + this.menuItem16.Index = 8; this.menuItem16.Shortcut = System.Windows.Forms.Shortcut.CtrlA; this.menuItem16.Text = "Select All"; this.menuItem16.Click += new System.EventHandler(this.menuItem16_Click); @@ -260,6 +269,13 @@ private void InitializeComponent() this.mainEditor.TabIndex = 1; this.mainEditor.Text = ""; // + // menuItem26 + // + this.menuItem26.Index = 6; + this.menuItem26.Shortcut = System.Windows.Forms.Shortcut.CtrlH; + this.menuItem26.Text = "Replace..."; + this.menuItem26.Click += new System.EventHandler(this.menuItem26_Click); + // // Form1 // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); @@ -304,6 +320,8 @@ private void InitializeComponent() private System.Windows.Forms.MenuItem menuItem24; private System.Windows.Forms.Panel panel1; private System.Windows.Forms.RichTextBox mainEditor; + private System.Windows.Forms.MenuItem menuItem25; + private System.Windows.Forms.MenuItem menuItem26; } } diff --git a/Text Editor/Form1.cs b/Text Editor/Form1.cs index e433b28..4673df3 100644 --- a/Text Editor/Form1.cs +++ b/Text Editor/Form1.cs @@ -18,6 +18,12 @@ public Form1() { InitializeComponent(); menuItem18.Checked = Properties.Settings.Default.EnableWordWrap; + mainEditor.WordWrap = Properties.Settings.Default.EnableWordWrap; + } + + public static void QuickReplace(RichTextBox rtb, String word, String word2) + { + rtb.Text = rtb.Text.Replace(word, word2); } private void menuItem2_Click(object sender, EventArgs e) @@ -158,6 +164,7 @@ private void menuItem18_Click(object sender, EventArgs e) menuItem18.Checked = !menuItem18.Checked; Properties.Settings.Default.EnableWordWrap = menuItem18.Checked; Properties.Settings.Default.Save(); + mainEditor.WordWrap = Properties.Settings.Default.EnableWordWrap; } private void menuItem20_Click(object sender, EventArgs e) @@ -180,5 +187,16 @@ private void menuItem24_Click(object sender, EventArgs e) AboutForm aboutForm = new AboutForm(); aboutForm.ShowDialog(); } + + private void menuItem26_Click(object sender, EventArgs e) + { + using (SearchForm searchForm = new SearchForm()) + { + if (searchForm.ShowDialog() == DialogResult.OK) + { + QuickReplace(mainEditor, searchForm.txtSearchString.Text, searchForm.txtReplaceString.Text); + } + } + } } } diff --git a/Text Editor/SearchForm.Designer.cs b/Text Editor/SearchForm.Designer.cs new file mode 100644 index 0000000..921ddab --- /dev/null +++ b/Text Editor/SearchForm.Designer.cs @@ -0,0 +1,124 @@ +namespace Text_Editor +{ + partial class SearchForm + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.label1 = new System.Windows.Forms.Label(); + this.txtSearchString = new System.Windows.Forms.TextBox(); + this.label2 = new System.Windows.Forms.Label(); + this.txtReplaceString = new System.Windows.Forms.TextBox(); + this.button1 = new System.Windows.Forms.Button(); + this.button2 = new System.Windows.Forms.Button(); + this.SuspendLayout(); + // + // label1 + // + this.label1.AutoSize = true; + this.label1.Location = new System.Drawing.Point(12, 9); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(59, 13); + this.label1.TabIndex = 0; + this.label1.Text = "Search for:"; + // + // txtSearchString + // + this.txtSearchString.Location = new System.Drawing.Point(90, 9); + this.txtSearchString.Name = "txtSearchString"; + this.txtSearchString.Size = new System.Drawing.Size(125, 20); + this.txtSearchString.TabIndex = 1; + this.txtSearchString.TabStop = false; + // + // label2 + // + this.label2.AutoSize = true; + this.label2.Location = new System.Drawing.Point(12, 36); + this.label2.Name = "label2"; + this.label2.Size = new System.Drawing.Size(72, 13); + this.label2.TabIndex = 2; + this.label2.Text = "Replace with:"; + // + // txtReplaceString + // + this.txtReplaceString.Location = new System.Drawing.Point(90, 33); + this.txtReplaceString.Name = "txtReplaceString"; + this.txtReplaceString.Size = new System.Drawing.Size(125, 20); + this.txtReplaceString.TabIndex = 3; + this.txtReplaceString.TabStop = false; + // + // button1 + // + this.button1.DialogResult = System.Windows.Forms.DialogResult.OK; + this.button1.Location = new System.Drawing.Point(59, 59); + this.button1.Name = "button1"; + this.button1.Size = new System.Drawing.Size(75, 23); + this.button1.TabIndex = 4; + this.button1.TabStop = false; + this.button1.Text = "Replace"; + this.button1.UseVisualStyleBackColor = true; + // + // button2 + // + this.button2.DialogResult = System.Windows.Forms.DialogResult.Cancel; + this.button2.Location = new System.Drawing.Point(140, 59); + this.button2.Name = "button2"; + this.button2.Size = new System.Drawing.Size(75, 23); + this.button2.TabIndex = 5; + this.button2.Text = "Cancel"; + this.button2.UseVisualStyleBackColor = true; + // + // SearchForm + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(231, 107); + this.Controls.Add(this.button2); + this.Controls.Add(this.button1); + this.Controls.Add(this.txtReplaceString); + this.Controls.Add(this.label2); + this.Controls.Add(this.txtSearchString); + this.Controls.Add(this.label1); + this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; + this.MaximizeBox = false; + this.MinimizeBox = false; + this.Name = "SearchForm"; + this.Text = "Replace"; + this.ResumeLayout(false); + this.PerformLayout(); + + } + + #endregion + + public System.Windows.Forms.Label label1; + public System.Windows.Forms.TextBox txtSearchString; + public System.Windows.Forms.Label label2; + public System.Windows.Forms.TextBox txtReplaceString; + public System.Windows.Forms.Button button1; + public System.Windows.Forms.Button button2; + } +} \ No newline at end of file diff --git a/Text Editor/SearchForm.cs b/Text Editor/SearchForm.cs new file mode 100644 index 0000000..7c57bab --- /dev/null +++ b/Text Editor/SearchForm.cs @@ -0,0 +1,25 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace Text_Editor +{ + public partial class SearchForm : Form + { + public SearchForm() + { + InitializeComponent(); + string searchString = txtSearchString.Text; + string replaceString = txtReplaceString.Text; + } + + public string searchString; + public string replaceString; + } +} diff --git a/Text Editor/SearchForm.resx b/Text Editor/SearchForm.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/Text Editor/SearchForm.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/Text Editor/Text Editor.csproj b/Text Editor/Text Editor.csproj index f41c622..015f186 100644 --- a/Text Editor/Text Editor.csproj +++ b/Text Editor/Text Editor.csproj @@ -63,6 +63,12 @@ + + Form + + + SearchForm.cs + AboutForm.cs @@ -79,6 +85,9 @@ Resources.resx True + + SearchForm.cs + SettingsSingleFileGenerator Settings.Designer.cs