OSDN Git Service

t#32402:add file prof
[pettanr/pettanr.git] / app / assets / javascripts / configurations.js.coffee.erb
1 @configurations = {\r
2   filers: {\r
3     scroll: {\r
4       symbol: {\r
5         type: 'image',\r
6         name: '<%= asset_path('item.png') %>',\r
7       },\r
8       caption: {\r
9         type: 'column',\r
10         name: 'title',\r
11         link: {\r
12           type: 'action'\r
13           name: 'play',\r
14         },\r
15       },\r
16       summary: {\r
17         type: 'template',\r
18         name: 'summary',\r
19       },\r
20       edit: {\r
21         type: 'default',\r
22       },\r
23     },\r
24     scroll_panel: {\r
25       symbol: {\r
26         type: 'image',\r
27         name: '<%= asset_path('item.png') %>',\r
28         link: {\r
29           type: 'none'\r
30         },\r
31       },\r
32       caption: {\r
33         type: 'none',\r
34       },\r
35       summary: {\r
36         type: 'template',\r
37         name: 'summary',\r
38       },\r
39       edit: {\r
40         type: 'none'\r
41       },\r
42     },\r
43     comic: {\r
44       symbol: {\r
45         type: 'image',\r
46         name: '<%= asset_path('item.png') %>',\r
47       },\r
48       caption: {\r
49         type: 'column',\r
50         name: 'title',\r
51       },\r
52       summary: {\r
53         type: 'template',\r
54         name: 'summary',\r
55       },\r
56       edit: {\r
57         type: 'default',\r
58       },\r
59     },\r
60     story: {\r
61       symbol: {\r
62         type: 'image',\r
63         name: '<%= asset_path('item.png') %>',\r
64       },\r
65       caption: {\r
66         type: 'method',\r
67         name: 'title_with_t',\r
68         link: {\r
69           type: 'action'\r
70           name: 'play',\r
71         },\r
72       },\r
73       summary: {\r
74         type: 'template',\r
75         name: 'summary',\r
76       },\r
77       edit: {\r
78         type: 'default',\r
79       },\r
80     },\r
81     story_sheet: {\r
82       symbol: {\r
83         type: 'image',\r
84         name: '<%= asset_path('item.png') %>',\r
85         link: {\r
86           type: 'none'\r
87         },\r
88       },\r
89       caption: {\r
90         type: 'none',\r
91       },\r
92       summary: {\r
93         type: 'template',\r
94         name: 'summary',\r
95       },\r
96       edit: {\r
97         type: 'none'\r
98       },\r
99     },\r
100     sheet: {\r
101       symbol: {\r
102         type: 'image',\r
103         name: '<%= asset_path('item.png') %>',\r
104       },\r
105       caption: {\r
106         type: 'column',\r
107         name: 'caption',\r
108         link: {\r
109           type: 'action'\r
110           name: 'play',\r
111         },\r
112       },\r
113       summary: {\r
114         type: 'template',\r
115         name: 'summary',\r
116       },\r
117       edit: {\r
118         type: 'default',\r
119       },\r
120     },\r
121     sheet_panel: {\r
122       symbol: {\r
123         type: 'image',\r
124         name: '<%= asset_path('item.png') %>',\r
125         link: {\r
126           type: 'none'\r
127         },\r
128       },\r
129       caption: {\r
130         type: 'none',\r
131       },\r
132       summary: {\r
133         type: 'template',\r
134         name: 'summary',\r
135       },\r
136       edit: {\r
137         type: 'none'\r
138       },\r
139     },\r
140     panel: {\r
141       symbol: {\r
142         type: 'image',\r
143         name: '<%= asset_path('item.png') %>',\r
144       },\r
145       caption: {\r
146         type: 'method',\r
147         name: 'plain_scenario',\r
148         link: {\r
149           type: 'none'\r
150         },\r
151       },\r
152       summary: {\r
153         type: 'template',\r
154         name: 'summary',\r
155       },\r
156       edit: {\r
157         type: 'default',\r
158       },\r
159     },\r
160     panel_picture: {\r
161       symbol: {\r
162         type: 'picture',\r
163         name: 'symbol_option',\r
164       },\r
165       caption: {\r
166         type: 'column',\r
167         name: 'caption',\r
168       },\r
169       summary: {\r
170         type: 'template',\r
171         name: 'summary',\r
172       },\r
173       edit: {\r
174         type: 'none',\r
175       },\r
176     },\r
177     speech_balloon: {\r
178       symbol: {\r
179         type: 'picture',\r
180         name: 'symbol_option',\r
181       },\r
182       caption: {\r
183         type: 'method',\r
184         name: 'plain_scenario',\r
185         link: {\r
186           type: 'none'\r
187         },\r
188       },\r
189       summary: {\r
190         type: 'template',\r
191         name: 'summary',\r
192       },\r
193       edit: {\r
194         type: 'none',\r
195       },\r
196     },\r
197     speech: {\r
198       symbol: {\r
199         type: 'picture',\r
200         name: 'symbol_option',\r
201       },\r
202       caption: {\r
203         type: 'column',\r
204         name: 'content',\r
205         link: {\r
206           type: 'none'\r
207         },\r
208       },\r
209       summary: {\r
210         type: 'template',\r
211         name: 'summary',\r
212       },\r
213       edit: {\r
214         type: 'none',\r
215       },\r
216     },\r
217     balloon: {\r
218       symbol: {\r
219         type: 'picture',\r
220         name: 'symbol_option',\r
221       },\r
222       caption: {\r
223         type: 'none',\r
224       },\r
225       summary: {\r
226         type: 'template',\r
227         name: 'summary',\r
228       },\r
229       edit: {\r
230         type: 'none',\r
231       },\r
232     },\r
233     ground_picture: {\r
234       symbol: {\r
235         type: 'picture',\r
236         name: 'symbol_option',\r
237       },\r
238       caption: {\r
239         type: 'column',\r
240         name: 'caption',\r
241       },\r
242       summary: {\r
243         type: 'template',\r
244         name: 'summary',\r
245       },\r
246       edit: {\r
247         type: 'none',\r
248       },\r
249     },\r
250     ground_color: {\r
251       symbol: {\r
252         type: 'template',\r
253         name: 'symbol',\r
254       },\r
255       caption: {\r
256         type: 'column',\r
257         name: 'caption',\r
258       },\r
259       summary: {\r
260         type: 'template',\r
261         name: 'summary',\r
262       },\r
263       edit: {\r
264         type: 'none',\r
265       },\r
266     },\r
267     original_picture: {\r
268       symbol: {\r
269         type: 'picture',\r
270         name: 'symbol_option',\r
271       },\r
272       caption: {\r
273         type: 'method',\r
274         name: 'revision',\r
275         link: {\r
276           type: 'action'\r
277           name: 'history',\r
278         },\r
279       },\r
280       summary: {\r
281         type: 'template',\r
282         name: 'summary',\r
283       },\r
284       edit: {\r
285         type: 'template',\r
286         name: 'publish',\r
287       },\r
288     },\r
289     picture: {\r
290     },\r
291     resource_picture: {\r
292       symbol: {\r
293         type: 'picture',\r
294         name: 'symbol_option',\r
295       },\r
296       caption: {\r
297         type: 'none',\r
298       },\r
299       summary: {\r
300         type: 'template',\r
301         name: 'summary',\r
302       },\r
303       edit: {\r
304         type: 'none',\r
305       },\r
306     },\r
307     speech_balloon_template: {\r
308       symbol: {\r
309         type: 'picture',\r
310         name: 'symbol_option',\r
311       },\r
312       caption: {\r
313         type: 'column',\r
314         name: 'caption',\r
315       },\r
316       summary: {\r
317         type: 'none',\r
318       },\r
319       edit: {\r
320         type: 'none',\r
321       },\r
322     },\r
323     writing_format: {\r
324       symbol: {\r
325         type: 'image',\r
326         name: '<%= asset_path('item.png') %>',\r
327       },\r
328       caption: {\r
329         type: 'column',\r
330         name: 'caption',\r
331       },\r
332       summary: {\r
333         type: 'none',\r
334       },\r
335       edit: {\r
336         type: 'none',\r
337       },\r
338     },\r
339     license_group: {\r
340       symbol: {\r
341         type: 'image',\r
342         name: '<%= asset_path('item.png') %>',\r
343       },\r
344       caption: {\r
345         type: 'column',\r
346         name: 'caption',\r
347         link: {\r
348           type: 'url_column'\r
349           name: 'url',\r
350         },\r
351       },\r
352       summary: {\r
353         type: 'none',\r
354       },\r
355       edit: {\r
356         type: 'none',\r
357       },\r
358     },\r
359     license: {\r
360       symbol: {\r
361         type: 'image',\r
362         name: '<%= asset_path('item.png') %>',\r
363       },\r
364       caption: {\r
365         type: 'method',\r
366         name: 'caption_with_group',\r
367         link: {\r
368           type: 'url_column'\r
369           name: 'url',\r
370         },\r
371       },\r
372       summary: {\r
373         type: 'template',\r
374         name: 'summary',\r
375       },\r
376       edit: {\r
377         type: 'none',\r
378       },\r
379     },\r
380     author: {\r
381       symbol: {\r
382         type: 'image',\r
383         name: '<%= asset_path('item.png') %>',\r
384       },\r
385       caption: {\r
386         type: 'column',\r
387         name: 'name',\r
388       },\r
389       summary: {\r
390         type: 'template',\r
391         name: 'summary',\r
392       },\r
393       edit: {\r
394         type: 'account',\r
395       },\r
396     },\r
397     artist: {\r
398       symbol: {\r
399         type: 'image',\r
400         name: '<%= asset_path('item.png') %>',\r
401       },\r
402       caption: {\r
403         type: 'column',\r
404         name: 'name',\r
405       },\r
406       summary: {\r
407         type: 'template',\r
408         name: 'summary',\r
409       },\r
410       edit: {\r
411         type: 'account',\r
412       },\r
413     },\r
414     system_picture: {\r
415       symbol: {\r
416         type: 'picture',\r
417         name: 'symbol_option',\r
418       },\r
419       caption: {\r
420         type: 'none',\r
421       },\r
422       summary: {\r
423         type: 'none',\r
424       },\r
425       edit: {\r
426         type: 'none',\r
427       },\r
428     },\r
429   },\r
430   models: {\r
431     Sheet: 'sheet',\r
432     sheet: {\r
433       class_name: 'Sheet',\r
434       table_name: 'sheets',\r
435       attributes: {\r
436         id: {\r
437           type: 'number',\r
438           primary_key: 1,\r
439           rules : {\r
440             number: true,\r
441           }\r
442         },\r
443       }\r
444     },\r
445     Panel: 'panel',\r
446     panel: {\r
447       class_name: 'Panel',\r
448       table_name: 'panels',\r
449       attributes: {\r
450         id: {\r
451           type: 'number',\r
452           primary_key: 1,\r
453           rules : {\r
454             number: true,\r
455           }\r
456         },\r
457         width: {\r
458           type: 'number',\r
459           rules : {\r
460             required: true,\r
461             number: true,\r
462             min: 1,\r
463           }\r
464         },\r
465         height: {\r
466           type: 'number',\r
467           rules : {\r
468             required: true,\r
469             number: true,\r
470             min: 1,\r
471           }\r
472         },\r
473         border: {\r
474           type: 'number',\r
475           rules : {\r
476             required: true,\r
477             number: true,\r
478             min: 0,\r
479           }\r
480         },\r
481         caption: {\r
482           type: 'text',\r
483           rules : {\r
484           }\r
485         },\r
486         publish: {\r
487           type: 'number',\r
488           rules : {\r
489             required: true,\r
490             number: true,\r
491           }\r
492         },\r
493         author_id: {\r
494           type: 'number',\r
495           rules : {\r
496             required: true,\r
497             number: true,\r
498           }\r
499         },\r
500         created_at: {\r
501           type: 'datetime',\r
502         },\r
503         updated_at: {\r
504           type: 'datetime',\r
505         }\r
506       }\r
507     },\r
508     PanelPicture: 'panel_picture',\r
509     panel_picture: {\r
510       class_name: 'PanelPicture',\r
511       table_name: 'panel_pictures',\r
512       attributes: {\r
513         id: {\r
514           type: 'number',\r
515           primary_key: 1,\r
516           rules : {\r
517             number: true,\r
518           }\r
519         },\r
520         panel_id: {\r
521           type: 'number',\r
522           rules : {\r
523             number: true,\r
524           }\r
525         },\r
526         picture_id: {\r
527           type: 'number',\r
528           rules : {\r
529             required: true,\r
530             number: true,\r
531           }\r
532         },\r
533         caption: {\r
534           type: 'text',\r
535           rules : {\r
536           }\r
537         },\r
538         x: {\r
539           type: 'number',\r
540           rules : {\r
541             required: true,\r
542             number: true,\r
543           }\r
544         },\r
545         y: {\r
546           type: 'number',\r
547           rules : {\r
548             required: true,\r
549             number: true,\r
550           }\r
551         },\r
552         width: {\r
553           type: 'number',\r
554           rules : {\r
555             required: true,\r
556             number: true,\r
557           }\r
558         },\r
559         height: {\r
560           type: 'number',\r
561           rules : {\r
562             required: true,\r
563             number: true,\r
564           }\r
565         },\r
566         link: {\r
567           type: 'text',\r
568           rules : {\r
569             url: true,\r
570           }\r
571         },\r
572         z: {\r
573           type: 'number',\r
574           rules : {\r
575             required: true,\r
576             number: true,\r
577             min: 1,\r
578           }\r
579         },\r
580         t: {\r
581           type: 'number',\r
582           rules : {\r
583             required: true,\r
584             number: true,\r
585             min: 0,\r
586           }\r
587         },\r
588         created_at: {\r
589           type: 'datetime',\r
590         },\r
591         updated_at: {\r
592           type: 'datetime',\r
593         }\r
594       }\r
595     },\r
596     SpeechBalloon: 'speech_balloon',\r
597     speech_balloon: {\r
598       class_name: 'SpeechBalloon',\r
599       table_name: 'speech_balloons',\r
600       extend: 'classname', \r
601       attributes: {\r
602         id: {\r
603           type: 'number',\r
604           primary_key: 1,\r
605           rules : {\r
606             number: true,\r
607           }\r
608         },\r
609         panel_id: {\r
610           type: 'number',\r
611           rules : {\r
612             number: true,\r
613           }\r
614         },\r
615         speech_balloon_template_id: {\r
616           type: 'number',\r
617           rules : {\r
618             required: true,\r
619             number: true,\r
620           }\r
621         },\r
622         classname: {\r
623           type: 'text',\r
624           rules : {\r
625             required: true,\r
626           }\r
627         },\r
628         z: {\r
629           type: 'number',\r
630           rules : {\r
631             required: true,\r
632             number: true,\r
633             min: 1,\r
634           }\r
635         },\r
636         t: {\r
637           type: 'number',\r
638           rules : {\r
639             required: true,\r
640             number: true,\r
641             min: 0,\r
642           }\r
643         },\r
644         settings: {\r
645           type: 'text',\r
646           rules : {\r
647           }\r
648         },\r
649         caption: {\r
650           type: 'text',\r
651           rules : {\r
652           }\r
653         },\r
654         created_at: {\r
655           type: 'datetime',\r
656         },\r
657         updated_at: {\r
658           type: 'datetime',\r
659         }\r
660       }\r
661     }, \r
662     Balloon: 'balloon',\r
663     balloon: {\r
664       class_name: 'Balloon',\r
665       table_name: 'balloons',\r
666       attributes: {\r
667         id: {\r
668           type: 'number',\r
669           primary_key: 1,\r
670           rules : {\r
671             number: true,\r
672           }\r
673         },\r
674         speech_balloon_id: {\r
675           type: 'number',\r
676           rules : {\r
677             number: true,\r
678           }\r
679         },\r
680         system_picture_id: {\r
681           type: 'number',\r
682           rules : {\r
683             required: true,\r
684             number: true,\r
685           }\r
686         },\r
687         x: {\r
688           type: 'number',\r
689           rules : {\r
690             required: true,\r
691             number: true,\r
692           }\r
693         },\r
694         y: {\r
695           type: 'number',\r
696           rules : {\r
697             required: true,\r
698             number: true,\r
699           }\r
700         },\r
701         width: {\r
702           type: 'number',\r
703           rules : {\r
704             required: true,\r
705             number: true,\r
706             min: 1,\r
707           }\r
708         },\r
709         height: {\r
710           type: 'number',\r
711           rules : {\r
712             required: true,\r
713             number: true,\r
714             min: 1,\r
715           }\r
716         },\r
717         r: {\r
718           type: 'number',\r
719           rules : {\r
720             required: true,\r
721             number: true,\r
722           }\r
723         },\r
724         settings: {\r
725           type: 'text',\r
726           rules : {\r
727           }\r
728         },\r
729         created_at: {\r
730           type: 'datetime',\r
731         },\r
732         updated_at: {\r
733           type: 'datetime',\r
734         }\r
735       }\r
736     },\r
737     Speech: 'speech',\r
738     speech: {\r
739       class_name: 'Speech',\r
740       table_name: 'speeches',\r
741       attributes: {\r
742         id: {\r
743           type: 'number',\r
744           primary_key: 1,\r
745           rules : {\r
746             number: true,\r
747           }\r
748         },\r
749         speech_balloon_id: {\r
750           type: 'number',\r
751           rules : {\r
752             number: true,\r
753           }\r
754         },\r
755         writing_format_id: {\r
756           type: 'number',\r
757           rules : {\r
758             required: true,\r
759             number: true,\r
760           }\r
761         },\r
762         content: {\r
763           type: 'text',\r
764           rules : {\r
765           }\r
766         },\r
767         font_size: {\r
768           type: 'float',\r
769           rules : {\r
770             required: true,\r
771             number: true,\r
772             min: 0,\r
773           }\r
774         },\r
775         text_align: {\r
776           type: 'number',\r
777           rules : {\r
778             required: true,\r
779             number: true,\r
780             range: [0, 3],\r
781           }\r
782         },\r
783         fore_color: {\r
784           type: 'number',\r
785           rules : {\r
786             required: true,\r
787             number: true,\r
788             range: [0, 0xffffff],\r
789           }\r
790         },\r
791         x: {\r
792           type: 'number',\r
793           rules : {\r
794             required: true,\r
795             number: true,\r
796           }\r
797         },\r
798         y: {\r
799           type: 'number',\r
800           rules : {\r
801             required: true,\r
802             number: true,\r
803           }\r
804         },\r
805         width: {\r
806           type: 'number',\r
807           rules : {\r
808             required: true,\r
809             number: true,\r
810             min: 1,\r
811           }\r
812         },\r
813         height: {\r
814           type: 'number',\r
815           rules : {\r
816             required: true,\r
817             number: true,\r
818             min: 1,\r
819           }\r
820         },\r
821         quotes: {\r
822           type: 'text',\r
823           rules : {\r
824           }\r
825         },\r
826         settings: {\r
827           type: 'text',\r
828           rules : {\r
829           }\r
830         },\r
831         created_at: {\r
832           type: 'datetime',\r
833         },\r
834         updated_at: {\r
835           type: 'datetime',\r
836         }\r
837       }\r
838     },\r
839     GroundPicture: 'ground_picture',\r
840     ground_picture: {\r
841       class_name: 'GroundPicture',\r
842       table_name: 'ground_pictures',\r
843       attributes: {\r
844         id: {\r
845           type: 'number',\r
846           primary_key: 1,\r
847           rules : {\r
848             number: true,\r
849           }\r
850         },\r
851         panel_id: {\r
852           type: 'number',\r
853           rules : {\r
854             number: true,\r
855           }\r
856         },\r
857         picture_id: {\r
858           type: 'number',\r
859           rules : {\r
860             required: true,\r
861             number: true,\r
862           }\r
863         },\r
864         caption: {\r
865           type: 'text',\r
866           rules : {\r
867           }\r
868         },\r
869         repeat: {\r
870           type: 'number',\r
871           rules : {\r
872             required: true,\r
873             number: true,\r
874             range: [0, 3],\r
875           }\r
876         },\r
877         x: {\r
878           type: 'number',\r
879           rules : {\r
880             required: true,\r
881             number: true,\r
882           }\r
883         },\r
884         y: {\r
885           type: 'number',\r
886           rules : {\r
887             required: true,\r
888             number: true,\r
889           }\r
890         },\r
891         z: {\r
892           type: 'number',\r
893           rules : {\r
894             required: true,\r
895             number: true,\r
896             min: 1,\r
897           }\r
898         },\r
899         t: {\r
900           type: 'number',\r
901           rules : {\r
902             required: true,\r
903             number: true,\r
904             min: 0,\r
905           }\r
906         },\r
907         created_at: {\r
908           type: 'datetime',\r
909         },\r
910         updated_at: {\r
911           type: 'datetime',\r
912         }\r
913       }\r
914     },\r
915     GroundColor: 'ground_color',\r
916     ground_color: {\r
917       class_name: 'GroundColor',\r
918       table_name: 'ground_colors',\r
919       attributes: {\r
920         id: {\r
921           type: 'number',\r
922           primary_key: 1,\r
923           rules : {\r
924             number: true,\r
925           }\r
926         },\r
927         panel_id: {\r
928           type: 'number',\r
929           rules : {\r
930             number: true,\r
931           }\r
932         },\r
933         caption: {\r
934           type: 'text',\r
935           rules : {\r
936           }\r
937         },\r
938         code: {\r
939           type: 'number',\r
940           rules : {\r
941             required: true,\r
942             number: true,\r
943             range: [0, 0xffffff],\r
944           }\r
945         },\r
946         orientation: {\r
947           type: 'number',\r
948           rules : {\r
949             required: true,\r
950             number: true,\r
951             range: [0, 1],\r
952           }\r
953         },\r
954         xy: {\r
955           type: 'number',\r
956           rules : {\r
957             number: true,\r
958           }\r
959         },\r
960         wh: {\r
961           type: 'number',\r
962           rules : {\r
963             number: true,\r
964           }\r
965         },\r
966         z: {\r
967           type: 'number',\r
968           rules : {\r
969             required: true,\r
970             number: true,\r
971             min: 1,\r
972           }\r
973         },\r
974         t: {\r
975           type: 'number',\r
976           rules : {\r
977             required: true,\r
978             number: true,\r
979             min: 0,\r
980           }\r
981         },\r
982         created_at: {\r
983           type: 'datetime',\r
984         },\r
985         updated_at: {\r
986           type: 'datetime',\r
987         }\r
988       }\r
989     },\r
990     WritingFormat: 'writing_format',\r
991     writing_format: {\r
992       class_name: 'WritingFormat',\r
993       table_name: 'writing_formats',\r
994       attributes: {\r
995         id: {\r
996           type: 'number',\r
997           primary_key: 1,\r
998           rules : {\r
999             number: true,\r
1000           }\r
1001         },\r
1002         name: {\r
1003           type: 'text',\r
1004           rules : {\r
1005             required: true,\r
1006           }\r
1007         },\r
1008         classname: {\r
1009           type: 'text',\r
1010           rules : {\r
1011             required: true,\r
1012           }\r
1013         },\r
1014         caption: {\r
1015           type: 'text',\r
1016           rules : {\r
1017             required: true,\r
1018           }\r
1019         },\r
1020         system_picture_id: {\r
1021           type: 'number',\r
1022           rules : {\r
1023             required: true,\r
1024             number: true,\r
1025           }\r
1026         },\r
1027         settings: {\r
1028           type: 'text',\r
1029           rules : {\r
1030             required: true,\r
1031           }\r
1032         },\r
1033         created_at: {\r
1034           type: 'datetime',\r
1035         },\r
1036         updated_at: {\r
1037           type: 'datetime',\r
1038         }\r
1039       }\r
1040     },\r
1041 \r
1042   },\r
1043   elements: [\r
1044     {\r
1045       name: 'panel_picture',\r
1046       path_name: 'panel_pictures', \r
1047       parts: []\r
1048     },\r
1049     {\r
1050       name: 'speech_balloon',\r
1051       path_name: 'circle_speech_balloon/speech_balloons', \r
1052       parts: ['balloon', 'speech']\r
1053     },\r
1054     {\r
1055       name: 'ground_picture',\r
1056       path_name: 'ground_pictures', \r
1057       parts: []\r
1058     },\r
1059     {\r
1060       name: 'ground_color',\r
1061       path_name: 'ground_colors', \r
1062       parts: []\r
1063     },\r
1064   ],\r
1065   forms: {\r
1066     Panel: 'panel',\r
1067     panel: {\r
1068       attributes: {\r
1069         caption: {\r
1070           column: 'caption',\r
1071           type: 'text',\r
1072           label: {\r
1073           },\r
1074           options: {\r
1075             row_break: true\r
1076           }\r
1077         },\r
1078         width: {\r
1079           column: 'width',\r
1080           type: 'number',\r
1081           label: {\r
1082           },\r
1083           options: {\r
1084             size: 5, \r
1085           },\r
1086         },\r
1087         height: {\r
1088           column: 'height',\r
1089           type: 'number',\r
1090           label: {\r
1091           },\r
1092           options: {\r
1093             size: 5, \r
1094             row_break: true\r
1095           }, \r
1096         },\r
1097         border: {\r
1098           column: 'border',\r
1099           type: 'number',\r
1100           label: {\r
1101           },\r
1102           options: {\r
1103             size: 5, \r
1104           },\r
1105         },\r
1106         publish: {\r
1107           column: 'publish',\r
1108           type: 'select',\r
1109           label: {\r
1110           },\r
1111           options: {\r
1112             source: 'magic_number',\r
1113             key: 'comic_visible_items',\r
1114             size: 5, \r
1115             row_break: true\r
1116           }\r
1117         },\r
1118         id: {\r
1119           column: 'id',\r
1120           type: 'hidden',\r
1121           label: {\r
1122             type: 'hidden'\r
1123           },\r
1124           options: {\r
1125           }\r
1126         },\r
1127         author_id: {\r
1128           column: 'author_id',\r
1129           type: 'hidden',\r
1130           label: {\r
1131             type: 'hidden'\r
1132           },\r
1133           options: {\r
1134           }\r
1135         },\r
1136       },\r
1137       fields: [\r
1138         'caption',\r
1139         'width',\r
1140         'height',\r
1141         'border',\r
1142         'publish',\r
1143         'id',\r
1144         'author_id',\r
1145       ]\r
1146     },\r
1147     PanelPicture: 'panel_picture',\r
1148     panel_picture: {\r
1149       attributes: {\r
1150         caption: {\r
1151           column: 'caption',\r
1152           type: 'text',\r
1153           label: {\r
1154           },\r
1155           options: {\r
1156             row_break: true\r
1157           }\r
1158         },\r
1159         x: {\r
1160           column: 'x',\r
1161           type: 'number',\r
1162           label: {\r
1163           },\r
1164           options: {\r
1165             size: 5, \r
1166           }\r
1167         },\r
1168         y: {\r
1169           column: 'y',\r
1170           type: 'number',\r
1171           label: {\r
1172           },\r
1173           options: {\r
1174             size: 5, \r
1175             row_break: true\r
1176           }\r
1177         },\r
1178         width: {\r
1179           column: 'width',\r
1180           type: 'number',\r
1181           label: {\r
1182           },\r
1183           options: {\r
1184             size: 5, \r
1185             row_break: true\r
1186           },\r
1187           helpers: {\r
1188             size: {\r
1189               path: 'panels/size_helper',\r
1190               options: {\r
1191                 class: 'panel_picture_width_tool', \r
1192               }\r
1193             }\r
1194           },\r
1195         },\r
1196         height: {\r
1197           column: 'height',\r
1198           type: 'number',\r
1199           label: {\r
1200           },\r
1201           options: {\r
1202             size: 5, \r
1203             row_break: true\r
1204           }, \r
1205           helpers: {\r
1206             size: {\r
1207               path: 'panels/size_helper',\r
1208               options: {\r
1209                 class: 'panel_picture_height_tool', \r
1210               }\r
1211             }\r
1212           },\r
1213         },\r
1214         link: {\r
1215           column: 'link',\r
1216           type: 'text',\r
1217           label: {\r
1218           },\r
1219           options: {\r
1220             row_break: true\r
1221           }\r
1222         },\r
1223         id: {\r
1224           column: 'id',\r
1225           type: 'hidden',\r
1226           label: {\r
1227             type: 'hidden'\r
1228           },\r
1229           options: {\r
1230           }\r
1231         },\r
1232         panel_id: {\r
1233           column: 'panel_id',\r
1234           type: 'hidden',\r
1235           label: {\r
1236             type: 'hidden'\r
1237           },\r
1238           options: {\r
1239           }\r
1240         },\r
1241         picture_id: {\r
1242           column: 'picture_id',\r
1243           type: 'hidden',\r
1244           label: {\r
1245           },\r
1246           helpers: {\r
1247             popup: {\r
1248               path: 'panels/popup_helper',\r
1249               source: 'pictures',\r
1250               options: {\r
1251               }\r
1252             }\r
1253           }\r
1254           options: {\r
1255           }\r
1256         },\r
1257         z: {\r
1258           column: 'z',\r
1259           type: 'hidden',\r
1260           label: {\r
1261             type: 'hidden'\r
1262           },\r
1263           options: {\r
1264           }\r
1265         },\r
1266         t: {\r
1267           column: 't',\r
1268           type: 'hidden',\r
1269           label: {\r
1270             type: 'hidden'\r
1271           },\r
1272           options: {\r
1273           }\r
1274         },\r
1275       },\r
1276       fields: [\r
1277         'caption',\r
1278         'x',\r
1279         'y',\r
1280         'width',\r
1281         'height',\r
1282         'link',\r
1283         'id',\r
1284         'panel_id',\r
1285         'picture_id',\r
1286         'z',\r
1287         't',\r
1288       ]\r
1289     },\r
1290     speech_balloon: {\r
1291       attributes: {\r
1292         'speech_balloon.id': {\r
1293           column: 'id',\r
1294           type: 'hidden',\r
1295           label: {\r
1296             type: 'hidden'\r
1297           },\r
1298           options: {\r
1299           }\r
1300         },\r
1301         'speech_balloon.panel_id': {\r
1302           column: 'panel_id',\r
1303           type: 'hidden',\r
1304           label: {\r
1305             type: 'hidden'\r
1306           },\r
1307           options: {\r
1308           }\r
1309         },\r
1310         'speech_balloon.speech_balloon_template_id': {\r
1311           column: 'speech_balloon_template_id',\r
1312           type: 'hidden',\r
1313           label: {\r
1314             type: 'hidden'\r
1315           },\r
1316           options: {\r
1317           }\r
1318         },\r
1319         'speech_balloon.caption': {\r
1320           column: 'caption',\r
1321           type: 'text',\r
1322           label: {\r
1323           },\r
1324           options: {\r
1325             row_break: true\r
1326           }\r
1327         },\r
1328         'speech_balloon.z': {\r
1329           column: 'z',\r
1330           type: 'hidden',\r
1331           label: {\r
1332             type: 'hidden'\r
1333           },\r
1334           options: {\r
1335           }\r
1336         },\r
1337         'speech_balloon.t': {\r
1338           column: 't',\r
1339           type: 'hidden',\r
1340           label: {\r
1341             type: 'hidden'\r
1342           },\r
1343           options: {\r
1344           }\r
1345         },\r
1346         'speech_balloon.classname': {\r
1347           column: 'classname',\r
1348           type: 'hidden',\r
1349           label: {\r
1350             type: 'hidden'\r
1351           },\r
1352           options: {\r
1353           }\r
1354         },\r
1355         'speech_balloon.settings': {\r
1356           column: 'settings',\r
1357           type: 'hidden',\r
1358           label: {\r
1359             type: 'hidden'\r
1360           },\r
1361           options: {\r
1362           }\r
1363         },\r
1364         'balloon.id': {\r
1365           model: 'balloon',\r
1366           part: 'balloon',\r
1367           column: 'id',\r
1368           type: 'hidden',\r
1369           label: {\r
1370             type: 'hidden'\r
1371           },\r
1372           options: {\r
1373           }\r
1374         },\r
1375         'balloon.speech_balloon_id': {\r
1376           model: 'balloon',\r
1377           part: 'balloon',\r
1378           column: 'speech_balloon_id',\r
1379           type: 'hidden',\r
1380           label: {\r
1381             type: 'hidden'\r
1382           },\r
1383           options: {\r
1384           }\r
1385         },\r
1386         'balloon.system_picture_id': {\r
1387           model: 'balloon',\r
1388           part: 'balloon',\r
1389           column: 'system_picture_id',\r
1390           type: 'hidden',\r
1391           label: {\r
1392             type: 'hidden'\r
1393           },\r
1394           options: {\r
1395           }\r
1396         },\r
1397         'balloon.r': {\r
1398           model: 'balloon',\r
1399           part: 'balloon',\r
1400           column: 'r',\r
1401           type: 'number',\r
1402           label: {\r
1403           },\r
1404           options: {\r
1405             size: 5, \r
1406             row_break: true\r
1407           },\r
1408           helpers: {\r
1409             tail_angle: {\r
1410               path: 'panels/tail_angle_helper',\r
1411               options: {\r
1412               }\r
1413             }\r
1414           }\r
1415         },\r
1416         'balloon.x': {\r
1417           model: 'balloon',\r
1418           part: 'balloon',\r
1419           column: 'x',\r
1420           type: 'number',\r
1421           label: {\r
1422           },\r
1423           options: {\r
1424             size: 5, \r
1425           }\r
1426         },\r
1427         'balloon.y': {\r
1428           model: 'balloon',\r
1429           part: 'balloon',\r
1430           column: 'y',\r
1431           type: 'number',\r
1432           label: {\r
1433           },\r
1434           options: {\r
1435             size: 5, \r
1436             row_break: true\r
1437           }\r
1438         },\r
1439         'balloon.width': {\r
1440           model: 'balloon',\r
1441           part: 'balloon',\r
1442           column: 'width',\r
1443           type: 'number',\r
1444           label: {\r
1445           },\r
1446           options: {\r
1447             size: 5, \r
1448           }\r
1449         },\r
1450         'balloon.height': {\r
1451           model: 'balloon',\r
1452           part: 'balloon',\r
1453           column: 'height',\r
1454           type: 'number',\r
1455           label: {\r
1456           },\r
1457           options: {\r
1458             size: 5, \r
1459             row_break: true\r
1460           }\r
1461         },\r
1462         'balloon.settings': {\r
1463           model: 'balloon',\r
1464           part: 'balloon',\r
1465           column: 'settings',\r
1466           type: 'hidden',\r
1467           label: {\r
1468             type: 'hidden'\r
1469           },\r
1470           options: {\r
1471           }\r
1472         },\r
1473         'speech.id': {\r
1474           model: 'speech',\r
1475           part: 'speech',\r
1476           column: 'id',\r
1477           type: 'hidden',\r
1478           label: {\r
1479             type: 'hidden'\r
1480           },\r
1481           options: {\r
1482           }\r
1483         },\r
1484         'speech.speech_balloon_id': {\r
1485           model: 'speech',\r
1486           part: 'speech',\r
1487           column: 'speech_balloon_id',\r
1488           type: 'hidden',\r
1489           label: {\r
1490             type: 'hidden'\r
1491           },\r
1492           options: {\r
1493           }\r
1494         },\r
1495         'speech.x': {\r
1496           model: 'speech',\r
1497           part: 'speech',\r
1498           column: 'x',\r
1499           type: 'hidden',\r
1500           label: {\r
1501             type: 'hidden'\r
1502           },\r
1503           options: {\r
1504           }\r
1505         },\r
1506         'speech.y': {\r
1507           model: 'speech',\r
1508           part: 'speech',\r
1509           column: 'y',\r
1510           type: 'hidden',\r
1511           label: {\r
1512             type: 'hidden'\r
1513           },\r
1514           options: {\r
1515           }\r
1516         },\r
1517         'speech.width': {\r
1518           model: 'speech',\r
1519           part: 'speech',\r
1520           column: 'width',\r
1521           type: 'hidden',\r
1522           label: {\r
1523             type: 'hidden'\r
1524           },\r
1525           options: {\r
1526           }\r
1527         },\r
1528         'speech.height': {\r
1529           model: 'speech',\r
1530           part: 'speech',\r
1531           column: 'height',\r
1532           type: 'hidden',\r
1533           label: {\r
1534             type: 'hidden'\r
1535           },\r
1536           options: {\r
1537           }\r
1538         },\r
1539         'speech.writing_format_id': {\r
1540           model: 'speech',\r
1541           part: 'speech',\r
1542           column: 'writing_format_id',\r
1543           type: 'select',\r
1544           label: {\r
1545           },\r
1546           options: {\r
1547             source: 'model',\r
1548             model: 'writing_format',\r
1549             method: 'enable_list',\r
1550             caption: 'caption'\r
1551           }\r
1552         },\r
1553         'speech.font_size': {\r
1554           model: 'speech',\r
1555           part: 'speech',\r
1556           column: 'font_size',\r
1557           type: 'select',\r
1558           label: {\r
1559           },\r
1560           options: {\r
1561             source: 'magic_number',\r
1562             key: 'speech_font_size_items',\r
1563             row_break: true\r
1564           }\r
1565         },\r
1566         'speech.text_align': {\r
1567           model: 'speech',\r
1568           part: 'speech',\r
1569           column: 'text_align',\r
1570           type: 'select',\r
1571           label: {\r
1572           },\r
1573           options: {\r
1574             source: 'magic_number',\r
1575             key: 'speech_text_align_items',\r
1576           }\r
1577         },\r
1578         'speech.quotes': {\r
1579           model: 'speech',\r
1580           part: 'speech',\r
1581           column: 'quotes',\r
1582           type: 'text',\r
1583           label: {\r
1584           },\r
1585           options: {\r
1586             size: 5, \r
1587           }\r
1588         },\r
1589         'speech.content': {\r
1590           model: 'speech',\r
1591           part: 'speech',\r
1592           column: 'content',\r
1593           type: 'text_area',\r
1594           label: {\r
1595             row_break: true\r
1596           },\r
1597           options: {\r
1598             size: '45x5', \r
1599           }\r
1600         },\r
1601         'speech.fore_color': {\r
1602           model: 'speech',\r
1603           part: 'speech',\r
1604           column: 'fore_color',\r
1605           type: 'hidden',\r
1606           label: {\r
1607             row_break: true\r
1608           },\r
1609           options: {\r
1610           },\r
1611           helpers: {\r
1612             color: {\r
1613               path: 'panels/color_helper',\r
1614               options: {\r
1615               },\r
1616               wrapper: 'speech-fore_color-wrap'\r
1617             }\r
1618           }\r
1619         },\r
1620         'speech.settings': {\r
1621           model: 'speech',\r
1622           part: 'speech',\r
1623           column: 'settings',\r
1624           type: 'hidden',\r
1625           label: {\r
1626             type: 'hidden'\r
1627           },\r
1628           options: {\r
1629           }\r
1630         },\r
1631       },\r
1632     },\r
1633     CircleSpeechBalloon: 'circle_speech_balloon',\r
1634     circle_speech_balloon: {\r
1635       base: 'speech_balloon',\r
1636       attributes: {\r
1637       },\r
1638       fields: [\r
1639           'speech_balloon.caption',\r
1640           'balloon.r',\r
1641           'balloon.x',\r
1642           'balloon.y',\r
1643           'balloon.width',\r
1644           'balloon.height',\r
1645           'balloon.id',\r
1646           'balloon.speech_balloon_id',\r
1647           'balloon.system_picture_id',\r
1648           'balloon.settings',\r
1649           'speech.writing_format_id',\r
1650           'speech.font_size',\r
1651           'speech.text_align',\r
1652           'speech.quotes',\r
1653           'speech.content',\r
1654           'speech.fore_color',\r
1655           'speech.id',\r
1656           'speech.speech_balloon_id',\r
1657           'speech.x',\r
1658           'speech.y',\r
1659           'speech.width',\r
1660           'speech.height',\r
1661           'speech.settings',\r
1662           'speech_balloon.id',\r
1663           'speech_balloon.panel_id',\r
1664           'speech_balloon.speech_balloon_template_id',\r
1665           'speech_balloon.classname',\r
1666           'speech_balloon.z',\r
1667           'speech_balloon.t',\r
1668           'speech_balloon.settings',\r
1669       ]\r
1670     },\r
1671     PlainSpeechBalloon: 'plain_speech_balloon',\r
1672     plain_speech_balloon: {\r
1673       base: 'speech_balloon',\r
1674       attributes: {\r
1675         'balloon.r': {\r
1676           model: 'balloon',\r
1677           part: 'balloon',\r
1678           column: 'r',\r
1679           type: 'hidden',\r
1680           label: {\r
1681             type: 'hidden'\r
1682           },\r
1683           options: {\r
1684           },\r
1685         },\r
1686       },\r
1687       fields: [\r
1688         'speech_balloon.caption',\r
1689         'balloon.r',\r
1690         'balloon.x',\r
1691         'balloon.y',\r
1692         'balloon.width',\r
1693         'balloon.height',\r
1694         'balloon.id',\r
1695         'balloon.speech_balloon_id',\r
1696         'balloon.system_picture_id',\r
1697         'balloon.settings',\r
1698         'speech.writing_format_id',\r
1699         'speech.font_size',\r
1700         'speech.text_align',\r
1701         'speech.quotes',\r
1702         'speech.content',\r
1703         'speech.fore_color',\r
1704         'speech.id',\r
1705         'speech.speech_balloon_id',\r
1706         'speech.x',\r
1707         'speech.y',\r
1708         'speech.width',\r
1709         'speech.height',\r
1710         'speech.settings',\r
1711         'speech_balloon.id',\r
1712         'speech_balloon.panel_id',\r
1713         'speech_balloon.speech_balloon_template_id',\r
1714         'speech_balloon.classname',\r
1715         'speech_balloon.z',\r
1716         'speech_balloon.t',\r
1717         'speech_balloon.settings',\r
1718       ]\r
1719     },\r
1720     SquareSpeechBalloon: 'square_speech_balloon',\r
1721     square_speech_balloon: {\r
1722       base: 'speech_balloon',\r
1723       attributes: {\r
1724         'balloon.r': {\r
1725           model: 'balloon',\r
1726           part: 'balloon',\r
1727           column: 'r',\r
1728           type: 'hidden',\r
1729           label: {\r
1730             type: 'hidden'\r
1731           },\r
1732           options: {\r
1733           },\r
1734         },\r
1735       },\r
1736       fields: [\r
1737         'speech_balloon.caption',\r
1738         'balloon.r',\r
1739         'balloon.x',\r
1740         'balloon.y',\r
1741         'balloon.width',\r
1742         'balloon.height',\r
1743         'balloon.id',\r
1744         'balloon.speech_balloon_id',\r
1745         'balloon.system_picture_id',\r
1746         'balloon.settings',\r
1747         'speech.writing_format_id',\r
1748         'speech.font_size',\r
1749         'speech.text_align',\r
1750         'speech.quotes',\r
1751         'speech.content',\r
1752         'speech.fore_color',\r
1753         'speech.id',\r
1754         'speech.speech_balloon_id',\r
1755         'speech.x',\r
1756         'speech.y',\r
1757         'speech.width',\r
1758         'speech.height',\r
1759         'speech.settings',\r
1760         'speech_balloon.id',\r
1761         'speech_balloon.panel_id',\r
1762         'speech_balloon.speech_balloon_template_id',\r
1763         'speech_balloon.classname',\r
1764         'speech_balloon.z',\r
1765         'speech_balloon.t',\r
1766         'speech_balloon.settings',\r
1767       ]\r
1768     },\r
1769     GroundPicture: 'ground_picture',\r
1770     ground_picture: {\r
1771       attributes: {\r
1772         id: {\r
1773           column: 'id',\r
1774           type: 'hidden',\r
1775           label: {\r
1776             type: 'hidden'\r
1777           },\r
1778           options: {\r
1779           }\r
1780         },\r
1781         panel_id: {\r
1782           column: 'panel_id',\r
1783           type: 'hidden',\r
1784           label: {\r
1785             type: 'hidden'\r
1786           },\r
1787           options: {\r
1788           }\r
1789         },\r
1790         picture_id: {\r
1791           column: 'picture_id',\r
1792           type: 'hidden',\r
1793           label: {\r
1794             type: 'hidden'\r
1795           },\r
1796           options: {\r
1797           }\r
1798         },\r
1799         caption: {\r
1800           column: 'caption',\r
1801           type: 'text',\r
1802           label: {\r
1803           },\r
1804           options: {\r
1805             row_break: true\r
1806           }\r
1807         },\r
1808         repeat: {\r
1809           column: 'repeat',\r
1810           type: 'select',\r
1811           label: {\r
1812           },\r
1813           options: {\r
1814             source: 'magic_number',\r
1815             key: 'ground_picture_repeat_items',\r
1816             row_break: true\r
1817           }\r
1818         },\r
1819         x: {\r
1820           column: 'x',\r
1821           type: 'number',\r
1822           label: {\r
1823           },\r
1824           options: {\r
1825             size: 5, \r
1826           }\r
1827         },\r
1828         y: {\r
1829           column: 'y',\r
1830           type: 'number',\r
1831           label: {\r
1832           },\r
1833           options: {\r
1834             size: 5, \r
1835             row_break: true\r
1836           }\r
1837         },\r
1838         z: {\r
1839           column: 'z',\r
1840           type: 'hidden',\r
1841           label: {\r
1842             type: 'hidden'\r
1843           },\r
1844           options: {\r
1845           }\r
1846         },\r
1847         t: {\r
1848           column: 't',\r
1849           type: 'hidden',\r
1850           label: {\r
1851             type: 'hidden'\r
1852           },\r
1853           options: {\r
1854           }\r
1855         },\r
1856       },\r
1857       fields: [\r
1858         'caption',\r
1859         'repeat',\r
1860         'x',\r
1861         'y',\r
1862         'z',\r
1863         't',\r
1864         'id',\r
1865         'panel_id',\r
1866         'picture_id',\r
1867       ]\r
1868     },\r
1869     GroundColor: 'ground_color',\r
1870     ground_color: {\r
1871       attributes: {\r
1872         id: {\r
1873           column: 'id',\r
1874           type: 'hidden',\r
1875           label: {\r
1876             type: 'hidden'\r
1877           },\r
1878           options: {\r
1879           }\r
1880         },\r
1881         panel_id: {\r
1882           column: 'panel_id',\r
1883           type: 'hidden',\r
1884           label: {\r
1885             type: 'hidden'\r
1886           },\r
1887           options: {\r
1888           }\r
1889         },\r
1890         caption: {\r
1891           column: 'caption',\r
1892           type: 'text',\r
1893           label: {\r
1894           },\r
1895           options: {\r
1896             row_break: true\r
1897           }\r
1898         },\r
1899         code: {\r
1900           column: 'code',\r
1901           type: 'hidden',\r
1902           label: {\r
1903             row_break: true\r
1904           },\r
1905           options: {\r
1906             row_break: true\r
1907           }\r
1908           helpers: {\r
1909             color: {\r
1910               path: 'panels/color_helper',\r
1911               options: {\r
1912               },\r
1913               wrapper: 'ground_color-code-wrap'\r
1914             }\r
1915           },\r
1916         },\r
1917         orientation: {\r
1918           column: 'orientation',\r
1919           type: 'select',\r
1920           label: {\r
1921           },\r
1922           options: {\r
1923             source: 'magic_number',\r
1924             key: 'ground_color_orientation_items',\r
1925             row_break: true\r
1926           }\r
1927         },\r
1928         xy: {\r
1929           column: 'xy',\r
1930           type: 'number',\r
1931           label: {\r
1932           },\r
1933           options: {\r
1934             size: 5, \r
1935           }\r
1936         },\r
1937         wh: {\r
1938           column: 'wh',\r
1939           type: 'number',\r
1940           label: {\r
1941           },\r
1942           options: {\r
1943             size: 5, \r
1944             row_break: true\r
1945           }\r
1946         },\r
1947         z: {\r
1948           column: 'z',\r
1949           type: 'hidden',\r
1950           label: {\r
1951             type: 'hidden'\r
1952           },\r
1953           options: {\r
1954           }\r
1955         },\r
1956         t: {\r
1957           column: 't',\r
1958           type: 'hidden',\r
1959           label: {\r
1960             type: 'hidden'\r
1961           },\r
1962           options: {\r
1963           }\r
1964         },\r
1965       },\r
1966       fields: [\r
1967         'id',\r
1968         'panel_id',\r
1969         'caption',\r
1970         'code',\r
1971         'orientation',\r
1972         'xy',\r
1973         'wh',\r
1974         'z',\r
1975         't',\r
1976       ]\r
1977     }\r
1978   },\r
1979   locales: {\r
1980     ja: {\r
1981     }\r
1982   },\r
1983 }\r
1984 \r
1985 @repeat_texts = ['repeat', 'repeat-x', 'repeat-y', 'no-repeat']\r
1986 \r
1987 @text_align_texts = ['left', 'left', 'right', 'center']\r
1988 \r