Skip to content

Commit

Permalink
added initial files for Cheque
Browse files Browse the repository at this point in the history
  • Loading branch information
thynctank committed Jun 16, 2009
1 parent b860864 commit f5f01d3
Show file tree
Hide file tree
Showing 11 changed files with 390 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.markdown
@@ -0,0 +1 @@
Cheque is a checkbook application for webOS
32 changes: 32 additions & 0 deletions app/assistants/dashboard-assistant.js
@@ -0,0 +1,32 @@
function DashboardAssistant() {
/* this is the creator function for your scene assistant object. It will be passed all the
additional parameters (after the scene name) that were passed to pushScene. The reference
to the scene controller (this.controller) has not be established yet, so any initialization
that needs the scene controller should be done in the setup function below. */
}

DashboardAssistant.prototype.setup = function() {
/* this function is for setup tasks that have to happen when the scene is first created */

/* use Mojo.View.render to render view templates and add them to the scene, if needed. */

/* setup widgets here */

/* add event handlers to listen to events from widgets */
};

DashboardAssistant.prototype.activate = function(event) {
/* put in event handlers here that should only be in effect when this scene is active. For
example, key handlers that are observing the document */
};


DashboardAssistant.prototype.deactivate = function(event) {
/* remove any event handlers you added in activate and do any other cleanup that should happen before
this scene is popped or another scene is pushed on top */
};

DashboardAssistant.prototype.cleanup = function(event) {
/* this function should do any cleanup needed before the scene is destroyed as
a result of being popped off the scene stack */
};
6 changes: 6 additions & 0 deletions app/assistants/stage-assistant.js
@@ -0,0 +1,6 @@
function StageAssistant() {
}

StageAssistant.prototype.setup = function() {
this.controller.pushScene("dashboard");
};
9 changes: 9 additions & 0 deletions app/views/dashboard/dashboard-scene.html
@@ -0,0 +1,9 @@
<h2>Accounts List</h2>
<table id="accountsList" border="0" cellspacing="5" cellpadding="5">
<tr><th>Account</th><th>Balance</th></tr>
<tr><td>AccName</td><td>Bal1</td></tr>
<tr><td>AccName</td><td>Bal1</td></tr>
<tr><td>AccName</td><td>Bal1</td></tr>
<tr><td>AccName</td><td>Bal1</td></tr>
<tr><td>AccName</td><td>Bal1</td></tr>
</table>
10 changes: 10 additions & 0 deletions appinfo.json
@@ -0,0 +1,10 @@
{
"id": "com.thynctank.cheque",
"version": "0.1",
"vendor": "Thynctank",
"vendorurl": "http://www.thynctank.com",
"type": "web",
"main": "index.html",
"title": "Cheque",
"icon": "icon.png"
}
Binary file added com.thynctank.cheque_0.1_all.ipk
Binary file not shown.
Binary file added icon.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 14 additions & 0 deletions index.html
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<title>Cheque</title>
<script src="/usr/palm/frameworks/mojo/mojo.js" type="text/javascript" x-mojo-version="1" />

<!-- application stylesheet should come in after the one loaded by the framework -->
<link href="stylesheets/.css" media="screen" rel="stylesheet" type="text/css" />
</head>
<body>
</body>
</html>
310 changes: 310 additions & 0 deletions js/mootools.js

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions sources.json
@@ -0,0 +1,7 @@
[
{"source": "app\/assistants\/stage-assistant.js"},
{
"scenes": "dashboard",
"source": "app\/assistants\/dashboard-assistant.js"
}
]
1 change: 1 addition & 0 deletions stylesheets/.css
@@ -0,0 +1 @@
/* Put Application specific CSS here. */

0 comments on commit f5f01d3

Please sign in to comment.