Skip to main content

registerDialogHandlers

FitFileViewer - API Documentation v29.9.0


FitFileViewer - API Documentation / main/ipc/registerDialogHandlers / registerDialogHandlers

Function: registerDialogHandlers()

registerDialogHandlers(options: { registerIpcHandle: (channel: string, handler: Function) => void; dialogRef: () => any; CONSTANTS: { DIALOG_FILTERS: { FIT_FILES: any; }; }; addRecentFile: (filePath: string) => void; browserWindowRef: () => any; getThemeFromRenderer: (win: any) => Promise<string>; safeCreateAppMenu: (win: any, theme: string, loadedFitFilePath?: string) => void; logWithContext: (level: "error" | "warn" | "info", message: string, context?: Record<string, any>) => void; mainWindow: any; }): void

Defined in: main/ipc/registerDialogHandlers.js:19

Registers dialog IPC handlers for opening FIT files and overlay selections.

Parameters​

options​

registerIpcHandle​

(channel: string, handler: Function) => void

dialogRef​

() => any

CONSTANTS​

{ DIALOG_FILTERS: { FIT_FILES: any; }; }

CONSTANTS.DIALOG_FILTERS​

{ FIT_FILES: any; }

CONSTANTS.DIALOG_FILTERS.FIT_FILES​

any

addRecentFile​

(filePath: string) => void

browserWindowRef​

() => any

getThemeFromRenderer​

(win: any) => Promise<string>

safeCreateAppMenu​

(win: any, theme: string, loadedFitFilePath?: string) => void

logWithContext​

(level: "error" | "warn" | "info", message: string, context?: Record<string, any>) => void

mainWindow​

any

Returns​

void