mediawiki-extensions-Visual.../modules/ve-mw/ui/tools/ve.ui.MWCommandHelpDialogTool.js
Roan Kattouw 03c5822b6b Update VE core submodule to master (c5f4f78)
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
2014-04-02 16:30:12 -07:00

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 );