# MAIN Class #-------------------------------------------------- class MEBT_Magnet_Polarity_OpenXAL_Main(ApplicationAdaptor): def __init__(self): ApplicationAdaptor.__init__(self) script_dir = os.path.dirname(os.path.realpath(__file__)) self.setResourcesParentDirectoryWithPath(script_dir) def readableDocumentTypes(self): return [ "mebt", ] def writableDocumentTypes(self): return self.readableDocumentTypes() def newEmptyDocument(self, *args): if len(args) > 0: return ApplicationAdaptor.newEmptyDocument(self, *args) else: return self.newDocument(null) def newDocument(self, location): return MEBT_Magnet_Polarity_OpenXAL_Document(location) def applicationName(self): return "MEBT Magnet Polarity Test" AcceleratorApplication.launch(MEBT_Magnet_Polarity_OpenXAL_Main())
# MAIN Class #-------------------------------------------------- class RFQ_Keeper_OpenXAL_Main(ApplicationAdaptor): def __init__(self): ApplicationAdaptor.__init__(self) script_dir = os.path.dirname(os.path.realpath(__file__)) self.setResourcesParentDirectoryWithPath(script_dir) def readableDocumentTypes(self): return [ "rfq", ] def writableDocumentTypes(self): return self.readableDocumentTypes() def newEmptyDocument(self, *args): if len(args) > 0: return ApplicationAdaptor.newEmptyDocument(self, *args) else: return self.newDocument(null) def newDocument(self, location): return RFQ_Keeper_OpenXAL_Document(location) def applicationName(self): return "RFQ Keeper" AcceleratorApplication.launch(RFQ_Keeper_OpenXAL_Main())
# MAIN Class #-------------------------------------------------- class Warm_Linac_RF_SetUp_OpenXAL_Main(ApplicationAdaptor): def __init__(self): ApplicationAdaptor.__init__(self) script_dir = os.path.dirname(os.path.realpath(__file__)) self.setResourcesParentDirectoryWithPath(script_dir) def readableDocumentTypes(self): return [ "wlwz", ] def writableDocumentTypes(self): return self.readableDocumentTypes() def newEmptyDocument(self, *args): if len(args) > 0: return ApplicationAdaptor.newEmptyDocument(self, *args) else: return self.newDocument(null) def newDocument(self, location): return Warm_Linac_RF_SetUp_OpenXAL_Document(location) def applicationName(self): return "Warm Linac RF SetUp Wizard" AcceleratorApplication.launch(Warm_Linac_RF_SetUp_OpenXAL_Main())
# MAIN Class #-------------------------------------------------- class Empty_OpenXAL_Main(ApplicationAdaptor): def __init__(self): ApplicationAdaptor.__init__(self) script_dir = os.path.dirname(os.path.realpath(__file__)) self.setResourcesParentDirectoryWithPath(script_dir) def readableDocumentTypes(self): return [ "empty", ] def writableDocumentTypes(self): return self.readableDocumentTypes() def newEmptyDocument(self, *args): if len(args) > 0: return ApplicationAdaptor.newEmptyDocument(self, *args) else: return self.newDocument(null) def newDocument(self, location): return Empty_OpenXAL_Document(location) def applicationName(self): return "Empty Application" AcceleratorApplication.launch(Empty_OpenXAL_Main())
#-------------------------------------------------- # MAIN Class #-------------------------------------------------- class Warm_Linac_RF_SetUp_OpenXAL_Main(ApplicationAdaptor): def __init__(self): ApplicationAdaptor.__init__(self) script_dir = os.path.dirname(os.path.realpath(__file__)) self.setResourcesParentDirectoryWithPath(script_dir) def readableDocumentTypes(self): return ["wlwz",] def writableDocumentTypes(self): return self.readableDocumentTypes() def newEmptyDocument(self, *args): if len( args ) > 0: return ApplicationAdaptor.newEmptyDocument(self,*args) else: return self.newDocument(null) def newDocument(self,location): return Warm_Linac_RF_SetUp_OpenXAL_Document(location) def applicationName(self): return "Warm Linac RF SetUp Wizard" AcceleratorApplication.launch(Warm_Linac_RF_SetUp_OpenXAL_Main())
# -------------------------------------------------- # MAIN Class # -------------------------------------------------- class RFQ_Keeper_OpenXAL_Main(ApplicationAdaptor): def __init__(self): ApplicationAdaptor.__init__(self) script_dir = os.path.dirname(os.path.realpath(__file__)) self.setResourcesParentDirectoryWithPath(script_dir) def readableDocumentTypes(self): return ["rfq"] def writableDocumentTypes(self): return self.readableDocumentTypes() def newEmptyDocument(self, *args): if len(args) > 0: return ApplicationAdaptor.newEmptyDocument(self, *args) else: return self.newDocument(null) def newDocument(self, location): return RFQ_Keeper_OpenXAL_Document(location) def applicationName(self): return "RFQ Keeper" AcceleratorApplication.launch(RFQ_Keeper_OpenXAL_Main())
#-------------------------------------------------- # MAIN Class #-------------------------------------------------- class MEBT_Magnet_Polarity_OpenXAL_Main(ApplicationAdaptor): def __init__(self): ApplicationAdaptor.__init__(self) script_dir = os.path.dirname(os.path.realpath(__file__)) self.setResourcesParentDirectoryWithPath(script_dir) def readableDocumentTypes(self): return ["mebt",] def writableDocumentTypes(self): return self.readableDocumentTypes() def newEmptyDocument(self, *args): if len( args ) > 0: return ApplicationAdaptor.newEmptyDocument(self,*args) else: return self.newDocument(null) def newDocument(self,location): return MEBT_Magnet_Polarity_OpenXAL_Document(location) def applicationName(self): return "MEBT Magnet Polarity Test" AcceleratorApplication.launch(MEBT_Magnet_Polarity_OpenXAL_Main())
# MAIN Class #-------------------------------------------------- class Event_Monitor_OpenXAL_Main(ApplicationAdaptor): def __init__(self): ApplicationAdaptor.__init__(self) script_dir = os.path.dirname(os.path.realpath(__file__)) self.setResourcesParentDirectoryWithPath(script_dir) def readableDocumentTypes(self): return [ "evnt", ] def writableDocumentTypes(self): return self.readableDocumentTypes() def newEmptyDocument(self, *args): if len(args) > 0: return ApplicationAdaptor.newEmptyDocument(self, *args) else: return self.newDocument(null) def newDocument(self, location): return Event_Monitor_OpenXAL_Document(location) def applicationName(self): return "Event Monitor Application" AcceleratorApplication.launch(Event_Monitor_OpenXAL_Main())
# -------------------------------------------------- # MAIN Class # -------------------------------------------------- class Event_Monitor_OpenXAL_Main(ApplicationAdaptor): def __init__(self): ApplicationAdaptor.__init__(self) script_dir = os.path.dirname(os.path.realpath(__file__)) self.setResourcesParentDirectoryWithPath(script_dir) def readableDocumentTypes(self): return ["evnt"] def writableDocumentTypes(self): return self.readableDocumentTypes() def newEmptyDocument(self, *args): if len(args) > 0: return ApplicationAdaptor.newEmptyDocument(self, *args) else: return self.newDocument(null) def newDocument(self, location): return Event_Monitor_OpenXAL_Document(location) def applicationName(self): return "Event Monitor Application" AcceleratorApplication.launch(Event_Monitor_OpenXAL_Main())
#-------------------------------------------------- # MAIN Class #-------------------------------------------------- class SCL_Wizard_Main(ApplicationAdaptor): def __init__(self): ApplicationAdaptor.__init__(self) script_dir = os.path.dirname(os.path.realpath(__file__)) self.setResourcesParentDirectoryWithPath(script_dir) def readableDocumentTypes(self): return ["sclw",] def writableDocumentTypes(self): return self.readableDocumentTypes() def newEmptyDocument(self, *args): if len( args ) > 0: return ApplicationAdaptor.newEmptyDocument(self,*args) else: return self.newDocument(null) def newDocument(self,location): return SCL_Wizard_Document(location) def applicationName(self): return "SCL Wizard" AcceleratorApplication.launch(SCL_Wizard_Main())
# MAIN Class #-------------------------------------------------- class SCL_Wizard_Main(ApplicationAdaptor): def __init__(self): ApplicationAdaptor.__init__(self) script_dir = os.path.dirname(os.path.realpath(__file__)) self.setResourcesParentDirectoryWithPath(script_dir) def readableDocumentTypes(self): return [ "sclw", ] def writableDocumentTypes(self): return self.readableDocumentTypes() def newEmptyDocument(self, *args): if len(args) > 0: return ApplicationAdaptor.newEmptyDocument(self, *args) else: return self.newDocument(null) def newDocument(self, location): return SCL_Wizard_Document(location) def applicationName(self): return "SCL Wizard" AcceleratorApplication.launch(SCL_Wizard_Main())
#-------------------------------------------------- # MAIN Class #-------------------------------------------------- class Empty_OpenXAL_Main(ApplicationAdaptor): def __init__(self): ApplicationAdaptor.__init__(self) script_dir = os.path.dirname(os.path.realpath(__file__)) self.setResourcesParentDirectoryWithPath(script_dir) def readableDocumentTypes(self): return ["empty",] def writableDocumentTypes(self): return self.readableDocumentTypes() def newEmptyDocument(self, *args): if len( args ) > 0: return ApplicationAdaptor.newEmptyDocument(self,*args) else: return self.newDocument(null) def newDocument(self,location): return Empty_OpenXAL_Document(location) def applicationName(self): return "Empty Application" AcceleratorApplication.launch(Empty_OpenXAL_Main())