2024-09-10 22:03:12 +08:00
|
|
|
import { ipcMain } from "electron";
|
2024-09-11 12:58:50 +08:00
|
|
|
import { registerDicomHandler } from "./dicom/handler";
|
2024-09-11 17:01:22 +08:00
|
|
|
import { registerCommonHandler } from "./common";
|
2024-09-23 13:02:38 +08:00
|
|
|
import { registerAlgHandler } from "./alg";
|
2024-09-10 22:03:12 +08:00
|
|
|
|
|
|
|
export const registerIpcMainHandlers = (mainWindow: Electron.BrowserWindow) => {
|
|
|
|
ipcMain.removeAllListeners();
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 等待渲染完成再显示窗口
|
|
|
|
*/
|
|
|
|
ipcMain.on("ipc-loaded", () => mainWindow.show());
|
|
|
|
|
2024-09-11 17:01:22 +08:00
|
|
|
registerCommonHandler();
|
2024-09-11 12:58:50 +08:00
|
|
|
registerDicomHandler();
|
2024-09-23 13:02:38 +08:00
|
|
|
registerAlgHandler();
|
2024-09-11 12:58:50 +08:00
|
|
|
};
|