2019-04-29 23:34:09 +00:00
|
|
|
<!--
|
|
|
|
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.
|
|
|
|
-->
|
2019-05-23 20:38:41 +00:00
|
|
|
|
2019-04-29 23:34:09 +00:00
|
|
|
<Window x:Class="SourceGenWPF.ProjWin.MainWindow"
|
|
|
|
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:SourceGenWPF.ProjWin"
|
|
|
|
mc:Ignorable="d"
|
2019-05-03 22:43:16 +00:00
|
|
|
Title="6502bench SourceGen"
|
|
|
|
Icon="/SourceGenWPF;component/Res/SourceGenIcon.ico"
|
2019-06-07 21:03:34 +00:00
|
|
|
Width="1000" Height="600" MinWidth="800" MinHeight="500"
|
2019-06-12 01:45:08 +00:00
|
|
|
Loaded="Window_Loaded"
|
|
|
|
MouseDown="Window_MouseDown">
|
2019-04-29 23:34:09 +00:00
|
|
|
|
|
|
|
<Window.Resources>
|
2019-05-23 20:38:41 +00:00
|
|
|
<ResourceDictionary>
|
|
|
|
<!-- style and control templates for main code ListView items -->
|
|
|
|
<ResourceDictionary.MergedDictionaries>
|
|
|
|
<ResourceDictionary Source="CodeListItemStyle.xaml"/>
|
2019-06-11 21:36:38 +00:00
|
|
|
<ResourceDictionary Source="../Res/CommandIcons.xaml"/>
|
2019-05-23 20:38:41 +00:00
|
|
|
</ResourceDictionary.MergedDictionaries>
|
|
|
|
|
|
|
|
<!-- don't center the ListView(GridView) column headers
|
|
|
|
https://stackoverflow.com/q/44119146/294248
|
|
|
|
(style without ID applies to all instances of that type)
|
2019-05-12 23:27:28 +00:00
|
|
|
-->
|
2019-05-23 20:38:41 +00:00
|
|
|
<Style TargetType="{x:Type GridViewColumnHeader}">
|
|
|
|
<Setter Property="HorizontalContentAlignment" Value="Left" />
|
|
|
|
</Style>
|
2019-05-28 01:46:09 +00:00
|
|
|
|
|
|
|
<RoutedUICommand x:Key="AssembleCmd" Text="Assemble...">
|
|
|
|
<RoutedUICommand.InputGestures>
|
|
|
|
<KeyGesture>Ctrl+Shift+A</KeyGesture>
|
|
|
|
</RoutedUICommand.InputGestures>
|
|
|
|
</RoutedUICommand>
|
2019-06-07 21:03:34 +00:00
|
|
|
<RoutedUICommand x:Key="CloseCmd" Text="Close"/>
|
2019-06-11 23:27:15 +00:00
|
|
|
<RoutedUICommand x:Key="HintAsCodeEntryPointCmd" Text="Hint As Code Entry Point"/>
|
|
|
|
<RoutedUICommand x:Key="HintAsDataStartCmd" Text="Hint As Data Start"/>
|
|
|
|
<RoutedUICommand x:Key="HintAsInlineDataCmd" Text="Hint As Inline Data"/>
|
|
|
|
<RoutedUICommand x:Key="RemoveHintsCmd" Text="Remove Hints"/>
|
2019-05-28 21:23:17 +00:00
|
|
|
<RoutedUICommand x:Key="RecentProjectCmd"/>
|
2019-06-11 23:27:15 +00:00
|
|
|
<RoutedUICommand x:Key="RedoCmd" Text="Redo">
|
|
|
|
<RoutedUICommand.InputGestures>
|
|
|
|
<KeyGesture>Ctrl+Y</KeyGesture>
|
|
|
|
<KeyGesture>Ctrl+Shift+Z</KeyGesture>
|
|
|
|
</RoutedUICommand.InputGestures>
|
|
|
|
</RoutedUICommand>
|
2019-05-28 21:23:17 +00:00
|
|
|
<RoutedUICommand x:Key="SelectAllCmd" Text="Select All">
|
|
|
|
<RoutedUICommand.InputGestures>
|
|
|
|
<KeyGesture>Ctrl+A</KeyGesture>
|
|
|
|
</RoutedUICommand.InputGestures>
|
|
|
|
</RoutedUICommand>
|
2019-06-11 23:27:15 +00:00
|
|
|
<RoutedUICommand x:Key="UndoCmd" Text="Undo">
|
|
|
|
<RoutedUICommand.InputGestures>
|
|
|
|
<KeyGesture>Ctrl+Z</KeyGesture>
|
|
|
|
</RoutedUICommand.InputGestures>
|
|
|
|
</RoutedUICommand>
|
2019-06-12 21:17:24 +00:00
|
|
|
|
|
|
|
<CollectionViewSource x:Key="SymbolTableSource" Source="{Binding SymbolsList}"
|
|
|
|
Filter="SymbolsList_Filter"/>
|
2019-05-23 20:38:41 +00:00
|
|
|
</ResourceDictionary>
|
2019-04-29 23:34:09 +00:00
|
|
|
</Window.Resources>
|
|
|
|
|
|
|
|
<Window.CommandBindings>
|
2019-06-07 21:03:34 +00:00
|
|
|
<CommandBinding Command="{StaticResource AssembleCmd}"
|
|
|
|
CanExecute="IsProjectOpen" Executed="AssembleCmd_Executed"/>
|
|
|
|
<CommandBinding Command="{StaticResource CloseCmd}"
|
|
|
|
CanExecute="IsProjectOpen" Executed="CloseCmd_Executed"/>
|
2019-06-11 23:27:15 +00:00
|
|
|
<CommandBinding Command="Help"
|
|
|
|
Executed="HelpCmd_Executed"/>
|
|
|
|
<CommandBinding Command="{StaticResource HintAsCodeEntryPointCmd}"
|
|
|
|
CanExecute="CanHintAsCodeEntryPoint" Executed="HintAsCodeEntryPointCmd_Executed"/>
|
|
|
|
<CommandBinding Command="{StaticResource HintAsDataStartCmd}"
|
|
|
|
CanExecute="CanHintAsDataStart" Executed="HintAsDataStartCmd_Executed"/>
|
|
|
|
<CommandBinding Command="{StaticResource HintAsInlineDataCmd}"
|
|
|
|
CanExecute="CanHintAsInlineData" Executed="HintAsInlineDataCmd_Executed"/>
|
|
|
|
<CommandBinding Command="{StaticResource RemoveHintsCmd}"
|
|
|
|
CanExecute="CanRemoveHints" Executed="RemoveHintsCmd_Executed"/>
|
2019-05-28 21:23:17 +00:00
|
|
|
<CommandBinding Command="{StaticResource RecentProjectCmd}" Executed="RecentProjectCmd_Executed"/>
|
2019-06-11 23:27:15 +00:00
|
|
|
<CommandBinding Command="{StaticResource RedoCmd}"
|
|
|
|
CanExecute="CanRedo" Executed="RedoCmd_Executed"/>
|
|
|
|
<!-- ListView has a built-in Ctrl+A handler; this only fires when codeListView is not in focus -->
|
2019-06-07 21:03:34 +00:00
|
|
|
<CommandBinding Command="{StaticResource SelectAllCmd}"
|
|
|
|
CanExecute="IsProjectOpen" Executed="SelectAllCmd_Executed"/>
|
2019-06-11 23:27:15 +00:00
|
|
|
<CommandBinding Command="{StaticResource UndoCmd}"
|
|
|
|
CanExecute="CanUndo" Executed="UndoCmd_Executed"/>
|
2019-04-29 23:34:09 +00:00
|
|
|
</Window.CommandBindings>
|
|
|
|
|
|
|
|
<DockPanel>
|
2019-05-28 01:46:09 +00:00
|
|
|
<Menu Name="appMenu" DockPanel.Dock="Top">
|
2019-04-29 23:34:09 +00:00
|
|
|
<MenuItem Header="_File">
|
|
|
|
<MenuItem Header="New"/>
|
|
|
|
<MenuItem Header="Open"/>
|
|
|
|
<MenuItem Command="Save"/>
|
|
|
|
<MenuItem Command="SaveAs"/>
|
2019-06-07 21:03:34 +00:00
|
|
|
<MenuItem Command="{StaticResource CloseCmd}"/>
|
2019-04-29 23:34:09 +00:00
|
|
|
<Separator/>
|
|
|
|
<MenuItem Command="{StaticResource AssembleCmd}"/>
|
|
|
|
<MenuItem Command="Print"/>
|
|
|
|
<Separator/>
|
|
|
|
<MenuItem Header="Recent Projects">
|
|
|
|
<MenuItem Header="(none)"/>
|
|
|
|
</MenuItem>
|
|
|
|
<Separator/>
|
|
|
|
<MenuItem Header="Exit"/>
|
|
|
|
</MenuItem>
|
|
|
|
<MenuItem Header="_Edit">
|
2019-06-11 23:27:15 +00:00
|
|
|
<MenuItem Command="{StaticResource UndoCmd}"/>
|
|
|
|
<MenuItem Command="{StaticResource RedoCmd}"/>
|
2019-04-29 23:34:09 +00:00
|
|
|
<Separator/>
|
|
|
|
<MenuItem Command="Copy"/>
|
|
|
|
<Separator/>
|
2019-05-28 21:23:17 +00:00
|
|
|
<MenuItem Command="{StaticResource SelectAllCmd}"/>
|
2019-04-29 23:34:09 +00:00
|
|
|
<MenuItem Command="Find"/>
|
|
|
|
<MenuItem Header="Find Next"/>
|
|
|
|
<MenuItem Header="Go To..."/>
|
|
|
|
<Separator/>
|
|
|
|
<MenuItem Header="Edit Header Comment..."/>
|
|
|
|
<MenuItem Command="Properties" Header="Project Properties..."/>
|
|
|
|
<MenuItem Header="Toggle Data Scan"/>
|
|
|
|
<Separator/>
|
|
|
|
<MenuItem Header="Settings..."/>
|
|
|
|
</MenuItem>
|
2019-06-07 21:03:34 +00:00
|
|
|
<MenuItem Name="ActionsMenu" Header="_Actions">
|
2019-04-29 23:34:09 +00:00
|
|
|
<MenuItem Header="Set Address..."/>
|
|
|
|
<MenuItem Header="Override Status Flags..."/>
|
|
|
|
<MenuItem Header="Edit Label..."/>
|
|
|
|
<MenuItem Header="Edit Operand..."/>
|
|
|
|
<MenuItem Header="Edit Comment..."/>
|
|
|
|
<MenuItem Header="Edit Long Comment..."/>
|
|
|
|
<MenuItem Header="Edit Note..."/>
|
|
|
|
<MenuItem Header="Edit Project Symbol..."/>
|
|
|
|
<Separator/>
|
2019-06-11 23:27:15 +00:00
|
|
|
<MenuItem Command="{StaticResource HintAsCodeEntryPointCmd}" InputGestureText="Ctrl+H, Ctrl+C"/>
|
|
|
|
<MenuItem Command="{StaticResource HintAsDataStartCmd}" InputGestureText="Ctrl+H, Ctrl+D"/>
|
|
|
|
<MenuItem Command="{StaticResource HintAsInlineDataCmd}" InputGestureText="Ctrl+H, Ctrl+I"/>
|
|
|
|
<MenuItem Command="{StaticResource RemoveHintsCmd}" InputGestureText="Ctrl+H, Ctrl+R"/>
|
2019-04-29 23:34:09 +00:00
|
|
|
<Separator/>
|
|
|
|
<MenuItem Header="Format Split-Address Table..."/>
|
|
|
|
<MenuItem Header="Toggle Single-Byte Format"/>
|
|
|
|
<MenuItem Header="Format As Word"/>
|
|
|
|
<MenuItem Header="Delete Note/Long Comment"/>
|
|
|
|
<Separator/>
|
|
|
|
<MenuItem Header="Show Hex Dump"/>
|
|
|
|
</MenuItem>
|
|
|
|
<MenuItem Header="_Tools">
|
|
|
|
<MenuItem Header="Hex Dump..."/>
|
|
|
|
<MenuItem Header="ASCII Chart"/>
|
|
|
|
</MenuItem>
|
|
|
|
<MenuItem Header="_Help">
|
|
|
|
<MenuItem Command="Help"/>
|
|
|
|
<MenuItem Header="About..."/>
|
|
|
|
</MenuItem>
|
|
|
|
<MenuItem Header="_DEBUG" Name="DebugMenu">
|
|
|
|
<MenuItem Command="Refresh" Header="Re-analyze"/>
|
|
|
|
<MenuItem Header="Show Undo/Redo History"/>
|
|
|
|
<MenuItem Header="Show Analyzer Output"/>
|
|
|
|
<MenuItem Header="Show Analysis Timers"/>
|
|
|
|
<MenuItem Header="Extension Script Info..."/>
|
|
|
|
<Separator/>
|
|
|
|
<MenuItem Header="Toggle Comment Rulers"/>
|
|
|
|
<MenuItem Header="Use Keep-Alive Hack"/>
|
|
|
|
<Separator/>
|
|
|
|
<MenuItem Header="Source Generation Tests..."/>
|
|
|
|
</MenuItem>
|
|
|
|
</Menu>
|
|
|
|
|
2019-06-11 21:36:38 +00:00
|
|
|
<ToolBarTray DockPanel.Dock="Top">
|
|
|
|
<ToolBar RenderOptions.BitmapScalingMode="NearestNeighbor">
|
|
|
|
<Button ToolTip="Navigate backward">
|
|
|
|
<ContentControl Template="{StaticResource icon_StepBackwards}"/>
|
|
|
|
</Button>
|
|
|
|
<Button ToolTip="Navigate forward">
|
|
|
|
<ContentControl Template="{StaticResource icon_StepForward}"/>
|
|
|
|
</Button>
|
|
|
|
<Separator/>
|
|
|
|
<Button ToolTip="Create new project">
|
|
|
|
<ContentControl Template="{StaticResource icon_NewFile}"/>
|
|
|
|
</Button>
|
|
|
|
<Button ToolTip="Open project">
|
|
|
|
<ContentControl Template="{StaticResource icon_OpenFile}"/>
|
|
|
|
</Button>
|
|
|
|
<Button ToolTip="Save project">
|
|
|
|
<ContentControl Template="{StaticResource icon_SaveFile}"/>
|
|
|
|
</Button>
|
|
|
|
<Separator/>
|
|
|
|
<Button ToolTip="Copy to clipboard">
|
|
|
|
<ContentControl Template="{StaticResource icon_CopyToClipboard}"/>
|
|
|
|
</Button>
|
|
|
|
<Separator/>
|
|
|
|
<Button ToolTip="Help - open manual in browser">
|
|
|
|
<ContentControl Template="{StaticResource icon_F1Help}"/>
|
|
|
|
</Button>
|
|
|
|
</ToolBar>
|
|
|
|
</ToolBarTray>
|
2019-04-29 23:34:09 +00:00
|
|
|
|
2019-05-28 01:46:09 +00:00
|
|
|
<StatusBar Name="mainStatusBar" DockPanel.Dock="Bottom">
|
2019-04-29 23:34:09 +00:00
|
|
|
<TextBlock Text="Ready"/>
|
|
|
|
</StatusBar>
|
|
|
|
|
|
|
|
<!-- Main part of the window. Three side-by-side panels, only the middle of which changes
|
2019-06-11 21:36:38 +00:00
|
|
|
size when the window is resized. This needs to be the last thing defined in the
|
|
|
|
DockPanel, so that LastChildFill will expand this to fill all available space. -->
|
2019-05-28 01:46:09 +00:00
|
|
|
<Grid Name="triptychGrid" DockPanel.Dock="Top">
|
2019-04-29 23:34:09 +00:00
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
<ColumnDefinition Width="168" MinWidth="100"/>
|
|
|
|
<ColumnDefinition Width="Auto"/>
|
|
|
|
<ColumnDefinition Width="*" MinWidth="150"/>
|
|
|
|
<ColumnDefinition Width="Auto"/>
|
|
|
|
<ColumnDefinition Width="187" MinWidth="100"/>
|
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
|
|
|
|
|
|
|
|
<GridSplitter Width="4" Grid.Column="1" HorizontalAlignment="Left"/>
|
|
|
|
<GridSplitter Width="4" Grid.Column="3" HorizontalAlignment="Center"/>
|
|
|
|
|
2019-05-28 01:46:09 +00:00
|
|
|
<Grid Name="leftPanel" Grid.Column="0">
|
2019-04-29 23:34:09 +00:00
|
|
|
<Grid.RowDefinitions>
|
|
|
|
<RowDefinition Height="*" MinHeight="100"/>
|
|
|
|
<RowDefinition Height="Auto"/>
|
|
|
|
<RowDefinition Height="*" MinHeight="100"/>
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
|
|
|
|
<GroupBox Grid.Row="0" Header="References">
|
2019-05-28 01:46:09 +00:00
|
|
|
<DataGrid Name="referencesList" IsReadOnly="True"
|
2019-06-10 22:46:35 +00:00
|
|
|
ItemsSource="{Binding ReferencesList}"
|
2019-06-10 01:09:00 +00:00
|
|
|
FontFamily="{StaticResource GeneralMonoFont}"
|
|
|
|
SnapsToDevicePixels="True"
|
2019-06-10 22:46:35 +00:00
|
|
|
GridLinesVisibility="Vertical"
|
|
|
|
VerticalGridLinesBrush="#FF7F7F7F"
|
2019-06-10 01:09:00 +00:00
|
|
|
AutoGenerateColumns="False"
|
2019-06-10 22:46:35 +00:00
|
|
|
HeadersVisibility="Column"
|
|
|
|
CanUserReorderColumns="False"
|
|
|
|
SelectionMode="Single">
|
2019-04-29 23:34:09 +00:00
|
|
|
<DataGrid.Columns>
|
|
|
|
<DataGridTextColumn Header="Offset" Binding="{Binding Offset}"/>
|
|
|
|
<DataGridTextColumn Header="Addr" Binding="{Binding Addr}"/>
|
|
|
|
<DataGridTextColumn Header="Type" Binding="{Binding Type}"/>
|
|
|
|
</DataGrid.Columns>
|
|
|
|
</DataGrid>
|
|
|
|
</GroupBox>
|
|
|
|
|
|
|
|
<GroupBox Grid.Row="2" Header="Notes">
|
2019-05-28 01:46:09 +00:00
|
|
|
<DataGrid Name="notesList" IsReadOnly="True"
|
2019-06-12 22:54:22 +00:00
|
|
|
ItemsSource="{Binding NotesList}"
|
|
|
|
FontFamily="{StaticResource GeneralMonoFont}"
|
|
|
|
SnapsToDevicePixels="True"
|
|
|
|
GridLinesVisibility="Vertical"
|
|
|
|
VerticalGridLinesBrush="#FF7F7F7F"
|
|
|
|
AutoGenerateColumns="False"
|
|
|
|
HeadersVisibility="Column"
|
|
|
|
CanUserReorderColumns="False"
|
|
|
|
SelectionMode="Single">
|
2019-04-29 23:34:09 +00:00
|
|
|
<DataGrid.Columns>
|
|
|
|
<DataGridTextColumn Header="Offset" Binding="{Binding Offset}"/>
|
2019-06-12 22:54:22 +00:00
|
|
|
<DataGridTextColumn Header="Note" Binding="{Binding Note}">
|
|
|
|
<DataGridTextColumn.ElementStyle>
|
|
|
|
<Style TargetType="{x:Type TextBlock}">
|
|
|
|
<Setter Property="Background" Value="{Binding BackBrush}"/>
|
|
|
|
</Style>
|
|
|
|
</DataGridTextColumn.ElementStyle>
|
|
|
|
</DataGridTextColumn>
|
2019-04-29 23:34:09 +00:00
|
|
|
</DataGrid.Columns>
|
|
|
|
</DataGrid>
|
|
|
|
</GroupBox>
|
|
|
|
|
|
|
|
<GridSplitter Height="4" Grid.Row="1"
|
|
|
|
HorizontalAlignment="Stretch" VerticalAlignment="Center"/>
|
|
|
|
</Grid>
|
|
|
|
|
2019-05-09 23:13:20 +00:00
|
|
|
<Grid Name="launchPanel" Grid.Column="2"
|
|
|
|
Visibility="{Binding Path=LaunchPanelVisibility}" d:IsHidden="True">
|
2019-04-29 23:34:09 +00:00
|
|
|
<Grid.RowDefinitions>
|
|
|
|
<RowDefinition Height="Auto"/>
|
|
|
|
<RowDefinition Height="*"/>
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
|
|
|
|
<StackPanel Grid.Row="0" Orientation="Horizontal">
|
2019-05-02 22:45:40 +00:00
|
|
|
<Image Source="/SourceGenWPF;component/Res/Logo.png" Height="100"/>
|
2019-04-29 23:34:09 +00:00
|
|
|
<Grid Margin="8">
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
<RowDefinition/>
|
|
|
|
<RowDefinition/>
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
<TextBlock Grid.Row="0" VerticalAlignment="Center"
|
|
|
|
Text="6502bench SourceGen" FontSize="36"/>
|
|
|
|
<TextBlock Grid.Row="1" VerticalAlignment="Center"
|
2019-05-03 22:43:16 +00:00
|
|
|
Text="{Binding ProgramVersionString, StringFormat={}Version {0},
|
|
|
|
RelativeSource={RelativeSource FindAncestor, AncestorType=Window},
|
|
|
|
FallbackValue=Version X.Y.Z-alpha1}"
|
|
|
|
FontSize="24"/>
|
2019-04-29 23:34:09 +00:00
|
|
|
</Grid>
|
|
|
|
</StackPanel>
|
|
|
|
|
|
|
|
<StackPanel Grid.Row="1" HorizontalAlignment="Left">
|
|
|
|
<Button Content="Start new project" Width="200" Height="50" Margin="10,30,10,10"/>
|
|
|
|
<Button Content="Open existing project" Width="200" Height="50" Margin="10"/>
|
2019-05-05 23:50:28 +00:00
|
|
|
<Button Content="Recent project #1" Width="200" Height="50" Margin="10"
|
2019-05-28 21:23:17 +00:00
|
|
|
CommandParameter="0"
|
|
|
|
Command="{DynamicResource RecentProjectCmd}"/>
|
2019-05-05 23:50:28 +00:00
|
|
|
<Button Content="Recent project #2" Width="200" Height="50" Margin="10"
|
2019-05-28 21:23:17 +00:00
|
|
|
CommandParameter="1"
|
|
|
|
Command="{DynamicResource RecentProjectCmd}"/>
|
2019-04-29 23:34:09 +00:00
|
|
|
</StackPanel>
|
|
|
|
</Grid>
|
|
|
|
|
2019-05-09 23:13:20 +00:00
|
|
|
<ListView Name="codeListView" Grid.Column="2"
|
|
|
|
FontFamily="{StaticResource GeneralMonoFont}"
|
2019-05-12 00:36:50 +00:00
|
|
|
Visibility="{Binding Path=CodeListVisibility}"
|
2019-05-12 23:27:28 +00:00
|
|
|
VirtualizingStackPanel.VirtualizationMode="Recycling"
|
2019-05-23 20:38:41 +00:00
|
|
|
ItemContainerStyle="{StaticResource codeListItemStyle}"
|
2019-06-12 01:45:08 +00:00
|
|
|
SelectionChanged="CodeListView_SelectionChanged"
|
|
|
|
MouseDoubleClick="CodeListView_MouseDoubleClick">
|
2019-05-09 23:13:20 +00:00
|
|
|
<ListView.View>
|
|
|
|
<GridView AllowsColumnReorder="False">
|
2019-05-11 17:16:54 +00:00
|
|
|
<GridViewColumn Header="Offset" DisplayMemberBinding="{Binding Offset}"/>
|
|
|
|
<GridViewColumn Header="Addr" DisplayMemberBinding="{Binding Addr}"/>
|
|
|
|
<GridViewColumn Header="Bytes" DisplayMemberBinding="{Binding Bytes}"/>
|
|
|
|
<GridViewColumn Header="Flags" DisplayMemberBinding="{Binding Flags}"/>
|
|
|
|
<GridViewColumn Header="Attr" DisplayMemberBinding="{Binding Attr}"/>
|
|
|
|
<GridViewColumn Header="Label" DisplayMemberBinding="{Binding Label}"/>
|
|
|
|
<GridViewColumn Header="Opcode" DisplayMemberBinding="{Binding Opcode}"/>
|
|
|
|
<GridViewColumn Header="Operand" DisplayMemberBinding="{Binding Operand}"/>
|
|
|
|
<GridViewColumn Header="Comment" DisplayMemberBinding="{Binding Comment}"/>
|
2019-05-09 23:13:20 +00:00
|
|
|
</GridView>
|
|
|
|
</ListView.View>
|
2019-05-12 00:36:50 +00:00
|
|
|
|
2019-06-07 21:03:34 +00:00
|
|
|
<ListView.ContextMenu>
|
|
|
|
<!-- this is populated as a clone of the Actions menu during init -->
|
|
|
|
<ContextMenu/>
|
|
|
|
</ListView.ContextMenu>
|
|
|
|
|
2019-05-09 23:13:20 +00:00
|
|
|
</ListView>
|
|
|
|
|
2019-05-28 01:46:09 +00:00
|
|
|
<Grid Name="rightPanel" Grid.Column="4">
|
2019-04-29 23:34:09 +00:00
|
|
|
<Grid.RowDefinitions>
|
|
|
|
<RowDefinition Height="*" MinHeight="100"/>
|
|
|
|
<RowDefinition Height="Auto"/>
|
|
|
|
<RowDefinition Height="143" MinHeight="100"/>
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
|
|
|
|
<GroupBox Grid.Row="0" Header="Symbols">
|
|
|
|
<Grid>
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
<RowDefinition Height="Auto"/>
|
|
|
|
<RowDefinition Height="*"/>
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
|
|
|
|
<WrapPanel Grid.Row="0">
|
2019-06-12 21:17:24 +00:00
|
|
|
<ToggleButton Name="symUserLabels" Content="User" Width="40" Margin="2,2"
|
|
|
|
Checked="SymbolsListFilter_Changed" Unchecked="SymbolsListFilter_Changed"/>
|
|
|
|
<ToggleButton Name="symProjectSymbols" Content="Proj" Width="40" Margin="2,2"
|
|
|
|
Checked="SymbolsListFilter_Changed" Unchecked="SymbolsListFilter_Changed"/>
|
|
|
|
<ToggleButton Name="symPlatformSymbols" Content="Plat" Width="40" Margin="2,2"
|
|
|
|
Checked="SymbolsListFilter_Changed" Unchecked="SymbolsListFilter_Changed"/>
|
|
|
|
<ToggleButton Name="symAutoLabels" Content="Auto" Width="40" Margin="2,2"
|
|
|
|
Checked="SymbolsListFilter_Changed" Unchecked="SymbolsListFilter_Changed"/>
|
|
|
|
<ToggleButton Name="symAddresses" Content="Addr" Width="40" Margin="2,2"
|
|
|
|
Checked="SymbolsListFilter_Changed" Unchecked="SymbolsListFilter_Changed"/>
|
|
|
|
<ToggleButton Name="symConstants" Content="Cnst" Width="40" Margin="2,2"
|
|
|
|
Checked="SymbolsListFilter_Changed" Unchecked="SymbolsListFilter_Changed"/>
|
2019-04-29 23:34:09 +00:00
|
|
|
</WrapPanel>
|
|
|
|
|
2019-06-12 21:17:24 +00:00
|
|
|
<DataGrid Grid.Row="1" Name="symbolsList"
|
|
|
|
IsReadOnly="True"
|
|
|
|
ItemsSource="{Binding Source={StaticResource SymbolTableSource}}"
|
|
|
|
FontFamily="{StaticResource GeneralMonoFont}"
|
|
|
|
SnapsToDevicePixels="True"
|
|
|
|
GridLinesVisibility="Vertical"
|
|
|
|
VerticalGridLinesBrush="#FF7F7F7F"
|
|
|
|
AutoGenerateColumns="False"
|
|
|
|
HeadersVisibility="Column"
|
|
|
|
CanUserReorderColumns="False"
|
|
|
|
SelectionMode="Single"
|
|
|
|
Sorting="SymbolsList_Sorting">
|
|
|
|
<DataGrid.Columns>
|
|
|
|
<DataGridTextColumn Header="Type" Binding="{Binding Type}"/>
|
|
|
|
<DataGridTextColumn Header="Value" Binding="{Binding Value}"/>
|
|
|
|
<DataGridTextColumn Header="Name" Binding="{Binding Name}"/>
|
|
|
|
</DataGrid.Columns>
|
|
|
|
</DataGrid>
|
2019-04-29 23:34:09 +00:00
|
|
|
</Grid>
|
|
|
|
</GroupBox>
|
|
|
|
|
|
|
|
<GroupBox Grid.Row="2" Header="Info">
|
2019-06-10 01:09:00 +00:00
|
|
|
<TextBox Text="{Binding InfoPanelContents}"
|
2019-06-09 21:24:46 +00:00
|
|
|
FontFamily="{StaticResource GeneralMonoFont}"
|
|
|
|
TextWrapping="Wrap"/>
|
2019-04-29 23:34:09 +00:00
|
|
|
</GroupBox>
|
|
|
|
|
|
|
|
<GridSplitter Height="4" Grid.Row="1"
|
|
|
|
HorizontalAlignment="Stretch" VerticalAlignment="Top"/>
|
|
|
|
</Grid>
|
|
|
|
</Grid>
|
|
|
|
</DockPanel>
|
|
|
|
</Window>
|