-class SpeechBalloon extends Element\r
- @single: () ->\r
+class Pettanr.Speech extends Peta.Element\r
+ \r
+ @singular: () ->\r
'Speech'\r
\r
@plural: () ->\r
'Speeches'\r
\r
- @colum_structures: ->\r
- {}\r
- \r
defaults: {\r
- x: 11\r
+ id: null,\r
+ x: 0,\r
+ y: 0,\r
+ width: 100,\r
+ height: 100\r
} \r
\r
- initialize: () ->\r
- confirm("Welcome to this world")\r
+ @pick_item_name: () ->\r
+ 'speech_balloon_template'\r
+ \r
+ @trace_routes: () ->\r
+ {\r
+ speech_balloon: 'speech_balloon',\r
+ speech_balloon_template: ['speech_balloon', 'speech_balloon_template'],\r
+ symbol: ['speech_balloon', 'speech_balloon_template', 'system_picture']\r
+ }\r
+ \r
+ pick: () ->\r
+ # \r
+ speech_balloon_template = @templates.speech_balloon_template\r
+ writing_format = @templates.writing_format\r
+ {\r
+ speech_balloon_template_id: speech_balloon_template.get('id'),\r
+ speech_balloon_template_module_name: speech_balloon_template.get('module_name'),\r
+ writing_format_id: writing_format.get('id'),\r
+ writing_format_module_name: writing_format.get('module_name'),\r
+ }\r
+ \r
+ @text_align_texts: () -> \r
+ ['left', 'left', 'right', 'center']\r
+ \r
+ text_align_text: () ->\r
+ Pettanr.Speech.text_align_texts()[@get('text_align')]\r
\r
- @test: () ->\r
- confirm( @single())\r
- confirm( @plural() )\r
- confirm( @class_name() )\r
- confirm( @element_name() )\r
- confirm( @table_name() )\r
- confirm( @path_name() )\r
- confirm( @colum_structures() )\r
- \r
- has_picture: () ->\r
- true\r
+ scenario: () ->\r
+ @boosts('read')\r
+ @render(Pettanr.to_s(@get('content')))\r
\r
- has_part: () ->\r
- false\r
+ plain_scenario: () ->\r
+ @escape('content')\r
\r
- extend_column: () ->\r
- null\r
+ initialize: (attr, options) ->\r
+ super(attr, options)\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