2013-08-27 23:28:29 +00:00
|
|
|
/*!
|
2014-02-27 15:17:00 +00:00
|
|
|
* VisualEditor MediaWiki UserInterface core dialog tool classes.
|
2013-08-27 23:28:29 +00:00
|
|
|
*
|
2014-01-05 12:05:05 +00:00
|
|
|
* @copyright 2011-2014 VisualEditor Team and others; see AUTHORS.txt
|
2013-08-27 23:28:29 +00:00
|
|
|
* @license The MIT License (MIT); see LICENSE.txt
|
|
|
|
*/
|
|
|
|
|
2014-01-13 14:56:49 +00:00
|
|
|
/**
|
|
|
|
* 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';
|
2014-02-12 21:45:37 +00:00
|
|
|
ve.ui.MWCommandHelpDialogTool.static.title =
|
|
|
|
OO.ui.deferMsg( 'visualeditor-dialog-command-help-title' );
|
2014-01-13 14:56:49 +00:00
|
|
|
ve.ui.MWCommandHelpDialogTool.static.dialog = 'commandHelp';
|
|
|
|
ve.ui.MWCommandHelpDialogTool.static.autoAdd = false;
|
|
|
|
ve.ui.toolFactory.register( ve.ui.MWCommandHelpDialogTool );
|