Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(161)

Side by Side Diff: samples/total/client/TotalLib.dart

Issue 10635015: Delete proxy and total samples, which have bit-rotted. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « samples/total/client/Total.js ('k') | samples/total/client/UndoStack.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
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.
4
5 #library("TotalLib");
6 #import("dart:html");
7
8 #source("Cell.dart");
9 #source("CellContents.dart");
10 #source("CellLocation.dart");
11 #source("CellRange.dart");
12 #source("Chart.dart");
13 #source("ClientChart.dart");
14 #source("ColorPicker.dart");
15 #source("Command.dart");
16 #source("ContextMenu.dart");
17 #source("ContextMenuBuilder.dart");
18 #source("CopyPasteManager.dart");
19 #source("CssStyles.dart");
20 #source("CSVReader.dart");
21 #source("DateTimeUtils.dart");
22 #source("UndoableAction.dart");
23 #source("DomUtils.dart");
24 #source("Exceptions.dart");
25 #source("Formats.dart");
26 #source("Formula.dart");
27 #source("Functions.dart");
28 #source("GeneralCommand.dart");
29 #source("HtmlTable.dart");
30 #source("HtmlUtils.dart");
31 #source("IdGenerator.dart");
32 #source("IndexedValue.dart");
33 #source("InnerMenuView.dart");
34 #source("Parser.dart");
35 #source("Picker.dart");
36 #source("PopupHandler.dart");
37 #source("Reader.dart");
38 #source("RowCol.dart");
39 #source("RowColStyle.dart");
40 #source("Scanner.dart");
41 #source("SelectionManager.dart");
42 #source("ServerChart.dart");
43 #source("Spreadsheet.dart");
44 #source("SpreadsheetLayout.dart");
45 #source("SpreadsheetListener.dart");
46 #source("SpreadsheetPresenter.dart");
47 #source("StringUtils.dart");
48 #source("Style.dart");
49 #source("SYLKReader.dart");
50 #source("UndoStack.dart");
51 #source("Value.dart");
52 #source("ValuePicker.dart");
53 #source("ZoomTracker.dart");
54
55 class Total {
56 static final int DEFAULT_VISIBLE_COLUMNS = 10;
57 static final int DEFAULT_VISIBLE_ROWS = 25;
58
59 Spreadsheet _spreadsheet;
60 SpreadsheetPresenter _presenter;
61
62 Total() {
63 Element recalcButton = document.query("#recalcButton");
64 recalcButton.innerHTML = "Recalculate";
65 recalcButton.on.click.add((Event e) {
66 _presenter.recalculateAll();
67 });
68 }
69
70 void run() {
71 _spreadsheet = new Spreadsheet();
72 SYLKReader reader = new SYLKReader();
73 reader.request("mortgage", (String data) {
74 reader.loadFromString(_spreadsheet, data);
75 _presenter = new SpreadsheetPresenter(_spreadsheet, window,
76 0, 0, DEFAULT_VISIBLE_ROWS, DEFAULT_VISIBLE_COLUMNS);
77 _spreadsheet.setListener(_presenter);
78 _presenter.recalculateViewport();
79 });
80 }
81 }
OLDNEW
« no previous file with comments | « samples/total/client/Total.js ('k') | samples/total/client/UndoStack.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698