From 8d15db4c3f9525e9cae713fdd00502db20b40f92 Mon Sep 17 00:00:00 2001 From: Sergey Solovyev Date: Fri, 28 Jun 2013 00:02:30 +0400 Subject: [PATCH] number formatting is working now --- android-app-core/res/values/styles.xml | 2 +- .../AndroidCalculatorDisplayView.java | 5 +- .../AndroidCalculatorEditorView.java | 70 +---------------- .../calculator/CalculatorPreferences.java | 1 + .../ParcelableCalculatorEditorViewState.java | 6 ++ .../calculator/view/EditorTextProcessor.java | 75 +++++++++++++++++++ .../calculator/view/TextHighlighter.java | 71 +++--------------- .../onscreen/CalculatorOnscreenService.java | 63 ++++++---------- .../onscreen/CalculatorOnscreenView.java | 12 +-- .../AbstractCalculatorWidgetProvider.java | 4 +- .../android/calculator/AndroidCalculator.java | 8 +- .../calculator/CalculatorApplication.java | 13 ++-- .../calculator/CalculatorTestUtils.java | 4 +- .../android/calculator/CalculatorEditor.java | 7 +- .../CalculatorEditorChangeEventData.java | 33 +++++++- .../CalculatorEditorChangeEventDataImpl.java | 57 -------------- .../calculator/CalculatorEditorImpl.java | 44 ++++++++--- .../calculator/CalculatorEditorViewState.java | 3 + .../CalculatorEditorViewStateImpl.java | 10 ++- .../android/calculator/CalculatorLocator.java | 10 ++- .../solovyev/android/calculator/Locator.java | 8 +- .../text/TextProcessorEditorResult.java | 58 ++++++++++++++ .../calculator/AbstractCalculatorTest.java | 2 +- .../calculator/CalculatorEditorImplTest.java | 6 +- .../calculator/CalculatorTestUtils.java | 2 +- 25 files changed, 301 insertions(+), 273 deletions(-) create mode 100644 android-app-core/src/main/java/org/solovyev/android/calculator/view/EditorTextProcessor.java delete mode 100644 core/src/main/java/org/solovyev/android/calculator/CalculatorEditorChangeEventDataImpl.java create mode 100644 core/src/main/java/org/solovyev/android/calculator/text/TextProcessorEditorResult.java diff --git a/android-app-core/res/values/styles.xml b/android-app-core/res/values/styles.xml index cc5ab903..265df1c0 100644 --- a/android-app-core/res/values/styles.xml +++ b/android-app-core/res/values/styles.xml @@ -62,7 +62,7 @@