2014-02-27 15:17:00 +00:00
|
|
|
/*!
|
|
|
|
* VisualEditor MediaWiki UserInterface meta tool classes.
|
|
|
|
*
|
2015-01-08 23:54:03 +00:00
|
|
|
* @copyright 2011-2015 VisualEditor Team and others; see AUTHORS.txt
|
2014-02-27 15:17:00 +00:00
|
|
|
* @license The MIT License (MIT); see LICENSE.txt
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* MediaWiki UserInterface meta dialog tool.
|
|
|
|
*
|
|
|
|
* @class
|
|
|
|
* @extends ve.ui.DialogTool
|
|
|
|
* @constructor
|
|
|
|
* @param {OO.ui.Toolbar} toolbar
|
|
|
|
* @param {Object} [config] Configuration options
|
|
|
|
*/
|
|
|
|
ve.ui.MWMetaDialogTool = function VeUiMWMetaDialogTool( toolbar, config ) {
|
|
|
|
ve.ui.DialogTool.call( this, toolbar, config );
|
|
|
|
};
|
|
|
|
OO.inheritClass( ve.ui.MWMetaDialogTool, ve.ui.DialogTool );
|
|
|
|
ve.ui.MWMetaDialogTool.static.name = 'meta';
|
|
|
|
ve.ui.MWMetaDialogTool.static.group = 'utility';
|
|
|
|
ve.ui.MWMetaDialogTool.static.icon = 'window';
|
|
|
|
ve.ui.MWMetaDialogTool.static.title =
|
|
|
|
OO.ui.deferMsg( 'visualeditor-meta-tool' );
|
2014-04-02 23:29:04 +00:00
|
|
|
ve.ui.MWMetaDialogTool.static.commandName = 'meta';
|
2014-03-21 18:46:02 +00:00
|
|
|
ve.ui.MWMetaDialogTool.static.autoAddToCatchall = false;
|
|
|
|
ve.ui.MWMetaDialogTool.static.autoAddToGroup = false;
|
2014-02-27 15:17:00 +00:00
|
|
|
ve.ui.toolFactory.register( ve.ui.MWMetaDialogTool );
|
|
|
|
|
|
|
|
/**
|
|
|
|
* MediaWiki UserInterface page settings tool.
|
|
|
|
*
|
|
|
|
* @class
|
|
|
|
* @extends ve.ui.DialogTool
|
|
|
|
* @constructor
|
|
|
|
* @param {OO.ui.Toolbar} toolbar
|
|
|
|
* @param {Object} [config] Configuration options
|
|
|
|
*/
|
|
|
|
ve.ui.MWPageSettingsDialogTool = function VeUiMWPageSettingsDialogTool( toolbar, config ) {
|
|
|
|
ve.ui.DialogTool.call( this, toolbar, config );
|
|
|
|
};
|
|
|
|
OO.inheritClass( ve.ui.MWPageSettingsDialogTool, ve.ui.DialogTool );
|
|
|
|
ve.ui.MWPageSettingsDialogTool.static.name = 'settings';
|
|
|
|
ve.ui.MWPageSettingsDialogTool.static.group = 'utility';
|
|
|
|
ve.ui.MWPageSettingsDialogTool.static.icon = 'settings';
|
|
|
|
ve.ui.MWPageSettingsDialogTool.static.title =
|
|
|
|
OO.ui.deferMsg( 'visualeditor-settings-tool' );
|
2014-04-02 23:29:04 +00:00
|
|
|
ve.ui.MWPageSettingsDialogTool.static.commandName = 'meta/settings';
|
2014-03-21 18:46:02 +00:00
|
|
|
ve.ui.MWPageSettingsDialogTool.static.autoAddToCatchall = false;
|
|
|
|
ve.ui.MWPageSettingsDialogTool.static.autoAddToGroup = false;
|
2014-02-27 15:17:00 +00:00
|
|
|
ve.ui.toolFactory.register( ve.ui.MWPageSettingsDialogTool );
|
|
|
|
|
|
|
|
/**
|
|
|
|
* MediaWiki UserInterface advanced page settings tool.
|
|
|
|
*
|
|
|
|
* @class
|
|
|
|
* @extends ve.ui.DialogTool
|
|
|
|
* @constructor
|
|
|
|
* @param {OO.ui.Toolbar} toolbar
|
|
|
|
* @param {Object} [config] Configuration options
|
|
|
|
*/
|
|
|
|
ve.ui.MWAdvancedPageSettingsDialogTool = function VeUiMWAdvancedPageSettingsDialogTool( toolbar, config ) {
|
|
|
|
ve.ui.DialogTool.call( this, toolbar, config );
|
|
|
|
};
|
|
|
|
OO.inheritClass( ve.ui.MWAdvancedPageSettingsDialogTool, ve.ui.DialogTool );
|
|
|
|
ve.ui.MWAdvancedPageSettingsDialogTool.static.name = 'advancedSettings';
|
|
|
|
ve.ui.MWAdvancedPageSettingsDialogTool.static.group = 'utility';
|
|
|
|
ve.ui.MWAdvancedPageSettingsDialogTool.static.icon = 'advanced';
|
|
|
|
ve.ui.MWAdvancedPageSettingsDialogTool.static.title =
|
|
|
|
OO.ui.deferMsg( 'visualeditor-advancedsettings-tool' );
|
2014-04-02 23:29:04 +00:00
|
|
|
ve.ui.MWAdvancedPageSettingsDialogTool.static.commandName = 'meta/advanced';
|
2014-03-21 18:46:02 +00:00
|
|
|
ve.ui.MWAdvancedPageSettingsDialogTool.static.autoAddToCatchall = false;
|
|
|
|
ve.ui.MWAdvancedPageSettingsDialogTool.static.autoAddToGroup = false;
|
2014-02-27 15:17:00 +00:00
|
|
|
ve.ui.toolFactory.register( ve.ui.MWAdvancedPageSettingsDialogTool );
|
|
|
|
|
|
|
|
/**
|
|
|
|
* MediaWiki UserInterface categories tool.
|
|
|
|
*
|
|
|
|
* @class
|
|
|
|
* @extends ve.ui.DialogTool
|
|
|
|
* @constructor
|
|
|
|
* @param {OO.ui.Toolbar} toolbar
|
|
|
|
* @param {Object} [config] Configuration options
|
|
|
|
*/
|
|
|
|
ve.ui.MWCategoriesDialogTool = function VeUiMWCategoriesDialogTool( toolbar, config ) {
|
|
|
|
ve.ui.DialogTool.call( this, toolbar, config );
|
|
|
|
};
|
|
|
|
OO.inheritClass( ve.ui.MWCategoriesDialogTool, ve.ui.DialogTool );
|
|
|
|
ve.ui.MWCategoriesDialogTool.static.name = 'categories';
|
|
|
|
ve.ui.MWCategoriesDialogTool.static.group = 'utility';
|
|
|
|
ve.ui.MWCategoriesDialogTool.static.icon = 'tag';
|
|
|
|
ve.ui.MWCategoriesDialogTool.static.title =
|
|
|
|
OO.ui.deferMsg( 'visualeditor-categories-tool' );
|
2014-04-02 23:29:04 +00:00
|
|
|
ve.ui.MWCategoriesDialogTool.static.commandName = 'meta/categories';
|
2014-03-21 18:46:02 +00:00
|
|
|
ve.ui.MWCategoriesDialogTool.static.autoAddToCatchall = false;
|
|
|
|
ve.ui.MWCategoriesDialogTool.static.autoAddToGroup = false;
|
2014-02-27 15:17:00 +00:00
|
|
|
ve.ui.toolFactory.register( ve.ui.MWCategoriesDialogTool );
|
|
|
|
|
|
|
|
/**
|
|
|
|
* MediaWiki UserInterface languages tool.
|
|
|
|
*
|
|
|
|
* @class
|
|
|
|
* @extends ve.ui.DialogTool
|
|
|
|
* @constructor
|
|
|
|
* @param {OO.ui.Toolbar} toolbar
|
|
|
|
* @param {Object} [config] Configuration options
|
|
|
|
*/
|
|
|
|
ve.ui.MWLanguagesDialogTool = function VeUiMWLanguagesDialogTool( toolbar, config ) {
|
|
|
|
ve.ui.DialogTool.call( this, toolbar, config );
|
|
|
|
};
|
|
|
|
OO.inheritClass( ve.ui.MWLanguagesDialogTool, ve.ui.DialogTool );
|
|
|
|
ve.ui.MWLanguagesDialogTool.static.name = 'languages';
|
|
|
|
ve.ui.MWLanguagesDialogTool.static.group = 'utility';
|
2015-04-16 20:46:49 +00:00
|
|
|
ve.ui.MWLanguagesDialogTool.static.icon = 'textLanguage';
|
2014-02-27 15:17:00 +00:00
|
|
|
ve.ui.MWLanguagesDialogTool.static.title =
|
|
|
|
OO.ui.deferMsg( 'visualeditor-languages-tool' );
|
2014-04-02 23:29:04 +00:00
|
|
|
ve.ui.MWLanguagesDialogTool.static.commandName = 'meta/languages';
|
2014-03-21 18:46:02 +00:00
|
|
|
ve.ui.MWLanguagesDialogTool.static.autoAddToCatchall = false;
|
|
|
|
ve.ui.MWLanguagesDialogTool.static.autoAddToGroup = false;
|
2014-02-27 15:17:00 +00:00
|
|
|
ve.ui.toolFactory.register( ve.ui.MWLanguagesDialogTool );
|