- extend_column: () ->\r
- null\r
- \r
- test: () ->\r
- confirm( @has_picture() )\r
- confirm( @has_part() )\r
- confirm( @parts() )\r
- confirm( @has_helper('column_name') )\r
- confirm( @element_name() )\r
- confirm( @extend_column() )\r
- confirm( @extend_element_name() )\r
- confirm( @find_configurations(window.configurations,'v') )\r
- confirm( @new_index() )\r
- confirm( @set_new_index(3) )\r
- confirm( @set_new_panel('v') )\r
- confirm( @get_new_panel() )\r
- confirm( '@get_panel()' )\r
- confirm( @get_panel() )\r
- confirm( @tag_id('c') )\r
- confirm( @field_tag_id('f') )\r
- confirm( @tag_panel_id() )\r
- confirm( @tag_element_id() )\r
- confirm( @tag_element_type() )\r
- confirm( @tag_new_index() )\r
- confirm( @path_name() )\r
- confirm( @form_template() )\r
- confirm( @scenario_template() )\r
- confirm( @element_face_template() )\r
- confirm( @form_helper_template('colum_name') )\r
- confirm( @tag_attributes('column') )\r
- confirm( @field_tag_attributes('column', 0, {}) )\r
- confirm( @any_tag_attributes('name', {}) )\r
- confirm( @select_tag_attributes(true, 'column', 0) )\r
- confirm( @tag_attr('column', {}) )\r
- confirm( @field_tag_attr('column', 1, {}) )\r
- confirm( @any_tag_attr('name', {}) )\r
-\r
-@PanelPicture = PanelPicture\r
+ symbol_option: () ->\r
+ retriever = @speech_balloon_template()\r
+ @listenTo(retriever, 'retrieve', @retrieve_speech_balloon_template)\r
+ retriever.retrieve()\r
+ \r
+ retrieve_speech_balloon_template: (speech_balloon_template) -> \r
+ retriever = speech_balloon_template.system_picture()\r
+ @listenTo(retriever, 'retrieve', @retrieve_system_picture)\r
+ retriever.retrieve()\r
+ \r
+ retrieve_system_picture: (system_picture) -> \r
+ @trigger('ready:symbol', system_picture.tmb_opt_img_tag())\r
+ \r
+ filer_caption: () ->\r
+ retriever = @retriever()\r
+ @listenTo(retriever, 'retrieve', @retrieve_filer_caption)\r
+ retriever.retrieve()\r
+ \r
+ retrieve_filer_caption: (item) -> \r
+ caption = item.escape('caption')\r
+ @trigger('ready:caption', caption)\r
+ \r
+ plain_scenario: () ->\r
+ @get('caption')\r
+ \r
+ element_face: () ->\r
+ new Pettanr.Views.SpeechBalloon.ElementFace({element: this})\r
+ \r
+ initialize: (attr, options) ->\r
+ super(attr, options)\r
+ if @id\r
+ @url = @url + @id\r
+ \r
+class Pettanr.SpeechBalloon.TraceFromBalloon\r
+ \r
+ constructor: (options) ->\r
+ _.extend(this, Backbone.Events)\r
+ \r
+ trace: (balloon) ->\r
+ @balloon(balloon)\r
+ \r
+ balloon: (balloon) ->\r
+ retriever = new Pettanr.Cache.Retriever(Pettanr.SpeechBalloon, balloon.get('speech_balloon_id'))\r
+ @listenTo(retriever, 'retrieve', @speech_balloon)\r
+ retriever.retrieve()\r
+ \r
+ speech_balloon: (speech_balloon) ->\r
+ @trigger('trace', speech_balloon)\r
+ \r
+class Pettanr.SpeechBalloon.TraceFromSpeech\r
+ \r
+ constructor: (options) ->\r
+ _.extend(this, Backbone.Events)\r
+ \r
+ trace: (speech) ->\r
+ @speech(speech)\r
+ \r
+ speech: (speech) ->\r
+ retriever = new Pettanr.Cache.Retriever(Pettanr.SpeechBalloon, speech.get('speech_balloon_id'))\r
+ @listenTo(retriever, 'retrieve', @speech_balloon)\r
+ retriever.retrieve()\r
+ \r
+ speech_balloon: (speech_balloon) ->\r
+ @trigger('trace', speech_balloon)\r
+ \r