2019-04-29 23:34:09 +00:00
|
|
|
<!--
|
|
|
|
Copyright 2019 faddenSoft
|
2019-06-16 23:34:47 +00:00
|
|
|
|
2019-04-29 23:34:09 +00:00
|
|
|
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-07-20 20:28:10 +00:00
|
|
|
<Window x:Class="SourceGen.WpfGui.MainWindow"
|
2019-04-29 23:34:09 +00:00
|
|
|
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"
|
2019-07-20 20:28:10 +00:00
|
|
|
xmlns:local="clr-namespace:SourceGen.WpfGui"
|
2019-04-29 23:34:09 +00:00
|
|
|
mc:Ignorable="d"
|
2019-05-03 22:43:16 +00:00
|
|
|
Title="6502bench SourceGen"
|
2019-07-20 20:28:10 +00:00
|
|
|
Icon="/SourceGen;component/Res/SourceGenIcon.ico"
|
2019-07-21 00:27:39 +00:00
|
|
|
Width="1200" Height="700" MinWidth="800" MinHeight="500"
|
2019-06-19 23:31:56 +00:00
|
|
|
SourceInitialized="Window_SourceInitialized"
|
2019-06-12 01:45:08 +00:00
|
|
|
Loaded="Window_Loaded"
|
2019-06-19 23:31:56 +00:00
|
|
|
LocationChanged="Window_LocationChanged"
|
|
|
|
SizeChanged="Window_SizeChanged"
|
|
|
|
MouseDown="Window_MouseDown"
|
|
|
|
Closing="Window_Closing">
|
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>
|
|
|
|
|
2019-07-15 22:32:27 +00:00
|
|
|
<BooleanToVisibilityConverter x:Key="BoolToVis"/>
|
|
|
|
|
2019-05-23 20:38:41 +00:00
|
|
|
<!-- 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
|
|
|
|
2019-07-06 22:51:57 +00:00
|
|
|
<RoutedUICommand x:Key="AboutCmd" Text="About..."/>
|
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-07-14 20:50:15 +00:00
|
|
|
<RoutedUICommand x:Key="DeleteMlcCmd" Text="Delete Note/Long Comment">
|
|
|
|
<RoutedUICommand.InputGestures>
|
|
|
|
<KeyGesture>Del</KeyGesture>
|
|
|
|
</RoutedUICommand.InputGestures>
|
|
|
|
</RoutedUICommand>
|
2019-06-16 23:34:47 +00:00
|
|
|
<RoutedUICommand x:Key="EditAddressCmd" Text="Set Address..."/>
|
2019-07-06 22:51:57 +00:00
|
|
|
<RoutedUICommand x:Key="EditAppSettingsCmd" Text="Settings..."/>
|
2019-07-11 22:55:43 +00:00
|
|
|
<RoutedUICommand x:Key="EditCommentCmd" Text="Edit Comment...">
|
|
|
|
<RoutedUICommand.InputGestures>
|
|
|
|
<!-- this works, but appears as "Ctrl+Oem1", so override tip in menu items -->
|
|
|
|
<KeyGesture>Ctrl+Semicolon</KeyGesture>
|
|
|
|
</RoutedUICommand.InputGestures>
|
|
|
|
</RoutedUICommand>
|
2019-07-07 23:18:46 +00:00
|
|
|
<RoutedUICommand x:Key="EditHeaderCommentCmd" Text="Edit Header Comment..."/>
|
2019-07-08 22:40:30 +00:00
|
|
|
<RoutedUICommand x:Key="EditOperandCmd" Text="Edit Operand...">
|
|
|
|
<RoutedUICommand.InputGestures>
|
|
|
|
<KeyGesture>Ctrl+O</KeyGesture>
|
|
|
|
</RoutedUICommand.InputGestures>
|
|
|
|
</RoutedUICommand>
|
2019-07-07 00:24:42 +00:00
|
|
|
<RoutedUICommand x:Key="EditLabelCmd" Text="Edit Label...">
|
|
|
|
<RoutedUICommand.InputGestures>
|
|
|
|
<KeyGesture>Ctrl+L</KeyGesture>
|
|
|
|
</RoutedUICommand.InputGestures>
|
|
|
|
</RoutedUICommand>
|
2019-08-25 21:14:44 +00:00
|
|
|
<RoutedUICommand x:Key="EditLocalVariableTableCmd" Text="Edit Local Variable Table..."/>
|
2019-07-07 23:18:46 +00:00
|
|
|
<RoutedUICommand x:Key="EditLongCommentCmd" Text="Edit Long Comment...">
|
|
|
|
<RoutedUICommand.InputGestures>
|
|
|
|
<KeyGesture>Ctrl+M</KeyGesture>
|
|
|
|
</RoutedUICommand.InputGestures>
|
|
|
|
</RoutedUICommand>
|
2019-07-14 00:04:47 +00:00
|
|
|
<RoutedUICommand x:Key="EditNoteCmd" Text="Edit Note...">
|
|
|
|
<RoutedUICommand.InputGestures>
|
|
|
|
<KeyGesture>Ctrl+N</KeyGesture>
|
|
|
|
</RoutedUICommand.InputGestures>
|
|
|
|
</RoutedUICommand>
|
2019-07-14 20:18:10 +00:00
|
|
|
<RoutedUICommand x:Key="EditProjectSymbolCmd" Text="Edit Project Symbol..."/>
|
2019-06-22 20:20:31 +00:00
|
|
|
<RoutedUICommand x:Key="EditStatusFlagsCmd" Text="Override Status Flags..."/>
|
|
|
|
<RoutedUICommand x:Key="ExitCmd" Text="Exit"/>
|
2019-09-11 00:43:31 +00:00
|
|
|
<RoutedUICommand x:Key="ExportCmd" Text="Export..."/>
|
2019-07-07 20:28:45 +00:00
|
|
|
<RoutedUICommand x:Key="FindNextCmd" Text="Find Next">
|
|
|
|
<RoutedUICommand.InputGestures>
|
|
|
|
<KeyGesture>F3</KeyGesture>
|
|
|
|
</RoutedUICommand.InputGestures>
|
|
|
|
</RoutedUICommand>
|
2019-07-14 20:50:15 +00:00
|
|
|
<RoutedUICommand x:Key="FormatAsWordCmd" Text="Format As Word">
|
|
|
|
<RoutedUICommand.InputGestures>
|
|
|
|
<KeyGesture>Ctrl+W</KeyGesture>
|
|
|
|
</RoutedUICommand.InputGestures>
|
|
|
|
</RoutedUICommand>
|
2019-09-15 20:37:38 +00:00
|
|
|
<RoutedUICommand x:Key="FormatAddressTableCmd" Text="Format Address Table..."/>
|
2019-07-07 21:28:35 +00:00
|
|
|
<RoutedUICommand x:Key="GotoCmd" Text="Go To...">
|
|
|
|
<RoutedUICommand.InputGestures>
|
|
|
|
<KeyGesture>Ctrl+G</KeyGesture>
|
|
|
|
</RoutedUICommand.InputGestures>
|
|
|
|
</RoutedUICommand>
|
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"/>
|
2019-06-15 23:00:31 +00:00
|
|
|
<RoutedUICommand x:Key="NavigateBackwardCmd" Text="Nav Backward">
|
|
|
|
<RoutedUICommand.InputGestures>
|
|
|
|
<KeyGesture>Alt+Left</KeyGesture>
|
|
|
|
<KeyGesture>Ctrl+Minus</KeyGesture>
|
|
|
|
</RoutedUICommand.InputGestures>
|
|
|
|
</RoutedUICommand>
|
|
|
|
<RoutedUICommand x:Key="NavigateForwardCmd" Text="Nav Forward">
|
|
|
|
<RoutedUICommand.InputGestures>
|
|
|
|
<KeyGesture>Alt+Right</KeyGesture>
|
|
|
|
<KeyGesture>Ctrl+Shift+Minus</KeyGesture>
|
|
|
|
</RoutedUICommand.InputGestures>
|
|
|
|
</RoutedUICommand>
|
2019-06-23 00:38:07 +00:00
|
|
|
<RoutedUICommand x:Key="NewProjectCmd" Text="New"/>
|
2019-06-21 23:27:58 +00:00
|
|
|
<RoutedUICommand x:Key="OpenCmd" Text="Open"/>
|
2019-06-11 23:27:15 +00:00
|
|
|
<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-07-13 00:46:37 +00:00
|
|
|
<RoutedUICommand x:Key="ShowFileHexDumpCmd" Text="Hex Dump..."/>
|
2019-07-13 00:04:14 +00:00
|
|
|
<RoutedUICommand x:Key="ShowHexDumpCmd" Text="Show Hex Dump"/>
|
2019-07-15 01:12:03 +00:00
|
|
|
<RoutedUICommand x:Key="ToggleAsciiChartCmd" Text="ASCII Chart"/>
|
2019-07-08 00:17:48 +00:00
|
|
|
<RoutedUICommand x:Key="ToggleDataScanCmd" Text="Toggle Data Scan">
|
|
|
|
<RoutedUICommand.InputGestures>
|
|
|
|
<KeyGesture>Ctrl+D</KeyGesture>
|
|
|
|
</RoutedUICommand.InputGestures>
|
|
|
|
</RoutedUICommand>
|
2019-07-14 20:50:15 +00:00
|
|
|
<RoutedUICommand x:Key="ToggleSingleByteFormatCmd" Text="Toggle Single-Byte Format">
|
|
|
|
<RoutedUICommand.InputGestures>
|
|
|
|
<KeyGesture>Ctrl+B</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
|
|
|
|
2019-07-15 23:50:54 +00:00
|
|
|
<RoutedUICommand x:Key="Debug_ExtensionScriptInfoCmd" Text="Extension Script Info..."/>
|
2019-07-16 00:18:28 +00:00
|
|
|
<RoutedUICommand x:Key="Debug_ShowAnalysisTimersCmd" Text="Show Analysis Timers"/>
|
|
|
|
<RoutedUICommand x:Key="Debug_ShowAnalyzerOutputCmd" Text="Show Analyzer Output"/>
|
|
|
|
<RoutedUICommand x:Key="Debug_ShowUndoRedoHistoryCmd" Text="Show Undo/Redo History"/>
|
|
|
|
<RoutedUICommand x:Key="Debug_SourceGenerationTestsCmd" Text="Source Generation Tests..."/>
|
2019-07-15 22:32:27 +00:00
|
|
|
<RoutedUICommand x:Key="Debug_ToggleCommentRulersCmd" Text="Show Comment Rulers"/>
|
|
|
|
<RoutedUICommand x:Key="Debug_ToggleKeepAliveHackCmd" Text="Use Keep-Alive Hack"/>
|
|
|
|
|
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-07-06 22:51:57 +00:00
|
|
|
<CommandBinding Command="{StaticResource AboutCmd}"
|
|
|
|
Executed="AboutCmd_Executed"/>
|
|
|
|
<CommandBinding Command="{StaticResource EditAppSettingsCmd}"
|
|
|
|
Executed="EditAppSettingsCmd_Executed"/>
|
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-07-14 20:50:15 +00:00
|
|
|
<CommandBinding Command="{StaticResource DeleteMlcCmd}"
|
|
|
|
CanExecute="CanDeleteMlc" Executed="DeleteMlcCmd_Executed"/>
|
2019-07-15 23:50:54 +00:00
|
|
|
<CommandBinding Command="{StaticResource Debug_SourceGenerationTestsCmd}"
|
|
|
|
Executed="Debug_SourceGenerationTestsCmd_Executed"/>
|
2019-06-16 23:34:47 +00:00
|
|
|
<CommandBinding Command="{StaticResource EditAddressCmd}"
|
|
|
|
CanExecute="CanEditAddress" Executed="EditAddressCmd_Executed"/>
|
2019-07-11 22:55:43 +00:00
|
|
|
<CommandBinding Command="{StaticResource EditCommentCmd}"
|
|
|
|
CanExecute="CanEditComment" Executed="EditCommentCmd_Executed"/>
|
2019-07-07 23:18:46 +00:00
|
|
|
<CommandBinding Command="{StaticResource EditHeaderCommentCmd}"
|
|
|
|
CanExecute="IsProjectOpen" Executed="EditHeaderCommentCmd_Executed"/>
|
2019-07-07 00:24:42 +00:00
|
|
|
<CommandBinding Command="{StaticResource EditLabelCmd}"
|
|
|
|
CanExecute="CanEditLabel" Executed="EditLabelCmd_Executed"/>
|
2019-08-25 21:14:44 +00:00
|
|
|
<CommandBinding Command="{StaticResource EditLocalVariableTableCmd}"
|
|
|
|
CanExecute="CanEditLocalVariableTable" Executed="EditLocalVariableTableCmd_Executed"/>
|
2019-07-07 23:18:46 +00:00
|
|
|
<CommandBinding Command="{StaticResource EditLongCommentCmd}"
|
|
|
|
CanExecute="CanEditLongComment" Executed="EditLongCommentCmd_Executed"/>
|
2019-07-14 00:04:47 +00:00
|
|
|
<CommandBinding Command="{StaticResource EditNoteCmd}"
|
|
|
|
CanExecute="CanEditNote" Executed="EditNoteCmd_Executed"/>
|
2019-07-08 22:40:30 +00:00
|
|
|
<CommandBinding Command="{StaticResource EditOperandCmd}"
|
|
|
|
CanExecute="CanEditOperand" Executed="EditOperandCmd_Executed"/>
|
2019-07-14 20:18:10 +00:00
|
|
|
<CommandBinding Command="{StaticResource EditProjectSymbolCmd}"
|
|
|
|
CanExecute="CanEditProjectSymbol" Executed="EditProjectSymbolCmd_Executed"/>
|
2019-06-22 20:20:31 +00:00
|
|
|
<CommandBinding Command="{StaticResource EditStatusFlagsCmd}"
|
|
|
|
CanExecute="CanEditStatusFlags" Executed="EditStatusFlagsCmd_Executed"/>
|
|
|
|
<CommandBinding Command="{StaticResource ExitCmd}"
|
|
|
|
Executed="ExitCmd_Executed"/>
|
2019-09-11 00:43:31 +00:00
|
|
|
<CommandBinding Command="{StaticResource ExportCmd}"
|
|
|
|
CanExecute="IsProjectOpen" Executed="ExportCmd_Executed"/>
|
2019-07-07 20:28:45 +00:00
|
|
|
<CommandBinding Command="Find"
|
|
|
|
CanExecute="IsProjectOpen" Executed="FindCmd_Executed"/>
|
|
|
|
<CommandBinding Command="{StaticResource FindNextCmd}"
|
|
|
|
CanExecute="IsProjectOpen" Executed="FindNextCmd_Executed"/>
|
2019-07-14 20:50:15 +00:00
|
|
|
<CommandBinding Command="{StaticResource FormatAsWordCmd}"
|
|
|
|
CanExecute="CanFormatAsWord" Executed="FormatAsWordCmd_Executed"/>
|
2019-09-15 20:37:38 +00:00
|
|
|
<CommandBinding Command="{StaticResource FormatAddressTableCmd}"
|
|
|
|
CanExecute="CanFormatAddressTable" Executed="FormatAddressTableCmd_Executed"/>
|
2019-07-07 21:28:35 +00:00
|
|
|
<CommandBinding Command="{StaticResource GotoCmd}"
|
|
|
|
CanExecute="IsProjectOpen" Executed="GotoCmd_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"/>
|
2019-06-15 23:00:31 +00:00
|
|
|
<CommandBinding Command="{StaticResource NavigateBackwardCmd}"
|
|
|
|
CanExecute="CanNavigateBackward" Executed="NavigateBackwardCmd_Executed"/>
|
|
|
|
<CommandBinding Command="{StaticResource NavigateForwardCmd}"
|
|
|
|
CanExecute="CanNavigateForward" Executed="NavigateForwardCmd_Executed"/>
|
2019-06-23 00:38:07 +00:00
|
|
|
<CommandBinding Command="{StaticResource NewProjectCmd}"
|
|
|
|
Executed="NewProjectCmd_Executed"/>
|
2019-06-21 23:27:58 +00:00
|
|
|
<CommandBinding Command="{StaticResource OpenCmd}"
|
|
|
|
Executed="OpenCmd_Executed"/>
|
2019-07-01 21:07:30 +00:00
|
|
|
<CommandBinding Command="Properties"
|
2019-07-06 22:51:57 +00:00
|
|
|
CanExecute="IsProjectOpen" Executed="EditProjectPropertiesCmd_Executed"/>
|
2019-06-11 23:27:15 +00:00
|
|
|
<CommandBinding Command="{StaticResource RemoveHintsCmd}"
|
|
|
|
CanExecute="CanRemoveHints" Executed="RemoveHintsCmd_Executed"/>
|
2019-06-22 21:41:09 +00:00
|
|
|
<CommandBinding Command="{StaticResource RecentProjectCmd}" x:Name="recentProjectCmd"
|
2019-06-21 23:27:58 +00:00
|
|
|
Executed="RecentProjectCmd_Executed"/>
|
2019-06-11 23:27:15 +00:00
|
|
|
<CommandBinding Command="{StaticResource RedoCmd}"
|
|
|
|
CanExecute="CanRedo" Executed="RedoCmd_Executed"/>
|
2019-06-21 23:27:58 +00:00
|
|
|
<CommandBinding Command="Save"
|
|
|
|
CanExecute="IsProjectOpen" Executed="SaveCmd_Executed"/>
|
|
|
|
<CommandBinding Command="SaveAs"
|
|
|
|
CanExecute="IsProjectOpen" Executed="SaveAsCmd_Executed"/>
|
2019-06-11 23:27:15 +00:00
|
|
|
<!-- 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-07-13 00:46:37 +00:00
|
|
|
<CommandBinding Command="{StaticResource ShowFileHexDumpCmd}"
|
|
|
|
Executed="ShowFileHexDumpCmd_Executed"/>
|
2019-07-13 00:04:14 +00:00
|
|
|
<CommandBinding Command="{StaticResource ShowHexDumpCmd}"
|
|
|
|
CanExecute="IsProjectOpen" Executed="ShowHexDumpCmd_Executed"/>
|
2019-07-15 01:12:03 +00:00
|
|
|
<CommandBinding Command="{StaticResource ToggleAsciiChartCmd}"
|
|
|
|
Executed="ToggleAsciiChartCmd_Executed"/>
|
2019-07-08 00:17:48 +00:00
|
|
|
<CommandBinding Command="{StaticResource ToggleDataScanCmd}"
|
|
|
|
CanExecute="IsProjectOpen" Executed="ToggleDataScanCmd_Executed"/>
|
2019-07-14 20:50:15 +00:00
|
|
|
<CommandBinding Command="{StaticResource ToggleSingleByteFormatCmd}"
|
|
|
|
CanExecute="CanToggleSingleByteFormat" Executed="ToggleSingleByteFormatCmd_Executed"/>
|
2019-06-11 23:27:15 +00:00
|
|
|
<CommandBinding Command="{StaticResource UndoCmd}"
|
|
|
|
CanExecute="CanUndo" Executed="UndoCmd_Executed"/>
|
2019-07-15 22:32:27 +00:00
|
|
|
|
2019-07-21 22:24:39 +00:00
|
|
|
<!-- must come after code hint Ctrl+H Ctrl+C -->
|
|
|
|
<CommandBinding Command="Copy"
|
|
|
|
CanExecute="IsProjectOpen" Executed="CopyCmd_Executed"/>
|
|
|
|
|
2019-07-15 22:32:27 +00:00
|
|
|
<CommandBinding Command="Refresh"
|
|
|
|
CanExecute="IsProjectOpen" Executed="Debug_RefreshCmd_Executed"/>
|
2019-07-15 23:50:54 +00:00
|
|
|
<CommandBinding Command="{StaticResource Debug_ExtensionScriptInfoCmd}"
|
|
|
|
CanExecute="IsProjectOpen" Executed="Debug_ExtensionScriptInfoCmd_Executed"/>
|
2019-07-16 00:18:28 +00:00
|
|
|
<CommandBinding Command="{StaticResource Debug_ShowAnalysisTimersCmd}"
|
|
|
|
CanExecute="IsProjectOpen" Executed="Debug_ShowAnalysisTimersCmd_Executed"/>
|
|
|
|
<CommandBinding Command="{StaticResource Debug_ShowAnalyzerOutputCmd}"
|
|
|
|
CanExecute="IsProjectOpen" Executed="Debug_ShowAnalyzerOutputCmd_Executed"/>
|
|
|
|
<CommandBinding Command="{StaticResource Debug_ShowUndoRedoHistoryCmd}"
|
|
|
|
CanExecute="IsProjectOpen" Executed="Debug_ShowUndoRedoHistoryCmd_Executed"/>
|
2019-07-15 22:32:27 +00:00
|
|
|
<CommandBinding Command="{StaticResource Debug_ToggleCommentRulersCmd}"
|
|
|
|
Executed="Debug_ToggleCommentRulersCmd_Executed"/>
|
|
|
|
<CommandBinding Command="{StaticResource Debug_ToggleKeepAliveHackCmd}"
|
|
|
|
Executed="Debug_ToggleKeepAliveHackCmd_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">
|
2019-06-23 00:38:07 +00:00
|
|
|
<MenuItem Command="{StaticResource NewProjectCmd}"/>
|
2019-06-21 23:27:58 +00:00
|
|
|
<MenuItem Command="{StaticResource OpenCmd}"/>
|
2019-04-29 23:34:09 +00:00
|
|
|
<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}"/>
|
2019-09-11 00:43:31 +00:00
|
|
|
<!--<MenuItem Command="Print"/>-->
|
|
|
|
<MenuItem Command="{StaticResource ExportCmd}"/>
|
2019-04-29 23:34:09 +00:00
|
|
|
<Separator/>
|
2019-06-22 21:41:09 +00:00
|
|
|
<MenuItem Name="recentProjectsMenu" Header="Recent Projects" SubmenuOpened="RecentProjectsMenu_SubmenuOpened">
|
2019-04-29 23:34:09 +00:00
|
|
|
<MenuItem Header="(none)"/>
|
|
|
|
</MenuItem>
|
|
|
|
<Separator/>
|
2019-06-22 20:20:31 +00:00
|
|
|
<MenuItem Command="{StaticResource ExitCmd}" InputGestureText="Alt+F4"/>
|
2019-04-29 23:34:09 +00:00
|
|
|
</MenuItem>
|
2019-07-08 00:17:48 +00:00
|
|
|
<MenuItem Header="_Edit" SubmenuOpened="EditMenu_SubmenuOpened">
|
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-07-07 21:28:35 +00:00
|
|
|
<MenuItem Command="Find"/>
|
|
|
|
<MenuItem Command="{StaticResource FindNextCmd}"/>
|
|
|
|
<MenuItem Command="{StaticResource GotoCmd}"/>
|
2019-04-29 23:34:09 +00:00
|
|
|
<Separator/>
|
2019-07-07 23:18:46 +00:00
|
|
|
<MenuItem Command="{StaticResource EditHeaderCommentCmd}"/>
|
2019-04-29 23:34:09 +00:00
|
|
|
<MenuItem Command="Properties" Header="Project Properties..."/>
|
2019-07-08 00:17:48 +00:00
|
|
|
<!-- IsChecked is set whenever the menu is opened -->
|
|
|
|
<MenuItem Name="toggleDataScanMenuItem"
|
|
|
|
Command="{StaticResource ToggleDataScanCmd}" IsCheckable="True"/>
|
2019-04-29 23:34:09 +00:00
|
|
|
<Separator/>
|
2019-07-06 22:51:57 +00:00
|
|
|
<MenuItem Command="{StaticResource EditAppSettingsCmd}"/>
|
2019-04-29 23:34:09 +00:00
|
|
|
</MenuItem>
|
2019-06-22 21:41:09 +00:00
|
|
|
<MenuItem Name="actionsMenu" Header="_Actions">
|
2019-06-16 23:34:47 +00:00
|
|
|
<MenuItem Command="{StaticResource EditAddressCmd}"/>
|
2019-06-22 20:20:31 +00:00
|
|
|
<MenuItem Command="{StaticResource EditStatusFlagsCmd}"/>
|
2019-07-07 00:24:42 +00:00
|
|
|
<MenuItem Command="{StaticResource EditLabelCmd}"/>
|
2019-07-08 22:40:30 +00:00
|
|
|
<MenuItem Command="{StaticResource EditOperandCmd}"/>
|
2019-07-11 22:55:43 +00:00
|
|
|
<MenuItem Command="{StaticResource EditCommentCmd}" InputGestureText="Ctrl+;"/>
|
2019-07-07 23:18:46 +00:00
|
|
|
<MenuItem Command="{StaticResource EditLongCommentCmd}"/>
|
2019-07-14 00:04:47 +00:00
|
|
|
<MenuItem Command="{StaticResource EditNoteCmd}"/>
|
2019-07-14 20:18:10 +00:00
|
|
|
<MenuItem Command="{StaticResource EditProjectSymbolCmd}"/>
|
2019-08-25 21:14:44 +00:00
|
|
|
<MenuItem Command="{StaticResource EditLocalVariableTableCmd}"/>
|
2019-04-29 23:34:09 +00:00
|
|
|
<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/>
|
2019-09-15 20:37:38 +00:00
|
|
|
<MenuItem Command="{StaticResource FormatAddressTableCmd}"/>
|
2019-07-14 20:50:15 +00:00
|
|
|
<MenuItem Command="{StaticResource ToggleSingleByteFormatCmd}"/>
|
|
|
|
<MenuItem Command="{StaticResource FormatAsWordCmd}"/>
|
|
|
|
<MenuItem Command="{StaticResource DeleteMlcCmd}"/>
|
2019-04-29 23:34:09 +00:00
|
|
|
<Separator/>
|
2019-07-13 00:04:14 +00:00
|
|
|
<MenuItem Command="{StaticResource ShowHexDumpCmd}"/>
|
2019-04-29 23:34:09 +00:00
|
|
|
</MenuItem>
|
2019-07-15 01:12:03 +00:00
|
|
|
<MenuItem Header="_Tools" SubmenuOpened="ToolsMenu_SubmenuOpened">
|
2019-07-13 00:46:37 +00:00
|
|
|
<MenuItem Command="{StaticResource ShowFileHexDumpCmd}"/>
|
2019-07-15 01:12:03 +00:00
|
|
|
<MenuItem Name="toggleAsciiChartMenuItem"
|
|
|
|
Command="{StaticResource ToggleAsciiChartCmd}" IsCheckable="True"/>
|
2019-04-29 23:34:09 +00:00
|
|
|
</MenuItem>
|
|
|
|
<MenuItem Header="_Help">
|
|
|
|
<MenuItem Command="Help"/>
|
2019-07-06 22:51:57 +00:00
|
|
|
<MenuItem Command="{StaticResource AboutCmd}"/>
|
2019-04-29 23:34:09 +00:00
|
|
|
</MenuItem>
|
2019-07-15 22:32:27 +00:00
|
|
|
<MenuItem Header="_DEBUG" Name="DebugMenu" SubmenuOpened="DebugMenu_SubmenuOpened"
|
|
|
|
Visibility="{Binding ShowDebugMenu, Converter={StaticResource BoolToVis}}">
|
2019-04-29 23:34:09 +00:00
|
|
|
<MenuItem Command="Refresh" Header="Re-analyze"/>
|
2019-07-16 00:18:28 +00:00
|
|
|
<MenuItem Name ="debugUndoRedoHistoryMenuItem"
|
|
|
|
Command="{StaticResource Debug_ShowUndoRedoHistoryCmd}" IsCheckable="True"/>
|
|
|
|
<MenuItem Name="debugAnalyzerOutputMenuItem"
|
|
|
|
Command="{StaticResource Debug_ShowAnalyzerOutputCmd}" IsCheckable="True"/>
|
|
|
|
<MenuItem Name="debugAnalysisTimersMenuItem"
|
|
|
|
Command="{StaticResource Debug_ShowAnalysisTimersCmd}" IsCheckable="True"/>
|
2019-07-15 23:50:54 +00:00
|
|
|
<MenuItem Command="{StaticResource Debug_ExtensionScriptInfoCmd}"/>
|
2019-04-29 23:34:09 +00:00
|
|
|
<Separator/>
|
2019-07-15 22:32:27 +00:00
|
|
|
<MenuItem Name="debugCommentRulersMenuItem"
|
|
|
|
Command="{StaticResource Debug_ToggleCommentRulersCmd}" IsCheckable="True"/>
|
|
|
|
<MenuItem Name="debugKeepAliveHackMenuItem"
|
|
|
|
Command="{StaticResource Debug_ToggleKeepAliveHackCmd}" IsCheckable="True"/>
|
2019-04-29 23:34:09 +00:00
|
|
|
<Separator/>
|
2019-07-15 23:50:54 +00:00
|
|
|
<MenuItem Command="{StaticResource Debug_SourceGenerationTestsCmd}"/>
|
2019-04-29 23:34:09 +00:00
|
|
|
</MenuItem>
|
|
|
|
</Menu>
|
|
|
|
|
2019-06-11 21:36:38 +00:00
|
|
|
<ToolBarTray DockPanel.Dock="Top">
|
|
|
|
<ToolBar RenderOptions.BitmapScalingMode="NearestNeighbor">
|
2019-07-11 18:36:07 +00:00
|
|
|
<Button Command="{StaticResource NavigateBackwardCmd}"
|
|
|
|
ToolTip="Navigate backward (Alt+Left, Ctrl+Minus, or back button on mouse)">
|
2019-06-11 21:36:38 +00:00
|
|
|
<ContentControl Template="{StaticResource icon_StepBackwards}"/>
|
|
|
|
</Button>
|
2019-07-11 18:36:07 +00:00
|
|
|
<Button Command="{StaticResource NavigateForwardCmd}"
|
|
|
|
ToolTip="Navigate forward (Alt+Right or Ctrl+Shift+Minus)">
|
2019-06-11 21:36:38 +00:00
|
|
|
<ContentControl Template="{StaticResource icon_StepForward}"/>
|
|
|
|
</Button>
|
|
|
|
<Separator/>
|
2019-07-11 18:36:07 +00:00
|
|
|
<Button Command="{StaticResource NewProjectCmd}" ToolTip="Create new project">
|
2019-06-11 21:36:38 +00:00
|
|
|
<ContentControl Template="{StaticResource icon_NewFile}"/>
|
|
|
|
</Button>
|
2019-07-11 18:36:07 +00:00
|
|
|
<Button Command="{StaticResource OpenCmd}" ToolTip="Open project">
|
2019-06-11 21:36:38 +00:00
|
|
|
<ContentControl Template="{StaticResource icon_OpenFile}"/>
|
|
|
|
</Button>
|
2019-07-11 18:36:07 +00:00
|
|
|
<Button Command="Save" ToolTip="Save project (Ctrl+S)">
|
2019-06-11 21:36:38 +00:00
|
|
|
<ContentControl Template="{StaticResource icon_SaveFile}"/>
|
|
|
|
</Button>
|
|
|
|
<Separator/>
|
2019-07-11 18:36:07 +00:00
|
|
|
<Button Command="Copy" ToolTip="Copy to clipboard (Ctrl+C)">
|
2019-06-11 21:36:38 +00:00
|
|
|
<ContentControl Template="{StaticResource icon_CopyToClipboard}"/>
|
|
|
|
</Button>
|
|
|
|
<Separator/>
|
2019-07-11 18:36:07 +00:00
|
|
|
<Button Command="Help" ToolTip="Help - open manual in browser (F1)">
|
2019-06-11 21:36:38 +00:00
|
|
|
<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-07-19 18:41:18 +00:00
|
|
|
<TextBlock Text="{Binding StatusBarText, FallbackValue=Ready}"/>
|
2019-04-29 23:34:09 +00:00
|
|
|
</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>
|
2019-06-20 22:10:35 +00:00
|
|
|
<ColumnDefinition Width="256" MinWidth="100"/>
|
2019-04-29 23:34:09 +00:00
|
|
|
<ColumnDefinition Width="Auto"/>
|
|
|
|
<ColumnDefinition Width="*" MinWidth="150"/>
|
|
|
|
<ColumnDefinition Width="Auto"/>
|
2019-06-20 22:10:35 +00:00
|
|
|
<ColumnDefinition Width="256" MinWidth="100"/>
|
2019-04-29 23:34:09 +00:00
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
|
|
|
|
|
2019-06-19 23:31:56 +00:00
|
|
|
<GridSplitter Name="leftSplitter" Width="4" Grid.Column="1" HorizontalAlignment="Left"/>
|
|
|
|
<GridSplitter Name="rightSplitter" Width="4" Grid.Column="3" HorizontalAlignment="Center"/>
|
2019-04-29 23:34:09 +00:00
|
|
|
|
2019-05-28 01:46:09 +00:00
|
|
|
<Grid Name="leftPanel" Grid.Column="0">
|
2019-04-29 23:34:09 +00:00
|
|
|
<Grid.RowDefinitions>
|
2019-06-19 23:31:56 +00:00
|
|
|
<RowDefinition Height="2*" MinHeight="100"/>
|
2019-04-29 23:34:09 +00:00
|
|
|
<RowDefinition Height="Auto"/>
|
|
|
|
<RowDefinition Height="*" MinHeight="100"/>
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
|
|
|
|
<GroupBox Grid.Row="0" Header="References">
|
2019-06-15 23:00:31 +00:00
|
|
|
<DataGrid Name="referencesGrid" 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"
|
2019-06-15 23:00:31 +00:00
|
|
|
SelectionMode="Single"
|
|
|
|
MouseDoubleClick="ReferencesList_MouseDoubleClick">
|
2019-04-29 23:34:09 +00:00
|
|
|
<DataGrid.Columns>
|
2019-06-20 22:10:35 +00:00
|
|
|
<DataGridTextColumn Header="Offset" Width="53" Binding="{Binding Offset}"/>
|
|
|
|
<DataGridTextColumn Header="Addr" Width="53" Binding="{Binding Addr}"/>
|
|
|
|
<DataGridTextColumn Header="Type" Width="119" Binding="{Binding Type}"/>
|
2019-04-29 23:34:09 +00:00
|
|
|
</DataGrid.Columns>
|
|
|
|
</DataGrid>
|
|
|
|
</GroupBox>
|
|
|
|
|
|
|
|
<GroupBox Grid.Row="2" Header="Notes">
|
2019-06-15 23:00:31 +00:00
|
|
|
<DataGrid Name="notesGrid" 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"
|
2019-06-15 23:00:31 +00:00
|
|
|
SelectionMode="Single"
|
|
|
|
MouseDoubleClick="NotesList_MouseDoubleClick">
|
2019-04-29 23:34:09 +00:00
|
|
|
<DataGrid.Columns>
|
2019-06-20 22:10:35 +00:00
|
|
|
<DataGridTextColumn Header="Offset" Width="53" Binding="{Binding Offset}"/>
|
|
|
|
<DataGridTextColumn Header="Note" Width="400" Binding="{Binding Note}">
|
2019-06-12 22:54:22 +00:00
|
|
|
<DataGridTextColumn.ElementStyle>
|
|
|
|
<Style TargetType="{x:Type TextBlock}">
|
2019-06-15 23:00:31 +00:00
|
|
|
<!-- The default highlight uses dark blue background with
|
|
|
|
white text, but our highlight colors are meant to work
|
|
|
|
with black text. So override Foreground as well. -->
|
2019-06-12 22:54:22 +00:00
|
|
|
<Setter Property="Background" Value="{Binding BackBrush}"/>
|
2019-06-15 23:00:31 +00:00
|
|
|
<Setter Property="Foreground" Value="Black"/>
|
2019-06-12 22:54:22 +00:00
|
|
|
</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-07-20 20:28:10 +00:00
|
|
|
<Image Source="/SourceGen;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">
|
2019-06-23 00:38:07 +00:00
|
|
|
<Button Content="Start new project" Width="240" Height="50" Margin="10,30,10,10"
|
|
|
|
Command="{StaticResource NewProjectCmd}"/>
|
2019-06-22 21:41:09 +00:00
|
|
|
<Button Content="Open existing project" Width="240" Height="50" Margin="10"
|
|
|
|
Command="{StaticResource OpenCmd}"/>
|
|
|
|
<Button Name="recentProjectButton1" Width="240" Height="50" Margin="10"
|
|
|
|
Command="{DynamicResource RecentProjectCmd}" CommandParameter="0">
|
|
|
|
<Button.Content>
|
|
|
|
<StackPanel>
|
|
|
|
<TextBlock HorizontalAlignment="Center">Recent project #1</TextBlock>
|
|
|
|
<TextBlock Name="recentProjectName1" HorizontalAlignment="Center">???</TextBlock>
|
|
|
|
</StackPanel>
|
|
|
|
</Button.Content>
|
|
|
|
</Button>
|
|
|
|
<Button Name="recentProjectButton2" Width="240" Height="50" Margin="10"
|
|
|
|
Command="{DynamicResource RecentProjectCmd}" CommandParameter="1">
|
|
|
|
<Button.Content>
|
|
|
|
<StackPanel>
|
|
|
|
<TextBlock HorizontalAlignment="Center">Recent project #2</TextBlock>
|
|
|
|
<TextBlock Name="recentProjectName2" HorizontalAlignment="Center">???</TextBlock>
|
|
|
|
</StackPanel>
|
|
|
|
</Button.Content>
|
|
|
|
</Button>
|
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-06-27 00:11:58 +00:00
|
|
|
<ListView.Resources>
|
|
|
|
<Style TargetType="TextBlock">
|
|
|
|
<Setter Property="TextTrimming" Value="CharacterEllipsis"/>
|
|
|
|
<!-- <Setter Property="ToolTip" Value="{Binding RelativeSource={RelativeSource Self}, Path=Text }" /> -->
|
|
|
|
</Style>
|
|
|
|
</ListView.Resources>
|
2019-05-09 23:13:20 +00:00
|
|
|
<ListView.View>
|
|
|
|
<GridView AllowsColumnReorder="False">
|
2019-07-07 23:18:46 +00:00
|
|
|
<GridViewColumn Header="Offset" Width="60"
|
2019-06-20 22:10:35 +00:00
|
|
|
DisplayMemberBinding="{Binding Offset}"/>
|
2019-07-07 23:18:46 +00:00
|
|
|
<GridViewColumn Header="Addr" Width="60"
|
2019-06-20 22:10:35 +00:00
|
|
|
CellTemplate="{StaticResource addrHighlightTemplate}"/>
|
2019-07-07 23:18:46 +00:00
|
|
|
<GridViewColumn Header="Bytes" Width="93"
|
2019-06-20 22:10:35 +00:00
|
|
|
DisplayMemberBinding="{Binding Bytes}"/>
|
2019-07-07 23:18:46 +00:00
|
|
|
<GridViewColumn Header="Flags" Width="80"
|
2019-09-02 22:18:55 +00:00
|
|
|
CellTemplate="{StaticResource flagsHighlightTemplate}"/>
|
2019-07-07 23:18:46 +00:00
|
|
|
<GridViewColumn Header="Attr" Width="54"
|
2019-06-20 22:10:35 +00:00
|
|
|
DisplayMemberBinding="{Binding Attr}"/>
|
2019-07-07 23:18:46 +00:00
|
|
|
<GridViewColumn Header="Label" Width="73"
|
2019-06-20 22:10:35 +00:00
|
|
|
CellTemplate="{StaticResource labelHighlightTemplate}"/>
|
2019-07-07 23:18:46 +00:00
|
|
|
<GridViewColumn Header="Opcode" Width="60"
|
2019-06-20 22:10:35 +00:00
|
|
|
DisplayMemberBinding="{Binding Opcode}"/>
|
2019-07-07 23:18:46 +00:00
|
|
|
<GridViewColumn Header="Operand" Width="100"
|
2019-06-20 22:10:35 +00:00
|
|
|
DisplayMemberBinding="{Binding Operand}"/>
|
2019-07-07 23:18:46 +00:00
|
|
|
<GridViewColumn Header="Comment" Width="344"
|
2019-06-20 22:10:35 +00:00
|
|
|
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>
|
2019-06-19 23:31:56 +00:00
|
|
|
<RowDefinition Height="2*" MinHeight="100"/>
|
2019-04-29 23:34:09 +00:00
|
|
|
<RowDefinition Height="Auto"/>
|
2019-06-19 23:31:56 +00:00
|
|
|
<RowDefinition Height="*" MinHeight="100"/>
|
2019-04-29 23:34:09 +00:00
|
|
|
</Grid.RowDefinitions>
|
|
|
|
|
|
|
|
<GroupBox Grid.Row="0" Header="Symbols">
|
|
|
|
<Grid>
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
<RowDefinition Height="Auto"/>
|
|
|
|
<RowDefinition Height="*"/>
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
|
|
|
|
<WrapPanel Grid.Row="0">
|
2019-07-16 21:52:08 +00:00
|
|
|
<ToggleButton Content="User" Width="40" Margin="2,2"
|
|
|
|
IsChecked="{Binding SymFilterUserLabels}"/>
|
|
|
|
<ToggleButton Content="Proj" Width="40" Margin="2,2"
|
|
|
|
IsChecked="{Binding SymFilterProjectSymbols}"/>
|
|
|
|
<ToggleButton Content="Plat" Width="40" Margin="2,2"
|
|
|
|
IsChecked="{Binding SymFilterPlatformSymbols}"/>
|
|
|
|
<ToggleButton Content="Auto" Width="40" Margin="2,2"
|
|
|
|
IsChecked="{Binding SymFilterAutoLabels}"/>
|
|
|
|
<ToggleButton Content="Addr" Width="40" Margin="2,2"
|
|
|
|
IsChecked="{Binding SymFilterAddresses}"/>
|
|
|
|
<ToggleButton Content="Cnst" Width="40" Margin="2,2"
|
|
|
|
IsChecked="{Binding SymFilterConstants}"/>
|
2019-04-29 23:34:09 +00:00
|
|
|
</WrapPanel>
|
|
|
|
|
2019-06-15 23:00:31 +00:00
|
|
|
<DataGrid Grid.Row="1" Name="symbolsGrid"
|
2019-06-12 21:17:24 +00:00
|
|
|
IsReadOnly="True"
|
|
|
|
ItemsSource="{Binding Source={StaticResource SymbolTableSource}}"
|
|
|
|
FontFamily="{StaticResource GeneralMonoFont}"
|
|
|
|
SnapsToDevicePixels="True"
|
|
|
|
GridLinesVisibility="Vertical"
|
|
|
|
VerticalGridLinesBrush="#FF7F7F7F"
|
|
|
|
AutoGenerateColumns="False"
|
|
|
|
HeadersVisibility="Column"
|
|
|
|
CanUserReorderColumns="False"
|
|
|
|
SelectionMode="Single"
|
2019-06-15 23:00:31 +00:00
|
|
|
Sorting="SymbolsList_Sorting"
|
|
|
|
MouseDoubleClick="SymbolsList_MouseDoubleClick">
|
2019-06-12 21:17:24 +00:00
|
|
|
<DataGrid.Columns>
|
2019-06-20 22:10:35 +00:00
|
|
|
<DataGridTextColumn Header="Type" Width="36" Binding="{Binding Type}"/>
|
|
|
|
<DataGridTextColumn Header="Value" Width="66" Binding="{Binding Value}"/>
|
|
|
|
<DataGridTextColumn Header="Name" Width="120" Binding="{Binding Name}"/>
|
2019-06-12 21:17:24 +00:00
|
|
|
</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"
|
2019-06-19 23:31:56 +00:00
|
|
|
HorizontalAlignment="Stretch" VerticalAlignment="Center"/>
|
2019-04-29 23:34:09 +00:00
|
|
|
</Grid>
|
|
|
|
</Grid>
|
|
|
|
</DockPanel>
|
|
|
|
</Window>
|