/* <copyright> This file contains proprietary software owned by Motorola Mobility, Inc.<br/> No rights, expressed or implied, whatsoever to this software are provided by Motorola Mobility, Inc. hereunder.<br/> (c) Copyright 2011 Motorola Mobility, Inc. All Rights Reserved. </copyright> */ var Montage = require("montage/core/core").Montage; var Component = require("montage/ui/component").Component; exports.ToolsProperties = Montage.create(Component, { _currentDocument: { enumerable: false, value: null }, currentDocument: { enumerable: false, get: function() { return this._currentDocument; }, set: function(value) { if (value === this._currentDocument) { return; } this._currentDocument = value; this.disabled = !this._currentDocument; } }, _disabled: { value: true }, disabled: { get: function() { return this._disabled; }, set: function(value) { if(value !== this._disabled) { this._disabled = value; } } }, _currentSelectedTool : { value: null }, currentSelectedTool : { get: function() { return this._currentSelectedTool;}, set: function(value) { if(this._currentSelectedTool) { this[this._currentSelectedTool.properties].visible = false; } if(value) { this._currentSelectedTool = value; this[this._currentSelectedTool.properties].visible = true; } /* if(this._selectedTool) this[this._selectedTool.properties].visible = false; this._selectedTool = value; this[this._selectedTool.properties].visible = true; */ } } });