mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-15 10:35:48 +00:00
03c5822b6b
Also update tools for changes in VE core. New changes: e4de14b Make tools use commands e029817 Make getToolsForNode place primary commands first Change-Id: I66575ee6d49e6b2f5a5f789978da98bb55e6dc5e
30 lines
1.1 KiB
JavaScript
30 lines
1.1 KiB
JavaScript
/*!
|
|
* VisualEditor MediaWiki UserInterface core dialog tool classes.
|
|
*
|
|
* @copyright 2011-2014 VisualEditor Team and others; see AUTHORS.txt
|
|
* @license The MIT License (MIT); see LICENSE.txt
|
|
*/
|
|
|
|
/**
|
|
* MediaWiki UserInterface command help tool.
|
|
*
|
|
* @class
|
|
* @extends ve.ui.DialogTool
|
|
* @constructor
|
|
* @param {OO.ui.Toolbar} toolbar
|
|
* @param {Object} [config] Configuration options
|
|
*/
|
|
ve.ui.MWCommandHelpDialogTool = function VeUiMWCommandHelpDialogTool( toolbar, config ) {
|
|
ve.ui.DialogTool.call( this, toolbar, config );
|
|
};
|
|
OO.inheritClass( ve.ui.MWCommandHelpDialogTool, ve.ui.DialogTool );
|
|
ve.ui.MWCommandHelpDialogTool.static.name = 'commandHelp';
|
|
ve.ui.MWCommandHelpDialogTool.static.group = 'utility';
|
|
ve.ui.MWCommandHelpDialogTool.static.icon = 'help';
|
|
ve.ui.MWCommandHelpDialogTool.static.title =
|
|
OO.ui.deferMsg( 'visualeditor-dialog-command-help-title' );
|
|
ve.ui.MWCommandHelpDialogTool.static.commandName = 'commandHelp';
|
|
ve.ui.MWCommandHelpDialogTool.static.autoAddToCatchall = false;
|
|
ve.ui.MWCommandHelpDialogTool.static.autoAddToGroup = false;
|
|
ve.ui.toolFactory.register( ve.ui.MWCommandHelpDialogTool );
|