Module dialogs

This module implements portable dialogs for Nimrod; the implementation builds on the GTK interface. On Windows, native dialogs are shown instead.

Procs

proc info*(window: PWindow; msg: string)
Shows an information message to the user. The process waits until the user presses the OK button.
proc warning*(window: PWindow; msg: string)
Shows a warning message to the user. The process waits until the user presses the OK button.
proc error*(window: PWindow; msg: string)
Shows an error message to the user. The process waits until the user presses the OK button.
proc chooseFileToOpen*(window: PWindow; root: string = ""): string
Opens a dialog that requests a filename from the user. Returns "" if the user closed the dialog without selecting a file. On Windows, the native dialog is used, else the GTK dialog is used.
proc chooseFilesToOpen*(window: PWindow; root: string = ""): seq[string]
Opens a dialog that requests filenames from the user. Returns @[] if the user closed the dialog without selecting a file. On Windows, the native dialog is used, else the GTK dialog is used.
proc chooseFileToSave*(window: PWindow; root: string = ""): string
Opens a dialog that requests a filename to save to from the user. Returns "" if the user closed the dialog without selecting a file. On Windows, the native dialog is used, else the GTK dialog is used.
proc chooseDir*(window: PWindow; root: string = ""): string
Opens a dialog that requests a directory from the user. Returns "" if the user closed the dialog without selecting a directory. On Windows, the native dialog is used, else the GTK dialog is used.
Generated: 2014-03-11 21:26:34 UTC