mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-25 20:52:44 +01:00
Add "Collapse" context menu for "shortcuts treeview"
This commit is contained in:
parent
c4eb9f8088
commit
ad8da730ac
@ -81,6 +81,7 @@
|
||||
<DeleteCurrentLine>Delete current line</DeleteCurrentLine>
|
||||
<Width>Width</Width>
|
||||
<Height>Height</Height>
|
||||
<Collapse>Collapse</Collapse>
|
||||
</General>
|
||||
<About>
|
||||
<Title>About Subtitle Edit</Title>
|
||||
|
@ -198,7 +198,8 @@ namespace Nikse.SubtitleEdit.Core
|
||||
Search = "Search",
|
||||
DeleteCurrentLine = "Delete current line",
|
||||
Width = "Width",
|
||||
Height = "Height"
|
||||
Height = "Height",
|
||||
Collapse = "Collapse"
|
||||
};
|
||||
|
||||
About = new LanguageStructure.About
|
||||
|
@ -298,6 +298,9 @@ namespace Nikse.SubtitleEdit.Core
|
||||
case "General/Height":
|
||||
language.General.Height = reader.Value;
|
||||
break;
|
||||
case "General/Collapse":
|
||||
language.General.Collapse = reader.Value;
|
||||
break;
|
||||
case "About/Title":
|
||||
language.About.Title = reader.Value;
|
||||
break;
|
||||
|
@ -85,6 +85,7 @@
|
||||
public string DeleteCurrentLine { get; set; }
|
||||
public string Width { get; set; }
|
||||
public string Height { get; set; }
|
||||
public string Collapse { get; set; }
|
||||
}
|
||||
|
||||
public class About
|
||||
|
22
src/Forms/Settings.Designer.cs
generated
22
src/Forms/Settings.Designer.cs
generated
@ -28,6 +28,7 @@
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.components = new System.ComponentModel.Container();
|
||||
this.buttonOK = new System.Windows.Forms.Button();
|
||||
this.buttonCancel = new System.Windows.Forms.Button();
|
||||
this.tabControlSettings = new System.Windows.Forms.TabControl();
|
||||
@ -367,6 +368,8 @@
|
||||
this.labelStatus = new System.Windows.Forms.Label();
|
||||
this.openFileDialogFFmpeg = new System.Windows.Forms.OpenFileDialog();
|
||||
this.buttonReset = new System.Windows.Forms.Button();
|
||||
this.contextMenuStripShortcuts = new System.Windows.Forms.ContextMenuStrip(this.components);
|
||||
this.toolStripMenuItemShortcutsCollapse = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.tabControlSettings.SuspendLayout();
|
||||
this.tabPageGeneral.SuspendLayout();
|
||||
this.groupBoxMiscellaneous.SuspendLayout();
|
||||
@ -445,6 +448,7 @@
|
||||
this.groupBoxNetworkSession.SuspendLayout();
|
||||
this.groupBoxProxySettings.SuspendLayout();
|
||||
this.groupBoxProxyAuthentication.SuspendLayout();
|
||||
this.contextMenuStripShortcuts.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// buttonOK
|
||||
@ -1497,6 +1501,7 @@
|
||||
this.treeViewShortcuts.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
||||
| System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.treeViewShortcuts.ContextMenuStrip = this.contextMenuStripShortcuts;
|
||||
this.treeViewShortcuts.HideSelection = false;
|
||||
this.treeViewShortcuts.Location = new System.Drawing.Point(16, 47);
|
||||
this.treeViewShortcuts.Name = "treeViewShortcuts";
|
||||
@ -4454,6 +4459,20 @@
|
||||
this.buttonReset.UseVisualStyleBackColor = true;
|
||||
this.buttonReset.Click += new System.EventHandler(this.buttonReset_Click);
|
||||
//
|
||||
// contextMenuStripShortcuts
|
||||
//
|
||||
this.contextMenuStripShortcuts.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||
this.toolStripMenuItemShortcutsCollapse});
|
||||
this.contextMenuStripShortcuts.Name = "contextMenuStripShortcuts";
|
||||
this.contextMenuStripShortcuts.Size = new System.Drawing.Size(120, 26);
|
||||
//
|
||||
// toolStripMenuItemShortcutsCollapse
|
||||
//
|
||||
this.toolStripMenuItemShortcutsCollapse.Name = "toolStripMenuItemShortcutsCollapse";
|
||||
this.toolStripMenuItemShortcutsCollapse.Size = new System.Drawing.Size(119, 22);
|
||||
this.toolStripMenuItemShortcutsCollapse.Text = "Collapse";
|
||||
this.toolStripMenuItemShortcutsCollapse.Click += new System.EventHandler(this.toolStripMenuItemShortcutsCollapse_Click);
|
||||
//
|
||||
// Settings
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||
@ -4586,6 +4605,7 @@
|
||||
this.groupBoxProxySettings.PerformLayout();
|
||||
this.groupBoxProxyAuthentication.ResumeLayout(false);
|
||||
this.groupBoxProxyAuthentication.PerformLayout();
|
||||
this.contextMenuStripShortcuts.ResumeLayout(false);
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
|
||||
@ -4932,5 +4952,7 @@
|
||||
private System.Windows.Forms.Label labelToolsBreakBottomHeavyPercent;
|
||||
private System.Windows.Forms.CheckBox checkBoxSyntaxColorGapTooSmall;
|
||||
private System.Windows.Forms.Button buttonReset;
|
||||
private System.Windows.Forms.ContextMenuStrip contextMenuStripShortcuts;
|
||||
private System.Windows.Forms.ToolStripMenuItem toolStripMenuItemShortcutsCollapse;
|
||||
}
|
||||
}
|
@ -891,7 +891,7 @@ namespace Nikse.SubtitleEdit.Forms
|
||||
|
||||
MakeShortcutsTreeview(language);
|
||||
ShowShortcutsTreeview();
|
||||
|
||||
toolStripMenuItemShortcutsCollapse.Text = Configuration.Settings.Language.General.Collapse;
|
||||
labelShortcutsSearch.Text = Configuration.Settings.Language.General.Search;
|
||||
buttonShortcutsClear.Text = Configuration.Settings.Language.DvdSubRip.Clear;
|
||||
textBoxShortcutSearch.Left = labelShortcutsSearch.Left + labelShortcutsSearch.Width + 5;
|
||||
@ -3151,5 +3151,10 @@ namespace Nikse.SubtitleEdit.Forms
|
||||
Init();
|
||||
}
|
||||
}
|
||||
|
||||
private void toolStripMenuItemShortcutsCollapse_Click(object sender, EventArgs e)
|
||||
{
|
||||
treeViewShortcuts.CollapseAll();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -117,6 +117,9 @@
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<metadata name="contextMenuStripShortcuts.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>464, 17</value>
|
||||
</metadata>
|
||||
<metadata name="colorDialogSSAStyle.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>17, 17</value>
|
||||
</metadata>
|
||||
|
Loading…
Reference in New Issue
Block a user