2011-12-05 21:10:19 +00:00
|
|
|
/**
|
|
|
|
* Creates an es.Tool object.
|
|
|
|
*
|
|
|
|
* @class
|
|
|
|
* @constructor
|
|
|
|
* @param {es.ToolbarView} toolbar
|
|
|
|
* @param {String} name
|
|
|
|
*/
|
2011-12-09 21:16:42 +00:00
|
|
|
es.Tool = function( toolbar, name, title ) {
|
2011-12-04 02:59:53 +00:00
|
|
|
this.toolbar = toolbar;
|
|
|
|
this.name = name;
|
2011-12-09 21:16:42 +00:00
|
|
|
this.title = title;
|
|
|
|
this.$ = $( '<div class="es-tool"></div>' ).attr( 'title', this.title );
|
2011-12-04 02:59:53 +00:00
|
|
|
};
|
|
|
|
|
2011-12-05 21:10:19 +00:00
|
|
|
/* Static Members */
|
|
|
|
|
|
|
|
es.Tool.tools = {};
|
|
|
|
|
|
|
|
/* Methods */
|
|
|
|
|
2011-12-04 02:59:53 +00:00
|
|
|
es.Tool.prototype.updateState = function() {
|
|
|
|
throw 'Tool.updateState not implemented in this subclass:' + this.constructor;
|
|
|
|
};
|