[][src]Module druid::commands

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_APPLICATION

Hide the application. (mac only?)

HIDE_OTHERS

Hide all other applications. (mac only?)

NEW_FILE

Show the new file dialog.

OPEN_FILE

Open a path, 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.

SHOW_ABOUT

Show the application 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.