MiscMenuView Module
Types and nested modules
| Type/Module | Description |
Functions and values
| Function or value | Description |
Full Usage:
Button sheetPath buttonDecision label isDisabled model dispatch
Parameters:
string
buttonDecision : ImportDecision option
label : string
isDisabled : bool
model : Model
dispatch : Msg -> unit
Returns: ReactElement list
|
|
Full Usage:
allRootHierarchiesFromProjectBreadcrumbs cfg dispatch model
Parameters:
BreadcrumbConfig
dispatch : Msg -> unit
model : Model
Returns: ReactElement
|
|
Full Usage:
breadcrumbsOfTree cfg tree dispatch
Parameters:
BreadcrumbConfig
tree : SheetTree
dispatch : Msg -> unit
Returns: ReactElement
|
|
Full Usage:
copySheetIntoProjectPopup title placeholder buttonText notes nameOf oldPath afterCopy model dispatch
Parameters:
string
placeholder : string
buttonText : string
notes : ReactElement list
nameOf : string -> string
oldPath : string
afterCopy : string -> Model -> unit
model : Model
dispatch : Msg -> unit
|
Copy the sheet file at oldPath into the current project under a name typed by the user. nameOf turns the dialog text into the new sheet name: Import prefixes it, Duplicate uses it whole. notes are extra lines displayed above the preview of the new name. afterCopy is given the new sheet name and the current model, and decides how the project is reloaded. Example: nameOf = (fun s -> s + "_adder"), text "old" -> sheet "old_adder" in file old_adder.dgm.
|
Full Usage:
createSheetInfo model projectDir dispatch (arg4, arg5)
Parameters: Returns: ReactElement array
|
|
|
|
|
|
Full Usage:
getDecisionText path model sheetIsDependency decisionNeeded
Parameters:
string
model : Model
sheetIsDependency : bool
decisionNeeded : bool
Returns: ReactElement
|
|
Full Usage:
getDependents model oldSheetPath newSheetPath
Parameters:
Model
oldSheetPath : string
newSheetPath : string
Returns: string option
|
|
Full Usage:
getDependentsFromSheet model sheetName
Parameters:
Model
sheetName : string
Returns: (string * string * ((string * int) list * (string * int) list)) list option
|
|
|
|
|
|
Full Usage:
gridElement reactElementId props styleProps pos contents
Parameters:
string
props : IHTMLProp list
styleProps : CSSProp list
pos : CSSGridPos
contents : ReactElement list
Returns: ReactElement
|
|
Full Usage:
hierarchyBreadcrumbs cfg dispatch model
Parameters:
BreadcrumbConfig
dispatch : Msg -> unit
model : Model
Returns: ReactElement
|
|
Full Usage:
hierarchyFromSheetBreadcrumbs rootSheet cfg dispatch model
Parameters:
string
cfg : BreadcrumbConfig
dispatch : Msg -> unit
model : Model
Returns: ReactElement
|
|
|
|
|
|
Full Usage:
makeBreadcrumbsFromPositions sheetTreeMap cfg positionSheetsInGrid dispatch
Parameters:
Map<string, SheetTree>
cfg : BreadcrumbConfig
positionSheetsInGrid : Map<string, SheetTree> -> (CSSGridPos * SheetTree) list
dispatch : Msg -> unit
Returns: ReactElement
|
|
Full Usage:
makeGridFromSheetsWithPositions cfg dispatch posL
Parameters:
BreadcrumbConfig
dispatch : Msg -> unit
posL : (CSSGridPos * SheetTree) list
Returns: ReactElement
|
|
Full Usage:
maybeWarning dialogText project
Parameters:
string
project : Project
Returns: ReactElement option
|
|
Full Usage:
pathsWithDependencies destProjectDir paths sourceProjectDir
Parameters:
string
paths : string list
sourceProjectDir : string
Returns: (string * Set<string>) list
|
|
Full Usage:
positionDesignHierarchyInGrid rootSheet trees
Parameters: Returns: (CSSGridPos * SheetTree) list
|
|
Full Usage:
positionRootAndFocusChildrenInGrid root pathToFocus trees
Parameters: Returns: (CSSGridPos * SheetTree) list
|
|
Full Usage:
positionTreeInGrid tree
Parameters:
SheetTree
Returns: (CSSGridPos * SheetTree) list
|
|
|
|
|
Duplicate the named sheet of the current project under a new name typed by the user. If that sheet is the open one it is saved to disk first when dirty, since the copy is made from the file rather than from the canvas. Save a sheet, and every sheet it uses, as components of a library. The chosen sheet is offered in the catalogue; the sheets below it are written too but NOT offered, since they exist only to serve it. That distinction used to be worked out by parsing every sheet of a library to see which were instantiated by others; it is now simply recorded, which is the point of having an authored header. The body of each .ldgm is the text of the sheet's .dgm read straight off disk, so a library component contains exactly what was saved. A sheet with unsaved changes is therefore refused rather than quietly written in its last-saved state. |
Full Usage:
smallSimulationBreadcrumbs rootName pathToFocus cfg dispatch model
Parameters:
string
pathToFocus : string list
cfg : BreadcrumbConfig
dispatch : Msg -> unit
model : Model
Returns: ReactElement
|
Breadcrumbs of the focus sheet, with sheets on its path to root, and its children. Provides navigation while occupying small vertical area. Untested. *** TODO: hookthis function to simulation and test *** Should be called extracting inputs from waveform simulation. Display as a ReactElement the breadcrumbs. clickAction - what happens when a given breadcrumb (labelled by its path to root) is clicked. project - the model project
|
Full Usage:
twoButtons leftButton rightButton
Parameters:
ReactElement list
rightButton : ReactElement list
Returns: ReactElement
|