Debian Codegraph @

extensions/VisualEditor/modules/ve-mw/ui/tools/ve.ui.MWGalleryDialogTool.js

raw symbols SCIP
1 /*!
2 * VisualEditor MediaWiki UserInterface gallery tool class.
3 *
4 * @copyright See AUTHORS.txt
5 * @license The MIT License (MIT); see LICENSE.txt
6 */
7
8 /**
9 * MediaWiki UserInterface gallery tool.
10 *
11 * @class
12 * @extends ve.ui.FragmentWindowTool
13 * @constructor
14 * @param {OO.ui.ToolGroup} toolGroup
15 * @param {Object} [config] Configuration options
16 */
17 ve.ui.MWGalleryDialogTool = function VeUiMWGalleryDialogTool() {
18 ve.ui.MWGalleryDialogTool.super.apply( this, arguments );
19 };
20 OO.inheritClass( ve.ui.MWGalleryDialogTool, ve.ui.FragmentWindowTool );
21 ve.ui.MWGalleryDialogTool.static.name = 'gallery';
22 ve.ui.MWGalleryDialogTool.static.group = 'object';
23 ve.ui.MWGalleryDialogTool.static.icon = 'imageGallery';
24 ve.ui.MWGalleryDialogTool.static.title =
25 OO.ui.deferMsg( 'visualeditor-mwgallerydialog-title' );
26 ve.ui.MWGalleryDialogTool.static.modelClasses = [ ve.dm.MWGalleryNode ];
27 ve.ui.MWGalleryDialogTool.static.commandName = 'gallery';
28 ve.ui.toolFactory.register( ve.ui.MWGalleryDialogTool );
29
30 ve.ui.commandRegistry.register(
31 new ve.ui.Command(
32 'gallery', 'window', 'open',
33 { args: [ 'gallery' ], supportedSelections: [ 'linear' ] }
34 )
35 );
36
37 ve.ui.sequenceRegistry.register(
38 new ve.ui.Sequence( 'wikitextGallery', 'gallery', '<gallery', 8 )
39 );