diff options
author | t-espave <unknown> | 2011-07-27 14:00:25 -0700 |
---|---|---|
committer | t-espave <unknown> | 2011-07-27 14:00:25 -0700 |
commit | bd6fdcc21ae7e26cfc25c6d2c71a2968421e4b36 (patch) | |
tree | f626c18f530ab6bde3a125d72aa2d43829d9094b /BCT/BytecodeTranslator/Program.cs | |
parent | ff37a1041f2a8f5d22771ebe1a4e4a33d595c27a (diff) |
- handler methods with simulated calls
- easy checks on backstack navigation that may make graph innecessary
Diffstat (limited to 'BCT/BytecodeTranslator/Program.cs')
-rw-r--r-- | BCT/BytecodeTranslator/Program.cs | 34 |
1 files changed, 28 insertions, 6 deletions
diff --git a/BCT/BytecodeTranslator/Program.cs b/BCT/BytecodeTranslator/Program.cs index 14bf89e7..b62fa098 100644 --- a/BCT/BytecodeTranslator/Program.cs +++ b/BCT/BytecodeTranslator/Program.cs @@ -225,12 +225,34 @@ namespace BytecodeTranslator { CreateDispatchMethod(sink, pair.Item1, pair.Item2);
}
- if (phonePlugin != null) {
- string outputConfigFile = Path.ChangeExtension(phoneControlsConfigFile, "bplout");
- StreamWriter outputStream = new StreamWriter(outputConfigFile);
- phonePlugin.DumpControlStructure(outputStream);
- outputStream.Close();
- PhoneCodeWrapperWriter.createCodeWrapper(sink);
+ if (PhoneCodeHelper.PhonePlugin != null) {
+ if (PhoneCodeHelper.PhoneFeedbackToggled) {
+ // FEEDBACK TODO create simple callers to callable methods, havoc'ing parameters
+ PhoneCodeHelper.CreateFeedbackCallingMethods(sink);
+ }
+
+ if (PhoneCodeHelper.PhoneNavigationToggled) {
+ string outputConfigFile = Path.ChangeExtension(phoneControlsConfigFile, "bplout");
+ StreamWriter outputStream = new StreamWriter(outputConfigFile);
+ phonePlugin.DumpControlStructure(outputStream);
+ outputStream.Close();
+ PhoneCodeWrapperWriter.createCodeWrapper(sink);
+
+ // NAVIGATION TODO for now I console this out
+ if (!PhoneCodeHelper.OnBackKeyPressOverriden) {
+ Console.Out.WriteLine("No back navigation issues, OnBackKeyPress is not overriden");
+ } else if (!PhoneCodeHelper.BackKeyPressHandlerCancels && !PhoneCodeHelper.BackKeyPressNavigates) {
+ Console.Out.WriteLine("No back navigation issues, BackKeyPress overrides do not alter navigation");
+ } else {
+ if (PhoneCodeHelper.BackKeyPressNavigates) {
+ Console.Out.WriteLine("Back navigation ISSUE: back key press may navigate to pages not in backstack!");
+ }
+
+ if (PhoneCodeHelper.BackKeyPressHandlerCancels) {
+ Console.Out.WriteLine("Back navigation ISSUE: back key press default behaviour may be cancelled!");
+ }
+ }
+ }
}
Microsoft.Boogie.TokenTextWriter writer = new Microsoft.Boogie.TokenTextWriter(primaryModule.Name + ".bpl");
|