Testing msgbox

This commit is contained in:
niksedk 2023-08-09 06:43:37 +02:00
parent 37ce5d48d8
commit 1c2130a4f5
15 changed files with 276 additions and 9 deletions

BIN
Icons/Legacy/MsgBoError.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

BIN
Icons/Legacy/MsgBoxInfo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

View File

@ -22,7 +22,7 @@ namespace Nikse.SubtitleEdit.Forms.SeMsgBox
public static DialogResult Show(Form form, string text, string caption, MessageBoxButtons buttons, MessageBoxIcon icon) public static DialogResult Show(Form form, string text, string caption, MessageBoxButtons buttons, MessageBoxIcon icon)
{ {
using (var msgBox = new MessageBoxForm(text, caption, buttons)) using (var msgBox = new MessageBoxForm(text, caption, buttons, icon))
{ {
return msgBox.ShowDialog(form); return msgBox.ShowDialog(form);
} }
@ -46,7 +46,7 @@ namespace Nikse.SubtitleEdit.Forms.SeMsgBox
internal static DialogResult Show(string text, string title, MessageBoxButtons buttons, MessageBoxIcon icon) internal static DialogResult Show(string text, string title, MessageBoxButtons buttons, MessageBoxIcon icon)
{ {
using (var msgBox = new MessageBoxForm(text, title, buttons)) using (var msgBox = new MessageBoxForm(text, title, buttons, icon))
{ {
return msgBox.ShowDialog(Form.ActiveForm); return msgBox.ShowDialog(Form.ActiveForm);
} }

View File

@ -28,6 +28,8 @@
/// </summary> /// </summary>
private void InitializeComponent() private void InitializeComponent()
{ {
this.components = new System.ComponentModel.Container();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MessageBoxForm));
this.buttonCancel = new System.Windows.Forms.Button(); this.buttonCancel = new System.Windows.Forms.Button();
this.buttonOK = new System.Windows.Forms.Button(); this.buttonOK = new System.Windows.Forms.Button();
this.buttonYes = new System.Windows.Forms.Button(); this.buttonYes = new System.Windows.Forms.Button();
@ -36,6 +38,13 @@
this.buttonRetry = new System.Windows.Forms.Button(); this.buttonRetry = new System.Windows.Forms.Button();
this.buttonIgnore = new System.Windows.Forms.Button(); this.buttonIgnore = new System.Windows.Forms.Button();
this.labelText = new System.Windows.Forms.Label(); this.labelText = new System.Windows.Forms.Label();
this.imageList1 = new System.Windows.Forms.ImageList(this.components);
this.pictureBoxIcon = new System.Windows.Forms.PictureBox();
this.seTextBox2 = new Nikse.SubtitleEdit.Controls.SETextBox();
this.contextMenuStrip1 = new System.Windows.Forms.ContextMenuStrip(this.components);
this.copyTextToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
((System.ComponentModel.ISupportInitialize)(this.pictureBoxIcon)).BeginInit();
this.contextMenuStrip1.SuspendLayout();
this.SuspendLayout(); this.SuspendLayout();
// //
// buttonCancel // buttonCancel
@ -134,18 +143,76 @@
this.labelText.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) this.labelText.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right))); | System.Windows.Forms.AnchorStyles.Right)));
this.labelText.Location = new System.Drawing.Point(32, 22); this.labelText.AutoSize = true;
this.labelText.Location = new System.Drawing.Point(99, 52);
this.labelText.Name = "labelText"; this.labelText.Name = "labelText";
this.labelText.Size = new System.Drawing.Size(734, 379); this.labelText.Size = new System.Drawing.Size(50, 13);
this.labelText.TabIndex = 14; this.labelText.TabIndex = 14;
this.labelText.Text = "labelText"; this.labelText.Text = "labelText";
this.labelText.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; this.labelText.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
// //
// imageList1
//
this.imageList1.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList1.ImageStream")));
this.imageList1.TransparentColor = System.Drawing.Color.Transparent;
this.imageList1.Images.SetKeyName(0, "MsgBoError.png");
this.imageList1.Images.SetKeyName(1, "MsgBoxInfo.png");
this.imageList1.Images.SetKeyName(2, "MsgBoxQuestion.png");
this.imageList1.Images.SetKeyName(3, "MsgBoxWarning.png");
//
// pictureBoxIcon
//
this.pictureBoxIcon.Location = new System.Drawing.Point(33, 35);
this.pictureBoxIcon.Name = "pictureBoxIcon";
this.pictureBoxIcon.Size = new System.Drawing.Size(48, 48);
this.pictureBoxIcon.TabIndex = 15;
this.pictureBoxIcon.TabStop = false;
//
// seTextBox2
//
this.seTextBox2.BackColor = System.Drawing.SystemColors.WindowFrame;
this.seTextBox2.CurrentLanguage = "";
this.seTextBox2.CurrentLineIndex = 0;
this.seTextBox2.HideSelection = true;
this.seTextBox2.IsDictionaryDownloaded = true;
this.seTextBox2.IsSpellCheckerInitialized = false;
this.seTextBox2.IsSpellCheckRequested = false;
this.seTextBox2.IsWrongWord = false;
this.seTextBox2.LanguageChanged = false;
this.seTextBox2.Location = new System.Drawing.Point(87, 35);
this.seTextBox2.MaxLength = 32767;
this.seTextBox2.Multiline = true;
this.seTextBox2.Name = "seTextBox2";
this.seTextBox2.Padding = new System.Windows.Forms.Padding(1);
this.seTextBox2.ScrollBars = System.Windows.Forms.RichTextBoxScrollBars.None;
this.seTextBox2.SelectedText = "";
this.seTextBox2.SelectionLength = 0;
this.seTextBox2.SelectionStart = 0;
this.seTextBox2.Size = new System.Drawing.Size(677, 342);
this.seTextBox2.TabIndex = 17;
this.seTextBox2.TextBoxFont = new System.Drawing.Font("Tahoma", 12F, System.Drawing.FontStyle.Bold);
this.seTextBox2.UseSystemPasswordChar = false;
//
// contextMenuStrip1
//
this.contextMenuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.copyTextToolStripMenuItem});
this.contextMenuStrip1.Name = "contextMenuStrip1";
this.contextMenuStrip1.Size = new System.Drawing.Size(181, 48);
//
// copyTextToolStripMenuItem
//
this.copyTextToolStripMenuItem.Name = "copyTextToolStripMenuItem";
this.copyTextToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
this.copyTextToolStripMenuItem.Text = "Copy text";
this.copyTextToolStripMenuItem.Click += new System.EventHandler(this.copyTextToolStripMenuItem_Click);
//
// MessageBoxForm // MessageBoxForm
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(800, 450); this.ClientSize = new System.Drawing.Size(800, 450);
this.Controls.Add(this.pictureBoxIcon);
this.Controls.Add(this.labelText); this.Controls.Add(this.labelText);
this.Controls.Add(this.buttonIgnore); this.Controls.Add(this.buttonIgnore);
this.Controls.Add(this.buttonRetry); this.Controls.Add(this.buttonRetry);
@ -154,6 +221,7 @@
this.Controls.Add(this.buttonYes); this.Controls.Add(this.buttonYes);
this.Controls.Add(this.buttonCancel); this.Controls.Add(this.buttonCancel);
this.Controls.Add(this.buttonOK); this.Controls.Add(this.buttonOK);
this.Controls.Add(this.seTextBox2);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
this.KeyPreview = true; this.KeyPreview = true;
this.MaximizeBox = false; this.MaximizeBox = false;
@ -164,7 +232,10 @@
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
this.Text = "MessageBoxForm"; this.Text = "MessageBoxForm";
this.KeyDown += new System.Windows.Forms.KeyEventHandler(this.MessageBoxForm_KeyDown); this.KeyDown += new System.Windows.Forms.KeyEventHandler(this.MessageBoxForm_KeyDown);
((System.ComponentModel.ISupportInitialize)(this.pictureBoxIcon)).EndInit();
this.contextMenuStrip1.ResumeLayout(false);
this.ResumeLayout(false); this.ResumeLayout(false);
this.PerformLayout();
} }
@ -178,5 +249,10 @@
private System.Windows.Forms.Button buttonRetry; private System.Windows.Forms.Button buttonRetry;
private System.Windows.Forms.Button buttonIgnore; private System.Windows.Forms.Button buttonIgnore;
private System.Windows.Forms.Label labelText; private System.Windows.Forms.Label labelText;
private System.Windows.Forms.ImageList imageList1;
private System.Windows.Forms.PictureBox pictureBoxIcon;
private Controls.SETextBox seTextBox2;
private System.Windows.Forms.ContextMenuStrip contextMenuStrip1;
private System.Windows.Forms.ToolStripMenuItem copyTextToolStripMenuItem;
} }
} }

View File

@ -2,27 +2,30 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Drawing; using System.Drawing;
using System.IO;
using System.Windows.Forms; using System.Windows.Forms;
using Nikse.SubtitleEdit.Core.Common;
namespace Nikse.SubtitleEdit.Forms.SeMsgBox namespace Nikse.SubtitleEdit.Forms.SeMsgBox
{ {
public sealed partial class MessageBoxForm : Form public sealed partial class MessageBoxForm : Form
{ {
private string _text; private readonly string _text;
public MessageBoxForm(string text, string caption, MessageBoxButtons buttons) public MessageBoxForm(string text, string caption, MessageBoxButtons buttons, MessageBoxIcon icon = MessageBoxIcon.Information)
{ {
UiUtil.PreInitialize(this); UiUtil.PreInitialize(this);
InitializeComponent(); InitializeComponent();
UiUtil.FixFonts(this); UiUtil.FixFonts(this);
InitializeIcon(icon);
InitializeText(text); InitializeText(text);
InitializeButtons(buttons); InitializeButtons(buttons);
Text = caption; Text = caption;
_text = text; _text = text;
labelText.Font = new Font(Font.FontFamily, Font.Size + 2); labelText.Font = new Font(Font.FontFamily, Font.Size + 2);
copyTextToolStripMenuItem.Text = LanguageSettings.Current.Main.Menu.ContextMenu.CopyToClipboard;
buttonOK.Text = LanguageSettings.Current.General.Ok; buttonOK.Text = LanguageSettings.Current.General.Ok;
buttonCancel.Text = LanguageSettings.Current.General.Cancel; buttonCancel.Text = LanguageSettings.Current.General.Cancel;
buttonYes.Text = LanguageSettings.Current.General.Yes; buttonYes.Text = LanguageSettings.Current.General.Yes;
@ -32,13 +35,83 @@ namespace Nikse.SubtitleEdit.Forms.SeMsgBox
UiUtil.FixLargeFonts(this, buttonOK); UiUtil.FixLargeFonts(this, buttonOK);
} }
private void InitializeIcon(MessageBoxIcon icon)
{
pictureBoxIcon.SizeMode = PictureBoxSizeMode.AutoSize;
if (icon == MessageBoxIcon.Information)
{
pictureBoxIcon.Image = Properties.Resources.MsgBoxInfo;
TryLoadIcon(pictureBoxIcon, "MsgBoxInfo");
pictureBoxIcon.BringToFront();
}
else if (icon == MessageBoxIcon.Question)
{
pictureBoxIcon.Image = Properties.Resources.MsgBoxQuestion;
TryLoadIcon(pictureBoxIcon, "MsgBoxQuestion");
pictureBoxIcon.BringToFront();
}
else if (icon == MessageBoxIcon.Warning)
{
pictureBoxIcon.Image = Properties.Resources.MsgBoxWarning;
TryLoadIcon(pictureBoxIcon, "MsgBoxWarning");
pictureBoxIcon.BringToFront();
}
else if (icon == MessageBoxIcon.Error)
{
pictureBoxIcon.Image = Properties.Resources.MsgBoError;
TryLoadIcon(pictureBoxIcon, "MsgBoError");
pictureBoxIcon.BringToFront();
}
else
{
pictureBoxIcon.Visible = false;
}
}
private static void TryLoadIcon(PictureBox pb, string iconName)
{
var theme = Configuration.Settings.General.UseDarkTheme ? "DarkTheme" : "DefaultTheme";
if (!string.IsNullOrEmpty(Configuration.Settings.General.ToolbarIconTheme) && !Configuration.Settings.General.ToolbarIconTheme.Equals("Auto", StringComparison.OrdinalIgnoreCase))
{
theme = Configuration.Settings.General.ToolbarIconTheme;
}
var themeFullPath = Path.Combine(Configuration.IconsDirectory, theme, iconName + ".png");
if (File.Exists(themeFullPath))
{
pb.Image = new Bitmap(themeFullPath);
return;
}
var fullPath = Path.Combine(Configuration.IconsDirectory, "DefaultTheme", iconName + ".png");
if (File.Exists(fullPath))
{
pb.Image = new Bitmap(fullPath);
}
}
private void InitializeText(string text) private void InitializeText(string text)
{ {
if (text == null)
{
text = string.Empty;
}
if (text.Length > 500)
{
seTextBox2.Text = text;
labelText.Visible = false;
seTextBox2.ContextMenuStrip = contextMenuStrip1;
return;
}
seTextBox2.Visible = false;
labelText.ContextMenuStrip = contextMenuStrip1;
using (var g = CreateGraphics()) using (var g = CreateGraphics())
{ {
var textSize = g.MeasureString(text, Font); var textSize = g.MeasureString(text, Font);
Height = (int) textSize.Height + 80 + (Height - buttonOK.Top); Height = (int) textSize.Height + 90 + (Height - buttonOK.Top);
Width = (int)textSize.Width + 200; Width = (int)textSize.Width + 220;
} }
labelText.Text = text; labelText.Text = text;
@ -134,5 +207,10 @@ namespace Nikse.SubtitleEdit.Forms.SeMsgBox
} }
} }
} }
private void copyTextToolStripMenuItem_Click(object sender, EventArgs e)
{
Clipboard.SetText(_text);
}
} }
} }

View File

@ -117,4 +117,61 @@
<resheader name="writer"> <resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader> </resheader>
<metadata name="imageList1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
<data name="imageList1.ImageStream" mimetype="application/x-microsoft.net.object.binary.base64">
<value>
AAEAAAD/////AQAAAAAAAAAMAgAAAFdTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj00LjAuMC4w
LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACZTeXN0
ZW0uV2luZG93cy5Gb3Jtcy5JbWFnZUxpc3RTdHJlYW1lcgEAAAAERGF0YQcCAgAAAAkDAAAADwMAAAAm
CgAAAk1TRnQBSQFMAgEBBAEAARgBAAEYAQAB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ABgQGAAQEDgAEABYABAQECAgABgAIAAcABgQEB
AgABgAEAAYABwAGDAQABgAEAAYABAAGAAeABgwEAAUABAAGAAgAB4AGHAQABIAIAAQIBAAHwAYcBgAEA
A4ABQAHwAQ8BgAEABIAB+AEPAcABAQHAAQEBwAEBAfgBHwHgAQMB4AEDAeABAwH8AR8B8AEHAfABBwHw
AQcB/AE/AfwBHwH8AR8B/AEfAf4Bfws=
</value>
</data>
<metadata name="contextMenuStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>127, 17</value>
</metadata>
</root> </root>

View File

@ -130,6 +130,46 @@ namespace Nikse.SubtitleEdit.Properties {
} }
} }
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
public static System.Drawing.Bitmap MsgBoError {
get {
object obj = ResourceManager.GetObject("MsgBoError", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
public static System.Drawing.Bitmap MsgBoxInfo {
get {
object obj = ResourceManager.GetObject("MsgBoxInfo", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
public static System.Drawing.Bitmap MsgBoxQuestion {
get {
object obj = ResourceManager.GetObject("MsgBoxQuestion", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
public static System.Drawing.Bitmap MsgBoxWarning {
get {
object obj = ResourceManager.GetObject("MsgBoxWarning", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary> /// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap. /// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary> /// </summary>

View File

@ -157,4 +157,16 @@
<data name="Help32" type="System.Resources.ResXFileRef, System.Windows.Forms"> <data name="Help32" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\Help32.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> <value>..\Resources\Help32.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data> </data>
<data name="MsgBoError" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\MsgBoError.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="MsgBoxInfo" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\MsgBoxInfo.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="MsgBoxQuestion" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\MsgBoxQuestion.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="MsgBoxWarning" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\MsgBoxWarning.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
</root> </root>

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

View File

@ -2308,6 +2308,10 @@
<None Include="Resources\rec32.png" /> <None Include="Resources\rec32.png" />
<None Include="Resources\Help32.png" /> <None Include="Resources\Help32.png" />
<Content Include="Icons\BeautifyTimeCodes.png" /> <Content Include="Icons\BeautifyTimeCodes.png" />
<None Include="Resources\MsgBoxInfo.png" />
<None Include="Resources\MsgBoxQuestion.png" />
<None Include="Resources\MsgBoxWarning.png" />
<None Include="Resources\MsgBoError.png" />
<Content Include="SE2.ico" /> <Content Include="SE2.ico" />
<None Include="Resources\SE.ico" /> <None Include="Resources\SE.ico" />
<None Include="Hunspellx64.dll"> <None Include="Hunspellx64.dll">