From 163e977e5819b4bf7029be0562ee7f31045f05c4 Mon Sep 17 00:00:00 2001 From: Valerio Virgillito Date: Thu, 31 May 2012 15:53:45 -0700 Subject: removing the stage view component as it is not used anymore Signed-off-by: Valerio Virgillito --- js/stage/stage-view.reel/stage-view.css | 50 -------------------------- js/stage/stage-view.reel/stage-view.html | 30 ---------------- js/stage/stage-view.reel/stage-view.js | 62 -------------------------------- js/stage/stage.reel/stage.css | 47 +++++++++++++++++++++++- js/stage/stage.reel/stage.html | 10 +----- 5 files changed, 47 insertions(+), 152 deletions(-) delete mode 100755 js/stage/stage-view.reel/stage-view.css delete mode 100755 js/stage/stage-view.reel/stage-view.html delete mode 100755 js/stage/stage-view.reel/stage-view.js (limited to 'js/stage') diff --git a/js/stage/stage-view.reel/stage-view.css b/js/stage/stage-view.reel/stage-view.css deleted file mode 100755 index 8afb52a2..00000000 --- a/js/stage/stage-view.reel/stage-view.css +++ /dev/null @@ -1,50 +0,0 @@ -/* - This file contains proprietary software owned by Motorola Mobility, Inc.
- No rights, expressed or implied, whatsoever to this software are provided by Motorola Mobility, Inc. hereunder.
- (c) Copyright 2011 Motorola Mobility, Inc. All Rights Reserved. -
*/ - -.codeViewContainer { - position: absolute; - top: 0px; - left: 0px; - margin: 0px; - padding: 0px; - background-color: #ffffff; - width: 100%; - height: 100%; - overflow:auto; - cursor:text; -} - -.codeViewContainer .CodeMirror { - width: 100%; - height: 100%; - background: white; -} - -.codeViewContainer .CodeMirror-scroll { - height: 100%; - overflow: auto; -} - -.codeViewContainer>div{ - width:2500px;/*to prevent scrolling of editor container in the middle of the page for short files*/ -} - -span.CodeMirror-matchhighlight { background: #e9e9e9 } -.CodeMirror-focused span.CodeMirror-matchhighlight { background: #e7e4ff; !important } -div.CodeMirror span.CodeMirror-matchingbracket {color: #000 !important;background-color: #ffd500;} -.CodeMirror-completions select {background-color:#e8f2ff;border:1px solid #c1c1c1;box-shadow: 8px 8px 8px rgba(0, 0, 0, 0.8);} -.CodeMirror-completions {z-index:6001 !important;} - -.cm-s-default .activeline {background: #e8f2ff; !important} -.cm-s-eclipse .activeline {background: #e8f2ff; !important} -.cm-s-elegant .activeline {background: #e8f2ff; !important} -.cm-s-neat .activeline {background: #e8f2ff; !important} -.cm-s-night .activeline {background: #8da6ce; !important} -.cm-s-cobalt .activeline {background: #8da6ce; !important} -.cm-s-monokai .activeline {background: #8da6ce; !important} -.cm-s-rubyblue .activeline {background: #3E7087; !important} -.cm-s-lesser-dark .activeline {background: #8da6ce; !important} -.cm-s-xq-dark .activeline {background: #8da6ce; !important} \ No newline at end of file diff --git a/js/stage/stage-view.reel/stage-view.html b/js/stage/stage-view.reel/stage-view.html deleted file mode 100755 index 3680e8b5..00000000 --- a/js/stage/stage-view.reel/stage-view.html +++ /dev/null @@ -1,30 +0,0 @@ - - - - - - - - - - - - - -
- - - diff --git a/js/stage/stage-view.reel/stage-view.js b/js/stage/stage-view.reel/stage-view.js deleted file mode 100755 index 2c129ee2..00000000 --- a/js/stage/stage-view.reel/stage-view.js +++ /dev/null @@ -1,62 +0,0 @@ -/* -This file contains proprietary software owned by Motorola Mobility, Inc.
-No rights, expressed or implied, whatsoever to this software are provided by Motorola Mobility, Inc. hereunder.
-(c) Copyright 2011 Motorola Mobility, Inc. All Rights Reserved. -
*/ - -/** -@requires montage/core/core -@requires montage/ui/component -*/ -var Montage = require("montage/core/core").Montage, - Component = require("montage/ui/component").Component; - -exports.StageView = Montage.create(Component, { - _documents: { - value : [] - }, - - docs: { - get: function() { - return this._documents; - }, - set: function(value) { - //console.log(value); - } - }, - - didDraw:{ - value: function() { - if(!this.application.ninja.documentController._textHolder) this.application.ninja.documentController._textHolder = this.element; - } - }, - - /** - * Public method - * Switches between documents. Document state data is saved and restored whereever applicable - */ - switchDocument:{ - value: function(doc){ - - - //focus editor - if(!!this.application.ninja.documentController.activeDocument && !!this.application.ninja.documentController.activeDocument.editor){ - this.application.ninja.documentController.activeDocument.editor.focus(); - - this.showCodeViewBar(true); - this.application.ninja.codeEditorController.applySettings(); - this.collapseAllPanels(); - } - - if(this.application.ninja.documentController.activeDocument.currentView === "design") { - this.application.ninja.stage._scrollFlag = true; // TODO HACK to prevent type error on Hide/Show Iframe - this.application.ninja.stage.stageDeps.reinitializeForSwitchDocument();//reinitialize draw-util, snapmanager and view-util - - this.showCodeViewBar(false); - this.restoreAllPanels(); - } - - NJevent("switchDocument"); - } - } -}); \ No newline at end of file diff --git a/js/stage/stage.reel/stage.css b/js/stage/stage.reel/stage.css index 54b9761b..13537ba1 100755 --- a/js/stage/stage.reel/stage.css +++ b/js/stage/stage.reel/stage.css @@ -10,4 +10,49 @@ box-flex: 1; position: relative; overflow: hidden; -} \ No newline at end of file +} + +.codeViewContainer { + position: absolute; + top: 0px; + left: 0px; + margin: 0px; + padding: 0px; + background-color: #ffffff; + width: 100%; + height: 100%; + overflow:auto; + cursor:text; +} + +.codeViewContainer .CodeMirror { + width: 100%; + height: 100%; + background: white; +} + +.codeViewContainer .CodeMirror-scroll { + height: 100%; + overflow: auto; +} + +.codeViewContainer>div{ + width:2500px;/*to prevent scrolling of editor container in the middle of the page for short files*/ +} + +span.CodeMirror-matchhighlight { background: #e9e9e9 } +.CodeMirror-focused span.CodeMirror-matchhighlight { background: #e7e4ff; !important } +div.CodeMirror span.CodeMirror-matchingbracket {color: #000 !important;background-color: #ffd500;} +.CodeMirror-completions select {background-color:#e8f2ff;border:1px solid #c1c1c1;box-shadow: 8px 8px 8px rgba(0, 0, 0, 0.8);} +.CodeMirror-completions {z-index:6001 !important;} + +.cm-s-default .activeline {background: #e8f2ff; !important} +.cm-s-eclipse .activeline {background: #e8f2ff; !important} +.cm-s-elegant .activeline {background: #e8f2ff; !important} +.cm-s-neat .activeline {background: #e8f2ff; !important} +.cm-s-night .activeline {background: #8da6ce; !important} +.cm-s-cobalt .activeline {background: #8da6ce; !important} +.cm-s-monokai .activeline {background: #8da6ce; !important} +.cm-s-rubyblue .activeline {background: #3E7087; !important} +.cm-s-lesser-dark .activeline {background: #8da6ce; !important} +.cm-s-xq-dark .activeline {background: #8da6ce; !important} \ No newline at end of file diff --git a/js/stage/stage.reel/stage.html b/js/stage/stage.reel/stage.html index 45667e06..7a9619cd 100755 --- a/js/stage/stage.reel/stage.html +++ b/js/stage/stage.reel/stage.html @@ -11,13 +11,6 @@