2013-06-11 19:16:04 +00:00
|
|
|
/*!
|
|
|
|
* VisualEditor UserInterface MWTransclusionButtonTool class.
|
|
|
|
*
|
|
|
|
* @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 transclusion button tool.
|
2013-06-11 19:16:04 +00:00
|
|
|
*
|
|
|
|
* @class
|
|
|
|
* @extends ve.ui.DialogButtonTool
|
|
|
|
* @constructor
|
|
|
|
* @param {ve.ui.Toolbar} toolbar
|
|
|
|
* @param {Object} [config] Config options
|
|
|
|
*/
|
2013-08-07 09:45:48 +00:00
|
|
|
ve.ui.MWTransclusionButtonTool = function VeUiMWTransclusionButtonTool( toolbar, config ) {
|
2013-06-11 19:16:04 +00:00
|
|
|
// Parent constructor
|
|
|
|
ve.ui.DialogButtonTool.call( this, toolbar, config );
|
|
|
|
};
|
|
|
|
|
|
|
|
/* Inheritance */
|
|
|
|
|
|
|
|
ve.inheritClass( ve.ui.MWTransclusionButtonTool, ve.ui.DialogButtonTool );
|
|
|
|
|
|
|
|
/* Static Properties */
|
|
|
|
|
2013-08-09 18:29:09 +00:00
|
|
|
ve.ui.MWTransclusionButtonTool.static.name = 'object/transclusion/mw';
|
2013-06-11 19:16:04 +00:00
|
|
|
|
|
|
|
ve.ui.MWTransclusionButtonTool.static.icon = 'template';
|
|
|
|
|
2013-06-18 21:56:45 +00:00
|
|
|
ve.ui.MWTransclusionButtonTool.static.titleMessage = 'visualeditor-dialogbutton-transclusion-tooltip';
|
2013-06-11 19:16:04 +00:00
|
|
|
|
|
|
|
ve.ui.MWTransclusionButtonTool.static.dialog = 'mwTransclusion';
|
|
|
|
|
2013-06-26 21:54:51 +00:00
|
|
|
ve.ui.MWTransclusionButtonTool.static.modelClasses = [ ve.dm.MWTransclusionNode ];
|
|
|
|
|
2013-06-11 19:16:04 +00:00
|
|
|
/* Registration */
|
|
|
|
|
2013-08-09 18:29:09 +00:00
|
|
|
ve.ui.toolFactory.register( 'object/transclusion/mw', ve.ui.MWTransclusionButtonTool );
|