mediawiki-extensions-Visual.../modules/ve-mw/ui/tools/buttons/ve.ui.MWMathButtonTool.js
James D. Forrester 8c88e84be3 Maths icon for inspector menu as well as inspector itself
As not done by 992cb43de5 (whoops).

Change-Id: I29e9452e8bc85ec256f46ddfa4f5000f5fcd2ba4
2013-07-18 17:28:39 -07:00

37 lines
1 KiB
JavaScript

/*!
* VisualEditor UserInterface MWMathButtonTool class.
*
* @copyright 2011-2013 VisualEditor Team and others; see AUTHORS.txt
* @license The MIT License (MIT); see LICENSE.txt
*/
/**
* Math button tool.
*
* @class
* @extends ve.ui.InspectorButtonTool
* @constructor
* @param {ve.ui.Toolbar} toolbar
* @param {Object} [config] Config options
*/
ve.ui.MWMathButtonTool = function VeUiMWMathButtonTool( toolbar, config ) {
// Parent constructor
ve.ui.InspectorButtonTool.call( this, toolbar, config );
};
/* Inheritance */
ve.inheritClass( ve.ui.MWMathButtonTool, ve.ui.InspectorButtonTool );
/* Static Properties */
ve.ui.MWMathButtonTool.static.name = 'mwMath';
ve.ui.MWMathButtonTool.static.icon = 'math';
ve.ui.MWMathButtonTool.static.titleMessage = 'visualeditor-mwmathinspector-title';
ve.ui.MWMathButtonTool.static.inspector = 'mwMathInspector';
ve.ui.MWMathButtonTool.static.modelClasses = [ ve.dm.MWMathNode ];
/* Registration */
ve.ui.toolFactory.register( 'mwMath', ve.ui.MWMathButtonTool );