1
0
mirror of https://github.com/fadden/6502bench.git synced 2024-10-15 05:26:19 +00:00
6502bench/SourceGenWPF
Andy McFadden 1044b9d479 Improve restoration of top position
The ListView control provides a ScrollIntoView() method that ensures
the specified item is on screen, scrolling the ListView if needed.
Unfortunately this method is very slow (50-100 ms) and sometimes
fails entirely on larger lists.  (Yay WPF.)

Because the ListView is scrolling by fixed-height item, it's possible
to use the underlying ScrollViewer to move the list instantaneously
and reliably.  So now we do that.

Also, fixed a bug with select-all, where we weren't clearing the
previous selection before calling SelectAll(), leading to a mismatch
with the secondary data structure that we maintain because WPF
ListViews can't deal with large selections efficiently.  (Yay WPF.)

There's still some weird behavior, e.g. sometimes hitting F5 clears
the current selection and sometimes it doesn't.  I think it's related
to which item has focus and the fact you're hitting a key; using the
debug menu item doesn't cause the behavior.

Also, increased MAX_SEL_COUNT from 2000 to 5000.  That takes about
200ms to restore to a ListView on my 5-year-old system.
2019-07-17 17:59:24 -07:00
..
AsmGen Implement the "configure" button in the asm/gen dialog 2019-07-16 17:16:47 -07:00
Properties Add WPF app skeleton 2019-04-29 16:34:09 -07:00
Res Set main window title 2019-07-16 14:36:09 -07:00
Sandbox Implement the "configure" button in the asm/gen dialog 2019-07-16 17:16:47 -07:00
Tests Improve save & restore of top line 2019-07-17 14:08:53 -07:00
Tools Implement debug info windows 2019-07-15 17:18:28 -07:00
WpfGui Improve restoration of top position 2019-07-17 17:59:24 -07:00
AddressMap.cs Copy some non-UI code over 2019-05-02 15:45:40 -07:00
Anattrib.cs Copy some non-UI code over 2019-05-02 15:45:40 -07:00
App.config Add WPF app skeleton 2019-04-29 16:34:09 -07:00
App.xaml Rename ProjWin directory to WpfGui 2019-06-21 15:17:04 -07:00
App.xaml.cs Port project loader code 2019-05-05 16:50:28 -07:00
AppSettings.cs Implement Toggle ASCII Chart 2019-07-14 18:12:03 -07:00
AutoLabel.cs Implement first project properties tab ("General") 2019-07-03 14:27:54 -07:00
ChangeSet.cs Copy some non-UI code over 2019-05-02 15:45:40 -07:00
CodeAnalysis.cs Copy some non-UI code over 2019-05-02 15:45:40 -07:00
DataAnalysis.cs Copy some non-UI code over 2019-05-02 15:45:40 -07:00
DefSymbol.cs Copy some non-UI code over 2019-05-02 15:45:40 -07:00
DisasmProject.cs Make ResetList() 1000x faster 2019-05-30 16:30:59 -07:00
DisplayList.cs Improve save & restore of top line 2019-07-17 14:08:53 -07:00
DisplayListSelection.cs Improve restoration of top position 2019-07-17 17:59:24 -07:00
ExternalFile.cs Load a hard-coded project file 2019-05-08 18:08:46 -07:00
FormatDescriptor.cs Copy some non-UI code over 2019-05-02 15:45:40 -07:00
HelpAccess.cs Wire up undo, redo, and F1 help 2019-06-11 16:27:15 -07:00
LineListGen.cs Improve save & restore of top line 2019-07-17 14:08:53 -07:00
MainController.cs Improve restoration of top position 2019-07-17 17:59:24 -07:00
MultiLineComment.cs Improve save & restore of top line 2019-07-17 14:08:53 -07:00
NavStack.cs Improve save & restore of top line 2019-07-17 14:08:53 -07:00
PlatformSymbols.cs Copy some non-UI code over 2019-05-02 15:45:40 -07:00
ProjectFile.cs Minor tweaks 2019-07-13 11:29:05 -07:00
ProjectProperties.cs Copy some non-UI code over 2019-05-02 15:45:40 -07:00
PseudoOp.cs Copy some non-UI code over 2019-05-02 15:45:40 -07:00
RuntimeDataAccess.cs Load a hard-coded project file 2019-05-08 18:08:46 -07:00
SourceGenWPF.csproj Implement Extension Script Info debug feature 2019-07-15 16:50:54 -07:00
Symbol.cs Move symbol sort comparison function into Symbol class 2019-06-17 12:44:02 -07:00
SymbolTable.cs Copy some non-UI code over 2019-05-02 15:45:40 -07:00
SystemDefaults.cs Copy some non-UI code over 2019-05-02 15:45:40 -07:00
SystemDefs.cs Copy some non-UI code over 2019-05-02 15:45:40 -07:00
UndoableChange.cs Copy some non-UI code over 2019-05-02 15:45:40 -07:00
WeakSymbolRef.cs Copy some non-UI code over 2019-05-02 15:45:40 -07:00
XrefSet.cs Copy some non-UI code over 2019-05-02 15:45:40 -07:00