This reference page is linked to from the following overview topics: Deferred Loading of Plug-ins.
The interface for managing action item overrides.
This manager allows action item overrides to be activated, deactivated and retrieved. This static function-published interface is registered as a core interface. You retrieve this interface by calling static_cast<IActionItemOverrideManager*>(GetCOREInterface(IACTIONITEMOVERRIDEMANAGER_INTERFACE )). Note that once an IActionOverrideItem is managed by this interface by activating it, it then will get deleted by this interface.
#include <IActionItemOverrideManager.h>
Public Member Functions |
|
virtual void | SetOverridesActive (BOOL active)=0 |
Function to set action item overrides
active. |
|
virtual BOOL | GetOverridesActive (void) const =0 |
Get whether or not action item overrides are
globally active or not. |
|
virtual void | SetTimeToStartOverride (float secs)=0 |
Function to set how long a key must be
pressed before a suitable action item becomes an override. |
|
virtual float | GetTimeToStartOverride () const =0 |
How much time, in seconds, that we need to
hold a key before a suitable ction item becomes an override.
|
|
virtual void | RegisterActionItemOverride (ActionItem *aItem, MSTR &overrideDescription)=0 |
Function to register an action item as a
possible override. |
|
virtual void | UnregisterActionItemOverride (ActionItem *aItem)=0 |
Function to unregister an action item as a
possible override. |
|
virtual BOOL | IsActionItemRegistered (ActionItem *aItem, MSTR &description)=0 |
Function to see if an action item has been
registered, and thus may eventually be activated. |
|
virtual void | ActivateActionItemOverride (ActionItem *aItem, IActionItemOverride *aItemOverride)=0 |
Function to activate a particular action
item with a particular override, which then allows the action item
to work like an override also. |
|
virtual void | DeactivateActionItemOverride (ActionItem *aItem)=0 |
Function to deactivate an action item
override. |
|
virtual IActionItemOverride * | FindOverride (ActionItem *aItem)=0 |
Find a particular activated IActionItemOverride
given a particular ActionItem.
|
|
virtual ActionItem * | GetOverridingActionItem () const =0 |
Returns the action item that is currently
being overriden. |
virtual void SetOverridesActive | ( | BOOL | active | ) | [pure virtual] |
Function to set action item overrides active.
[in] | active | If TRUE then action item overrides may be active, if FALSE then all action overrides will be disabled. |
virtual BOOL GetOverridesActive | ( | void | ) | const [pure virtual] |
Get whether or not action item overrides are globally active or not.
virtual void SetTimeToStartOverride | ( | float | secs | ) | [pure virtual] |
Function to set how long a key must be pressed before a suitable action item becomes an override.
[in] | secs | The number of seconds that a key must be pressed and held before an action item becomes an override. |
virtual float GetTimeToStartOverride | ( | ) | const [pure virtual] |
How much time, in seconds, that we need to hold a key before a suitable ction item becomes an override.
virtual void RegisterActionItemOverride | ( | ActionItem * | aItem, |
MSTR & | overrideDescription | ||
) | [pure virtual] |
Function to register an action item as a possible override.
Function to register an action item as a possible override. The purpose of this is to inform the system of a possible override so that the action item may get highlighted in the customize UI dialog.
[in] | aItem | The action item that may have an override. |
[in] | overrideDescription | Text description of what the override does. |
virtual void UnregisterActionItemOverride | ( | ActionItem * | aItem | ) | [pure virtual] |
Function to unregister an action item as a possible override.
Function to unregister an action item as a possible override. The client should call this when either an action item will no longer be overridable of if the action item will get removed from the action table.
[in] | aItem | The action item that we want to unregister. Nothing happens if the action item was never registered. |
virtual BOOL IsActionItemRegistered | ( | ActionItem * | aItem, |
MSTR & | description | ||
) | [pure virtual] |
Function to see if an action item has been registered, and thus may eventually be activated.
[in] | aItem | The aciton item that may have an override. |
[out] | description | The text description of the override. |
virtual void ActivateActionItemOverride | ( | ActionItem * | aItem, |
IActionItemOverride * | aItemOverride | ||
) | [pure virtual] |
Function to activate a particular action item with a particular override, which then allows the action item to work like an override also.
Function to activate a particular action item with a particular override. This function must be called in order for a particular action item to work like an override.
[in] | aItem | The action item that will be associated with an override. |
[in] | aItemOverride | The action item override that will override the action item when a key is held. Note that once a IActionItemOverride object is activated the deletion of this object is now the responsibility of the IActionItemOverrideManager, and so the client shouldn't delete it also. Usually the action item override will be activated after IActionManger::ActivateActionTable is called. |
virtual void DeactivateActionItemOverride | ( | ActionItem * | aItem | ) | [pure virtual] |
Function to deactivate an action item override.
Function to unactive an action item with a corresponding action item override. Note that the activated IActionItemOverride instance will get deleted when this occurs. For efficiency, a user should unactivate their action item and action item overrides whenever they would also deactivate an action table via IActionManager::DeactiveActionTable, usually within a Animatable::EndEditParams function call.
[in] | aItem | The action item that will be unactivated. The corresponding IActionActionItemOverride will also get removed and deleted. |
virtual IActionItemOverride* FindOverride | ( | ActionItem * | aItem | ) | [pure virtual] |
Find a particular activated IActionItemOverride given a particular ActionItem.
virtual ActionItem* GetOverridingActionItem | ( | ) | const [pure virtual] |
Returns the action item that is currently being overriden.