UNPKG

@dark-engine/platform-desktop

Version:

Dark renderer to desktop platforms like Windows, Linux, macOS via Nodegui and Qt

22 lines (21 loc) 792 B
import { type QFileDialogSignals, type FileMode, type AcceptMode, QFileDialog } from '@nodegui/nodegui'; import { type ComponentFactory, type Ref } from '@dark-engine/core'; import type { WidgetProps, WithStandardProps } from '../shared'; export type FileDialogProps = WithStandardProps< { ref?: Ref<FileDialogRef>; open: boolean; fileMode?: FileMode; acceptMode?: AcceptMode; nameFilter?: string; supportedSchemes?: Array<string>; defaultSuffix?: string; } & WidgetProps >; export type FileDialogRef = QDarkFileDialog; export type FileDialogSignals = QFileDialogSignals; declare const FileDialog: ComponentFactory<FileDialogProps>; declare class QDarkFileDialog extends QFileDialog { setOpen(value: boolean): void; } export { FileDialog, QDarkFileDialog };