/*! * 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.WindowSet} windowSet Window set this dialog is part of * @param {Object} [config] Configuration options */ ve.ui.Inspector = function VeUiInspector( windowSet, config ) { // Parent constructor ve.ui.Window.call( this, windowSet, config ); // Properties this.initialSelection = null; // Initialization this.$.addClass( 've-ui-inspector' ); }; /* Inheritance */ OO.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.$$( '