2024-11-17 18:54:51 +01:00
|
|
|
#!/usr/bin/python3
|
|
|
|
|
|
|
|
def connect_gui(app):
|
2024-11-21 16:56:08 +01:00
|
|
|
app.gui.main_window.openFile.triggered.connect(app.file_actions.open_files)
|
|
|
|
app.gui.main_window.saveFile.triggered.connect(app.file_actions.save_current_file)
|
|
|
|
app.gui.main_window.openFileTabs.tabCloseRequested.connect(app.file_actions.close_current_file)
|
|
|
|
app.gui.QTMainWindow.closeEvent = app.utils.on_close
|
2024-11-21 17:38:02 +01:00
|
|
|
app.gui.main_window.menuSettings.triggered.connect(app.gui.main_window.settingsDock.show)
|
2024-11-22 16:20:43 +01:00
|
|
|
app.gui.main_window.bitsAreSquaresSetting.stateChanged.connect(app.utils.update_style_in_all_bit_editors)
|
|
|
|
app.gui.main_window.highlightOnesSetting.stateChanged.connect(app.utils.update_style_in_all_bit_editors)
|