Initial Round of Sandbox implementation
This commit is contained in:
@@ -27,16 +27,20 @@ class OpticsTools(QtWidgets.QMainWindow, Ui_OpticsGUI):
|
||||
|
||||
# initialize online model
|
||||
self.model = Model(phase=phase,parent=self)
|
||||
if phase == 0 and office == False:
|
||||
self.machine = Machine()
|
||||
else:
|
||||
self.machine = None
|
||||
if phase > 0:
|
||||
office = True
|
||||
self.machine = Machine(parent = True, office = office)
|
||||
self.machine.initPVs(self.model.getElements())
|
||||
|
||||
|
||||
|
||||
self.reference = ReferenceManager(parent = self)
|
||||
self.sandbox = Sandbox(parent = self, machine = self.machine)
|
||||
|
||||
|
||||
# initialization
|
||||
self.loadSettingsdirect("/sf/data/applications/BD-OpticsTools/reference/settings/ReferenceSetting.json")
|
||||
self.sandbox.updateSandbox()
|
||||
|
||||
# events handling
|
||||
self.actionOpen_2.triggered.connect(self.loadSettings)
|
||||
self.actionSave.triggered.connect(self.saveSettings)
|
||||
|
||||
Reference in New Issue
Block a user