2013-10-04 17:51:44 +00:00
|
|
|
/*!
|
2013-11-05 00:29:50 +00:00
|
|
|
* VisualEditor UserInterface Dialog class.
|
2013-10-04 17:51:44 +00:00
|
|
|
*
|
|
|
|
* @copyright 2011-2013 VisualEditor Team and others; see AUTHORS.txt
|
|
|
|
* @license The MIT License (MIT); see LICENSE.txt
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
2013-11-05 00:29:50 +00:00
|
|
|
* Dialog with an associated surface.
|
2013-10-04 17:51:44 +00:00
|
|
|
*
|
|
|
|
* @class
|
|
|
|
* @abstract
|
2013-10-09 20:09:59 +00:00
|
|
|
* @extends OO.ui.Dialog
|
2013-10-04 17:51:44 +00:00
|
|
|
*
|
|
|
|
* @constructor
|
2013-11-05 00:29:50 +00:00
|
|
|
* @param {ve.ui.WindowSet} windowSet Window set this dialog is part of
|
2013-10-04 17:51:44 +00:00
|
|
|
* @param {Object} [config] Configuration options
|
|
|
|
*/
|
2013-11-05 00:29:50 +00:00
|
|
|
ve.ui.Dialog = function VeUiDialog( windowSet, config ) {
|
2013-10-04 17:51:44 +00:00
|
|
|
// Parent constructor
|
2013-10-09 20:09:59 +00:00
|
|
|
OO.ui.Dialog.call( this, windowSet, config );
|
2013-10-04 17:51:44 +00:00
|
|
|
|
|
|
|
// Properties
|
|
|
|
this.surface = windowSet.getSurface();
|
|
|
|
};
|
|
|
|
|
|
|
|
/* Inheritance */
|
|
|
|
|
2013-11-05 00:29:50 +00:00
|
|
|
OO.inheritClass( ve.ui.Dialog, OO.ui.Dialog );
|