2013-06-21 02:55:16 +00:00
|
|
|
/*!
|
|
|
|
* VisualEditor UserInterface MWReferenceListButtonTool class.
|
|
|
|
*
|
|
|
|
* @copyright 2011-2013 VisualEditor Team and others; see AUTHORS.txt
|
|
|
|
* @license The MIT License (MIT); see LICENSE.txt
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Reference button tool.
|
|
|
|
*
|
|
|
|
* @class
|
|
|
|
* @extends ve.ui.DialogButtonTool
|
|
|
|
* @constructor
|
|
|
|
* @param {ve.ui.Toolbar} toolbar
|
|
|
|
* @param {Object} [config] Config options
|
|
|
|
*/
|
|
|
|
ve.ui.MWReferenceListButtonTool = function VeUiMwReferenceListButtonTool( toolbar, config ) {
|
|
|
|
// Parent constructor
|
|
|
|
ve.ui.DialogButtonTool.call( this, toolbar, config );
|
|
|
|
};
|
|
|
|
|
|
|
|
/* Inheritance */
|
|
|
|
|
|
|
|
ve.inheritClass( ve.ui.MWReferenceListButtonTool, ve.ui.DialogButtonTool );
|
|
|
|
|
|
|
|
/* Static Properties */
|
|
|
|
|
|
|
|
ve.ui.MWReferenceListButtonTool.static.name = 'mwReferenceList';
|
|
|
|
|
|
|
|
ve.ui.MWReferenceListButtonTool.static.icon = 'references';
|
|
|
|
|
|
|
|
ve.ui.MWReferenceListButtonTool.static.titleMessage = 'visualeditor-dialogbutton-referencelist-tooltip';
|
|
|
|
|
|
|
|
ve.ui.MWReferenceListButtonTool.static.dialog = 'mwReferenceList';
|
|
|
|
|
2013-06-26 21:54:51 +00:00
|
|
|
ve.ui.MWReferenceListButtonTool.static.modelClasses = [ ve.dm.MWReferenceListNode ];
|
|
|
|
|
2013-06-21 02:55:16 +00:00
|
|
|
/* Registration */
|
|
|
|
|
|
|
|
ve.ui.toolFactory.register( 'mwReferenceList', ve.ui.MWReferenceListButtonTool );
|