/*! * 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 * @extends ve.ui.Window * * @constructor * @param {ve.Surface} surface */ ve.ui.Inspector = function VeUiInspector( surface ) { // Inheritance ve.ui.Window.call( this, surface ); // Properties this.initialSelection = null; // Initialization this.$.addClass( 've-ui-inspector' ); }; /* Inheritance */ ve.inheritClass( ve.ui.Inspector, ve.ui.Window ); /* Static Properties */ /** * Pattern to use when matching against annotation type strings. * * @static * @property * @type {RegExp} */ ve.ui.Inspector.static.typePattern = new RegExp(); ve.ui.Inspector.static.stylesheets = ve.ui.Inspector.static.stylesheets.concat( [ 've.ui.Inspector.css' ] ); ve.ui.Inspector.static.titleMessage = 've-ui-inspector-title'; /* Methods */ /** * Handle frame ready events. * * @method */ ve.ui.Inspector.prototype.initialize = function () { // Call parent method ve.ui.Window.prototype.initialize.call( this ); // Initialization this.$form = this.$$( '