mediawiki-extensions-Visual.../modules/ve/ui/tools/buttons/ve.ui.MWMediaEditButtonTool.js

39 lines
1,012 B
JavaScript
Raw Normal View History

/*!
* VisualEditor UserInterface MWMediaEditButtonTool class.
*
* @copyright 2011-2013 VisualEditor Team and others; see AUTHORS.txt
* @license The MIT License (MIT); see LICENSE.txt
*/
/**
* MediaEdit button tool.
*
* @class
* @extends ve.ui.DialogButtonTool
* @constructor
* @param {ve.ui.Toolbar} toolbar
* @param {Object} [config] Config options
*/
ve.ui.MWMediaEditButtonTool = function VeUiMWMediaEditButtonTool( toolbar, config ) {
// Parent constructor
ve.ui.DialogButtonTool.call( this, toolbar, config );
};
/* Inheritance */
ve.inheritClass( ve.ui.MWMediaEditButtonTool, ve.ui.DialogButtonTool );
/* Static Properties */
ve.ui.MWMediaEditButtonTool.static.name = 'mwMediaEdit';
ve.ui.MWMediaEditButtonTool.static.icon = 'picture';
ve.ui.MWMediaEditButtonTool.static.titleMessage = 'visualeditor-dialogbutton-media-tooltip';
ve.ui.MWMediaEditButtonTool.static.dialog = 'mwMediaEdit';
/* Registration */
ve.ui.toolFactory.register( 'mwMediaEdit', ve.ui.MWMediaEditButtonTool );