2013-06-17 09:42:53 +00:00
|
|
|
// TODO(grosbouddha): put under pskl namespace.
|
2012-08-31 08:45:07 +00:00
|
|
|
Events = {
|
2012-09-10 22:52:09 +00:00
|
|
|
|
|
|
|
TOOL_SELECTED : "TOOL_SELECTED",
|
|
|
|
TOOL_RELEASED : "TOOL_RELEASED",
|
2013-04-08 23:32:30 +00:00
|
|
|
PRIMARY_COLOR_SELECTED: "PRIMARY_COLOR_SELECTED",
|
|
|
|
PRIMARY_COLOR_UPDATED: "PRIMARY_COLOR_UPDATED",
|
|
|
|
SECONDARY_COLOR_SELECTED: "SECONDARY_COLOR_SELECTED",
|
|
|
|
SECONDARY_COLOR_UPDATED: "SECONDARY_COLOR_UPDATED",
|
2012-09-02 23:24:55 +00:00
|
|
|
|
2012-09-10 22:52:09 +00:00
|
|
|
/**
|
|
|
|
* 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-09-02 23:24:55 +00:00
|
|
|
|
2012-09-10 22:52:09 +00:00
|
|
|
CANVAS_RIGHT_CLICKED: "CANVAS_RIGHT_CLICKED",
|
2012-09-02 23:24:55 +00:00
|
|
|
|
2012-09-10 22:52:09 +00:00
|
|
|
/**
|
|
|
|
* Event to request a refresh of the display.
|
|
|
|
* 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-03 20:30:53 +00:00
|
|
|
|
2012-09-10 22:52:09 +00: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-08 16:44:06 +00:00
|
|
|
|
2013-06-17 18:24:27 +00:00
|
|
|
/**
|
|
|
|
* Fired each time a user setting change.
|
|
|
|
* The payload will be:
|
|
|
|
* 1st argument: Name of the settings
|
|
|
|
* 2nd argument: New value
|
|
|
|
*/
|
|
|
|
USER_SETTINGS_CHANGED: "USER_SETTINGS_CHANGED",
|
2012-09-16 14:16:09 +00:00
|
|
|
|
2012-09-10 22:52:09 +00: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-12 10:01:47 +00:00
|
|
|
|
2012-09-16 16:48:32 +00:00
|
|
|
FRAME_SIZE_CHANGED : "FRAME_SIZE_CHANGED",
|
|
|
|
|
2012-09-12 10:01:47 +00:00
|
|
|
CURRENT_FRAME_SET: "CURRENT_FRAME_SET",
|
|
|
|
|
|
|
|
SELECTION_CREATED: "SELECTION_CREATED",
|
2012-09-13 20:57:32 +00:00
|
|
|
SELECTION_MOVE_REQUEST: "SELECTION_MOVE_REQUEST",
|
|
|
|
SELECTION_DISMISSED: "SELECTION_DISMISSED",
|
2012-09-10 22:52:09 +00:00
|
|
|
|
|
|
|
SHOW_NOTIFICATION: "SHOW_NOTIFICATION",
|
2012-09-12 10:01:47 +00:00
|
|
|
HIDE_NOTIFICATION: "HIDE_NOTIFICATION",
|
|
|
|
|
|
|
|
UNDO: "UNDO",
|
|
|
|
REDO: "REDO",
|
|
|
|
CUT: "CUT",
|
|
|
|
COPY: "COPY",
|
|
|
|
PASTE: "PASTE"
|
2012-08-31 08:45:07 +00:00
|
|
|
};
|