[go: up one dir, main page]

Module commands

Module commands 

Source
Expand description

Commands with special meaning, defined by Druid.

See Command for more info.

Constants§

CLOSE_ALL_WINDOWS
Close all windows.
CLOSE_WINDOW
The selector for a command to close a window.
CONFIGURE_WINDOW
Apply the configuration payload to an existing window. The target should be a WindowId.
COPY
Copy the current selection.
CUT
Cut the current selection.
HIDE_APPLICATIONDeprecated
Hide the application. (mac only)
HIDE_OTHERSDeprecated
Hide all other applications. (mac only)
HIDE_WINDOW
The selector for a command to hide a specific window
NEW_FILE
Show the new file dialog.
OPEN_FILE
Open a path, must be handled by the application.
OPEN_FILES
Open a set of paths, must be handled by the application.
OPEN_PANEL_CANCELLED
Sent when the user cancels an open file panel.
PASTE
Paste.
PRINT
Show the print dialog.
PRINT_PREVIEW
Show the print preview.
PRINT_SETUP
Show the print-setup window.
QUIT_APP
Quit the running application. This command is handled by the Druid library.
REDO
Redo.
SAVE_FILE
Save the current path.
SAVE_FILE_AS
Save to a given location.
SAVE_PANEL_CANCELLED
Sent when the user cancels a save file panel.
SCROLL_TO_VIEW
Informs this widget that a child wants a specific region to be shown. The payload is the requested region in global coordinates.
SELECT_ALL
Select all.
SHOW_ABOUT
Show the application’s “about” window.
SHOW_ALL
Show all applications.
SHOW_OPEN_PANEL
When submitted by the application, a file picker dialog will be shown to the user, and an OPEN_FILE command will be sent if a path is chosen.
SHOW_PREFERENCES
Show the application preferences.
SHOW_SAVE_PANEL
When submitted by the application, the system will show the ‘save as’ panel, and if a path is selected the system will issue a SAVE_FILE command with the selected path as the payload.
SHOW_WINDOW
The selector for a command to bring a window to the front, and give it focus.
UNDO
Undo.