diff options
Diffstat (limited to 'js/panels/Project/ProjectPanel.js')
-rw-r--r-- | js/panels/Project/ProjectPanel.js | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/js/panels/Project/ProjectPanel.js b/js/panels/Project/ProjectPanel.js new file mode 100644 index 00000000..ad431824 --- /dev/null +++ b/js/panels/Project/ProjectPanel.js | |||
@@ -0,0 +1,43 @@ | |||
1 | /* <copyright> | ||
2 | This file contains proprietary software owned by Motorola Mobility, Inc.<br/> | ||
3 | No rights, expressed or implied, whatsoever to this software are provided by Motorola Mobility, Inc. hereunder.<br/> | ||
4 | (c) Copyright 2011 Motorola Mobility, Inc. All Rights Reserved. | ||
5 | </copyright> */ | ||
6 | |||
7 | var Montage = require("montage/core/core").Montage, | ||
8 | PanelBase = require("js/panels/PanelBase").PanelBase, | ||
9 | ProjectPanelBase = require("js/panels/Project/ProjectPanelBase.reel").ProjectPanelBase; | ||
10 | |||
11 | exports.ProjectPanel = Montage.create(PanelBase, { | ||
12 | |||
13 | id: {value: "projectPanel", writable: true, enumerable: true, configurable: true}, | ||
14 | panelName: {value: "Project/Assets", writable: true, enumerable: true, configurable: true}, | ||
15 | panelHeaderID: {value: "projectPanelHeader", writable: true, enumerable: true, configurable: true}, | ||
16 | disclosureIconID: {value: "projectPanelDisclosureIcon", writable: true, enumerable: true, configurable: true}, | ||
17 | closeButtonID: {value: "projectPanelCloseButton", writable: true, enumerable: true, configurable: true}, | ||
18 | panelContentID: {value: "projectPanelContent", writable: true, enumerable: true, configurable: true}, | ||
19 | |||
20 | init: { | ||
21 | enumerable: true, | ||
22 | value: function() { | ||
23 | //Creating panel container and panel | ||
24 | this.minHeight = 350; | ||
25 | this.defaultHeight = 350; | ||
26 | this.contentHeight = 395; | ||
27 | |||
28 | /* OLD WAY -- Removing the temporary div | ||
29 | // TODO: Remove this comment once this is tested. | ||
30 | var ppContainer = document.createElement("div"); | ||
31 | ppContainer.setAttribute("id", "pp-container"); | ||
32 | this._projectPanelBase = ProjectPanelBase.create(); | ||
33 | this._projectPanelBase.element = ppContainer; | ||
34 | //Adding container to the parent | ||
35 | this.content = this._projectPanelBase; | ||
36 | //Drawing panel | ||
37 | this._projectPanelBase.needsDraw = true; | ||
38 | */ | ||
39 | |||
40 | this.content = ProjectPanelBase.create(); | ||
41 | } | ||
42 | } | ||
43 | }); | ||