OSDN Git Service

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