Home | History | Annotate | Download | only in JetCreator

Lines Matching refs:dlg

412         dlg = SegEdit(JetDefs.MAIN_ADDSEGTITLE, self.currentJetConfigFile)

415 dlg.je.ctrls[JetDefs.F_MIDIFILE].Append(filename)
417 dlg.je.ctrls[JetDefs.F_DLSFILE].Append(library)
419 result = dlg.ShowModal()
421 if len(dlg.lstReplicate) > 0:
422 if dlg.chkReplaceMatching:
423 self.jet_file.DeleteSegmentsMatchingPrefix(dlg.replicatePrefix)
425 for replicate in dlg.lstReplicate:
426 self.jet_file.AddSegment(replicate[0], dlg.GetValue(JetDefs.F_MIDIFILE),
429 SegmentOutputFile(dlg.GetValue(JetDefs.F_SEGNAME), self.currentJetConfigFile),
430 dlg.GetValue(JetDefs.F_QUANTIZE),
431 [], dlg.GetValue(JetDefs.F_DLSFILE),
433 dlg.GetValue(JetDefs.F_TRANSPOSE),
434 dlg.GetValue(JetDefs.F_REPEAT),
435 dlg.GetValue(JetDefs.F_MUTEFLAGS))
438 self.SelectSegment(dlg.lstReplicate[0][0])
440 self.jet_file.AddSegment(dlg.GetValue(JetDefs.F_SEGNAME), dlg.GetValue(JetDefs.F_MIDIFILE),
441 dlg.GetValue(JetDefs.F_START), dlg.GetValue(JetDefs.F_END),
443 SegmentOutputFile(dlg.GetValue(JetDefs.F_SEGNAME), self.currentJetConfigFile),
444 dlg.GetValue(JetDefs.F_QUANTIZE),
445 [], dlg.GetValue(JetDefs.F_DLSFILE),
447 dlg.GetValue(JetDefs.F_TRANSPOSE),
448 dlg.GetValue(JetDefs.F_REPEAT),
449 dlg.GetValue(JetDefs.F_MUTEFLAGS))
451 self.SelectSegment(dlg.GetValue(JetDefs.F_SEGNAME))
453 dlg.Destroy()
466 dlg = SegEdit(JetDefs.MAIN_REVSEGTITLE, self.currentJetConfigFile)
469 dlg.je.ctrls[JetDefs.F_MIDIFILE].Append(filename)
471 dlg.je.ctrls[JetDefs.F_DLSFILE].Append(library)
473 dlg.SetValue(JetDefs.F_SEGNAME, segment.segname)
474 dlg.SetValue(JetDefs.F_MUTEFLAGS, segment.mute_flags)
475 dlg.SetValue(JetDefs.F_MIDIFILE, segment.filename)
476 dlg.SetValue(JetDefs.F_DLSFILE, segment.dlsfile)
477 dlg.SetValue(JetDefs.F_START, segment.start)
478 dlg.SetValue(JetDefs.F_END, segment.end)
479 dlg.SetValue(JetDefs.F_QUANTIZE, segment.quantize)
480 dlg.SetValue(JetDefs.F_TRANSPOSE, segment.transpose)
481 dlg.SetValue(JetDefs.F_REPEAT, segment.repeat)
482 dlg.jetevents = segment.jetevents
484 result = dlg.ShowModal()
486 self.jet_file.UpdateSegment(self.currentSegmentName, dlg.GetValue(JetDefs.F_SEGNAME),
487 dlg.GetValue(JetDefs.F_MIDIFILE),
488 dlg.GetValue(JetDefs.F_START), dlg.GetValue(JetDefs.F_END),
489 JetDefs.MBT_ZEROSTR, #dlg.GetValue(JetDefs.F_LENGTH),
490 SegmentOutputFile(dlg.GetValue(JetDefs.F_SEGNAME), self.currentJetConfigFile),
491 dlg.GetValue(JetDefs.F_QUANTIZE),
492 [], dlg.GetValue(JetDefs.F_DLSFILE),
494 dlg.GetValue(JetDefs.F_TRANSPOSE),
495 dlg.GetValue(JetDefs.F_REPEAT),
496 dlg.GetValue(JetDefs.F_MUTEFLAGS))
498 if len(dlg.lstReplicate) > 0:
499 if dlg.chkReplaceMatching:
500 self.jet_file.DeleteSegmentsMatchingPrefix(dlg.replicatePrefix)
502 for replicate in dlg.lstReplicate:
503 self.jet_file.AddSegment(replicate[0], dlg.GetValue(JetDefs.F_MIDIFILE),
506 SegmentOutputFile(dlg.GetValue(JetDefs.F_SEGNAME), self.currentJetConfigFile),
507 dlg.GetValue(JetDefs.F_QUANTIZE),
508 [], dlg.GetValue(JetDefs.F_DLSFILE),
510 dlg.GetValue(JetDefs.F_TRANSPOSE),
511 dlg.GetValue(JetDefs.F_REPEAT),
512 dlg.GetValue(JetDefs.F_MUTEFLAGS))
515 self.SelectSegment(dlg.lstReplicate[0][0])
518 self.SelectSegment(dlg.GetValue(JetDefs.F_SEGNAME))
520 dlg.Destroy()
579 dlg = JetMove("Move Segments")
580 dlg.lstMoveItems = lstMoveItems
581 result = dlg.ShowModal()
583 if len(dlg.lstMoveMbt) > 0:
586 for moveitem in dlg.lstMoveMbt:
592 dlg.Destroy()
641 dlg = EventEdit(JetDefs.MAIN_ADDEVENTTITLE, self.currentJetConfigFile)
643 dlg.SetSegment(editSegment)
644 dlg.SetEventId()
646 result = dlg.ShowModal()
648 if dlg.GetValue(JetDefs.F_ETYPE) == JetDefs.E_EOS:
654 dlg.SetValue(JetDefs.F_ESTART, dlg.GetValue(JetDefs.F_EEND))
656 if len(dlg.lstReplicate) > 0:
657 if dlg.chkReplaceMatching:
658 self.jet_file.DeleteEventsMatchingPrefix(self.currentSegmentName, dlg.replicatePrefix)
660 for replicate in dlg.lstReplicate:
662 dlg.GetValue(JetDefs.F_ETYPE),
663 dlg.GetValue(JetDefs.F_EEVENTID),
664 dlg.GetValue(JetDefs.F_ETRACK),
665 dlg.GetValue(JetDefs.F_ECHANNEL),
669 self.SelectEvent(dlg.lstReplicate[0][0])
671 self.jet_file.AddEvent(self.currentSegmentName, dlg.GetValue(JetDefs.F_ENAME),
672 dlg.GetValue(JetDefs.F_ETYPE),
673 dlg.GetValue(JetDefs.F_EEVENTID),
674 dlg.GetValue(JetDefs.F_ETRACK),
675 dlg.GetValue(JetDefs.F_ECHANNEL),
676 dlg.GetValue(JetDefs.F_ESTART),
677 dlg.GetValue(JetDefs.F_EEND))
680 self.SelectEvent(dlg.GetValue(JetDefs.F_ENAME))
683 dlg.Destroy()
708 dlg = EventEdit(JetDefs.MAIN_REVEVENTTITLE, self.currentJetConfigFile)
709 dlg.SetSegment(editSegment)
710 dlg.SetValue(JetDefs.F_ENAME, curEvent.event_name)
711 dlg.SetValue(JetDefs.F_ETYPE, curEvent.event_type)
712 dlg.SetValue(JetDefs.F_ESTART, curEvent.event_start)
713 dlg.SetValue(JetDefs.F_EEND, curEvent.event_end)
714 dlg.SetValue(JetDefs.F_ETRACK, curEvent.track_num)
715 dlg.SetValue(JetDefs.F_ECHANNEL, curEvent.channel_num)
716 dlg.SetValue(JetDefs.F_EEVENTID, curEvent.event_id)
717 dlg.OnEventSelect()
719 result = dlg.ShowModal()
721 if dlg.GetValue(JetDefs.F_ETYPE) == JetDefs.E_EOS:
722 dlg.SetValue(JetDefs.F_ESTART, dlg.GetValue(JetDefs.F_EEND))
726 dlg.GetValue(JetDefs.F_ENAME),
727 dlg.GetValue(JetDefs.F_ETYPE),
728 dlg.GetValue(JetDefs.F_EEVENTID),
729 dlg.GetValue(JetDefs.F_ETRACK),
730 dlg.GetValue(JetDefs.F_ECHANNEL),
731 dlg.GetValue(JetDefs.F_ESTART),
732 dlg.GetValue(JetDefs.F_EEND))
734 if len(dlg.lstReplicate) > 0:
735 if dlg.chkReplaceMatching:
736 self.jet_file.DeleteEventsMatchingPrefix(self.currentSegmentName, dlg.replicatePrefix)
738 for replicate in dlg.lstReplicate:
740 dlg.GetValue(JetDefs.F_ETYPE),
741 dlg.GetValue(JetDefs.F_EEVENTID),
742 dlg.GetValue(JetDefs.F_ETRACK),
743 dlg.GetValue(JetDefs.F_ECHANNEL),
747 self.SelectEvent(dlg.lstReplicate[0][0])
750 self.SelectEvent(dlg.GetValue(JetDefs.F_ENAME))
752 dlg.Destroy()
825 dlg = JetMove("Move Events")
826 dlg.lstMoveItems = lstMoveItems
827 result = dlg.ShowModal()
829 if len(dlg.lstMoveMbt) > 0:
832 for moveitem in dlg.lstMoveMbt:
840 dlg.Destroy()
844 dlg = JetOpen()
845 result = dlg.ShowModal()
847 self.jet_file = JetFile(dlg.fileName , "")
853 self.SetCurrentFile(dlg.fileName)
860 dlg.Destroy()
954 dlg = Audition(jet_file, (w,h))
955 dlg.ShowModal()
992 dlg = JetAbout()
993 result = dlg.ShowModal()
994 dlg.Destroy()
1132 dlg = JetPropertiesDialog()
1133 dlg.SetValue(JetDefs.F_JETFILENAME, self.jet_file.config.filename)
1134 dlg.SetValue(JetDefs.F_COPYRIGHT, StrNoneChk(self.jet_file.config.copyright))
1135 dlg.SetValue(JetDefs.F_CHASECONTROLLERS, StrNoneChk(self.jet_file.config.chase_controllers))
1136 dlg.SetValue(JetDefs.F_DELETEEMPTYTRACKS, StrNoneChk(self.jet_file.config.delete_empty_tracks))
1138 result = dlg.ShowModal()
1140 self.jet_file.config.filename = dlg.je.ctrls[JetDefs.F_JETFILENAME].GetValue()
1141 self.jet_file.config.copyright = dlg.je.ctrls[JetDefs.F_COPYRIGHT].GetValue()
1142 self.jet_file.config.chase_controllers = dlg.je.ctrls[JetDefs.F_CHASECONTROLLERS].GetValue()
1143 self.jet_file.config.delete_empty_tracks = dlg.je.ctrls[JetDefs.F_DELETEEMPTYTRACKS].GetValue()
1144 dlg.Destroy()
1148 dlg = JetPreferences()
1149 dlg.SetValue(JetDefs.F_COPYRIGHT, IniGetValue(JetDefs.JETCREATOR_INI, JetDefs.INI_PREF_SECTION, JetDefs.F_COPYRIGHT))
1150 dlg.SetValue(JetDefs.F_CHASECONTROLLERS, IniGetValue(JetDefs.JETCREATOR_INI, JetDefs.INI_PREF_SECTION, JetDefs.F_CHASECONTROLLERS, 'bool', True))
1151 dlg.SetValue(JetDefs.F_DELETEEMPTYTRACKS, IniGetValue(JetDefs.JETCREATOR_INI, JetDefs.INI_PREF_SECTION, JetDefs.F_DELETEEMPTYTRACKS, 'bool', False))
1152 result = dlg.ShowModal()
1154 IniSetValue(JetDefs.JETCREATOR_INI, JetDefs.INI_PREF_SECTION, JetDefs.F_COPYRIGHT, dlg.GetValue(JetDefs.F_COPYRIGHT))
1155 IniSetValue(JetDefs.JETCREATOR_INI, JetDefs.INI_PREF_SECTION, JetDefs.F_CHASECONTROLLERS, dlg.GetValue(JetDefs.F_CHASECONTROLLERS))
1156 IniSetValue(JetDefs.JETCREATOR_INI, JetDefs.INI_PREF_SECTION, JetDefs.F_DELETEEMPTYTRACKS, dlg.GetValue(JetDefs.F_DELETEEMPTYTRACKS))
1157 dlg.Destroy()
1416 dlg = JetOpen()
1417 result = dlg.ShowModal()
1419 dlg.Destroy()
1421 dlg.Destroy()
1426 openFile = dlg.fileName
1427 dlg.Destroy()