mediawiki-extensions-Visual.../modules/ve-mw/ui/tools/ve.ui.MWGalleryDialogTool.js
James D. Forrester 0a7a845a42 doc: Bump copyright year
Change-Id: I0b299c840ede1a1b8552cecfc70c5760ab036181
2018-01-03 17:45:07 +00:00

40 lines
1.3 KiB
JavaScript

/*!
* VisualEditor MediaWiki UserInterface gallery tool class.
*
* @copyright 2011-2018 VisualEditor Team and others; see AUTHORS.txt
* @license The MIT License (MIT); see LICENSE.txt
*/
/**
* MediaWiki UserInterface gallery tool.
*
* @class
* @extends ve.ui.FragmentWindowTool
* @constructor
* @param {OO.ui.ToolGroup} toolGroup
* @param {Object} [config] Configuration options
*/
ve.ui.MWGalleryDialogTool = function VeUiMWGalleryDialogTool() {
ve.ui.MWGalleryDialogTool.super.apply( this, arguments );
};
OO.inheritClass( ve.ui.MWGalleryDialogTool, ve.ui.FragmentWindowTool );
ve.ui.MWGalleryDialogTool.static.name = 'gallery';
ve.ui.MWGalleryDialogTool.static.group = 'object';
ve.ui.MWGalleryDialogTool.static.icon = 'imageGallery';
ve.ui.MWGalleryDialogTool.static.title =
OO.ui.deferMsg( 'visualeditor-mwgallerydialog-title' );
ve.ui.MWGalleryDialogTool.static.modelClasses = [ ve.dm.MWGalleryNode ];
ve.ui.MWGalleryDialogTool.static.commandName = 'gallery';
ve.ui.toolFactory.register( ve.ui.MWGalleryDialogTool );
ve.ui.commandRegistry.register(
new ve.ui.Command(
'gallery', 'window', 'open',
{ args: [ 'gallery' ], supportedSelections: [ 'linear' ] }
)
);
ve.ui.sequenceRegistry.register(
new ve.ui.Sequence( 'wikitextGallery', 'gallery', '<gallery', 8 )
);