/*! * VisualEditor UserInterface Inspector class. * * @copyright 2011-2013 VisualEditor Team and others; see AUTHORS.txt * @license The MIT License (MIT); see LICENSE.txt */ /** * UserInterface inspector. * * @class * @abstract * @extends ve.ui.Window * * @constructor * @param {ve.ui.Surface} surface * @param {Object} [config] Config options */ ve.ui.Inspector = function VeUiInspector( surface, config ) { // Parent constructor ve.ui.Window.call( this, surface, config ); // Properties this.initialSelection = null; // Initialization this.$.addClass( 've-ui-inspector' ); }; /* Inheritance */ ve.inheritClass( ve.ui.Inspector, ve.ui.Window ); /* Static Properties */ ve.ui.Inspector.static.titleMessage = 've-ui-inspector-title'; /** * Symbolic name of dialog. * * @abstract * @static * @property {string} * @inheritable */ ve.ui.Inspector.static.name = ''; /** * The inspector comes with a remove button * @static * @inheritable * @property {boolean} */ ve.ui.Inspector.static.removeable = true; /* Methods */ /** * Handle frame ready events. * * @method */ ve.ui.Inspector.prototype.initialize = function () { // Parent method ve.ui.Window.prototype.initialize.call( this ); // Initialization this.frame.$content.addClass( 've-ui-inspector-content' ); this.$form = this.$$( '