OSDN Git Service

t#31896:
[pettanr/pettanr.git] / app / assets / javascripts / configurations.js.coffee
1 @configurations = {\r
2   models: {\r
3     Panel: 'panel',\r
4     panel: {\r
5       class_name: 'Panel',\r
6       table_name: 'panels',\r
7       attributes: {\r
8         id: {\r
9           type: 'number',\r
10           primary_key: 1,\r
11           rules : {\r
12             number: true,\r
13           }\r
14         },\r
15         width: {\r
16           type: 'number',\r
17           rules : {\r
18             required: true,\r
19             number: true,\r
20             min: 1,\r
21           }\r
22         },\r
23         height: {\r
24           type: 'number',\r
25           rules : {\r
26             required: true,\r
27             number: true,\r
28             min: 1,\r
29           }\r
30         },\r
31         border: {\r
32           type: 'number',\r
33           rules : {\r
34             required: true,\r
35             number: true,\r
36             min: 0,\r
37           }\r
38         },\r
39         caption: {\r
40           type: 'text',\r
41           rules : {\r
42           }\r
43         },\r
44         publish: {\r
45           type: 'number',\r
46           rules : {\r
47             required: true,\r
48             number: true,\r
49           }\r
50         },\r
51         author_id: {\r
52           type: 'number',\r
53           rules : {\r
54             required: true,\r
55             number: true,\r
56           }\r
57         },\r
58         created_at: {\r
59           type: 'datetime',\r
60         },\r
61         updated_at: {\r
62           type: 'datetime',\r
63         }\r
64       }\r
65     },\r
66     PanelPicture: 'panel_picture',\r
67     panel_picture: {\r
68       class_name: 'PanelPicture',\r
69       table_name: 'panel_pictures',\r
70       attributes: {\r
71         id: {\r
72           type: 'number',\r
73           primary_key: 1,\r
74           rules : {\r
75             number: true,\r
76           }\r
77         },\r
78         panel_id: {\r
79           type: 'number',\r
80           rules : {\r
81             number: true,\r
82           }\r
83         },\r
84         picture_id: {\r
85           type: 'number',\r
86           rules : {\r
87             required: true,\r
88             number: true,\r
89           }\r
90         },\r
91         caption: {\r
92           type: 'text',\r
93           rules : {\r
94           }\r
95         },\r
96         x: {\r
97           type: 'number',\r
98           rules : {\r
99             required: true,\r
100             number: true,\r
101           }\r
102         },\r
103         y: {\r
104           type: 'number',\r
105           rules : {\r
106             required: true,\r
107             number: true,\r
108           }\r
109         },\r
110         width: {\r
111           type: 'number',\r
112           rules : {\r
113             required: true,\r
114             number: true,\r
115           }\r
116         },\r
117         height: {\r
118           type: 'number',\r
119           rules : {\r
120             required: true,\r
121             number: true,\r
122           }\r
123         },\r
124         link: {\r
125           type: 'text',\r
126           rules : {\r
127             url: true,\r
128           }\r
129         },\r
130         z: {\r
131           type: 'number',\r
132           rules : {\r
133             required: true,\r
134             number: true,\r
135             min: 1,\r
136           }\r
137         },\r
138         t: {\r
139           type: 'number',\r
140           rules : {\r
141             required: true,\r
142             number: true,\r
143             min: 0,\r
144           }\r
145         },\r
146         created_at: {\r
147           type: 'datetime',\r
148         },\r
149         updated_at: {\r
150           type: 'datetime',\r
151         }\r
152       }\r
153     },\r
154     SpeechBalloon: 'speech_balloon',\r
155     speech_balloon: {\r
156       class_name: 'SpeechBalloon',\r
157       table_name: 'speech_balloons',\r
158       extend: 'classname', \r
159       attributes: {\r
160         id: {\r
161           type: 'number',\r
162           primary_key: 1,\r
163           rules : {\r
164             number: true,\r
165           }\r
166         },\r
167         panel_id: {\r
168           type: 'number',\r
169           rules : {\r
170             number: true,\r
171           }\r
172         },\r
173         speech_balloon_template_id: {\r
174           type: 'number',\r
175           rules : {\r
176             required: true,\r
177             number: true,\r
178           }\r
179         },\r
180         classname: {\r
181           type: 'text',\r
182           rules : {\r
183             required: true,\r
184           }\r
185         },\r
186         z: {\r
187           type: 'number',\r
188           rules : {\r
189             required: true,\r
190             number: true,\r
191             min: 1,\r
192           }\r
193         },\r
194         t: {\r
195           type: 'number',\r
196           rules : {\r
197             required: true,\r
198             number: true,\r
199             min: 0,\r
200           }\r
201         },\r
202         settings: {\r
203           type: 'text',\r
204           rules : {\r
205           }\r
206         },\r
207         caption: {\r
208           type: 'text',\r
209           rules : {\r
210           }\r
211         },\r
212         created_at: {\r
213           type: 'datetime',\r
214         },\r
215         updated_at: {\r
216           type: 'datetime',\r
217         }\r
218       }\r
219     }, \r
220     Balloon: 'balloon',\r
221     balloon: {\r
222       class_name: 'Balloon',\r
223       table_name: 'balloons',\r
224       attributes: {\r
225         id: {\r
226           type: 'number',\r
227           primary_key: 1,\r
228           rules : {\r
229             number: true,\r
230           }\r
231         },\r
232         speech_balloon_id: {\r
233           type: 'number',\r
234           rules : {\r
235             number: true,\r
236           }\r
237         },\r
238         system_picture_id: {\r
239           type: 'number',\r
240           rules : {\r
241             required: true,\r
242             number: true,\r
243           }\r
244         },\r
245         x: {\r
246           type: 'number',\r
247           rules : {\r
248             required: true,\r
249             number: true,\r
250           }\r
251         },\r
252         y: {\r
253           type: 'number',\r
254           rules : {\r
255             required: true,\r
256             number: true,\r
257           }\r
258         },\r
259         width: {\r
260           type: 'number',\r
261           rules : {\r
262             required: true,\r
263             number: true,\r
264             min: 1,\r
265           }\r
266         },\r
267         height: {\r
268           type: 'number',\r
269           rules : {\r
270             required: true,\r
271             number: true,\r
272             min: 1,\r
273           }\r
274         },\r
275         r: {\r
276           type: 'number',\r
277           rules : {\r
278             required: true,\r
279             number: true,\r
280           }\r
281         },\r
282         settings: {\r
283           type: 'text',\r
284           rules : {\r
285           }\r
286         },\r
287         created_at: {\r
288           type: 'datetime',\r
289         },\r
290         updated_at: {\r
291           type: 'datetime',\r
292         }\r
293       }\r
294     },\r
295     Speech: 'speech',\r
296     speech: {\r
297       class_name: 'Speech',\r
298       table_name: 'speeches',\r
299       attributes: {\r
300         id: {\r
301           type: 'number',\r
302           primary_key: 1,\r
303           rules : {\r
304             number: true,\r
305           }\r
306         },\r
307         speech_balloon_id: {\r
308           type: 'number',\r
309           rules : {\r
310             number: true,\r
311           }\r
312         },\r
313         writing_format_id: {\r
314           type: 'number',\r
315           rules : {\r
316             required: true,\r
317             number: true,\r
318           }\r
319         },\r
320         content: {\r
321           type: 'text',\r
322           rules : {\r
323           }\r
324         },\r
325         font_size: {\r
326           type: 'float',\r
327           rules : {\r
328             required: true,\r
329             number: true,\r
330             min: 0,\r
331           }\r
332         },\r
333         text_align: {\r
334           type: 'number',\r
335           rules : {\r
336             required: true,\r
337             number: true,\r
338             range: [0, 3],\r
339           }\r
340         },\r
341         fore_color: {\r
342           type: 'number',\r
343           rules : {\r
344             required: true,\r
345             number: true,\r
346             range: [0, 0xffffff],\r
347           }\r
348         },\r
349         x: {\r
350           type: 'number',\r
351           rules : {\r
352             required: true,\r
353             number: true,\r
354           }\r
355         },\r
356         y: {\r
357           type: 'number',\r
358           rules : {\r
359             required: true,\r
360             number: true,\r
361           }\r
362         },\r
363         width: {\r
364           type: 'number',\r
365           rules : {\r
366             required: true,\r
367             number: true,\r
368             min: 1,\r
369           }\r
370         },\r
371         height: {\r
372           type: 'number',\r
373           rules : {\r
374             required: true,\r
375             number: true,\r
376             min: 1,\r
377           }\r
378         },\r
379         quotes: {\r
380           type: 'text',\r
381           rules : {\r
382           }\r
383         },\r
384         settings: {\r
385           type: 'text',\r
386           rules : {\r
387           }\r
388         },\r
389         created_at: {\r
390           type: 'datetime',\r
391         },\r
392         updated_at: {\r
393           type: 'datetime',\r
394         }\r
395       }\r
396     },\r
397     GroundPicture: 'ground_picture',\r
398     ground_picture: {\r
399       class_name: 'GroundPicture',\r
400       table_name: 'ground_pictures',\r
401       attributes: {\r
402         id: {\r
403           type: 'number',\r
404           primary_key: 1,\r
405           rules : {\r
406             number: true,\r
407           }\r
408         },\r
409         panel_id: {\r
410           type: 'number',\r
411           rules : {\r
412             number: true,\r
413           }\r
414         },\r
415         picture_id: {\r
416           type: 'number',\r
417           rules : {\r
418             required: true,\r
419             number: true,\r
420           }\r
421         },\r
422         caption: {\r
423           type: 'text',\r
424           rules : {\r
425           }\r
426         },\r
427         repeat: {\r
428           type: 'number',\r
429           rules : {\r
430             required: true,\r
431             number: true,\r
432             range: [0, 3],\r
433           }\r
434         },\r
435         x: {\r
436           type: 'number',\r
437           rules : {\r
438             required: true,\r
439             number: true,\r
440           }\r
441         },\r
442         y: {\r
443           type: 'number',\r
444           rules : {\r
445             required: true,\r
446             number: true,\r
447           }\r
448         },\r
449         z: {\r
450           type: 'number',\r
451           rules : {\r
452             required: true,\r
453             number: true,\r
454             min: 1,\r
455           }\r
456         },\r
457         t: {\r
458           type: 'number',\r
459           rules : {\r
460             required: true,\r
461             number: true,\r
462             min: 0,\r
463           }\r
464         },\r
465         created_at: {\r
466           type: 'datetime',\r
467         },\r
468         updated_at: {\r
469           type: 'datetime',\r
470         }\r
471       }\r
472     },\r
473     GroundColor: 'ground_color',\r
474     ground_color: {\r
475       class_name: 'GroundColor',\r
476       table_name: 'ground_colors',\r
477       attributes: {\r
478         id: {\r
479           type: 'number',\r
480           primary_key: 1,\r
481           rules : {\r
482             number: true,\r
483           }\r
484         },\r
485         panel_id: {\r
486           type: 'number',\r
487           rules : {\r
488             number: true,\r
489           }\r
490         },\r
491         caption: {\r
492           type: 'text',\r
493           rules : {\r
494           }\r
495         },\r
496         code: {\r
497           type: 'number',\r
498           rules : {\r
499             required: true,\r
500             number: true,\r
501             range: [0, 0xffffff],\r
502           }\r
503         },\r
504         orientation: {\r
505           type: 'number',\r
506           rules : {\r
507             required: true,\r
508             number: true,\r
509             range: [0, 1],\r
510           }\r
511         },\r
512         xy: {\r
513           type: 'number',\r
514           rules : {\r
515             number: true,\r
516           }\r
517         },\r
518         wh: {\r
519           type: 'number',\r
520           rules : {\r
521             number: true,\r
522           }\r
523         },\r
524         z: {\r
525           type: 'number',\r
526           rules : {\r
527             required: true,\r
528             number: true,\r
529             min: 1,\r
530           }\r
531         },\r
532         t: {\r
533           type: 'number',\r
534           rules : {\r
535             required: true,\r
536             number: true,\r
537             min: 0,\r
538           }\r
539         },\r
540         created_at: {\r
541           type: 'datetime',\r
542         },\r
543         updated_at: {\r
544           type: 'datetime',\r
545         }\r
546       }\r
547     },\r
548     WritingFormat: 'writing_format',\r
549     writing_format: {\r
550       class_name: 'WritingFormat',\r
551       table_name: 'writing_formats',\r
552       attributes: {\r
553         id: {\r
554           type: 'number',\r
555           primary_key: 1,\r
556           rules : {\r
557             number: true,\r
558           }\r
559         },\r
560         name: {\r
561           type: 'text',\r
562           rules : {\r
563             required: true,\r
564           }\r
565         },\r
566         classname: {\r
567           type: 'text',\r
568           rules : {\r
569             required: true,\r
570           }\r
571         },\r
572         caption: {\r
573           type: 'text',\r
574           rules : {\r
575             required: true,\r
576           }\r
577         },\r
578         system_picture_id: {\r
579           type: 'number',\r
580           rules : {\r
581             required: true,\r
582             number: true,\r
583           }\r
584         },\r
585         settings: {\r
586           type: 'text',\r
587           rules : {\r
588             required: true,\r
589           }\r
590         },\r
591         created_at: {\r
592           type: 'datetime',\r
593         },\r
594         updated_at: {\r
595           type: 'datetime',\r
596         }\r
597       }\r
598     },\r
599 \r
600   },\r
601   elements: [\r
602     {\r
603       name: 'panel_picture',\r
604       path_name: 'panel_pictures', \r
605       parts: []\r
606     },\r
607     {\r
608       name: 'speech_balloon',\r
609       path_name: 'circle_speech_balloon/speech_balloons', \r
610       parts: ['balloon', 'speech']\r
611     },\r
612     {\r
613       name: 'ground_picture',\r
614       path_name: 'ground_pictures', \r
615       parts: []\r
616     },\r
617     {\r
618       name: 'ground_color',\r
619       path_name: 'ground_colors', \r
620       parts: []\r
621     },\r
622   ],\r
623   forms: {\r
624     Panel: 'panel',\r
625     panel: {\r
626       attributes: {\r
627         caption: {\r
628           column: 'caption',\r
629           type: 'text',\r
630           label: {\r
631           },\r
632           options: {\r
633             row_break: true\r
634           }\r
635         },\r
636         width: {\r
637           column: 'width',\r
638           type: 'number',\r
639           label: {\r
640           },\r
641           options: {\r
642             size: 5, \r
643           },\r
644         },\r
645         height: {\r
646           column: 'height',\r
647           type: 'number',\r
648           label: {\r
649           },\r
650           options: {\r
651             size: 5, \r
652             row_break: true\r
653           }, \r
654         },\r
655         border: {\r
656           column: 'border',\r
657           type: 'number',\r
658           label: {\r
659           },\r
660           options: {\r
661             size: 5, \r
662           },\r
663         },\r
664         publish: {\r
665           column: 'publish',\r
666           type: 'select',\r
667           label: {\r
668           },\r
669           options: {\r
670             source: 'magic_number',\r
671             key: 'comic_visible_items',\r
672             size: 5, \r
673             row_break: true\r
674           }\r
675         },\r
676         id: {\r
677           column: 'id',\r
678           type: 'hidden',\r
679           label: {\r
680             type: 'hidden'\r
681           },\r
682           options: {\r
683           }\r
684         },\r
685         author_id: {\r
686           column: 'author_id',\r
687           type: 'hidden',\r
688           label: {\r
689             type: 'hidden'\r
690           },\r
691           options: {\r
692           }\r
693         },\r
694       },\r
695       fields: [\r
696         'caption',\r
697         'width',\r
698         'height',\r
699         'border',\r
700         'publish',\r
701         'id',\r
702         'author_id',\r
703       ]\r
704     },\r
705     PanelPicture: 'panel_picture',\r
706     panel_picture: {\r
707       attributes: {\r
708         caption: {\r
709           column: 'caption',\r
710           type: 'text',\r
711           label: {\r
712           },\r
713           options: {\r
714             row_break: true\r
715           }\r
716         },\r
717         x: {\r
718           column: 'x',\r
719           type: 'number',\r
720           label: {\r
721           },\r
722           options: {\r
723             size: 5, \r
724           }\r
725         },\r
726         y: {\r
727           column: 'y',\r
728           type: 'number',\r
729           label: {\r
730           },\r
731           options: {\r
732             size: 5, \r
733             row_break: true\r
734           }\r
735         },\r
736         width: {\r
737           column: 'width',\r
738           type: 'number',\r
739           label: {\r
740           },\r
741           options: {\r
742             size: 5, \r
743             row_break: true\r
744           },\r
745           helpers: {\r
746             size: {\r
747               path: 'panels/size_helper',\r
748               options: {\r
749                 class: 'panel_picture_width_tool', \r
750               }\r
751             }\r
752           },\r
753         },\r
754         height: {\r
755           column: 'height',\r
756           type: 'number',\r
757           label: {\r
758           },\r
759           options: {\r
760             size: 5, \r
761             row_break: true\r
762           }, \r
763           helpers: {\r
764             size: {\r
765               path: 'panels/size_helper',\r
766               options: {\r
767                 class: 'panel_picture_height_tool', \r
768               }\r
769             }\r
770           },\r
771         },\r
772         link: {\r
773           column: 'link',\r
774           type: 'text',\r
775           label: {\r
776           },\r
777           options: {\r
778             row_break: true\r
779           }\r
780         },\r
781         id: {\r
782           column: 'id',\r
783           type: 'hidden',\r
784           label: {\r
785             type: 'hidden'\r
786           },\r
787           options: {\r
788           }\r
789         },\r
790         panel_id: {\r
791           column: 'panel_id',\r
792           type: 'hidden',\r
793           label: {\r
794             type: 'hidden'\r
795           },\r
796           options: {\r
797           }\r
798         },\r
799         picture_id: {\r
800           column: 'picture_id',\r
801           type: 'hidden',\r
802           label: {\r
803           },\r
804           helpers: {\r
805             popup: {\r
806               path: 'panels/popup_helper',\r
807               source: 'pictures',\r
808               options: {\r
809               }\r
810             }\r
811           }\r
812           options: {\r
813           }\r
814         },\r
815         z: {\r
816           column: 'z',\r
817           type: 'hidden',\r
818           label: {\r
819             type: 'hidden'\r
820           },\r
821           options: {\r
822           }\r
823         },\r
824         t: {\r
825           column: 't',\r
826           type: 'hidden',\r
827           label: {\r
828             type: 'hidden'\r
829           },\r
830           options: {\r
831           }\r
832         },\r
833       },\r
834       fields: [\r
835         'caption',\r
836         'x',\r
837         'y',\r
838         'width',\r
839         'height',\r
840         'link',\r
841         'id',\r
842         'panel_id',\r
843         'picture_id',\r
844         'z',\r
845         't',\r
846       ]\r
847     },\r
848     speech_balloon: {\r
849       attributes: {\r
850         'speech_balloon.id': {\r
851           column: 'id',\r
852           type: 'hidden',\r
853           label: {\r
854             type: 'hidden'\r
855           },\r
856           options: {\r
857           }\r
858         },\r
859         'speech_balloon.panel_id': {\r
860           column: 'panel_id',\r
861           type: 'hidden',\r
862           label: {\r
863             type: 'hidden'\r
864           },\r
865           options: {\r
866           }\r
867         },\r
868         'speech_balloon.speech_balloon_template_id': {\r
869           column: 'speech_balloon_template_id',\r
870           type: 'hidden',\r
871           label: {\r
872             type: 'hidden'\r
873           },\r
874           options: {\r
875           }\r
876         },\r
877         'speech_balloon.caption': {\r
878           column: 'caption',\r
879           type: 'text',\r
880           label: {\r
881           },\r
882           options: {\r
883             row_break: true\r
884           }\r
885         },\r
886         'speech_balloon.z': {\r
887           column: 'z',\r
888           type: 'hidden',\r
889           label: {\r
890             type: 'hidden'\r
891           },\r
892           options: {\r
893           }\r
894         },\r
895         'speech_balloon.t': {\r
896           column: 't',\r
897           type: 'hidden',\r
898           label: {\r
899             type: 'hidden'\r
900           },\r
901           options: {\r
902           }\r
903         },\r
904         'speech_balloon.classname': {\r
905           column: 'classname',\r
906           type: 'hidden',\r
907           label: {\r
908             type: 'hidden'\r
909           },\r
910           options: {\r
911           }\r
912         },\r
913         'speech_balloon.settings': {\r
914           column: 'settings',\r
915           type: 'hidden',\r
916           label: {\r
917             type: 'hidden'\r
918           },\r
919           options: {\r
920           }\r
921         },\r
922         'balloon.id': {\r
923           model: 'balloon',\r
924           part: 'balloon',\r
925           column: 'id',\r
926           type: 'hidden',\r
927           label: {\r
928             type: 'hidden'\r
929           },\r
930           options: {\r
931           }\r
932         },\r
933         'balloon.speech_balloon_id': {\r
934           model: 'balloon',\r
935           part: 'balloon',\r
936           column: 'speech_balloon_id',\r
937           type: 'hidden',\r
938           label: {\r
939             type: 'hidden'\r
940           },\r
941           options: {\r
942           }\r
943         },\r
944         'balloon.system_picture_id': {\r
945           model: 'balloon',\r
946           part: 'balloon',\r
947           column: 'system_picture_id',\r
948           type: 'hidden',\r
949           label: {\r
950             type: 'hidden'\r
951           },\r
952           options: {\r
953           }\r
954         },\r
955         'balloon.r': {\r
956           model: 'balloon',\r
957           part: 'balloon',\r
958           column: 'r',\r
959           type: 'number',\r
960           label: {\r
961           },\r
962           options: {\r
963             size: 5, \r
964             row_break: true\r
965           },\r
966           helpers: {\r
967             tail_angle: {\r
968               path: 'panels/tail_angle_helper',\r
969               options: {\r
970               }\r
971             }\r
972           }\r
973         },\r
974         'balloon.x': {\r
975           model: 'balloon',\r
976           part: 'balloon',\r
977           column: 'x',\r
978           type: 'number',\r
979           label: {\r
980           },\r
981           options: {\r
982             size: 5, \r
983           }\r
984         },\r
985         'balloon.y': {\r
986           model: 'balloon',\r
987           part: 'balloon',\r
988           column: 'y',\r
989           type: 'number',\r
990           label: {\r
991           },\r
992           options: {\r
993             size: 5, \r
994             row_break: true\r
995           }\r
996         },\r
997         'balloon.width': {\r
998           model: 'balloon',\r
999           part: 'balloon',\r
1000           column: 'width',\r
1001           type: 'number',\r
1002           label: {\r
1003           },\r
1004           options: {\r
1005             size: 5, \r
1006           }\r
1007         },\r
1008         'balloon.height': {\r
1009           model: 'balloon',\r
1010           part: 'balloon',\r
1011           column: 'height',\r
1012           type: 'number',\r
1013           label: {\r
1014           },\r
1015           options: {\r
1016             size: 5, \r
1017             row_break: true\r
1018           }\r
1019         },\r
1020         'balloon.settings': {\r
1021           model: 'balloon',\r
1022           part: 'balloon',\r
1023           column: 'settings',\r
1024           type: 'hidden',\r
1025           label: {\r
1026             type: 'hidden'\r
1027           },\r
1028           options: {\r
1029           }\r
1030         },\r
1031         'speech.id': {\r
1032           model: 'speech',\r
1033           part: 'speech',\r
1034           column: 'id',\r
1035           type: 'hidden',\r
1036           label: {\r
1037             type: 'hidden'\r
1038           },\r
1039           options: {\r
1040           }\r
1041         },\r
1042         'speech.speech_balloon_id': {\r
1043           model: 'speech',\r
1044           part: 'speech',\r
1045           column: 'speech_balloon_id',\r
1046           type: 'hidden',\r
1047           label: {\r
1048             type: 'hidden'\r
1049           },\r
1050           options: {\r
1051           }\r
1052         },\r
1053         'speech.x': {\r
1054           model: 'speech',\r
1055           part: 'speech',\r
1056           column: 'x',\r
1057           type: 'hidden',\r
1058           label: {\r
1059             type: 'hidden'\r
1060           },\r
1061           options: {\r
1062           }\r
1063         },\r
1064         'speech.y': {\r
1065           model: 'speech',\r
1066           part: 'speech',\r
1067           column: 'y',\r
1068           type: 'hidden',\r
1069           label: {\r
1070             type: 'hidden'\r
1071           },\r
1072           options: {\r
1073           }\r
1074         },\r
1075         'speech.width': {\r
1076           model: 'speech',\r
1077           part: 'speech',\r
1078           column: 'width',\r
1079           type: 'hidden',\r
1080           label: {\r
1081             type: 'hidden'\r
1082           },\r
1083           options: {\r
1084           }\r
1085         },\r
1086         'speech.height': {\r
1087           model: 'speech',\r
1088           part: 'speech',\r
1089           column: 'height',\r
1090           type: 'hidden',\r
1091           label: {\r
1092             type: 'hidden'\r
1093           },\r
1094           options: {\r
1095           }\r
1096         },\r
1097         'speech.writing_format_id': {\r
1098           model: 'speech',\r
1099           part: 'speech',\r
1100           column: 'writing_format_id',\r
1101           type: 'select',\r
1102           label: {\r
1103           },\r
1104           options: {\r
1105             source: 'model',\r
1106             model: 'writing_format',\r
1107             method: 'enable_list',\r
1108             caption: 'caption'\r
1109           }\r
1110         },\r
1111         'speech.font_size': {\r
1112           model: 'speech',\r
1113           part: 'speech',\r
1114           column: 'font_size',\r
1115           type: 'select',\r
1116           label: {\r
1117           },\r
1118           options: {\r
1119             source: 'magic_number',\r
1120             key: 'speech_font_size_items',\r
1121             row_break: true\r
1122           }\r
1123         },\r
1124         'speech.text_align': {\r
1125           model: 'speech',\r
1126           part: 'speech',\r
1127           column: 'text_align',\r
1128           type: 'select',\r
1129           label: {\r
1130           },\r
1131           options: {\r
1132             source: 'magic_number',\r
1133             key: 'speech_text_align_items',\r
1134           }\r
1135         },\r
1136         'speech.quotes': {\r
1137           model: 'speech',\r
1138           part: 'speech',\r
1139           column: 'quotes',\r
1140           type: 'text',\r
1141           label: {\r
1142           },\r
1143           options: {\r
1144             size: 5, \r
1145           }\r
1146         },\r
1147         'speech.content': {\r
1148           model: 'speech',\r
1149           part: 'speech',\r
1150           column: 'content',\r
1151           type: 'text_area',\r
1152           label: {\r
1153             row_break: true\r
1154           },\r
1155           options: {\r
1156             size: '45x5', \r
1157           }\r
1158         },\r
1159         'speech.fore_color': {\r
1160           model: 'speech',\r
1161           part: 'speech',\r
1162           column: 'fore_color',\r
1163           type: 'hidden',\r
1164           label: {\r
1165             row_break: true\r
1166           },\r
1167           options: {\r
1168           },\r
1169           helpers: {\r
1170             color: {\r
1171               path: 'panels/color_helper',\r
1172               options: {\r
1173               },\r
1174               wrapper: 'speech-fore_color-wrap'\r
1175             }\r
1176           }\r
1177         },\r
1178         'speech.settings': {\r
1179           model: 'speech',\r
1180           part: 'speech',\r
1181           column: 'settings',\r
1182           type: 'hidden',\r
1183           label: {\r
1184             type: 'hidden'\r
1185           },\r
1186           options: {\r
1187           }\r
1188         },\r
1189       },\r
1190     },\r
1191     CircleSpeechBalloon: 'circle_speech_balloon',\r
1192     circle_speech_balloon: {\r
1193       base: 'speech_balloon',\r
1194       attributes: {\r
1195       },\r
1196       fields: [\r
1197           'speech_balloon.caption',\r
1198           'balloon.r',\r
1199           'balloon.x',\r
1200           'balloon.y',\r
1201           'balloon.width',\r
1202           'balloon.height',\r
1203           'balloon.id',\r
1204           'balloon.speech_balloon_id',\r
1205           'balloon.system_picture_id',\r
1206           'balloon.settings',\r
1207           'speech.writing_format_id',\r
1208           'speech.font_size',\r
1209           'speech.text_align',\r
1210           'speech.quotes',\r
1211           'speech.content',\r
1212           'speech.fore_color',\r
1213           'speech.id',\r
1214           'speech.speech_balloon_id',\r
1215           'speech.x',\r
1216           'speech.y',\r
1217           'speech.width',\r
1218           'speech.height',\r
1219           'speech.settings',\r
1220           'speech_balloon.id',\r
1221           'speech_balloon.panel_id',\r
1222           'speech_balloon.speech_balloon_template_id',\r
1223           'speech_balloon.classname',\r
1224           'speech_balloon.z',\r
1225           'speech_balloon.t',\r
1226           'speech_balloon.settings',\r
1227       ]\r
1228     },\r
1229     PlainSpeechBalloon: 'plain_speech_balloon',\r
1230     plain_speech_balloon: {\r
1231       base: 'speech_balloon',\r
1232       attributes: {\r
1233         'balloon.r': {\r
1234           model: 'balloon',\r
1235           part: 'balloon',\r
1236           column: 'r',\r
1237           type: 'hidden',\r
1238           label: {\r
1239             type: 'hidden'\r
1240           },\r
1241           options: {\r
1242           },\r
1243         },\r
1244       },\r
1245       fields: [\r
1246         'speech_balloon.caption',\r
1247         'balloon.r',\r
1248         'balloon.x',\r
1249         'balloon.y',\r
1250         'balloon.width',\r
1251         'balloon.height',\r
1252         'balloon.id',\r
1253         'balloon.speech_balloon_id',\r
1254         'balloon.system_picture_id',\r
1255         'balloon.settings',\r
1256         'speech.writing_format_id',\r
1257         'speech.font_size',\r
1258         'speech.text_align',\r
1259         'speech.quotes',\r
1260         'speech.content',\r
1261         'speech.fore_color',\r
1262         'speech.id',\r
1263         'speech.speech_balloon_id',\r
1264         'speech.x',\r
1265         'speech.y',\r
1266         'speech.width',\r
1267         'speech.height',\r
1268         'speech.settings',\r
1269         'speech_balloon.id',\r
1270         'speech_balloon.panel_id',\r
1271         'speech_balloon.speech_balloon_template_id',\r
1272         'speech_balloon.classname',\r
1273         'speech_balloon.z',\r
1274         'speech_balloon.t',\r
1275         'speech_balloon.settings',\r
1276       ]\r
1277     },\r
1278     SquareSpeechBalloon: 'square_speech_balloon',\r
1279     square_speech_balloon: {\r
1280       base: 'speech_balloon',\r
1281       attributes: {\r
1282         'balloon.r': {\r
1283           model: 'balloon',\r
1284           part: 'balloon',\r
1285           column: 'r',\r
1286           type: 'hidden',\r
1287           label: {\r
1288             type: 'hidden'\r
1289           },\r
1290           options: {\r
1291           },\r
1292         },\r
1293       },\r
1294       fields: [\r
1295         'speech_balloon.caption',\r
1296         'balloon.r',\r
1297         'balloon.x',\r
1298         'balloon.y',\r
1299         'balloon.width',\r
1300         'balloon.height',\r
1301         'balloon.id',\r
1302         'balloon.speech_balloon_id',\r
1303         'balloon.system_picture_id',\r
1304         'balloon.settings',\r
1305         'speech.writing_format_id',\r
1306         'speech.font_size',\r
1307         'speech.text_align',\r
1308         'speech.quotes',\r
1309         'speech.content',\r
1310         'speech.fore_color',\r
1311         'speech.id',\r
1312         'speech.speech_balloon_id',\r
1313         'speech.x',\r
1314         'speech.y',\r
1315         'speech.width',\r
1316         'speech.height',\r
1317         'speech.settings',\r
1318         'speech_balloon.id',\r
1319         'speech_balloon.panel_id',\r
1320         'speech_balloon.speech_balloon_template_id',\r
1321         'speech_balloon.classname',\r
1322         'speech_balloon.z',\r
1323         'speech_balloon.t',\r
1324         'speech_balloon.settings',\r
1325       ]\r
1326     },\r
1327     GroundPicture: 'ground_picture',\r
1328     ground_picture: {\r
1329       attributes: {\r
1330         id: {\r
1331           column: 'id',\r
1332           type: 'hidden',\r
1333           label: {\r
1334             type: 'hidden'\r
1335           },\r
1336           options: {\r
1337           }\r
1338         },\r
1339         panel_id: {\r
1340           column: 'panel_id',\r
1341           type: 'hidden',\r
1342           label: {\r
1343             type: 'hidden'\r
1344           },\r
1345           options: {\r
1346           }\r
1347         },\r
1348         picture_id: {\r
1349           column: 'picture_id',\r
1350           type: 'hidden',\r
1351           label: {\r
1352             type: 'hidden'\r
1353           },\r
1354           options: {\r
1355           }\r
1356         },\r
1357         caption: {\r
1358           column: 'caption',\r
1359           type: 'text',\r
1360           label: {\r
1361           },\r
1362           options: {\r
1363             row_break: true\r
1364           }\r
1365         },\r
1366         repeat: {\r
1367           column: 'repeat',\r
1368           type: 'select',\r
1369           label: {\r
1370           },\r
1371           options: {\r
1372             source: 'magic_number',\r
1373             key: 'ground_picture_repeat_items',\r
1374             row_break: true\r
1375           }\r
1376         },\r
1377         x: {\r
1378           column: 'x',\r
1379           type: 'number',\r
1380           label: {\r
1381           },\r
1382           options: {\r
1383             size: 5, \r
1384           }\r
1385         },\r
1386         y: {\r
1387           column: 'y',\r
1388           type: 'number',\r
1389           label: {\r
1390           },\r
1391           options: {\r
1392             size: 5, \r
1393             row_break: true\r
1394           }\r
1395         },\r
1396         z: {\r
1397           column: 'z',\r
1398           type: 'hidden',\r
1399           label: {\r
1400             type: 'hidden'\r
1401           },\r
1402           options: {\r
1403           }\r
1404         },\r
1405         t: {\r
1406           column: 't',\r
1407           type: 'hidden',\r
1408           label: {\r
1409             type: 'hidden'\r
1410           },\r
1411           options: {\r
1412           }\r
1413         },\r
1414       },\r
1415       fields: [\r
1416         'caption',\r
1417         'repeat',\r
1418         'x',\r
1419         'y',\r
1420         'z',\r
1421         't',\r
1422         'id',\r
1423         'panel_id',\r
1424         'picture_id',\r
1425       ]\r
1426     },\r
1427     GroundColor: 'ground_color',\r
1428     ground_color: {\r
1429       attributes: {\r
1430         id: {\r
1431           column: 'id',\r
1432           type: 'hidden',\r
1433           label: {\r
1434             type: 'hidden'\r
1435           },\r
1436           options: {\r
1437           }\r
1438         },\r
1439         panel_id: {\r
1440           column: 'panel_id',\r
1441           type: 'hidden',\r
1442           label: {\r
1443             type: 'hidden'\r
1444           },\r
1445           options: {\r
1446           }\r
1447         },\r
1448         caption: {\r
1449           column: 'caption',\r
1450           type: 'text',\r
1451           label: {\r
1452           },\r
1453           options: {\r
1454             row_break: true\r
1455           }\r
1456         },\r
1457         code: {\r
1458           column: 'code',\r
1459           type: 'hidden',\r
1460           label: {\r
1461             row_break: true\r
1462           },\r
1463           options: {\r
1464             row_break: true\r
1465           }\r
1466           helpers: {\r
1467             color: {\r
1468               path: 'panels/color_helper',\r
1469               options: {\r
1470               },\r
1471               wrapper: 'ground_color-code-wrap'\r
1472             }\r
1473           },\r
1474         },\r
1475         orientation: {\r
1476           column: 'orientation',\r
1477           type: 'select',\r
1478           label: {\r
1479           },\r
1480           options: {\r
1481             source: 'magic_number',\r
1482             key: 'ground_color_orientation_items',\r
1483             row_break: true\r
1484           }\r
1485         },\r
1486         xy: {\r
1487           column: 'xy',\r
1488           type: 'number',\r
1489           label: {\r
1490           },\r
1491           options: {\r
1492             size: 5, \r
1493           }\r
1494         },\r
1495         wh: {\r
1496           column: 'wh',\r
1497           type: 'number',\r
1498           label: {\r
1499           },\r
1500           options: {\r
1501             size: 5, \r
1502             row_break: true\r
1503           }\r
1504         },\r
1505         z: {\r
1506           column: 'z',\r
1507           type: 'hidden',\r
1508           label: {\r
1509             type: 'hidden'\r
1510           },\r
1511           options: {\r
1512           }\r
1513         },\r
1514         t: {\r
1515           column: 't',\r
1516           type: 'hidden',\r
1517           label: {\r
1518             type: 'hidden'\r
1519           },\r
1520           options: {\r
1521           }\r
1522         },\r
1523       },\r
1524       fields: [\r
1525         'id',\r
1526         'panel_id',\r
1527         'caption',\r
1528         'code',\r
1529         'orientation',\r
1530         'xy',\r
1531         'wh',\r
1532         'z',\r
1533         't',\r
1534       ]\r
1535     }\r
1536   },\r
1537   locales: {\r
1538     ja: {\r
1539     }\r
1540   },\r
1541 }\r
1542 \r
1543 @repeat_texts = ['repeat', 'repeat-x', 'repeat-y', 'no-repeat']\r
1544 \r
1545 @text_align_texts = ['left', 'left', 'right', 'center']\r
1546 \r