This commit is contained in:
STAM 2023-01-11 21:03:58 +03:00
parent e00ea7ebad
commit 5b4ffca555
Signed by: stam
GPG Key ID: 4F57E51F9C45F8CD
3 changed files with 198 additions and 2 deletions

View File

@ -28,20 +28,197 @@
/// </summary>
private void InitializeComponent()
{
this.groupBoxInput = new System.Windows.Forms.GroupBox();
this.buttonBrowseInput = new System.Windows.Forms.Button();
this.textBoxInput = new System.Windows.Forms.TextBox();
this.groupBoxOutput = new System.Windows.Forms.GroupBox();
this.groupBoxMode = new System.Windows.Forms.GroupBox();
this.radioButtonC = new System.Windows.Forms.RadioButton();
this.radioButtonD = new System.Windows.Forms.RadioButton();
this.buttonBrowseOutput = new System.Windows.Forms.Button();
this.checkBoxSaveLogs = new System.Windows.Forms.CheckBox();
this.textBoxOutput = new System.Windows.Forms.TextBox();
this.buttonStart = new System.Windows.Forms.Button();
this.buttonSaveBatch = new System.Windows.Forms.Button();
this.folderBrowserDialog = new System.Windows.Forms.FolderBrowserDialog();
this.groupBoxInput.SuspendLayout();
this.groupBoxOutput.SuspendLayout();
this.groupBoxMode.SuspendLayout();
this.SuspendLayout();
//
// groupBoxInput
//
this.groupBoxInput.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.groupBoxInput.Controls.Add(this.buttonBrowseInput);
this.groupBoxInput.Controls.Add(this.textBoxInput);
this.groupBoxInput.Location = new System.Drawing.Point(12, 12);
this.groupBoxInput.Name = "groupBoxInput";
this.groupBoxInput.Size = new System.Drawing.Size(358, 64);
this.groupBoxInput.TabIndex = 0;
this.groupBoxInput.TabStop = false;
this.groupBoxInput.Text = "Input:";
//
// buttonBrowseInput
//
this.buttonBrowseInput.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.buttonBrowseInput.Location = new System.Drawing.Point(277, 22);
this.buttonBrowseInput.Name = "buttonBrowseInput";
this.buttonBrowseInput.Size = new System.Drawing.Size(75, 23);
this.buttonBrowseInput.TabIndex = 1;
this.buttonBrowseInput.Text = "Browse";
this.buttonBrowseInput.UseVisualStyleBackColor = true;
this.buttonBrowseInput.Click += new System.EventHandler(this.buttonBrowseInput_Click);
//
// textBoxInput
//
this.textBoxInput.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.textBoxInput.Location = new System.Drawing.Point(6, 22);
this.textBoxInput.Name = "textBoxInput";
this.textBoxInput.Size = new System.Drawing.Size(265, 23);
this.textBoxInput.TabIndex = 0;
//
// groupBoxOutput
//
this.groupBoxOutput.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.groupBoxOutput.Controls.Add(this.groupBoxMode);
this.groupBoxOutput.Controls.Add(this.buttonBrowseOutput);
this.groupBoxOutput.Controls.Add(this.checkBoxSaveLogs);
this.groupBoxOutput.Controls.Add(this.textBoxOutput);
this.groupBoxOutput.Location = new System.Drawing.Point(12, 82);
this.groupBoxOutput.Name = "groupBoxOutput";
this.groupBoxOutput.Size = new System.Drawing.Size(358, 136);
this.groupBoxOutput.TabIndex = 0;
this.groupBoxOutput.TabStop = false;
this.groupBoxOutput.Text = "Output:";
//
// groupBoxMode
//
this.groupBoxMode.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
this.groupBoxMode.Controls.Add(this.radioButtonC);
this.groupBoxMode.Controls.Add(this.radioButtonD);
this.groupBoxMode.Location = new System.Drawing.Point(6, 51);
this.groupBoxMode.Name = "groupBoxMode";
this.groupBoxMode.Size = new System.Drawing.Size(262, 79);
this.groupBoxMode.TabIndex = 2;
this.groupBoxMode.TabStop = false;
this.groupBoxMode.Text = "Mode:";
//
// radioButtonC
//
this.radioButtonC.AutoSize = true;
this.radioButtonC.Location = new System.Drawing.Point(6, 47);
this.radioButtonC.Name = "radioButtonC";
this.radioButtonC.Size = new System.Drawing.Size(55, 19);
this.radioButtonC.TabIndex = 0;
this.radioButtonC.Text = "Clean";
this.radioButtonC.UseVisualStyleBackColor = true;
//
// radioButtonD
//
this.radioButtonD.AutoSize = true;
this.radioButtonD.Checked = true;
this.radioButtonD.Location = new System.Drawing.Point(6, 22);
this.radioButtonD.Name = "radioButtonD";
this.radioButtonD.Size = new System.Drawing.Size(102, 19);
this.radioButtonD.TabIndex = 0;
this.radioButtonD.TabStop = true;
this.radioButtonD.Text = "Fixed (Default)";
this.radioButtonD.UseVisualStyleBackColor = true;
//
// buttonBrowseOutput
//
this.buttonBrowseOutput.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.buttonBrowseOutput.Location = new System.Drawing.Point(277, 21);
this.buttonBrowseOutput.Name = "buttonBrowseOutput";
this.buttonBrowseOutput.Size = new System.Drawing.Size(75, 23);
this.buttonBrowseOutput.TabIndex = 1;
this.buttonBrowseOutput.Text = "Browse";
this.buttonBrowseOutput.UseVisualStyleBackColor = true;
this.buttonBrowseOutput.Click += new System.EventHandler(this.buttonBrowseOutput_Click);
//
// checkBoxSaveLogs
//
this.checkBoxSaveLogs.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.checkBoxSaveLogs.AutoCheck = false;
this.checkBoxSaveLogs.AutoSize = true;
this.checkBoxSaveLogs.Checked = true;
this.checkBoxSaveLogs.CheckState = System.Windows.Forms.CheckState.Checked;
this.checkBoxSaveLogs.Location = new System.Drawing.Point(274, 111);
this.checkBoxSaveLogs.Name = "checkBoxSaveLogs";
this.checkBoxSaveLogs.Size = new System.Drawing.Size(78, 19);
this.checkBoxSaveLogs.TabIndex = 0;
this.checkBoxSaveLogs.Text = "Save Logs";
this.checkBoxSaveLogs.UseVisualStyleBackColor = true;
//
// textBoxOutput
//
this.textBoxOutput.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.textBoxOutput.Location = new System.Drawing.Point(6, 22);
this.textBoxOutput.Name = "textBoxOutput";
this.textBoxOutput.Size = new System.Drawing.Size(265, 23);
this.textBoxOutput.TabIndex = 0;
//
// buttonStart
//
this.buttonStart.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.buttonStart.Location = new System.Drawing.Point(295, 235);
this.buttonStart.Name = "buttonStart";
this.buttonStart.Size = new System.Drawing.Size(75, 23);
this.buttonStart.TabIndex = 1;
this.buttonStart.Text = "Start";
this.buttonStart.UseVisualStyleBackColor = true;
//
// buttonSaveBatch
//
this.buttonSaveBatch.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.buttonSaveBatch.Location = new System.Drawing.Point(12, 235);
this.buttonSaveBatch.Name = "buttonSaveBatch";
this.buttonSaveBatch.Size = new System.Drawing.Size(75, 23);
this.buttonSaveBatch.TabIndex = 1;
this.buttonSaveBatch.Text = "Save Batch";
this.buttonSaveBatch.UseVisualStyleBackColor = true;
//
// FrmMain
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(669, 447);
this.ClientSize = new System.Drawing.Size(382, 270);
this.Controls.Add(this.buttonSaveBatch);
this.Controls.Add(this.buttonStart);
this.Controls.Add(this.groupBoxOutput);
this.Controls.Add(this.groupBoxInput);
this.Name = "FrmMain";
this.Text = "Form1";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "Retime Phoneme Uti GUI";
this.Load += new System.EventHandler(this.FrmMain_Load);
this.groupBoxInput.ResumeLayout(false);
this.groupBoxInput.PerformLayout();
this.groupBoxOutput.ResumeLayout(false);
this.groupBoxOutput.PerformLayout();
this.groupBoxMode.ResumeLayout(false);
this.groupBoxMode.PerformLayout();
this.ResumeLayout(false);
}
#endregion
private GroupBox groupBoxInput;
private GroupBox groupBoxOutput;
private Button buttonStart;
private Button buttonSaveBatch;
private CheckBox checkBoxSaveLogs;
private Button buttonBrowseInput;
private TextBox textBoxInput;
private Button buttonBrowseOutput;
private TextBox textBoxOutput;
private GroupBox groupBoxMode;
private RadioButton radioButtonC;
private RadioButton radioButtonD;
private FolderBrowserDialog folderBrowserDialog;
}
}

View File

@ -11,5 +11,21 @@ namespace kru.gui.UI
{
}
private void buttonBrowseInput_Click(object sender, EventArgs e)
{
if (folderBrowserDialog.ShowDialog() == DialogResult.OK)
{
textBoxInput.Text = folderBrowserDialog.SelectedPath;
}
}
private void buttonBrowseOutput_Click(object sender, EventArgs e)
{
if (folderBrowserDialog.ShowDialog() == DialogResult.OK)
{
textBoxOutput.Text = folderBrowserDialog.SelectedPath;
}
}
}
}

View File

@ -57,4 +57,7 @@
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<metadata name="folderBrowserDialog.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
</root>