mirror of
https://github.com/chylex/Brotli-Builder.git
synced 2025-04-27 14:15:42 +02:00
Remove option to limit displayed output length
This commit is contained in:
parent
cce96a2567
commit
ddd0a270de
BrotliBuilder
@ -27,13 +27,6 @@ namespace BrotliBuilder.Components{
|
||||
public bool WordWrapOutput{
|
||||
set => textBoxOutput.WordWrap = value;
|
||||
}
|
||||
|
||||
public int MaxLength{
|
||||
set{
|
||||
textBoxBitStream.MaxDisplayedLength = value;
|
||||
textBoxOutput.MaxDisplayedLength = value;
|
||||
}
|
||||
}
|
||||
|
||||
private readonly AsyncWorker loadWorker = new AsyncWorker();
|
||||
|
||||
|
11
BrotliBuilder/FormMain.Designer.cs
generated
11
BrotliBuilder/FormMain.Designer.cs
generated
@ -31,7 +31,6 @@
|
||||
this.menuItemExit = new System.Windows.Forms.MenuItem();
|
||||
this.menuItemView = new System.Windows.Forms.MenuItem();
|
||||
this.menuItemWrapOutput = new System.Windows.Forms.MenuItem();
|
||||
this.menuItemLimitOutput = new System.Windows.Forms.MenuItem();
|
||||
this.menuItemTools = new System.Windows.Forms.MenuItem();
|
||||
this.menuItemStaticDictionary = new System.Windows.Forms.MenuItem();
|
||||
this.menuItemEncodeFile = new System.Windows.Forms.MenuItem();
|
||||
@ -96,8 +95,7 @@
|
||||
//
|
||||
this.menuItemView.Index = 1;
|
||||
this.menuItemView.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
|
||||
this.menuItemWrapOutput,
|
||||
this.menuItemLimitOutput});
|
||||
this.menuItemWrapOutput});
|
||||
this.menuItemView.Text = "&View";
|
||||
//
|
||||
// menuItemWrapOutput
|
||||
@ -106,12 +104,6 @@
|
||||
this.menuItemWrapOutput.Text = "Wrap Output";
|
||||
this.menuItemWrapOutput.Click += new System.EventHandler(this.menuItemWrapOutput_Click);
|
||||
//
|
||||
// menuItemLimitOutput
|
||||
//
|
||||
this.menuItemLimitOutput.Index = 1;
|
||||
this.menuItemLimitOutput.Text = "Limit Output Length";
|
||||
this.menuItemLimitOutput.Click += new System.EventHandler(this.menuItemLimitOutput_Click);
|
||||
//
|
||||
// menuItemTools
|
||||
//
|
||||
this.menuItemTools.Index = 2;
|
||||
@ -280,7 +272,6 @@
|
||||
private System.Windows.Forms.MenuItem menuItemEncodeFile;
|
||||
private System.Windows.Forms.MenuItem menuItemEncodeUncompressedMBs;
|
||||
private System.Windows.Forms.MenuItem menuItemView;
|
||||
private System.Windows.Forms.MenuItem menuItemLimitOutput;
|
||||
private System.Windows.Forms.MenuItem menuItemStaticDictionary;
|
||||
private System.Windows.Forms.SplitContainer splitContainerOuter;
|
||||
private System.Windows.Forms.MenuItem menuItemWrapOutput;
|
||||
|
@ -10,7 +10,6 @@ using BrotliLib.Brotli.Encode;
|
||||
|
||||
namespace BrotliBuilder{
|
||||
partial class FormMain : Form{
|
||||
private const int LimitOutputLength = 16384;
|
||||
|
||||
#region Building block context
|
||||
|
||||
@ -63,7 +62,6 @@ namespace BrotliBuilder{
|
||||
public FormMain(){
|
||||
InitializeComponent();
|
||||
|
||||
menuItemLimitOutput_Click(this, EventArgs.Empty);
|
||||
splitContainerOuter.Panel2Collapsed = true;
|
||||
OnNewBrotliFile();
|
||||
}
|
||||
@ -207,13 +205,6 @@ namespace BrotliBuilder{
|
||||
brotliFilePanelGenerated.WordWrapOutput = brotliFilePanelOriginal.WordWrapOutput = enable;
|
||||
}
|
||||
|
||||
private void menuItemLimitOutput_Click(object sender, EventArgs e){
|
||||
bool enable = !menuItemLimitOutput.Checked;
|
||||
menuItemLimitOutput.Checked = enable;
|
||||
|
||||
brotliFilePanelGenerated.MaxLength = brotliFilePanelOriginal.MaxLength = enable ? LimitOutputLength : -1;
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Menu events (Tools)
|
||||
|
Loading…
Reference in New Issue
Block a user