diff options
author | Pierre Frisch | 2011-12-22 07:25:50 -0800 |
---|---|---|
committer | Valerio Virgillito | 2012-01-27 11:18:17 -0800 |
commit | b89a7ee8b956c96a1dcee995ea840feddc5d4b27 (patch) | |
tree | 0f3136ab0ecdbbbed6a83576581af0a53124d6f1 /js/panels/Project/ProjectPanel.js | |
parent | 2401f05d1f4b94d45e4568b81fc73e67b969d980 (diff) | |
download | ninja-b89a7ee8b956c96a1dcee995ea840feddc5d4b27.tar.gz |
First commit of Ninja to ninja-internal
Signed-off-by: Valerio Virgillito <rmwh84@motorola.com>
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 | }); | ||