Header menu logo issie

FileUpdate Module

Functions and values

Function or value Description

doActionWithSaveFileDialog name nextAction model dispatch arg5

Full Usage: doActionWithSaveFileDialog name nextAction model dispatch arg5

Parameters:
    name : string
    nextAction : Msg
    model : Model
    dispatch : Msg -> Unit
    arg4 : 'a

Returns: Unit

force either save of current file before action, or abort (closeProject is special case of this) In addition, if not aborting, save current lockstate of all files.

name : string
nextAction : Msg
model : Model
dispatch : Msg -> Unit
arg4 : 'a
Returns: Unit

fileCommand fc dispatch model

Full Usage: fileCommand fc dispatch model

Parameters:
Returns: Model * Cmd<'a>

Implement a command involving file operations from Update, with access to dispatch Invoked by message: `FileCommand(fc,dispatch)`. TODO - refactor to remove dispatch dependence

fc : FileCommandType
dispatch : Msg -> Unit
model : Model
Returns: Model * Cmd<'a>

forceCloseProject model dispatch

Full Usage: forceCloseProject model dispatch

Parameters:

Close current project, if any.

model : Model
dispatch : Msg -> unit

Type something to start searching.