[][src]Module druid::commands

Commands with special meaning, defined by druid.

Constants

CLOSE_WINDOW

The selector for a command to close a window. The command's argument should be the id of the window to close.

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.

NEW_WINDOW

The selector for a command to create a new window.

OPEN_FILE

Open a file.

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 file.

SET_MENU

The selector for a command to set the window's menu. The argument should be a MenuDesc object.

SHOW_ABOUT

Show the application about window.

SHOW_ALL

Show all applications.

SHOW_CONTEXT_MENU

Display a context (right-click) menu. The argument should be a...

SHOW_OPEN_PANEL

System command. A file picker dialog will be shown to the user, and an OPEN_FILE command will be sent if a file is chosen.

SHOW_PREFERENCES

Show the application preferences.

SHOW_SAVE_PANEL

Special command. When issued, 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 argument.

SHOW_WINDOW

The selector for a command to bring a window to the front, and give it focus.

UNDO

Undo.