Package qupath.lib.gui.tools
Class CommandFinderTools
java.lang.Object
qupath.lib.gui.tools.CommandFinderTools
Helper tools for creating components that enable fast access to menu commands via a filtered list.
- Author:
- Pete Bankhead
-
Property Summary
TypePropertyDescriptionProperty specifying where the command bar should be displayed relative to the main viewer window. -
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Available modes for displaying the command bar.static class
Helper class to wrap summary data for a command to display in the list. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionProperty specifying where the command bar should be displayed relative to the main viewer window.static Stage
createCommandFinderDialog
(QuPathGUI qupath) Create a dialog showing a filtered list of menu commands, for fast selection.static org.controlsfx.control.HiddenSidesPane
createCommandFinderPane
(QuPathGUI qupath, Node node, ObjectProperty<CommandFinderTools.CommandBarDisplay> displayMode) Create a component that contains aTextField
for entering menu commands to run quickly.static Stage
createRecentCommandsDialog
(QuPathGUI qupath) Create a dialog showing a filtered list of recently-used commands, for fast selection.static String
Create a markdown representation of the menus for inclusion in the documentation, using the current QuPath instance.static void
menusToMarkdown
(QuPathGUI qupath, Writer writer) Write a markdown representation of the menus for inclusion in the documentation.
-
Property Details
-
commandBarDisplay
Property specifying where the command bar should be displayed relative to the main viewer window.- See Also:
-
-
Constructor Details
-
CommandFinderTools
public CommandFinderTools()
-
-
Method Details
-
commandBarDisplayProperty
Property specifying where the command bar should be displayed relative to the main viewer window.- Returns:
-
createCommandFinderPane
public static org.controlsfx.control.HiddenSidesPane createCommandFinderPane(QuPathGUI qupath, Node node, ObjectProperty<CommandFinderTools.CommandBarDisplay> displayMode) Create a component that contains aTextField
for entering menu commands to run quickly. This component is a container that holds a mainNode
, and displays theTextField
only when requested.- Parameters:
qupath
-node
-displayMode
-- Returns:
-
createCommandFinderDialog
Create a dialog showing a filtered list of menu commands, for fast selection.- Parameters:
qupath
-- Returns:
-
createRecentCommandsDialog
Create a dialog showing a filtered list of recently-used commands, for fast selection.- Parameters:
qupath
-- Returns:
-