diff options
Diffstat (limited to 'js/models')
-rwxr-xr-x | js/models/app-model.js | 156 |
1 files changed, 0 insertions, 156 deletions
diff --git a/js/models/app-model.js b/js/models/app-model.js index 1fc1ba12..52e298a5 100755 --- a/js/models/app-model.js +++ b/js/models/app-model.js | |||
@@ -34,32 +34,6 @@ var Montage = require("montage/core/core").Montage, | |||
34 | 34 | ||
35 | exports.AppModel = Montage.create(Component, { | 35 | exports.AppModel = Montage.create(Component, { |
36 | 36 | ||
37 | _currentDocument: { | ||
38 | value : null | ||
39 | }, | ||
40 | |||
41 | currentDocument : { | ||
42 | get : function() { | ||
43 | return this._currentDocument; | ||
44 | }, | ||
45 | set : function(value) { | ||
46 | if (value === this._currentDocument) { | ||
47 | return; | ||
48 | } | ||
49 | |||
50 | if(this._currentDocument && this._currentDocument.currentView === "design") { | ||
51 | this._currentDocument.model.draw3DGrid = this.show3dGrid; | ||
52 | } | ||
53 | |||
54 | this._currentDocument = value; | ||
55 | |||
56 | if(this._currentDocument && this._currentDocument.currentView === "design") { | ||
57 | this.show3dGrid = this._currentDocument.model.draw3DGrid; | ||
58 | } | ||
59 | |||
60 | } | ||
61 | }, | ||
62 | |||
63 | _livePreview: { | 37 | _livePreview: { |
64 | value: false | 38 | value: false |
65 | }, | 39 | }, |
@@ -72,18 +46,6 @@ exports.AppModel = Montage.create(Component, { | |||
72 | this._livePreview = value; | 46 | this._livePreview = value; |
73 | } | 47 | } |
74 | }, | 48 | }, |
75 | _chromePreview: { | ||
76 | value: false | ||
77 | }, | ||
78 | |||
79 | chromePreview: { | ||
80 | get: function() { | ||
81 | return this._chromePreview; | ||
82 | }, | ||
83 | set: function(value) { | ||
84 | this._chromePreview = value; | ||
85 | } | ||
86 | }, | ||
87 | 49 | ||
88 | _layoutView: { | 50 | _layoutView: { |
89 | value: "layoutAll" | 51 | value: "layoutAll" |
@@ -98,67 +60,6 @@ exports.AppModel = Montage.create(Component, { | |||
98 | } | 60 | } |
99 | }, | 61 | }, |
100 | 62 | ||
101 | _layoutAll: { | ||
102 | value: true | ||
103 | }, | ||
104 | |||
105 | layoutAll: { | ||
106 | get: function() { | ||
107 | return this._layoutAll; | ||
108 | }, | ||
109 | set: function(value) { | ||
110 | |||
111 | if(value) { | ||
112 | this.layoutView = "layoutAll"; | ||
113 | this.layoutItems = false; | ||
114 | this.layoutOff = false; | ||
115 | } | ||
116 | |||
117 | this._layoutAll = value; | ||
118 | |||
119 | } | ||
120 | }, | ||
121 | |||
122 | _layoutItems: { | ||
123 | value: false | ||
124 | }, | ||
125 | |||
126 | layoutItems: { | ||
127 | get: function() { | ||
128 | return this._layoutItems; | ||
129 | }, | ||
130 | set: function(value) { | ||
131 | |||
132 | if(value) { | ||
133 | this.layoutView = "layoutItems"; | ||
134 | this.layoutAll = false; | ||
135 | this.layoutOff = false; | ||
136 | } | ||
137 | |||
138 | this._layoutItems = value; | ||
139 | } | ||
140 | }, | ||
141 | |||
142 | _layoutOff: { | ||
143 | value: false | ||
144 | }, | ||
145 | |||
146 | layoutOff: { | ||
147 | get: function() { | ||
148 | return this._layoutOff; | ||
149 | }, | ||
150 | set: function(value) { | ||
151 | |||
152 | if(value) { | ||
153 | this.layoutView = "layoutOff"; | ||
154 | this.layoutAll = false; | ||
155 | this.layoutItems = false; | ||
156 | } | ||
157 | |||
158 | this._layoutOff = value; | ||
159 | } | ||
160 | }, | ||
161 | |||
162 | _snap: { | 63 | _snap: { |
163 | value: true | 64 | value: true |
164 | }, | 65 | }, |
@@ -237,63 +138,6 @@ exports.AppModel = Montage.create(Component, { | |||
237 | } | 138 | } |
238 | }, | 139 | }, |
239 | 140 | ||
240 | _frontStageView: { | ||
241 | value: true | ||
242 | }, | ||
243 | |||
244 | frontStageView: { | ||
245 | get: function() { | ||
246 | return this._frontStageView; | ||
247 | }, | ||
248 | set: function(value) { | ||
249 | if(value) { | ||
250 | this.documentStageView = "front"; | ||
251 | this.topStageView = false; | ||
252 | this.sideStageView = false; | ||
253 | } | ||
254 | |||
255 | this._frontStageView = value; | ||
256 | } | ||
257 | }, | ||
258 | |||
259 | _topStageView: { | ||
260 | value: false | ||
261 | }, | ||
262 | |||
263 | topStageView: { | ||
264 | get: function() { | ||
265 | return this._topStageView; | ||
266 | }, | ||
267 | set: function(value) { | ||
268 | if(value) { | ||
269 | this.documentStageView = "top"; | ||
270 | this.frontStageView = false; | ||
271 | this.sideStageView = false; | ||
272 | } | ||
273 | |||
274 | this._topStageView = value; | ||
275 | } | ||
276 | }, | ||
277 | |||
278 | _sideStageView: { | ||
279 | value: false | ||
280 | }, | ||
281 | |||
282 | sideStageView: { | ||
283 | get: function() { | ||
284 | return this._sideStageView; | ||
285 | }, | ||
286 | set: function(value) { | ||
287 | if(value) { | ||
288 | this.documentStageView = "side"; | ||
289 | this.frontStageView = false; | ||
290 | this.topStageView = false; | ||
291 | } | ||
292 | |||
293 | this._sideStageView = value; | ||
294 | } | ||
295 | }, | ||
296 | |||
297 | _debug: { | 141 | _debug: { |
298 | value: true | 142 | value: true |
299 | }, | 143 | }, |