-
Notifications
You must be signed in to change notification settings - Fork 32
/
pp_definitions.py
443 lines (386 loc) · 37.5 KB
/
pp_definitions.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
class PPdefinitions:
IMAGE_FILES=('Image files', '.gif','.jpg','.jpeg','.bmp','.png','.tif')
VIDEO_FILES=('Video files','.mp4','.mkv','.avi','.mp2','.wmv','.m4v')
AUDIO_FILES=('Audio files','.mp3','.wav','.ogg')
WEB_FILES=('Web files','.htm','.html')
# order of fields for editor display
show_types={
'mediashow':[
'tab-show','sep',
'type','title','show-ref', 'medialist','trigger','trigger-input','progress','trigger-next','next-input','sequence','repeat','repeat-interval','trigger-end','trigger-end-time','show-canvas',
'tab-child','sep',
'has-child', 'hint-text', 'hint-x','hint-y','hint-font','hint-colour',
'tab-show-text','sep',
'show-text','show-text-font','show-text-colour','show-text-x','show-text-y',
'tab-tracks','sep',
'background-image','background-colour','transition', 'duration','image-window','audio-speaker','mplayer-audio','mplayer-volume','mplayer-other-options',
'omx-audio','omx-volume','omx-window','omx-other-options','web-window',
'tab-controls','sep',
'disable-controls', 'controls'
],
'menu':[
'tab-show','sep',
'type','title','show-ref','medialist','timeout','menu-background-colour','has-background','entry-font','entry-colour', 'entry-select-colour','show-canvas',
'tab-menu-geometry','sep',
'menu-window','menu-direction','menu-rows','menu-columns','menu-icon-mode','menu-text-mode','menu-bullet','menu-icon-width','menu-icon-height',
'menu-horizontal-padding','menu-vertical-padding','menu-text-width','menu-text-height','menu-horizontal-separation','menu-vertical-separation',
'menu-strip','menu-strip-padding','menu-guidelines',
'tab-menu-text','sep',
'hint-text', 'hint-x', 'hint-y', 'hint-font', 'hint-colour','sep', 'menu-text', 'menu-text-x', 'menu-text-y', 'menu-text-font', 'menu-text-colour',
'tab-show-text','sep',
'show-text','show-text-font','show-text-colour','show-text-x','show-text-y',
'tab-tracks','sep',
'background-image','background-colour','transition','duration','image-window','audio-speaker','mplayer-audio','mplayer-volume','mplayer-other-options',
'omx-audio','omx-volume','omx-window','omx-other-options','web-window',
'tab-controls','sep',
'disable-controls','controls'
],
'liveshow':[
'tab-show','sep',
'type','title','show-ref', 'medialist','live-tracks-dir','trigger-start','trigger-start-time','trigger-end','trigger-end-time','show-canvas',
'tab-child','sep',
'has-child', 'hint-text', 'hint-x','hint-y','hint-font','hint-colour',
'tab-show-text','sep',
'show-text','show-text-font','show-text-colour','show-text-x','show-text-y',
'tab-tracks','sep',
'background-image','background-colour','transition', 'duration','image-window','audio-speaker','mplayer-audio',
'mplayer-volume','mplayer-other-options','omx-audio','omx-volume','omx-window','omx-other-options','web-window',
'tab-controls','sep',
'disable-controls','controls'
],
'hyperlinkshow':[
'tab-show','sep',
'type','title','show-ref','medialist','first-track-ref','home-track-ref','timeout','timeout-track-ref','show-canvas',
'tab-show-text','sep',
'show-text','show-text-font','show-text-colour','show-text-x','show-text-y',
'tab-tracks','sep',
'background-image','background-colour','transition', 'duration','image-window','audio-speaker','mplayer-audio','mplayer-volume','mplayer-other-options',
'omx-audio','omx-volume','omx-window','omx-other-options','web-window',
'tab-links','sep',
'links',
'tab-controls','sep',
'disable-controls','controls'
],
'radiobuttonshow':[
'tab-show','sep',
'type','title','show-ref','medialist','first-track-ref','timeout','show-canvas',
'tab-show-text','sep',
'show-text','show-text-font','show-text-colour','show-text-x','show-text-y',
'tab-tracks','sep',
'background-image','background-colour','transition', 'duration','image-window','audio-speaker','mplayer-audio','mplayer-volume','mplayer-other-options',
'omx-audio','omx-volume','omx-window','omx-other-options','web-window',
'tab-links','sep',
'links',
'tab-controls','sep',
'disable-controls','controls'
],
'start':[
'tab-show','sep',
'type','title','show-ref','start-show'
]
}
# field details for creating new shows and for update of profile
new_shows={
'hyperlinkshow':{ 'type':'hyperlinkshow','title':'New Hyperlink Show','show-ref':'', 'show-canvas':'', 'medialist':'',
'links':'','first-track-ref':'','home-track-ref':'','timeout-track-ref':'','disable-controls':'no','timeout': '60',
'show-text':'','show-text-font':'','show-text-colour':'','show-text-x':'0','show-text-y':'0','background-image':'','background-colour':'',
'transition': 'cut', 'duration': '0','image-window':'original',
'audio-speaker':'stereo','mplayer-audio':'hdmi','mplayer-volume':'0','mplayer-other-options':'',
'omx-audio': 'hdmi','omx-volume':'0','omx-window':'original','omx-other-options': '','web-window':'warp',
'controls':''},
'radiobuttonshow':{ 'type':'radiobuttonshow','title':'New Radio Button Show','show-ref':'', 'show-canvas':'', 'medialist':'',
'links':'','first-track-ref':'','disable-controls':'no','timeout': '60',
'show-text':'','show-text-font':'','show-text-colour':'','show-text-x':'0','show-text-y':'0','background-image':'','background-colour':'',
'transition': 'cut', 'duration': '0','image-window':'original',
'audio-speaker':'stereo','mplayer-audio':'hdmi','mplayer-volume':'0','mplayer-other-options':'',
'omx-audio': 'hdmi','omx-volume':'0','omx-window':'original','omx-other-options': '','web-window':'warp',
'controls':''},
'mediashow':{'title': 'New Mediashow','show-ref':'', 'show-canvas':'', 'type': 'mediashow','medialist': '',
'disable-controls':'no','trigger': 'start','trigger-input':'','progress': 'auto','trigger-next': 'continue','next-input':'','sequence': 'ordered','repeat': 'interval','repeat-interval': '10','trigger-end':'none', 'trigger-end-time':'',
'has-child': 'no', 'hint-text': '', 'hint-x':'200','hint-y': '980','hint-font': 'Helvetica 30 bold','hint-colour': 'white',
'show-text':'','show-text-font':'','show-text-colour':'','show-text-x':'0','show-text-y':'0','background-image':'','background-colour':'',
'transition': 'cut', 'duration': '5','image-window':'original','audio-speaker':'stereo','mplayer-audio':'hdmi','mplayer-volume':'0','mplayer-other-options':'','web-window':'warp',
'omx-audio': 'hdmi','omx-volume':'0','omx-window':'original','omx-other-options': '',
'controls':''},
'liveshow':{'title': 'New Liveshow','show-ref':'','show-canvas':'', 'type': 'liveshow', 'disable-controls':'no','trigger-start': 'start','trigger-start-time':'','trigger-end':'none', 'trigger-end-time':'','medialist': '',
'has-child': 'no', 'hint-text': '','hint-x':'200', 'hint-y': '980','hint-font': 'Helvetica 30 bold','hint-colour': 'white',
'show-text':'','show-text-font':'','show-text-colour':'','show-text-x':'0','show-text-y':'0','background-image':'','background-colour':'',
'transition': 'cut', 'duration': '5','image-window':'original','audio-speaker':'stereo','mplayer-audio':'hdmi','mplayer-volume':'0','mplayer-other-options':'',
'omx-audio': 'hdmi','omx-volume':'0','omx-window':'original','omx-other-options': '','web-window':'warp',
'controls':'','live-tracks-dir':''},
'menu':{'show-ref': '','show-canvas':'', 'title': 'New Menu','type': 'menu','medialist': '',
'disable-controls':'no','timeout': '0','menu-background-colour':'black','has-background': 'no',
'entry-font': 'Helvetica 30 bold','entry-colour': 'white', 'entry-select-colour': 'red',
'hint-text': 'Up, down to Select, Return to Play', 'hint-x':'200','hint-y': '980', 'hint-font': 'Helvetica 30 bold', 'hint-colour': 'white',
'menu-text': '', 'menu-text-x':'','menu-text-y': '', 'menu-text-font': '', 'menu-text-colour': '',
'menu-window':'300 250','menu-direction':'vertical','menu-rows':'10','menu-columns':'1','menu-icon-mode':'bullet','menu-text-mode':'right',
'menu-bullet':'/home/pi/pipresents/pp_home/pp_resources/bullet_square_grey.png',
'menu-icon-width':'80','menu-icon-height':'80',
'menu-horizontal-padding':'10','menu-vertical-padding':'10','menu-text-width':'800','menu-text-height':'50',
'menu-horizontal-separation':'20','menu-vertical-separation':'20','menu-strip':'no','menu-strip-padding':'5','menu-guidelines':'never',
'show-text':'','show-text-font':'','show-text-colour':'','show-text-x':'0','show-text-y':'0','background-image':'','background-colour':'',
'transition': 'cut', 'duration': '5','image-window':'original','audio-speaker':'stereo','mplayer-audio':'hdmi','mplayer-volume':'0', 'mplayer-other-options':'',
'omx-audio': 'hdmi','omx-volume':'0','omx-window':'original','omx-other-options': '','web-window':'warp',
'controls':''},
'start':{'title': 'Start','show-ref':'start', 'type': 'start','start-show':''}
}
show_field_specs={
'sep':{'shape':'sep'},
'audio-speaker':{'param':'audio-speaker','shape':'option-menu','text':'Audio Speaker','must':'no','read-only':'no',
'values':['left','right','stereo']},
'background-colour':{'param':'background-colour','shape':'colour','text':'Background Colour','must':'no','read-only':'no'},
'background-image':{'param':'background-image','shape':'browse','text':'Background Image','must':'no','read-only':'no'},
'controls':{'param':'controls','shape':'text','text':'Controls','must':'no','read-only':'no'},
'disable-controls':{'param':'disable-controls','shape':'option-menu','text':'Disable Controls ','must':'no','read-only':'no','values':['yes','no']},
'duration':{'param':'duration','shape':'entry','text':'Duration (secs)','must':'no','read-only':'no'},
'entry-font':{'param':'entry-font','shape':'font','text':'Entry Font','must':'no','read-only':'no'},
'entry-colour':{'param':'entry-colour','shape':'colour','text':'Entry Colour','must':'no','read-only':'no'},
'entry-select-colour':{'param':'entry-select-colour','shape':'colour','text':'Selected Entry Colour','must':'no','read-only':'no'},
'timeout-track-ref':{'param':'timeout-track-ref','shape':'entry','text':'Timeout Track','must':'no','read-only':'no'},
'first-track-ref':{'param':'first-track-ref','shape':'entry','text':'First Track','must':'no','read-only':'no'},
'has-child':{'param':'has-child','shape':'option-menu','text':'Has Child','must':'no','read-only':'no',
'values':['yes','no']},
'has-background':{'param':'has-background','shape':'option-menu','text':'Has Background Image','must':'no','read-only':'no','values':['yes','no']},
'hint-text':{'param':'hint-text','shape':'text','text':'Hint Text','must':'no','read-only':'no'},
'hint-x':{'param':'hint-x','shape':'entry','text':'Hint Text x Position','must':'no','read-only':'no'},
'hint-y':{'param':'hint-y','shape':'entry','text':'Hint Text y Position','must':'no','read-only':'no'},
'hint-font':{'param':'hint-font','shape':'font','text':'Hint Font','must':'no','read-only':'no'},
'hint-colour':{'param':'hint-colour','shape':'colour','text':'Hint Colour','must':'no','read-only':'no'},
'home-track-ref':{'param':'home-track-ref','shape':'entry','text':'Home Track','must':'no','read-only':'no'},
'image-window':{'param':'image-window','shape':'entry','text':'Image Window','must':'no','read-only':'no'},
'links':{'param':'links','shape':'text','text':'Links','must':'no','read-only':'no'},
'live-tracks-dir':{'param':'live-tracks-dir','shape':'entry','text':'Live Tracks Directory (not used)','must':'no','read-only':'no'},
'medialist':{'param':'medialist','shape':'entry','text':'Medialist','must':'no','read-only':'no'},
'message-font':{'param':'message-font','shape':'font','text':'Text Font','must':'yes','read-only':'no'},
'menu-background-colour':{'param':'menu-background-colour','shape':'colour','text':'Background Colour','must':'no','read-only':'no'},
'menu-text':{'param':'menu-text','shape':'text','text':'Menu Text','must':'no','read-only':'no'},
'menu-text-font':{'param':'menu-text-font','shape':'font','text':'Menu Text Font','must':'no','read-only':'no'},
'menu-text-colour':{'param':'menu-text-colour','shape':'colour','text':'Menu Text Colour','must':'no','read-only':'no'},
'menu-text-x':{'param':'menu-text-x','shape':'entry','text':'Menu Text x Position','must':'no','read-only':'no'},
'menu-text-y':{'param':'menu-text-y','shape':'entry','text':'Menu Text y Position','must':'no','read-only':'no'},
'menu-window':{'param':'menu-window','shape':'entry','text':'Menu Window','must':'no','read-only':'no'},
'menu-direction':{'param':'menu-direction','shape':'option-menu','text':'Direction','must':'no','read-only':'no',
'values':['horizontal','vertical']},
'menu-rows':{'param':'menu-rows','shape':'entry','text':'Rows','must':'no','read-only':'no'},
'menu-columns':{'param':'menu-columns','shape':'entry','text':'Columns','must':'no','read-only':'no'},
'menu-icon-mode':{'param':'menu-icon-mode','shape':'option-menu','text':'Icon Mode','must':'no','read-only':'no',
'values':['none','thumbnail','bullet']},
'menu-text-mode':{'param':'menu-text-mode','shape':'option-menu','text':'Text Mode','must':'no','read-only':'no',
'values':['none','overlay','right','below']},
'menu-strip':{'param':'menu-strip','shape':'option-menu','text':'Stipple Background','must':'no','read-only':'no',
'values':['no','yes']},
'menu-strip-padding':{'param':'menu-strip-padding','shape':'entry','text':'Stipple Background Padding','must':'no','read-only':'no'},
'menu-guidelines':{'param':'menu-guidelines','shape':'option-menu','text':'Guidelines','must':'no','read-only':'no',
'values':['never','auto','always']},
'menu-bullet':{'param':'menu-bullet','shape':'browse','text':'Bullet','must':'no','read-only':'no'},
'menu-icon-width':{'param':'menu-icon-width','shape':'entry','text':'Icon Width','must':'no','read-only':'no'},
'menu-icon-height':{'param':'menu-icon-height','shape':'entry','text':'Icon Height','must':'no','read-only':'no'},
'menu-horizontal-padding':{'param':'menu-horizontal-padding','shape':'entry','text':'Horizontal Padding','must':'no','read-only':'no'},
'menu-vertical-padding':{'param':'menu-vertical-padding','shape':'entry','text':'Vertical Padding','must':'no','read-only':'no'},
'menu-horizontal-separation':{'param':'menu-horizontal-separation','shape':'entry','text':'Horizontal Separation','must':'no','read-only':'no'},
'menu-vertical-separation':{'param':'menu-vertical-separation','shape':'entry','text':'Vertical Separation','must':'no','read-only':'no'},
'menu-text-width':{'param':'menu-text-width','shape':'entry','text':'Text Width','must':'no','read-only':'no'},
'menu-text-height':{'param':'menu-text-height','shape':'entry','text':'Text Height','must':'no','read-only':'no'},
'message-colour':{'param':'message-colour','shape':'colour','text':'Text Colour','must':'yes','read-only':'no'},
'mplayer-audio':{'param':'mplayer-audio','shape':'option-menu','text':'Audio Player Audio','must':'no','read-only':'no',
'values':['hdmi','local']},
'mplayer-other-options':{'param':'mplayer-other-options','shape':'entry','text':'Audio Player Options','must':'no','read-only':'no'},
'mplayer-volume':{'param':'mplayer-volume','shape':'entry','text':'Audio Volume','must':'no','read-only':'no'},
'next-input':{'param':'next-input','shape':'entry','text':'Next Input','must':'no','read-only':'no'},
'omx-audio':{'param':'omx-audio','shape':'option-menu','text':'Video Player Audio','must':'no','read-only':'no',
'values':['hdmi','local']},
'omx-other-options':{'param':'omx-other-options','shape':'entry','text':'Video Player Options','must':'no','read-only':'no'},
'omx-volume':{'param':'omx-volume','shape':'entry','text':'Video Player Volume','must':'no','read-only':'no'},
'omx-window':{'param':'omx-window','shape':'entry','text':'Video Window','must':'no','read-only':'no'},
'progress':{'param':'progress','shape':'option-menu','text':'Progress','must':'no','read-only':'no',
'values':['auto','manual']},
'repeat':{'param':'repeat','shape':'option-menu','text':'Repeat','must':'no','read-only':'no',
'values':['oneshot','interval','single-run']},
'repeat-interval':{'param':'repeat-interval','shape':'entry','text':'Repeat Interval (secs.)','must':'no','read-only':'no'},
'sequence':{'param':'sequence','shape':'option-menu','text':'Sequence','must':'no','read-only':'no',
'values':['ordered','shuffle']},
'show-canvas':{'param':'show-canvas','shape':'entry','text':'Show Canvas (not used)','must':'no','read-only':'no'},
'show-ref':{'param':'show-ref','shape':'entry','text':'Show Reference','must':'no','read-only':'no'},
'show-text':{'param':'show-text','shape':'text','text':'Show Text','must':'no','read-only':'no'},
'show-text-font':{'param':'show-text-font','shape':'font','text':'Show Text Font','must':'no','read-only':'no'},
'show-text-colour':{'param':'show-text-colour','shape':'colour','text':'Show Text Colour','must':'no','read-only':'no'},
'show-text-x':{'param':'show-text-x','shape':'entry','text':'Show Text x Position','must':'no','read-only':'no'},
'show-text-y':{'param':'show-text-y','shape':'entry','text':'Show Text y Position','must':'no','read-only':'no'},
'start-show':{'param':'start-show','shape':'entry','text':'Start Shows','must':'no','read-only':'no'},
'tab-animation':{'shape':'tab','name':'animation','text':'Animation'},
'tab-child':{'shape':'tab','name':'child','text':'Child Show'},
'tab-controls':{'shape':'tab','name':'controls','text':'Controls'},
'tab-links':{'shape':'tab','name':'links','text':'Links'},
'tab-menu-geometry':{'shape':'tab','name':'menu-geometry','text':'Geometry'},
'tab-show':{'shape':'tab','name':'show','text':'Show'},
'tab-show-text':{'shape':'tab','name':'show-text','text':'Show Text'},
'tab-menu-text':{'shape':'tab','name':'menu-text','text':'Menu Text'},
'tab-track':{'shape':'tab','name':'track','text':'Track'},
'tab-tracks':{'shape':'tab','name':'tracks','text':'Track Defaults'},
'text':{'param':'text','shape':'text','text':'Message Text','must':'no','read-only':'no'},
'timeout':{'param':'timeout','shape':'entry','text':'Timeout (secs)','must':'no','read-only':'no'},
'title':{'param':'title','shape':'entry','text':'Title','must':'no','read-only':'no'},
'transition':{'param':'transition','shape':'option-menu','text':'Transition','must':'no','read-only':'no',
'values':['cut',]},
'trigger':{'param':'trigger','shape':'option-menu','text':'Trigger for Start','must':'no','read-only':'no',
'values':['start','input','input-quiet','time','time-quiet']},
'trigger-start':{'param':'trigger-start','shape':'option-menu','text':'Trigger for Start','must':'no','read-only':'no','values':['start','time','time-quiet']},
'trigger-end':{'param':'trigger-end','shape':'option-menu','text':'Trigger for End','must':'no','read-only':'no','values':['none','time','duration']},
'trigger-next':{'param':'trigger-next','shape':'option-menu','text':'Trigger for next','must':'no','read-only':'no','values':['continue','input']},
'trigger-start-time':{'param':'trigger-start-time','shape':'entry','text':'Start Times','must':'no','read-only':'no'},
'trigger-end-time':{'param':'trigger-end-time','shape':'entry','text':'End Times','must':'no','read-only':'no'},
'trigger-input':{'param':'trigger-input','shape':'entry','text':'Trigger Input','must':'no','read-only':'no'},
'type':{'param':'type','shape':'entry','text':'Type','must':'no','read-only':'yes'},
'web-window':{'param':'web-window','shape':'entry','text':'Browser Window','must':'no','read-only':'no'},
}
track_types={
'video':[
'tab-track','sep',
'type','title','track-ref','location','thumbnail','omx-audio','omx-volume','omx-window',
'background-colour','background-image','display-show-background','plugin',
'tab-track-text','sep',
'track-text','track-text-font','track-text-colour','track-text-x','track-text-y','display-show-text',
'tab-links','sep',
'links',
'tab-show-control','sep',
'show-control-begin','show-control-end',
'tab-animate','sep',
'animate-begin','animate-clear','animate-end'
],
'message':[
'tab-track','sep',
'type','title','track-ref','text','thumbnail','duration','message-font','message-colour','message-justify','message-x','message-y',
'background-colour','background-image','display-show-background','plugin',
'tab-track-text','sep',
'track-text','track-text-font','track-text-colour','track-text-x','track-text-y','display-show-text',
'tab-links','sep',
'links',
'tab-show-control','sep',
'show-control-begin','show-control-end',
'tab-animate','sep',
'animate-begin','animate-clear','animate-end'
],
'show':[
'tab-track','sep',
'type','title','track-ref','sub-show','thumbnail'
],
'image':[
'tab-track','sep',
'type','title','track-ref','location','thumbnail','duration','transition','image-window','background-colour','background-image','display-show-background','plugin',
'tab-track-text','sep',
'track-text','track-text-font','track-text-colour','track-text-x','track-text-y','display-show-text',
'tab-links','sep',
'links',
'tab-show-control','sep',
'show-control-begin','show-control-end',
'tab-animate','sep',
'animate-begin','animate-clear','animate-end'
],
'audio':[
'tab-track','sep',
'type','title','track-ref','location','thumbnail','duration','audio-speaker','mplayer-audio','mplayer-volume','mplayer-other-options',
'clear-screen','background-colour','background-image','display-show-background','plugin',
'tab-track-text','sep',
'track-text','track-text-font','track-text-colour','track-text-x','track-text-y','display-show-text',
'tab-links','sep',
'links',
'tab-show-control','sep',
'show-control-begin','show-control-end',
'tab-animate','sep',
'animate-begin','animate-clear','animate-end'
],
'web':[
'tab-track','sep',
'type','title','track-ref','location','thumbnail','duration','web-window',
'background-colour','background-image','display-show-background','plugin',
'tab-track-text','sep',
'track-text','track-text-font','track-text-colour','track-text-x','track-text-y','display-show-text',
'tab-browser-commands','sep',
'browser-commands',
'tab-links','sep',
'links',
'tab-show-control','sep',
'show-control-begin','show-control-end',
'tab-animate','sep',
'animate-begin','animate-clear','animate-end'
],
'menu-background':[
'tab-track','sep',
'type','title','track-ref','location'
]
}
new_tracks={
'video':{'title':'New Video','track-ref':'','type':'video','location':'','thumbnail':'','omx-audio':'','omx-volume':'','omx-window':'','background-colour':'','background-image':'','display-show-background':'yes','display-show-text':'yes','track-text':'','track-text-font':'',
'track-text-colour':'','track-text-x':'0','track-text-y':'0','links':'','show-control-begin':'','show-control-end':'','animate-begin':'','animate-clear':'no','animate-end':'','plugin':''},
'message':{'title':'New Message','track-ref':'','type':'message','text':'','thumbnail':'','duration':'','message-font':'Helvetica 30 bold','message-colour':'white','message-justify':'left','message-x':'','message-y':'',
'track-text':'','track-text-font':'','track-text-colour':'','track-text-x':'0','track-text-y':'0',
'background-colour':'','background-image':'','display-show-background':'yes','display-show-text':'no','links':'','show-control-begin':'','show-control-end':'','animate-begin':'','animate-clear':'no','animate-end':'','plugin':''},
'show':{'title':'New Show','track-ref':'','type':'show','sub-show':'','thumbnail':''},
'image':{'title':'New Image','track-ref':'','type':'image','location':'','thumbnail':'','duration':'','transition':'','image-window':'','background-colour':'','background-image':'','display-show-background':'yes','display-show-text':'yes','track-text':'','track-text-font':'',
'track-text-colour':'','track-text-x':'0','track-text-y':'0','links':'','show-control-begin':'','show-control-end':'','animate-begin':'','animate-clear':'no','animate-end':'','plugin':''},
'audio':{'title':'New Audio','track-ref':'','type':'audio','location':'', 'thumbnail':'','duration':'','audio-speaker':'','mplayer-audio':'','mplayer-volume':'','display-show-text':'yes',
'mplayer-other-options':'','clear-screen':'no','background-colour':'','background-image':'','display-show-background':'yes','track-text':'','track-text-font':'','track-text-colour':'','track-text-x':'0','track-text-y':'0','links':'','show-control-begin':'','show-control-end':'','animate-begin':'','animate-clear':'no','animate-end':'','plugin':''},
'web':{'title':'New Web','track-ref':'','type':'web','location':'', 'thumbnail':'','duration':'','web-window':'','display-show-text':'yes',
'background-colour':'','background-image':'','display-show-background':'yes','track-text':'','track-text-font':'','track-text-colour':'','track-text-x':'0','track-text-y':'0','links':'','show-control-begin':'','show-control-end':'','animate-begin':'','animate-clear':'no','animate-end':'','browser-commands':'','plugin':''},
'menu-background':{'title':'New Menu Background','track-ref':'pp-menu-background','type':'menu-background','location':''},
'child-show': {'title':'New Child Show','track-ref':'pp-child-show','type':'show','sub-show':'','thumbnail':''}
}
track_field_specs={'sep':{'shape':'sep'},
'animate-begin':{'param':'animate-begin','shape':'text','text':'Animation at Beginning','must':'no','read-only':'no'},
'animate-end':{'param':'animate-end','shape':'text','text':'Animation at End','must':'no','read-only':'no'},
'animate-clear':{'param':'animate-clear','shape':'option-menu','text':'Clear Animation','must':'no','read-only':'no',
'values':['yes','no']},
'audio-speaker':{'param':'audio-speaker','shape':'option-menu','text':'Audio Speaker','must':'no','read-only':'no',
'values':['left','right','stereo','']},
'background-image':{'param':'background-image','shape':'browse','text':'Background Image','must':'no','read-only':'no'},
'background-colour':{'param':'background-colour','shape':'colour','text':'Background Colour','must':'no','read-only':'no'},
'browser-commands':{'param':'browser-commands','shape':'text','text':'Browser Commands','must':'no','read-only':'no'},
'clear-screen':{'param':'clear-screen','shape':'option-menu','text':'Clear Screen','must':'no','read-only':'no',
'values':['yes','no']},
'display-show-background':{'param':'display-show-background','shape':'option-menu','text':'Display Show Background Image','must':'no','read-only':'no',
'values':['yes','no','']},
'display-show-text':{'param':'display-show-text','shape':'option-menu','text':'Display Show Text','must':'no','read-only':'no',
'values':['yes','no','']},
'duration':{'param':'duration','shape':'entry','text':'Duration (secs)','must':'no','read-only':'no'},
'image-window':{'param':'image-window','shape':'entry','text':'Image Window','must':'no','read-only':'no'},
'location':{'param':'location','shape':'browse','text':'Location','must':'no','read-only':'no'},
'links':{'param':'links','shape':'text','text':'Links','must':'no','read-only':'no'},
'message-font':{'param':'message-font','shape':'font','text':'Text Font','must':'no','read-only':'no'},
'message-colour':{'param':'message-colour','shape':'colour','text':'Text Colour','must':'no','read-only':'no'},
'message-justify':{'param':'message-justify','shape':'option-menu','text':'Justification','must':'no','read-only':'no',
'values':['left','center','right']},
'message-x':{'param':'message-x','shape':'entry','text':'Message x Position','must':'no','read-only':'no'},
'message-y':{'param':'message-y','shape':'entry','text':'Message y Position','must':'no','read-only':'no'},
'mplayer-audio':{'param':'mplayer-audio','shape':'option-menu','text':'Audio Player Audio','must':'no','read-only':'no',
'values':['hdmi','local','']},
'mplayer-other-options':{'param':'mplayer-other-options','shape':'entry','text':'Audio Player Options','must':'no','read-only':'no'},
'mplayer-volume':{'param':'mplayer-volume','shape':'entry','text':'Audio Player Volume','must':'no','read-only':'no'},
'links':{'param':'links','shape':'text','text':'Links','must':'no','read-only':'no'},
'omx-audio':{'param':'omx-audio','shape':'option-menu','text':'Video Player Audio','must':'no','read-only':'no',
'values':['hdmi','local','']},
'omx-volume':{'param':'omx-volume','shape':'entry','text':'Video Player Volume','must':'no','read-only':'no'},
'omx-window':{'param':'omx-window','shape':'entry','text':'Video Window','must':'no','read-only':'no'},
'plugin':{'param':'plugin','shape':'browse','text':'Plugin Config File','must':'no','read-only':'no'},
'show-ref':{'param':'show-ref','shape':'entry','text':'Show Reference','must':'no','read-only':'no'},
'show-control-begin':{'param':'show-control-begin','shape':'text','text':'Show Control at Beginning','must':'no','read-only':'no'},
'show-control-end':{'param':'show-control-end','shape':'text','text':'Show Control at End','must':'no','read-only':'no'},
'sub-show':{'param':'sub-show','shape':'option-menu','text':'Show to Run','must':'no','read-only':'no'},
'tab-animate':{'shape':'tab','name':'animate','text':'Animation'},
'tab-browser-commands':{'shape':'tab','name':'browser-commands','text':'Browser Commands'},
'tab-show-control':{'shape':'tab','name':'show-control','text':'Show Control'},
'tab-links':{'shape':'tab','name':'links','text':'Links'},
'tab-track-text':{'shape':'tab','name':'track-text','text':'Text'},
'tab-track':{'shape':'tab','name':'track','text':'Track'},
'text':{'param':'text','shape':'text','text':'Message Text','must':'no','read-only':'no'},
'thumbnail':{'param':'thumbnail','shape':'browse','text':'Thumbnail','must':'no','read-only':'no'},
'title':{'param':'title','shape':'entry','text':'Title','must':'no','read-only':'no'},
'track-ref':{'param':'track-ref','shape':'entry','text':'Track Reference','must':'no','read-only':'no'},
'track-text':{'param':'track-text','shape':'text','text':'Track Text','must':'no','read-only':'no'},
'track-text-font':{'param':'track-text-font','shape':'font','text':'Track Text Font','must':'no','read-only':'no'},
'track-text-colour':{'param':'track-text-colour','shape':'colour','text':'Track Text Colour','must':'no','read-only':'no'},
'track-text-x':{'param':'track-text-x','shape':'entry','text':'Track Text x Position','must':'no','read-only':'no'},
'track-text-y':{'param':'track-text-y','shape':'entry','text':'Track Text y Position','must':'no','read-only':'no'},
'transition':{'param':'transition','shape':'option-menu','text':'Transition','must':'no','read-only':'no','values':['cut','']},
'type':{'param':'type','shape':'entry','text':'Type','must':'no','read-only':'yes'},
'web-window':{'param':'web-window','shape':'entry','text':'Browser Window','must':'no','read-only':'no'},
}