VkCmdManager(3x)

VkCmdManager - execute commands

As shipped in IRIX 6.5.5. Added in IRIX 6.5.5.

NAME
     VkCmdManager - execute commands

INHERITS FROM
     VkCallbackObject

HEADER FILE
     #include <Vk/VkCmdManager.h>

CLASS DESCRIPTION
          The VkCmdManager class provides a central place for executing
          commands and managing them on a undo/redo stacks. The management of
          the VkCmdManager is left to the application, which may wish to have
          a single CmdManager, or multiple instances, depending on the
          application architecture.

          The VkCmdManager class can execute a cmd given a VkCmd object, a
          VkCmdFactory object, or a idintifying string, if the VkCmd has been
          registered with the VkCmdRegistry. Commands are executed by calling
          run():



              cmdManager->run("CutCommand");


          an optional argument to all forms of run can be supplied to be
          passed to the command (via the VkCmd::setData() method) before the
          cmd is executed. This data is uninterpreted by the VkCmdManager, and
          must be agreed upon by the cmd object and the caller.

          Interaction with the undo management facilties of the VkCmdManager
          are most easily accessed by the VkMenu class's addUndoAction() and
          addRedoAction() methods. The methods connect an instance of
          VkCmdManager with the appropriate menu commands.



SAMPLE CODE
     /usr/share/src/ViewKit/Commands/ByName/



SEE ALSO
     VkCmd, VkCmdFactory, VkCmdRegistry
     ViewKit Programmer's Guide
     The X Window System, DEC Press, Bob Sheifler and Jim Gettys
     The X Window System Toolkit, DEC Press, Paul Asente and Ralph Swick
     The OSF/Motif Programmers Reference, Prentice Hall, OSF