aboutsummaryrefslogtreecommitdiff
path: root/js/models/app-model.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/models/app-model.js')
-rwxr-xr-xjs/models/app-model.js169
1 files changed, 0 insertions, 169 deletions
diff --git a/js/models/app-model.js b/js/models/app-model.js
index 1fc1ba12..1351921b 100755
--- a/js/models/app-model.js
+++ b/js/models/app-model.js
@@ -34,57 +34,6 @@ var Montage = require("montage/core/core").Montage,
34 34
35exports.AppModel = Montage.create(Component, { 35exports.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: {
64 value: false
65 },
66
67 livePreview: {
68 get: function() {
69 return this._livePreview;
70 },
71 set: function(value) {
72 this._livePreview = value;
73 }
74 },
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
88 _layoutView: { 37 _layoutView: {
89 value: "layoutAll" 38 value: "layoutAll"
90 }, 39 },
@@ -98,67 +47,6 @@ exports.AppModel = Montage.create(Component, {
98 } 47 }
99 }, 48 },
100 49
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: { 50 _snap: {
163 value: true 51 value: true
164 }, 52 },
@@ -237,63 +125,6 @@ exports.AppModel = Montage.create(Component, {
237 } 125 }
238 }, 126 },
239 127
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: { 128 _debug: {
298 value: true 129 value: true
299 }, 130 },