class PCommandManager: public PObject

This class represents a manager for command sources and sinks.

Inheritance:


Public Methods

[more]void Register ( const char * className, const char * commandName, PCommandSink * sink )
Register the command sink.
[more]PCommandSink* Find ( const PString & className, const PString & commandName )
Locate the command sink that was registered with the specified attributes.


Inherited from PObject:

Public

Run Time Type functions

Comparison functions

I/O functions

Miscellaneous functions


Documentation

This class represents a manager for command sources and sinks. This works in conjunction with the PCommandSink and PCommandSource classes to implement dynamically bound commands on PTopLevelWindow or PMDIDocWindow classes.

The PApplication class contains a single instance of this class. This will contain all of the registered command sinks. When a command source executes a command, this database is consulted to locate the command sink that will actually execute the command functions.

ovoid Register( const char * className, const char * commandName, PCommandSink * sink )
Register the command sink.
Parameters:
className - Name of the PTitledWindow class the PCommandSink is declared in.
commandName - Name of the command.

oPCommandSink* Find( const PString & className, const PString & commandName )
Locate the command sink that was registered with the specified attributes.
Parameters:
className - Name of the PTitledWindow class the PCommandSink is declared in.
commandName - Name of the command.


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.