• Home
  • Raw
  • Download

Lines Matching refs:JetDefs

73             FileKillClean(JetDefs.UNTITLED_FILE)
74 self.currentJetConfigFile = JetDefs.UNTITLED_FILE
79 FileKillClean(JetDefs.UNTITLED_FILE)
80 self.currentJetConfigFile = JetDefs.UNTITLED_FILE
83 if self.currentJetConfigFile == JetDefs.UNTITLED_FILE:
120 for title, width, fld in JetDefs.SEGMENT_GRID:
124 for title, width, fld in JetDefs.CLIPS_GRID:
135 self.btnAddSeg = wx.Button(leftTopPanel, -1, JetDefs.BUT_ADD, size=BUT_SIZE)
136 self.btnRevSeg = wx.Button(leftTopPanel, -1, JetDefs.BUT_REVISE, size=BUT_SIZE)
137 self.btnDelSeg = wx.Button(leftTopPanel, -1, JetDefs.BUT_DELETE, size=BUT_SIZE)
138 self.btnMoveSeg = wx.Button(leftTopPanel, -1, JetDefs.BUT_MOVE, size=BUT_SIZE)
140 self.btnQueueAll = wx.Button(leftTopPanel, -1, JetDefs.BUT_QUEUEALL, size=BUT_SIZE)
141 self.btnDequeueAll = wx.Button(leftTopPanel, -1, JetDefs.BUT_DEQUEUEALL, size=BUT_SIZE)
142 self.btnPlay = wx.Button(leftTopPanel, -1, JetDefs.BUT_PLAY, size=BUT_SIZE)
143 self.btnPause = wx.Button(leftTopPanel, -1, JetDefs.BUT_PAUSE, size=BUT_SIZE)
144 self.btnAudition = wx.Button(leftTopPanel, -1, JetDefs.BUT_AUDITION, size=BUT_SIZE)
146 self.btnAddEvt = wx.Button(leftBotPanel, -1, JetDefs.BUT_ADD, size=BUT_SIZE)
147 self.btnRevEvt = wx.Button(leftBotPanel, -1, JetDefs.BUT_REVISE, size=BUT_SIZE)
148 self.btnDelEvt = wx.Button(leftBotPanel, -1, JetDefs.BUT_DELETE, size=BUT_SIZE)
149 self.btnMoveEvents = wx.Button(leftBotPanel, -1, JetDefs.BUT_MOVE, size=BUT_SIZE)
226 self.chkGraphLabels = wx.CheckBox(pnlGraph, -1, JetDefs.GRAPH_LBLS)
227 self.chkGraphClips = wx.CheckBox(pnlGraph, -1, JetDefs.GRAPH_TRIGGER)
228 self.chkGraphAppEvts = wx.CheckBox(pnlGraph, -1, JetDefs.GRAPH_APP)
245 self.SetHelpText(GetJetHelpText(JetDefs.MAIN_DLG_CTRLS, ''))
246 self.segList.SetHelpText(GetJetHelpText(JetDefs.MAIN_DLG_CTRLS, JetDefs.MAIN_SEGLIST))
247 self.eventList.SetHelpText(GetJetHelpText(JetDefs.MAIN_DLG_CTRLS, JetDefs.MAIN_EVENTLIST))
248 self.graph.SetHelpText(GetJetHelpText(JetDefs.AUDITION_CTRLS, JetDefs.AUDITION_GRAPH))
268 …JetConfigFile, JetDefs.INI_SEGSORT, JetDefs.INI_SEGSORT_0, 'int', 0), IniGetValue(self.currentJetC…
293 self.menuItems[JetDefs.MNU_UPDATE_SEG].Enable(False)
294 self.menuItems[JetDefs.MNU_DELETE_SEG].Enable(False)
295 self.menuItems[JetDefs.MNU_MOVE_SEG].Enable(False)
297 self.menuItems[JetDefs.MNU_ADD_EVENT].Enable(False)
298 self.menuItems[JetDefs.MNU_MOVE_EVENT].Enable(False)
299 self.menuItems[JetDefs.MNU_UPDATE_EVENT].Enable(False)
300 self.menuItems[JetDefs.MNU_DELETE_EVENT].Enable(False)
301 self.menuItems[JetDefs.MNU_MOVE_EVENT].Enable(False)
324 self.menuItems[JetDefs.MNU_UPDATE_EVENT].Enable(False)
325 self.menuItems[JetDefs.MNU_DELETE_EVENT].Enable(False)
326 self.menuItems[JetDefs.MNU_MOVE_EVENT].Enable(False)
327 …ConfigFile, JetDefs.INI_EVENTSORT, JetDefs.INI_EVENTSORT_0, 'int', 0), IniGetValue(self.currentJet…
365 self.menuItems[JetDefs.MNU_UPDATE_EVENT].Enable(True)
366 self.menuItems[JetDefs.MNU_DELETE_EVENT].Enable(True)
367 self.menuItems[JetDefs.MNU_MOVE_EVENT].Enable(True)
394 self.menuItems[JetDefs.MNU_UPDATE_SEG].Enable(True)
395 self.menuItems[JetDefs.MNU_DELETE_SEG].Enable(True)
396 self.menuItems[JetDefs.MNU_MOVE_SEG].Enable(True)
397 self.menuItems[JetDefs.MNU_ADD_EVENT].Enable(True)
398JetDefs.F_GRAPHLABELS, JetDefs.F_GRAPHLABELS, 'bool', 'True'), showClips=IniGetValue(self.currentJ…
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)
426 self.jet_file.AddSegment(replicate[0], dlg.GetValue(JetDefs.F_MIDIFILE),
428 JetDefs.MBT_ZEROSTR,
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))
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),
442 JetDefs.MBT_ZEROSTR,
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))
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)
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))
503 self.jet_file.AddSegment(replicate[0], dlg.GetValue(JetDefs.F_MIDIFILE),
505 JetDefs.MBT_ZEROSTR,
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))
518 self.SelectSegment(dlg.GetValue(JetDefs.F_SEGNAME))
545 if YesNo(JetDefs.MAIN_CONFIRM, deleteMsg + JetDefs.MAIN_CONFIRM_SEG_DLT, False):
597 self.menuItems[JetDefs.MNU_UNDO].Enable(True)
602 self.menuItems[JetDefs.MNU_REDO].Enable(True)
615 self.menuItems[JetDefs.MNU_REDO].Enable(False)
628 self.menuItems[JetDefs.MNU_UNDO].Enable(False)
641 dlg = EventEdit(JetDefs.MAIN_ADDEVENTTITLE, self.currentJetConfigFile)
648 if dlg.GetValue(JetDefs.F_ETYPE) == JetDefs.E_EOS:
652 if evt.event_type == JetDefs.E_EOS:
654 dlg.SetValue(JetDefs.F_ESTART, dlg.GetValue(JetDefs.F_EEND))
662 dlg.GetValue(JetDefs.F_ETYPE),
663 dlg.GetValue(JetDefs.F_EEVENTID),
664 dlg.GetValue(JetDefs.F_ETRACK),
665 dlg.GetValue(JetDefs.F_ECHANNEL),
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))
708 dlg = EventEdit(JetDefs.MAIN_REVEVENTTITLE, self.currentJetConfigFile)
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)
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))
740 dlg.GetValue(JetDefs.F_ETYPE),
741 dlg.GetValue(JetDefs.F_EEVENTID),
742 dlg.GetValue(JetDefs.F_ETRACK),
743 dlg.GetValue(JetDefs.F_ECHANNEL),
750 self.SelectEvent(dlg.GetValue(JetDefs.F_ENAME))
781 if YesNo(JetDefs.MAIN_CONFIRM, deleteMsg + JetDefs.MAIN_CONRIRM_EVT_DLT, False):
846 if result == JetDefs.ID_JET_OPEN:
849 FileKillClean(JetDefs.UNTITLED_FILE)
850 self.currentJetConfigFile = JetDefs.UNTITLED_FILE
854 elif result == JetDefs.ID_JET_NEW:
856 self.SetCurrentFile(JetDefs.UNTITLED_FILE)
858 elif result == JetDefs.ID_JET_IMPORT:
864 …defDir = IniGetValue(JetDefs.JETCREATOR_INI, JetDefs.INI_DEFAULTDIRS, JetDefs.JTC_FILE_SPEC, 'str'…
865 …dialog = wx.FileDialog(None, JetDefs.SAVE_PROMPT, defDir, "", JetDefs.JTC_FILE_SPEC, wx.SAVE | wx.…
867 …IniSetValue(JetDefs.JETCREATOR_INI, JetDefs.INI_DEFAULTDIRS, JetDefs.JTC_FILE_SPEC, str(FileJustPa…
877 if self.currentJetConfigFile == JetDefs.UNTITLED_FILE:
886 self.SetCurrentFile(JetDefs.UNTITLED_FILE)
893 self.SetTitle(JetDefs.MAIN_TITLEPREFIX + FileJustName(fileName))
897 …kGraphLabels.SetValue(IniGetValue(self.currentJetConfigFile, JetDefs.F_GRAPHLABELS, JetDefs.F_GRAP…
898 …chkGraphClips.SetValue(IniGetValue(self.currentJetConfigFile, JetDefs.F_GRAPHCLIPS, JetDefs.F_GRAP…
899 …GraphAppEvts.SetValue(IniGetValue(self.currentJetConfigFile, JetDefs.F_GRAPHAPPEVTS, JetDefs.F_GRA…
905 for eachMenuData in JetDefs.MENU_SPEC:
931 for eachTool in JetDefs.TOOLBAR_SPEC:
973 self.log.SetValue(JetDefs.PLAY_TRIGGERCLIP_MSG % (iEventId, sClipName))
981 webbrowser.open(JetDefs.MAIN_HELPFILE)
987 webbrowser.open(JetDefs.MAIN_HELPGUIDELINESFILE)
998 …defDir = IniGetValue(JetDefs.JETCREATOR_INI, JetDefs.INI_DEFAULTDIRS, JetDefs.ARCHIVE_FILE_SPEC, '…
999 …dialog = wx.FileDialog(None, JetDefs.IMPORT_ARCHIVE_PROMPT, defDir, "", JetDefs.ARCHIVE_FILE_SPEC,…
1001 …IniSetValue(JetDefs.JETCREATOR_INI, JetDefs.INI_DEFAULTDIRS, JetDefs.ARCHIVE_FILE_SPEC, str(FileJu…
1002 …defDir = IniGetValue(JetDefs.JETCREATOR_INI, JetDefs.INI_DEFAULTDIRS, JetDefs.ARCHIVE_FILE_SPEC + …
1003 …dlg1 = wx.DirDialog(self, JetDefs.IMPORT_ARCHIVEDIR_PROMPT, style=wx.DD_DEFAULT_STYLE, defaultPath…
1005 …IniSetValue(JetDefs.JETCREATOR_INI, JetDefs.INI_DEFAULTDIRS, JetDefs.ARCHIVE_FILE_SPEC + "Dir", st…
1006 …if YesNo(JetDefs.MAIN_IMPORTTITLE, JetDefs.MAIN_IMPORTMSG % (dialog.GetPath(),dlg1.GetPath()), Fal…
1012 wx.MessageBox(JetDefs.IMPORT_ARCHIVE_NO_JTC)
1025 wx.MessageBox(JetDefs.IMPORT_NOT_JET_ARCHIVE)
1032 wx.MessageBox(JetDefs.IMPORT_ARCHIVE_NO_JTC)
1068 …defDir = IniGetValue(JetDefs.JETCREATOR_INI, JetDefs.INI_DEFAULTDIRS, JetDefs.ARCHIVE_FILE_SPEC, '…
1069 …dialog = wx.FileDialog(None, JetDefs.EXPORT_ARCHIVE_PROMPT, defDir, "", JetDefs.ARCHIVE_FILE_SPEC,…
1071 …IniSetValue(JetDefs.JETCREATOR_INI, JetDefs.INI_DEFAULTDIRS, JetDefs.ARCHIVE_FILE_SPEC, str(FileJu…
1077 if self.currentCtrl == JetDefs.MAIN_SEGLIST:
1086 elif self.currentCtrl == JetDefs.MAIN_EVENTLIST:
1106 if retCopy == JetDefs.MAIN_SEGLIST:
1109 elif retCopy == JetDefs.MAIN_EVENTLIST:
1116 … if self.currentCtrl == JetDefs.MAIN_SEGLIST and self.clipBoard.objType == JetDefs.MAIN_SEGLIST:
1121 …elif self.currentCtrl == JetDefs.MAIN_EVENTLIST and self.clipBoard.objType == JetDefs.MAIN_EVENTLI…
1128JetDefs.F_GRAPHLABELS, JetDefs.F_GRAPHLABELS, 'bool', 'True'), showClips=IniGetValue(self.currentJ…
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))
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()
1149 …dlg.SetValue(JetDefs.F_COPYRIGHT, IniGetValue(JetDefs.JETCREATOR_INI, JetDefs.INI_PREF_SECTION, Je…
1150 …dlg.SetValue(JetDefs.F_CHASECONTROLLERS, IniGetValue(JetDefs.JETCREATOR_INI, JetDefs.INI_PREF_SECT…
1151 …dlg.SetValue(JetDefs.F_DELETEEMPTYTRACKS, IniGetValue(JetDefs.JETCREATOR_INI, JetDefs.INI_PREF_SEC…
1154 …IniSetValue(JetDefs.JETCREATOR_INI, JetDefs.INI_PREF_SECTION, JetDefs.F_COPYRIGHT, dlg.GetValue(Je…
1155 …IniSetValue(JetDefs.JETCREATOR_INI, JetDefs.INI_PREF_SECTION, JetDefs.F_CHASECONTROLLERS, dlg.GetV…
1156 …IniSetValue(JetDefs.JETCREATOR_INI, JetDefs.INI_PREF_SECTION, JetDefs.F_DELETEEMPTYTRACKS, dlg.Get…
1161 …self.jet_file.config.copyright = IniGetValue(JetDefs.JETCREATOR_INI, JetDefs.INI_PREF_SECTION, Jet…
1162 …jet_file.config.chase_controllers = IniGetValue(JetDefs.JETCREATOR_INI, JetDefs.INI_PREF_SECTION,
1163 …t_file.config.delete_empty_tracks = IniGetValue(JetDefs.JETCREATOR_INI, JetDefs.INI_PREF_SECTION,
1168 ret = YesNoCancel(JetDefs.MAIN_JETCREATOR, JetDefs.MAIN_SAVEBEFOREEXIT, True)
1180 if self.btnPlay.GetLabel() == JetDefs.BUT_PLAY:
1191 InfoMsg(JetDefs.MAIN_PLAYSEG, JetDefs.MAIN_PLAYSEGMSG)
1217 self.btnPlay.SetLabel(JetDefs.BUT_STOP)
1255 wx.PostEvent(self, JetStatusEvent(JetDefs.PST_PLAY, status.currentUserID))
1269 wx.PostEvent(self, JetStatusEvent(JetDefs.PST_UPD_LOCATION, status.location))
1278 wx.PostEvent(self, JetStatusEvent(JetDefs.PST_DONE, None))
1284 if evt.mode == JetDefs.PST_PLAY:
1290 elif evt.mode == JetDefs.PST_UPD_LOCATION:
1297 self.btnPlay.SetLabel(JetDefs.BUT_PLAY)
1298 self.btnPause.SetLabel(JetDefs.BUT_PAUSE)
1307 self.btnPause.SetLabel(JetDefs.BUT_RESUME)
1311 self.btnPause.SetLabel(JetDefs.BUT_PAUSE)
1321 …IniSetValue(self.currentJetConfigFile, JetDefs.F_GRAPHLABELS, JetDefs.F_GRAPHLABELS, self.chkGraph…
1322 …IniSetValue(self.currentJetConfigFile, JetDefs.F_GRAPHCLIPS, JetDefs.F_GRAPHCLIPS, self.chkGraphCl…
1323 …IniSetValue(self.currentJetConfigFile, JetDefs.F_GRAPHAPPEVTS, JetDefs.F_GRAPHAPPEVTS, self.chkGra…
1324JetDefs.F_GRAPHLABELS, JetDefs.F_GRAPHLABELS, 'bool', 'True'), showClips=IniGetValue(self.currentJ…
1328 …IniSetValue(self.currentJetConfigFile, JetDefs.INI_EVENTSORT, JetDefs.INI_EVENTSORT_0, self.eventL…
1329 …IniSetValue(self.currentJetConfigFile, JetDefs.INI_EVENTSORT, JetDefs.INI_EVENTSORT_1, self.eventL…
1331JetDefs.F_GRAPHLABELS, JetDefs.F_GRAPHLABELS, 'bool', 'True'), showClips=IniGetValue(self.currentJ…
1360 …IniSetValue(self.currentJetConfigFile, JetDefs.INI_SEGSORT, JetDefs.INI_SEGSORT_0, self.segList.Ge…
1361 …IniSetValue(self.currentJetConfigFile, JetDefs.INI_SEGSORT, JetDefs.INI_SEGSORT_1, self.segList.Ge…
1363JetDefs.F_GRAPHLABELS, JetDefs.F_GRAPHLABELS, 'bool', 'True'), showClips=IniGetValue(self.currentJ…
1398 logLevel = IniGetValue(JetDefs.JETCREATOR_INI, JetDefs.INI_LOGGING, JetDefs.INI_LOGGING)
1412 if not os.path.isdir(JetDefs.TEMP_JET_DIR):
1413 os.mkdir(JetDefs.TEMP_JET_DIR)
1420 elif result == JetDefs.ID_JET_IMPORT: