mirror of
https://github.com/piskelapp/piskel.git
synced 2023-08-10 21:12:52 +03:00
26 lines
555 B
JavaScript
26 lines
555 B
JavaScript
|
(function () {
|
||
|
var ns = $.namespace('pskl.tools');
|
||
|
|
||
|
ns.Tool = function () {
|
||
|
this.toolId = 'tool';
|
||
|
this.helpText = 'Abstract tool';
|
||
|
this.tooltipDescriptors = [];
|
||
|
};
|
||
|
|
||
|
ns.Tool.prototype.getHelpText = function() {
|
||
|
return this.helpText;
|
||
|
};
|
||
|
|
||
|
ns.Tool.prototype.getId = function() {
|
||
|
return this.toolId;
|
||
|
};
|
||
|
|
||
|
ns.Tool.prototype.raiseSaveStateEvent = function (replayData) {
|
||
|
$.publish(Events.PISKEL_SAVE_STATE, {
|
||
|
type : pskl.service.HistoryService.REPLAY,
|
||
|
scope : this,
|
||
|
replay : replayData
|
||
|
});
|
||
|
};
|
||
|
})();
|