firmwaresinfo tooltips
This commit is contained in:
parent
3c2944d7b0
commit
010c9d262f
|
@ -414,13 +414,25 @@ namespace BizHawk.Client.EmuHawk
|
||||||
olvi.SubItems.Add(new ListViewItem.ListViewSubItem());
|
olvi.SubItems.Add(new ListViewItem.ListViewSubItem());
|
||||||
var ff = FirmwareDatabase.FirmwareFilesByHash[o.Hash];
|
var ff = FirmwareDatabase.FirmwareFilesByHash[o.Hash];
|
||||||
if (o.Status == FirmwareDatabase.FirmwareOptionStatus.Ideal)
|
if (o.Status == FirmwareDatabase.FirmwareOptionStatus.Ideal)
|
||||||
|
{
|
||||||
olvi.ImageIndex = FirmwaresConfigInfo.idIdeal;
|
olvi.ImageIndex = FirmwaresConfigInfo.idIdeal;
|
||||||
|
olvi.ToolTipText = FirmwaresConfigInfo.ttIdeal;
|
||||||
|
}
|
||||||
if (o.Status == FirmwareDatabase.FirmwareOptionStatus.Acceptable)
|
if (o.Status == FirmwareDatabase.FirmwareOptionStatus.Acceptable)
|
||||||
|
{
|
||||||
olvi.ImageIndex = FirmwaresConfigInfo.idAcceptable;
|
olvi.ImageIndex = FirmwaresConfigInfo.idAcceptable;
|
||||||
|
olvi.ToolTipText = FirmwaresConfigInfo.ttAcceptable;
|
||||||
|
}
|
||||||
if (o.Status == FirmwareDatabase.FirmwareOptionStatus.Unacceptable)
|
if (o.Status == FirmwareDatabase.FirmwareOptionStatus.Unacceptable)
|
||||||
|
{
|
||||||
olvi.ImageIndex = FirmwaresConfigInfo.idUnacceptable;
|
olvi.ImageIndex = FirmwaresConfigInfo.idUnacceptable;
|
||||||
|
olvi.ToolTipText = FirmwaresConfigInfo.ttUnacceptable;
|
||||||
|
}
|
||||||
if (o.Status == FirmwareDatabase.FirmwareOptionStatus.Bad)
|
if (o.Status == FirmwareDatabase.FirmwareOptionStatus.Bad)
|
||||||
|
{
|
||||||
olvi.ImageIndex = FirmwaresConfigInfo.idBad;
|
olvi.ImageIndex = FirmwaresConfigInfo.idBad;
|
||||||
|
olvi.ToolTipText = FirmwaresConfigInfo.ttBad;
|
||||||
|
}
|
||||||
olvi.SubItems[0].Text = ff.Size.ToString();
|
olvi.SubItems[0].Text = ff.Size.ToString();
|
||||||
olvi.SubItems[0].Font = this.Font; // why doesnt this work?
|
olvi.SubItems[0].Font = this.Font; // why doesnt this work?
|
||||||
olvi.SubItems[1].Text = "sha1:" + o.Hash;
|
olvi.SubItems[1].Text = "sha1:" + o.Hash;
|
||||||
|
|
|
@ -30,6 +30,7 @@
|
||||||
{
|
{
|
||||||
this.components = new System.ComponentModel.Container();
|
this.components = new System.ComponentModel.Container();
|
||||||
this.lvOptions = new System.Windows.Forms.ListView();
|
this.lvOptions = new System.Windows.Forms.ListView();
|
||||||
|
this.colSize = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
|
||||||
this.colHash = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
|
this.colHash = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
|
||||||
this.colStandardFilename = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
|
this.colStandardFilename = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
|
||||||
this.colDescription = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
|
this.colDescription = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
|
||||||
|
@ -43,7 +44,7 @@
|
||||||
this.lblFirmware = new System.Windows.Forms.Label();
|
this.lblFirmware = new System.Windows.Forms.Label();
|
||||||
this.lvmiOptionsContextMenuStrip = new System.Windows.Forms.ContextMenuStrip(this.components);
|
this.lvmiOptionsContextMenuStrip = new System.Windows.Forms.ContextMenuStrip(this.components);
|
||||||
this.tsmiOptionsCopy = new System.Windows.Forms.ToolStripMenuItem();
|
this.tsmiOptionsCopy = new System.Windows.Forms.ToolStripMenuItem();
|
||||||
this.colSize = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
|
this.toolTip1 = new System.Windows.Forms.ToolTip(this.components);
|
||||||
this.tableLayoutPanel1.SuspendLayout();
|
this.tableLayoutPanel1.SuspendLayout();
|
||||||
this.flowLayoutPanel1.SuspendLayout();
|
this.flowLayoutPanel1.SuspendLayout();
|
||||||
this.lvmiOptionsContextMenuStrip.SuspendLayout();
|
this.lvmiOptionsContextMenuStrip.SuspendLayout();
|
||||||
|
@ -70,6 +71,11 @@
|
||||||
this.lvOptions.KeyDown += new System.Windows.Forms.KeyEventHandler(this.LvOptions_KeyDown);
|
this.lvOptions.KeyDown += new System.Windows.Forms.KeyEventHandler(this.LvOptions_KeyDown);
|
||||||
this.lvOptions.MouseClick += new System.Windows.Forms.MouseEventHandler(this.LvOptions_MouseClick);
|
this.lvOptions.MouseClick += new System.Windows.Forms.MouseEventHandler(this.LvOptions_MouseClick);
|
||||||
//
|
//
|
||||||
|
// colSize
|
||||||
|
//
|
||||||
|
this.colSize.Text = "Size";
|
||||||
|
this.colSize.Width = 74;
|
||||||
|
//
|
||||||
// colHash
|
// colHash
|
||||||
//
|
//
|
||||||
this.colHash.Text = "Hash";
|
this.colHash.Text = "Hash";
|
||||||
|
@ -181,11 +187,6 @@
|
||||||
this.tsmiOptionsCopy.Text = "&Copy";
|
this.tsmiOptionsCopy.Text = "&Copy";
|
||||||
this.tsmiOptionsCopy.Click += new System.EventHandler(this.TsmiOptionsCopy_Click);
|
this.tsmiOptionsCopy.Click += new System.EventHandler(this.TsmiOptionsCopy_Click);
|
||||||
//
|
//
|
||||||
// colSize
|
|
||||||
//
|
|
||||||
this.colSize.Text = "Size";
|
|
||||||
this.colSize.Width = 74;
|
|
||||||
//
|
|
||||||
// FirmwaresConfigInfo
|
// FirmwaresConfigInfo
|
||||||
//
|
//
|
||||||
this.AcceptButton = this.btnClose;
|
this.AcceptButton = this.btnClose;
|
||||||
|
@ -224,5 +225,6 @@
|
||||||
private System.Windows.Forms.ColumnHeader colInfo;
|
private System.Windows.Forms.ColumnHeader colInfo;
|
||||||
private System.Windows.Forms.ImageList imageList1;
|
private System.Windows.Forms.ImageList imageList1;
|
||||||
private System.Windows.Forms.ColumnHeader colSize;
|
private System.Windows.Forms.ColumnHeader colSize;
|
||||||
|
private System.Windows.Forms.ToolTip toolTip1;
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -15,6 +15,11 @@ namespace BizHawk.Client.EmuHawk
|
||||||
public const int idUnacceptable = 2;
|
public const int idUnacceptable = 2;
|
||||||
public const int idBad = 3;
|
public const int idBad = 3;
|
||||||
|
|
||||||
|
public const string ttIdeal = "COOL: Ideal for TASing and anything. There can only be one.";
|
||||||
|
public const string ttAcceptable = "OK: This works on the core";
|
||||||
|
public const string ttUnacceptable = "NO: This doesn't work on the core";
|
||||||
|
public const string ttBad = "BAD! Why are you using this file";
|
||||||
|
|
||||||
public FirmwaresConfigInfo()
|
public FirmwaresConfigInfo()
|
||||||
{
|
{
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
|
|
|
@ -123,4 +123,7 @@
|
||||||
<metadata name="lvmiOptionsContextMenuStrip.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
<metadata name="lvmiOptionsContextMenuStrip.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||||
<value>17, 17</value>
|
<value>17, 17</value>
|
||||||
</metadata>
|
</metadata>
|
||||||
|
<metadata name="toolTip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||||
|
<value>320, 17</value>
|
||||||
|
</metadata>
|
||||||
</root>
|
</root>
|
Loading…
Reference in New Issue