Ram Search - Trucnate from File toolstrip button

This commit is contained in:
andres.delikat 2011-02-23 03:46:24 +00:00
parent 4c733ea2ac
commit d6b79b37df
6 changed files with 38 additions and 10 deletions

View File

@ -3,7 +3,7 @@
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>9.0.30729</ProductVersion>
<ProductVersion>9.0.21022</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{DD448B37-BA3F-4544-9754-5406E8094723}</ProjectGuid>
<OutputType>Exe</OutputType>
@ -313,6 +313,7 @@
</ItemGroup>
<ItemGroup>
<Content Include="config\ControllerImages\NESController.PNG" />
<None Include="images\TruncateFromFile.png" />
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.

View File

@ -157,6 +157,13 @@ namespace BizHawk.MultiClient.Properties {
}
}
internal static System.Drawing.Bitmap TruncateFromFile {
get {
object obj = ResourceManager.GetObject("TruncateFromFile", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
internal static System.Drawing.Bitmap undo {
get {
object obj = ResourceManager.GetObject("undo", resourceCulture);

View File

@ -588,4 +588,7 @@
AFNvdW5kIEZvcmdlIDIuMDtTb25pYyBGb3VuZHJ5IFNvdW5kIEZvcmdlIDUuMAAL
</value>
</data>
<data name="TruncateFromFile" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\images\TruncateFromFile.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
</root>

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

View File

@ -50,6 +50,7 @@
this.saveToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.saveAsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.appendFileToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.TruncateFromFileToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.recentToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.noneToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripSeparator2 = new System.Windows.Forms.ToolStripSeparator();
@ -114,7 +115,7 @@
this.AutoSearchCheckBox = new System.Windows.Forms.CheckBox();
this.MemDomainLabel = new System.Windows.Forms.Label();
this.OutputLabel = new System.Windows.Forms.Label();
this.TruncateFromFileToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.TruncateFromFiletoolStripButton2 = new System.Windows.Forms.ToolStripButton();
this.SearchtoolStrip1.SuspendLayout();
this.menuStrip1.SuspendLayout();
this.toolStripContainer1.TopToolStripPanel.SuspendLayout();
@ -134,10 +135,11 @@
this.toolStripSeparator,
this.cutToolStripButton,
this.WatchtoolStripButton1,
this.PoketoolStripButton1});
this.PoketoolStripButton1,
this.TruncateFromFiletoolStripButton2});
this.SearchtoolStrip1.Location = new System.Drawing.Point(3, 0);
this.SearchtoolStrip1.Name = "SearchtoolStrip1";
this.SearchtoolStrip1.Size = new System.Drawing.Size(131, 25);
this.SearchtoolStrip1.Size = new System.Drawing.Size(185, 25);
this.SearchtoolStrip1.TabIndex = 0;
this.SearchtoolStrip1.Text = "Search";
//
@ -329,6 +331,13 @@
this.appendFileToolStripMenuItem.Text = "&Append File...";
this.appendFileToolStripMenuItem.Click += new System.EventHandler(this.appendFileToolStripMenuItem_Click);
//
// TruncateFromFileToolStripMenuItem
//
this.TruncateFromFileToolStripMenuItem.Name = "TruncateFromFileToolStripMenuItem";
this.TruncateFromFileToolStripMenuItem.Size = new System.Drawing.Size(204, 22);
this.TruncateFromFileToolStripMenuItem.Text = "&Truncate from File...";
this.TruncateFromFileToolStripMenuItem.Click += new System.EventHandler(this.TruncateFromFileToolStripMenuItem_Click);
//
// recentToolStripMenuItem
//
this.recentToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
@ -954,12 +963,15 @@
this.OutputLabel.TabIndex = 9;
this.OutputLabel.Text = " ";
//
// TruncateFromFileToolStripMenuItem
// TruncateFromFiletoolStripButton2
//
this.TruncateFromFileToolStripMenuItem.Name = "TruncateFromFileToolStripMenuItem";
this.TruncateFromFileToolStripMenuItem.Size = new System.Drawing.Size(204, 22);
this.TruncateFromFileToolStripMenuItem.Text = "&Truncate from File...";
this.TruncateFromFileToolStripMenuItem.Click += new System.EventHandler(this.TruncateFromFileToolStripMenuItem_Click);
this.TruncateFromFiletoolStripButton2.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
this.TruncateFromFiletoolStripButton2.Image = global::BizHawk.MultiClient.Properties.Resources.TruncateFromFile;
this.TruncateFromFiletoolStripButton2.ImageTransparentColor = System.Drawing.Color.Magenta;
this.TruncateFromFiletoolStripButton2.Name = "TruncateFromFiletoolStripButton2";
this.TruncateFromFiletoolStripButton2.Size = new System.Drawing.Size(23, 22);
this.TruncateFromFiletoolStripButton2.Text = "Truncate from File";
this.TruncateFromFiletoolStripButton2.Click += new System.EventHandler(this.TruncateFromFiletoolStripButton2_Click);
//
// RamSearch
//
@ -1091,5 +1103,6 @@
private System.Windows.Forms.ToolStripMenuItem previewModeToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem originalValueToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem TruncateFromFileToolStripMenuItem;
private System.Windows.Forms.ToolStripButton TruncateFromFiletoolStripButton2;
}
}

View File

@ -22,7 +22,6 @@ namespace BizHawk.MultiClient
//Multiple memory domains
//Option to remove current Ram Watch list from search list
//Option to always remove Ram Watch list from search list
//Truncate from file toolstrip button
//Save Dialog - user cancelling crashes, same for Ram Watch?
//Add button to set copy current values to prev
//After search everything goes pink
@ -1495,6 +1494,11 @@ namespace BizHawk.MultiClient
DisplaySearchList();
}
}
private void TruncateFromFiletoolStripButton2_Click(object sender, EventArgs e)
{
TruncateFromFile();
}
}