diff options
author | Nivesh Rajbhandari | 2012-04-16 16:06:24 -0700 |
---|---|---|
committer | Nivesh Rajbhandari | 2012-04-16 16:06:24 -0700 |
commit | c253192a08b499ea7be46fa5438d273e51f7ec5a (patch) | |
tree | 18a1f0e3679c0eb993a9dedb537035d3861f49ac /js/panels/color/colorpanel.js | |
parent | e19376c54eedd1f1c457ba405b2f110be376a559 (diff) | |
parent | 4b900ea5cd6bb77eb30cec8c03b9ec9fa662c1e9 (diff) | |
download | ninja-c253192a08b499ea7be46fa5438d273e51f7ec5a.tar.gz |
Merge branch 'refs/heads/ninja-internal' into WebGLFixes
Diffstat (limited to 'js/panels/color/colorpanel.js')
-rwxr-xr-x | js/panels/color/colorpanel.js | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/js/panels/color/colorpanel.js b/js/panels/color/colorpanel.js new file mode 100755 index 00000000..3a603e98 --- /dev/null +++ b/js/panels/color/colorpanel.js | |||
@@ -0,0 +1,53 @@ | |||
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 | //////////////////////////////////////////////////////////////////////// | ||
8 | // | ||
9 | var Montage = require("montage/core/core").Montage, | ||
10 | PanelBase = require("js/panels/panelbase").PanelBase; | ||
11 | //////////////////////////////////////////////////////////////////////// | ||
12 | //Exporting as ColorPanel | ||
13 | exports.ColorPanel = Montage.create(PanelBase, { | ||
14 | //////////////////////////////////////////////////////////////////// | ||
15 | //Panel Configuration | ||
16 | panelName: {value: "Color", writable: true, enumerable: true, configurable: true}, | ||
17 | panelHeaderID: {value: "colorPanelHeader", writable: true, enumerable: true, configurable: true}, | ||
18 | disclosureIconID: {value: "colorPanelDisclosureIcon", writable: true, enumerable: true, configurable: true}, | ||
19 | closeButtonID: {value: "colorPanelCloseButton", writable: true, enumerable: true, configurable: true}, | ||
20 | panelContentID: {value: "colorPanelContent", writable: true, enumerable: true, configurable: true}, | ||
21 | //////////////////////////////////////////////////////////////////// | ||
22 | //Creating panel from base view class | ||
23 | init: { | ||
24 | enumerable: true, | ||
25 | value: function() { | ||
26 | //Initializing Wrapper | ||
27 | this.minHeight = 200; | ||
28 | this.maxHeight = 200; | ||
29 | this.contentHeight = 200; | ||
30 | this.isStatic = true; | ||
31 | this.scrollable = false; | ||
32 | //Getting view from base in controller | ||
33 | this.content = this.application.ninja.colorController.colorView = this.application.ninja.colorController.colorPanelBase.create(); | ||
34 | //Checking for first draw to apply default colors | ||
35 | this.content.addEventListener('firstDraw', this, false); | ||
36 | |||
37 | |||
38 | //////////////////////////////////////////////////////////// | ||
39 | //////////////////////////////////////////////////////////// | ||
40 | //TODO: Remove and add via toolbar draw loop | ||
41 | |||
42 | //////////////////////////////////////////////////////////// | ||
43 | //////////////////////////////////////////////////////////// | ||
44 | |||
45 | |||
46 | } | ||
47 | }, | ||
48 | //////////////////////////////////////////////////////////////////// | ||
49 | //Applying default colors only on first draw | ||
50 | |||
51 | //////////////////////////////////////////////////////////////////// | ||
52 | //////////////////////////////////////////////////////////////////// | ||
53 | }); \ No newline at end of file | ||