From 3cc4307484abfb5ebc133087f229674534ddeec0 Mon Sep 17 00:00:00 2001 From: Andy McFadden Date: Fri, 5 Jul 2019 14:53:45 -0700 Subject: [PATCH] Implement second project properties tab ("Project Symbols") Implemented the symbol list, and the Edit Symbol dialog. --- SourceGenWPF/Res/Strings.xaml | 5 + SourceGenWPF/Res/Strings.xaml.cs | 10 + SourceGenWPF/SourceGenWPF.csproj | 13 +- SourceGenWPF/WpfGui/EditDefSymbol.xaml | 79 +++ SourceGenWPF/WpfGui/EditDefSymbol.xaml.cs | 164 +++++++ .../WpfGui/EditProjectProperties.xaml | 31 +- .../WpfGui/EditProjectProperties.xaml.cs | 462 +++++++++++++++++- ...tLoadIssue.xaml => ProjectLoadIssues.xaml} | 0 ...ssue.xaml.cs => ProjectLoadIssues.xaml.cs} | 0 9 files changed, 746 insertions(+), 18 deletions(-) create mode 100644 SourceGenWPF/WpfGui/EditDefSymbol.xaml create mode 100644 SourceGenWPF/WpfGui/EditDefSymbol.xaml.cs rename SourceGenWPF/WpfGui/{ProjectLoadIssue.xaml => ProjectLoadIssues.xaml} (100%) rename SourceGenWPF/WpfGui/{ProjectLoadIssue.xaml.cs => ProjectLoadIssues.xaml.cs} (100%) diff --git a/SourceGenWPF/Res/Strings.xaml b/SourceGenWPF/Res/Strings.xaml index 89f1fc7..16bcfc0 100644 --- a/SourceGenWPF/Res/Strings.xaml +++ b/SourceGenWPF/Res/Strings.xaml @@ -19,6 +19,8 @@ limitations under the License. xmlns:system="clr-namespace:System;assembly=mscorlib" xmlns:local="clr-namespace:SourceGenWPF.Res"> + Addr + Const [latest version] output DOES NOT match data file output matches data file @@ -97,4 +99,7 @@ limitations under the License. Save Project First {1} CPU @ {2} MHz Show + Symbol Import + Imported {0} global symbols. + No global+export symbols were found. \ No newline at end of file diff --git a/SourceGenWPF/Res/Strings.xaml.cs b/SourceGenWPF/Res/Strings.xaml.cs index 2f6400f..c8dacb5 100644 --- a/SourceGenWPF/Res/Strings.xaml.cs +++ b/SourceGenWPF/Res/Strings.xaml.cs @@ -23,6 +23,10 @@ namespace SourceGenWPF.Res { /// resources will cause the app to fail at launch. /// public static class Strings { + public static string ABBREV_ADDRESS = + (string)Application.Current.FindResource("str_AbbrevAddress"); + public static string ABBREV_CONSTANT = + (string)Application.Current.FindResource("str_AbbrevConstant"); public static string ASM_LATEST_VERSION = (string)Application.Current.FindResource("str_AsmLatestVersion"); public static string ASM_MATCH_FAILURE = @@ -179,5 +183,11 @@ namespace SourceGenWPF.Res { (string)Application.Current.FindResource("str_SetupSystemSummaryFmt"); public static string SHOW_COL = (string)Application.Current.FindResource("str_ShowCol"); + public static string SYMBOL_IMPORT_CAPTION = + (string)Application.Current.FindResource("str_SymbolImportCaption"); + public static string SYMBOL_IMPORT_GOOD_FMT = + (string)Application.Current.FindResource("str_SymbolImportGoodFmt"); + public static string SYMBOL_IMPORT_NONE = + (string)Application.Current.FindResource("str_SymbolImportNone"); } } diff --git a/SourceGenWPF/SourceGenWPF.csproj b/SourceGenWPF/SourceGenWPF.csproj index f06eb33..d77102e 100644 --- a/SourceGenWPF/SourceGenWPF.csproj +++ b/SourceGenWPF/SourceGenWPF.csproj @@ -76,6 +76,9 @@ EditAppSettings.xaml + + EditDefSymbol.xaml + EditProjectProperties.xaml @@ -105,8 +108,8 @@ NewProject.xaml - - ProjectLoadIssue.xaml + + ProjectLoadIssues.xaml @@ -177,6 +180,10 @@ Designer MSBuild:Compile + + Designer + MSBuild:Compile + Designer MSBuild:Compile @@ -221,7 +228,7 @@ Designer MSBuild:Compile - + Designer MSBuild:Compile diff --git a/SourceGenWPF/WpfGui/EditDefSymbol.xaml b/SourceGenWPF/WpfGui/EditDefSymbol.xaml new file mode 100644 index 0000000..ea2a4d3 --- /dev/null +++ b/SourceGenWPF/WpfGui/EditDefSymbol.xaml @@ -0,0 +1,79 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +