From 097e255e9d87ebbb2d1f93aa564d74aeba39a5d4 Mon Sep 17 00:00:00 2001 From: Ian C Date: Tue, 15 May 2012 23:01:02 +0000 Subject: Development check-in. --- wpspec/wpspec/DisplayKeyboardPage.xaml | 23 +++++++ wpspec/wpspec/DisplayKeyboardPage.xaml.cs | 23 +++++++ wpspec/wpspec/GamePage.xaml.cs | 10 +++ wpspec/wpspec/MainPage.xaml | 4 +- wpspec/wpspec/MainPage.xaml.cs | 4 +- wpspec/wpspec/Resources/SpectrumKeyboard.png | Bin 0 -> 652083 bytes wpspec/wpspec/Resources/Strings.Designer.cs | 68 ++++++++++++++++----- wpspec/wpspec/Resources/Strings.resx | 24 ++++++-- wpspec/wpspec/SoundManager.cs | 57 +++++++++++++++++ wpspec/wpspec/Spectrum/Emulation.cs | 31 +++++++++- wpspec/wpspec/Spectrum/SpectrumKeySymbol.cs | 7 ++- wpspec/wpspec/UtilsPage.xaml | 88 +++++++++++++++++++++++++++ wpspec/wpspec/UtilsPage.xaml.cs | 54 ++++++++++++++++ wpspec/wpspec/wpspec.csproj | 16 +++++ 14 files changed, 380 insertions(+), 29 deletions(-) create mode 100644 wpspec/wpspec/DisplayKeyboardPage.xaml create mode 100644 wpspec/wpspec/DisplayKeyboardPage.xaml.cs create mode 100644 wpspec/wpspec/Resources/SpectrumKeyboard.png create mode 100644 wpspec/wpspec/SoundManager.cs create mode 100644 wpspec/wpspec/UtilsPage.xaml create mode 100644 wpspec/wpspec/UtilsPage.xaml.cs diff --git a/wpspec/wpspec/DisplayKeyboardPage.xaml b/wpspec/wpspec/DisplayKeyboardPage.xaml new file mode 100644 index 0000000..670d71e --- /dev/null +++ b/wpspec/wpspec/DisplayKeyboardPage.xaml @@ -0,0 +1,23 @@ + + + + + + + + + + diff --git a/wpspec/wpspec/DisplayKeyboardPage.xaml.cs b/wpspec/wpspec/DisplayKeyboardPage.xaml.cs new file mode 100644 index 0000000..0b793c8 --- /dev/null +++ b/wpspec/wpspec/DisplayKeyboardPage.xaml.cs @@ -0,0 +1,23 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Net; +using System.Windows; +using System.Windows.Controls; +using System.Windows.Documents; +using System.Windows.Input; +using System.Windows.Media; +using System.Windows.Media.Animation; +using System.Windows.Shapes; +using Microsoft.Phone.Controls; + +namespace wpspec +{ + public partial class DisplayKeyboardPage : PhoneApplicationPage + { + public DisplayKeyboardPage() + { + InitializeComponent(); + } + } +} \ No newline at end of file diff --git a/wpspec/wpspec/GamePage.xaml.cs b/wpspec/wpspec/GamePage.xaml.cs index 4c95e4f..fef97d2 100644 --- a/wpspec/wpspec/GamePage.xaml.cs +++ b/wpspec/wpspec/GamePage.xaml.cs @@ -116,6 +116,10 @@ namespace wpspec keyboard.KeyEvent += HandleKeyboardEvent; keyboard.TouchEvent += HandleTouchEvent; + // Initialise the sound manager + // + SoundManager.StartSoundManager(); + base.OnNavigatedTo(e); } @@ -132,10 +136,16 @@ namespace wpspec screen.Dispose(); screen = null; + // Remove the keyboard + // keyboard.KeyEvent -= HandleKeyboardEvent; keyboard.TouchEvent -= HandleTouchEvent; keyboard = null; + // Stop the sound manager + // + SoundManager.StopSoundManager(); + base.OnNavigatedFrom(e); } diff --git a/wpspec/wpspec/MainPage.xaml b/wpspec/wpspec/MainPage.xaml index 655a1d8..6a6b8c8 100644 --- a/wpspec/wpspec/MainPage.xaml +++ b/wpspec/wpspec/MainPage.xaml @@ -99,10 +99,10 @@ Click="SettingsClick" /> + + + + + + + + + + + + + diff --git a/wpspec/wpspec/UtilsPage.xaml.cs b/wpspec/wpspec/UtilsPage.xaml.cs new file mode 100644 index 0000000..6676bb8 --- /dev/null +++ b/wpspec/wpspec/UtilsPage.xaml.cs @@ -0,0 +1,54 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Net; +using System.Windows; +using System.Windows.Controls; +using System.Windows.Documents; +using System.Windows.Input; +using System.Windows.Media; +using System.Windows.Media.Animation; +using System.Windows.Shapes; +using Microsoft.Phone.Controls; + +namespace wpspec +{ + public partial class UtilsPage : PhoneApplicationPage + { + public UtilsPage() + { + InitializeComponent(); + DataContext = this; + } + + private void DisassemblerClick(object sender, RoutedEventArgs e) + { + NavigationService.Navigate(new Uri("/DisassemblerPage.xaml", UriKind.Relative)); + } + + private void DisplayTapeClick(object sender, RoutedEventArgs e) + { + NavigationService.Navigate(new Uri("/DisplayTapePage.xaml", UriKind.Relative)); + } + + private void ManageSavedStatesClick(object sender, RoutedEventArgs e) + { + NavigationService.Navigate(new Uri("/ManageSavedStatesPage.xaml", UriKind.Relative)); + } + + private void PokeMemoryClick(object sender, RoutedEventArgs e) + { + NavigationService.Navigate(new Uri("/PokeMemoryPage.xaml", UriKind.Relative)); + } + + private void DisplayKeyboardClick(object sender, RoutedEventArgs e) + { + NavigationService.Navigate(new Uri("/DisplayKeyboardPage.xaml", UriKind.Relative)); + } + + public bool HasTape + { + get {return Shared.Spectrum.Tape != null;} + } + } +} \ No newline at end of file diff --git a/wpspec/wpspec/wpspec.csproj b/wpspec/wpspec/wpspec.csproj index 8a4fd29..b1706b5 100644 --- a/wpspec/wpspec/wpspec.csproj +++ b/wpspec/wpspec/wpspec.csproj @@ -79,6 +79,9 @@ DisassemblerPage.xaml + + DisplayKeyboardPage.xaml + MainPage.xaml @@ -105,9 +108,13 @@ SettingsPage.xaml + + + UtilsPage.xaml + @@ -126,6 +133,10 @@ Designer MSBuild:Compile + + Designer + MSBuild:Compile + Designer MSBuild:Compile @@ -150,6 +161,10 @@ Designer MSBuild:Compile + + Designer + MSBuild:Compile + @@ -168,6 +183,7 @@ PreserveNewest + -- cgit v1.2.3