2013-08-03 14:41:22 +00:00
|
|
|
/*!
|
|
|
|
* VisualEditor UserInterface MWHieroInspector class.
|
|
|
|
*
|
2014-01-05 12:05:05 +00:00
|
|
|
* @copyright 2011-2014 VisualEditor Team and others; see AUTHORS.txt
|
2013-08-03 14:41:22 +00:00
|
|
|
* @license The MIT License (MIT); see LICENSE.txt
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* MediaWiki hieroglyphics inspector.
|
|
|
|
*
|
|
|
|
* @class
|
2014-04-18 00:56:32 +00:00
|
|
|
* @extends ve.ui.MWLiveExtensionInspector
|
2013-08-03 14:41:22 +00:00
|
|
|
*
|
|
|
|
* @constructor
|
2013-09-25 10:21:09 +00:00
|
|
|
* @param {Object} [config] Configuration options
|
2013-08-03 14:41:22 +00:00
|
|
|
*/
|
2014-04-04 17:42:13 +00:00
|
|
|
ve.ui.MWHieroInspector = function VeUiMWHieroInspector( config ) {
|
2013-08-03 14:41:22 +00:00
|
|
|
// Parent constructor
|
2014-04-18 00:56:32 +00:00
|
|
|
ve.ui.MWLiveExtensionInspector.call( this, config );
|
2013-08-03 14:41:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
/* Inheritance */
|
|
|
|
|
2014-04-18 00:56:32 +00:00
|
|
|
OO.inheritClass( ve.ui.MWHieroInspector, ve.ui.MWLiveExtensionInspector );
|
2013-08-03 14:41:22 +00:00
|
|
|
|
|
|
|
/* Static properties */
|
|
|
|
|
2013-08-27 23:28:29 +00:00
|
|
|
ve.ui.MWHieroInspector.static.name = 'hiero';
|
|
|
|
|
2013-08-03 14:41:22 +00:00
|
|
|
ve.ui.MWHieroInspector.static.icon = 'hiero';
|
|
|
|
|
2014-02-12 21:45:37 +00:00
|
|
|
ve.ui.MWHieroInspector.static.title =
|
|
|
|
OO.ui.deferMsg( 'visualeditor-mwhieroinspector-title' );
|
2013-08-03 14:41:22 +00:00
|
|
|
|
|
|
|
ve.ui.MWHieroInspector.static.nodeModel = ve.dm.MWHieroNode;
|
|
|
|
|
2014-04-18 00:03:51 +00:00
|
|
|
ve.ui.MWHieroInspector.static.dir = 'ltr';
|
|
|
|
|
2013-08-03 14:41:22 +00:00
|
|
|
/* Methods */
|
|
|
|
|
|
|
|
ve.ui.MWHieroInspector.prototype.initialize = function () {
|
|
|
|
// Parent method
|
|
|
|
ve.ui.MWExtensionInspector.prototype.initialize.call( this );
|
|
|
|
|
2013-11-01 19:45:59 +00:00
|
|
|
this.input.$element.addClass( 've-ui-mwHieroInspector-input' );
|
2013-08-03 14:41:22 +00:00
|
|
|
};
|
|
|
|
|
2013-11-08 14:57:50 +00:00
|
|
|
ve.ui.MWHieroInspector.prototype.onOpen = function () {
|
|
|
|
// Parent method
|
|
|
|
ve.ui.MWExtensionInspector.prototype.onOpen.call( this );
|
|
|
|
};
|
|
|
|
|
2013-08-03 14:41:22 +00:00
|
|
|
/* Registration */
|
|
|
|
|
2014-04-21 22:31:21 +00:00
|
|
|
ve.ui.windowFactory.register( ve.ui.MWHieroInspector );
|