2013-06-06 23:14:11 +00:00
|
|
|
/*!
|
2013-07-26 11:04:19 +00:00
|
|
|
* VisualEditor UserInterface MWMediaInsertButtonTool class.
|
2013-06-06 23:14:11 +00:00
|
|
|
*
|
|
|
|
* @copyright 2011-2013 VisualEditor Team and others; see AUTHORS.txt
|
|
|
|
* @license The MIT License (MIT); see LICENSE.txt
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
2013-07-26 11:04:19 +00:00
|
|
|
* UserInterface MediaWiki media insert button tool.
|
2013-06-06 23:14:11 +00:00
|
|
|
*
|
|
|
|
* @class
|
|
|
|
* @extends ve.ui.DialogButtonTool
|
|
|
|
*
|
|
|
|
* @constructor
|
|
|
|
* @param {ve.ui.Toolbar} toolbar
|
|
|
|
* @param {Object} [config] Config options
|
|
|
|
*/
|
2013-07-26 11:04:19 +00:00
|
|
|
ve.ui.MWMediaInsertButtonTool = function VeUiMWMediaInsertButtonTool( toolbar, config ) {
|
2013-06-06 23:14:11 +00:00
|
|
|
// Parent constructor
|
|
|
|
ve.ui.DialogButtonTool.call( this, toolbar, config );
|
|
|
|
};
|
|
|
|
|
|
|
|
/* Inheritance */
|
|
|
|
|
|
|
|
ve.inheritClass( ve.ui.MWMediaInsertButtonTool, ve.ui.DialogButtonTool );
|
|
|
|
|
|
|
|
/* Static Properties */
|
|
|
|
|
|
|
|
ve.ui.MWMediaInsertButtonTool.static.name = 'mwMediaInsert';
|
|
|
|
|
|
|
|
ve.ui.MWMediaInsertButtonTool.static.icon = 'picture';
|
|
|
|
|
|
|
|
ve.ui.MWMediaInsertButtonTool.static.titleMessage = 'visualeditor-dialogbutton-media-tooltip';
|
|
|
|
|
|
|
|
ve.ui.MWMediaInsertButtonTool.static.dialog = 'mwMediaInsert';
|
|
|
|
|
|
|
|
/* Registration */
|
|
|
|
|
|
|
|
ve.ui.toolFactory.register( 'mwMediaInsert', ve.ui.MWMediaInsertButtonTool );
|