mirror of
https://github.com/fadden/6502bench.git
synced 2026-04-27 03:17:45 +00:00
Stop showing irrelevant cycle mods
We were showing (relevant) [irrelevant] cycle mods in the Notes panel, but unless you're working with a 65816 you probably don't care about things affected by the M/X flags and D register. Also, made the rightmost column of the Notes and Symbols panels auto-sized to fill the window. We have to do this in the code because we're constantly saving/restoring the column widths so that we can record the values in the app setttings file.
This commit is contained in:
1 parent
d454e51ffa
commit
7f80b0e5e1
2 files changed
+12
-7
No files matched your search
@@ -5349,11 +5349,12 @@ namespace SourceGen {
|
||||
sb.Append(nowSb);
|
||||
sb.Append(")");
|
||||
}
|
||||
if (otherSb.Length != 0) {
|
||||
sb.Append(" [");
|
||||
sb.Append(otherSb);
|
||||
sb.Append("]");
|
||||
}
|
||||
// Show all possible cycle mods. This creates a bit of noise for non-65816.
|
||||
//if (otherSb.Length != 0) {
|
||||
// sb.Append(" [");
|
||||
// sb.Append(otherSb);
|
||||
// sb.Append("]");
|
||||
//}
|
||||
}
|
||||
sb.Append("\r\n");
|
||||
|
||||
|
||||
@@ -559,7 +559,8 @@ namespace SourceGen.WpfGui {
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Applies column widths from the global AppSettings to the various grids.
|
||||
/// Applies column widths from the global AppSettings to the various grids. This
|
||||
/// overrides the default settings in the XAML.
|
||||
/// </summary>
|
||||
public void RestoreColumnWidths() {
|
||||
RestoreColumnWidths((GridView)codeListView.View,
|
||||
@@ -572,8 +573,11 @@ namespace SourceGen.WpfGui {
|
||||
RestoreColumnWidths(symbolsGrid,
|
||||
AppSettings.Global.GetString(AppSettings.SYMWIN_COL_WIDTHS, null));
|
||||
|
||||
// Force the Notes text column width to be '*', i.e. fill the panel.
|
||||
// Force the last column widths to be '*', i.e. fill the panel. This causes a
|
||||
// horizontal scrollbar to briefly flicker into existence.
|
||||
referencesGrid.Columns[2].Width = new DataGridLength(1, DataGridLengthUnitType.Star);
|
||||
notesGrid.Columns[1].Width = new DataGridLength(1, DataGridLengthUnitType.Star);
|
||||
symbolsGrid.Columns[2].Width = new DataGridLength(1, DataGridLengthUnitType.Star);
|
||||
}
|
||||
private void RestoreColumnWidths(GridView gv, string str) {
|
||||
int[] widths = null;
|
||||
|
||||
Reference in new issue
Block a user