Skip to content

Commit

Permalink
add roi group in settings
Browse files Browse the repository at this point in the history
  • Loading branch information
LauLauThom committed May 29, 2020
1 parent 7964333 commit b022ca7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Fiji.app/macros/toolsets/Roi 1-Click Tools.ijm
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ function addDefaultOption(){
nextSlice = call("ij.Prefs.get", "default.nextSlice", nextSlice);
doExtraCmd = call("ij.Prefs.get", "default.doExtraCmd", doExtraCmd);
extraCmd = call("ij.Prefs.get", "default.extraCmd", extraCmd);


Dialog.addNumber("Current ROI group (or use keypad shorcut)", Roi.getDefaultGroup());
Dialog.addCheckbox("Add to Roi Manager", addToManager);
Dialog.addCheckbox("Run measure", runMeasure );
Dialog.addCheckbox("Auto-Next slice", nextSlice);
Expand All @@ -86,6 +87,9 @@ function addDefaultOption(){

/* Recover default options from dialog */
function getDefaultOptions(){
roiGroup = Dialog.getNumber();
Roi.setDefaultGroup(roiGroup);

addToManager = Dialog.getCheckbox();
runMeasure = Dialog.getCheckbox();
nextSlice = Dialog.getCheckbox();
Expand Down

0 comments on commit b022ca7

Please sign in to comment.