mirror of
https://github.com/fadden/6502bench.git
synced 2024-08-16 15:29:00 +00:00
62 lines
2.9 KiB
Plaintext
62 lines
2.9 KiB
Plaintext
|
<!--
|
||
|
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_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>
|