1
0
mirror of https://github.com/fadden/6502bench.git synced 2024-10-26 16:24:33 +00:00
6502bench/SourceGenWPF/WpfGui
Andy McFadden a0dca6a5be Improve save & restore of top line
Whenever the display list gets regenerated, we need to restore the
code list view scroll position to the previous location in the file.
This gets tricky when multiple lines are appearing or disappearing.
We were saving the file offset of the line, but that works poorly
when there's a multi-line comment associated with that offset,
because we end up scrolling to the top of the comment whenever any
part of the comment is at the top of the screen.

We now track the file offset and the number of lines we were from
the top of that offset's content.  This works well unless we remove
a lot of lines.  If the adjusted line index would put us into a
different file offset, we punt and just scroll to the top of the item.

Also, fix a crasher in Edit Note.

Also, fix behavior when the list shrinks while a line near the end
of the file is selected.

Also, change a few instances of "Color.FromArgb(0,0,0,0)" to use a
common constant.
2019-07-17 14:08:53 -07:00
..
AboutBox.xaml Implement copy-to-clipboard 2019-07-11 11:36:07 -07:00
AboutBox.xaml.cs Implement "about" dialog 2019-07-06 15:51:57 -07:00
CodeListItemStyle.xaml Set background color on Notes in the code list 2019-07-14 15:39:27 -07:00
DataFileLoadIssue.xaml Minor documentation updates 2019-07-06 10:58:24 -07:00
DataFileLoadIssue.xaml.cs
DiscardChanges.xaml Improve save & restore of top line 2019-07-17 14:08:53 -07:00
DiscardChanges.xaml.cs
EditAddress.xaml
EditAddress.xaml.cs Implement Edit Label 2019-07-06 17:24:42 -07:00
EditAppSettings.xaml
EditAppSettings.xaml.cs
EditComment.xaml Implement Edit Comment 2019-07-11 15:55:43 -07:00
EditComment.xaml.cs Implement Edit Comment 2019-07-11 15:55:43 -07:00
EditDataOperand.xaml Finish Edit Data Operand dialog 2019-07-11 13:56:16 -07:00
EditDataOperand.xaml.cs Finish Edit Data Operand dialog 2019-07-11 13:56:16 -07:00
EditDefSymbol.xaml
EditDefSymbol.xaml.cs
EditInstructionOperand.xaml Tweak EditInstructionOperand dialog 2019-07-10 12:57:18 -07:00
EditInstructionOperand.xaml.cs Tweak EditInstructionOperand dialog 2019-07-10 12:57:18 -07:00
EditLabel.xaml Fix Edit Label tweak 2019-07-08 13:43:10 -07:00
EditLabel.xaml.cs Fix Edit Label tweak 2019-07-08 13:43:10 -07:00
EditLongComment.xaml Implement Edit Note 2019-07-13 17:04:47 -07:00
EditLongComment.xaml.cs Implement Edit Note 2019-07-13 17:04:47 -07:00
EditNote.xaml Implement Edit Note 2019-07-13 17:04:47 -07:00
EditNote.xaml.cs Improve save & restore of top line 2019-07-17 14:08:53 -07:00
EditProjectProperties.xaml
EditProjectProperties.xaml.cs
EditStatusFlags.xaml
EditStatusFlags.xaml.cs
FindBox.xaml Implement Find / Find Next 2019-07-07 13:34:47 -07:00
FindBox.xaml.cs Implement Find / Find Next 2019-07-07 13:34:47 -07:00
FontPicker.xaml
FontPicker.xaml.cs
FormatSplitAddress.xaml Finish split-address table formatter 2019-07-13 15:55:32 -07:00
FormatSplitAddress.xaml.cs Finish split-address table formatter 2019-07-13 15:55:32 -07:00
GotoBox.xaml Implement "go to" feature 2019-07-07 14:30:38 -07:00
GotoBox.xaml.cs Implement "go to" feature 2019-07-07 14:30:38 -07:00
MainWindow.xaml Save & restore symbols list filter options 2019-07-16 14:52:08 -07:00
MainWindow.xaml.cs Improve save & restore of top line 2019-07-17 14:08:53 -07:00
NewProject.xaml
NewProject.xaml.cs
ProjectLoadIssues.xaml Minor documentation updates 2019-07-06 10:58:24 -07:00
ProjectLoadIssues.xaml.cs
WorkProgress.xaml Minor documentation updates 2019-07-06 10:58:24 -07:00
WorkProgress.xaml.cs