/[Apache-SVN]
ViewVC logotype

Revision 1703265


Jump to revision: Previous Next
Author: rwhitcomb
Date: Tue Sep 15 17:42:25 2015 UTC (8 years, 7 months ago)
Changed paths: 7
Log Message:
PIVOT-972:  Add a small tutorial application: a simple calculator app, to demonstrate
keyboard mappings and action mappings.

This is the first cut of the app, which works, except for some issues:
* The "Settings" button does nothing.
* There are issues with the result overflowing the display sometimes.
* Arithmetic errors are not trapped and handled gracefully.
* No shortcut key for the "+/-" button.
* Would like to "push" the buttons when the corresponding keys are pressed.
* No help is available.
* There may be a problem with "Clear" when an operator is pending.
* There is no check on the input size, which can easily overflow the display area.
* Backspace after an operator is chosen may not work correctly.
* The native window should be sized nicely to just fit the form.
* Needs Javadoc in the code.

Add another "famfamfam" icon for use here, and update the NOTICE file.

Add several Keyboard.KeyCode values that are used here for available virtual keys.

This is a merge of revision 1687874 from trunk to branches/2.0.x with one change
so that Calculator.java will compile with Java 6.


Changed paths

Path Details
Directorypivot/branches/2.0.x/ modified , props changed
Directorypivot/branches/2.0.x/LICENSE modified , text changed
Directorypivot/branches/2.0.x/tutorials/src/org/apache/pivot/tutorials/calculator/Calculator.java
(Copied from pivot/trunk/tutorials/src/org/apache/pivot/tutorials/calculator/Calculator.java, r1687874)
added , text changed
Directorypivot/branches/2.0.x/tutorials/src/org/apache/pivot/tutorials/calculator/asterisk_orange.png
(Copied from pivot/trunk/tutorials/src/org/apache/pivot/tutorials/calculator/asterisk_orange.png, r1687874)
added
Directorypivot/branches/2.0.x/tutorials/src/org/apache/pivot/tutorials/calculator/calculator.bxml
(Copied from pivot/trunk/tutorials/src/org/apache/pivot/tutorials/calculator/calculator.bxml, r1687874)
added
Directorypivot/branches/2.0.x/tutorials/src/org/apache/pivot/tutorials/calculator/calculator_styles.json
(Copied from pivot/trunk/tutorials/src/org/apache/pivot/tutorials/calculator/calculator_styles.json, r1687874)
added
Directorypivot/branches/2.0.x/wtk/src/org/apache/pivot/wtk/Keyboard.java modified , text changed

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26