From 0a824949b5bc14644bcbf4eba17e55f0b8eee4c1 Mon Sep 17 00:00:00 2001 From: Emanuel Albu <42834028+ealbu@users.noreply.github.com> Date: Tue, 7 Jan 2025 17:01:33 +0200 Subject: [PATCH] Toolkit 7.0.1.5 * SDLCOM-5910: TellMe enhancements * SDLCOM-2170: Add cancellation to SliceIt --- Toolkit/SDLXLIFFSliceOrChange/ClearManager.cs | 4 +- .../Properties/AssemblyInfo.cs | 2 +- .../SDLXLIFFSliceOrChange.Designer.cs | 2375 +++++++++-------- .../SDLXLIFFSliceOrChange.cs | 235 +- .../SDLXLIFFSliceOrChange.resx | 116 +- Toolkit/SDLXLIFFSliceOrChange/SliceManager.cs | 238 +- .../Properties/AssemblyInfo.cs | 2 +- .../SdlXliffToolkit/ApplicationInitializer.cs | 45 +- .../Properties/AssemblyInfo.cs | 2 +- Toolkit/SdlXliffToolkit/SdlToolkitRibbon.cs | 136 +- .../TellMe/Actions/AppStoreForumAction.cs | 2 +- .../TellMe/Actions/ToolkitAction.cs | 61 +- Toolkit/SdlXliffToolkit/TradosView.cs | 5 +- .../pluginpackage.manifest.xml | 2 +- 14 files changed, 1794 insertions(+), 1431 deletions(-) diff --git a/Toolkit/SDLXLIFFSliceOrChange/ClearManager.cs b/Toolkit/SDLXLIFFSliceOrChange/ClearManager.cs index a16d473a11..d9b4c3df23 100644 --- a/Toolkit/SDLXLIFFSliceOrChange/ClearManager.cs +++ b/Toolkit/SDLXLIFFSliceOrChange/ClearManager.cs @@ -67,7 +67,7 @@ public static void ClearFile(SliceInfo sliceInfo, SdlxliffSliceOrChange form) { xDoc.Save(writer); } - form.StepProcess("Target segments from file: " + Path.GetFileName(sliceInfo.File) + " are empty."); + form.StepProcess(); } catch(Exception ex) { @@ -185,7 +185,7 @@ public static void CopyFile(SliceInfo sliceInfo, SdlxliffSliceOrChange form) { xDoc.Save(writer); } - form.StepProcess("Source segments from file: " + Path.GetFileName(sliceInfo.File) + " are copied."); + form.StepProcess(); } catch (Exception ex) { diff --git a/Toolkit/SDLXLIFFSliceOrChange/Properties/AssemblyInfo.cs b/Toolkit/SDLXLIFFSliceOrChange/Properties/AssemblyInfo.cs index df3d504f83..c93d88dfa4 100644 --- a/Toolkit/SDLXLIFFSliceOrChange/Properties/AssemblyInfo.cs +++ b/Toolkit/SDLXLIFFSliceOrChange/Properties/AssemblyInfo.cs @@ -28,4 +28,4 @@ // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyVersion("7.0.0.0")] -[assembly: AssemblyFileVersion("7.0.1.4")] +[assembly: AssemblyFileVersion("7.0.1.5")] diff --git a/Toolkit/SDLXLIFFSliceOrChange/SDLXLIFFSliceOrChange.Designer.cs b/Toolkit/SDLXLIFFSliceOrChange/SDLXLIFFSliceOrChange.Designer.cs index f59da2ebe8..f2dcf71894 100644 --- a/Toolkit/SDLXLIFFSliceOrChange/SDLXLIFFSliceOrChange.Designer.cs +++ b/Toolkit/SDLXLIFFSliceOrChange/SDLXLIFFSliceOrChange.Designer.cs @@ -27,16 +27,41 @@ protected override void Dispose(bool disposing) /// public void InitializeComponent() { - this.scrollablePanel = new Panel(); - - this.components = new System.ComponentModel.Container(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(SdlxliffSliceOrChange)); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle(); - this.xLIFFFiles = new SDLXLIFFSliceOrChange.Data.XLIFFFiles(); - this.selectFolder = new System.Windows.Forms.FolderBrowserDialog(); - this.selectProjectFile = new System.Windows.Forms.OpenFileDialog(); - this.filesBindingSource = new System.Windows.Forms.BindingSource(this.components); + this.scrollablePanel = new System.Windows.Forms.Panel(); + this.mainTableLayoutPanel = new System.Windows.Forms.TableLayoutPanel(); + this.panelCommands = new System.Windows.Forms.Panel(); + this.groupClear = new System.Windows.Forms.GroupBox(); + this.btnClearit = new System.Windows.Forms.Button(); + this.pictureBox3 = new System.Windows.Forms.PictureBox(); + this.lblClearit = new System.Windows.Forms.Label(); + this.groupChange = new System.Windows.Forms.GroupBox(); + this.groupChangeToStatusOr = new System.Windows.Forms.GroupBox(); + this.ckCopySourceToTarget = new System.Windows.Forms.CheckBox(); + this.groupChangeLocked = new System.Windows.Forms.GroupBox(); + this.ckChangeToUnlocked = new System.Windows.Forms.RadioButton(); + this.ckChangeToLocked = new System.Windows.Forms.RadioButton(); + this.groupChangeTranslationStatus = new System.Windows.Forms.GroupBox(); + this.ckChangeToSignedOff = new System.Windows.Forms.RadioButton(); + this.ckChangeToSignOffRejected = new System.Windows.Forms.RadioButton(); + this.ckChangeToTranslationApproved = new System.Windows.Forms.RadioButton(); + this.ckChangeToTranslationRejected = new System.Windows.Forms.RadioButton(); + this.ckChangeToTranslated = new System.Windows.Forms.RadioButton(); + this.ckChangeToDraft = new System.Windows.Forms.RadioButton(); + this.ckChangeToNotTranslated = new System.Windows.Forms.RadioButton(); + this.btnChangeit = new System.Windows.Forms.Button(); + this.pictureBox2 = new System.Windows.Forms.PictureBox(); + this.labelChangeComments = new System.Windows.Forms.Label(); + this.groupSlice = new System.Windows.Forms.GroupBox(); + this.ckMerge = new System.Windows.Forms.CheckBox(); + this.btnSliceit = new System.Windows.Forms.Button(); + this.pictureBox1 = new System.Windows.Forms.PictureBox(); + this.labelSliceComments = new System.Windows.Forms.Label(); + this.panelStatus = new System.Windows.Forms.Panel(); + this.CancelButton = new System.Windows.Forms.Button(); + this.progressBar = new System.Windows.Forms.ProgressBar(); this.tabControl1 = new System.Windows.Forms.TabControl(); this.pageStatuses = new System.Windows.Forms.TabPage(); this.btnReverseSelection = new System.Windows.Forms.Button(); @@ -105,33 +130,6 @@ public void InitializeComponent() this.lblReplaceSourceReplace = new System.Windows.Forms.Label(); this.txtReplaceSourceSearch = new System.Windows.Forms.TextBox(); this.lblReplaceSourceSearch = new System.Windows.Forms.Label(); - this.panelCommands = new System.Windows.Forms.Panel(); - this.groupClear = new System.Windows.Forms.GroupBox(); - this.btnClearit = new System.Windows.Forms.Button(); - this.pictureBox3 = new System.Windows.Forms.PictureBox(); - this.lblClearit = new System.Windows.Forms.Label(); - this.groupChange = new System.Windows.Forms.GroupBox(); - this.groupChangeToStatusOr = new System.Windows.Forms.GroupBox(); - this.ckCopySourceToTarget = new System.Windows.Forms.CheckBox(); - this.groupChangeLocked = new System.Windows.Forms.GroupBox(); - this.ckChangeToUnlocked = new System.Windows.Forms.RadioButton(); - this.ckChangeToLocked = new System.Windows.Forms.RadioButton(); - this.groupChangeTranslationStatus = new System.Windows.Forms.GroupBox(); - this.ckChangeToSignedOff = new System.Windows.Forms.RadioButton(); - this.ckChangeToSignOffRejected = new System.Windows.Forms.RadioButton(); - this.ckChangeToTranslationApproved = new System.Windows.Forms.RadioButton(); - this.ckChangeToTranslationRejected = new System.Windows.Forms.RadioButton(); - this.ckChangeToTranslated = new System.Windows.Forms.RadioButton(); - this.ckChangeToDraft = new System.Windows.Forms.RadioButton(); - this.ckChangeToNotTranslated = new System.Windows.Forms.RadioButton(); - this.btnChangeit = new System.Windows.Forms.Button(); - this.pictureBox2 = new System.Windows.Forms.PictureBox(); - this.labelChangeComments = new System.Windows.Forms.Label(); - this.groupSlice = new System.Windows.Forms.GroupBox(); - this.ckMerge = new System.Windows.Forms.CheckBox(); - this.btnSliceit = new System.Windows.Forms.Button(); - this.pictureBox1 = new System.Windows.Forms.PictureBox(); - this.labelSliceComments = new System.Windows.Forms.Label(); this.browseTableLayoutPanel = new System.Windows.Forms.TableLayoutPanel(); this.panel1 = new System.Windows.Forms.Panel(); this.cmbLanguages = new System.Windows.Forms.ComboBox(); @@ -146,15 +144,24 @@ public void InitializeComponent() this.colName = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.colSize = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.colDate = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.mainTableLayoutPanel = new System.Windows.Forms.TableLayoutPanel(); - this.panelStatus = new System.Windows.Forms.Panel(); - this.progressBar = new System.Windows.Forms.ProgressBar(); + this.selectFolder = new System.Windows.Forms.FolderBrowserDialog(); + this.selectProjectFile = new System.Windows.Forms.OpenFileDialog(); this.errorProvider1 = new System.Windows.Forms.ErrorProvider(this.components); - ((System.ComponentModel.ISupportInitialize)(this.xLIFFFiles)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.filesBindingSource)).BeginInit(); - + this.xLIFFFiles = new SDLXLIFFSliceOrChange.Data.XLIFFFiles(); + this.filesBindingSource = new System.Windows.Forms.BindingSource(this.components); this.scrollablePanel.SuspendLayout(); - + this.mainTableLayoutPanel.SuspendLayout(); + this.panelCommands.SuspendLayout(); + this.groupClear.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.pictureBox3)).BeginInit(); + this.groupChange.SuspendLayout(); + this.groupChangeToStatusOr.SuspendLayout(); + this.groupChangeLocked.SuspendLayout(); + this.groupChangeTranslationStatus.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).BeginInit(); + this.groupSlice.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit(); + this.panelStatus.SuspendLayout(); this.tabControl1.SuspendLayout(); this.pageStatuses.SuspendLayout(); this.groupDocumentStructure.SuspendLayout(); @@ -172,1192 +179,1349 @@ public void InitializeComponent() this.groupReplace.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.gridReplaceResults)).BeginInit(); this.groupReplaceOptions.SuspendLayout(); - this.panelCommands.SuspendLayout(); - this.groupClear.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox3)).BeginInit(); - this.groupChange.SuspendLayout(); - this.groupChangeToStatusOr.SuspendLayout(); - this.groupChangeLocked.SuspendLayout(); - this.groupChangeTranslationStatus.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).BeginInit(); - this.groupSlice.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit(); this.browseTableLayoutPanel.SuspendLayout(); this.panel1.SuspendLayout(); this.toolStrip1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.gridXLIFFFiles)).BeginInit(); - this.mainTableLayoutPanel.SuspendLayout(); - this.panelStatus.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.errorProvider1)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.xLIFFFiles)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.filesBindingSource)).BeginInit(); this.SuspendLayout(); - - this.scrollablePanel.Dock = DockStyle.Fill; - this.scrollablePanel.AutoScroll = true; - // - // xLIFFFiles + // scrollablePanel // - this.xLIFFFiles.DataSetName = "XLIFFFiles"; - this.xLIFFFiles.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema; + this.scrollablePanel.AutoScroll = true; + this.scrollablePanel.Controls.Add(this.mainTableLayoutPanel); + this.scrollablePanel.Dock = System.Windows.Forms.DockStyle.Fill; + this.scrollablePanel.Location = new System.Drawing.Point(0, 0); + this.scrollablePanel.Margin = new System.Windows.Forms.Padding(5); + this.scrollablePanel.Name = "scrollablePanel"; + this.scrollablePanel.Size = new System.Drawing.Size(1435, 1853); + this.scrollablePanel.TabIndex = 0; // - // filesBindingSource + // mainTableLayoutPanel // - this.filesBindingSource.DataMember = "Files"; - this.filesBindingSource.DataSource = this.xLIFFFiles; + this.mainTableLayoutPanel.AutoSize = true; + this.mainTableLayoutPanel.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; + this.mainTableLayoutPanel.ColumnCount = 1; + this.mainTableLayoutPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); + this.mainTableLayoutPanel.Controls.Add(this.panelCommands, 0, 2); + this.mainTableLayoutPanel.Controls.Add(this.panelStatus, 0, 3); + this.mainTableLayoutPanel.Controls.Add(this.tabControl1, 0, 1); + this.mainTableLayoutPanel.Controls.Add(this.browseTableLayoutPanel, 0, 0); + this.mainTableLayoutPanel.Dock = System.Windows.Forms.DockStyle.Fill; + this.mainTableLayoutPanel.Location = new System.Drawing.Point(0, 0); + this.mainTableLayoutPanel.Margin = new System.Windows.Forms.Padding(5); + this.mainTableLayoutPanel.Name = "mainTableLayoutPanel"; + this.mainTableLayoutPanel.RowCount = 4; + this.mainTableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle()); + this.mainTableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle()); + this.mainTableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle()); + this.mainTableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle()); + this.mainTableLayoutPanel.Size = new System.Drawing.Size(1435, 1853); + this.mainTableLayoutPanel.TabIndex = 11; // - // tabControl1 + // panelCommands // - this.tabControl1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom))); - this.tabControl1.Controls.Add(this.pageStatuses); - this.tabControl1.Controls.Add(this.pageSearch); - this.tabControl1.Controls.Add(this.pageReplace); - this.tabControl1.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, ((System.Drawing.FontStyle)((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Italic))), System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.tabControl1.Location = new System.Drawing.Point(8, 256); - this.tabControl1.Name = "tabControl1"; - this.tabControl1.SelectedIndex = 0; - this.tabControl1.Size = new System.Drawing.Size(803, 279); - this.tabControl1.TabIndex = 8; - this.tabControl1.SelectedIndexChanged += new System.EventHandler(this.tabControl1_SelectedIndexChanged); + this.panelCommands.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom))); + this.panelCommands.Controls.Add(this.groupClear); + this.panelCommands.Controls.Add(this.groupChange); + this.panelCommands.Controls.Add(this.groupSlice); + this.panelCommands.Location = new System.Drawing.Point(11, 945); + this.panelCommands.Margin = new System.Windows.Forms.Padding(5); + this.panelCommands.Name = "panelCommands"; + this.panelCommands.Size = new System.Drawing.Size(1412, 418); + this.panelCommands.TabIndex = 9; // - // pageStatuses + // groupClear // - this.pageStatuses.BackColor = System.Drawing.SystemColors.Window; - this.pageStatuses.Controls.Add(this.btnReverseSelection); - this.pageStatuses.Controls.Add(this.groupDocumentStructure); - this.pageStatuses.Controls.Add(this.groupSystem); - this.pageStatuses.Controls.Add(this.groupTranslationOrigin); - this.pageStatuses.Controls.Add(this.groupScore); - this.pageStatuses.Controls.Add(this.groupStatusesLocked); - this.pageStatuses.Controls.Add(this.groupStatusesTranslationStatus); - this.pageStatuses.Location = new System.Drawing.Point(4, 24); - this.pageStatuses.Name = "pageStatuses"; - this.pageStatuses.Padding = new System.Windows.Forms.Padding(3); - this.pageStatuses.Size = new System.Drawing.Size(795, 251); - this.pageStatuses.TabIndex = 0; - this.pageStatuses.Text = "Statuses"; + this.groupClear.Controls.Add(this.btnClearit); + this.groupClear.Controls.Add(this.pictureBox3); + this.groupClear.Controls.Add(this.lblClearit); + this.groupClear.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, ((System.Drawing.FontStyle)((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Italic))), System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.groupClear.ForeColor = System.Drawing.Color.Red; + this.groupClear.Location = new System.Drawing.Point(1125, 18); + this.groupClear.Margin = new System.Windows.Forms.Padding(5); + this.groupClear.Name = "groupClear"; + this.groupClear.Padding = new System.Windows.Forms.Padding(5); + this.groupClear.Size = new System.Drawing.Size(280, 396); + this.groupClear.TabIndex = 6; + this.groupClear.TabStop = false; + this.groupClear.Text = "Clear"; // - // btnReverseSelection + // btnClearit // - this.btnReverseSelection.BackColor = System.Drawing.Color.White; - this.btnReverseSelection.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.btnReverseSelection.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft; - this.btnReverseSelection.Location = new System.Drawing.Point(6, 224); - this.btnReverseSelection.Name = "btnReverseSelection"; - this.btnReverseSelection.Size = new System.Drawing.Size(172, 23); - this.btnReverseSelection.TabIndex = 8; - this.btnReverseSelection.Text = "Reverse selection"; - this.btnReverseSelection.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; - this.btnReverseSelection.UseVisualStyleBackColor = false; - this.btnReverseSelection.Click += new System.EventHandler(this.btnReverseSelection_Click); + this.btnClearit.BackColor = System.Drawing.SystemColors.Control; + this.btnClearit.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.btnClearit.ForeColor = System.Drawing.Color.Red; + this.btnClearit.Location = new System.Drawing.Point(10, 292); + this.btnClearit.Margin = new System.Windows.Forms.Padding(5); + this.btnClearit.Name = "btnClearit"; + this.btnClearit.Size = new System.Drawing.Size(228, 86); + this.btnClearit.TabIndex = 2; + this.btnClearit.Text = "Clearit!"; + this.btnClearit.UseVisualStyleBackColor = false; + this.btnClearit.Click += new System.EventHandler(this.btnClearit_Click); // - // groupDocumentStructure + // pictureBox3 // - this.groupDocumentStructure.Controls.Add(this.listDocumentStructure); - this.groupDocumentStructure.Controls.Add(this.panel2); - this.groupDocumentStructure.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, ((System.Drawing.FontStyle)((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Italic))), System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.groupDocumentStructure.Location = new System.Drawing.Point(494, 6); - this.groupDocumentStructure.Name = "groupDocumentStructure"; - this.groupDocumentStructure.Size = new System.Drawing.Size(282, 216); - this.groupDocumentStructure.TabIndex = 7; - this.groupDocumentStructure.TabStop = false; - this.groupDocumentStructure.Text = "Document Structure"; + this.pictureBox3.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox3.Image"))); + this.pictureBox3.InitialImage = null; + this.pictureBox3.Location = new System.Drawing.Point(10, 210); + this.pictureBox3.Margin = new System.Windows.Forms.Padding(5); + this.pictureBox3.Name = "pictureBox3"; + this.pictureBox3.Size = new System.Drawing.Size(222, 75); + this.pictureBox3.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom; + this.pictureBox3.TabIndex = 1; + this.pictureBox3.TabStop = false; // - // listDocumentStructure + // lblClearit // - this.listDocumentStructure.BackColor = System.Drawing.SystemColors.Window; - this.listDocumentStructure.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.listDocumentStructure.FormattingEnabled = true; - this.listDocumentStructure.ItemHeight = 16; - this.listDocumentStructure.Location = new System.Drawing.Point(3, 17); - this.listDocumentStructure.Name = "listDocumentStructure"; - this.listDocumentStructure.SelectionMode = System.Windows.Forms.SelectionMode.MultiSimple; - this.listDocumentStructure.Size = new System.Drawing.Size(130, 196); - this.listDocumentStructure.TabIndex = 1; + this.lblClearit.Dock = System.Windows.Forms.DockStyle.Fill; + this.lblClearit.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Italic, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.lblClearit.ForeColor = System.Drawing.Color.Blue; + this.lblClearit.Location = new System.Drawing.Point(5, 31); + this.lblClearit.Margin = new System.Windows.Forms.Padding(5, 0, 5, 0); + this.lblClearit.Name = "lblClearit"; + this.lblClearit.Size = new System.Drawing.Size(270, 360); + this.lblClearit.TabIndex = 0; + this.lblClearit.Text = "Click Clearit! to clear all the translated segments based on your selection crite" + + "ria."; // - // panel2 + // groupChange // - this.panel2.Controls.Add(this.labelGenerateDSIComments); - this.panel2.Controls.Add(this.btnGenerateDSI); - this.panel2.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.panel2.Location = new System.Drawing.Point(139, 16); - this.panel2.Name = "panel2"; - this.panel2.Size = new System.Drawing.Size(113, 197); - this.panel2.TabIndex = 0; + this.groupChange.Controls.Add(this.groupChangeToStatusOr); + this.groupChange.Controls.Add(this.btnChangeit); + this.groupChange.Controls.Add(this.pictureBox2); + this.groupChange.Controls.Add(this.labelChangeComments); + this.groupChange.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, ((System.Drawing.FontStyle)((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Italic))), System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.groupChange.ForeColor = System.Drawing.Color.Red; + this.groupChange.Location = new System.Drawing.Point(304, 10); + this.groupChange.Margin = new System.Windows.Forms.Padding(5); + this.groupChange.Name = "groupChange"; + this.groupChange.Padding = new System.Windows.Forms.Padding(5); + this.groupChange.Size = new System.Drawing.Size(810, 402); + this.groupChange.TabIndex = 5; + this.groupChange.TabStop = false; + this.groupChange.Text = "Change"; // - // labelGenerateDSIComments + // groupChangeToStatusOr // - this.labelGenerateDSIComments.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Italic, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.labelGenerateDSIComments.ForeColor = System.Drawing.Color.Blue; - this.labelGenerateDSIComments.Location = new System.Drawing.Point(3, 31); - this.labelGenerateDSIComments.Name = "labelGenerateDSIComments"; - this.labelGenerateDSIComments.Size = new System.Drawing.Size(99, 143); - this.labelGenerateDSIComments.TabIndex = 1; - this.labelGenerateDSIComments.Text = "Click \"Generate DSI\" to generate a list of all different types of structure infor" + - "mation used in the selected files. Hold Ctrl key down and select the ones you wa" + - "nt with the mouse."; + this.groupChangeToStatusOr.Controls.Add(this.ckCopySourceToTarget); + this.groupChangeToStatusOr.Controls.Add(this.groupChangeLocked); + this.groupChangeToStatusOr.Controls.Add(this.groupChangeTranslationStatus); + this.groupChangeToStatusOr.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, ((System.Drawing.FontStyle)((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Italic))), System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.groupChangeToStatusOr.ForeColor = System.Drawing.SystemColors.ControlText; + this.groupChangeToStatusOr.Location = new System.Drawing.Point(10, 33); + this.groupChangeToStatusOr.Margin = new System.Windows.Forms.Padding(5); + this.groupChangeToStatusOr.Name = "groupChangeToStatusOr"; + this.groupChangeToStatusOr.Padding = new System.Windows.Forms.Padding(5); + this.groupChangeToStatusOr.Size = new System.Drawing.Size(530, 359); + this.groupChangeToStatusOr.TabIndex = 0; + this.groupChangeToStatusOr.TabStop = false; + this.groupChangeToStatusOr.Text = "Change to Status and/or Lock value"; // - // btnGenerateDSI + // ckCopySourceToTarget // - this.btnGenerateDSI.BackColor = System.Drawing.Color.White; - this.btnGenerateDSI.Location = new System.Drawing.Point(3, 0); - this.btnGenerateDSI.Name = "btnGenerateDSI"; - this.btnGenerateDSI.Size = new System.Drawing.Size(98, 23); - this.btnGenerateDSI.TabIndex = 0; - this.btnGenerateDSI.Text = "Generate DSI"; - this.btnGenerateDSI.UseVisualStyleBackColor = false; - this.btnGenerateDSI.Click += new System.EventHandler(this.btnGenerateDSI_Click); + this.ckCopySourceToTarget.AutoSize = true; + this.ckCopySourceToTarget.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.ckCopySourceToTarget.Location = new System.Drawing.Point(282, 156); + this.ckCopySourceToTarget.Margin = new System.Windows.Forms.Padding(5); + this.ckCopySourceToTarget.Name = "ckCopySourceToTarget"; + this.ckCopySourceToTarget.Size = new System.Drawing.Size(224, 29); + this.ckCopySourceToTarget.TabIndex = 2; + this.ckCopySourceToTarget.Text = "Copy source to target"; + this.ckCopySourceToTarget.UseVisualStyleBackColor = true; // - // groupSystem + // groupChangeLocked // - this.groupSystem.Controls.Add(this.ckPropagated); - this.groupSystem.Controls.Add(this.ckSystemTranslationMemory); - this.groupSystem.Controls.Add(this.ckSystemMachineTranslation); - this.groupSystem.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, ((System.Drawing.FontStyle)((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Italic))), System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.groupSystem.Location = new System.Drawing.Point(350, 128); - this.groupSystem.Name = "groupSystem"; - this.groupSystem.Size = new System.Drawing.Size(141, 94); - this.groupSystem.TabIndex = 6; - this.groupSystem.TabStop = false; - this.groupSystem.Text = "System"; + this.groupChangeLocked.Controls.Add(this.ckChangeToUnlocked); + this.groupChangeLocked.Controls.Add(this.ckChangeToLocked); + this.groupChangeLocked.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, ((System.Drawing.FontStyle)((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Italic))), System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.groupChangeLocked.Location = new System.Drawing.Point(271, 35); + this.groupChangeLocked.Margin = new System.Windows.Forms.Padding(5); + this.groupChangeLocked.Name = "groupChangeLocked"; + this.groupChangeLocked.Padding = new System.Windows.Forms.Padding(5); + this.groupChangeLocked.Size = new System.Drawing.Size(245, 110); + this.groupChangeLocked.TabIndex = 1; + this.groupChangeLocked.TabStop = false; + this.groupChangeLocked.Text = "Locked / Unlocked"; // - // ckPropagated + // ckChangeToUnlocked // - this.ckPropagated.AutoSize = true; - this.ckPropagated.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.ckPropagated.Location = new System.Drawing.Point(6, 63); - this.ckPropagated.Name = "ckPropagated"; - this.ckPropagated.Size = new System.Drawing.Size(81, 17); - this.ckPropagated.TabIndex = 4; - this.ckPropagated.Text = "Propagated"; - this.ckPropagated.UseVisualStyleBackColor = true; + this.ckChangeToUnlocked.AutoSize = true; + this.ckChangeToUnlocked.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.ckChangeToUnlocked.Location = new System.Drawing.Point(10, 70); + this.ckChangeToUnlocked.Margin = new System.Windows.Forms.Padding(5); + this.ckChangeToUnlocked.Name = "ckChangeToUnlocked"; + this.ckChangeToUnlocked.Size = new System.Drawing.Size(119, 29); + this.ckChangeToUnlocked.TabIndex = 3; + this.ckChangeToUnlocked.Text = "Unlocked"; + this.ckChangeToUnlocked.UseVisualStyleBackColor = true; + this.ckChangeToUnlocked.CheckedChanged += new System.EventHandler(this.ckChangeToNotTranslated_CheckedChanged); + this.ckChangeToUnlocked.Click += new System.EventHandler(this.ckChangeToNotTranslated_Click); // - // ckSystemTranslationMemory + // ckChangeToLocked // - this.ckSystemTranslationMemory.AutoSize = true; - this.ckSystemTranslationMemory.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.ckSystemTranslationMemory.Location = new System.Drawing.Point(6, 40); - this.ckSystemTranslationMemory.Name = "ckSystemTranslationMemory"; - this.ckSystemTranslationMemory.Size = new System.Drawing.Size(118, 17); - this.ckSystemTranslationMemory.TabIndex = 3; - this.ckSystemTranslationMemory.Text = "Translation Memory"; - this.ckSystemTranslationMemory.UseVisualStyleBackColor = true; + this.ckChangeToLocked.AutoSize = true; + this.ckChangeToLocked.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.ckChangeToLocked.Location = new System.Drawing.Point(10, 33); + this.ckChangeToLocked.Margin = new System.Windows.Forms.Padding(5); + this.ckChangeToLocked.Name = "ckChangeToLocked"; + this.ckChangeToLocked.Size = new System.Drawing.Size(101, 29); + this.ckChangeToLocked.TabIndex = 2; + this.ckChangeToLocked.Text = "Locked"; + this.ckChangeToLocked.UseVisualStyleBackColor = true; + this.ckChangeToLocked.CheckedChanged += new System.EventHandler(this.ckChangeToNotTranslated_CheckedChanged); + this.ckChangeToLocked.Click += new System.EventHandler(this.ckChangeToNotTranslated_Click); // - // ckSystemMachineTranslation + // groupChangeTranslationStatus // - this.ckSystemMachineTranslation.AutoSize = true; - this.ckSystemMachineTranslation.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.ckSystemMachineTranslation.Location = new System.Drawing.Point(6, 19); - this.ckSystemMachineTranslation.Name = "ckSystemMachineTranslation"; - this.ckSystemMachineTranslation.Size = new System.Drawing.Size(122, 17); - this.ckSystemMachineTranslation.TabIndex = 2; - this.ckSystemMachineTranslation.Text = "Machine Translation"; - this.ckSystemMachineTranslation.UseVisualStyleBackColor = true; + this.groupChangeTranslationStatus.Controls.Add(this.ckChangeToSignedOff); + this.groupChangeTranslationStatus.Controls.Add(this.ckChangeToSignOffRejected); + this.groupChangeTranslationStatus.Controls.Add(this.ckChangeToTranslationApproved); + this.groupChangeTranslationStatus.Controls.Add(this.ckChangeToTranslationRejected); + this.groupChangeTranslationStatus.Controls.Add(this.ckChangeToTranslated); + this.groupChangeTranslationStatus.Controls.Add(this.ckChangeToDraft); + this.groupChangeTranslationStatus.Controls.Add(this.ckChangeToNotTranslated); + this.groupChangeTranslationStatus.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, ((System.Drawing.FontStyle)((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Italic))), System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.groupChangeTranslationStatus.Location = new System.Drawing.Point(10, 35); + this.groupChangeTranslationStatus.Margin = new System.Windows.Forms.Padding(5); + this.groupChangeTranslationStatus.Name = "groupChangeTranslationStatus"; + this.groupChangeTranslationStatus.Padding = new System.Windows.Forms.Padding(5); + this.groupChangeTranslationStatus.Size = new System.Drawing.Size(250, 313); + this.groupChangeTranslationStatus.TabIndex = 0; + this.groupChangeTranslationStatus.TabStop = false; + this.groupChangeTranslationStatus.Text = "Translation Status"; // - // groupTranslationOrigin + // ckChangeToSignedOff // - this.groupTranslationOrigin.Controls.Add(this.ckNeuralMachineTranslation); - this.groupTranslationOrigin.Controls.Add(this.ckAutoPropagated); - this.groupTranslationOrigin.Controls.Add(this.ckAutomatedTranslation); - this.groupTranslationOrigin.Controls.Add(this.ckInteractive); - this.groupTranslationOrigin.Controls.Add(this.ckTranslationMemory); - this.groupTranslationOrigin.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, ((System.Drawing.FontStyle)((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Italic))), System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.groupTranslationOrigin.Location = new System.Drawing.Point(350, 6); - this.groupTranslationOrigin.Name = "groupTranslationOrigin"; - this.groupTranslationOrigin.Size = new System.Drawing.Size(141, 126); - this.groupTranslationOrigin.TabIndex = 5; - this.groupTranslationOrigin.TabStop = false; - this.groupTranslationOrigin.Text = "Translation Origin"; + this.ckChangeToSignedOff.AutoSize = true; + this.ckChangeToSignedOff.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.ckChangeToSignedOff.Location = new System.Drawing.Point(10, 233); + this.ckChangeToSignedOff.Margin = new System.Windows.Forms.Padding(5); + this.ckChangeToSignedOff.Name = "ckChangeToSignedOff"; + this.ckChangeToSignedOff.Size = new System.Drawing.Size(130, 29); + this.ckChangeToSignedOff.TabIndex = 6; + this.ckChangeToSignedOff.Text = "Signed Off"; + this.ckChangeToSignedOff.UseVisualStyleBackColor = true; + this.ckChangeToSignedOff.CheckedChanged += new System.EventHandler(this.ckChangeToNotTranslated_CheckedChanged); + this.ckChangeToSignedOff.Click += new System.EventHandler(this.ckChangeToNotTranslated_Click); // - // ckNeuralMachineTranslation + // ckChangeToSignOffRejected // - this.ckNeuralMachineTranslation.AutoSize = true; - this.ckNeuralMachineTranslation.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.ckNeuralMachineTranslation.Location = new System.Drawing.Point(6, 96); - this.ckNeuralMachineTranslation.Name = "ckNeuralMachineTranslation"; - this.ckNeuralMachineTranslation.Size = new System.Drawing.Size(76, 17); - this.ckNeuralMachineTranslation.TabIndex = 4; - this.ckNeuralMachineTranslation.Text = "Neural MT"; - this.ckNeuralMachineTranslation.UseVisualStyleBackColor = true; + this.ckChangeToSignOffRejected.AutoSize = true; + this.ckChangeToSignOffRejected.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.ckChangeToSignOffRejected.Location = new System.Drawing.Point(10, 273); + this.ckChangeToSignOffRejected.Margin = new System.Windows.Forms.Padding(5); + this.ckChangeToSignOffRejected.Name = "ckChangeToSignOffRejected"; + this.ckChangeToSignOffRejected.Size = new System.Drawing.Size(186, 29); + this.ckChangeToSignOffRejected.TabIndex = 5; + this.ckChangeToSignOffRejected.Text = "Sign-off Rejected"; + this.ckChangeToSignOffRejected.UseVisualStyleBackColor = true; + this.ckChangeToSignOffRejected.CheckedChanged += new System.EventHandler(this.ckChangeToNotTranslated_CheckedChanged); + this.ckChangeToSignOffRejected.Click += new System.EventHandler(this.ckChangeToNotTranslated_Click); // - // ckAutoPropagated + // ckChangeToTranslationApproved // - this.ckAutoPropagated.AutoSize = true; - this.ckAutoPropagated.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.ckAutoPropagated.Location = new System.Drawing.Point(6, 76); - this.ckAutoPropagated.Name = "ckAutoPropagated"; - this.ckAutoPropagated.Size = new System.Drawing.Size(106, 17); - this.ckAutoPropagated.TabIndex = 3; - this.ckAutoPropagated.Text = "Auto-Propagated"; - this.ckAutoPropagated.UseVisualStyleBackColor = true; + this.ckChangeToTranslationApproved.AutoSize = true; + this.ckChangeToTranslationApproved.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.ckChangeToTranslationApproved.Location = new System.Drawing.Point(10, 191); + this.ckChangeToTranslationApproved.Margin = new System.Windows.Forms.Padding(5); + this.ckChangeToTranslationApproved.Name = "ckChangeToTranslationApproved"; + this.ckChangeToTranslationApproved.Size = new System.Drawing.Size(224, 29); + this.ckChangeToTranslationApproved.TabIndex = 4; + this.ckChangeToTranslationApproved.Text = "Translation Approved"; + this.ckChangeToTranslationApproved.UseVisualStyleBackColor = true; + this.ckChangeToTranslationApproved.CheckedChanged += new System.EventHandler(this.ckChangeToNotTranslated_CheckedChanged); + this.ckChangeToTranslationApproved.Click += new System.EventHandler(this.ckChangeToNotTranslated_Click); // - // ckAutomatedTranslation + // ckChangeToTranslationRejected // - this.ckAutomatedTranslation.AutoSize = true; - this.ckAutomatedTranslation.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.ckAutomatedTranslation.Location = new System.Drawing.Point(6, 57); - this.ckAutomatedTranslation.Name = "ckAutomatedTranslation"; - this.ckAutomatedTranslation.Size = new System.Drawing.Size(132, 17); - this.ckAutomatedTranslation.TabIndex = 2; - this.ckAutomatedTranslation.Text = "Automated Translation"; - this.ckAutomatedTranslation.UseVisualStyleBackColor = true; + this.ckChangeToTranslationRejected.AutoSize = true; + this.ckChangeToTranslationRejected.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.ckChangeToTranslationRejected.Location = new System.Drawing.Point(10, 150); + this.ckChangeToTranslationRejected.Margin = new System.Windows.Forms.Padding(5); + this.ckChangeToTranslationRejected.Name = "ckChangeToTranslationRejected"; + this.ckChangeToTranslationRejected.Size = new System.Drawing.Size(215, 29); + this.ckChangeToTranslationRejected.TabIndex = 3; + this.ckChangeToTranslationRejected.Text = "Translation Rejected"; + this.ckChangeToTranslationRejected.UseVisualStyleBackColor = true; + this.ckChangeToTranslationRejected.CheckedChanged += new System.EventHandler(this.ckChangeToNotTranslated_CheckedChanged); + this.ckChangeToTranslationRejected.Click += new System.EventHandler(this.ckChangeToNotTranslated_Click); // - // ckInteractive + // ckChangeToTranslated // - this.ckInteractive.AutoSize = true; - this.ckInteractive.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.ckInteractive.Location = new System.Drawing.Point(6, 37); - this.ckInteractive.Name = "ckInteractive"; - this.ckInteractive.Size = new System.Drawing.Size(76, 17); - this.ckInteractive.TabIndex = 1; - this.ckInteractive.Text = "Interactive"; - this.ckInteractive.UseVisualStyleBackColor = true; + this.ckChangeToTranslated.AutoSize = true; + this.ckChangeToTranslated.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.ckChangeToTranslated.Location = new System.Drawing.Point(10, 110); + this.ckChangeToTranslated.Margin = new System.Windows.Forms.Padding(5); + this.ckChangeToTranslated.Name = "ckChangeToTranslated"; + this.ckChangeToTranslated.Size = new System.Drawing.Size(130, 29); + this.ckChangeToTranslated.TabIndex = 2; + this.ckChangeToTranslated.Text = "Translated"; + this.ckChangeToTranslated.UseVisualStyleBackColor = true; + this.ckChangeToTranslated.CheckedChanged += new System.EventHandler(this.ckChangeToNotTranslated_CheckedChanged); + this.ckChangeToTranslated.Click += new System.EventHandler(this.ckChangeToNotTranslated_Click); // - // ckTranslationMemory + // ckChangeToDraft // - this.ckTranslationMemory.AutoSize = true; - this.ckTranslationMemory.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.ckTranslationMemory.Location = new System.Drawing.Point(6, 19); - this.ckTranslationMemory.Name = "ckTranslationMemory"; - this.ckTranslationMemory.Size = new System.Drawing.Size(118, 17); - this.ckTranslationMemory.TabIndex = 0; - this.ckTranslationMemory.Text = "Translation Memory"; - this.ckTranslationMemory.UseVisualStyleBackColor = true; + this.ckChangeToDraft.AutoSize = true; + this.ckChangeToDraft.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.ckChangeToDraft.Location = new System.Drawing.Point(10, 70); + this.ckChangeToDraft.Margin = new System.Windows.Forms.Padding(5); + this.ckChangeToDraft.Name = "ckChangeToDraft"; + this.ckChangeToDraft.Size = new System.Drawing.Size(78, 29); + this.ckChangeToDraft.TabIndex = 1; + this.ckChangeToDraft.Text = "Draft"; + this.ckChangeToDraft.UseVisualStyleBackColor = true; + this.ckChangeToDraft.CheckedChanged += new System.EventHandler(this.ckChangeToNotTranslated_CheckedChanged); + this.ckChangeToDraft.Click += new System.EventHandler(this.ckChangeToNotTranslated_Click); // - // groupScore + // ckChangeToNotTranslated // - this.groupScore.Controls.Add(this.txtMatchValuesExpression); - this.groupScore.Controls.Add(this.ckMatchValues); - this.groupScore.Controls.Add(this.ckContextMatch); - this.groupScore.Controls.Add(this.ckPerfectMatch); - this.groupScore.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, ((System.Drawing.FontStyle)((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Italic))), System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.groupScore.Location = new System.Drawing.Point(187, 6); - this.groupScore.Name = "groupScore"; - this.groupScore.Size = new System.Drawing.Size(153, 116); - this.groupScore.TabIndex = 4; - this.groupScore.TabStop = false; - this.groupScore.Text = "Score"; + this.ckChangeToNotTranslated.AutoSize = true; + this.ckChangeToNotTranslated.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.ckChangeToNotTranslated.Location = new System.Drawing.Point(10, 33); + this.ckChangeToNotTranslated.Margin = new System.Windows.Forms.Padding(5); + this.ckChangeToNotTranslated.Name = "ckChangeToNotTranslated"; + this.ckChangeToNotTranslated.Size = new System.Drawing.Size(157, 29); + this.ckChangeToNotTranslated.TabIndex = 0; + this.ckChangeToNotTranslated.Text = "Not translated"; + this.ckChangeToNotTranslated.UseVisualStyleBackColor = true; + this.ckChangeToNotTranslated.CheckedChanged += new System.EventHandler(this.ckChangeToNotTranslated_CheckedChanged); + this.ckChangeToNotTranslated.Click += new System.EventHandler(this.ckChangeToNotTranslated_Click); // - // txtMatchValuesExpression + // btnChangeit // - this.txtMatchValuesExpression.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.txtMatchValuesExpression.Location = new System.Drawing.Point(5, 83); - this.txtMatchValuesExpression.Name = "txtMatchValuesExpression"; - this.txtMatchValuesExpression.Size = new System.Drawing.Size(122, 20); - this.txtMatchValuesExpression.TabIndex = 5; - this.txtMatchValuesExpression.Text = "<95"; + this.btnChangeit.BackColor = System.Drawing.SystemColors.Control; + this.btnChangeit.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.btnChangeit.ForeColor = System.Drawing.Color.Red; + this.btnChangeit.Location = new System.Drawing.Point(551, 299); + this.btnChangeit.Margin = new System.Windows.Forms.Padding(5); + this.btnChangeit.Name = "btnChangeit"; + this.btnChangeit.Size = new System.Drawing.Size(242, 86); + this.btnChangeit.TabIndex = 5; + this.btnChangeit.Text = "Changeit!"; + this.btnChangeit.UseVisualStyleBackColor = false; + this.btnChangeit.Click += new System.EventHandler(this.btnChangeit_Click); // - // ckMatchValues + // pictureBox2 // - this.ckMatchValues.AutoSize = true; - this.ckMatchValues.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.ckMatchValues.Location = new System.Drawing.Point(6, 63); - this.ckMatchValues.Name = "ckMatchValues"; - this.ckMatchValues.Size = new System.Drawing.Size(97, 17); - this.ckMatchValues.TabIndex = 4; - this.ckMatchValues.Text = "Match Value(s)"; - this.ckMatchValues.UseVisualStyleBackColor = true; + this.pictureBox2.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox2.Image"))); + this.pictureBox2.InitialImage = null; + this.pictureBox2.Location = new System.Drawing.Point(551, 217); + this.pictureBox2.Margin = new System.Windows.Forms.Padding(5); + this.pictureBox2.Name = "pictureBox2"; + this.pictureBox2.Size = new System.Drawing.Size(242, 75); + this.pictureBox2.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom; + this.pictureBox2.TabIndex = 4; + this.pictureBox2.TabStop = false; // - // ckContextMatch + // labelChangeComments // - this.ckContextMatch.AutoSize = true; - this.ckContextMatch.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.ckContextMatch.Location = new System.Drawing.Point(6, 40); - this.ckContextMatch.Name = "ckContextMatch"; - this.ckContextMatch.Size = new System.Drawing.Size(95, 17); - this.ckContextMatch.TabIndex = 3; - this.ckContextMatch.Text = "Context Match"; - this.ckContextMatch.UseVisualStyleBackColor = true; + this.labelChangeComments.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Italic, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.labelChangeComments.ForeColor = System.Drawing.Color.Blue; + this.labelChangeComments.Location = new System.Drawing.Point(556, 35); + this.labelChangeComments.Margin = new System.Windows.Forms.Padding(5, 0, 5, 0); + this.labelChangeComments.Name = "labelChangeComments"; + this.labelChangeComments.Size = new System.Drawing.Size(236, 144); + this.labelChangeComments.TabIndex = 3; + this.labelChangeComments.Text = "Click Changeit! to change the selected segments, to a specific Translation Status" + + " or to lock or unlock them."; // - // ckPerfectMatch + // groupSlice // - this.ckPerfectMatch.AutoSize = true; - this.ckPerfectMatch.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.ckPerfectMatch.Location = new System.Drawing.Point(6, 19); - this.ckPerfectMatch.Name = "ckPerfectMatch"; - this.ckPerfectMatch.Size = new System.Drawing.Size(93, 17); - this.ckPerfectMatch.TabIndex = 2; - this.ckPerfectMatch.Text = "Perfect Match"; - this.ckPerfectMatch.UseVisualStyleBackColor = true; + this.groupSlice.Controls.Add(this.ckMerge); + this.groupSlice.Controls.Add(this.btnSliceit); + this.groupSlice.Controls.Add(this.pictureBox1); + this.groupSlice.Controls.Add(this.labelSliceComments); + this.groupSlice.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, ((System.Drawing.FontStyle)((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Italic))), System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.groupSlice.ForeColor = System.Drawing.Color.Red; + this.groupSlice.Location = new System.Drawing.Point(7, 12); + this.groupSlice.Margin = new System.Windows.Forms.Padding(5); + this.groupSlice.Name = "groupSlice"; + this.groupSlice.Padding = new System.Windows.Forms.Padding(5); + this.groupSlice.Size = new System.Drawing.Size(287, 401); + this.groupSlice.TabIndex = 4; + this.groupSlice.TabStop = false; + this.groupSlice.Text = "Slice"; // - // groupStatusesLocked + // ckMerge // - this.groupStatusesLocked.Controls.Add(this.ckUnlocked); - this.groupStatusesLocked.Controls.Add(this.ckLocked); - this.groupStatusesLocked.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, ((System.Drawing.FontStyle)((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Italic))), System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.groupStatusesLocked.Location = new System.Drawing.Point(187, 128); - this.groupStatusesLocked.Name = "groupStatusesLocked"; - this.groupStatusesLocked.Size = new System.Drawing.Size(153, 94); - this.groupStatusesLocked.TabIndex = 2; - this.groupStatusesLocked.TabStop = false; - this.groupStatusesLocked.Text = "Locked / Unlocked"; + this.ckMerge.AutoSize = true; + this.ckMerge.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.ckMerge.ForeColor = System.Drawing.Color.Black; + this.ckMerge.Location = new System.Drawing.Point(16, 180); + this.ckMerge.Margin = new System.Windows.Forms.Padding(5); + this.ckMerge.Name = "ckMerge"; + this.ckMerge.Size = new System.Drawing.Size(249, 29); + this.ckMerge.TabIndex = 3; + this.ckMerge.Text = "Merge result into one file"; + this.ckMerge.UseVisualStyleBackColor = true; // - // ckUnlocked + // btnSliceit // - this.ckUnlocked.AutoSize = true; - this.ckUnlocked.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.ckUnlocked.Location = new System.Drawing.Point(6, 40); - this.ckUnlocked.Name = "ckUnlocked"; - this.ckUnlocked.Size = new System.Drawing.Size(72, 17); - this.ckUnlocked.TabIndex = 3; - this.ckUnlocked.Text = "Unlocked"; - this.ckUnlocked.UseVisualStyleBackColor = true; + this.btnSliceit.BackColor = System.Drawing.SystemColors.Control; + this.btnSliceit.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.btnSliceit.ForeColor = System.Drawing.Color.Red; + this.btnSliceit.Location = new System.Drawing.Point(28, 299); + this.btnSliceit.Margin = new System.Windows.Forms.Padding(5); + this.btnSliceit.Name = "btnSliceit"; + this.btnSliceit.Size = new System.Drawing.Size(242, 86); + this.btnSliceit.TabIndex = 2; + this.btnSliceit.Text = "Sliceit!"; + this.btnSliceit.UseVisualStyleBackColor = false; + this.btnSliceit.Click += new System.EventHandler(this.btnSliceit_Click); // - // ckLocked + // pictureBox1 // - this.ckLocked.AutoSize = true; - this.ckLocked.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.ckLocked.Location = new System.Drawing.Point(6, 19); - this.ckLocked.Name = "ckLocked"; - this.ckLocked.Size = new System.Drawing.Size(62, 17); - this.ckLocked.TabIndex = 2; - this.ckLocked.Text = "Locked"; - this.ckLocked.UseVisualStyleBackColor = true; + this.pictureBox1.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox1.Image"))); + this.pictureBox1.InitialImage = null; + this.pictureBox1.Location = new System.Drawing.Point(28, 217); + this.pictureBox1.Margin = new System.Windows.Forms.Padding(5); + this.pictureBox1.Name = "pictureBox1"; + this.pictureBox1.Size = new System.Drawing.Size(242, 75); + this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom; + this.pictureBox1.TabIndex = 1; + this.pictureBox1.TabStop = false; // - // groupStatusesTranslationStatus + // labelSliceComments // - this.groupStatusesTranslationStatus.Controls.Add(this.ckSignedOff); - this.groupStatusesTranslationStatus.Controls.Add(this.ckSignOffRejected); - this.groupStatusesTranslationStatus.Controls.Add(this.ckTranslationApproved); - this.groupStatusesTranslationStatus.Controls.Add(this.ckTranslationRejected); - this.groupStatusesTranslationStatus.Controls.Add(this.ckTranslated); - this.groupStatusesTranslationStatus.Controls.Add(this.ckDraft); - this.groupStatusesTranslationStatus.Controls.Add(this.ckNotTranslated); - this.groupStatusesTranslationStatus.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, ((System.Drawing.FontStyle)((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Italic))), System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.groupStatusesTranslationStatus.Location = new System.Drawing.Point(6, 6); - this.groupStatusesTranslationStatus.Name = "groupStatusesTranslationStatus"; - this.groupStatusesTranslationStatus.Size = new System.Drawing.Size(172, 216); - this.groupStatusesTranslationStatus.TabIndex = 1; - this.groupStatusesTranslationStatus.TabStop = false; - this.groupStatusesTranslationStatus.Text = "Translation Status"; + this.labelSliceComments.Dock = System.Windows.Forms.DockStyle.Fill; + this.labelSliceComments.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Italic, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.labelSliceComments.ForeColor = System.Drawing.Color.Blue; + this.labelSliceComments.Location = new System.Drawing.Point(5, 31); + this.labelSliceComments.Margin = new System.Windows.Forms.Padding(5, 0, 5, 0); + this.labelSliceComments.Name = "labelSliceComments"; + this.labelSliceComments.Size = new System.Drawing.Size(277, 365); + this.labelSliceComments.TabIndex = 0; + this.labelSliceComments.Text = "Click Sliceit! to create a new SDLXLIFF file based on your selection criteria. Yo" + + "u can add this file to your Project or share it with others to handle specific s" + + "egments first."; // - // ckSignedOff + // panelStatus // - this.ckSignedOff.AutoSize = true; - this.ckSignedOff.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.ckSignedOff.Location = new System.Drawing.Point(6, 155); - this.ckSignedOff.Name = "ckSignedOff"; - this.ckSignedOff.Size = new System.Drawing.Size(76, 17); - this.ckSignedOff.TabIndex = 6; - this.ckSignedOff.Text = "Signed Off"; - this.ckSignedOff.UseVisualStyleBackColor = true; + this.panelStatus.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom))); + this.panelStatus.Controls.Add(this.CancelButton); + this.panelStatus.Controls.Add(this.progressBar); + this.panelStatus.Location = new System.Drawing.Point(5, 1373); + this.panelStatus.Margin = new System.Windows.Forms.Padding(5); + this.panelStatus.Name = "panelStatus"; + this.panelStatus.Size = new System.Drawing.Size(1425, 475); + this.panelStatus.TabIndex = 10; // - // ckSignOffRejected + // CancelButton // - this.ckSignOffRejected.AutoSize = true; - this.ckSignOffRejected.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.ckSignOffRejected.Location = new System.Drawing.Point(6, 132); - this.ckSignOffRejected.Name = "ckSignOffRejected"; - this.ckSignOffRejected.Size = new System.Drawing.Size(108, 17); - this.ckSignOffRejected.TabIndex = 5; - this.ckSignOffRejected.Text = "Sign-off Rejected"; - this.ckSignOffRejected.UseVisualStyleBackColor = true; + this.CancelButton.BackColor = System.Drawing.SystemColors.Control; + this.CancelButton.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.CancelButton.ForeColor = System.Drawing.Color.Red; + this.CancelButton.Location = new System.Drawing.Point(1144, 14); + this.CancelButton.Margin = new System.Windows.Forms.Padding(5); + this.CancelButton.Name = "CancelButton"; + this.CancelButton.Size = new System.Drawing.Size(271, 59); + this.CancelButton.TabIndex = 4; + this.CancelButton.Text = "Cancel"; + this.CancelButton.UseVisualStyleBackColor = false; + this.CancelButton.Click += new System.EventHandler(this.CancelButton_Click); // - // ckTranslationApproved + // progressBar // - this.ckTranslationApproved.AutoSize = true; - this.ckTranslationApproved.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.ckTranslationApproved.Location = new System.Drawing.Point(6, 109); - this.ckTranslationApproved.Name = "ckTranslationApproved"; - this.ckTranslationApproved.Size = new System.Drawing.Size(127, 17); - this.ckTranslationApproved.TabIndex = 4; - this.ckTranslationApproved.Text = "Translation Approved"; - this.ckTranslationApproved.UseVisualStyleBackColor = true; + this.progressBar.Location = new System.Drawing.Point(23, 37); + this.progressBar.Margin = new System.Windows.Forms.Padding(5); + this.progressBar.MarqueeAnimationSpeed = 10; + this.progressBar.Name = "progressBar"; + this.progressBar.Size = new System.Drawing.Size(1097, 24); + this.progressBar.Style = System.Windows.Forms.ProgressBarStyle.Marquee; + this.progressBar.TabIndex = 8; // - // ckTranslationRejected + // tabControl1 // - this.ckTranslationRejected.AutoSize = true; - this.ckTranslationRejected.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.ckTranslationRejected.Location = new System.Drawing.Point(6, 86); - this.ckTranslationRejected.Name = "ckTranslationRejected"; - this.ckTranslationRejected.Size = new System.Drawing.Size(124, 17); - this.ckTranslationRejected.TabIndex = 3; - this.ckTranslationRejected.Text = "Translation Rejected"; - this.ckTranslationRejected.UseVisualStyleBackColor = true; + this.tabControl1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom))); + this.tabControl1.Controls.Add(this.pageStatuses); + this.tabControl1.Controls.Add(this.pageSearch); + this.tabControl1.Controls.Add(this.pageReplace); + this.tabControl1.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, ((System.Drawing.FontStyle)((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Italic))), System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.tabControl1.Location = new System.Drawing.Point(15, 447); + this.tabControl1.Margin = new System.Windows.Forms.Padding(5); + this.tabControl1.Name = "tabControl1"; + this.tabControl1.SelectedIndex = 0; + this.tabControl1.Size = new System.Drawing.Size(1405, 488); + this.tabControl1.TabIndex = 8; + this.tabControl1.SelectedIndexChanged += new System.EventHandler(this.tabControl1_SelectedIndexChanged); // - // ckTranslated + // pageStatuses // - this.ckTranslated.AutoSize = true; - this.ckTranslated.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.ckTranslated.Location = new System.Drawing.Point(6, 63); - this.ckTranslated.Name = "ckTranslated"; - this.ckTranslated.Size = new System.Drawing.Size(76, 17); - this.ckTranslated.TabIndex = 2; - this.ckTranslated.Text = "Translated"; - this.ckTranslated.UseVisualStyleBackColor = true; + this.pageStatuses.BackColor = System.Drawing.SystemColors.Window; + this.pageStatuses.Controls.Add(this.btnReverseSelection); + this.pageStatuses.Controls.Add(this.groupDocumentStructure); + this.pageStatuses.Controls.Add(this.groupSystem); + this.pageStatuses.Controls.Add(this.groupTranslationOrigin); + this.pageStatuses.Controls.Add(this.groupScore); + this.pageStatuses.Controls.Add(this.groupStatusesLocked); + this.pageStatuses.Controls.Add(this.groupStatusesTranslationStatus); + this.pageStatuses.Location = new System.Drawing.Point(4, 34); + this.pageStatuses.Margin = new System.Windows.Forms.Padding(5); + this.pageStatuses.Name = "pageStatuses"; + this.pageStatuses.Padding = new System.Windows.Forms.Padding(5); + this.pageStatuses.Size = new System.Drawing.Size(1397, 450); + this.pageStatuses.TabIndex = 0; + this.pageStatuses.Text = "Statuses"; // - // ckDraft + // btnReverseSelection // - this.ckDraft.AutoSize = true; - this.ckDraft.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.ckDraft.Location = new System.Drawing.Point(6, 40); - this.ckDraft.Name = "ckDraft"; - this.ckDraft.Size = new System.Drawing.Size(49, 17); - this.ckDraft.TabIndex = 1; - this.ckDraft.Text = "Draft"; - this.ckDraft.UseVisualStyleBackColor = true; + this.btnReverseSelection.BackColor = System.Drawing.Color.White; + this.btnReverseSelection.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.btnReverseSelection.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft; + this.btnReverseSelection.Location = new System.Drawing.Point(10, 392); + this.btnReverseSelection.Margin = new System.Windows.Forms.Padding(5); + this.btnReverseSelection.Name = "btnReverseSelection"; + this.btnReverseSelection.Size = new System.Drawing.Size(301, 40); + this.btnReverseSelection.TabIndex = 8; + this.btnReverseSelection.Text = "Reverse selection"; + this.btnReverseSelection.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; + this.btnReverseSelection.UseVisualStyleBackColor = false; + this.btnReverseSelection.Click += new System.EventHandler(this.btnReverseSelection_Click); // - // ckNotTranslated + // groupDocumentStructure // - this.ckNotTranslated.AutoSize = true; - this.ckNotTranslated.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.ckNotTranslated.Location = new System.Drawing.Point(6, 19); - this.ckNotTranslated.Name = "ckNotTranslated"; - this.ckNotTranslated.Size = new System.Drawing.Size(92, 17); - this.ckNotTranslated.TabIndex = 0; - this.ckNotTranslated.Text = "Not translated"; - this.ckNotTranslated.UseVisualStyleBackColor = true; + this.groupDocumentStructure.Controls.Add(this.listDocumentStructure); + this.groupDocumentStructure.Controls.Add(this.panel2); + this.groupDocumentStructure.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, ((System.Drawing.FontStyle)((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Italic))), System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.groupDocumentStructure.Location = new System.Drawing.Point(864, 10); + this.groupDocumentStructure.Margin = new System.Windows.Forms.Padding(5); + this.groupDocumentStructure.Name = "groupDocumentStructure"; + this.groupDocumentStructure.Padding = new System.Windows.Forms.Padding(5); + this.groupDocumentStructure.Size = new System.Drawing.Size(494, 378); + this.groupDocumentStructure.TabIndex = 7; + this.groupDocumentStructure.TabStop = false; + this.groupDocumentStructure.Text = "Document Structure"; // - // pageSearch + // listDocumentStructure // - this.pageSearch.Controls.Add(this.btnExpandSearchResults); - this.pageSearch.Controls.Add(this.btnFindAll); - this.pageSearch.Controls.Add(this.gridSearchResults); - this.pageSearch.Controls.Add(this.groupOptions); - this.pageSearch.Controls.Add(this.groupSearch); - this.pageSearch.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.pageSearch.ForeColor = System.Drawing.SystemColors.ControlText; - this.pageSearch.Location = new System.Drawing.Point(4, 24); - this.pageSearch.Name = "pageSearch"; - this.pageSearch.Padding = new System.Windows.Forms.Padding(3); - this.pageSearch.Size = new System.Drawing.Size(795, 251); - this.pageSearch.TabIndex = 1; - this.pageSearch.Text = "Search"; - this.pageSearch.UseVisualStyleBackColor = true; + this.listDocumentStructure.BackColor = System.Drawing.SystemColors.Window; + this.listDocumentStructure.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.listDocumentStructure.FormattingEnabled = true; + this.listDocumentStructure.ItemHeight = 29; + this.listDocumentStructure.Location = new System.Drawing.Point(5, 30); + this.listDocumentStructure.Margin = new System.Windows.Forms.Padding(5); + this.listDocumentStructure.Name = "listDocumentStructure"; + this.listDocumentStructure.SelectionMode = System.Windows.Forms.SelectionMode.MultiSimple; + this.listDocumentStructure.Size = new System.Drawing.Size(224, 323); + this.listDocumentStructure.TabIndex = 1; // - // btnExpandSearchResults + // panel2 // - this.btnExpandSearchResults.Image = ((System.Drawing.Image)(resources.GetObject("btnExpandSearchResults.Image"))); - this.btnExpandSearchResults.Location = new System.Drawing.Point(745, 96); - this.btnExpandSearchResults.Name = "btnExpandSearchResults"; - this.btnExpandSearchResults.Size = new System.Drawing.Size(30, 27); - this.btnExpandSearchResults.TabIndex = 9; - this.btnExpandSearchResults.UseVisualStyleBackColor = true; - this.btnExpandSearchResults.Click += new System.EventHandler(this.btnExpandSearchResults_Click); + this.panel2.Controls.Add(this.labelGenerateDSIComments); + this.panel2.Controls.Add(this.btnGenerateDSI); + this.panel2.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.panel2.Location = new System.Drawing.Point(243, 28); + this.panel2.Margin = new System.Windows.Forms.Padding(5); + this.panel2.Name = "panel2"; + this.panel2.Size = new System.Drawing.Size(198, 345); + this.panel2.TabIndex = 0; // - // btnFindAll + // labelGenerateDSIComments // - this.btnFindAll.BackColor = System.Drawing.SystemColors.Window; - this.btnFindAll.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.btnFindAll.Location = new System.Drawing.Point(3, 201); - this.btnFindAll.Name = "btnFindAll"; - this.btnFindAll.Size = new System.Drawing.Size(154, 42); - this.btnFindAll.TabIndex = 8; - this.btnFindAll.Text = "Find All"; - this.btnFindAll.UseVisualStyleBackColor = false; - this.btnFindAll.Click += new System.EventHandler(this.btnFindAll_Click); + this.labelGenerateDSIComments.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Italic, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.labelGenerateDSIComments.ForeColor = System.Drawing.Color.Blue; + this.labelGenerateDSIComments.Location = new System.Drawing.Point(5, 54); + this.labelGenerateDSIComments.Margin = new System.Windows.Forms.Padding(5, 0, 5, 0); + this.labelGenerateDSIComments.Name = "labelGenerateDSIComments"; + this.labelGenerateDSIComments.Size = new System.Drawing.Size(173, 250); + this.labelGenerateDSIComments.TabIndex = 1; + this.labelGenerateDSIComments.Text = "Click \"Generate DSI\" to generate a list of all different types of structure infor" + + "mation used in the selected files. Hold Ctrl key down and select the ones you wa" + + "nt with the mouse."; // - // gridSearchResults + // btnGenerateDSI // - this.gridSearchResults.AllowUserToAddRows = false; - this.gridSearchResults.AllowUserToDeleteRows = false; - this.gridSearchResults.AllowUserToResizeRows = false; - this.gridSearchResults.BackgroundColor = System.Drawing.SystemColors.Window; - this.gridSearchResults.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; - this.gridSearchResults.GridColor = System.Drawing.SystemColors.Control; - this.gridSearchResults.Location = new System.Drawing.Point(163, 96); - this.gridSearchResults.Name = "gridSearchResults"; - this.gridSearchResults.RowHeadersVisible = false; - this.gridSearchResults.Size = new System.Drawing.Size(612, 151); - this.gridSearchResults.TabIndex = 7; - this.gridSearchResults.VirtualMode = true; - this.gridSearchResults.CellValueNeeded += new System.Windows.Forms.DataGridViewCellValueEventHandler(this.gridSearchResults_CellValueNeeded); - this.gridSearchResults.DataBindingComplete += new System.Windows.Forms.DataGridViewBindingCompleteEventHandler(this.gridSearchResults_DataBindingComplete); + this.btnGenerateDSI.BackColor = System.Drawing.Color.White; + this.btnGenerateDSI.Location = new System.Drawing.Point(5, 0); + this.btnGenerateDSI.Margin = new System.Windows.Forms.Padding(5); + this.btnGenerateDSI.Name = "btnGenerateDSI"; + this.btnGenerateDSI.Size = new System.Drawing.Size(172, 40); + this.btnGenerateDSI.TabIndex = 0; + this.btnGenerateDSI.Text = "Generate DSI"; + this.btnGenerateDSI.UseVisualStyleBackColor = false; + this.btnGenerateDSI.Click += new System.EventHandler(this.btnGenerateDSI_Click); // - // groupOptions + // groupSystem // - this.groupOptions.Controls.Add(this.ckSearchInTags); - this.groupOptions.Controls.Add(this.ckSearchRegEx); - this.groupOptions.Controls.Add(this.ckSearchMatchWholeWord); - this.groupOptions.Controls.Add(this.ckSearchMatchCase); - this.groupOptions.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, ((System.Drawing.FontStyle)((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Italic))), System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.groupOptions.Location = new System.Drawing.Point(7, 87); - this.groupOptions.Name = "groupOptions"; - this.groupOptions.Size = new System.Drawing.Size(154, 110); - this.groupOptions.TabIndex = 6; - this.groupOptions.TabStop = false; - this.groupOptions.Text = "Options"; + this.groupSystem.Controls.Add(this.ckPropagated); + this.groupSystem.Controls.Add(this.ckSystemTranslationMemory); + this.groupSystem.Controls.Add(this.ckSystemMachineTranslation); + this.groupSystem.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, ((System.Drawing.FontStyle)((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Italic))), System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.groupSystem.Location = new System.Drawing.Point(612, 224); + this.groupSystem.Margin = new System.Windows.Forms.Padding(5); + this.groupSystem.Name = "groupSystem"; + this.groupSystem.Padding = new System.Windows.Forms.Padding(5); + this.groupSystem.Size = new System.Drawing.Size(247, 164); + this.groupSystem.TabIndex = 6; + this.groupSystem.TabStop = false; + this.groupSystem.Text = "System"; // - // ckSearchInTags + // ckPropagated // - this.ckSearchInTags.AutoSize = true; - this.ckSearchInTags.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.ckSearchInTags.Location = new System.Drawing.Point(6, 88); - this.ckSearchInTags.Name = "ckSearchInTags"; - this.ckSearchInTags.Size = new System.Drawing.Size(94, 17); - this.ckSearchInTags.TabIndex = 3; - this.ckSearchInTags.Text = "Search in tags"; - this.ckSearchInTags.UseVisualStyleBackColor = true; + this.ckPropagated.AutoSize = true; + this.ckPropagated.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.ckPropagated.Location = new System.Drawing.Point(10, 110); + this.ckPropagated.Margin = new System.Windows.Forms.Padding(5); + this.ckPropagated.Name = "ckPropagated"; + this.ckPropagated.Size = new System.Drawing.Size(139, 29); + this.ckPropagated.TabIndex = 4; + this.ckPropagated.Text = "Propagated"; + this.ckPropagated.UseVisualStyleBackColor = true; // - // ckSearchRegEx + // ckSystemTranslationMemory // - this.ckSearchRegEx.AutoSize = true; - this.ckSearchRegEx.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.ckSearchRegEx.Location = new System.Drawing.Point(6, 65); - this.ckSearchRegEx.Name = "ckSearchRegEx"; - this.ckSearchRegEx.Size = new System.Drawing.Size(138, 17); - this.ckSearchRegEx.TabIndex = 2; - this.ckSearchRegEx.Text = "Use regular expressions"; - this.ckSearchRegEx.UseVisualStyleBackColor = true; + this.ckSystemTranslationMemory.AutoSize = true; + this.ckSystemTranslationMemory.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.ckSystemTranslationMemory.Location = new System.Drawing.Point(10, 70); + this.ckSystemTranslationMemory.Margin = new System.Windows.Forms.Padding(5); + this.ckSystemTranslationMemory.Name = "ckSystemTranslationMemory"; + this.ckSystemTranslationMemory.Size = new System.Drawing.Size(211, 29); + this.ckSystemTranslationMemory.TabIndex = 3; + this.ckSystemTranslationMemory.Text = "Translation Memory"; + this.ckSystemTranslationMemory.UseVisualStyleBackColor = true; // - // ckSearchMatchWholeWord + // ckSystemMachineTranslation // - this.ckSearchMatchWholeWord.AutoSize = true; - this.ckSearchMatchWholeWord.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.ckSearchMatchWholeWord.Location = new System.Drawing.Point(6, 42); - this.ckSearchMatchWholeWord.Name = "ckSearchMatchWholeWord"; - this.ckSearchMatchWholeWord.Size = new System.Drawing.Size(113, 17); - this.ckSearchMatchWholeWord.TabIndex = 1; - this.ckSearchMatchWholeWord.Text = "Match whole word"; - this.ckSearchMatchWholeWord.UseVisualStyleBackColor = true; + this.ckSystemMachineTranslation.AutoSize = true; + this.ckSystemMachineTranslation.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.ckSystemMachineTranslation.Location = new System.Drawing.Point(10, 33); + this.ckSystemMachineTranslation.Margin = new System.Windows.Forms.Padding(5); + this.ckSystemMachineTranslation.Name = "ckSystemMachineTranslation"; + this.ckSystemMachineTranslation.Size = new System.Drawing.Size(215, 29); + this.ckSystemMachineTranslation.TabIndex = 2; + this.ckSystemMachineTranslation.Text = "Machine Translation"; + this.ckSystemMachineTranslation.UseVisualStyleBackColor = true; // - // ckSearchMatchCase + // groupTranslationOrigin // - this.ckSearchMatchCase.AutoSize = true; - this.ckSearchMatchCase.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.ckSearchMatchCase.Location = new System.Drawing.Point(6, 19); - this.ckSearchMatchCase.Name = "ckSearchMatchCase"; - this.ckSearchMatchCase.Size = new System.Drawing.Size(82, 17); - this.ckSearchMatchCase.TabIndex = 0; - this.ckSearchMatchCase.Text = "Match case"; - this.ckSearchMatchCase.UseVisualStyleBackColor = true; + this.groupTranslationOrigin.Controls.Add(this.ckNeuralMachineTranslation); + this.groupTranslationOrigin.Controls.Add(this.ckAutoPropagated); + this.groupTranslationOrigin.Controls.Add(this.ckAutomatedTranslation); + this.groupTranslationOrigin.Controls.Add(this.ckInteractive); + this.groupTranslationOrigin.Controls.Add(this.ckTranslationMemory); + this.groupTranslationOrigin.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, ((System.Drawing.FontStyle)((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Italic))), System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.groupTranslationOrigin.Location = new System.Drawing.Point(612, 10); + this.groupTranslationOrigin.Margin = new System.Windows.Forms.Padding(5); + this.groupTranslationOrigin.Name = "groupTranslationOrigin"; + this.groupTranslationOrigin.Padding = new System.Windows.Forms.Padding(5); + this.groupTranslationOrigin.Size = new System.Drawing.Size(247, 220); + this.groupTranslationOrigin.TabIndex = 5; + this.groupTranslationOrigin.TabStop = false; + this.groupTranslationOrigin.Text = "Translation Origin"; // - // groupSearch + // ckNeuralMachineTranslation // - this.groupSearch.Controls.Add(this.cmbOperator); - this.groupSearch.Controls.Add(this.txtTargetSearch); - this.groupSearch.Controls.Add(this.labelSearchTarget); - this.groupSearch.Controls.Add(this.txtSourceSearch); - this.groupSearch.Controls.Add(this.labelSearchSource); - this.groupSearch.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, ((System.Drawing.FontStyle)((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Italic))), System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.groupSearch.Location = new System.Drawing.Point(6, 6); - this.groupSearch.Name = "groupSearch"; - this.groupSearch.Size = new System.Drawing.Size(769, 80); - this.groupSearch.TabIndex = 6; - this.groupSearch.TabStop = false; - this.groupSearch.Text = "Search source OR / AND target"; + this.ckNeuralMachineTranslation.AutoSize = true; + this.ckNeuralMachineTranslation.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.ckNeuralMachineTranslation.Location = new System.Drawing.Point(10, 168); + this.ckNeuralMachineTranslation.Margin = new System.Windows.Forms.Padding(5); + this.ckNeuralMachineTranslation.Name = "ckNeuralMachineTranslation"; + this.ckNeuralMachineTranslation.Size = new System.Drawing.Size(130, 29); + this.ckNeuralMachineTranslation.TabIndex = 4; + this.ckNeuralMachineTranslation.Text = "Neural MT"; + this.ckNeuralMachineTranslation.UseVisualStyleBackColor = true; // - // cmbOperator + // ckAutoPropagated // - this.cmbOperator.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.cmbOperator.FormattingEnabled = true; - this.cmbOperator.Items.AddRange(new object[] { - "OR", - "AND"}); - this.cmbOperator.Location = new System.Drawing.Point(393, 32); - this.cmbOperator.Name = "cmbOperator"; - this.cmbOperator.Size = new System.Drawing.Size(54, 21); - this.cmbOperator.TabIndex = 4; + this.ckAutoPropagated.AutoSize = true; + this.ckAutoPropagated.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.ckAutoPropagated.Location = new System.Drawing.Point(10, 133); + this.ckAutoPropagated.Margin = new System.Windows.Forms.Padding(5); + this.ckAutoPropagated.Name = "ckAutoPropagated"; + this.ckAutoPropagated.Size = new System.Drawing.Size(187, 29); + this.ckAutoPropagated.TabIndex = 3; + this.ckAutoPropagated.Text = "Auto-Propagated"; + this.ckAutoPropagated.UseVisualStyleBackColor = true; // - // txtTargetSearch + // ckAutomatedTranslation // - this.txtTargetSearch.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); - this.txtTargetSearch.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.txtTargetSearch.Location = new System.Drawing.Point(453, 32); - this.txtTargetSearch.Multiline = true; - this.txtTargetSearch.Name = "txtTargetSearch"; - this.txtTargetSearch.Size = new System.Drawing.Size(226, 43); - this.txtTargetSearch.TabIndex = 3; + this.ckAutomatedTranslation.AutoSize = true; + this.ckAutomatedTranslation.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.ckAutomatedTranslation.Location = new System.Drawing.Point(10, 100); + this.ckAutomatedTranslation.Margin = new System.Windows.Forms.Padding(5); + this.ckAutomatedTranslation.Name = "ckAutomatedTranslation"; + this.ckAutomatedTranslation.Size = new System.Drawing.Size(235, 29); + this.ckAutomatedTranslation.TabIndex = 2; + this.ckAutomatedTranslation.Text = "Automated Translation"; + this.ckAutomatedTranslation.UseVisualStyleBackColor = true; // - // labelSearchTarget + // ckInteractive // - this.labelSearchTarget.AutoSize = true; - this.labelSearchTarget.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.labelSearchTarget.Location = new System.Drawing.Point(450, 16); - this.labelSearchTarget.Name = "labelSearchTarget"; - this.labelSearchTarget.Size = new System.Drawing.Size(73, 13); - this.labelSearchTarget.TabIndex = 2; - this.labelSearchTarget.Text = "Target search"; + this.ckInteractive.AutoSize = true; + this.ckInteractive.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.ckInteractive.Location = new System.Drawing.Point(10, 65); + this.ckInteractive.Margin = new System.Windows.Forms.Padding(5); + this.ckInteractive.Name = "ckInteractive"; + this.ckInteractive.Size = new System.Drawing.Size(127, 29); + this.ckInteractive.TabIndex = 1; + this.ckInteractive.Text = "Interactive"; + this.ckInteractive.UseVisualStyleBackColor = true; // - // txtSourceSearch + // ckTranslationMemory // - this.txtSourceSearch.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.txtSourceSearch.Location = new System.Drawing.Point(9, 32); - this.txtSourceSearch.Multiline = true; - this.txtSourceSearch.Name = "txtSourceSearch"; - this.txtSourceSearch.Size = new System.Drawing.Size(378, 43); - this.txtSourceSearch.TabIndex = 1; + this.ckTranslationMemory.AutoSize = true; + this.ckTranslationMemory.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.ckTranslationMemory.Location = new System.Drawing.Point(10, 33); + this.ckTranslationMemory.Margin = new System.Windows.Forms.Padding(5); + this.ckTranslationMemory.Name = "ckTranslationMemory"; + this.ckTranslationMemory.Size = new System.Drawing.Size(211, 29); + this.ckTranslationMemory.TabIndex = 0; + this.ckTranslationMemory.Text = "Translation Memory"; + this.ckTranslationMemory.UseVisualStyleBackColor = true; // - // labelSearchSource + // groupScore // - this.labelSearchSource.AutoSize = true; - this.labelSearchSource.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.labelSearchSource.Location = new System.Drawing.Point(6, 16); - this.labelSearchSource.Name = "labelSearchSource"; - this.labelSearchSource.Size = new System.Drawing.Size(76, 13); - this.labelSearchSource.TabIndex = 0; - this.labelSearchSource.Text = "Source search"; + this.groupScore.Controls.Add(this.txtMatchValuesExpression); + this.groupScore.Controls.Add(this.ckMatchValues); + this.groupScore.Controls.Add(this.ckContextMatch); + this.groupScore.Controls.Add(this.ckPerfectMatch); + this.groupScore.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, ((System.Drawing.FontStyle)((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Italic))), System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.groupScore.Location = new System.Drawing.Point(327, 10); + this.groupScore.Margin = new System.Windows.Forms.Padding(5); + this.groupScore.Name = "groupScore"; + this.groupScore.Padding = new System.Windows.Forms.Padding(5); + this.groupScore.Size = new System.Drawing.Size(268, 203); + this.groupScore.TabIndex = 4; + this.groupScore.TabStop = false; + this.groupScore.Text = "Score"; // - // pageReplace + // txtMatchValuesExpression // - this.pageReplace.Controls.Add(this.groupReplace); - this.pageReplace.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.pageReplace.ForeColor = System.Drawing.SystemColors.ControlText; - this.pageReplace.Location = new System.Drawing.Point(4, 24); - this.pageReplace.Name = "pageReplace"; - this.pageReplace.Padding = new System.Windows.Forms.Padding(3); - this.pageReplace.Size = new System.Drawing.Size(795, 251); - this.pageReplace.TabIndex = 2; - this.pageReplace.Text = "Replace"; - this.pageReplace.UseVisualStyleBackColor = true; + this.txtMatchValuesExpression.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.txtMatchValuesExpression.Location = new System.Drawing.Point(9, 145); + this.txtMatchValuesExpression.Margin = new System.Windows.Forms.Padding(5); + this.txtMatchValuesExpression.Name = "txtMatchValuesExpression"; + this.txtMatchValuesExpression.Size = new System.Drawing.Size(210, 29); + this.txtMatchValuesExpression.TabIndex = 5; + this.txtMatchValuesExpression.Text = "<95"; // - // groupReplace + // ckMatchValues // - this.groupReplace.Controls.Add(this.btnExpandReplaceResults); - this.groupReplace.Controls.Add(this.gridReplaceResults); - this.groupReplace.Controls.Add(this.btnPreview); - this.groupReplace.Controls.Add(this.btnFindAllInReplace); - this.groupReplace.Controls.Add(this.btnReplace); - this.groupReplace.Controls.Add(this.txtReplaceTargetReplace); - this.groupReplace.Controls.Add(this.groupReplaceOptions); - this.groupReplace.Controls.Add(this.lblReplaceTargetReplace); - this.groupReplace.Controls.Add(this.txtReplaceTargetSearch); - this.groupReplace.Controls.Add(this.lblReplaceTargetSearch); - this.groupReplace.Controls.Add(this.txtReplaceSourceReplace); - this.groupReplace.Controls.Add(this.lblReplaceSourceReplace); - this.groupReplace.Controls.Add(this.txtReplaceSourceSearch); - this.groupReplace.Controls.Add(this.lblReplaceSourceSearch); - this.groupReplace.Dock = System.Windows.Forms.DockStyle.Fill; - this.groupReplace.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, ((System.Drawing.FontStyle)((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Italic))), System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.groupReplace.Location = new System.Drawing.Point(3, 3); - this.groupReplace.Name = "groupReplace"; - this.groupReplace.Size = new System.Drawing.Size(789, 245); - this.groupReplace.TabIndex = 6; - this.groupReplace.TabStop = false; - this.groupReplace.Text = "Replace in source OR target"; + this.ckMatchValues.AutoSize = true; + this.ckMatchValues.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.ckMatchValues.Location = new System.Drawing.Point(10, 110); + this.ckMatchValues.Margin = new System.Windows.Forms.Padding(5); + this.ckMatchValues.Name = "ckMatchValues"; + this.ckMatchValues.Size = new System.Drawing.Size(172, 29); + this.ckMatchValues.TabIndex = 4; + this.ckMatchValues.Text = "Match Value(s)"; + this.ckMatchValues.UseVisualStyleBackColor = true; // - // btnExpandReplaceResults + // ckContextMatch // - this.btnExpandReplaceResults.Image = ((System.Drawing.Image)(resources.GetObject("btnExpandReplaceResults.Image"))); - this.btnExpandReplaceResults.Location = new System.Drawing.Point(756, 75); - this.btnExpandReplaceResults.Name = "btnExpandReplaceResults"; - this.btnExpandReplaceResults.Size = new System.Drawing.Size(27, 29); - this.btnExpandReplaceResults.TabIndex = 13; - this.btnExpandReplaceResults.UseVisualStyleBackColor = true; - this.btnExpandReplaceResults.Click += new System.EventHandler(this.btnExpandReplaceResults_Click); + this.ckContextMatch.AutoSize = true; + this.ckContextMatch.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.ckContextMatch.Location = new System.Drawing.Point(10, 70); + this.ckContextMatch.Margin = new System.Windows.Forms.Padding(5); + this.ckContextMatch.Name = "ckContextMatch"; + this.ckContextMatch.Size = new System.Drawing.Size(165, 29); + this.ckContextMatch.TabIndex = 3; + this.ckContextMatch.Text = "Context Match"; + this.ckContextMatch.UseVisualStyleBackColor = true; // - // gridReplaceResults + // ckPerfectMatch // - this.gridReplaceResults.AllowUserToAddRows = false; - this.gridReplaceResults.AllowUserToDeleteRows = false; - this.gridReplaceResults.AllowUserToResizeRows = false; - this.gridReplaceResults.BackgroundColor = System.Drawing.SystemColors.Window; - this.gridReplaceResults.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; - this.gridReplaceResults.GridColor = System.Drawing.SystemColors.Control; - this.gridReplaceResults.Location = new System.Drawing.Point(169, 74); - this.gridReplaceResults.Name = "gridReplaceResults"; - this.gridReplaceResults.RowHeadersVisible = false; - this.gridReplaceResults.Size = new System.Drawing.Size(615, 168); - this.gridReplaceResults.TabIndex = 12; - this.gridReplaceResults.VirtualMode = true; - this.gridReplaceResults.CellValueNeeded += new System.Windows.Forms.DataGridViewCellValueEventHandler(this.gridReplaceResults_CellValueNeeded); - this.gridReplaceResults.DataBindingComplete += new System.Windows.Forms.DataGridViewBindingCompleteEventHandler(this.gridReplaceResults_DataBindingComplete); + this.ckPerfectMatch.AutoSize = true; + this.ckPerfectMatch.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.ckPerfectMatch.Location = new System.Drawing.Point(10, 33); + this.ckPerfectMatch.Margin = new System.Windows.Forms.Padding(5); + this.ckPerfectMatch.Name = "ckPerfectMatch"; + this.ckPerfectMatch.Size = new System.Drawing.Size(158, 29); + this.ckPerfectMatch.TabIndex = 2; + this.ckPerfectMatch.Text = "Perfect Match"; + this.ckPerfectMatch.UseVisualStyleBackColor = true; // - // btnPreview + // groupStatusesLocked // - this.btnPreview.BackColor = System.Drawing.SystemColors.Window; - this.btnPreview.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.btnPreview.Location = new System.Drawing.Point(9, 170); - this.btnPreview.Name = "btnPreview"; - this.btnPreview.Size = new System.Drawing.Size(154, 28); - this.btnPreview.TabIndex = 11; - this.btnPreview.Text = "Preview"; - this.btnPreview.UseVisualStyleBackColor = false; - this.btnPreview.Click += new System.EventHandler(this.btnPreview_Click); + this.groupStatusesLocked.Controls.Add(this.ckUnlocked); + this.groupStatusesLocked.Controls.Add(this.ckLocked); + this.groupStatusesLocked.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, ((System.Drawing.FontStyle)((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Italic))), System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.groupStatusesLocked.Location = new System.Drawing.Point(327, 224); + this.groupStatusesLocked.Margin = new System.Windows.Forms.Padding(5); + this.groupStatusesLocked.Name = "groupStatusesLocked"; + this.groupStatusesLocked.Padding = new System.Windows.Forms.Padding(5); + this.groupStatusesLocked.Size = new System.Drawing.Size(268, 164); + this.groupStatusesLocked.TabIndex = 2; + this.groupStatusesLocked.TabStop = false; + this.groupStatusesLocked.Text = "Locked / Unlocked"; // - // btnFindAllInReplace + // ckUnlocked // - this.btnFindAllInReplace.BackColor = System.Drawing.SystemColors.Window; - this.btnFindAllInReplace.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.btnFindAllInReplace.Location = new System.Drawing.Point(9, 138); - this.btnFindAllInReplace.Name = "btnFindAllInReplace"; - this.btnFindAllInReplace.Size = new System.Drawing.Size(154, 28); - this.btnFindAllInReplace.TabIndex = 10; - this.btnFindAllInReplace.Text = "Find All"; - this.btnFindAllInReplace.UseVisualStyleBackColor = false; - this.btnFindAllInReplace.Click += new System.EventHandler(this.btnFindAllInReplace_Click); + this.ckUnlocked.AutoSize = true; + this.ckUnlocked.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.ckUnlocked.Location = new System.Drawing.Point(10, 70); + this.ckUnlocked.Margin = new System.Windows.Forms.Padding(5); + this.ckUnlocked.Name = "ckUnlocked"; + this.ckUnlocked.Size = new System.Drawing.Size(120, 29); + this.ckUnlocked.TabIndex = 3; + this.ckUnlocked.Text = "Unlocked"; + this.ckUnlocked.UseVisualStyleBackColor = true; // - // btnReplace + // ckLocked // - this.btnReplace.BackColor = System.Drawing.SystemColors.Window; - this.btnReplace.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.btnReplace.Location = new System.Drawing.Point(9, 204); - this.btnReplace.Name = "btnReplace"; - this.btnReplace.Size = new System.Drawing.Size(154, 28); - this.btnReplace.TabIndex = 8; - this.btnReplace.Text = "Replace All"; - this.btnReplace.UseVisualStyleBackColor = false; - this.btnReplace.Click += new System.EventHandler(this.btnReplace_Click); + this.ckLocked.AutoSize = true; + this.ckLocked.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.ckLocked.Location = new System.Drawing.Point(10, 33); + this.ckLocked.Margin = new System.Windows.Forms.Padding(5); + this.ckLocked.Name = "ckLocked"; + this.ckLocked.Size = new System.Drawing.Size(102, 29); + this.ckLocked.TabIndex = 2; + this.ckLocked.Text = "Locked"; + this.ckLocked.UseVisualStyleBackColor = true; // - // txtReplaceTargetReplace + // groupStatusesTranslationStatus // - this.txtReplaceTargetReplace.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.txtReplaceTargetReplace.Location = new System.Drawing.Point(576, 48); - this.txtReplaceTargetReplace.Multiline = true; - this.txtReplaceTargetReplace.Name = "txtReplaceTargetReplace"; - this.txtReplaceTargetReplace.Size = new System.Drawing.Size(208, 20); - this.txtReplaceTargetReplace.TabIndex = 9; + this.groupStatusesTranslationStatus.Controls.Add(this.ckSignedOff); + this.groupStatusesTranslationStatus.Controls.Add(this.ckSignOffRejected); + this.groupStatusesTranslationStatus.Controls.Add(this.ckTranslationApproved); + this.groupStatusesTranslationStatus.Controls.Add(this.ckTranslationRejected); + this.groupStatusesTranslationStatus.Controls.Add(this.ckTranslated); + this.groupStatusesTranslationStatus.Controls.Add(this.ckDraft); + this.groupStatusesTranslationStatus.Controls.Add(this.ckNotTranslated); + this.groupStatusesTranslationStatus.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, ((System.Drawing.FontStyle)((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Italic))), System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.groupStatusesTranslationStatus.Location = new System.Drawing.Point(10, 10); + this.groupStatusesTranslationStatus.Margin = new System.Windows.Forms.Padding(5); + this.groupStatusesTranslationStatus.Name = "groupStatusesTranslationStatus"; + this.groupStatusesTranslationStatus.Padding = new System.Windows.Forms.Padding(5); + this.groupStatusesTranslationStatus.Size = new System.Drawing.Size(301, 378); + this.groupStatusesTranslationStatus.TabIndex = 1; + this.groupStatusesTranslationStatus.TabStop = false; + this.groupStatusesTranslationStatus.Text = "Translation Status"; // - // groupReplaceOptions + // ckSignedOff // - this.groupReplaceOptions.Controls.Add(this.ckReplaceUseRegEx); - this.groupReplaceOptions.Controls.Add(this.ckReplaceMatchWholeWord); - this.groupReplaceOptions.Controls.Add(this.ckReplaceMatchCase); - this.groupReplaceOptions.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, ((System.Drawing.FontStyle)((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Italic))), System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.groupReplaceOptions.Location = new System.Drawing.Point(9, 22); - this.groupReplaceOptions.Name = "groupReplaceOptions"; - this.groupReplaceOptions.Size = new System.Drawing.Size(154, 112); - this.groupReplaceOptions.TabIndex = 6; - this.groupReplaceOptions.TabStop = false; - this.groupReplaceOptions.Text = "Options"; + this.ckSignedOff.AutoSize = true; + this.ckSignedOff.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.ckSignedOff.Location = new System.Drawing.Point(10, 271); + this.ckSignedOff.Margin = new System.Windows.Forms.Padding(5); + this.ckSignedOff.Name = "ckSignedOff"; + this.ckSignedOff.Size = new System.Drawing.Size(131, 29); + this.ckSignedOff.TabIndex = 6; + this.ckSignedOff.Text = "Signed Off"; + this.ckSignedOff.UseVisualStyleBackColor = true; // - // ckReplaceUseRegEx + // ckSignOffRejected // - this.ckReplaceUseRegEx.AutoSize = true; - this.ckReplaceUseRegEx.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.ckReplaceUseRegEx.Location = new System.Drawing.Point(6, 65); - this.ckReplaceUseRegEx.Name = "ckReplaceUseRegEx"; - this.ckReplaceUseRegEx.Size = new System.Drawing.Size(138, 17); - this.ckReplaceUseRegEx.TabIndex = 2; - this.ckReplaceUseRegEx.Text = "Use regular expressions"; - this.ckReplaceUseRegEx.UseVisualStyleBackColor = true; + this.ckSignOffRejected.AutoSize = true; + this.ckSignOffRejected.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.ckSignOffRejected.Location = new System.Drawing.Point(10, 231); + this.ckSignOffRejected.Margin = new System.Windows.Forms.Padding(5); + this.ckSignOffRejected.Name = "ckSignOffRejected"; + this.ckSignOffRejected.Size = new System.Drawing.Size(187, 29); + this.ckSignOffRejected.TabIndex = 5; + this.ckSignOffRejected.Text = "Sign-off Rejected"; + this.ckSignOffRejected.UseVisualStyleBackColor = true; // - // ckReplaceMatchWholeWord + // ckTranslationApproved // - this.ckReplaceMatchWholeWord.AutoSize = true; - this.ckReplaceMatchWholeWord.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.ckReplaceMatchWholeWord.Location = new System.Drawing.Point(6, 42); - this.ckReplaceMatchWholeWord.Name = "ckReplaceMatchWholeWord"; - this.ckReplaceMatchWholeWord.Size = new System.Drawing.Size(113, 17); - this.ckReplaceMatchWholeWord.TabIndex = 1; - this.ckReplaceMatchWholeWord.Text = "Match whole word"; - this.ckReplaceMatchWholeWord.UseVisualStyleBackColor = true; + this.ckTranslationApproved.AutoSize = true; + this.ckTranslationApproved.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.ckTranslationApproved.Location = new System.Drawing.Point(10, 191); + this.ckTranslationApproved.Margin = new System.Windows.Forms.Padding(5); + this.ckTranslationApproved.Name = "ckTranslationApproved"; + this.ckTranslationApproved.Size = new System.Drawing.Size(225, 29); + this.ckTranslationApproved.TabIndex = 4; + this.ckTranslationApproved.Text = "Translation Approved"; + this.ckTranslationApproved.UseVisualStyleBackColor = true; // - // ckReplaceMatchCase + // ckTranslationRejected // - this.ckReplaceMatchCase.AutoSize = true; - this.ckReplaceMatchCase.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.ckReplaceMatchCase.Location = new System.Drawing.Point(6, 19); - this.ckReplaceMatchCase.Name = "ckReplaceMatchCase"; - this.ckReplaceMatchCase.Size = new System.Drawing.Size(82, 17); - this.ckReplaceMatchCase.TabIndex = 0; - this.ckReplaceMatchCase.Text = "Match case"; - this.ckReplaceMatchCase.UseVisualStyleBackColor = true; + this.ckTranslationRejected.AutoSize = true; + this.ckTranslationRejected.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.ckTranslationRejected.Location = new System.Drawing.Point(10, 150); + this.ckTranslationRejected.Margin = new System.Windows.Forms.Padding(5); + this.ckTranslationRejected.Name = "ckTranslationRejected"; + this.ckTranslationRejected.Size = new System.Drawing.Size(216, 29); + this.ckTranslationRejected.TabIndex = 3; + this.ckTranslationRejected.Text = "Translation Rejected"; + this.ckTranslationRejected.UseVisualStyleBackColor = true; // - // lblReplaceTargetReplace + // ckTranslated // - this.lblReplaceTargetReplace.AutoSize = true; - this.lblReplaceTargetReplace.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.lblReplaceTargetReplace.Location = new System.Drawing.Point(503, 55); - this.lblReplaceTargetReplace.Name = "lblReplaceTargetReplace"; - this.lblReplaceTargetReplace.Size = new System.Drawing.Size(69, 13); - this.lblReplaceTargetReplace.TabIndex = 8; - this.lblReplaceTargetReplace.Text = "Replace with"; + this.ckTranslated.AutoSize = true; + this.ckTranslated.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.ckTranslated.Location = new System.Drawing.Point(10, 110); + this.ckTranslated.Margin = new System.Windows.Forms.Padding(5); + this.ckTranslated.Name = "ckTranslated"; + this.ckTranslated.Size = new System.Drawing.Size(131, 29); + this.ckTranslated.TabIndex = 2; + this.ckTranslated.Text = "Translated"; + this.ckTranslated.UseVisualStyleBackColor = true; // - // txtReplaceTargetSearch + // ckDraft // - this.txtReplaceTargetSearch.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.txtReplaceTargetSearch.Location = new System.Drawing.Point(248, 48); - this.txtReplaceTargetSearch.Multiline = true; - this.txtReplaceTargetSearch.Name = "txtReplaceTargetSearch"; - this.txtReplaceTargetSearch.Size = new System.Drawing.Size(226, 20); - this.txtReplaceTargetSearch.TabIndex = 7; - this.txtReplaceTargetSearch.Validating += new System.ComponentModel.CancelEventHandler(this.txtReplaceTargetSearch_Validating); + this.ckDraft.AutoSize = true; + this.ckDraft.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.ckDraft.Location = new System.Drawing.Point(10, 70); + this.ckDraft.Margin = new System.Windows.Forms.Padding(5); + this.ckDraft.Name = "ckDraft"; + this.ckDraft.Size = new System.Drawing.Size(79, 29); + this.ckDraft.TabIndex = 1; + this.ckDraft.Text = "Draft"; + this.ckDraft.UseVisualStyleBackColor = true; // - // lblReplaceTargetSearch + // ckNotTranslated // - this.lblReplaceTargetSearch.AutoSize = true; - this.lblReplaceTargetSearch.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.lblReplaceTargetSearch.Location = new System.Drawing.Point(166, 51); - this.lblReplaceTargetSearch.Name = "lblReplaceTargetSearch"; - this.lblReplaceTargetSearch.Size = new System.Drawing.Size(73, 13); - this.lblReplaceTargetSearch.TabIndex = 6; - this.lblReplaceTargetSearch.Text = "Target search"; + this.ckNotTranslated.AutoSize = true; + this.ckNotTranslated.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.ckNotTranslated.Location = new System.Drawing.Point(10, 33); + this.ckNotTranslated.Margin = new System.Windows.Forms.Padding(5); + this.ckNotTranslated.Name = "ckNotTranslated"; + this.ckNotTranslated.Size = new System.Drawing.Size(158, 29); + this.ckNotTranslated.TabIndex = 0; + this.ckNotTranslated.Text = "Not translated"; + this.ckNotTranslated.UseVisualStyleBackColor = true; // - // txtReplaceSourceReplace + // pageSearch // - this.txtReplaceSourceReplace.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.txtReplaceSourceReplace.Location = new System.Drawing.Point(576, 22); - this.txtReplaceSourceReplace.Multiline = true; - this.txtReplaceSourceReplace.Name = "txtReplaceSourceReplace"; - this.txtReplaceSourceReplace.Size = new System.Drawing.Size(208, 20); - this.txtReplaceSourceReplace.TabIndex = 5; + this.pageSearch.Controls.Add(this.btnExpandSearchResults); + this.pageSearch.Controls.Add(this.btnFindAll); + this.pageSearch.Controls.Add(this.gridSearchResults); + this.pageSearch.Controls.Add(this.groupOptions); + this.pageSearch.Controls.Add(this.groupSearch); + this.pageSearch.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.pageSearch.ForeColor = System.Drawing.SystemColors.ControlText; + this.pageSearch.Location = new System.Drawing.Point(4, 34); + this.pageSearch.Margin = new System.Windows.Forms.Padding(5); + this.pageSearch.Name = "pageSearch"; + this.pageSearch.Padding = new System.Windows.Forms.Padding(5); + this.pageSearch.Size = new System.Drawing.Size(1397, 450); + this.pageSearch.TabIndex = 1; + this.pageSearch.Text = "Search"; + this.pageSearch.UseVisualStyleBackColor = true; // - // lblReplaceSourceReplace + // btnExpandSearchResults // - this.lblReplaceSourceReplace.AutoSize = true; - this.lblReplaceSourceReplace.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.lblReplaceSourceReplace.Location = new System.Drawing.Point(503, 25); - this.lblReplaceSourceReplace.Name = "lblReplaceSourceReplace"; - this.lblReplaceSourceReplace.Size = new System.Drawing.Size(69, 13); - this.lblReplaceSourceReplace.TabIndex = 4; - this.lblReplaceSourceReplace.Text = "Replace with"; + this.btnExpandSearchResults.Image = ((System.Drawing.Image)(resources.GetObject("btnExpandSearchResults.Image"))); + this.btnExpandSearchResults.Location = new System.Drawing.Point(1304, 168); + this.btnExpandSearchResults.Margin = new System.Windows.Forms.Padding(5); + this.btnExpandSearchResults.Name = "btnExpandSearchResults"; + this.btnExpandSearchResults.Size = new System.Drawing.Size(52, 47); + this.btnExpandSearchResults.TabIndex = 9; + this.btnExpandSearchResults.UseVisualStyleBackColor = true; + this.btnExpandSearchResults.Click += new System.EventHandler(this.btnExpandSearchResults_Click); // - // txtReplaceSourceSearch + // btnFindAll // - this.txtReplaceSourceSearch.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.txtReplaceSourceSearch.Location = new System.Drawing.Point(248, 22); - this.txtReplaceSourceSearch.Multiline = true; - this.txtReplaceSourceSearch.Name = "txtReplaceSourceSearch"; - this.txtReplaceSourceSearch.Size = new System.Drawing.Size(226, 20); - this.txtReplaceSourceSearch.TabIndex = 1; - this.txtReplaceSourceSearch.Validating += new System.ComponentModel.CancelEventHandler(this.txtReplaceSourceSearch_Validating); + this.btnFindAll.BackColor = System.Drawing.SystemColors.Window; + this.btnFindAll.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.btnFindAll.Location = new System.Drawing.Point(5, 352); + this.btnFindAll.Margin = new System.Windows.Forms.Padding(5); + this.btnFindAll.Name = "btnFindAll"; + this.btnFindAll.Size = new System.Drawing.Size(270, 74); + this.btnFindAll.TabIndex = 8; + this.btnFindAll.Text = "Find All"; + this.btnFindAll.UseVisualStyleBackColor = false; + this.btnFindAll.Click += new System.EventHandler(this.btnFindAll_Click); // - // lblReplaceSourceSearch + // gridSearchResults // - this.lblReplaceSourceSearch.AutoSize = true; - this.lblReplaceSourceSearch.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.lblReplaceSourceSearch.Location = new System.Drawing.Point(166, 25); - this.lblReplaceSourceSearch.Name = "lblReplaceSourceSearch"; - this.lblReplaceSourceSearch.Size = new System.Drawing.Size(76, 13); - this.lblReplaceSourceSearch.TabIndex = 0; - this.lblReplaceSourceSearch.Text = "Source search"; + this.gridSearchResults.AllowUserToAddRows = false; + this.gridSearchResults.AllowUserToDeleteRows = false; + this.gridSearchResults.AllowUserToResizeRows = false; + this.gridSearchResults.BackgroundColor = System.Drawing.SystemColors.Window; + this.gridSearchResults.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; + this.gridSearchResults.GridColor = System.Drawing.SystemColors.Control; + this.gridSearchResults.Location = new System.Drawing.Point(285, 168); + this.gridSearchResults.Margin = new System.Windows.Forms.Padding(5); + this.gridSearchResults.Name = "gridSearchResults"; + this.gridSearchResults.RowHeadersVisible = false; + this.gridSearchResults.RowHeadersWidth = 72; + this.gridSearchResults.Size = new System.Drawing.Size(1071, 264); + this.gridSearchResults.TabIndex = 7; + this.gridSearchResults.VirtualMode = true; + this.gridSearchResults.CellValueNeeded += new System.Windows.Forms.DataGridViewCellValueEventHandler(this.gridSearchResults_CellValueNeeded); + this.gridSearchResults.DataBindingComplete += new System.Windows.Forms.DataGridViewBindingCompleteEventHandler(this.gridSearchResults_DataBindingComplete); // - // panelCommands + // groupOptions // - this.panelCommands.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom))); - this.panelCommands.Controls.Add(this.groupClear); - this.panelCommands.Controls.Add(this.groupChange); - this.panelCommands.Controls.Add(this.groupSlice); - this.panelCommands.Location = new System.Drawing.Point(6, 541); - this.panelCommands.Name = "panelCommands"; - this.panelCommands.Size = new System.Drawing.Size(807, 239); - this.panelCommands.TabIndex = 9; + this.groupOptions.Controls.Add(this.ckSearchInTags); + this.groupOptions.Controls.Add(this.ckSearchRegEx); + this.groupOptions.Controls.Add(this.ckSearchMatchWholeWord); + this.groupOptions.Controls.Add(this.ckSearchMatchCase); + this.groupOptions.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, ((System.Drawing.FontStyle)((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Italic))), System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.groupOptions.Location = new System.Drawing.Point(12, 152); + this.groupOptions.Margin = new System.Windows.Forms.Padding(5); + this.groupOptions.Name = "groupOptions"; + this.groupOptions.Padding = new System.Windows.Forms.Padding(5); + this.groupOptions.Size = new System.Drawing.Size(270, 192); + this.groupOptions.TabIndex = 6; + this.groupOptions.TabStop = false; + this.groupOptions.Text = "Options"; // - // groupClear + // ckSearchInTags // - this.groupClear.Controls.Add(this.btnClearit); - this.groupClear.Controls.Add(this.pictureBox3); - this.groupClear.Controls.Add(this.lblClearit); - this.groupClear.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, ((System.Drawing.FontStyle)((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Italic))), System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.groupClear.ForeColor = System.Drawing.Color.Red; - this.groupClear.Location = new System.Drawing.Point(643, 10); - this.groupClear.Name = "groupClear"; - this.groupClear.Size = new System.Drawing.Size(160, 226); - this.groupClear.TabIndex = 6; - this.groupClear.TabStop = false; - this.groupClear.Text = "Clear"; + this.ckSearchInTags.AutoSize = true; + this.ckSearchInTags.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.ckSearchInTags.Location = new System.Drawing.Point(10, 154); + this.ckSearchInTags.Margin = new System.Windows.Forms.Padding(5); + this.ckSearchInTags.Name = "ckSearchInTags"; + this.ckSearchInTags.Size = new System.Drawing.Size(163, 29); + this.ckSearchInTags.TabIndex = 3; + this.ckSearchInTags.Text = "Search in tags"; + this.ckSearchInTags.UseVisualStyleBackColor = true; // - // btnClearit + // ckSearchRegEx // - this.btnClearit.BackColor = System.Drawing.SystemColors.Control; - this.btnClearit.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.btnClearit.ForeColor = System.Drawing.Color.Red; - this.btnClearit.Location = new System.Drawing.Point(6, 167); - this.btnClearit.Name = "btnClearit"; - this.btnClearit.Size = new System.Drawing.Size(130, 49); - this.btnClearit.TabIndex = 2; - this.btnClearit.Text = "Clearit!"; - this.btnClearit.UseVisualStyleBackColor = false; - this.btnClearit.Click += new System.EventHandler(this.btnClearit_Click); + this.ckSearchRegEx.AutoSize = true; + this.ckSearchRegEx.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.ckSearchRegEx.Location = new System.Drawing.Point(10, 114); + this.ckSearchRegEx.Margin = new System.Windows.Forms.Padding(5); + this.ckSearchRegEx.Name = "ckSearchRegEx"; + this.ckSearchRegEx.Size = new System.Drawing.Size(248, 29); + this.ckSearchRegEx.TabIndex = 2; + this.ckSearchRegEx.Text = "Use regular expressions"; + this.ckSearchRegEx.UseVisualStyleBackColor = true; // - // pictureBox3 + // ckSearchMatchWholeWord // - this.pictureBox3.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox3.Image"))); - this.pictureBox3.InitialImage = null; - this.pictureBox3.Location = new System.Drawing.Point(6, 120); - this.pictureBox3.Name = "pictureBox3"; - this.pictureBox3.Size = new System.Drawing.Size(127, 43); - this.pictureBox3.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom; - this.pictureBox3.TabIndex = 1; - this.pictureBox3.TabStop = false; + this.ckSearchMatchWholeWord.AutoSize = true; + this.ckSearchMatchWholeWord.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.ckSearchMatchWholeWord.Location = new System.Drawing.Point(10, 74); + this.ckSearchMatchWholeWord.Margin = new System.Windows.Forms.Padding(5); + this.ckSearchMatchWholeWord.Name = "ckSearchMatchWholeWord"; + this.ckSearchMatchWholeWord.Size = new System.Drawing.Size(195, 29); + this.ckSearchMatchWholeWord.TabIndex = 1; + this.ckSearchMatchWholeWord.Text = "Match whole word"; + this.ckSearchMatchWholeWord.UseVisualStyleBackColor = true; // - // lblClearit + // ckSearchMatchCase // - this.lblClearit.Dock = System.Windows.Forms.DockStyle.Fill; - this.lblClearit.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Italic, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.lblClearit.ForeColor = System.Drawing.Color.Blue; - this.lblClearit.Location = new System.Drawing.Point(3, 18); - this.lblClearit.Name = "lblClearit"; - this.lblClearit.Size = new System.Drawing.Size(154, 205); - this.lblClearit.TabIndex = 0; - this.lblClearit.Text = "Click Clearit! to clear all the translated segments based on your selection crite" + - "ria."; + this.ckSearchMatchCase.AutoSize = true; + this.ckSearchMatchCase.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.ckSearchMatchCase.Location = new System.Drawing.Point(10, 33); + this.ckSearchMatchCase.Margin = new System.Windows.Forms.Padding(5); + this.ckSearchMatchCase.Name = "ckSearchMatchCase"; + this.ckSearchMatchCase.Size = new System.Drawing.Size(139, 29); + this.ckSearchMatchCase.TabIndex = 0; + this.ckSearchMatchCase.Text = "Match case"; + this.ckSearchMatchCase.UseVisualStyleBackColor = true; // - // groupChange + // groupSearch // - this.groupChange.Controls.Add(this.groupChangeToStatusOr); - this.groupChange.Controls.Add(this.btnChangeit); - this.groupChange.Controls.Add(this.pictureBox2); - this.groupChange.Controls.Add(this.labelChangeComments); - this.groupChange.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, ((System.Drawing.FontStyle)((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Italic))), System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.groupChange.ForeColor = System.Drawing.Color.Red; - this.groupChange.Location = new System.Drawing.Point(174, 6); - this.groupChange.Name = "groupChange"; - this.groupChange.Size = new System.Drawing.Size(463, 230); - this.groupChange.TabIndex = 5; - this.groupChange.TabStop = false; - this.groupChange.Text = "Change"; + this.groupSearch.Controls.Add(this.cmbOperator); + this.groupSearch.Controls.Add(this.txtTargetSearch); + this.groupSearch.Controls.Add(this.labelSearchTarget); + this.groupSearch.Controls.Add(this.txtSourceSearch); + this.groupSearch.Controls.Add(this.labelSearchSource); + this.groupSearch.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, ((System.Drawing.FontStyle)((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Italic))), System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.groupSearch.Location = new System.Drawing.Point(10, 10); + this.groupSearch.Margin = new System.Windows.Forms.Padding(5); + this.groupSearch.Name = "groupSearch"; + this.groupSearch.Padding = new System.Windows.Forms.Padding(5); + this.groupSearch.Size = new System.Drawing.Size(1346, 140); + this.groupSearch.TabIndex = 6; + this.groupSearch.TabStop = false; + this.groupSearch.Text = "Search source OR / AND target"; // - // groupChangeToStatusOr + // cmbOperator // - this.groupChangeToStatusOr.Controls.Add(this.ckCopySourceToTarget); - this.groupChangeToStatusOr.Controls.Add(this.groupChangeLocked); - this.groupChangeToStatusOr.Controls.Add(this.groupChangeTranslationStatus); - this.groupChangeToStatusOr.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, ((System.Drawing.FontStyle)((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Italic))), System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.groupChangeToStatusOr.ForeColor = System.Drawing.SystemColors.ControlText; - this.groupChangeToStatusOr.Location = new System.Drawing.Point(6, 19); - this.groupChangeToStatusOr.Name = "groupChangeToStatusOr"; - this.groupChangeToStatusOr.Size = new System.Drawing.Size(303, 205); - this.groupChangeToStatusOr.TabIndex = 0; - this.groupChangeToStatusOr.TabStop = false; - this.groupChangeToStatusOr.Text = "Change to Status and/or Lock value"; + this.cmbOperator.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.cmbOperator.FormattingEnabled = true; + this.cmbOperator.Items.AddRange(new object[] { + "OR", + "AND"}); + this.cmbOperator.Location = new System.Drawing.Point(688, 56); + this.cmbOperator.Margin = new System.Windows.Forms.Padding(5); + this.cmbOperator.Name = "cmbOperator"; + this.cmbOperator.Size = new System.Drawing.Size(92, 32); + this.cmbOperator.TabIndex = 4; // - // ckCopySourceToTarget + // txtTargetSearch // - this.ckCopySourceToTarget.AutoSize = true; - this.ckCopySourceToTarget.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.ckCopySourceToTarget.Location = new System.Drawing.Point(161, 89); - this.ckCopySourceToTarget.Name = "ckCopySourceToTarget"; - this.ckCopySourceToTarget.Size = new System.Drawing.Size(127, 17); - this.ckCopySourceToTarget.TabIndex = 2; - this.ckCopySourceToTarget.Text = "Copy source to target"; - this.ckCopySourceToTarget.UseVisualStyleBackColor = true; + this.txtTargetSearch.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.txtTargetSearch.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.txtTargetSearch.Location = new System.Drawing.Point(793, 56); + this.txtTargetSearch.Margin = new System.Windows.Forms.Padding(5); + this.txtTargetSearch.Multiline = true; + this.txtTargetSearch.Name = "txtTargetSearch"; + this.txtTargetSearch.Size = new System.Drawing.Size(392, 72); + this.txtTargetSearch.TabIndex = 3; // - // groupChangeLocked + // labelSearchTarget // - this.groupChangeLocked.Controls.Add(this.ckChangeToUnlocked); - this.groupChangeLocked.Controls.Add(this.ckChangeToLocked); - this.groupChangeLocked.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, ((System.Drawing.FontStyle)((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Italic))), System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.groupChangeLocked.Location = new System.Drawing.Point(155, 20); - this.groupChangeLocked.Name = "groupChangeLocked"; - this.groupChangeLocked.Size = new System.Drawing.Size(140, 63); - this.groupChangeLocked.TabIndex = 1; - this.groupChangeLocked.TabStop = false; - this.groupChangeLocked.Text = "Locked / Unlocked"; + this.labelSearchTarget.AutoSize = true; + this.labelSearchTarget.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.labelSearchTarget.Location = new System.Drawing.Point(788, 28); + this.labelSearchTarget.Margin = new System.Windows.Forms.Padding(5, 0, 5, 0); + this.labelSearchTarget.Name = "labelSearchTarget"; + this.labelSearchTarget.Size = new System.Drawing.Size(133, 25); + this.labelSearchTarget.TabIndex = 2; + this.labelSearchTarget.Text = "Target search"; // - // ckChangeToUnlocked + // txtSourceSearch // - this.ckChangeToUnlocked.AutoSize = true; - this.ckChangeToUnlocked.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.ckChangeToUnlocked.Location = new System.Drawing.Point(6, 40); - this.ckChangeToUnlocked.Name = "ckChangeToUnlocked"; - this.ckChangeToUnlocked.Size = new System.Drawing.Size(71, 17); - this.ckChangeToUnlocked.TabIndex = 3; - this.ckChangeToUnlocked.Text = "Unlocked"; - this.ckChangeToUnlocked.UseVisualStyleBackColor = true; - this.ckChangeToUnlocked.CheckedChanged += new System.EventHandler(this.ckChangeToNotTranslated_CheckedChanged); - this.ckChangeToUnlocked.Click += new System.EventHandler(this.ckChangeToNotTranslated_Click); + this.txtSourceSearch.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.txtSourceSearch.Location = new System.Drawing.Point(16, 56); + this.txtSourceSearch.Margin = new System.Windows.Forms.Padding(5); + this.txtSourceSearch.Multiline = true; + this.txtSourceSearch.Name = "txtSourceSearch"; + this.txtSourceSearch.Size = new System.Drawing.Size(658, 72); + this.txtSourceSearch.TabIndex = 1; // - // ckChangeToLocked + // labelSearchSource // - this.ckChangeToLocked.AutoSize = true; - this.ckChangeToLocked.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.ckChangeToLocked.Location = new System.Drawing.Point(6, 19); - this.ckChangeToLocked.Name = "ckChangeToLocked"; - this.ckChangeToLocked.Size = new System.Drawing.Size(61, 17); - this.ckChangeToLocked.TabIndex = 2; - this.ckChangeToLocked.Text = "Locked"; - this.ckChangeToLocked.UseVisualStyleBackColor = true; - this.ckChangeToLocked.CheckedChanged += new System.EventHandler(this.ckChangeToNotTranslated_CheckedChanged); - this.ckChangeToLocked.Click += new System.EventHandler(this.ckChangeToNotTranslated_Click); + this.labelSearchSource.AutoSize = true; + this.labelSearchSource.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.labelSearchSource.Location = new System.Drawing.Point(10, 28); + this.labelSearchSource.Margin = new System.Windows.Forms.Padding(5, 0, 5, 0); + this.labelSearchSource.Name = "labelSearchSource"; + this.labelSearchSource.Size = new System.Drawing.Size(139, 25); + this.labelSearchSource.TabIndex = 0; + this.labelSearchSource.Text = "Source search"; // - // groupChangeTranslationStatus + // pageReplace // - this.groupChangeTranslationStatus.Controls.Add(this.ckChangeToSignedOff); - this.groupChangeTranslationStatus.Controls.Add(this.ckChangeToSignOffRejected); - this.groupChangeTranslationStatus.Controls.Add(this.ckChangeToTranslationApproved); - this.groupChangeTranslationStatus.Controls.Add(this.ckChangeToTranslationRejected); - this.groupChangeTranslationStatus.Controls.Add(this.ckChangeToTranslated); - this.groupChangeTranslationStatus.Controls.Add(this.ckChangeToDraft); - this.groupChangeTranslationStatus.Controls.Add(this.ckChangeToNotTranslated); - this.groupChangeTranslationStatus.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, ((System.Drawing.FontStyle)((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Italic))), System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.groupChangeTranslationStatus.Location = new System.Drawing.Point(6, 20); - this.groupChangeTranslationStatus.Name = "groupChangeTranslationStatus"; - this.groupChangeTranslationStatus.Size = new System.Drawing.Size(143, 179); - this.groupChangeTranslationStatus.TabIndex = 0; - this.groupChangeTranslationStatus.TabStop = false; - this.groupChangeTranslationStatus.Text = "Translation Status"; + this.pageReplace.Controls.Add(this.groupReplace); + this.pageReplace.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.pageReplace.ForeColor = System.Drawing.SystemColors.ControlText; + this.pageReplace.Location = new System.Drawing.Point(4, 34); + this.pageReplace.Margin = new System.Windows.Forms.Padding(5); + this.pageReplace.Name = "pageReplace"; + this.pageReplace.Padding = new System.Windows.Forms.Padding(5); + this.pageReplace.Size = new System.Drawing.Size(1397, 450); + this.pageReplace.TabIndex = 2; + this.pageReplace.Text = "Replace"; + this.pageReplace.UseVisualStyleBackColor = true; // - // ckChangeToSignedOff + // groupReplace // - this.ckChangeToSignedOff.AutoSize = true; - this.ckChangeToSignedOff.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.ckChangeToSignedOff.Location = new System.Drawing.Point(6, 133); - this.ckChangeToSignedOff.Name = "ckChangeToSignedOff"; - this.ckChangeToSignedOff.Size = new System.Drawing.Size(75, 17); - this.ckChangeToSignedOff.TabIndex = 6; - this.ckChangeToSignedOff.Text = "Signed Off"; - this.ckChangeToSignedOff.UseVisualStyleBackColor = true; - this.ckChangeToSignedOff.CheckedChanged += new System.EventHandler(this.ckChangeToNotTranslated_CheckedChanged); - this.ckChangeToSignedOff.Click += new System.EventHandler(this.ckChangeToNotTranslated_Click); + this.groupReplace.Controls.Add(this.btnExpandReplaceResults); + this.groupReplace.Controls.Add(this.gridReplaceResults); + this.groupReplace.Controls.Add(this.btnPreview); + this.groupReplace.Controls.Add(this.btnFindAllInReplace); + this.groupReplace.Controls.Add(this.btnReplace); + this.groupReplace.Controls.Add(this.txtReplaceTargetReplace); + this.groupReplace.Controls.Add(this.groupReplaceOptions); + this.groupReplace.Controls.Add(this.lblReplaceTargetReplace); + this.groupReplace.Controls.Add(this.txtReplaceTargetSearch); + this.groupReplace.Controls.Add(this.lblReplaceTargetSearch); + this.groupReplace.Controls.Add(this.txtReplaceSourceReplace); + this.groupReplace.Controls.Add(this.lblReplaceSourceReplace); + this.groupReplace.Controls.Add(this.txtReplaceSourceSearch); + this.groupReplace.Controls.Add(this.lblReplaceSourceSearch); + this.groupReplace.Dock = System.Windows.Forms.DockStyle.Fill; + this.groupReplace.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, ((System.Drawing.FontStyle)((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Italic))), System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.groupReplace.Location = new System.Drawing.Point(5, 5); + this.groupReplace.Margin = new System.Windows.Forms.Padding(5); + this.groupReplace.Name = "groupReplace"; + this.groupReplace.Padding = new System.Windows.Forms.Padding(5); + this.groupReplace.Size = new System.Drawing.Size(1387, 440); + this.groupReplace.TabIndex = 6; + this.groupReplace.TabStop = false; + this.groupReplace.Text = "Replace in source OR target"; // - // ckChangeToSignOffRejected + // btnExpandReplaceResults // - this.ckChangeToSignOffRejected.AutoSize = true; - this.ckChangeToSignOffRejected.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.ckChangeToSignOffRejected.Location = new System.Drawing.Point(6, 156); - this.ckChangeToSignOffRejected.Name = "ckChangeToSignOffRejected"; - this.ckChangeToSignOffRejected.Size = new System.Drawing.Size(107, 17); - this.ckChangeToSignOffRejected.TabIndex = 5; - this.ckChangeToSignOffRejected.Text = "Sign-off Rejected"; - this.ckChangeToSignOffRejected.UseVisualStyleBackColor = true; - this.ckChangeToSignOffRejected.CheckedChanged += new System.EventHandler(this.ckChangeToNotTranslated_CheckedChanged); - this.ckChangeToSignOffRejected.Click += new System.EventHandler(this.ckChangeToNotTranslated_Click); + this.btnExpandReplaceResults.Image = ((System.Drawing.Image)(resources.GetObject("btnExpandReplaceResults.Image"))); + this.btnExpandReplaceResults.Location = new System.Drawing.Point(1323, 131); + this.btnExpandReplaceResults.Margin = new System.Windows.Forms.Padding(5); + this.btnExpandReplaceResults.Name = "btnExpandReplaceResults"; + this.btnExpandReplaceResults.Size = new System.Drawing.Size(47, 51); + this.btnExpandReplaceResults.TabIndex = 13; + this.btnExpandReplaceResults.UseVisualStyleBackColor = true; + this.btnExpandReplaceResults.Click += new System.EventHandler(this.btnExpandReplaceResults_Click); // - // ckChangeToTranslationApproved + // gridReplaceResults // - this.ckChangeToTranslationApproved.AutoSize = true; - this.ckChangeToTranslationApproved.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.ckChangeToTranslationApproved.Location = new System.Drawing.Point(6, 109); - this.ckChangeToTranslationApproved.Name = "ckChangeToTranslationApproved"; - this.ckChangeToTranslationApproved.Size = new System.Drawing.Size(126, 17); - this.ckChangeToTranslationApproved.TabIndex = 4; - this.ckChangeToTranslationApproved.Text = "Translation Approved"; - this.ckChangeToTranslationApproved.UseVisualStyleBackColor = true; - this.ckChangeToTranslationApproved.CheckedChanged += new System.EventHandler(this.ckChangeToNotTranslated_CheckedChanged); - this.ckChangeToTranslationApproved.Click += new System.EventHandler(this.ckChangeToNotTranslated_Click); + this.gridReplaceResults.AllowUserToAddRows = false; + this.gridReplaceResults.AllowUserToDeleteRows = false; + this.gridReplaceResults.AllowUserToResizeRows = false; + this.gridReplaceResults.BackgroundColor = System.Drawing.SystemColors.Window; + this.gridReplaceResults.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; + this.gridReplaceResults.GridColor = System.Drawing.SystemColors.Control; + this.gridReplaceResults.Location = new System.Drawing.Point(296, 130); + this.gridReplaceResults.Margin = new System.Windows.Forms.Padding(5); + this.gridReplaceResults.Name = "gridReplaceResults"; + this.gridReplaceResults.RowHeadersVisible = false; + this.gridReplaceResults.RowHeadersWidth = 72; + this.gridReplaceResults.Size = new System.Drawing.Size(1076, 294); + this.gridReplaceResults.TabIndex = 12; + this.gridReplaceResults.VirtualMode = true; + this.gridReplaceResults.CellValueNeeded += new System.Windows.Forms.DataGridViewCellValueEventHandler(this.gridReplaceResults_CellValueNeeded); + this.gridReplaceResults.DataBindingComplete += new System.Windows.Forms.DataGridViewBindingCompleteEventHandler(this.gridReplaceResults_DataBindingComplete); // - // ckChangeToTranslationRejected + // btnPreview // - this.ckChangeToTranslationRejected.AutoSize = true; - this.ckChangeToTranslationRejected.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.ckChangeToTranslationRejected.Location = new System.Drawing.Point(6, 86); - this.ckChangeToTranslationRejected.Name = "ckChangeToTranslationRejected"; - this.ckChangeToTranslationRejected.Size = new System.Drawing.Size(123, 17); - this.ckChangeToTranslationRejected.TabIndex = 3; - this.ckChangeToTranslationRejected.Text = "Translation Rejected"; - this.ckChangeToTranslationRejected.UseVisualStyleBackColor = true; - this.ckChangeToTranslationRejected.CheckedChanged += new System.EventHandler(this.ckChangeToNotTranslated_CheckedChanged); - this.ckChangeToTranslationRejected.Click += new System.EventHandler(this.ckChangeToNotTranslated_Click); + this.btnPreview.BackColor = System.Drawing.SystemColors.Window; + this.btnPreview.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.btnPreview.Location = new System.Drawing.Point(16, 298); + this.btnPreview.Margin = new System.Windows.Forms.Padding(5); + this.btnPreview.Name = "btnPreview"; + this.btnPreview.Size = new System.Drawing.Size(270, 49); + this.btnPreview.TabIndex = 11; + this.btnPreview.Text = "Preview"; + this.btnPreview.UseVisualStyleBackColor = false; + this.btnPreview.Click += new System.EventHandler(this.btnPreview_Click); + // + // btnFindAllInReplace + // + this.btnFindAllInReplace.BackColor = System.Drawing.SystemColors.Window; + this.btnFindAllInReplace.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.btnFindAllInReplace.Location = new System.Drawing.Point(16, 242); + this.btnFindAllInReplace.Margin = new System.Windows.Forms.Padding(5); + this.btnFindAllInReplace.Name = "btnFindAllInReplace"; + this.btnFindAllInReplace.Size = new System.Drawing.Size(270, 49); + this.btnFindAllInReplace.TabIndex = 10; + this.btnFindAllInReplace.Text = "Find All"; + this.btnFindAllInReplace.UseVisualStyleBackColor = false; + this.btnFindAllInReplace.Click += new System.EventHandler(this.btnFindAllInReplace_Click); + // + // btnReplace + // + this.btnReplace.BackColor = System.Drawing.SystemColors.Window; + this.btnReplace.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.btnReplace.Location = new System.Drawing.Point(16, 357); + this.btnReplace.Margin = new System.Windows.Forms.Padding(5); + this.btnReplace.Name = "btnReplace"; + this.btnReplace.Size = new System.Drawing.Size(270, 49); + this.btnReplace.TabIndex = 8; + this.btnReplace.Text = "Replace All"; + this.btnReplace.UseVisualStyleBackColor = false; + this.btnReplace.Click += new System.EventHandler(this.btnReplace_Click); // - // ckChangeToTranslated + // txtReplaceTargetReplace // - this.ckChangeToTranslated.AutoSize = true; - this.ckChangeToTranslated.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.ckChangeToTranslated.Location = new System.Drawing.Point(6, 63); - this.ckChangeToTranslated.Name = "ckChangeToTranslated"; - this.ckChangeToTranslated.Size = new System.Drawing.Size(75, 17); - this.ckChangeToTranslated.TabIndex = 2; - this.ckChangeToTranslated.Text = "Translated"; - this.ckChangeToTranslated.UseVisualStyleBackColor = true; - this.ckChangeToTranslated.CheckedChanged += new System.EventHandler(this.ckChangeToNotTranslated_CheckedChanged); - this.ckChangeToTranslated.Click += new System.EventHandler(this.ckChangeToNotTranslated_Click); + this.txtReplaceTargetReplace.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.txtReplaceTargetReplace.Location = new System.Drawing.Point(1008, 84); + this.txtReplaceTargetReplace.Margin = new System.Windows.Forms.Padding(5); + this.txtReplaceTargetReplace.Multiline = true; + this.txtReplaceTargetReplace.Name = "txtReplaceTargetReplace"; + this.txtReplaceTargetReplace.Size = new System.Drawing.Size(361, 32); + this.txtReplaceTargetReplace.TabIndex = 9; // - // ckChangeToDraft + // groupReplaceOptions // - this.ckChangeToDraft.AutoSize = true; - this.ckChangeToDraft.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.ckChangeToDraft.Location = new System.Drawing.Point(6, 40); - this.ckChangeToDraft.Name = "ckChangeToDraft"; - this.ckChangeToDraft.Size = new System.Drawing.Size(48, 17); - this.ckChangeToDraft.TabIndex = 1; - this.ckChangeToDraft.Text = "Draft"; - this.ckChangeToDraft.UseVisualStyleBackColor = true; - this.ckChangeToDraft.CheckedChanged += new System.EventHandler(this.ckChangeToNotTranslated_CheckedChanged); - this.ckChangeToDraft.Click += new System.EventHandler(this.ckChangeToNotTranslated_Click); + this.groupReplaceOptions.Controls.Add(this.ckReplaceUseRegEx); + this.groupReplaceOptions.Controls.Add(this.ckReplaceMatchWholeWord); + this.groupReplaceOptions.Controls.Add(this.ckReplaceMatchCase); + this.groupReplaceOptions.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, ((System.Drawing.FontStyle)((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Italic))), System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.groupReplaceOptions.Location = new System.Drawing.Point(16, 38); + this.groupReplaceOptions.Margin = new System.Windows.Forms.Padding(5); + this.groupReplaceOptions.Name = "groupReplaceOptions"; + this.groupReplaceOptions.Padding = new System.Windows.Forms.Padding(5); + this.groupReplaceOptions.Size = new System.Drawing.Size(270, 196); + this.groupReplaceOptions.TabIndex = 6; + this.groupReplaceOptions.TabStop = false; + this.groupReplaceOptions.Text = "Options"; // - // ckChangeToNotTranslated + // ckReplaceUseRegEx // - this.ckChangeToNotTranslated.AutoSize = true; - this.ckChangeToNotTranslated.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.ckChangeToNotTranslated.Location = new System.Drawing.Point(6, 19); - this.ckChangeToNotTranslated.Name = "ckChangeToNotTranslated"; - this.ckChangeToNotTranslated.Size = new System.Drawing.Size(91, 17); - this.ckChangeToNotTranslated.TabIndex = 0; - this.ckChangeToNotTranslated.Text = "Not translated"; - this.ckChangeToNotTranslated.UseVisualStyleBackColor = true; - this.ckChangeToNotTranslated.CheckedChanged += new System.EventHandler(this.ckChangeToNotTranslated_CheckedChanged); - this.ckChangeToNotTranslated.Click += new System.EventHandler(this.ckChangeToNotTranslated_Click); + this.ckReplaceUseRegEx.AutoSize = true; + this.ckReplaceUseRegEx.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.ckReplaceUseRegEx.Location = new System.Drawing.Point(10, 114); + this.ckReplaceUseRegEx.Margin = new System.Windows.Forms.Padding(5); + this.ckReplaceUseRegEx.Name = "ckReplaceUseRegEx"; + this.ckReplaceUseRegEx.Size = new System.Drawing.Size(248, 29); + this.ckReplaceUseRegEx.TabIndex = 2; + this.ckReplaceUseRegEx.Text = "Use regular expressions"; + this.ckReplaceUseRegEx.UseVisualStyleBackColor = true; // - // btnChangeit + // ckReplaceMatchWholeWord // - this.btnChangeit.BackColor = System.Drawing.SystemColors.Control; - this.btnChangeit.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.btnChangeit.ForeColor = System.Drawing.Color.Red; - this.btnChangeit.Location = new System.Drawing.Point(315, 171); - this.btnChangeit.Name = "btnChangeit"; - this.btnChangeit.Size = new System.Drawing.Size(138, 49); - this.btnChangeit.TabIndex = 5; - this.btnChangeit.Text = "Changeit!"; - this.btnChangeit.UseVisualStyleBackColor = false; - this.btnChangeit.Click += new System.EventHandler(this.btnChangeit_Click); + this.ckReplaceMatchWholeWord.AutoSize = true; + this.ckReplaceMatchWholeWord.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.ckReplaceMatchWholeWord.Location = new System.Drawing.Point(10, 74); + this.ckReplaceMatchWholeWord.Margin = new System.Windows.Forms.Padding(5); + this.ckReplaceMatchWholeWord.Name = "ckReplaceMatchWholeWord"; + this.ckReplaceMatchWholeWord.Size = new System.Drawing.Size(195, 29); + this.ckReplaceMatchWholeWord.TabIndex = 1; + this.ckReplaceMatchWholeWord.Text = "Match whole word"; + this.ckReplaceMatchWholeWord.UseVisualStyleBackColor = true; // - // pictureBox2 + // ckReplaceMatchCase // - this.pictureBox2.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox2.Image"))); - this.pictureBox2.InitialImage = null; - this.pictureBox2.Location = new System.Drawing.Point(315, 124); - this.pictureBox2.Name = "pictureBox2"; - this.pictureBox2.Size = new System.Drawing.Size(138, 43); - this.pictureBox2.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom; - this.pictureBox2.TabIndex = 4; - this.pictureBox2.TabStop = false; + this.ckReplaceMatchCase.AutoSize = true; + this.ckReplaceMatchCase.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.ckReplaceMatchCase.Location = new System.Drawing.Point(10, 33); + this.ckReplaceMatchCase.Margin = new System.Windows.Forms.Padding(5); + this.ckReplaceMatchCase.Name = "ckReplaceMatchCase"; + this.ckReplaceMatchCase.Size = new System.Drawing.Size(139, 29); + this.ckReplaceMatchCase.TabIndex = 0; + this.ckReplaceMatchCase.Text = "Match case"; + this.ckReplaceMatchCase.UseVisualStyleBackColor = true; // - // labelChangeComments + // lblReplaceTargetReplace // - this.labelChangeComments.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Italic, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.labelChangeComments.ForeColor = System.Drawing.Color.Blue; - this.labelChangeComments.Location = new System.Drawing.Point(318, 20); - this.labelChangeComments.Name = "labelChangeComments"; - this.labelChangeComments.Size = new System.Drawing.Size(135, 82); - this.labelChangeComments.TabIndex = 3; - this.labelChangeComments.Text = "Click Changeit! to change the selected segments, to a specific Translation Status" + - " or to lock or unlock them."; + this.lblReplaceTargetReplace.AutoSize = true; + this.lblReplaceTargetReplace.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.lblReplaceTargetReplace.Location = new System.Drawing.Point(880, 96); + this.lblReplaceTargetReplace.Margin = new System.Windows.Forms.Padding(5, 0, 5, 0); + this.lblReplaceTargetReplace.Name = "lblReplaceTargetReplace"; + this.lblReplaceTargetReplace.Size = new System.Drawing.Size(122, 25); + this.lblReplaceTargetReplace.TabIndex = 8; + this.lblReplaceTargetReplace.Text = "Replace with"; // - // groupSlice + // txtReplaceTargetSearch // - this.groupSlice.Controls.Add(this.ckMerge); - this.groupSlice.Controls.Add(this.btnSliceit); - this.groupSlice.Controls.Add(this.pictureBox1); - this.groupSlice.Controls.Add(this.labelSliceComments); - this.groupSlice.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, ((System.Drawing.FontStyle)((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Italic))), System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.groupSlice.ForeColor = System.Drawing.Color.Red; - this.groupSlice.Location = new System.Drawing.Point(4, 7); - this.groupSlice.Name = "groupSlice"; - this.groupSlice.Size = new System.Drawing.Size(164, 229); - this.groupSlice.TabIndex = 4; - this.groupSlice.TabStop = false; - this.groupSlice.Text = "Slice"; + this.txtReplaceTargetSearch.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.txtReplaceTargetSearch.Location = new System.Drawing.Point(434, 84); + this.txtReplaceTargetSearch.Margin = new System.Windows.Forms.Padding(5); + this.txtReplaceTargetSearch.Multiline = true; + this.txtReplaceTargetSearch.Name = "txtReplaceTargetSearch"; + this.txtReplaceTargetSearch.Size = new System.Drawing.Size(392, 32); + this.txtReplaceTargetSearch.TabIndex = 7; + this.txtReplaceTargetSearch.Validating += new System.ComponentModel.CancelEventHandler(this.txtReplaceTargetSearch_Validating); // - // ckMerge + // lblReplaceTargetSearch // - this.ckMerge.AutoSize = true; - this.ckMerge.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.ckMerge.ForeColor = System.Drawing.Color.Black; - this.ckMerge.Location = new System.Drawing.Point(9, 103); - this.ckMerge.Name = "ckMerge"; - this.ckMerge.Size = new System.Drawing.Size(141, 17); - this.ckMerge.TabIndex = 3; - this.ckMerge.Text = "Merge result into one file"; - this.ckMerge.UseVisualStyleBackColor = true; + this.lblReplaceTargetSearch.AutoSize = true; + this.lblReplaceTargetSearch.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.lblReplaceTargetSearch.Location = new System.Drawing.Point(290, 89); + this.lblReplaceTargetSearch.Margin = new System.Windows.Forms.Padding(5, 0, 5, 0); + this.lblReplaceTargetSearch.Name = "lblReplaceTargetSearch"; + this.lblReplaceTargetSearch.Size = new System.Drawing.Size(133, 25); + this.lblReplaceTargetSearch.TabIndex = 6; + this.lblReplaceTargetSearch.Text = "Target search"; // - // btnSliceit + // txtReplaceSourceReplace // - this.btnSliceit.BackColor = System.Drawing.SystemColors.Control; - this.btnSliceit.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.btnSliceit.ForeColor = System.Drawing.Color.Red; - this.btnSliceit.Location = new System.Drawing.Point(16, 171); - this.btnSliceit.Name = "btnSliceit"; - this.btnSliceit.Size = new System.Drawing.Size(138, 49); - this.btnSliceit.TabIndex = 2; - this.btnSliceit.Text = "Sliceit!"; - this.btnSliceit.UseVisualStyleBackColor = false; - this.btnSliceit.Click += new System.EventHandler(this.btnSliceit_Click); + this.txtReplaceSourceReplace.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.txtReplaceSourceReplace.Location = new System.Drawing.Point(1008, 38); + this.txtReplaceSourceReplace.Margin = new System.Windows.Forms.Padding(5); + this.txtReplaceSourceReplace.Multiline = true; + this.txtReplaceSourceReplace.Name = "txtReplaceSourceReplace"; + this.txtReplaceSourceReplace.Size = new System.Drawing.Size(361, 32); + this.txtReplaceSourceReplace.TabIndex = 5; // - // pictureBox1 + // lblReplaceSourceReplace // - this.pictureBox1.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox1.Image"))); - this.pictureBox1.InitialImage = null; - this.pictureBox1.Location = new System.Drawing.Point(16, 124); - this.pictureBox1.Name = "pictureBox1"; - this.pictureBox1.Size = new System.Drawing.Size(138, 43); - this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom; - this.pictureBox1.TabIndex = 1; - this.pictureBox1.TabStop = false; + this.lblReplaceSourceReplace.AutoSize = true; + this.lblReplaceSourceReplace.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.lblReplaceSourceReplace.Location = new System.Drawing.Point(880, 44); + this.lblReplaceSourceReplace.Margin = new System.Windows.Forms.Padding(5, 0, 5, 0); + this.lblReplaceSourceReplace.Name = "lblReplaceSourceReplace"; + this.lblReplaceSourceReplace.Size = new System.Drawing.Size(122, 25); + this.lblReplaceSourceReplace.TabIndex = 4; + this.lblReplaceSourceReplace.Text = "Replace with"; // - // labelSliceComments + // txtReplaceSourceSearch // - this.labelSliceComments.Dock = System.Windows.Forms.DockStyle.Fill; - this.labelSliceComments.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Italic, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.labelSliceComments.ForeColor = System.Drawing.Color.Blue; - this.labelSliceComments.Location = new System.Drawing.Point(3, 18); - this.labelSliceComments.Name = "labelSliceComments"; - this.labelSliceComments.Size = new System.Drawing.Size(158, 208); - this.labelSliceComments.TabIndex = 0; - this.labelSliceComments.Text = "Click Sliceit! to create a new SDLXLIFF file based on your selection criteria. Yo" + - "u can add this file to your Project or share it with others to handle specific s" + - "egments first."; + this.txtReplaceSourceSearch.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.txtReplaceSourceSearch.Location = new System.Drawing.Point(434, 38); + this.txtReplaceSourceSearch.Margin = new System.Windows.Forms.Padding(5); + this.txtReplaceSourceSearch.Multiline = true; + this.txtReplaceSourceSearch.Name = "txtReplaceSourceSearch"; + this.txtReplaceSourceSearch.Size = new System.Drawing.Size(392, 32); + this.txtReplaceSourceSearch.TabIndex = 1; + this.txtReplaceSourceSearch.Validating += new System.ComponentModel.CancelEventHandler(this.txtReplaceSourceSearch_Validating); + // + // lblReplaceSourceSearch + // + this.lblReplaceSourceSearch.AutoSize = true; + this.lblReplaceSourceSearch.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.lblReplaceSourceSearch.Location = new System.Drawing.Point(290, 44); + this.lblReplaceSourceSearch.Margin = new System.Windows.Forms.Padding(5, 0, 5, 0); + this.lblReplaceSourceSearch.Name = "lblReplaceSourceSearch"; + this.lblReplaceSourceSearch.Size = new System.Drawing.Size(139, 25); + this.lblReplaceSourceSearch.TabIndex = 0; + this.lblReplaceSourceSearch.Text = "Source search"; // // browseTableLayoutPanel // @@ -1367,14 +1531,15 @@ public void InitializeComponent() this.browseTableLayoutPanel.Controls.Add(this.panel1, 0, 1); this.browseTableLayoutPanel.Controls.Add(this.browseLabel, 0, 0); this.browseTableLayoutPanel.Controls.Add(this.gridXLIFFFiles, 0, 2); - this.browseTableLayoutPanel.Location = new System.Drawing.Point(8, 3); - this.browseTableLayoutPanel.MaximumSize = new System.Drawing.Size(804, 274); + this.browseTableLayoutPanel.Location = new System.Drawing.Point(14, 5); + this.browseTableLayoutPanel.Margin = new System.Windows.Forms.Padding(5); + this.browseTableLayoutPanel.MaximumSize = new System.Drawing.Size(1407, 480); this.browseTableLayoutPanel.Name = "browseTableLayoutPanel"; this.browseTableLayoutPanel.RowCount = 3; this.browseTableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle()); this.browseTableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle()); this.browseTableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); - this.browseTableLayoutPanel.Size = new System.Drawing.Size(804, 247); + this.browseTableLayoutPanel.Size = new System.Drawing.Size(1407, 432); this.browseTableLayoutPanel.TabIndex = 0; // // panel1 @@ -1383,9 +1548,10 @@ public void InitializeComponent() this.panel1.Controls.Add(this.cmbLanguages); this.panel1.Controls.Add(this.toolStrip1); this.panel1.Dock = System.Windows.Forms.DockStyle.Fill; - this.panel1.Location = new System.Drawing.Point(3, 16); + this.panel1.Location = new System.Drawing.Point(5, 30); + this.panel1.Margin = new System.Windows.Forms.Padding(5); this.panel1.Name = "panel1"; - this.panel1.Size = new System.Drawing.Size(798, 31); + this.panel1.Size = new System.Drawing.Size(1397, 54); this.panel1.TabIndex = 5; // // cmbLanguages @@ -1394,9 +1560,10 @@ public void InitializeComponent() | System.Windows.Forms.AnchorStyles.Right))); this.cmbLanguages.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.cmbLanguages.FormattingEnabled = true; - this.cmbLanguages.Location = new System.Drawing.Point(646, 5); + this.cmbLanguages.Location = new System.Drawing.Point(1130, 9); + this.cmbLanguages.Margin = new System.Windows.Forms.Padding(5); this.cmbLanguages.Name = "cmbLanguages"; - this.cmbLanguages.Size = new System.Drawing.Size(152, 21); + this.cmbLanguages.Size = new System.Drawing.Size(264, 32); this.cmbLanguages.TabIndex = 2; this.cmbLanguages.SelectedIndexChanged += new System.EventHandler(this.cmbLanguages_SelectedIndexChanged); // @@ -1405,6 +1572,7 @@ public void InitializeComponent() this.toolStrip1.AutoSize = false; this.toolStrip1.CanOverflow = false; this.toolStrip1.Dock = System.Windows.Forms.DockStyle.None; + this.toolStrip1.ImageScalingSize = new System.Drawing.Size(28, 28); this.toolStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.btnSelectFolder, this.btnSelectSDLXLIFFFiles, @@ -1412,7 +1580,8 @@ public void InitializeComponent() this.toolStripButton1}); this.toolStrip1.Location = new System.Drawing.Point(0, 0); this.toolStrip1.Name = "toolStrip1"; - this.toolStrip1.Size = new System.Drawing.Size(643, 31); + this.toolStrip1.Padding = new System.Windows.Forms.Padding(0, 0, 4, 0); + this.toolStrip1.Size = new System.Drawing.Size(1125, 54); this.toolStrip1.Stretch = true; this.toolStrip1.TabIndex = 0; this.toolStrip1.Text = "toolStrip1"; @@ -1422,7 +1591,7 @@ public void InitializeComponent() this.btnSelectFolder.Image = ((System.Drawing.Image)(resources.GetObject("btnSelectFolder.Image"))); this.btnSelectFolder.ImageTransparentColor = System.Drawing.Color.Magenta; this.btnSelectFolder.Name = "btnSelectFolder"; - this.btnSelectFolder.Size = new System.Drawing.Size(104, 28); + this.btnSelectFolder.Size = new System.Drawing.Size(181, 48); this.btnSelectFolder.Text = "Select folder ..."; this.btnSelectFolder.Click += new System.EventHandler(this.btnSelectFolder_Click); // @@ -1431,7 +1600,7 @@ public void InitializeComponent() this.btnSelectSDLXLIFFFiles.Image = ((System.Drawing.Image)(resources.GetObject("btnSelectSDLXLIFFFiles.Image"))); this.btnSelectSDLXLIFFFiles.ImageTransparentColor = System.Drawing.Color.Magenta; this.btnSelectSDLXLIFFFiles.Name = "btnSelectSDLXLIFFFiles"; - this.btnSelectSDLXLIFFFiles.Size = new System.Drawing.Size(132, 28); + this.btnSelectSDLXLIFFFiles.Size = new System.Drawing.Size(230, 48); this.btnSelectSDLXLIFFFiles.Text = "Select sdlxliff files ..."; this.btnSelectSDLXLIFFFiles.Click += new System.EventHandler(this.btnSelectSDLXLIFFFiles_Click); // @@ -1440,7 +1609,7 @@ public void InitializeComponent() this.btnSelectProjectFile.Image = ((System.Drawing.Image)(resources.GetObject("btnSelectProjectFile.Image"))); this.btnSelectProjectFile.ImageTransparentColor = System.Drawing.Color.Magenta; this.btnSelectProjectFile.Name = "btnSelectProjectFile"; - this.btnSelectProjectFile.Size = new System.Drawing.Size(129, 28); + this.btnSelectProjectFile.Size = new System.Drawing.Size(225, 48); this.btnSelectProjectFile.Text = "Select project file ..."; this.btnSelectProjectFile.Click += new System.EventHandler(this.btnSelectProjectFile_Click); // @@ -1449,7 +1618,7 @@ public void InitializeComponent() this.toolStripButton1.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButton1.Image"))); this.toolStripButton1.ImageTransparentColor = System.Drawing.Color.Magenta; this.toolStripButton1.Name = "toolStripButton1"; - this.toolStripButton1.Size = new System.Drawing.Size(136, 28); + this.toolStripButton1.Size = new System.Drawing.Size(238, 48); this.toolStripButton1.Text = "Clear selected files ..."; this.toolStripButton1.Click += new System.EventHandler(this.toolStripButton1_Click); // @@ -1457,9 +1626,10 @@ public void InitializeComponent() // this.browseLabel.AutoSize = true; this.browseLabel.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.browseLabel.Location = new System.Drawing.Point(3, 0); + this.browseLabel.Location = new System.Drawing.Point(5, 0); + this.browseLabel.Margin = new System.Windows.Forms.Padding(5, 0, 5, 0); this.browseLabel.Name = "browseLabel"; - this.browseLabel.Size = new System.Drawing.Size(134, 13); + this.browseLabel.Size = new System.Drawing.Size(232, 25); this.browseLabel.TabIndex = 0; this.browseLabel.Text = "Browse for SDLXLIFFs"; // @@ -1471,6 +1641,7 @@ public void InitializeComponent() this.gridXLIFFFiles.AllowUserToOrderColumns = true; this.gridXLIFFFiles.AllowUserToResizeRows = false; this.gridXLIFFFiles.BackgroundColor = System.Drawing.SystemColors.Control; + this.gridXLIFFFiles.ColumnHeadersHeight = 40; this.gridXLIFFFiles.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { this.colPath, this.colName, @@ -1478,11 +1649,13 @@ public void InitializeComponent() this.colDate}); this.gridXLIFFFiles.Dock = System.Windows.Forms.DockStyle.Fill; this.gridXLIFFFiles.GridColor = System.Drawing.SystemColors.Control; - this.gridXLIFFFiles.Location = new System.Drawing.Point(3, 53); - this.gridXLIFFFiles.MinimumSize = new System.Drawing.Size(100, 0); + this.gridXLIFFFiles.Location = new System.Drawing.Point(5, 94); + this.gridXLIFFFiles.Margin = new System.Windows.Forms.Padding(5); + this.gridXLIFFFiles.MinimumSize = new System.Drawing.Size(175, 0); this.gridXLIFFFiles.Name = "gridXLIFFFiles"; + this.gridXLIFFFiles.RowHeadersWidth = 72; this.gridXLIFFFiles.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; - this.gridXLIFFFiles.Size = new System.Drawing.Size(798, 191); + this.gridXLIFFFiles.Size = new System.Drawing.Size(1397, 333); this.gridXLIFFFiles.TabIndex = 2; this.gridXLIFFFiles.SelectionChanged += new System.EventHandler(this.gridXLIFFFiles_SelectionChanged); this.gridXLIFFFiles.DragDrop += new System.Windows.Forms.DragEventHandler(this.gridXLIFFFiles_DragDrop); @@ -1492,14 +1665,17 @@ public void InitializeComponent() // this.colPath.DataPropertyName = "Path"; this.colPath.HeaderText = "Path"; + this.colPath.MinimumWidth = 9; this.colPath.Name = "colPath"; this.colPath.Visible = false; + this.colPath.Width = 175; // // colName // this.colName.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill; this.colName.DataPropertyName = "Name"; this.colName.HeaderText = "Name"; + this.colName.MinimumWidth = 9; this.colName.Name = "colName"; this.colName.ReadOnly = true; // @@ -1509,85 +1685,63 @@ public void InitializeComponent() dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight; this.colSize.DefaultCellStyle = dataGridViewCellStyle1; this.colSize.HeaderText = "Size"; + this.colSize.MinimumWidth = 9; this.colSize.Name = "colSize"; this.colSize.ReadOnly = true; + this.colSize.Width = 175; // // colDate // this.colDate.DataPropertyName = "Date"; this.colDate.HeaderText = "Date"; + this.colDate.MinimumWidth = 9; this.colDate.Name = "colDate"; this.colDate.Width = 190; // - // mainTableLayoutPanel - // - this.mainTableLayoutPanel.AutoSize = true; - this.mainTableLayoutPanel.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; - this.mainTableLayoutPanel.ColumnCount = 1; - this.mainTableLayoutPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); - this.mainTableLayoutPanel.Controls.Add(this.panelCommands, 0, 2); - this.mainTableLayoutPanel.Controls.Add(this.panelStatus, 0, 3); - this.mainTableLayoutPanel.Controls.Add(this.tabControl1, 0, 1); - this.mainTableLayoutPanel.Controls.Add(this.browseTableLayoutPanel, 0, 0); - this.mainTableLayoutPanel.Dock = System.Windows.Forms.DockStyle.Fill; - this.mainTableLayoutPanel.Location = new System.Drawing.Point(0, 0); - this.mainTableLayoutPanel.Name = "mainTableLayoutPanel"; - this.mainTableLayoutPanel.RowCount = 4; - this.mainTableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle()); - this.mainTableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle()); - this.mainTableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle()); - this.mainTableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle()); - this.mainTableLayoutPanel.Size = new System.Drawing.Size(820, 1059); - this.mainTableLayoutPanel.TabIndex = 11; - // - // panelStatus + // errorProvider1 // - this.panelStatus.Controls.Add(this.progressBar); - this.panelStatus.Location = new System.Drawing.Point(3, 786); - this.panelStatus.Name = "panelStatus"; - this.panelStatus.Size = new System.Drawing.Size(794, 51); - this.panelStatus.TabIndex = 10; + this.errorProvider1.ContainerControl = this; // - // progressBar + // xLIFFFiles // - this.progressBar.Location = new System.Drawing.Point(18, 21); - this.progressBar.MarqueeAnimationSpeed = 10; - this.progressBar.Name = "progressBar"; - this.progressBar.Size = new System.Drawing.Size(758, 14); - this.progressBar.Style = System.Windows.Forms.ProgressBarStyle.Marquee; - this.progressBar.TabIndex = 8; + this.xLIFFFiles.DataSetName = "XLIFFFiles"; + this.xLIFFFiles.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema; // - // errorProvider1 + // filesBindingSource // - this.errorProvider1.ContainerControl = this; + this.filesBindingSource.DataMember = "Files"; + this.filesBindingSource.DataSource = this.xLIFFFiles; // // SdlxliffSliceOrChange // - this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F); + this.AutoScaleDimensions = new System.Drawing.SizeF(168F, 168F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi; this.AutoScroll = true; this.AutoSize = true; - //this.Controls.Add(this.mainTableLayoutPanel); - - - - // Add the TableLayoutPanel to the Panel - scrollablePanel.Controls.Add(mainTableLayoutPanel); - - // Adjust TableLayoutPanel settings - mainTableLayoutPanel.Dock = DockStyle.Top; - mainTableLayoutPanel.AutoSize = true; - mainTableLayoutPanel.AutoSizeMode = AutoSizeMode.GrowAndShrink; - - // Add the Panel to the UserControl - this.Controls.Add(scrollablePanel); - + this.Controls.Add(this.scrollablePanel); + this.Margin = new System.Windows.Forms.Padding(5); this.Name = "SdlxliffSliceOrChange"; - this.Size = new System.Drawing.Size(820, 1059); + this.Size = new System.Drawing.Size(1435, 1853); this.Load += new System.EventHandler(this.SDLXLIFFSliceOrChange_Load); this.SizeChanged += new System.EventHandler(this.SDLXLIFFSliceOrChange_SizeChanged); - ((System.ComponentModel.ISupportInitialize)(this.xLIFFFiles)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.filesBindingSource)).EndInit(); + this.scrollablePanel.ResumeLayout(false); + this.scrollablePanel.PerformLayout(); + this.mainTableLayoutPanel.ResumeLayout(false); + this.panelCommands.ResumeLayout(false); + this.groupClear.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.pictureBox3)).EndInit(); + this.groupChange.ResumeLayout(false); + this.groupChangeToStatusOr.ResumeLayout(false); + this.groupChangeToStatusOr.PerformLayout(); + this.groupChangeLocked.ResumeLayout(false); + this.groupChangeLocked.PerformLayout(); + this.groupChangeTranslationStatus.ResumeLayout(false); + this.groupChangeTranslationStatus.PerformLayout(); + ((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).EndInit(); + this.groupSlice.ResumeLayout(false); + this.groupSlice.PerformLayout(); + ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit(); + this.panelStatus.ResumeLayout(false); this.tabControl1.ResumeLayout(false); this.pageStatuses.ResumeLayout(false); this.groupDocumentStructure.ResumeLayout(false); @@ -1614,32 +1768,16 @@ public void InitializeComponent() ((System.ComponentModel.ISupportInitialize)(this.gridReplaceResults)).EndInit(); this.groupReplaceOptions.ResumeLayout(false); this.groupReplaceOptions.PerformLayout(); - this.panelCommands.ResumeLayout(false); - this.groupClear.ResumeLayout(false); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox3)).EndInit(); - this.groupChange.ResumeLayout(false); - this.groupChangeToStatusOr.ResumeLayout(false); - this.groupChangeToStatusOr.PerformLayout(); - this.groupChangeLocked.ResumeLayout(false); - this.groupChangeLocked.PerformLayout(); - this.groupChangeTranslationStatus.ResumeLayout(false); - this.groupChangeTranslationStatus.PerformLayout(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).EndInit(); - this.groupSlice.ResumeLayout(false); - this.groupSlice.PerformLayout(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit(); this.browseTableLayoutPanel.ResumeLayout(false); this.browseTableLayoutPanel.PerformLayout(); this.panel1.ResumeLayout(false); this.toolStrip1.ResumeLayout(false); this.toolStrip1.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.gridXLIFFFiles)).EndInit(); - this.mainTableLayoutPanel.ResumeLayout(false); - this.panelStatus.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.errorProvider1)).EndInit(); - this.scrollablePanel.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.xLIFFFiles)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.filesBindingSource)).EndInit(); this.ResumeLayout(false); - this.PerformLayout(); } @@ -1763,6 +1901,7 @@ public void InitializeComponent() private System.Windows.Forms.ProgressBar progressBar; private System.Windows.Forms.ErrorProvider errorProvider1; public System.Windows.Forms.CheckBox ckNeuralMachineTranslation; - } + public Button CancelButton; + } } diff --git a/Toolkit/SDLXLIFFSliceOrChange/SDLXLIFFSliceOrChange.cs b/Toolkit/SDLXLIFFSliceOrChange/SDLXLIFFSliceOrChange.cs index 5f6fc11bac..77e87a079c 100644 --- a/Toolkit/SDLXLIFFSliceOrChange/SDLXLIFFSliceOrChange.cs +++ b/Toolkit/SDLXLIFFSliceOrChange/SDLXLIFFSliceOrChange.cs @@ -16,6 +16,7 @@ using NLog; using Sdl.Core.Globalization; using Sdl.Desktop.IntegrationApi.Interfaces; +using Sdl.ProjectAutomation.Core; using Sdl.TranslationStudioAutomation.IntegrationApi; using Sdl.Versioning; using SdlXliff.Toolkit.Integration; @@ -24,6 +25,7 @@ using SdlXliff.Toolkit.Integration.File; using SDLXLIFFSliceOrChange.Data; using SDLXLIFFSliceOrChange.ResourceManager; +using Task = System.Threading.Tasks.Task; namespace SDLXLIFFSliceOrChange { @@ -53,6 +55,8 @@ public SdlxliffSliceOrChange() _errorProvider = new ErrorProvider(); } + private CancellationTokenSource CancellationTokenSource { get; set; } + public SliceManager SliceManager { get; } public UpdateManager UpdateManager { get; } @@ -86,7 +90,7 @@ public void ShowProcess() _setFormSizeChanged = true; } - public void StepProcess(string message, bool lastStep = false) + public void StepProcess(bool lastStep = false) { Invoke((MethodInvoker)delegate { @@ -135,6 +139,8 @@ private List AddNonExistingSegments(List sourceSegment { foreach (var targetSegment in targetSegments) { + if (CancellationTokenSource.Token.IsCancellationRequested) break; + if (sourceSegments.All(segment => segment.SegmentId != targetSegment.SegmentId)) { var maxSID = sourceSegments.Count == 0 ? -1 : sourceSegments.Select(segData => segData.Sid).Max(); @@ -259,7 +265,7 @@ private void btnChangeit_Click(object sender, EventArgs e) var indexes = listDocumentStructure.SelectedIndices.Cast().ToList(); var doCopySourceToTarget = ckCopySourceToTarget.Checked; var doOR = cmbOperator.SelectedIndex == 0; - StepProcess("Changing files based on selected options..."); + StepProcess(); var t = new Thread(() => DoChangeNow(selectedTabIndex, indexes, doCopySourceToTarget, doOR)); t.Start(); } @@ -274,7 +280,7 @@ private void btnClearit_Click(object sender, EventArgs e) return; } ShowProcess(); - StepProcess("Clearing target segments from selected files ..."); + StepProcess(); var selectedTabIndex = tabControl1.SelectedIndex; var selectedDSIndexes = listDocumentStructure.SelectedIndices.Cast().ToList(); var doOR = cmbOperator.SelectedIndex == 0; @@ -367,7 +373,7 @@ private void btnFindAll_Click(object sender, EventArgs e) (String.IsNullOrEmpty(txtSourceSearch.Text) && String.IsNullOrEmpty(txtTargetSearch.Text))) return; ShowProcess(); - StepProcess("Finding in files ..."); + StepProcess(); var doOR = cmbOperator.SelectedIndex == 0; var t = new Thread(() => DoFindNow(doOR)); t.Start(); @@ -382,7 +388,7 @@ private void btnFindAllInReplace_Click(object sender, EventArgs e) _doUpdateStatus = false; ShowProcess(); - StepProcess("Finding in files before replace ..."); + StepProcess(); var sourceSettings = String.IsNullOrEmpty(txtReplaceSourceSearch.Text) ? null @@ -433,13 +439,12 @@ private void btnGenerateDSI_Click(object sender, EventArgs e) var files = (from DataGridViewRow row in gridXLIFFFiles.SelectedRows select row.Cells[0].Value.ToString()).ToList(); _structureInformationTypes.Clear(); - StepProcess("Reading Document Structure information from files...", false); + StepProcess(false); var trd = new Thread(() => { foreach (var file in files) { - StepProcess( - "Reading Document Structure information from file: " + Path.GetFileName(file) + ".", false); + StepProcess(false); using (var reader = XmlReader.Create(file)) { while (reader.Read()) @@ -496,7 +501,7 @@ private void btnGenerateDSI_Click(object sender, EventArgs e) } } } - StepProcess("Displaying Document Structure information ...", true); + StepProcess(true); DisplayDSI(); }); trd.Start(); @@ -511,13 +516,13 @@ private void btnPreview_Click(object sender, EventArgs e) _doUpdateStatus = false; ShowProcess(); - StepProcess("Generating replace preview ..."); + StepProcess(); var t = new Thread(() => { DoReplacePreviewOperation(); BindReplaceResults(); - StepProcess("Preview generated.", true); + StepProcess(true); }); t.Start(); } @@ -529,7 +534,7 @@ private void btnReplace_Click(object sender, EventArgs e) if (!files.Any()) return; ShowProcess(); - StepProcess("Replacing in files ..."); + StepProcess(); var t = new Thread(() => DoReplaceNow(files)); t.Start(); } @@ -651,14 +656,15 @@ private void btnSliceit_Click(object sender, EventArgs e) return; } ShowProcess(); - StepProcess("Sliceing files ...", false); + StepProcess(false); var selectedTabIndex = tabControl1.SelectedIndex; var selectedDSIndexes = listDocumentStructure.SelectedIndices.Cast().ToList(); var doMerge = ckMerge.Checked; var doOR = cmbOperator.SelectedIndex == 0; - var t = new Thread(() => DoSliceNow(selectedTabIndex, selectedDSIndexes, doMerge, doOR)); - t.Start(); + + CancellationTokenSource = new CancellationTokenSource(); + Task.Run(() => DoSliceNow(selectedTabIndex, selectedDSIndexes, doMerge, doOR), CancellationTokenSource.Token); } } @@ -706,7 +712,7 @@ private void ClearFiles() var threads = new List(); foreach (var sliceInfo in _segmentsToBeSliced) { - StepProcess("Clearing file: " + Path.GetFileName(sliceInfo.File) + "."); + StepProcess(); var t = new Thread(() => ClearManager.ClearFile(sliceInfo, this)); t.Start(); @@ -742,7 +748,7 @@ private void CopyFiles() var threads = new List(); foreach (var sliceInfo in _segmentsToBeSliced) { - StepProcess("Copying in file: " + Path.GetFileName(sliceInfo.File) + "."); + StepProcess(); var t = new Thread(() => ClearManager.CopyFile(sliceInfo, this)); t.Start(); @@ -755,12 +761,20 @@ private void CopyFiles() private void CopyFilesFromTempFolder(List>> filesPerLanguage) { foreach (var keyValuePair in filesPerLanguage) + { + if (CancellationTokenSource.Token.IsCancellationRequested) + break; + foreach (var file in keyValuePair.Value) { + if (CancellationTokenSource.Token.IsCancellationRequested) + break; + File.Copy(file, - Path.Combine(_folderForSlicedFiles, - Path.GetFileName(file).Replace(".sdlxliff", "_sliced.sdlxliff"))); + Path.Combine(_folderForSlicedFiles, + Path.GetFileName(file).Replace(".sdlxliff", "_sliced.sdlxliff"))); } + } } private void DisplayDSI() @@ -786,16 +800,16 @@ private void DoChangeNow(int selectedTabIndex, IEnumerable indexes, bool do if (doCopySourceToTarget) { - StepProcess("Copying source to target in selected files ..."); + StepProcess(); DoCopySourceNow(selectedTabIndex, indexes, doOR); } - StepProcess("Files are changed based on selected options.", true); + StepProcess(true); } private void DoClearDow(int selectedTabIndex, List selectedDSIndexes, bool doOR) { - StepProcess("Processing files ..."); + StepProcess(); if (selectedTabIndex == 1) { _doUpdateStatus = false; @@ -849,14 +863,14 @@ private void DoClearDow(int selectedTabIndex, List selectedDSIndexes, bool _segmentsToBeSliced.Clear(); ProcessFileBasedOnStatuses(selectedDSIndexes, true); } - StepProcess("Clearing files ..."); + StepProcess(); ClearFiles(); - StepProcess("Target segments from selected files are clear.", true); + StepProcess(true); } private void DoCopySourceNow(int selectedTabIndex, IEnumerable selectedDSIndexes, bool doOR) { - StepProcess("Processing files ..."); + StepProcess(); if (selectedTabIndex == 1) { _doUpdateStatus = false; @@ -910,9 +924,9 @@ private void DoCopySourceNow(int selectedTabIndex, IEnumerable selectedDSIn _segmentsToBeSliced.Clear(); ProcessFileBasedOnStatuses(selectedDSIndexes, true); } - StepProcess("Copying source to target ..."); + StepProcess(); CopyFiles(); - StepProcess("Source segments from selected files are copied to target.", true); + StepProcess(true); } private void DoFindForReplaceNow(SearchSettings sourceSettings, SearchSettings targetSettings) @@ -920,13 +934,13 @@ private void DoFindForReplaceNow(SearchSettings sourceSettings, SearchSettings t FindInFilesForReplace(sourceSettings, targetSettings); BindReplaceResults(); - StepProcess("Find before replace completed.", true); + StepProcess(true); } private void DoFindNow(bool doOR) { StartFind(false, doOR); - StepProcess("Find completed.", true); + StepProcess(true); } private void DoReplaceNow(IEnumerable files) @@ -935,12 +949,12 @@ private void DoReplaceNow(IEnumerable files) DoReplacePreviewOperation(); ChangeInFiles(files); BindReplaceResults(); - StepProcess("Replace completed.", true); + StepProcess(true); } private void DoReplacePreviewOperation() { - StepProcess("Preparing files for replace operation ..."); + StepProcess(); var sourceSettings = string.IsNullOrEmpty(txtReplaceSourceSearch.Text) ? null : new SearchSettings() @@ -987,7 +1001,7 @@ private void DoReplacePreviewOperation() private void DoSliceNow(int selectedTab, IEnumerable indexes, bool doMerge, bool doOR) { - StepProcess("Processing files based on slice information ...", false); + StepProcess(false); var filesToBeSliced = SplitMergedXliffFiles(); if (!filesToBeSliced.Any()) return; if (selectedTab == 1) @@ -998,8 +1012,14 @@ private void DoSliceNow(int selectedTab, IEnumerable indexes, bool doMerge, _segmentsToBeSliced.Clear(); foreach (var searchResult in _searchResults) { + if (CancellationTokenSource.Token.IsCancellationRequested) + break; + foreach (var searchSourceResult in searchResult.SearchSourceResults) { + if (CancellationTokenSource.Token.IsCancellationRequested) + break; + var SegmentId = searchSourceResult.Value.SegmentId.ToString(CultureInfo.InvariantCulture); var transUnitID = searchSourceResult.Value.SegmentContent.ParentParagraphUnit.Properties.ParagraphUnitId.Id; var file = searchResult.FilePath; @@ -1036,13 +1056,13 @@ private void DoSliceNow(int selectedTab, IEnumerable indexes, bool doMerge, ProcessFileBasedOnStatuses(indexes, true, filesToBeSliced); } - StepProcess("Slice files ...", false); + StepProcess(false); SliceFiles(doMerge); var folder = Path.GetDirectoryName(filesToBeSliced.Select(kvp => kvp.Value).ToList()[0]); if (folder != null) Directory.Delete(folder, true); - StepProcess("Files were successfully sliced.", true); + StepProcess(true); } private void EnsureUIBasedOnCultureInfo(string culture) @@ -1147,7 +1167,7 @@ private void FindInFiles(bool doOR, List filesToBeSliced = null) var files = filesToBeSliced ?? (from DataGridViewRow row in gridXLIFFFiles.SelectedRows select row.Cells[0].Value.ToString()).ToList(); if (_searchResults != null) _searchResults.Clear(); - StepProcess("Looking in source segments ..."); + StepProcess(); var settings = new SearchSettings() { SearchText = txtSourceSearch.Text, @@ -1184,7 +1204,7 @@ private void FindInFiles(bool doOR, List filesToBeSliced = null) SearchSettings targetSettings = null; if (searchInTarget) { - StepProcess("Looking in target segments ..."); + StepProcess(); settings.SearchText = txtTargetSearch.Text; settings.ReplaceText = txtTargetSearch.Text; settings.SearchInSource = false; @@ -1200,11 +1220,13 @@ private void FindInFiles(bool doOR, List filesToBeSliced = null) _searchResults = targetResult; else { - StepProcess("Merging source and target segments ..."); + StepProcess(); var fileDataToBeAdded = new List(); var fileDataToBeRemoved = new List(); foreach (var fileData in _searchResults) { + if (CancellationTokenSource.Token.IsCancellationRequested) break; + var file = fileData.FilePath; var targetFileData = targetResult.FirstOrDefault(data => data.FilePath == file); if (targetFileData != null) @@ -1222,6 +1244,9 @@ private void FindInFiles(bool doOR, List filesToBeSliced = null) var lenghtOfFilesToBeAdded = fileDataToBeAdded.Count; for (var i = 0; i < fileDataToBeRemoved.Count; i++) { + if (CancellationTokenSource.Token.IsCancellationRequested) + break; + _searchResults.Remove(fileDataToBeRemoved[i]); if (i < lenghtOfFilesToBeAdded) _searchResults.Insert(i, fileDataToBeAdded[i]); @@ -1247,7 +1272,7 @@ private void FindInFilesForReplace(SearchSettings sourceSettings = null, SearchS (from DataGridViewRow row in gridXLIFFFiles.SelectedRows select row.Cells[0].Value.ToString()).ToList(); if (_replaceResults != null) _replaceResults.Clear(); - StepProcess("Processing source segments ..."); + StepProcess(); if (sourceSettings != null && !String.IsNullOrEmpty(sourceSettings.SearchText)) { @@ -1259,7 +1284,7 @@ private void FindInFilesForReplace(SearchSettings sourceSettings = null, SearchS searchInTarget = targeSettings != null && !String.IsNullOrEmpty(targeSettings.SearchText); if (searchInTarget) { - StepProcess("Processing target segments ..."); + StepProcess(); var analyzer = new FilesAnalyzer(files); analyzer.SearchInFiles(targeSettings); var targetResult = analyzer.FileResults; @@ -1537,6 +1562,9 @@ private bool GroupHasCheckedCheckBoxes(GroupBox groupBox) var checkBoxes = groupBox.Controls.OfType(); foreach (var checkBox in checkBoxes) { + if (CancellationTokenSource.Token.IsCancellationRequested) + break; + if (checkBox.Checked) return true; } @@ -1593,20 +1621,29 @@ private FileData IntersectSourceAndTarget(FileData fileData, FileData targetFile private void PostProcessSearchResult(IEnumerable results, SearchSettings sourceSettings = null, SearchSettings targetSettings = null) { - StepProcess("Post processing search result ..."); + StepProcess(); if (results is null || !results.Any()) return; foreach (var fileData in results) { - StepProcess("Post processing search result for file: " + Path.GetFileName(fileData.FilePath) + " ..."); + if (CancellationTokenSource.Token.IsCancellationRequested) + break; + + StepProcess(); if (sourceSettings != null && sourceSettings.SearchInTag && fileData.SearchSourceResults.Any(ssr => ssr.Value.Tags.Count > 0)) { var sResults = fileData.SearchSourceResults.Where(ssr => ssr.Value.Tags.Count > 0); foreach (var sResult in sResults) { + if (CancellationTokenSource.Token.IsCancellationRequested) + break; + for (var i = 0; i < sResult.Value.Tags.Count; i++) { + if (CancellationTokenSource.Token.IsCancellationRequested) + break; + var tag = sResult.Value.Tags[i]; if (tag.TagText.StartsWith(" results, SearchSettin if (sourceSettings != null && sourceSettings.UseRegex && fileData.SearchSourceResults.Any(sr => sr.Value.MatchesCount > 0)) { - StepProcess("Post processing source result ..."); + StepProcess(); var sResults = fileData.SearchSourceResults.Where(sr => sr.Value.MatchesCount > 0); foreach (var sResult in sResults) { + if (CancellationTokenSource.Token.IsCancellationRequested) + break; + var sResultText = sResult.Value.SegmentText; var searchResultsToRemove = new List(); foreach (var searchResult in sResult.Value.SearchResults) { + if (CancellationTokenSource.Token.IsCancellationRequested) + break; + if (!Regex.IsMatch(sResultText, sourceSettings.SearchText, !sourceSettings.MatchCase ? RegexOptions.IgnoreCase : RegexOptions.None)) { searchResultsToRemove.Add(searchResult); @@ -1642,6 +1685,9 @@ private void PostProcessSearchResult(IEnumerable results, SearchSettin foreach (var indexData in searchResultsToRemove) { + if (CancellationTokenSource.Token.IsCancellationRequested) + break; + sResult.Value.SearchResults.Remove(indexData); } } @@ -1652,6 +1698,8 @@ private void PostProcessSearchResult(IEnumerable results, SearchSettin var sResults = fileData.SearchTargetResults.Where(ssr => ssr.Value.Tags.Count > 0); foreach (var sResult in sResults) { + if (CancellationTokenSource.Token.IsCancellationRequested) + break; for (var i = 0; i < sResult.Value.Tags.Count; i++) { var tag = sResult.Value.Tags[i]; @@ -1671,14 +1719,20 @@ private void PostProcessSearchResult(IEnumerable results, SearchSettin if (targetSettings != null && targetSettings.UseRegex && fileData.SearchTargetResults.Any(sr => sr.Value.MatchesCount > 0)) { - StepProcess("Post processing target result ..."); + StepProcess(); var sResults = fileData.SearchTargetResults.Where(sr => sr.Value.MatchesCount > 0); foreach (var sResult in sResults) { + if (CancellationTokenSource.Token.IsCancellationRequested) + break; + var tResultText = sResult.Value.SegmentText; var searchResultsToRemove = new List(); foreach (var searchResult in sResult.Value.SearchResults) { + if (CancellationTokenSource.Token.IsCancellationRequested) + break; + if (!Regex.IsMatch(tResultText, targetSettings.SearchText, !targetSettings.MatchCase ? RegexOptions.IgnoreCase : RegexOptions.None)) { searchResultsToRemove.Add(searchResult); @@ -1687,12 +1741,15 @@ private void PostProcessSearchResult(IEnumerable results, SearchSettin foreach (var indexData in searchResultsToRemove) { + if (CancellationTokenSource.Token.IsCancellationRequested) + break; + sResult.Value.SearchResults.Remove(indexData); } } } } - StepProcess("Post processing completed."); + StepProcess(); } private void ProcessFileBasedOnStatuses(IEnumerable indexes, bool forSlice = false, List> filesToBeSliced = null) @@ -1701,6 +1758,9 @@ private void ProcessFileBasedOnStatuses(IEnumerable indexes, bool forSlice var threads = new List(); foreach (var file in files) { + if (CancellationTokenSource.Token.IsCancellationRequested) + break; + var t = new Thread(() => ProcessOneFileBasedOnStatuses(forSlice, file, indexes, filesToBeSliced)); t.Start(); threads.Add(t); @@ -1713,7 +1773,7 @@ private void ProcessFileBasedOnStatuses(IEnumerable indexes, bool forSlice private void ProcessOneFileBasedOnStatuses(bool forSlice, string file, IEnumerable DSSelectedIndexes, List> filesToBeSliced) { - StepProcess("Processing file: " + Path.GetFileName(file) + ". ", false); + StepProcess(false); var xDoc = new XmlDocument(); xDoc.PreserveWhitespace = true; @@ -1744,10 +1804,16 @@ private void ProcessOneFileBasedOnStatuses(bool forSlice, string file, IEnumerab { foreach (var fileElement in fileList.OfType()) { + if (CancellationTokenSource.Token.IsCancellationRequested) + break; + var bodyElement = (XmlElement)(fileElement.GetElementsByTagName("body")[0]); var groupElements = bodyElement.GetElementsByTagName("group"); foreach (var groupElement in groupElements.OfType()) { + if (CancellationTokenSource.Token.IsCancellationRequested) + break; + ProcessOnFileBasedOnStatusesInBody(forSlice, file, DSSelectedIndexes, originalFile, groupElement); } ProcessOnFileBasedOnStatusesInBody(forSlice, file, DSSelectedIndexes, originalFile, bodyElement); @@ -1782,6 +1848,9 @@ private void ProcessOnFileBasedOnStatusesInBody(bool forSlice, string file, IEnu var selectedIDs = new List(); foreach (var index in DSSelectedIndexes) { + if (CancellationTokenSource.Token.IsCancellationRequested) + break; + if (_structureInformationTypes[index].IDs.Any(f => f.Key == originalFile)) { var fileIDs = _structureInformationTypes[index].IDs.FirstOrDefault(f => f.Key == originalFile); @@ -1791,12 +1860,18 @@ private void ProcessOnFileBasedOnStatusesInBody(bool forSlice, string file, IEnu var cxtDefs = ((XmlNode)groupElement).ChildNodes; foreach (var cxtDef in cxtDefs.OfType()) { + if (CancellationTokenSource.Token.IsCancellationRequested) + break; + if (cxtDef.Name != "sdl:cxts") continue; var cxts = cxtDef.ChildNodes; foreach (var cxt in cxts.OfType()) { + if (CancellationTokenSource.Token.IsCancellationRequested) + break; + if (cxt.Name != "sdl:cxt") continue; @@ -1822,6 +1897,9 @@ private void ProcessOnFileBasedOnStatusesInBody(bool forSlice, string file, IEnu var transUnits = ((XmlElement)groupElement).ChildNodes; ; foreach (var transUnit in transUnits.OfType()) { + if (CancellationTokenSource.Token.IsCancellationRequested) + break; + if ((transUnit).Name != "trans-unit") continue; @@ -1830,6 +1908,9 @@ private void ProcessOnFileBasedOnStatusesInBody(bool forSlice, string file, IEnu var segDefs = (transUnit).ChildNodes; foreach (var segDef in segDefs.OfType()) { + if (CancellationTokenSource.Token.IsCancellationRequested) + break; + if ((segDef).Name != "sdl:seg-defs") continue; @@ -1839,6 +1920,9 @@ private void ProcessOnFileBasedOnStatusesInBody(bool forSlice, string file, IEnu foreach (var segment in segments.OfType()) { + if (CancellationTokenSource.Token.IsCancellationRequested) + break; + if (segment.Name != "sdl:seg") continue; @@ -1936,12 +2020,17 @@ private List RemoveNotExistingSegments(List sourceSegm var segmentsToBeRemoved = new List(); foreach (var sourceSegment in sourceSegments) { + if (CancellationTokenSource.Token.IsCancellationRequested) break; + if (targetSegments.Any(segment => segment.SegmentId == sourceSegment.SegmentId)) continue; segmentsToBeRemoved.Add(sourceSegment); } foreach (var segmentData in segmentsToBeRemoved) + { + if (CancellationTokenSource.Token.IsCancellationRequested) break; sourceSegments.Remove(segmentData); + } return sourceSegments; } @@ -1955,7 +2044,7 @@ private void ReplaceInResultsForReplacePreview() foreach (var fileData in _replaceResults) { - StepProcess("Preparing replace information for file:" + Path.GetFileName(fileData.FilePath) + " ..."); + StepProcess(); var sourceSegments = new List(); var targetSegments = new List(); foreach (var sourceSegment in fileData.SearchSourceResults) @@ -2015,10 +2104,10 @@ private void ReplaceInResultsForReplacePreview() fileDataToBeAdded.Add(fileToBeAdded); fileDataToBeRemoved.Add(fileData); - StepProcess("File:" + Path.GetFileName(fileData.FilePath) + " ready."); + StepProcess(); } - StepProcess("Preparing the view ..."); + StepProcess(); var lenghtOfFilesToBeAdded = fileDataToBeAdded.Count; for (var i = 0; i < fileDataToBeRemoved.Count; i++) { @@ -2133,10 +2222,17 @@ private void SliceFiles(bool doMerge) var filesPerLanguage = new List>>(); foreach (var sliceInfo in _segmentsToBeSliced) { + if (CancellationTokenSource.Token.IsCancellationRequested) + break; + var destinationDirectory = Path.Combine(tempFolderForSlicedFiles, Path.GetFileName(Path.GetDirectoryName(sliceInfo.File))); if (!Directory.Exists(destinationDirectory)) Directory.CreateDirectory(destinationDirectory); var destinationFile = Path.Combine(destinationDirectory, Path.GetFileName(sliceInfo.File)); + + if (CancellationTokenSource.Token.IsCancellationRequested) + break; + File.Copy(sliceInfo.File, destinationFile, true); var language = string.Empty; @@ -2157,13 +2253,13 @@ private void SliceFiles(bool doMerge) else filesPerLanguage.Add(new KeyValuePair>(language, new List { destinationFile })); - SliceManager.SliceFile(destinationFile, sliceInfo); + SliceManager.SliceFile(destinationFile, sliceInfo, CancellationTokenSource.Token); } if (doMerge) { - StepProcess("Merging sliced files ...", false); - SliceManager.MergeSplitFiles(filesPerLanguage); + StepProcess(false); + SliceManager.MergeSplitFiles(filesPerLanguage, CancellationTokenSource.Token); } else { @@ -2184,6 +2280,7 @@ private List> SplitMergedXliffFile(string filePath, { foreach (var docInfo in docInfos.OfType()) { + if (CancellationTokenSource.Token.IsCancellationRequested) break; docInfoText += docInfo.OuterXml; } } @@ -2198,6 +2295,9 @@ private List> SplitMergedXliffFile(string filePath, var fileNameTemplate = Path.Combine(folder, string.Format("{0}{1}.{2}", Path.GetFileNameWithoutExtension(filePath), "_{0}", Path.GetExtension(filePath))); foreach (var file in fileList.OfType()) { + if (CancellationTokenSource.Token.IsCancellationRequested) + break; + var fileText = file.OuterXml; var fileName = string.Format(fileNameTemplate, Guid.NewGuid().ToString()); using (var sw = new StreamWriter(fileName, false)) @@ -2219,7 +2319,10 @@ private List> SplitMergedXliffFiles() var folder = Path.Combine(_folderForSlicedFiles, Guid.NewGuid().ToString()); foreach (var result in files.Select(file => SplitMergedXliffFile(file, folder))) + { + if (CancellationTokenSource.Token.IsCancellationRequested) break; splitFiles.AddRange(result); + } return splitFiles; } @@ -2323,7 +2426,10 @@ private void UpdateFileBasedOnResults(List searchResult) { foreach (var fileData in searchResult) { - StepProcess("Updating file: " + Path.GetFileName(fileData.FilePath) + " ..."); + if (CancellationTokenSource.Token.IsCancellationRequested) + break; + + StepProcess(); if (fileData.SearchSourceResults.Count == 0) continue; @@ -2345,10 +2451,16 @@ private void UpdateFileBasedOnResults(List searchResult) var fileList = xDoc.DocumentElement.GetElementsByTagName("file"); foreach (var fileElement in fileList.OfType()) { + if (CancellationTokenSource.Token.IsCancellationRequested) + break; + var bodyElement = (XmlElement)(fileElement.GetElementsByTagName("body")[0]); var groupElements = bodyElement.GetElementsByTagName("group"); foreach (var groupElement in groupElements.OfType()) { + if (CancellationTokenSource.Token.IsCancellationRequested) + break; + UpdateFileBasedOnResultsInBody(groupElement, fileData); } @@ -2363,7 +2475,7 @@ private void UpdateFileBasedOnResults(List searchResult) xDoc.Save(writer); } - StepProcess("File: " + Path.GetFileName(fileData.FilePath) + " was updated."); + StepProcess(); } catch (Exception ex) @@ -2378,6 +2490,9 @@ private void UpdateFileBasedOnResultsInBody(object groupElement, FileData fileDa var elements = ((XmlElement)groupElement).ChildNodes; foreach (var element in elements.OfType()) { + if (CancellationTokenSource.Token.IsCancellationRequested) + break; + try { if (!element.HasAttribute("id")) continue; @@ -2392,10 +2507,16 @@ private void UpdateFileBasedOnResultsInBody(object groupElement, FileData fileDa var segDefs = element.ChildNodes; foreach (var segDef in segDefs.OfType()) { + if (CancellationTokenSource.Token.IsCancellationRequested) + break; + if (segDef.Name != "sdl:seg-defs") continue; var segments = segDef.ChildNodes; foreach (var segment in segments.OfType()) { + if (CancellationTokenSource.Token.IsCancellationRequested) + break; + if (segment.Name != "sdl:seg") continue; if (Convert.ToInt32(segment.Attributes["id"].Value) == segmentId) @@ -2466,6 +2587,8 @@ private List UpdateSIDsInTargetSegments(List sourceSeg foreach (var targetSegment in targetSegments) { + if (CancellationTokenSource.Token.IsCancellationRequested) + break; var sourceSegment = sourceSegments.FirstOrDefault(seg => seg.SegmentId == targetSegment.SegmentId); if (sourceSegment == null) @@ -2484,5 +2607,11 @@ private List UpdateSIDsInTargetSegments(List sourceSeg return segments; } + + private void CancelButton_Click(object sender, EventArgs e) + { + CancellationTokenSource.Cancel(); + HideProcess(); + } } } \ No newline at end of file diff --git a/Toolkit/SDLXLIFFSliceOrChange/SDLXLIFFSliceOrChange.resx b/Toolkit/SDLXLIFFSliceOrChange/SDLXLIFFSliceOrChange.resx index f3dc7d92ba..e90b0589be 100644 --- a/Toolkit/SDLXLIFFSliceOrChange/SDLXLIFFSliceOrChange.resx +++ b/Toolkit/SDLXLIFFSliceOrChange/SDLXLIFFSliceOrChange.resx @@ -117,61 +117,7 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - 239, 17 - - - 122, 17 - - - 493, 17 - - - 341, 17 - - - - iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO - vAAADrwBlbxySQAAA5lJREFUSEu1lctPE1EYxZuY4MbowhBXGqNxpVEjCQsTQ3RhWBiNidF/Ql24Q5cm - LowbYyLGqAkLdMH7VTqlLa+WUgqllAJtoTxbWt6FwFB5Hc+9M4QpQgkLvuSXmTvzzT33zv3uuSaccGgC - ibdA9DEwRsbJFImTBFmtlykHhvoVSOq5k2SUDJMhEvsuUzSByUvAHG8FszozJFYgXx8aO3PA/EXC3Gky - QYbJAOl7JlN4xwhTYNyE7fEczEQKsTSSh1TgHlJraaTWkYmqsSRYI8sTWBzOx2I4D8n+B0CAXfYIjAJ9 - FKBqOpgLq7Ma5eWvUF5GKt6jyuFGbUs3Gtp9aHT5Ye0IwNYZJAOwuf1oUj7AqhTBai5CfbMN6Y4cwMVu - vUYBDwW6TNjwnEPQ941tPu4kbtLP37TzV6ZlxPYqELlGmBMkPhMUWylU+2nAJr43CrRSwEEBRy6CXVw4 - Ox8bCb2QaXuxw6LI52LyXR/pJhy1olDAfBaoZ9tpFFAuU6QAm+oMAp0lQC0fC2qIcgZYG5JpGbHAKvGd - 0mbbTjgQs6JATU1QgAvfZhTwv5OXzS0OaHQGqOOM/vBVNTtfPaDz3UhSpJUiTcx13Ue9exbqOishzeqK - /JIpmoAeQsA/tgSsM8FyF1gJ6W+yROwHZ/FE3tZ1JDUBQ/wn4Isu6q3jR5VzOrvABgV6Rhb01vGjsjV2 - tIA3Mq+3jh/lLVNHC3hCs3rr+FHZFj9awD3AKtqiB/QU0hO69TdZItXAynjEb1TUuA5b5OhnmSAEXIE4 - P7gtdybaWabLWUSW2fkUy1SYZHcB6lwJTWCLu3zC6KbRm9wYBdhQF9De8lMzLL/4iLgpsuKRaRmRqmWt - s/M4c5KEV3OTBeoyBxi6yj6MGy16nQ+FF11AS/NHbfuLGQgBehTGX8q0vaBVhG5pViHseZRMmmBp+w3V - S6sQ9p0hELkhTWtj8ByaHbqAsFwhMLLfh/TY5GYM0GLETIXZcYBKG70oTLObYjvjPAjxFwm7DuSirNGM - RssXDVsVGjtjOnFYPHEonmlYuxJo8iZg65qE3VZCimF3FKPCYobaS4HwfoFBLqoYtRiN+DVy9OdpyTxV - jgo1wvXjWjj5jbB3L+klfqPAwB2t093Od39PmCdUNhFRLR1XADNzFSKsvZWIAydDYOw1Z/GQv4q1H2ZN - i4M7+pSL+5xnYqlMOTBCb1jKXGyBk7iIW2fsk0zRBE4sgH/+AfJDAtsDngAAAABJRU5ErkJggg== - - - - - iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO - vAAADrwBlbxySQAAA5lJREFUSEu1lctPE1EYxZuY4MbowhBXGqNxpVEjCQsTQ3RhWBiNidF/Ql24Q5cm - LowbYyLGqAkLdMH7VTqlLa+WUgqllAJtoTxbWt6FwFB5Hc+9M4QpQgkLvuSXmTvzzT33zv3uuSaccGgC - ibdA9DEwRsbJFImTBFmtlykHhvoVSOq5k2SUDJMhEvsuUzSByUvAHG8FszozJFYgXx8aO3PA/EXC3Gky - QYbJAOl7JlN4xwhTYNyE7fEczEQKsTSSh1TgHlJraaTWkYmqsSRYI8sTWBzOx2I4D8n+B0CAXfYIjAJ9 - FKBqOpgLq7Ma5eWvUF5GKt6jyuFGbUs3Gtp9aHT5Ye0IwNYZJAOwuf1oUj7AqhTBai5CfbMN6Y4cwMVu - vUYBDwW6TNjwnEPQ941tPu4kbtLP37TzV6ZlxPYqELlGmBMkPhMUWylU+2nAJr43CrRSwEEBRy6CXVw4 - Ox8bCb2QaXuxw6LI52LyXR/pJhy1olDAfBaoZ9tpFFAuU6QAm+oMAp0lQC0fC2qIcgZYG5JpGbHAKvGd - 0mbbTjgQs6JATU1QgAvfZhTwv5OXzS0OaHQGqOOM/vBVNTtfPaDz3UhSpJUiTcx13Ue9exbqOishzeqK - /JIpmoAeQsA/tgSsM8FyF1gJ6W+yROwHZ/FE3tZ1JDUBQ/wn4Isu6q3jR5VzOrvABgV6Rhb01vGjsjV2 - tIA3Mq+3jh/lLVNHC3hCs3rr+FHZFj9awD3AKtqiB/QU0hO69TdZItXAynjEb1TUuA5b5OhnmSAEXIE4 - P7gtdybaWabLWUSW2fkUy1SYZHcB6lwJTWCLu3zC6KbRm9wYBdhQF9De8lMzLL/4iLgpsuKRaRmRqmWt - s/M4c5KEV3OTBeoyBxi6yj6MGy16nQ+FF11AS/NHbfuLGQgBehTGX8q0vaBVhG5pViHseZRMmmBp+w3V - S6sQ9p0hELkhTWtj8ByaHbqAsFwhMLLfh/TY5GYM0GLETIXZcYBKG70oTLObYjvjPAjxFwm7DuSirNGM - RssXDVsVGjtjOnFYPHEonmlYuxJo8iZg65qE3VZCimF3FKPCYobaS4HwfoFBLqoYtRiN+DVy9OdpyTxV - jgo1wvXjWjj5jbB3L+klfqPAwB2t093Od39PmCdUNhFRLR1XADNzFSKsvZWIAydDYOw1Z/GQv4q1H2ZN - i4M7+pSL+5xnYqlMOTBCb1jKXGyBk7iIW2fsk0zRBE4sgH/+AfJDAtsDngAAAABJRU5ErkJggg== - - iVBORw0KGgoAAAANSUhEUgAAAR4AAAErCAYAAAAIfuzIAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO @@ -1616,6 +1562,48 @@ vjHJ/NuEoxuBg/51wpHmq9+YqN5WV1dcB09Xtq/83T+af55r80pw0De/s5n9WO02urq0Oni6avvq1+c3 3/i3tcy/fG9HmmyOsP3L93Yw3/jXtczf/+P86ud0dVXVwdPV1TXb6+Dp6uqazf3V/P+UQbSh7G8bzAAA AABJRU5ErkJggg== + + + + + iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO + vAAADrwBlbxySQAAA5lJREFUSEu1lctPE1EYxZuY4MbowhBXGqNxpVEjCQsTQ3RhWBiNidF/Ql24Q5cm + LowbYyLGqAkLdMH7VTqlLa+WUgqllAJtoTxbWt6FwFB5Hc+9M4QpQgkLvuSXmTvzzT33zv3uuSaccGgC + ibdA9DEwRsbJFImTBFmtlykHhvoVSOq5k2SUDJMhEvsuUzSByUvAHG8FszozJFYgXx8aO3PA/EXC3Gky + QYbJAOl7JlN4xwhTYNyE7fEczEQKsTSSh1TgHlJraaTWkYmqsSRYI8sTWBzOx2I4D8n+B0CAXfYIjAJ9 + FKBqOpgLq7Ma5eWvUF5GKt6jyuFGbUs3Gtp9aHT5Ye0IwNYZJAOwuf1oUj7AqhTBai5CfbMN6Y4cwMVu + vUYBDwW6TNjwnEPQ941tPu4kbtLP37TzV6ZlxPYqELlGmBMkPhMUWylU+2nAJr43CrRSwEEBRy6CXVw4 + Ox8bCb2QaXuxw6LI52LyXR/pJhy1olDAfBaoZ9tpFFAuU6QAm+oMAp0lQC0fC2qIcgZYG5JpGbHAKvGd + 0mbbTjgQs6JATU1QgAvfZhTwv5OXzS0OaHQGqOOM/vBVNTtfPaDz3UhSpJUiTcx13Ue9exbqOishzeqK + /JIpmoAeQsA/tgSsM8FyF1gJ6W+yROwHZ/FE3tZ1JDUBQ/wn4Isu6q3jR5VzOrvABgV6Rhb01vGjsjV2 + tIA3Mq+3jh/lLVNHC3hCs3rr+FHZFj9awD3AKtqiB/QU0hO69TdZItXAynjEb1TUuA5b5OhnmSAEXIE4 + P7gtdybaWabLWUSW2fkUy1SYZHcB6lwJTWCLu3zC6KbRm9wYBdhQF9De8lMzLL/4iLgpsuKRaRmRqmWt + s/M4c5KEV3OTBeoyBxi6yj6MGy16nQ+FF11AS/NHbfuLGQgBehTGX8q0vaBVhG5pViHseZRMmmBp+w3V + S6sQ9p0hELkhTWtj8ByaHbqAsFwhMLLfh/TY5GYM0GLETIXZcYBKG70oTLObYjvjPAjxFwm7DuSirNGM + RssXDVsVGjtjOnFYPHEonmlYuxJo8iZg65qE3VZCimF3FKPCYobaS4HwfoFBLqoYtRiN+DVy9OdpyTxV + jgo1wvXjWjj5jbB3L+klfqPAwB2t093Od39PmCdUNhFRLR1XADNzFSKsvZWIAydDYOw1Z/GQv4q1H2ZN + i4M7+pSL+5xnYqlMOTBCb1jKXGyBk7iIW2fsk0zRBE4sgH/+AfJDAtsDngAAAABJRU5ErkJggg== + + + + + iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO + vAAADrwBlbxySQAAA5lJREFUSEu1lctPE1EYxZuY4MbowhBXGqNxpVEjCQsTQ3RhWBiNidF/Ql24Q5cm + LowbYyLGqAkLdMH7VTqlLa+WUgqllAJtoTxbWt6FwFB5Hc+9M4QpQgkLvuSXmTvzzT33zv3uuSaccGgC + ibdA9DEwRsbJFImTBFmtlykHhvoVSOq5k2SUDJMhEvsuUzSByUvAHG8FszozJFYgXx8aO3PA/EXC3Gky + QYbJAOl7JlN4xwhTYNyE7fEczEQKsTSSh1TgHlJraaTWkYmqsSRYI8sTWBzOx2I4D8n+B0CAXfYIjAJ9 + FKBqOpgLq7Ma5eWvUF5GKt6jyuFGbUs3Gtp9aHT5Ye0IwNYZJAOwuf1oUj7AqhTBai5CfbMN6Y4cwMVu + vUYBDwW6TNjwnEPQ941tPu4kbtLP37TzV6ZlxPYqELlGmBMkPhMUWylU+2nAJr43CrRSwEEBRy6CXVw4 + Ox8bCb2QaXuxw6LI52LyXR/pJhy1olDAfBaoZ9tpFFAuU6QAm+oMAp0lQC0fC2qIcgZYG5JpGbHAKvGd + 0mbbTjgQs6JATU1QgAvfZhTwv5OXzS0OaHQGqOOM/vBVNTtfPaDz3UhSpJUiTcx13Ue9exbqOishzeqK + /JIpmoAeQsA/tgSsM8FyF1gJ6W+yROwHZ/FE3tZ1JDUBQ/wn4Isu6q3jR5VzOrvABgV6Rhb01vGjsjV2 + tIA3Mq+3jh/lLVNHC3hCs3rr+FHZFj9awD3AKtqiB/QU0hO69TdZItXAynjEb1TUuA5b5OhnmSAEXIE4 + P7gtdybaWabLWUSW2fkUy1SYZHcB6lwJTWCLu3zC6KbRm9wYBdhQF9De8lMzLL/4iLgpsuKRaRmRqmWt + s/M4c5KEV3OTBeoyBxi6yj6MGy16nQ+FF11AS/NHbfuLGQgBehTGX8q0vaBVhG5pViHseZRMmmBp+w3V + S6sQ9p0hELkhTWtj8ByaHbqAsFwhMLLfh/TY5GYM0GLETIXZcYBKG70oTLObYjvjPAjxFwm7DuSirNGM + RssXDVsVGjtjOnFYPHEonmlYuxJo8iZg65qE3VZCimF3FKPCYobaS4HwfoFBLqoYtRiN+DVy9OdpyTxV + jgo1wvXjWjj5jbB3L+klfqPAwB2t093Od39PmCdUNhFRLR1XADNzFSKsvZWIAydDYOw1Z/GQv4q1H2ZN + i4M7+pSL+5xnYqlMOTBCb1jKXGyBk7iIW2fsk0zRBE4sgH/+AfJDAtsDngAAAABJRU5ErkJggg== @@ -1624,7 +1612,7 @@ iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 - YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAIMSURBVDhPxdLfS1NhGAfw8xf4rzQonWVtNkddRXddldVF + YQUAAAAJcEhZcwAAGdYAABnWARjRyu0AAAIMSURBVDhPxdLfS1NhGAfw8xf4rzQonWVtNkddRXddldVF pU6xUivIIGTe1FLb3CjWLuzCiyTowgvNsu6M2s6Op/2erYE0rEHo1uZ2tvXt+54zWgQSQdALH/ZyxvM8 7/O8r/T/l/rA9kyZPYKw+5BO7GXfUbX595+XCEB9A9hNGLQ0QlPtkO8f/Jm0pUsvEPba4s1wSRIfsRtF df0cKsp5NPKLQDkJVFKGappJWUCoEbJQvBao/mP7WwnKb1GN9tMgOfS9RrX4ALRIH3bWelEQ3pxBZXNR @@ -1639,7 +1627,7 @@ iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 - YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAEbSURBVDhPrZOhC8JQEMb3rxj920wyDDIsMgwiCzJMYtMg + YQUAAAAJcEhZcwAAGdYAABnWARjRyu0AAAEbSURBVDhPrZOhC8JQEMb3rxj920wyDDIsMgwiCzJMYtMg zCBoGGgRtjbbiqBxwbBgWDCc920+3k0RH+KDH8K9u+++3Tutv50gLsiPifwD/4Iwp9GWWWcVyzO5YJGS 6+3oWVad4EiUXonobkZyyusi6IyL3YUoyioSBqLnvCK7aZDrTBIhwJYRRGEzbNYo9o0aOaeWAuNICOy1 gOqKTkgGBd9J3gV4YAjC9jcHyCsFhmIGmDaCqrvsqgpesQdSgJ8JQRSbOrAHGyGw0gKqu0r8hN0XAlgQ @@ -1650,7 +1638,7 @@ iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 - YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAJySURBVDhPrZJNSFRRGIY/IaxFIVkg1aKlq6iN9LPIVYWk + YQUAAAAJcEhZcwAAGdYAABnWARjRyu0AAAJySURBVDhPrZJNSFRRGIY/IaxFIVkg1aKlq6iN9LPIVYWk qJiSGpGhYiaappSUlQS1UxMHHUNsbH5CU2lg0EnzJ3Qqx8xsUlQyQZrMaRwtBaXg6d5r4ojRIno333fv Oe9z3u9w5L+qpqYGs9mMTqejvLyc6upqKioq0Ov1Wv9725+lblqVzWbTalNTE06nk5mZGVbh6prJZNoI 01dVMj8/j8PhwGAwaAC73c7S0pLW19fXs7i4qH1XVlauB5TpqhlzDWA0Gqmrq9OqxWKhtrZWM6r/1DRe @@ -1667,7 +1655,7 @@ iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 - YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAdeSURBVFhH1VdrVFTnFZ2+kuZpa0yNSTGNSWNibAyJCgoR + YQUAAAAJcEhZcwAAGdYAABnWARjRyu0AAAdeSURBVFhH1VdrVFTnFZ2+kuZpa0yNSTGNSWNibAyJCgoR U7OCaUVYWrFaRCPGRlqqVnmomEFjf2WtpLX90fxI2pWsuNpQ5aUDRAIoKArDYwaGGSAE5gUzDDDve2eG x+k+l9vyyGDJsn9y1trru/d8++x9zp0736xRfO0iRysuydEENh/XCJnHteI7uVrx3VyNkJ2r9SflNgV+ LNP+/5Gl8b2a2xb4MM8Q7HmrqmrszOcjdKZ7EkqlclypD5mUOvHcSV0gUUn0Tbn09iK7WVx/QheoPd0V @@ -1702,10 +1690,22 @@ hgAAAABJRU5ErkJggg== + + 122, 17 + + + 493, 17 + 632, 17 47 + + 239, 17 + + + 341, 17 + \ No newline at end of file diff --git a/Toolkit/SDLXLIFFSliceOrChange/SliceManager.cs b/Toolkit/SDLXLIFFSliceOrChange/SliceManager.cs index 6a3a7509b1..58c12aae44 100644 --- a/Toolkit/SDLXLIFFSliceOrChange/SliceManager.cs +++ b/Toolkit/SDLXLIFFSliceOrChange/SliceManager.cs @@ -25,12 +25,16 @@ public SliceManager(SdlxliffSliceOrChange sdlxliffSliceOrChange) _sdlxliffSliceOrChange = sdlxliffSliceOrChange; } - public void MergeSplitFiles(List>> filesPerLanguage) + public void MergeSplitFiles(List>> filesPerLanguage, CancellationToken cancellationToken) { - var threads = new List(); + CancellationToken = cancellationToken; + var threads = new List(); foreach (var keyValuePair in filesPerLanguage) { - var language = keyValuePair.Key; + if (CancellationToken.IsCancellationRequested) + break; + + var language = keyValuePair.Key; var files = keyValuePair.Value; var t = new Thread(() => MergeSplitFilesPerLanguage(language, files)); t.Start(); @@ -64,13 +68,26 @@ private void MergeSplitFilesPerLanguage(string language, List files) var fileList = xFinalDoc.DocumentElement.GetElementsByTagName("file"); foreach (var finalDocFileElement in fileList.OfType()) { - var finalDocHeaderElement = (XmlElement)finalDocFileElement.GetElementsByTagName("header")[0]; + if (CancellationToken.IsCancellationRequested) + break; + + var finalDocHeaderElement = (XmlElement)finalDocFileElement.GetElementsByTagName("header")[0]; var referencesNodes = finalDocHeaderElement.GetElementsByTagName("reference"); var referencesToBeRemoved = new List(); foreach (var referencesNode in referencesNodes.OfType()) - referencesToBeRemoved.Add(referencesNode); + { + if (CancellationToken.IsCancellationRequested) + break; + + referencesToBeRemoved.Add(referencesNode); + } foreach (var referenceToBeRemoved in referencesToBeRemoved.OfType()) - finalDocHeaderElement.RemoveChild(referenceToBeRemoved); + { + if (CancellationToken.IsCancellationRequested) + break; + + finalDocHeaderElement.RemoveChild(referenceToBeRemoved); + } referencesToBeRemoved.Clear(); } @@ -113,7 +130,10 @@ private void Merge2Files(string finalFile, string sourceFile) { foreach (var sourceDocFileElement in fileList.OfType()) { - var sourceDocBodyElement = (XmlElement) sourceDocFileElement.GetElementsByTagName("body")[0]; + if (CancellationToken.IsCancellationRequested) + break; + + var sourceDocBodyElement = (XmlElement) sourceDocFileElement.GetElementsByTagName("body")[0]; var sourceDocHeaderElement = (XmlElement) sourceDocFileElement.GetElementsByTagName("header")[0]; // fmts @@ -139,29 +159,32 @@ private void Merge2Files(string finalFile, string sourceFile) t3.Start(); //get all SegmentIds from finalDoc - _sdlxliffSliceOrChange.StepProcess("Geting segments ... "); + _sdlxliffSliceOrChange.StepProcess(); var segmentIds = GetSegmentIds(finalFile); - _sdlxliffSliceOrChange.StepProcess("Geting segments, done. "); + _sdlxliffSliceOrChange.StepProcess(); t2.Join(); t3.Join(); sourceDocHeaderElement = null; - _sdlxliffSliceOrChange.StepProcess("Merging body ... "); + _sdlxliffSliceOrChange.StepProcess(); //body - segments var sourceGroups = sourceDocBodyElement.GetElementsByTagName("group"); - _sdlxliffSliceOrChange.StepProcess(sourceGroups.Count.ToString() + " groups to process ... "); + _sdlxliffSliceOrChange.StepProcess(); var itemsProcessed = 0; var itemsResetCounts = 1; foreach (var sourceGroup in sourceGroups.OfType()) { - itemsProcessed++; + if (CancellationToken.IsCancellationRequested) + break; + + itemsProcessed++; if (itemsProcessed == 5000) { - _sdlxliffSliceOrChange.StepProcess(sourceGroups.Count - (itemsResetCounts * itemsProcessed) + " groups to process ... "); + _sdlxliffSliceOrChange.StepProcess(); itemsProcessed = 0; itemsResetCounts++; } @@ -180,13 +203,13 @@ private void Merge2Files(string finalFile, string sourceFile) // update tags (x an g elements) UpdateTagsElements(sourceDocBodyElement, newTagsIDs, ref segmentIds); - _sdlxliffSliceOrChange.StepProcess("Merging body, done. "); + _sdlxliffSliceOrChange.StepProcess(); } } - _sdlxliffSliceOrChange.StepProcess("Finnishing merge ... "); + _sdlxliffSliceOrChange.StepProcess(); AddingElementsToFinalFile(finalFile); - _sdlxliffSliceOrChange.StepProcess("Merging files, done. "); + _sdlxliffSliceOrChange.StepProcess(); } private List GetSegmentIds(string finalFile) @@ -229,7 +252,10 @@ private void UpdateCXT(XmlElement sourceGroup, Dictionary newCxt var cxtElements = cxts.GetElementsByTagName("sdl:cxt"); foreach (var cxtElement in cxtElements.OfType()) { - var id = cxtElement.Attributes["id"].Value; + if (CancellationToken.IsCancellationRequested) + break; + + var id = cxtElement.Attributes["id"].Value; if (Enumerable.Contains(newCxtsIDs.Keys, id)) cxtElement.SetAttribute("id", newCxtsIDs[id]); } @@ -238,7 +264,10 @@ private void UpdateCXT(XmlElement sourceGroup, Dictionary newCxt var nodeElements = cxts.GetElementsByTagName("sdl:node"); foreach (var nodeElement in nodeElements.OfType()) { - var id = nodeElement.Attributes["id"].Value; + if (CancellationToken.IsCancellationRequested) + break; + + var id = nodeElement.Attributes["id"].Value; if (Enumerable.Contains(newNodesIDs.Keys, id)) nodeElement.SetAttribute("id", newNodesIDs[id]); } @@ -252,27 +281,42 @@ private void UpdateTags(XmlElement sourceGroup, Dictionary newTag { foreach (var transUnitElement in transUnitElements.OfType()) { - var sourceElements = transUnitElement.GetElementsByTagName("source"); + if (CancellationToken.IsCancellationRequested) + break; + + var sourceElements = transUnitElement.GetElementsByTagName("source"); foreach (var sourceElement in sourceElements.OfType()) { - UpdateGandX(sourceElement, newTagsIDs); + if (CancellationToken.IsCancellationRequested) + break; + + UpdateGandX(sourceElement, newTagsIDs); } var segSourceElements = transUnitElement.GetElementsByTagName("seg-source"); foreach (var segSourceElement in segSourceElements.OfType()) { - UpdateGandX(segSourceElement, newTagsIDs); + if (CancellationToken.IsCancellationRequested) + break; + + UpdateGandX(segSourceElement, newTagsIDs); } var targetElements = transUnitElement.GetElementsByTagName("target"); foreach (var targetElement in targetElements.OfType()) { - UpdateGandX(targetElement, newTagsIDs); + if (CancellationToken.IsCancellationRequested) + break; + + UpdateGandX(targetElement, newTagsIDs); } var segTargetElements = transUnitElement.GetElementsByTagName("seg-target"); foreach (var segTargetElement in segTargetElements.OfType()) { - UpdateGandX(segTargetElement, newTagsIDs); + if (CancellationToken.IsCancellationRequested) + break; + + UpdateGandX(segTargetElement, newTagsIDs); } UpdateSegmentsIDs(transUnitElement, ref segmentIds); @@ -287,12 +331,18 @@ private void UpdateCxtsElements(XmlElement sourceDocBodyElement, Dictionary()) { - if (cxts.Name != "sdl:cxts") continue; + if (CancellationToken.IsCancellationRequested) + break; + + if (cxts.Name != "sdl:cxts") continue; var cxtElements = cxts.GetElementsByTagName("sdl:cxt"); foreach (var cxtElement in cxtElements.OfType()) { - var id = cxtElement.Attributes["id"].Value; + if (CancellationToken.IsCancellationRequested) + break; + + var id = cxtElement.Attributes["id"].Value; if (Enumerable.Contains(newCxtsIDs.Keys, id)) cxtElement.SetAttribute("id", newCxtsIDs[id]); } @@ -301,7 +351,10 @@ private void UpdateCxtsElements(XmlElement sourceDocBodyElement, Dictionary()) { - var id = nodeElement.Attributes["id"].Value; + if (CancellationToken.IsCancellationRequested) + break; + + var id = nodeElement.Attributes["id"].Value; if (Enumerable.Contains(newNodesIDs.Keys, id)) nodeElement.SetAttribute("id", newNodesIDs[id]); } @@ -316,30 +369,45 @@ private void UpdateTagsElements(XmlElement sourceDocBodyElement, Dictionary()) { - if (transUnitElement.Name != "trans-unit") + if (CancellationToken.IsCancellationRequested) + break; + + if (transUnitElement.Name != "trans-unit") continue; var sourceElements = transUnitElement.GetElementsByTagName("source"); foreach (var sourceElement in sourceElements.OfType()) { - UpdateGandX(sourceElement, newTagsIDs); + if (CancellationToken.IsCancellationRequested) + break; + + UpdateGandX(sourceElement, newTagsIDs); } var segSourceElements = transUnitElement.GetElementsByTagName("seg-source"); foreach (var segSourceElement in segSourceElements.OfType()) { - UpdateGandX(segSourceElement, newTagsIDs); + if (CancellationToken.IsCancellationRequested) + break; + + UpdateGandX(segSourceElement, newTagsIDs); } var targetElements = transUnitElement.GetElementsByTagName("target"); foreach (var targetElement in targetElements.OfType()) { - UpdateGandX(targetElement, newTagsIDs); + if (CancellationToken.IsCancellationRequested) + break; + + UpdateGandX(targetElement, newTagsIDs); } var segTargetElements = transUnitElement.GetElementsByTagName("seg-target"); foreach (var segTargetElement in segTargetElements.OfType()) { - UpdateGandX(segTargetElement, newTagsIDs); + if (CancellationToken.IsCancellationRequested) + break; + + UpdateGandX(segTargetElement, newTagsIDs); } UpdateSegmentsIDs(transUnitElement, ref segmentIds); _groupsToBeAdded.Add(transUnitElement.OuterXml); @@ -430,7 +498,10 @@ private void UpdateSegmentsIDs(XmlElement transUnitElement, ref List seg var segments = segDefs.GetElementsByTagName("sdl:seg"); foreach (var segment in segments.OfType()) { - var segmentId = segment.Attributes["id"].Value; + if (CancellationToken.IsCancellationRequested) + break; + + var segmentId = segment.Attributes["id"].Value; if (segmentIds.Contains(segmentId)) { segmentIds.Add(newId); @@ -439,25 +510,37 @@ private void UpdateSegmentsIDs(XmlElement transUnitElement, ref List seg var sourceElements = transUnitElement.GetElementsByTagName("source"); foreach (var sourceElement in sourceElements.OfType()) { - UpdateMrkMID(sourceElement, segmentId, newId); + if (CancellationToken.IsCancellationRequested) + break; + + UpdateMrkMID(sourceElement, segmentId, newId); } var segSourceElements = transUnitElement.GetElementsByTagName("seg-source"); foreach (var segSourceElement in segSourceElements.OfType()) { - UpdateMrkMID(segSourceElement, segmentId, newId); + if (CancellationToken.IsCancellationRequested) + break; + + UpdateMrkMID(segSourceElement, segmentId, newId); } var targetElements = transUnitElement.GetElementsByTagName("target"); foreach (var targetElement in targetElements.OfType()) { - UpdateMrkMID(targetElement, segmentId, newId); + if (CancellationToken.IsCancellationRequested) + break; + + UpdateMrkMID(targetElement, segmentId, newId); } var segTargetElements = transUnitElement.GetElementsByTagName("seg-target"); foreach (var segTargetElement in segTargetElements.OfType()) { - UpdateMrkMID(segTargetElement, segmentId, newId); + if (CancellationToken.IsCancellationRequested) + break; + + UpdateMrkMID(segTargetElement, segmentId, newId); } } } @@ -469,6 +552,9 @@ private void UpdateMrkMID(XmlElement element, string oldId, string newId) var mrks = element.GetElementsByTagName("mrk"); foreach (var mrk in mrks.OfType()) { + if (CancellationToken.IsCancellationRequested) + break; + if (mrk.HasAttribute("mtype") && mrk.Attributes["mtype"].Value == "seg" && mrk.HasAttribute("mid")) { var mId = mrk.Attributes["mid"].Value; @@ -485,12 +571,18 @@ private static void UpdateGandX(XmlElement element, Dictionary n var xList = element.GetElementsByTagName("x"); foreach (var x in xList.OfType()) { + if (CancellationToken.IsCancellationRequested) + break; + if (x.HasAttribute("id") && newTagsIDs.Keys.Contains(x.Attributes["id"].Value)) x.SetAttribute("id", newTagsIDs[x.Attributes["id"].Value]); } var gList = element.GetElementsByTagName("g"); foreach (var g in gList.OfType()) { + if (CancellationToken.IsCancellationRequested) + break; + if (g.HasAttribute("id") && newTagsIDs.Keys.Contains(g.Attributes["id"].Value)) g.SetAttribute("id", newTagsIDs[g.Attributes["id"].Value]); } @@ -498,7 +590,7 @@ private static void UpdateGandX(XmlElement element, Dictionary n private Dictionary MergeNodes(string finalFile, XmlElement sourceDocHeaderElement, Dictionary newCxtsIDs) { - _sdlxliffSliceOrChange.StepProcess("Merging Nodes ... "); + _sdlxliffSliceOrChange.StepProcess(); var newNodeIDs = new Dictionary(); var nodeDefinitions = sourceDocHeaderElement.GetElementsByTagName("node-defs"); @@ -536,7 +628,7 @@ private Dictionary MergeNodes(string finalFile, XmlElement sourc } var sourceNodes = sourceNodeDefs.GetElementsByTagName("node-def"); - _sdlxliffSliceOrChange.StepProcess(sourceNodes.Count.ToString() + " nodes to process ... "); + _sdlxliffSliceOrChange.StepProcess(); int itemsProcessed = 0; int itemsResetCounts = 1; @@ -545,7 +637,7 @@ private Dictionary MergeNodes(string finalFile, XmlElement sourc itemsProcessed++; if (itemsProcessed == 5000) { - _sdlxliffSliceOrChange.StepProcess(sourceNodes.Count - (itemsResetCounts * itemsProcessed) + " nodes to process ... ", false); + _sdlxliffSliceOrChange.StepProcess(false); itemsProcessed = 0; itemsResetCounts++; } @@ -592,7 +684,7 @@ private Dictionary MergeNodes(string finalFile, XmlElement sourc } } } - _sdlxliffSliceOrChange.StepProcess("Merging Nodes, done. ", false); + _sdlxliffSliceOrChange.StepProcess(false); return newNodeIDs; } @@ -619,7 +711,7 @@ private Dictionary GetNodeFormats(XmlElement node) private Dictionary MergeTags(string finalFile, XmlElement sourceDocHeaderElement, Dictionary newFmtIDs) { - _sdlxliffSliceOrChange.StepProcess("Merging tags ... ", false); + _sdlxliffSliceOrChange.StepProcess(false); var newTagIDs = new Dictionary(); var tagDefinitions = sourceDocHeaderElement.GetElementsByTagName("tag-defs"); @@ -659,7 +751,7 @@ private Dictionary MergeTags(string finalFile, XmlElement source } var sourceTags = sourceTagsDefs.GetElementsByTagName("tag"); - _sdlxliffSliceOrChange.StepProcess(sourceTags.Count.ToString() + " tags to process ... "); + _sdlxliffSliceOrChange.StepProcess(); int itemsProcessed = 0; int itemsResetCounts = 1; foreach (var sourceTag in sourceTags.OfType()) @@ -667,7 +759,7 @@ private Dictionary MergeTags(string finalFile, XmlElement source itemsProcessed++; if (itemsProcessed == 5000) { - _sdlxliffSliceOrChange.StepProcess(sourceTags.Count - (itemsResetCounts * itemsProcessed) + " tags to process ... ", false); + _sdlxliffSliceOrChange.StepProcess(false); itemsProcessed = 0; itemsResetCounts++; } @@ -703,7 +795,7 @@ private Dictionary MergeTags(string finalFile, XmlElement source _tagsToBeAdded.Add(sourceTag.OuterXml); } } - _sdlxliffSliceOrChange.StepProcess("Merging tags, done. "); + _sdlxliffSliceOrChange.StepProcess(); return newTagIDs; } @@ -756,7 +848,7 @@ private Dictionary GetTagFormats(XmlElement tag) private Dictionary MergeCxt(string finalFile, XmlElement sourceDocHeaderElement, Dictionary newFmtIDs) { - _sdlxliffSliceOrChange.StepProcess("Merging Cxt ... "); + _sdlxliffSliceOrChange.StepProcess(); var newCxtIDs = new Dictionary(); var cxtDefinitions = sourceDocHeaderElement.GetElementsByTagName("cxt-defs"); @@ -796,7 +888,7 @@ private Dictionary MergeCxt(string finalFile, XmlElement sourceD } } var sourceCxts = sourceCxtDefs.GetElementsByTagName("cxt-def"); - _sdlxliffSliceOrChange.StepProcess(sourceCxts.Count.ToString() + " cxts to process ... ", false); + _sdlxliffSliceOrChange.StepProcess(false); int itemsProcessed = 0; int itemsResetCounts = 1; @@ -805,7 +897,7 @@ private Dictionary MergeCxt(string finalFile, XmlElement sourceD itemsProcessed++; if (itemsProcessed == 5000) { - _sdlxliffSliceOrChange.StepProcess(sourceCxts.Count - (itemsResetCounts * itemsProcessed) + " cxts to process ... ", false); + _sdlxliffSliceOrChange.StepProcess(false); itemsProcessed = 0; itemsResetCounts++; } @@ -842,7 +934,7 @@ private Dictionary MergeCxt(string finalFile, XmlElement sourceD _cxtsToBeAdded.Add(sourceCxt.OuterXml); } } - _sdlxliffSliceOrChange.StepProcess("Merging Cxt, done. "); + _sdlxliffSliceOrChange.StepProcess(); return newCxtIDs; } @@ -879,7 +971,7 @@ private Dictionary GetCxtsFormats(XmlElement cxt) private Dictionary MergeFmts(string finalFile, XmlElement sourceDocHeaderElement) { - _sdlxliffSliceOrChange.StepProcess("Merging fonts ... "); + _sdlxliffSliceOrChange.StepProcess(); var newFmtIDs = new Dictionary(); var fmtDefinitions = sourceDocHeaderElement.GetElementsByTagName("fmt-defs"); @@ -894,11 +986,11 @@ private Dictionary MergeFmts(string finalFile, XmlElement source ProcessFinalFile(finalFile, finalFmtIDs,finalFmtFormats); var sourceFmts = sourceFmtDefs.GetElementsByTagName("fmt-def"); - _sdlxliffSliceOrChange.StepProcess(sourceFmts.Count.ToString() + " fmts to process ... "); + _sdlxliffSliceOrChange.StepProcess(); GenerateFormat(sourceFmts, finalFmtFormats, newFmtIDs, finalFmtIDs); - _sdlxliffSliceOrChange.StepProcess("Merging fonts, done! "); + _sdlxliffSliceOrChange.StepProcess(); return newFmtIDs; } @@ -913,7 +1005,7 @@ private void GenerateFormat(XmlNodeList sourceFmts, Dictionary fi itemsProcessed++; if (itemsProcessed == 5000) { - _sdlxliffSliceOrChange.StepProcess(sourceFmts.Count - (itemsResetCounts * itemsProcessed) + " fmts to process ... "); + _sdlxliffSliceOrChange.StepProcess(); itemsProcessed = 0; itemsResetCounts++; } @@ -991,11 +1083,13 @@ private string GenerateFormat(Dictionary formats) return sb.ToString(); } - public void SliceFile(string file, SliceInfo sliceInfo) + public void SliceFile(string file, SliceInfo sliceInfo, CancellationToken cancellationToken) { + CancellationToken = cancellationToken; + try { - _sdlxliffSliceOrChange.StepProcess("Sliceing file: " + Path.GetFileName(file) + ".", false); + _sdlxliffSliceOrChange.StepProcess(false); var xDoc = new XmlDocument {PreserveWhitespace = true}; xDoc.Load(file); @@ -1013,18 +1107,26 @@ public void SliceFile(string file, SliceInfo sliceInfo) if (fileList != null) { foreach (var fileElement in fileList.OfType()) - { + { + if (CancellationToken.IsCancellationRequested) break; + var bodyElement = (XmlElement) (fileElement.GetElementsByTagName("body")[0]); var groupElements = bodyElement.GetElementsByTagName("group"); var removedGroups = new List(); foreach (var groupElement in groupElements.OfType()) { - SliceInBody(sliceInfo, groupElement, removedGroups); + if (CancellationToken.IsCancellationRequested) + break; + SliceInBody(sliceInfo, groupElement, removedGroups); } foreach (var xmlNode in removedGroups.OfType()) - bodyElement.RemoveChild(xmlNode); + { + if (CancellationToken.IsCancellationRequested) + break; + bodyElement.RemoveChild(xmlNode); + } SliceInBody(sliceInfo, bodyElement, null); } @@ -1044,6 +1146,8 @@ public void SliceFile(string file, SliceInfo sliceInfo) } } + private static CancellationToken CancellationToken { get; set; } + private static void SliceInBody(SliceInfo sliceInfo, object groupElement, List removedGroups) { // look in the segments @@ -1054,6 +1158,8 @@ private static void SliceInBody(SliceInfo sliceInfo, object groupElement, List(); foreach (var segDef in segDefs.OfType()) { - var segments = segDef.GetElementsByTagName("sdl:seg"); + if (CancellationToken.IsCancellationRequested) + break; + var segments = segDef.GetElementsByTagName("sdl:seg"); var segmentsCount = segments.Count; var removedSegments = new List(); foreach (var segment in segments.OfType()) { - var segmentId = segment.Attributes["id"].Value; + if (CancellationToken.IsCancellationRequested) + break; + var segmentId = segment.Attributes["id"].Value; if (removeAllSegments || !sliceInfo.Segments.Any(seg => seg.Key == transUnitID && seg.Value.Contains(segmentId))) removedSegments.Add((XmlNode) segment); } foreach (var xmlNode in removedSegments.OfType()) + { + if (CancellationToken.IsCancellationRequested) + break; segDef.RemoveChild(xmlNode); + } if (segmentsCount == removedSegments.Count) removedSegDefs.Add(segDef); removedSegments.Clear(); } foreach (var xmlNode in removedSegDefs.OfType()) + { + if (CancellationToken.IsCancellationRequested) + break; transUnit.RemoveChild(xmlNode); + } if (segDefsCount == removedSegDefs.Count) { removedTransUnits.Add(transUnit); @@ -1105,6 +1223,8 @@ private static void SliceInBody(SliceInfo sliceInfo, object groupElement, List()) { + if (CancellationToken.IsCancellationRequested) + break; ((XmlElement) groupElement).RemoveChild(xmlNode); } diff --git a/Toolkit/SdlXliff.Toolkit.Integration/Properties/AssemblyInfo.cs b/Toolkit/SdlXliff.Toolkit.Integration/Properties/AssemblyInfo.cs index 67dcea12fe..fe39e80b32 100644 --- a/Toolkit/SdlXliff.Toolkit.Integration/Properties/AssemblyInfo.cs +++ b/Toolkit/SdlXliff.Toolkit.Integration/Properties/AssemblyInfo.cs @@ -28,4 +28,4 @@ // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyVersion("7.0.0.0")] -[assembly: AssemblyFileVersion("7.0.1.4")] +[assembly: AssemblyFileVersion("7.0.1.5")] diff --git a/Toolkit/SdlXliffToolkit/ApplicationInitializer.cs b/Toolkit/SdlXliffToolkit/ApplicationInitializer.cs index 8930a61ddd..0401c5203a 100644 --- a/Toolkit/SdlXliffToolkit/ApplicationInitializer.cs +++ b/Toolkit/SdlXliffToolkit/ApplicationInitializer.cs @@ -1,33 +1,36 @@ -using System.Reflection; -using Sdl.Desktop.IntegrationApi; +using Sdl.Desktop.IntegrationApi; using Sdl.Desktop.IntegrationApi.Extensions; using Sdl.TranslationStudioAutomation.IntegrationApi; using SdlXliff.Toolkit.Integration.Helpers; +using System.Reflection; namespace SdlXliffToolkit { - [ApplicationInitializer] - public class ApplicationInitializer : IApplicationInitializer - { - public void Execute() - { - Log.Setup(); - } + [ApplicationInitializer] + public class ApplicationInitializer : IApplicationInitializer + { + public static TradosView GetCurrentView() + { + var projectController = SdlTradosStudio.Application.GetController(); - public static TradosView GetCurrentView() - { - var projectController = SdlTradosStudio.Application.GetController(); + var propertyInfo = projectController.GetType().BaseType.GetField("_studioWindow", BindingFlags.Instance | BindingFlags.NonPublic | BindingFlags.FlattenHierarchy | BindingFlags.IgnoreCase); + var studioWindow = propertyInfo.GetValue(projectController); - var propertyInfo = projectController.GetType().BaseType.GetField("_studioWindow", BindingFlags.Instance | BindingFlags.NonPublic | BindingFlags.FlattenHierarchy | BindingFlags.IgnoreCase); - var studioWindow = propertyInfo.GetValue(projectController); + var propertyInfo2 = studioWindow.GetType() + .GetProperty("ActiveView", BindingFlags.Instance | BindingFlags.Public); - var propertyInfo2 = studioWindow.GetType() - .GetProperty("ActiveView", BindingFlags.Instance | BindingFlags.Public); + var activeView = propertyInfo2.GetValue(studioWindow); - var activeView = propertyInfo2.GetValue(studioWindow); + return + activeView.ToString().Contains("ProjectsView") ? TradosView.ProjectsView : + activeView.ToString().Contains("FilesView") ? TradosView.FilesView : + activeView.ToString().Contains("FilesView") ? TradosView.EditorView : + TradosView.OtherView; + } - return activeView.ToString().Contains("ProjectsView") ? TradosView.ProjectsView : - activeView.ToString().Contains("FilesView") ? TradosView.FilesView : TradosView.EditorView; - } - } + public void Execute() + { + Log.Setup(); + } + } } \ No newline at end of file diff --git a/Toolkit/SdlXliffToolkit/Properties/AssemblyInfo.cs b/Toolkit/SdlXliffToolkit/Properties/AssemblyInfo.cs index d1c450e911..15cd39a148 100644 --- a/Toolkit/SdlXliffToolkit/Properties/AssemblyInfo.cs +++ b/Toolkit/SdlXliffToolkit/Properties/AssemblyInfo.cs @@ -28,4 +28,4 @@ // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyVersion("7.0.0.0")] -[assembly: AssemblyFileVersion("7.0.1.4")] +[assembly: AssemblyFileVersion("7.0.1.5")] diff --git a/Toolkit/SdlXliffToolkit/SdlToolkitRibbon.cs b/Toolkit/SdlXliffToolkit/SdlToolkitRibbon.cs index 63fcb8e2e2..43983f5848 100644 --- a/Toolkit/SdlXliffToolkit/SdlToolkitRibbon.cs +++ b/Toolkit/SdlXliffToolkit/SdlToolkitRibbon.cs @@ -1,94 +1,56 @@ -using System; -using Sdl.Desktop.IntegrationApi; -using Sdl.Desktop.IntegrationApi.DefaultLocations; +using Sdl.Desktop.IntegrationApi; using Sdl.Desktop.IntegrationApi.Extensions; using Sdl.Desktop.IntegrationApi.Interfaces; using Sdl.TranslationStudioAutomation.IntegrationApi; -using Sdl.TranslationStudioAutomation.IntegrationApi.Internal; +using System; namespace SdlXliffToolkit { - [ViewPart(Id = "Sdl.Community.SdlToolkit", Name = "Toolkit", Description = "Toolkit", Icon = "toolkit- 128")] - [ViewPartLayout(typeof(EditorController), Dock = DockType.Bottom)] - internal class SdlToolkitEditorViewPart : AbstractViewPartController - { - private static readonly Lazy _control = new Lazy(() => new global::SDLXLIFFSliceOrChange.SdlxliffSliceOrChange()); - - protected override IUIControl GetContentControl() - { - return _control.Value; - } - - protected override void Initialize() - { - } - } - - [Action("Sdl.Community.SdlToolkit.Editor", typeof(EditorController), Name = "SdlToolkit", Icon = "toolkit- 128", Description = "SdlToolkit")] - [ActionLayout(typeof(SdlToolkitRibbon), 20, DisplayType.Large)] - internal class SdlToolkitEditorViewPartAction : AbstractAction - { - protected override void Execute() - { - ApplicationHost.Application.GetController().Show(); - } - } - - [ViewPart(Id = "Sdl.Community.SdlToolkit.FilesView", Name = "Toolkit", Description = "Toolkit", Icon = "toolkit- 128")] - [ViewPartLayout(typeof(FilesController), Dock = DockType.Bottom)] - internal class SdlToolkitFilesViewPart : AbstractViewPartController - { - private static readonly Lazy _control = new Lazy(() => new global::SDLXLIFFSliceOrChange.SdlxliffSliceOrChange()); - - protected override IUIControl GetContentControl() - { - return _control.Value; - } - - protected override void Initialize() - { - } - } - - [Action("Sdl.Community.SdlToolkit.FilesAction", typeof(FilesController), Name = "SdlToolkit", Icon = "toolkit- 128", Description = "SdlToolkit")] - [ActionLayout(typeof(SdlToolkitRibbon), 20, DisplayType.Large)] - internal class SdlToolkitFilesViewPartAction : AbstractAction - { - protected override void Execute() - { - ApplicationHost.Application.GetController().Show(); - } - } - - [ViewPart(Id = "Sdl.Community.SdlToolkit.ProjectsView", Name = "Toolkit", Description = "Toolkit", Icon = "toolkit- 128")] - [ViewPartLayout(typeof(ProjectsController), Dock = DockType.Bottom)] - internal class SdlToolkitProjectsViewPart : AbstractViewPartController - { - private static readonly Lazy _control = new Lazy(() => new global::SDLXLIFFSliceOrChange.SdlxliffSliceOrChange()); - - protected override IUIControl GetContentControl() - { - return _control.Value; - } - - protected override void Initialize() - { - } - } - - [Action("Sdl.Community.SdlToolkit.ProjectsAction", typeof(ProjectsController), Name = "SdlToolkit", Icon = "toolkit- 128", Description = "SdlToolkit")] - [ActionLayout(typeof(SdlToolkitRibbon), 20, DisplayType.Large)] - internal class SdlToolkitProjectsViewPartAction : AbstractAction - { - protected override void Execute() - { - ApplicationHost.Application.GetController().Show(); - } - } - - [RibbonGroup("Sdl.Community.SdlToolkit", Name = "SdlToolkit", Icon = "toolkit- 128")] - [RibbonGroupLayout(LocationByType = typeof(StudioDefaultRibbonTabs.AddinsRibbonTabLocation))] - internal class SdlToolkitRibbon : AbstractRibbonGroup - { - } + [ViewPart(Id = "Sdl.Community.SdlToolkit", Name = "Toolkit", Description = "Toolkit", Icon = "toolkit- 128")] + [ViewPartLayout(typeof(EditorController), Dock = DockType.Bottom)] + internal class SdlToolkitEditorViewPart : AbstractViewPartController + { + private static readonly Lazy _control = new Lazy(() => new global::SDLXLIFFSliceOrChange.SdlxliffSliceOrChange()); + + protected override IUIControl GetContentControl() + { + return _control.Value; + } + + protected override void Initialize() + { + } + } + + [ViewPart(Id = "Sdl.Community.SdlToolkit.FilesView", Name = "Toolkit", Description = "Toolkit", Icon = "toolkit- 128")] + [ViewPartLayout(typeof(FilesController), Dock = DockType.Bottom)] + internal class SdlToolkitFilesViewPart : AbstractViewPartController + { + private static readonly Lazy _control = new Lazy(() => new global::SDLXLIFFSliceOrChange.SdlxliffSliceOrChange()); + + protected override IUIControl GetContentControl() + { + return _control.Value; + } + + protected override void Initialize() + { + } + } + + [ViewPart(Id = "Sdl.Community.SdlToolkit.ProjectsView", Name = "Toolkit", Description = "Toolkit", Icon = "toolkit- 128")] + [ViewPartLayout(typeof(ProjectsController), Dock = DockType.Bottom)] + internal class SdlToolkitProjectsViewPart : AbstractViewPartController + { + private static readonly Lazy _control = new Lazy(() => new global::SDLXLIFFSliceOrChange.SdlxliffSliceOrChange()); + + protected override IUIControl GetContentControl() + { + return _control.Value; + } + + protected override void Initialize() + { + } + } } \ No newline at end of file diff --git a/Toolkit/SdlXliffToolkit/TellMe/Actions/AppStoreForumAction.cs b/Toolkit/SdlXliffToolkit/TellMe/Actions/AppStoreForumAction.cs index e72f40a8ee..e463736d44 100644 --- a/Toolkit/SdlXliffToolkit/TellMe/Actions/AppStoreForumAction.cs +++ b/Toolkit/SdlXliffToolkit/TellMe/Actions/AppStoreForumAction.cs @@ -10,7 +10,7 @@ public AppStoreForumAction() Name = "RWS Community AppStore Forum"; } - public override Icon Icon => PluginResources.ForumIcon; + public override Icon Icon => PluginResources.Question; public override void Execute() { diff --git a/Toolkit/SdlXliffToolkit/TellMe/Actions/ToolkitAction.cs b/Toolkit/SdlXliffToolkit/TellMe/Actions/ToolkitAction.cs index 21f8222f2c..d518a6b3a7 100644 --- a/Toolkit/SdlXliffToolkit/TellMe/Actions/ToolkitAction.cs +++ b/Toolkit/SdlXliffToolkit/TellMe/Actions/ToolkitAction.cs @@ -1,36 +1,45 @@ -using System.Drawing; -using Sdl.Desktop.IntegrationApi; +using Sdl.Desktop.IntegrationApi; using Sdl.TranslationStudioAutomation.IntegrationApi.Internal; +using System.Drawing; namespace SdlXliffToolkit.TellMe.Actions { - public class ToolkitAction : ToolkitAbastractTellMeAction - { - public ToolkitAction() - { - Name = $"{PluginResources.Plugin_Name}"; - } + public class ToolkitAction : ToolkitAbastractTellMeAction + { + public ToolkitAction() + { + Name = $"{PluginResources.Plugin_Name}"; + } - public override Icon Icon => PluginResources.toolkit__128; + public override Icon Icon => PluginResources.toolkit__128; - public override void Execute() - { - var activeView = ApplicationInitializer.GetCurrentView(); + public override bool IsAvailable + { + get + { + var activeView = ApplicationInitializer.GetCurrentView(); + return activeView != TradosView.OtherView; + } + } - switch (activeView) - { - case TradosView.ProjectsView: - ApplicationHost.Application.GetController().Show(); - break; + public override void Execute() + { + var activeView = ApplicationInitializer.GetCurrentView(); - case TradosView.FilesView: - ApplicationHost.Application.GetController().Show(); - break; + switch (activeView) + { + case TradosView.ProjectsView: + ApplicationHost.Application.GetController().Show(); + break; - case TradosView.EditorView: - ApplicationHost.Application.GetController().Show(); - break; - } - } - } + case TradosView.FilesView: + ApplicationHost.Application.GetController().Show(); + break; + + case TradosView.EditorView: + ApplicationHost.Application.GetController().Show(); + break; + } + } + } } \ No newline at end of file diff --git a/Toolkit/SdlXliffToolkit/TradosView.cs b/Toolkit/SdlXliffToolkit/TradosView.cs index 99878f10c4..565d3fe91b 100644 --- a/Toolkit/SdlXliffToolkit/TradosView.cs +++ b/Toolkit/SdlXliffToolkit/TradosView.cs @@ -4,6 +4,7 @@ public enum TradosView { ProjectsView, FilesView, - EditorView - } + EditorView, + OtherView + } } \ No newline at end of file diff --git a/Toolkit/SdlXliffToolkit/pluginpackage.manifest.xml b/Toolkit/SdlXliffToolkit/pluginpackage.manifest.xml index 0cfafd762c..fe90351019 100644 --- a/Toolkit/SdlXliffToolkit/pluginpackage.manifest.xml +++ b/Toolkit/SdlXliffToolkit/pluginpackage.manifest.xml @@ -1,7 +1,7 @@ SDLXLIFF Toolkit - 7.0.1.4 + 7.0.1.5 SdlXliff Toolkit Trados AppStore Team