Skip to content

Commit

Permalink
Remove temporary method with non-modular implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
lbianchi-lbl committed Sep 28, 2023
1 parent ae602eb commit da41a63
Showing 1 changed file with 0 additions and 64 deletions.
64 changes: 0 additions & 64 deletions foqus_lib/gui/main/mainWindow.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,70 +158,6 @@ def __init__(
else:
self.tstimer = None

def _create_frames_old(self) -> None:
### Create the main window widgets for stacked widget
# Create the flowsheet editor/viewer
self.flowsheetEditor = drawFlowsheet(self.dat, self)
self.flowsheetEditor.nodeSelected.connect(self.setNodePanel)
self.flowsheetEditor.edgeSelected.connect(self.setEdgePanel)
self.flowsheetEditor.updateEdgeEdit.connect(self.applyAndUpdateEdgeEdit)
# self.flowsheetEditor.noneSelected.connect(self.fsSelectNone)
self.flowsheetEditor.updateFS.connect(self.refreshFlowsheet)
self.flowsheetEditor.updateFSPos.connect(self.refreshNodeCoord)
# Set-up dash/home widget
self.dashFrame = dashFrame(self)
self.dashFrame.buttonBox.rejected.connect(self.cancelSession)
self.dashFrame.buttonBox.button(QDialogButtonBox.Help).clicked.connect(
self.showHelp
)
# Basic Data tab
self.basicDataFrame = basicDataParentFrame(parent=self)
# Set up UQ setup widget
self.uqSetupFrame = uqSetupFrame(self.dat, self)
# set-up opt setup widget
self.optSetupFrame = optSetupFrame(self.dat, self)
self.optSetupFrame.setStatusBar.connect(self.setStatus)
self.optSetupFrame.updateGraph.connect(self.refreshFlowsheet)
# OUU screen
self.ouuSetupFrame = ouuSetupFrame(self.dat, self)
# SDOE screen
self.sdoeSetupFrame = sdoeSetupFrame(self.dat, self)
# surrogate screen
self.surFrame = surrogateFrame(self.dat, self)
self.surFrame.setStatusBar.connect(self.setStatus)
# heat integration screen
self.heatIntFrame = heatIntegrationFrame(self.dat, self)
# settings screen
self.fsettingsFrame = settingsFrame(self.dat, self)
self.fsettingsFrame.waiting.connect(self.setCursorWaiting)
self.fsettingsFrame.notwaiting.connect(self.setCursorNormal)
# Data-Browser widget
self.dataBrowserDialog = dataBrowserDialog(self.dat, self)
## Add widgets to stacked widget
self.mainWidget.addWidget(self.dashFrame) # 0
self.mainWidget.addWidget(self.basicDataFrame) # 1
self.mainWidget.addWidget(self.flowsheetEditor) # 2
self.mainWidget.addWidget(self.uqSetupFrame) # 3
self.mainWidget.addWidget(self.optSetupFrame) # 4
self.mainWidget.addWidget(self.ouuSetupFrame) # 5
self.mainWidget.addWidget(self.sdoeSetupFrame) # 6
self.mainWidget.addWidget(self.surFrame) # 7
self.mainWidget.addWidget(self.heatIntFrame) # 8
self.mainWidget.addWidget(self.fsettingsFrame) # 9
# make a dictionary to look up widget indexes in stacked widget
self.screenIndex = {
"home": 0,
"basicData": 1,
"flow": 2,
"uq": 3,
"opt": 4,
"ouu": 5,
"sdoe": 6,
"surrogate": 7,
"heatInt": 8,
"settings": 9,
}

def _load_frames_from_plugins(
self, session, register_func_name: str = "foqus_register_gui"
):
Expand Down

0 comments on commit da41a63

Please sign in to comment.