Public Member Functions

ApplicationCommandManagerListener Class Reference

A listener that receives callbacks from an ApplicationCommandManager when commands are invoked or the command list is changed. More...

Inherited by Button, and MenuBarModel [private].

List of all members.

Public Member Functions

virtual ~ApplicationCommandManagerListener ()
 Destructor.
virtual void applicationCommandInvoked (const ApplicationCommandTarget::InvocationInfo &info)=0
 Called when an app command is about to be invoked.
virtual void applicationCommandListChanged ()=0
 Called when commands are registered or deregistered from the command manager, or when commands are made active or inactive.

Detailed Description

A listener that receives callbacks from an ApplicationCommandManager when commands are invoked or the command list is changed.

See also:
ApplicationCommandManager::addListener, ApplicationCommandManager::removeListener

Constructor & Destructor Documentation

virtual ApplicationCommandManagerListener::~ApplicationCommandManagerListener (  ) [virtual]

Destructor.


Member Function Documentation

virtual void ApplicationCommandManagerListener::applicationCommandInvoked ( const ApplicationCommandTarget::InvocationInfo info ) [pure virtual]

Called when an app command is about to be invoked.

Implemented in Button, and MenuBarModel.

virtual void ApplicationCommandManagerListener::applicationCommandListChanged (  ) [pure virtual]

Called when commands are registered or deregistered from the command manager, or when commands are made active or inactive.

Note that if you're using this to watch for changes to whether a command is disabled, you'll need to make sure that ApplicationCommandManager::commandStatusChanged() is called whenever the status of your command might have changed.

Implemented in Button, and MenuBarModel.


The documentation for this class was generated from the following file:
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines