| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 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 |
); |