OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 #import('dart:html'); | 5 #import('dart:html'); |
| 6 #import('dart:math', prefix: 'Math'); |
6 #source('tape.dart'); | 7 #source('tape.dart'); |
7 #source('settings.dart'); | 8 #source('settings.dart'); |
8 #source('calcui.dart'); | 9 #source('calcui.dart'); |
9 | 10 |
10 var padUI; // Calculator Pad UI. | 11 var padUI; // Calculator Pad UI. |
11 | 12 |
12 TapeUI tapeUI; // Tape output area UI. | 13 TapeUI tapeUI; // Tape output area UI. |
13 Tape tape; // Controller. | 14 Tape tape; // Controller. |
14 | 15 |
15 Settings mySettings; | 16 Settings mySettings; |
(...skipping 358 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
374 renderPad(element); | 375 renderPad(element); |
375 | 376 |
376 // Render the UI. | 377 // Render the UI. |
377 document.body.elements.add(element); | 378 document.body.elements.add(element); |
378 | 379 |
379 currentRegister = ""; | 380 currentRegister = ""; |
380 total = 0.0; | 381 total = 0.0; |
381 | 382 |
382 setupEvents(); | 383 setupEvents(); |
383 } | 384 } |
OLD | NEW |