aboutsummaryrefslogtreecommitdiff
path: root/js/document
diff options
context:
space:
mode:
authorJose Antonio Marquez2012-04-02 10:39:12 -0700
committerJose Antonio Marquez2012-04-02 10:39:12 -0700
commite876941eaa6cf5adf0e028d0f3f9402284ea5de2 (patch)
tree26f7e79db4794fca1a9d39b6e9cf8fc622b88625 /js/document
parent02bb0b7d1f0b9d5a4e1c85315f026c437b2808f3 (diff)
downloadninja-e876941eaa6cf5adf0e028d0f3f9402284ea5de2.tar.gz
Setting up document rework
Diffstat (limited to 'js/document')
-rwxr-xr-xjs/document/controllers/document.js (renamed from js/document/controllers/base-controller.js)14
-rwxr-xr-xjs/document/document-html.js (renamed from js/document/mediators/base-mediator.js)14
-rwxr-xr-xjs/document/document-text.js (renamed from js/document/models/base-model.js)14
-rwxr-xr-xjs/document/mediators/io.js (renamed from js/document/views/base-view.js)14
-rwxr-xr-xjs/document/mediators/template.js24
-rwxr-xr-xjs/document/models/html.js25
-rwxr-xr-xjs/document/models/text.js24
-rwxr-xr-xjs/document/views/base.js24
-rwxr-xr-xjs/document/views/code.js25
-rwxr-xr-xjs/document/views/design.js25
10 files changed, 159 insertions, 44 deletions
diff --git a/js/document/controllers/base-controller.js b/js/document/controllers/document.js
index be441da2..45377b76 100755
--- a/js/document/controllers/base-controller.js
+++ b/js/document/controllers/document.js
@@ -6,25 +6,17 @@ No rights, expressed or implied, whatsoever to this software are provided by Mot
6 6
7//////////////////////////////////////////////////////////////////////// 7////////////////////////////////////////////////////////////////////////
8// 8//
9var Montage = require("montage/core/core").Montage, 9var Montage = require("montage/core/core").Montage,
10 Component = require("montage/ui/component").Component; 10 Component = require("montage/ui/component").Component;
11//////////////////////////////////////////////////////////////////////// 11////////////////////////////////////////////////////////////////////////
12// 12//
13exports.ENTERNAME = Montage.create(Montage, { 13exports.DocumentController = Montage.create(Component, {
14 //////////////////////////////////////////////////////////////////// 14 ////////////////////////////////////////////////////////////////////
15 // 15 //
16 hasTemplate: { 16 hasTemplate: {
17 enumerable: false, 17 enumerable: false,
18 value: false 18 value: false
19 }, 19 }
20 ////////////////////////////////////////////////////////////////////
21 //
22 deserializedFromTemplate: {
23 enumerable: false,
24 value: function () {
25 //
26 }
27 }
28 //////////////////////////////////////////////////////////////////// 20 ////////////////////////////////////////////////////////////////////
29 //////////////////////////////////////////////////////////////////// 21 ////////////////////////////////////////////////////////////////////
30}); 22});
diff --git a/js/document/mediators/base-mediator.js b/js/document/document-html.js
index be441da2..b48e004a 100755
--- a/js/document/mediators/base-mediator.js
+++ b/js/document/document-html.js
@@ -6,25 +6,17 @@ No rights, expressed or implied, whatsoever to this software are provided by Mot
6 6
7//////////////////////////////////////////////////////////////////////// 7////////////////////////////////////////////////////////////////////////
8// 8//
9var Montage = require("montage/core/core").Montage, 9var Montage = require("montage/core/core").Montage,
10 Component = require("montage/ui/component").Component; 10 Component = require("montage/ui/component").Component;
11//////////////////////////////////////////////////////////////////////// 11////////////////////////////////////////////////////////////////////////
12// 12//
13exports.ENTERNAME = Montage.create(Montage, { 13exports.HtmlDocument = Montage.create(Component, {
14 //////////////////////////////////////////////////////////////////// 14 ////////////////////////////////////////////////////////////////////
15 // 15 //
16 hasTemplate: { 16 hasTemplate: {
17 enumerable: false, 17 enumerable: false,
18 value: false 18 value: false
19 }, 19 }
20 ////////////////////////////////////////////////////////////////////
21 //
22 deserializedFromTemplate: {
23 enumerable: false,
24 value: function () {
25 //
26 }
27 }
28 //////////////////////////////////////////////////////////////////// 20 ////////////////////////////////////////////////////////////////////
29 //////////////////////////////////////////////////////////////////// 21 ////////////////////////////////////////////////////////////////////
30}); 22});
diff --git a/js/document/models/base-model.js b/js/document/document-text.js
index be441da2..2a469144 100755
--- a/js/document/models/base-model.js
+++ b/js/document/document-text.js
@@ -6,25 +6,17 @@ No rights, expressed or implied, whatsoever to this software are provided by Mot
6 6
7//////////////////////////////////////////////////////////////////////// 7////////////////////////////////////////////////////////////////////////
8// 8//
9var Montage = require("montage/core/core").Montage, 9var Montage = require("montage/core/core").Montage,
10 Component = require("montage/ui/component").Component; 10 Component = require("montage/ui/component").Component;
11//////////////////////////////////////////////////////////////////////// 11////////////////////////////////////////////////////////////////////////
12// 12//
13exports.ENTERNAME = Montage.create(Montage, { 13exports.TextDocument = Montage.create(Component, {
14 //////////////////////////////////////////////////////////////////// 14 ////////////////////////////////////////////////////////////////////
15 // 15 //
16 hasTemplate: { 16 hasTemplate: {
17 enumerable: false, 17 enumerable: false,
18 value: false 18 value: false
19 }, 19 }
20 ////////////////////////////////////////////////////////////////////
21 //
22 deserializedFromTemplate: {
23 enumerable: false,
24 value: function () {
25 //
26 }
27 }
28 //////////////////////////////////////////////////////////////////// 20 ////////////////////////////////////////////////////////////////////
29 //////////////////////////////////////////////////////////////////// 21 ////////////////////////////////////////////////////////////////////
30}); 22});
diff --git a/js/document/views/base-view.js b/js/document/mediators/io.js
index be441da2..972a25e2 100755
--- a/js/document/views/base-view.js
+++ b/js/document/mediators/io.js
@@ -6,25 +6,17 @@ No rights, expressed or implied, whatsoever to this software are provided by Mot
6 6
7//////////////////////////////////////////////////////////////////////// 7////////////////////////////////////////////////////////////////////////
8// 8//
9var Montage = require("montage/core/core").Montage, 9var Montage = require("montage/core/core").Montage,
10 Component = require("montage/ui/component").Component; 10 Component = require("montage/ui/component").Component;
11//////////////////////////////////////////////////////////////////////// 11////////////////////////////////////////////////////////////////////////
12// 12//
13exports.ENTERNAME = Montage.create(Montage, { 13exports.IoDocumentMediator = Montage.create(Component, {
14 //////////////////////////////////////////////////////////////////// 14 ////////////////////////////////////////////////////////////////////
15 // 15 //
16 hasTemplate: { 16 hasTemplate: {
17 enumerable: false, 17 enumerable: false,
18 value: false 18 value: false
19 }, 19 }
20 ////////////////////////////////////////////////////////////////////
21 //
22 deserializedFromTemplate: {
23 enumerable: false,
24 value: function () {
25 //
26 }
27 }
28 //////////////////////////////////////////////////////////////////// 20 ////////////////////////////////////////////////////////////////////
29 //////////////////////////////////////////////////////////////////// 21 ////////////////////////////////////////////////////////////////////
30}); 22});
diff --git a/js/document/mediators/template.js b/js/document/mediators/template.js
new file mode 100755
index 00000000..c5b45ba1
--- /dev/null
+++ b/js/document/mediators/template.js
@@ -0,0 +1,24 @@
1/* <copyright>
2This file contains proprietary software owned by Motorola Mobility, Inc.<br/>
3No rights, expressed or implied, whatsoever to this software are provided by Motorola Mobility, Inc. hereunder.<br/>
4(c) Copyright 2011 Motorola Mobility, Inc. All Rights Reserved.
5</copyright> */
6
7////////////////////////////////////////////////////////////////////////
8//
9var Montage = require("montage/core/core").Montage,
10 Component = require("montage/ui/component").Component;
11////////////////////////////////////////////////////////////////////////
12//
13exports.TemplateDocumentMediator = Montage.create(Component, {
14 ////////////////////////////////////////////////////////////////////
15 //
16 hasTemplate: {
17 enumerable: false,
18 value: false
19 }
20 ////////////////////////////////////////////////////////////////////
21 ////////////////////////////////////////////////////////////////////
22});
23////////////////////////////////////////////////////////////////////////
24//////////////////////////////////////////////////////////////////////// \ No newline at end of file
diff --git a/js/document/models/html.js b/js/document/models/html.js
new file mode 100755
index 00000000..0ac09f3b
--- /dev/null
+++ b/js/document/models/html.js
@@ -0,0 +1,25 @@
1/* <copyright>
2This file contains proprietary software owned by Motorola Mobility, Inc.<br/>
3No rights, expressed or implied, whatsoever to this software are provided by Motorola Mobility, Inc. hereunder.<br/>
4(c) Copyright 2011 Motorola Mobility, Inc. All Rights Reserved.
5</copyright> */
6
7////////////////////////////////////////////////////////////////////////
8//
9var Montage = require("montage/core/core").Montage,
10 Component = require("montage/ui/component").Component,
11 TextDocumentModel = require("js/document/models/text").TextDocumentModel;
12////////////////////////////////////////////////////////////////////////
13//
14exports.HtmlDocumentModel = Montage.create(TextDocumentModel, {
15 ////////////////////////////////////////////////////////////////////
16 //
17 hasTemplate: {
18 enumerable: false,
19 value: false
20 }
21 ////////////////////////////////////////////////////////////////////
22 ////////////////////////////////////////////////////////////////////
23});
24////////////////////////////////////////////////////////////////////////
25//////////////////////////////////////////////////////////////////////// \ No newline at end of file
diff --git a/js/document/models/text.js b/js/document/models/text.js
new file mode 100755
index 00000000..c8fba911
--- /dev/null
+++ b/js/document/models/text.js
@@ -0,0 +1,24 @@
1/* <copyright>
2This file contains proprietary software owned by Motorola Mobility, Inc.<br/>
3No rights, expressed or implied, whatsoever to this software are provided by Motorola Mobility, Inc. hereunder.<br/>
4(c) Copyright 2011 Motorola Mobility, Inc. All Rights Reserved.
5</copyright> */
6
7////////////////////////////////////////////////////////////////////////
8//
9var Montage = require("montage/core/core").Montage,