aboutsummaryrefslogtreecommitdiff
path: root/js/data
diff options
context:
space:
mode:
authorPushkar Joshi2012-03-02 12:24:33 -0800
committerPushkar Joshi2012-03-02 12:24:33 -0800
commit4419209a1fd850ab468209b562b66b0242b42a9c (patch)
treebd7ca04f963f5a3aeb4b3c06db6f187903307d45 /js/data
parent1b68bb87c458877cb850a96d8a093d6064bc41dc (diff)
parentff0a956f33df034e9a009cfcb8999e469456a4b5 (diff)
downloadninja-4419209a1fd850ab468209b562b66b0242b42a9c.tar.gz
Merge branch 'master' into brushtool
Diffstat (limited to 'js/data')
-rw-r--r--js/data/panels-data.js141
-rwxr-xr-xjs/data/tools-data.js6
2 files changed, 144 insertions, 3 deletions
diff --git a/js/data/panels-data.js b/js/data/panels-data.js
new file mode 100644
index 00000000..aa5057a2
--- /dev/null
+++ b/js/data/panels-data.js
@@ -0,0 +1,141 @@
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
7var Montage = require("montage/core/core").Montage;
8
9exports.PanelsData = Montage.create(Montage, {
10
11 panels: {
12 value: [
13 {
14 name: "Color",
15 height: 200,
16 minHeight: 200,
17 maxHeight: null,
18 flexible: false,
19 scrollable: false,
20 collapsed: false,
21 open: true,
22 contentComponent: null,
23 modulePath: "js/panels/Color/colorpanelbase.reel",
24 moduleName: "ColorPanelBase"
25 },
26 {
27 name: "Properties",
28 minHeight: 200,
29 height: 200,
30 maxHeight: null,
31 flexible: true,
32 scrollable: true,
33 collapsed: false,
34 open: true,
35 contentComponent: null,
36 modulePath: "js/panels/properties.reel",
37 moduleName: "Properties"
38 },
39 {
40 name: "Materials",
41 minHeight: 100,
42 height: 100,
43 maxHeight: null,
44 flexible: true,
45 collapsed: true,
46 scrollable: true,
47 open: true,
48 contentComponent: null,
49 modulePath: "js/panels/Materials/materials-library-panel.reel",
50 moduleName: "MaterialsLibraryPanel"
51 },
52 {
53 name: "Components",
54 minHeight: 100,
55 height: 200,
56 maxHeight: null,
57 flexible: true,
58 scrollable: true,
59 collapsed: true,
60 open: true,
61 contentComponent: null,
62 modulePath: "js/panels/Components/ComponentsPanelBase.reel",
63 moduleName: "ComponentsPanelBase"
64 },
65// {
66// name: "Project/Assets",
67// minHeight: 250,
68// height: 250,
69// maxHeight: null,
70// flexible: true,
71// scrollable: true,
72// collapsed: false,
73// open: true,
74// content: null,
75// modulePath: "js/panels/Project/projectpanelbase.reel",
76// moduleName: "ProjectPanelBase"
77// },
78 {
79 name: "CSS",
80 minHeight: 195,
81 height: 195,
82 maxHeight: null,
83 flexible: true,
84 scrollable: true,
85 collapsed: true,
86 open: true,
87 contentComponent: null,
88 modulePath: "js/panels/CSSPanel/CSSPanelBase.reel",
89 moduleName: "CSSPanelBase"
90 },
91 {
92 name: "Presets",
93 minHeight: 100,
94 height: 100,
95 maxHeight: null,
96 flexible: true,
97 collapsed: true,
98 scrollable: true,
99 open: true,
100 contentComponent: null,
101 modulePath: "js/panels/presets/content.reel",
102 moduleName: "content"
103 }
104 ]
105 }
106
107
108 /*
109 _panelOrder: {
110 value: ["Properties","Color","Components","Project/Assets", "CSS","Materials"]
111 },
112
113 panelOrder: {
114 get: function() {
115 return this._panelOrder;
116 },
117 set: function(val) {
118 this._panelOrder = val;
119 }
120 }
121
122
123 panels: {
124 get: function() {
125 var filtered = this._panels.filter(function(item) {
126 return item.open;
127 });
128
129 filtered.sort(function(a,b) {
130 a.name
131 });
132
133 return filtered;
134 },
135 set : function() {
136
137 }
138 }
139 */
140
141}); \ No newline at end of file
diff --git a/js/data/tools-data.js b/js/data/tools-data.js
index 3abdb60f..faf3336f 100755
--- a/js/data/tools-data.js
+++ b/js/data/tools-data.js
@@ -37,7 +37,7 @@ exports.ToolsData = Montage.create(Montage, {
37 "properties": "rotate3DProperties", 37 "properties": "rotate3DProperties",
38 "spriteSheet": true, 38 "spriteSheet": true,
39 "action": "Rotate3DTool", 39 "action": "Rotate3DTool",
40 "toolTip": "3D Rotate Object Tool (W)", 40 "toolTip": "3D Object Rotate Tool (W)",
41 "cursor": "auto", 41 "cursor": "auto",
42 "lastInGroup": false, 42 "lastInGroup": false,
43 "container": false, 43 "container": false,
@@ -48,7 +48,7 @@ exports.ToolsData = Montage.create(Montage, {
48 "properties": "translate3DProperties", 48 "properties": "translate3DProperties",
49 "spriteSheet": true, 49 "spriteSheet": true,
50 "action": "Translate3DTool", 50 "action": "Translate3DTool",
51 "toolTip": "3D Translate Object Tool (G)", 51 "toolTip": "3D Object Translate Tool (G)",
52 "cursor": "auto", 52 "cursor": "auto",
53 "lastInGroup": true, 53 "lastInGroup": true,
54 "container": false, 54 "container": false,
@@ -195,7 +195,7 @@ exports.ToolsData = Montage.create(Montage, {
195 "properties": "rotateStageProperties", 195 "properties": "rotateStageProperties",
196 "spriteSheet": true, 196 "spriteSheet": true,
197 "action": "RotateStageTool3D", 197 "action": "RotateStageTool3D",
198 "toolTip": "3D Rotate Stage Tool", 198 "toolTip": "3D Stage Rotate Tool (M)",
199 "cursor": "auto", 199 "cursor": "auto",
200 "lastInGroup": false, 200 "lastInGroup": false,
201 "container": false, 201 "container": false,