2014-01-06 09:07:24 +00:00
|
|
|
/*!
|
|
|
|
* VisualEditor UserInterface MWMathInspector class.
|
|
|
|
*
|
2014-04-17 02:39:10 +00:00
|
|
|
* @copyright 2011-2014 VisualEditor Team and others; see AUTHORS.txt
|
2014-01-06 09:07:24 +00:00
|
|
|
* @license The MIT License (MIT); see LICENSE.txt
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*global ve, OO */
|
|
|
|
|
|
|
|
/**
|
|
|
|
* MediaWiki math inspector.
|
|
|
|
*
|
|
|
|
* @class
|
2014-04-17 02:39:10 +00:00
|
|
|
* @extends ve.ui.MWLiveExtensionInspector
|
2014-01-06 09:07:24 +00:00
|
|
|
*
|
|
|
|
* @constructor
|
|
|
|
* @param {Object} [config] Configuration options
|
|
|
|
*/
|
2014-04-15 01:52:09 +00:00
|
|
|
ve.ui.MWMathInspector = function VeUiMWMathInspector( config ) {
|
2014-01-06 09:07:24 +00:00
|
|
|
// Parent constructor
|
2014-04-17 02:39:10 +00:00
|
|
|
ve.ui.MWLiveExtensionInspector.call( this, config );
|
2014-01-06 09:07:24 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
/* Inheritance */
|
|
|
|
|
2014-04-17 02:39:10 +00:00
|
|
|
OO.inheritClass( ve.ui.MWMathInspector, ve.ui.MWLiveExtensionInspector );
|
2014-01-06 09:07:24 +00:00
|
|
|
|
|
|
|
/* Static properties */
|
|
|
|
|
|
|
|
ve.ui.MWMathInspector.static.name = 'math';
|
|
|
|
|
|
|
|
ve.ui.MWMathInspector.static.icon = 'math';
|
|
|
|
|
2014-03-25 18:35:22 +00:00
|
|
|
ve.ui.MWMathInspector.static.title = OO.ui.deferMsg( 'math-visualeditor-mwmathinspector-title' );
|
2014-01-06 09:07:24 +00:00
|
|
|
|
|
|
|
ve.ui.MWMathInspector.static.nodeModel = ve.dm.MWMathNode;
|
|
|
|
|
2014-04-17 02:39:10 +00:00
|
|
|
ve.ui.MWMathInspector.static.dir = 'ltr';
|
2014-01-06 09:07:24 +00:00
|
|
|
|
|
|
|
/* Registration */
|
|
|
|
|
|
|
|
ve.ui.inspectorFactory.register( ve.ui.MWMathInspector );
|