Initial Round of Sandbox implementation
This commit is contained in:
@@ -6,9 +6,9 @@ import time
|
||||
from PyQt5 import QtWidgets,QtGui
|
||||
|
||||
from ui.OpticsToolsGui import Ui_OpticsGUI
|
||||
from OpticsPlot import OpticsPlot
|
||||
from OpticsModel import Model
|
||||
from OpticsMachine import Machine
|
||||
from plot import OpticsPlot
|
||||
from model import Model
|
||||
from machine import Machine
|
||||
from reference import ReferenceManager
|
||||
from sandbox import Sandbox
|
||||
|
||||
@@ -20,9 +20,8 @@ class OpticsTools(QtWidgets.QMainWindow, Ui_OpticsGUI):
|
||||
|
||||
self.version = '1.0.1'
|
||||
self.setWindowIcon(QtGui.QIcon("rsc/iconoptics.png"))
|
||||
self.setWindowTitle("SwissFEL Optics Tools")
|
||||
|
||||
self.plot = OpticsPlot()
|
||||
self.plot = OpticsPlot(parent=self)
|
||||
self.plot.show()
|
||||
|
||||
# initialize online model
|
||||
@@ -31,12 +30,14 @@ class OpticsTools(QtWidgets.QMainWindow, Ui_OpticsGUI):
|
||||
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)
|
||||
|
||||
title = "SwissFEL Optics Tools - Lattice %s (Phase %d)" % (self.model.getLatticeVersion(),phase)
|
||||
if office:
|
||||
title += " - offline"
|
||||
self.setWindowTitle(title)
|
||||
|
||||
# initialization
|
||||
self.loadSettingsdirect("/sf/data/applications/BD-OpticsTools/reference/settings/ReferenceSetting.json")
|
||||
self.sandbox.updateSandbox()
|
||||
|
||||
Reference in New Issue
Block a user