2012-08-31 12:45:07 +04:00
|
|
|
Events = {
|
|
|
|
|
|
|
|
TOOL_SELECTED : "TOOL_SELECTED",
|
2012-09-07 02:18:59 +04:00
|
|
|
TOOL_RELEASED : "TOOL_RELEASED",
|
2012-09-03 03:24:55 +04:00
|
|
|
COLOR_SELECTED: "COLOR_SELECTED",
|
|
|
|
COLOR_USED: "COLOR_USED",
|
|
|
|
|
|
|
|
/**
|
|
|
|
* When this event is emitted, a request is sent to the localstorage
|
|
|
|
* Service to save the current framesheet. The storage service
|
|
|
|
* may not immediately store data (internal throttling of requests).
|
|
|
|
*/
|
|
|
|
LOCALSTORAGE_REQUEST: "LOCALSTORAGE_REQUEST",
|
|
|
|
|
2012-08-31 12:45:07 +04:00
|
|
|
CANVAS_RIGHT_CLICKED: "CANVAS_RIGHT_CLICKED",
|
2012-09-03 03:24:55 +04:00
|
|
|
CANVAS_RIGHT_CLICK_RELEASED: "CANVAS_RIGHT_CLICK_RELEASED",
|
|
|
|
|
|
|
|
/**
|
2012-09-04 00:30:53 +04:00
|
|
|
* Event to request a refresh of the display.
|
2012-09-03 03:24:55 +04:00
|
|
|
* A bit overkill but, it's just workaround in our current drawing system.
|
|
|
|
* TODO: Remove or rework when redraw system is refactored.
|
|
|
|
*/
|
|
|
|
REFRESH: "REFRESH",
|
2012-09-04 00:30:53 +04:00
|
|
|
|
2012-09-08 20:44:06 +04:00
|
|
|
/**
|
|
|
|
* Temporary event to bind the redraw of right preview film to the canvas.
|
|
|
|
* This redraw should be driven by model updates.
|
|
|
|
* TODO(vincz): Remove.
|
|
|
|
*/
|
|
|
|
REDRAW_PREVIEWFILM: "REDRAW_PREVIEWFILM",
|
|
|
|
|
2012-09-09 01:43:16 +04:00
|
|
|
GRID_DISPLAY_STATE_CHANGED: "GRID_DISPLAY_STATE_CHANGED",
|
|
|
|
|
2012-09-04 00:30:53 +04:00
|
|
|
/**
|
|
|
|
* 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",
|
2012-09-03 03:34:11 +04:00
|
|
|
|
2012-09-03 03:24:55 +04:00
|
|
|
SHOW_NOTIFICATION: "SHOW_NOTIFICATION",
|
|
|
|
HIDE_NOTIFICATION: "HIDE_NOTIFICATION"
|
2012-08-31 12:45:07 +04:00
|
|
|
};
|