Skip to content

Commit

Permalink
Clean up the macro image function
Browse files Browse the repository at this point in the history
Overly long function refactored into several sub-functions for maintainability.
  • Loading branch information
MichaelSNelson committed Jan 16, 2024
1 parent c5ca5ee commit a49ba79
Show file tree
Hide file tree
Showing 5 changed files with 288 additions and 225 deletions.
6 changes: 3 additions & 3 deletions src/main/groovy/qupath/ext/qp_scope/QP_scope.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class QP_scope implements QuPathExtension {
def menu = qupath.getMenu("Extensions>${name}", true)

// First menu item
def qpScope1 = new MenuItem("Input bounding box - first scan type")
def qpScope1 = new MenuItem("First scan - Use bounding box")
// TODO: tooltip
qpScope1.setOnAction(e -> {
// TODO: check preferences for all necessary entries, and check for micromanager running+version
Expand All @@ -67,15 +67,15 @@ class QP_scope implements QuPathExtension {
})

// Second menu item
def qpScope2 = new MenuItem("Use current image to detect tissue location - first scan type")
def qpScope2 = new MenuItem("First scan type - Use current image")
// TODO: tooltip
qpScope2.setOnAction(e -> {
// TODO: check preferences for all necessary entries
QP_scope_GUI.macroImageInputGUI()
})

// Third menu item - "Use current image as macro view"
def qpScope3 = new MenuItem("Scan non \'Tissue\' annotations - second scan type")
def qpScope3 = new MenuItem("Second scan type - Scan non \'Tissue\' annotations ")
// TODO: tooltip
qpScope3.setOnAction(e -> {
QP_scope_GUI.secondModalityGUI()
Expand Down
Loading

0 comments on commit a49ba79

Please sign in to comment.