mirror of
https://github.com/fadden/6502bench.git
synced 2024-12-03 05:49:48 +00:00
3c3209b67f
We were providing platform symbols to plugins through the PlatSym list, which allowed them to find constants and well-known addresses. We now pass all project symbols and user labels in as well. The name "PlatSym" is no longer accurate, so the class has been renamed. Also, added a bunch of things to the problem list viewer, and added some more info to the Info panel. Also, added a minor test to 2011-hinting that does not affect the output (which is the point).
64 lines
3.0 KiB
XML
64 lines
3.0 KiB
XML
<!--
|
|
Copyright 2019 faddenSoft
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
you may not use this file except in compliance with the License.
|
|
You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
See the License for the specific language governing permissions and
|
|
limitations under the License.
|
|
-->
|
|
|
|
<Window x:Class="SourceGen.Tools.WpfGui.ProblemListViewer"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
xmlns:local="clr-namespace:SourceGen.Tools.WpfGui"
|
|
xmlns:system="clr-namespace:System;assembly=mscorlib"
|
|
mc:Ignorable="d"
|
|
Title="Problems" ShowInTaskbar="True"
|
|
Height="500" Width="500" ResizeMode="CanResizeWithGrip"
|
|
Loaded="Window_Loaded">
|
|
|
|
<Window.Resources>
|
|
<system:String x:Key="str_HiddenLabel">Hidden label</system:String>
|
|
<system:String x:Key="str_UnresolvedWeakRef">Ref'd symbol not found</system:String>
|
|
<system:String x:Key="str_InvalidOffsetOrLength">Invalid offset or len</system:String>
|
|
<system:String x:Key="str_InvalidDescriptor">Invalid format desc</system:String>
|
|
|
|
<system:String x:Key="str_LabelIgnored">Label ignored</system:String>
|
|
<system:String x:Key="str_FormatDescriptorIgnored">Format ignored</system:String>
|
|
</Window.Resources>
|
|
|
|
<DockPanel Margin="8">
|
|
<TextBlock DockPanel.Dock="Top" Text="Problems detected during analysis:"/>
|
|
|
|
<DataGrid DockPanel.Dock="Bottom" Name="problemsGrid" Margin="0,4,0,0"
|
|
IsReadOnly="True"
|
|
ItemsSource="{Binding FormattedProblems}"
|
|
FontFamily="{StaticResource GeneralMonoFont}"
|
|
SnapsToDevicePixels="True"
|
|
GridLinesVisibility="Vertical"
|
|
VerticalGridLinesBrush="#FF7F7F7F"
|
|
AutoGenerateColumns="False"
|
|
HeadersVisibility="Column"
|
|
CanUserReorderColumns="False"
|
|
SelectionMode="Single">
|
|
<!-- should probably add ellipsis: https://stackoverflow.com/a/12880111/294248 -->
|
|
<DataGrid.Columns>
|
|
<DataGridTextColumn Header="Severity" Width="64" Binding="{Binding Severity}"/>
|
|
<DataGridTextColumn Header="Offset" Width="53" Binding="{Binding Offset}"/>
|
|
<DataGridTextColumn Header="Type" Width="119" Binding="{Binding Type}"/>
|
|
<DataGridTextColumn Header="Context" Width="119" Binding="{Binding Context}"/>
|
|
<DataGridTextColumn Header="Resolution" Width="119" Binding="{Binding Resolution}"/>
|
|
</DataGrid.Columns>
|
|
</DataGrid>
|
|
</DockPanel>
|
|
</Window>
|