Add toolbar icon for itt properties - thx Leon :)

This commit is contained in:
niksedk 2022-07-05 19:08:45 +02:00
parent 5e2877df84
commit 88b29dc7e7
9 changed files with 70 additions and 67 deletions

View File

@ -8,6 +8,8 @@
* CLI change output-file-name - thx BenJamesAndo
* Add Polish speech recognition vosk/kaldi model
* Add Netflix Chinese profile - thx Kester
* Fix casing of some German nouns after audio-to-text
* Add toolbar icon for itt properties - thx Leon
* IMPROVED:
* Update Polish translation - thx admas
* Update Bulgarian translation - thx Калин

View File

@ -62,7 +62,7 @@ namespace Nikse.SubtitleEdit.Forms
this.toolStripButtonVisualSync = new System.Windows.Forms.ToolStripButton();
this.toolStripButtonBurnIn = new System.Windows.Forms.ToolStripButton();
this.toolStripButtonSpellCheck = new System.Windows.Forms.ToolStripButton();
this.toolStripButtonIttProperties = new System.Windows.Forms.ToolStripButton();
this.toolStripButtonXProperties = new System.Windows.Forms.ToolStripButton();
this.toolStripButtonAssStyleManager = new System.Windows.Forms.ToolStripButton();
this.toolStripButtonAssProperties = new System.Windows.Forms.ToolStripButton();
this.toolStripButtonAssAttachments = new System.Windows.Forms.ToolStripButton();
@ -255,6 +255,7 @@ namespace Nikse.SubtitleEdit.Forms
this.toolStripSeparator26 = new System.Windows.Forms.ToolStripSeparator();
this.mergeSentencesToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.breaksplitLongLinesToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.exporImportTofromWordToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.optionsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.settingsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.changeLanguageToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
@ -563,7 +564,6 @@ namespace Nikse.SubtitleEdit.Forms
this.timerOriginalTextUndo = new System.Windows.Forms.Timer(this.components);
this.contextMenuStripShowVideoControls = new System.Windows.Forms.ContextMenuStrip(this.components);
this.toolStripMenuItemShowVideoControls = new System.Windows.Forms.ToolStripMenuItem();
this.exporImportTofromWordToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.statusStrip1.SuspendLayout();
this.toolStrip1.SuspendLayout();
this.menuStrip1.SuspendLayout();
@ -676,7 +676,7 @@ namespace Nikse.SubtitleEdit.Forms
this.toolStripButtonVisualSync,
this.toolStripButtonBurnIn,
this.toolStripButtonSpellCheck,
this.toolStripButtonIttProperties,
this.toolStripButtonXProperties,
this.toolStripButtonAssStyleManager,
this.toolStripButtonAssProperties,
this.toolStripButtonAssAttachments,
@ -853,17 +853,17 @@ namespace Nikse.SubtitleEdit.Forms
this.toolStripButtonSpellCheck.Text = "Spell check";
this.toolStripButtonSpellCheck.Click += new System.EventHandler(this.SpellCheckToolStripMenuItemClick);
//
// toolStripButtonIttProperties
// toolStripButtonXProperties
//
this.toolStripButtonIttProperties.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
this.toolStripButtonIttProperties.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F);
this.toolStripButtonIttProperties.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButtonIttProperties.Image")));
this.toolStripButtonIttProperties.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None;
this.toolStripButtonIttProperties.ImageTransparentColor = System.Drawing.Color.Magenta;
this.toolStripButtonIttProperties.Name = "toolStripButtonIttProperties";
this.toolStripButtonIttProperties.Size = new System.Drawing.Size(36, 37);
this.toolStripButtonIttProperties.Text = "Properties";
this.toolStripButtonIttProperties.Click += new System.EventHandler(this.toolStripMenuItemFileFormatProperties_Click);
this.toolStripButtonXProperties.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
this.toolStripButtonXProperties.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F);
this.toolStripButtonXProperties.Image = global::Nikse.SubtitleEdit.Properties.Resources.itt;
this.toolStripButtonXProperties.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None;
this.toolStripButtonXProperties.ImageTransparentColor = System.Drawing.Color.Magenta;
this.toolStripButtonXProperties.Name = "toolStripButtonXProperties";
this.toolStripButtonXProperties.Size = new System.Drawing.Size(36, 37);
this.toolStripButtonXProperties.Text = "Properties";
this.toolStripButtonXProperties.Click += new System.EventHandler(this.toolStripMenuItemFileFormatProperties_Click);
//
// toolStripButtonAssStyleManager
//
@ -2416,36 +2416,43 @@ namespace Nikse.SubtitleEdit.Forms
// translateToolStripMenuItem
//
this.translateToolStripMenuItem.Name = "translateToolStripMenuItem";
this.translateToolStripMenuItem.Size = new System.Drawing.Size(238, 22);
this.translateToolStripMenuItem.Size = new System.Drawing.Size(264, 22);
this.translateToolStripMenuItem.Text = "Auto-translate...";
this.translateToolStripMenuItem.Click += new System.EventHandler(this.TranslateToolStripMenuItemClick);
//
// autotranslateViaCopypasteToolStripMenuItem
//
this.autotranslateViaCopypasteToolStripMenuItem.Name = "autotranslateViaCopypasteToolStripMenuItem";
this.autotranslateViaCopypasteToolStripMenuItem.Size = new System.Drawing.Size(238, 22);
this.autotranslateViaCopypasteToolStripMenuItem.Size = new System.Drawing.Size(264, 22);
this.autotranslateViaCopypasteToolStripMenuItem.Text = "Auto-translate via copy-paste...";
this.autotranslateViaCopypasteToolStripMenuItem.Click += new System.EventHandler(this.autotranslateViaCopypasteToolStripMenuItem_Click);
//
// toolStripSeparator26
//
this.toolStripSeparator26.Name = "toolStripSeparator26";
this.toolStripSeparator26.Size = new System.Drawing.Size(235, 6);
this.toolStripSeparator26.Size = new System.Drawing.Size(261, 6);
//
// mergeSentencesToolStripMenuItem
//
this.mergeSentencesToolStripMenuItem.Name = "mergeSentencesToolStripMenuItem";
this.mergeSentencesToolStripMenuItem.Size = new System.Drawing.Size(238, 22);
this.mergeSentencesToolStripMenuItem.Size = new System.Drawing.Size(264, 22);
this.mergeSentencesToolStripMenuItem.Text = "Merge sentences...";
this.mergeSentencesToolStripMenuItem.Click += new System.EventHandler(this.mergeSentencesToolStripMenuItem_Click);
//
// breaksplitLongLinesToolStripMenuItem
//
this.breaksplitLongLinesToolStripMenuItem.Name = "breaksplitLongLinesToolStripMenuItem";
this.breaksplitLongLinesToolStripMenuItem.Size = new System.Drawing.Size(238, 22);
this.breaksplitLongLinesToolStripMenuItem.Size = new System.Drawing.Size(264, 22);
this.breaksplitLongLinesToolStripMenuItem.Text = "Break/split long lines...";
this.breaksplitLongLinesToolStripMenuItem.Click += new System.EventHandler(this.breaksplitLongLinesToolStripMenuItem_Click);
//
// exporImportTofromWordToolStripMenuItem
//
this.exporImportTofromWordToolStripMenuItem.Name = "exporImportTofromWordToolStripMenuItem";
this.exporImportTofromWordToolStripMenuItem.Size = new System.Drawing.Size(264, 22);
this.exporImportTofromWordToolStripMenuItem.Text = "Export to / import from Word docx...";
this.exporImportTofromWordToolStripMenuItem.Click += new System.EventHandler(this.exporImportTofromWordToolStripMenuItem_Click);
//
// optionsToolStripMenuItem
//
this.optionsToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
@ -5492,13 +5499,6 @@ namespace Nikse.SubtitleEdit.Forms
this.toolStripMenuItemShowVideoControls.Text = "Show video controls";
this.toolStripMenuItemShowVideoControls.Click += new System.EventHandler(this.toolStripMenuItemShowVideoControls_Click);
//
// exporImportTofromWordToolStripMenuItem
//
this.exporImportTofromWordToolStripMenuItem.Name = "exporImportTofromWordToolStripMenuItem";
this.exporImportTofromWordToolStripMenuItem.Size = new System.Drawing.Size(238, 22);
this.exporImportTofromWordToolStripMenuItem.Text = "Export to / import from Word docx...";
this.exporImportTofromWordToolStripMenuItem.Click += new System.EventHandler(this.exporImportTofromWordToolStripMenuItem_Click);
//
// Main
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
@ -5620,7 +5620,7 @@ namespace Nikse.SubtitleEdit.Forms
private System.Windows.Forms.ToolStripButton toolStripButtonSaveAs;
private System.Windows.Forms.ToolStripButton toolStripButtonFind;
private System.Windows.Forms.ToolStripButton toolStripButtonReplace;
private System.Windows.Forms.ToolStripButton toolStripButtonIttProperties;
private System.Windows.Forms.ToolStripButton toolStripButtonXProperties;
private System.Windows.Forms.ToolStripButton toolStripButtonSettings;
private System.Windows.Forms.ToolStripButton toolStripButtonVisualSync;
private System.Windows.Forms.ToolStripSeparator toolStripSeparatorFindReplace;

View File

@ -20,6 +20,7 @@ using Nikse.SubtitleEdit.Forms.Networking;
using Nikse.SubtitleEdit.Forms.Ocr;
using Nikse.SubtitleEdit.Forms.Options;
using Nikse.SubtitleEdit.Forms.SeJobs;
using Nikse.SubtitleEdit.Forms.ShotChanges;
using Nikse.SubtitleEdit.Forms.Styles;
using Nikse.SubtitleEdit.Forms.Translate;
using Nikse.SubtitleEdit.Logic;
@ -41,7 +42,6 @@ using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using System.Windows.Forms;
using Nikse.SubtitleEdit.Forms.ShotChanges;
namespace Nikse.SubtitleEdit.Forms
{
@ -32081,10 +32081,18 @@ namespace Nikse.SubtitleEdit.Forms
toolStripButtonAssAttachments.Visible = true;
}
toolStripButtonIttProperties.Visible = formatType == typeof(ItunesTimedText);
if (toolStripButtonIttProperties.Visible)
toolStripButtonXProperties.Visible = formatType == typeof(ItunesTimedText);
if (toolStripButtonXProperties.Visible)
{
toolStripButtonIttProperties.ToolTipText = string.Format(_language.Menu.File.FormatXProperties, _currentSubtitleFormat?.Name);
toolStripButtonXProperties.ToolTipText = string.Format(_language.Menu.File.FormatXProperties, _currentSubtitleFormat?.Name);
toolStripButtonXProperties.Image = Properties.Resources.itt;
}
if (formatType == typeof(WebVTT) || formatType == typeof(WebVTTFileWithLineNumber))
{
toolStripButtonXProperties.Visible = true;
toolStripButtonXProperties.ToolTipText = string.Format(_language.Menu.File.FormatXProperties, new WebVTT().Name);
toolStripButtonXProperties.Image = Properties.Resources.webvtt;
}
}

View File

@ -495,42 +495,6 @@
jinqd35bAkRDSUgmF01CXRzYxmi6+leInjmuQ8UlopeI3vhU/rE6Vh8Ntj0Wid0cxBRdxZWr78aTsTcZ
D+0NOU8D0It8EvFhRJnEKQG7jIN4Kv4J3ceMhS0ADf33vkb0FtF7RB8wot/pPnosbFvwFLq6F4no/f67
6L6wVR5GWKw/AKiF4yhMyBvPAAAAAElFTkSuQmCC
</value>
</data>
<data name="toolStripButtonIttProperties.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAb/SURBVFhHtZVpTBtnGsctVW2/NeqH9lu7qtT2w6oSypdd
Vekum16b7R7di720XbXK0STFHtscJiVgQsOVtEkILCmBtBBSAiQEwpFg7sOYM6GhXD5isBPHHDYYGzy2
Z+b973iYIemaRqU0f+knzTvPO89/nnfmeV/ZDxGRy58KxsZG+eXyaL9cFb0Sq4lyybVPieFHIxK7ewen
2JvPKPYbfVQsCVAU/FQ8fFQSPFQKnJSWOBXZRofiZL5DeXqH+NjWReS7d7GKPcOc4kMw1EEEKQVoSo0V
KhFeKhlLVBpcykzMKY/jnjIXduUZTCvPwag8Pzymqtwlptm8cODA05xidyVR7AWrOIAQFYvgx8kIflWB
UP8gGOsM2LkFMLMLCFrsWNGPYqG0FdNJX8GkuogJVTVG1fW4qdZV9iT1PC2m/X4iivdfYuR7zGtVf4RQ
+hGwg4MgDANCyENhAyG4uy0Y17bhhroNA3E96I4bMHcm3HxJTP9wkYO7Xwwq9jgZoWo5mNpakFBoQ7OH
wfhDMJeb0BM/jI6EUegSJp1NSeYXRZuNhX37tjEH95tCfNVBtQrs8PCGyTfDTMcCmhNNaEycRo3mrqlK
s7hNtItUSH6wLMhXTVMqMENbN5cwtXlQm3QPlz+ex8VkV5lo923RcvlOqbUC1XUbJtoK+gtelB/2oCzV
h5IU307R9r5WFGp9uLV8acdAAsENk2yFVS+H8oxVnEujUZge0Iu2a1q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sEvY74+l2Hch
zRWx2+zQm5x4t4XgnXaCtzu4RtH2vi5p5reXJjvZCynLuPr5Em7ftsJq/XGYskxjT08QuzoIftlNs290
PnAQPajSFO8Jaf9uqHDDZDJtmSmTGYl9PrzdRfCGnuBXvdwJ0S5SuXLyZEF6oD/8k+VmsbhUuYjx8UlM
TEz8IL4en0Jcnxdv9hC83stX38v277pGnhTtNlaBljx7MpuZDO9k4VMrv2QFvQMmjI6Obor6EQv+3Uuv
VW0geK2fmXy1lzwr2jxcGRnkmU9OsYa08Kl1hiCpiEPBVRdaDVMYGRn5Tm7y1AyZEGdYwlt81Tv5qqP7
ePM+1vDaTfKMmP77SavFE5oCLkdeRDPKL4WDA/v5/Vt1hUaWzoWCjrso7p7BWf0MTvQ4oOl242+dQbzV
zS+3WPXP+mlmxwCX89MxPCGm3bwUxeSVA2Xc5b2lNPsBv3+/d4Xgn3UEMY0Ef2riNxSxtX7dSYRvHa76
5300yxtffnWQvCKm2breq8Lz/6oh8TH1nO73V2n3u80Ev20lQmuFq47uoN3RBk73i34Sv2MYz4uPPTq9
2YJt77SRn+zkCV+Ltzcpmex/NS1dyUTG6lwAAAAASUVORK5CYII=
</value>
</data>
<data name="toolStripButtonAssStyleManager.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
@ -863,7 +827,7 @@
AAEAAAD/////AQAAAAAAAAAMAgAAAFdTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj00LjAuMC4w
LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACZTeXN0
ZW0uV2luZG93cy5Gb3Jtcy5JbWFnZUxpc3RTdHJlYW1lcgEAAAAERGF0YQcCAgAAAAkDAAAADwMAAAD2
CAAAAk1TRnQBSQFMAgEBAgEAAXwBLQF8AS0BEAEAARABAAT/AQkBAAj/AUIBTQE2AQQGAAE2AQQCAAEo
CAAAAk1TRnQBSQFMAgEBAgEAAYQBLQGEAS0BEAEAARABAAT/AQkBAAj/AUIBTQE2AQQGAAE2AQQCAAEo
AwABQAMAARADAAEBAQABCAYAAQQYAAGAAgABgAMAAoABAAGAAwABgAEAAYABAAKAAgADwAEAAcAB3AHA
AQAB8AHKAaYBAAEzBQABMwEAATMBAAEzAQACMwIAAxYBAAMcAQADIgEAAykBAANVAQADTQEAA0IBAAM5
AQABgAF8Af8BAAJQAf8BAAGTAQAB1gEAAf8B7AHMAQABxgHWAe8BAAHWAucBAAGQAakBrQIAAf8BMwMA

View File

@ -100,6 +100,16 @@ namespace Nikse.SubtitleEdit.Properties {
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
public static System.Drawing.Bitmap itt {
get {
object obj = ResourceManager.GetObject("itt", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Icon similar to (Icon).
/// </summary>
@ -139,5 +149,15 @@ namespace Nikse.SubtitleEdit.Properties {
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
public static System.Drawing.Bitmap webvtt {
get {
object obj = ResourceManager.GetObject("webvtt", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
}
}

View File

@ -142,4 +142,10 @@
<data name="SEIcon" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\SE2.ico;System.Drawing.Icon, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="webvtt" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\webvtt.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="itt" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\itt.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
</root>

BIN
src/ui/Resources/itt.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

BIN
src/ui/Resources/webvtt.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

View File

@ -2026,6 +2026,9 @@
<Content Include="DLLs\Voikkox64.dll" />
<Content Include="DLLs\Voikkox86.dll" />
<None Include="Resources\SE2.ico" />
<None Include="Resources\webvtt.bmp" />
<None Include="Resources\webvtt.png" />
<None Include="Resources\itt.png" />
<Content Include="SE2.ico" />
<None Include="Resources\SE.ico" />
<None Include="Hunspellx64.dll">