mediawiki-extensions-Visual.../modules/ve-mw/ui/tools/ve.ui.MWDialogTool.js
Ed Sanders 09c0611484 Fix-up mwcore split: Split out MWDialogTool
Because everything was broken.

Follows-up I6374854eaa1 which split up mwcore into smaller parts but
left MWDialogTool still as one file part of mwcore. Since the various
ve.dm classes are now part of the other modules that depend on mwcore,
the MWDialogTool classes were pointing at classes that don't exist yet
(e.g. ".modelClasses = [ ve.dm.MWBlockImageNode ];").

Change-Id: Ic05b173d730a8a0f6539fdcd818aaf674d2a4019
2014-02-27 16:33:19 +00:00

29 lines
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.dialog = 'commandHelp';
ve.ui.MWCommandHelpDialogTool.static.autoAdd = false;
ve.ui.toolFactory.register( ve.ui.MWCommandHelpDialogTool );