From 04b223735fab21e76843441856d22c370ab6f9bf Mon Sep 17 00:00:00 2001 From: codeimp Date: Fri, 27 Feb 2009 09:33:51 +0000 Subject: [PATCH] @ Fixed Copy Selection button on Errors and Warnings dialog window --- Source/Windows/ErrorsForm.Designer.cs | 1 + Source/Windows/ErrorsForm.cs | 18 +++++- Source/Windows/ErrorsForm.resx | 91 +++++++++++++-------------- 3 files changed, 63 insertions(+), 47 deletions(-) diff --git a/Source/Windows/ErrorsForm.Designer.cs b/Source/Windows/ErrorsForm.Designer.cs index 79758f7a..6ab855ae 100644 --- a/Source/Windows/ErrorsForm.Designer.cs +++ b/Source/Windows/ErrorsForm.Designer.cs @@ -78,6 +78,7 @@ namespace CodeImp.DoomBuilder.Windows this.copyselected.TabIndex = 1; this.copyselected.Text = "Copy Selection"; this.copyselected.UseVisualStyleBackColor = true; + this.copyselected.Click += new System.EventHandler(this.copyselected_Click); // // clearlist // diff --git a/Source/Windows/ErrorsForm.cs b/Source/Windows/ErrorsForm.cs index cff3e4aa..748fe83c 100644 --- a/Source/Windows/ErrorsForm.cs +++ b/Source/Windows/ErrorsForm.cs @@ -105,7 +105,23 @@ namespace CodeImp.DoomBuilder.Windows General.ErrorLogger.Clear(); list.Items.Clear(); } - + + // Copy selection + private void copyselected_Click(object sender, EventArgs e) + { + StringBuilder str = new StringBuilder(""); + if(list.SelectedItems.Count > 0) + { + Clipboard.Clear(); + foreach(ListViewItem lvi in list.SelectedItems) + { + if(str.Length > 0) str.Append("\r\n"); + str.Append(lvi.Text); + } + Clipboard.SetText(str.ToString()); + } + } + #endregion } } \ No newline at end of file diff --git a/Source/Windows/ErrorsForm.resx b/Source/Windows/ErrorsForm.resx index 7bb3dbd8..2e718df3 100644 --- a/Source/Windows/ErrorsForm.resx +++ b/Source/Windows/ErrorsForm.resx @@ -127,53 +127,52 @@ AAEAAAD/////AQAAAAAAAAAMAgAAAFdTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj0yLjAuMC4w LCBDdW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