corrected errors in LabelSet classdef and help + added getIDs

nix
Pierre Alexandre Tremblay 4 years ago
parent edb1bc558f
commit d33fef37d4

@ -51,4 +51,13 @@ FluidLabelSet : FluidDataObject {
actions[\print] = [string(FluidMessageResponse,_,_),action]; actions[\print] = [string(FluidMessageResponse,_,_),action];
this.prSendMsg(this.printMsg); this.prSendMsg(this.printMsg);
} }
getIdsMsg{|labelSet|
^this.prMakeMsg(\getIds, id, labelSet.asUGenInput);
}
getIds{|labelSet, action|
actions[\getIds] = [nil,action];
this.prSendMsg(this.getIdsMsg(labelSet));
}
} }

@ -33,20 +33,32 @@ ARGUMENT:: identifier
The identifier for this label. The identifier for this label.
ARGUMENT:: label ARGUMENT:: label
The label to update. The label to update.
ARGUMENT:: action
A function to run when the operation completes.
METHOD:: getLabel METHOD:: getLabel
Retrieve the label associated with an identifier. Will report an error if the identifier is not present in the set. Retrieve the label associated with an identifier. Will report an error if the identifier is not present in the set.
ARGUMENT:: identifier ARGUMENT:: identifier
The identifier for the label to be retrieved. The identifier for the label to be retrieved.
ARGUMENT:: action
A function to run when the operation completes.
METHOD:: deleteLabel METHOD:: deleteLabel
Delete a label given a certain identifier. Delete a label given a certain identifier.
ARGUMENT:: identifier ARGUMENT:: identifier
The identifier to be deleted. The identifier to be deleted.
ARGUMENT:: action
A function to run when the operation completes.
METHOD:: clear METHOD:: clear
Empty the label set. Empty the label set.
METHOD:: getIds
Export to the labelset IDs to a link::Classes/FluidLabelSet::.
ARGUMENT:: labelSet
The link::Classes/FluidLabelSet:: to export to. Its content will be replaced.
ARGUMENT:: action
A function to run when the export is done.
METHOD:: print METHOD:: print
Post an abbreviated content of the label set in the window by default, but you can supply a custom action instead. Post an abbreviated content of the label set in the window by default, but you can supply a custom action instead.

Loading…
Cancel
Save