Package-level declarations
Functions
Link copied to clipboard
fun getDefaultPathForContext(programName: String = stackRootClassName(), contextID: String = "global"): String?
Returns the default path for a context
Link copied to clipboard
fun openFileDialog(programName: String = stackRootClassName(), contextID: String = "global", defaultPath: String? = getDefaultPathForContext(programName, contextID), supportedExtensions: List<Pair<String, List<String>>> = emptyList(), function: (File) -> Unit)
Creates a file dialog that can be used to open a single file
Link copied to clipboard
fun openFilesDialog(programName: String = stackRootClassName(), contextID: String = "global", defaultPath: String? = getDefaultPathForContext(programName, contextID), supportedExtensions: List<Pair<String, List<String>>> = emptyList(), function: (List<File>) -> Unit)
Creates a file dialog that can be used to open multiple files
Link copied to clipboard
Link copied to clipboard
fun saveFileDialog(programName: String = stackRootClassName(), contextID: String = "global", defaultPath: String? = getDefaultPathForContext(programName, contextID), suggestedFilename: String? = null, supportedExtensions: List<Pair<String, List<String>>> = emptyList(), function: (File) -> Unit)
Creates a file dialog that can be used to save a single file files
Link copied to clipboard
fun setDefaultPathForContext(programName: String = stackRootClassName(), contextID: String = "global", file: File)
Set the default path for a context This is an internal function, but it can be used to set a default path before calling any of the file dialog functions