aboutsummaryrefslogtreecommitdiff
path: root/js/stage
diff options
context:
space:
mode:
authorAnanya Sen2012-05-21 16:42:26 -0700
committerAnanya Sen2012-05-21 16:42:26 -0700
commit2cc8e58f6bb9f64a7473e62aecd013fa55167231 (patch)
tree4969012e500a27c72cf59c0a631990c6b9a1c333 /js/stage
parentc3c2ffc8d057660b7c42b45442885cd0d2d598bc (diff)
downloadninja-2cc8e58f6bb9f64a7473e62aecd013fa55167231.tar.gz
- added opening multiple code and design view documents
- switching between multiple code and design view documents - Note: closing of documents, when multiple documents are open, is not yet implemented Signed-off-by: Ananya Sen <Ananya.Sen@motorola.com>
Diffstat (limited to 'js/stage')
-rwxr-xr-xjs/stage/stage-view.reel/stage-view.js14
-rwxr-xr-xjs/stage/stage.reel/stage.js44
2 files changed, 43 insertions, 15 deletions
diff --git a/js/stage/stage-view.reel/stage-view.js b/js/stage/stage-view.reel/stage-view.js
index 139fa032..2c129ee2 100755
--- a/js/stage/stage-view.reel/stage-view.js
+++ b/js/stage/stage-view.reel/stage-view.js
@@ -58,19 +58,5 @@ exports.StageView = Montage.create(Component, {
58 58
59 NJevent("switchDocument"); 59 NJevent("switchDocument");
60 } 60 }
61 },
62
63 showRulers:{
64 value:function(){
65 this.application.ninja.rulerTop.style.display = "block";
66 this.application.ninja.rulerLeft.style.display = "block";
67 }
68 },
69 hideRulers:{
70 value:function(){
71 this.application.ninja.rulerTop.style.display = "none";
72 this.application.ninja.rulerLeft.style.display = "none";
73 }
74 } 61 }
75
76}); \ No newline at end of file 62}); \ No newline at end of file
diff --git a/js/stage/stage.reel/stage.js b/js/stage/stage.reel/stage.js
index 73d3aaf4..f768f03a 100755
--- a/js/stage/stage.reel/stage.js
+++ b/js/stage/stage.reel/stage.js
@@ -1012,5 +1012,47 @@ exports.Stage = Montage.create(Component, {
1012 this._iframeContainer.scrollTop = this.application.ninja.documentController.activeDocument.savedTopScroll; 1012 this._iframeContainer.scrollTop = this.application.ninja.documentController.activeDocument.savedTopScroll;
1013 this._scrollTop = this.application.ninja.documentController.activeDocument.savedTopScroll; 1013 this._scrollTop = this.application.ninja.documentController.activeDocument.savedTopScroll;
1014 } 1014 }
1015 } 1015 },
1016
1017 showRulers:{
1018 value:function(){
1019 this.application.ninja.rulerTop.style.display = "block";
1020 this.application.ninja.rulerLeft.style.display = "block";
1021 }
1022 },
1023 hideRulers:{
1024 value:function(){
1025 this.application.ninja.rulerTop.style.display = "none";
1026 this.application.ninja.rulerLeft.style.display = "none";
1027 }
1028 },
1029 showCodeViewBar:{
1030 value:function(isCodeView){
1031 if(isCodeView === true) {
1032 this.application.ninja.editorViewOptions.element.style.display = "block";
1033 this.application.ninja.documentBar.element.style.display = "none";
1034 } else {
1035 this.application.ninja.documentBar.element.style.display = "block";
1036 this.application.ninja.editorViewOptions.element.style.display = "none";
1037 }
1038 }
1039 },
1040
1041 collapseAllPanels:{
1042 value:function(){
1043 this.application.ninja.panelSplitter.collapse();
1044 this.application.ninja.timelineSplitter.collapse();
1045 this.application.ninja.toolsSplitter.collapse();
1046 this.application.ninja.optionsSplitter.collapse();
1047 }
1048 },
1049 restoreAllPanels:{
1050 value:function(){
1051 this.application.ninja.panelSplitter.restore();
1052 this.application.ninja.timelineSplitter.restore();
1053 this.application.ninja.toolsSplitter.restore();
1054 this.application.ninja.optionsSplitter.restore();
1055 }
1056 }
1057
1016}); \ No newline at end of file 1058}); \ No newline at end of file