aboutsummaryrefslogtreecommitdiff
path: root/js/panels/Project/projectpanelbase.reel/ProjectPanelBase.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/panels/Project/projectpanelbase.reel/ProjectPanelBase.js')
-rwxr-xr-xjs/panels/Project/projectpanelbase.reel/ProjectPanelBase.js3660
1 files changed, 1830 insertions, 1830 deletions
diff --git a/js/panels/Project/projectpanelbase.reel/ProjectPanelBase.js b/js/panels/Project/projectpanelbase.reel/ProjectPanelBase.js
index 51aebc31..84b24022 100755
--- a/js/panels/Project/projectpanelbase.reel/ProjectPanelBase.js
+++ b/js/panels/Project/projectpanelbase.reel/ProjectPanelBase.js
@@ -29,1868 +29,1868 @@ POSSIBILITY OF SUCH DAMAGE.
29</copyright> */ 29</copyright> */
30 30
31var TreeControl = require("js/components/tree.reel").Tree, 31var TreeControl = require("js/components/tree.reel").Tree,
32 ResizerControl = require("js/panels/Resizer").Resizer, 32 ResizerControl = require("js/panels/Resizer").Resizer,
33 nj = require("js/lib/NJUtils").NJUtils; 33 nj = require("js/lib/NJUtils").NJUtils;
34 34
35exports.ProjectPanelBase = (require("montage/core/core").Montage).create(require("montage/ui/component").Component, { 35exports.ProjectPanelBase = (require("montage/core/core").Montage).create(require("montage/ui/component").Component, {
36 hasTemplate: { 36 hasTemplate: {
37 value: true 37 value: true
38 }, 38 },
39 _hasFocus: { 39 _hasFocus: {
40 numerable: false, 40 numerable: false,
41 value: false 41 value: false
42 }, 42 },
43 43
44 /* The current project that we have in memory */ 44 /* The current project that we have in memory */
45 _activeProject: { 45 _activeProject: {
46 value: false 46 value: false
47 }, 47 },
48 activeProject: { 48 activeProject: {
49 get: function() { 49 get: function() {
50 return this._activeProject; 50 return this._activeProject;
51 }, 51 },
52 set: function(objNewProject) { 52 set: function(objNewProject) {
53 this._activeProject = objNewProject; 53 this._activeProject = objNewProject;
54 } 54 }
55 }, 55 },
56 56
57 /* Is the panel initialized? Helps keep us from re-initializing things when a project switches */ 57 /* Is the panel initialized? Helps keep us from re-initializing things when a project switches */
58 _isPanelInitialized: { 58 _isPanelInitialized: {
59 value: false 59 value: false
60 }, 60 },
61 isPanelInitialized: { 61 isPanelInitialized: {
62 get: function() { 62 get: function() {
63 return this._isPanelInitialized; 63 return this._isPanelInitialized;
64 }, 64 },
65 set: function(boolValue) { 65 set: function(boolValue) {
66 this._isPanelInitialized = boolValue; 66 this._isPanelInitialized = boolValue;
67 } 67 }
68 }, 68 },
69 69
70 /* Project models: is there an active project, did the user just swap the project, etc. */ 70 /* Project models: is there an active project, did the user just swap the project, etc. */
71 _swapProject: { 71 _swapProject: {
72 value: false 72 value: false
73 }, 73 },
74 swapProject: { 74 swapProject: {
75 get: function() { 75 get: function() {
76 return this._swapProject; 76 return this._swapProject;
77 }, 77 },
78 set: function(boolValue) { 78 set: function(boolValue) {
79 this._swapProject = boolValue; 79 this._swapProject = boolValue;
80 } 80 }
81 }, 81 },
82 _updateTree: { 82 _updateTree: {
83 value: false 83 value: false
84 }, 84 },
85 updateTree: { 85 updateTree: {
86 get: function() { 86 get: function() {
87 return this._updateTree; 87 return this._updateTree;
88 }, 88 },
89 set: function(boolValue) { 89 set: function(boolValue) {
90 this._updateTree = boolValue; 90 this._updateTree = boolValue;
91 } 91 }
92 }, 92 },
93 _updateAssets: { 93 _updateAssets: {
94 value: false 94 value: false
95 }, 95 },
96 _updateAssets : { 96 _updateAssets : {
97 get: function() { 97 get: function() {
98 return this._updateAssets; 98 return this._updateAssets;
99 }, 99 },
100 set: function(boolValue) { 100 set: function(boolValue) {
101 this._updateAssets = boolValue; 101 this._updateAssets = boolValue;
102 } 102 }
103 }, 103 },
104 _hasActiveProject: { 104 _hasActiveProject: {
105 value: false 105 value: false
106 }, 106 },
107 hasActiveProject: { 107 hasActiveProject: {
108 get: function() { 108 get: function() {
109 return this._hasActiveProject; 109 return this._hasActiveProject;
110 }, 110 },
111 set: function(boolValue) { 111 set: function(boolValue) {
112 if (this.hasActiveProject !== boolValue) { 112 if (this.hasActiveProject !== boolValue) {
113 this._hasActiveProject = boolValue; 113 this._hasActiveProject = boolValue;
114 this.needsDraw = true; 114 this.needsDraw = true;
115 this.swapProject = true; 115 this.swapProject = true;
116 this.loadPanelState(); 116 this.loadPanelState();
117 } 117 }
118 } 118 }
119 }, 119 },
120 setActiveProject: { 120 setActiveProject: {
121 value: function(myVal) { 121 value: function(myVal) {
122 this.hasActiveProject = myVal; 122 this.hasActiveProject = myVal;
123 } 123 }
124 }, 124 },
125 125
126 /* Focus monitor: needed to modify keyboard navigation through panels. */ 126 /* Focus monitor: needed to modify keyboard navigation through panels. */
127 _hasFocus: { 127 _hasFocus: {
128 value: false 128 value: false
129 }, 129 },
130 hasFocus: { 130 hasFocus: {
131 get: function() { 131 get: function() {
132 return this._hasFocus; 132 return this._hasFocus;
133 }, 133 },
134 set: function(newVal) { 134 set: function(newVal) {
135 if (this._hasFocus !== newVal) { 135 if (this._hasFocus !== newVal) {
136 this._hasFocus = newVal; 136 this._hasFocus = newVal;
137 } 137 }
138 } 138 }
139 }, 139 },
140 140
141 /* Active column models: Used to store the state of the columns as a resize is happening */ 141 /* Active column models: Used to store the state of the columns as a resize is happening */
142 _activeColumn: { 142 _activeColumn: {
143 enumerable: false, 143 enumerable: false,
144 value: false 144 value: false
145 }, 145 },
146 activeColumn: { 146 activeColumn: {
147 get: function() { 147 get: function() {
148 return this._activeColumn; 148 return this._activeColumn;
149 }, 149 },
150 set: function(intActiveColumn) { 150 set: function(intActiveColumn) {
151 this._activeColumn = intActiveColumn; 151 this._activeColumn = intActiveColumn;
152 } 152 }
153 }, 153 },
154 _activeColumnWidths: { 154 _activeColumnWidths: {
155 enumerable: false, 155 enumerable: false,
156 value: [0,0,0] 156 value: [0,0,0]