Layers : FRAMESHEET_RESET -> PISKEL_RESET

Framesheet no longer exists.
This commit is contained in:
Julian Descottes 2013-09-29 00:01:18 +02:00
parent ca427e0853
commit be9238c9b1
5 changed files with 14 additions and 14 deletions

View File

@ -43,7 +43,7 @@ var Events = {
* The framesheet was reseted and is now probably drastically different.
* Number of frames, content of frames, color used for the palette may have changed.
*/
FRAMESHEET_RESET: "FRAMESHEET_RESET",
PISKEL_RESET: "PISKEL_RESET",
FRAME_SIZE_CHANGED : "FRAME_SIZE_CHANGED",

View File

@ -12,7 +12,7 @@
this.rootEl.addEventListener('click', this.onClick_.bind(this));
$.subscribe(Events.FRAMESHEET_RESET, this.renderLayerList_.bind(this));
$.subscribe(Events.PISKEL_RESET, this.renderLayerList_.bind(this));
this.renderLayerList_();
};

View File

@ -12,7 +12,7 @@
this.layerIdCounter = 1;
$.publish(Events.FRAMESHEET_RESET);
$.publish(Events.PISKEL_RESET);
$.publish(Events.FRAME_SIZE_CHANGED);
};
@ -74,7 +74,7 @@
this.setCurrentFrameIndex(this.currentFrameIndex - 1);
}
$.publish(Events.FRAMESHEET_RESET);
$.publish(Events.PISKEL_RESET);
};
ns.PiskelController.prototype.duplicateFrameAt = function (index) {
@ -98,12 +98,12 @@
ns.PiskelController.prototype.setCurrentFrameIndex = function (index) {
this.currentFrameIndex = index;
$.publish(Events.FRAMESHEET_RESET);
$.publish(Events.PISKEL_RESET);
};
ns.PiskelController.prototype.setCurrentLayerIndex = function (index) {
this.currentLayerIndex = index;
$.publish(Events.FRAMESHEET_RESET);
$.publish(Events.PISKEL_RESET);
};
ns.PiskelController.prototype.selectLayer = function (layer) {

View File

@ -11,8 +11,8 @@
ns.PreviewFilmController.prototype.init = function() {
$.subscribe(Events.TOOL_RELEASED, this.flagForRedraw_.bind(this));
$.subscribe(Events.FRAMESHEET_RESET, this.flagForRedraw_.bind(this));
$.subscribe(Events.FRAMESHEET_RESET, this.refreshDPI_.bind(this));
$.subscribe(Events.PISKEL_RESET, this.flagForRedraw_.bind(this));
$.subscribe(Events.PISKEL_RESET, this.refreshDPI_.bind(this));
$('#preview-list-scroller').scroll(this.updateScrollerOverflows.bind(this));
this.updateScrollerOverflows();

View File

@ -17,12 +17,12 @@
ns.HistoryService.prototype.undo = function () {
this.piskelController.getCurrentFrame().loadPreviousState();
$.publish(Events.FRAMESHEET_RESET);
$.publish(Events.PISKEL_RESET);
};
ns.HistoryService.prototype.redo = function () {
this.piskelController.getCurrentFrame().loadNextState();
$.publish(Events.FRAMESHEET_RESET);
$.publish(Events.PISKEL_RESET);
};
})();