Next Previous Up Top Contents Index

9.4 DUIM-Frames Module

<command-table>

Open abstract instantiable class

Summary

The class of command tables.

Superclasses

<object> 

Init-keywords

name:
An instance of type <object>. Required.

inherit-from:
An instance of type limited(<sequence>, of: <command-table>). Required.

resource-id:
An instance of type false-or(<object>). Default value: #f.

Library

duim-frames

Module

duim-frames

Description

The class of command tables. The command table for an application gives a complete specification of the commands available to that application, through its menus, tool bars, mnemonics, and accelerators.

The name: init-keyword is a symbol that names the current command table.

The inherit-from: init-keyword is a sequence of command tables whose behavior the current command table should inherit. All command tables inherit the behavior of the command table specified by *global-command-table*, and can also inherit the behavior specified by *user-command-table*.

You do not normally need to specify a unique resource-id: yourself. As with most other DUIM classes, the name: init-keyword serves as a sufficient unique identifier.

Operations

add-command add-command-table-menu-item command-table-accelerators command-table-commands command-table-menu command-table-name frame-command-table-setter make make-menu-from-command-table-menu make-menus-from-command-table remove-command
remove-command-table remove-command-table-menu-item

Example

define command-table *clipboard-command-table*
    =(*global-command-table*)
  menu-item "Cut"    = cut-selection,
    documentation: $cut-doc;
  menu-item "Copy"   = copy-selection,
    documentation: $copy-doc;
  menu-item "Paste"  = paste-from-clipboard,
    documentation: $paste-doc;
  menu-item "Delete" = delete-selection,
    documentation: $delete-doc;
end command-table *clipboard-command-table*;

See also

*global-command-table*, page 822

*user-command-table*, page 852


Functional Developer Library Reference: DUIM - 3 Dec 1998

Next Previous Up Top Contents Index