3ds Max C++ API Reference
Loading...
Searching...
No Matches
IActionManager Class Referenceabstract

Manages a set of ActionTables, ActionCallbacks and ActionContext. More...

#include <actiontable_REMOTE_92.h>

+ Inheritance diagram for IActionManager:

Public Member Functions

virtual void RegisterActionTable (ActionTable *pTable)=0
 Register an action table with the manager.
 
virtual int NumActionTables ()=0
 Returns the number of ActionTables.
 
virtual ActionTableGetTable (int i)=0
 Returns a pointer to the nth ActionTable.
 
virtual int ActivateActionTable (ActionCallback *pCallback, ActionTableId id)=0
 Activate the action table.
 
virtual int DeactivateActionTable (ActionCallback *pCallback, ActionTableId id)=0
 Deactivates the action table.
 
virtual ActionTableFindTable (ActionTableId id)=0
 Returns a pointer to an action table.
 
virtual BOOL GetShortcutString (ActionTableId tableId, int commandId, MCHAR *buf)=0
 Retrieves the string that describes the keyboard shortcut for the specified ActionItem.
 
virtual BOOL GetActionDescription (ActionTableId tableId, int commandId, MCHAR *buf)=0
 Retrieves a string that describes the specified operation from the action table whose ID is passed.
 
virtual BOOL RegisterActionContext (ActionContextId contextId, const MCHAR *pName)=0
 Registers an action context.
 
virtual int NumActionContexts ()=0
 Returns the number of ActionContexts.
 
virtual ActionContextGetActionContext (int i)=0
 Returns a pointer to the nth ActionContext.
 
virtual ActionContextFindContext (ActionContextId contextId)=0
 Returns a pointer to the specified ActionContext.
 
virtual BOOL IsContextActive (ActionContextId contextId)=0
 Checks if an ActionContext is active or not.
 
virtual void RegisterActionTable (ActionTable *pTable)=0
 Register an action table with the manager.
 
virtual int NumActionTables ()=0
 Returns the number of ActionTables.
 
virtual ActionTableGetTable (int i)=0
 Returns a pointer to the nth ActionTable.
 
virtual int ActivateActionTable (ActionCallback *pCallback, ActionTableId id)=0
 Activate the action table.
 
virtual int DeactivateActionTable (ActionCallback *pCallback, ActionTableId id)=0
 Deactivates the action table.
 
virtual ActionTableFindTable (ActionTableId id)=0
 Returns a pointer to an action table.
 
virtual BOOL GetShortcutString (ActionTableId tableId, int commandId, MCHAR *buf)=0
 Retrieves the string that describes the keyboard shortcut for the specified ActionItem.
 
virtual BOOL GetActionDescription (ActionTableId tableId, int commandId, MCHAR *buf)=0
 Retrieves a string that describes the specified operation from the action table whose ID is passed.
 
virtual BOOL RegisterActionContext (ActionContextId contextId, const MCHAR *pName)=0
 Registers an action context.
 
virtual int NumActionContexts ()=0
 Returns the number of ActionContexts.
 
virtual ActionContextGetActionContext (int i)=0
 Returns a pointer to the nth ActionContext.
 
virtual ActionContextFindContext (ActionContextId contextId)=0
 Returns a pointer to the specified ActionContext.
 
virtual BOOL IsContextActive (ActionContextId contextId)=0
 Checks if an ActionContext is active or not.
 
virtual void RegisterActionTable (ActionTable *pTable)=0
 Register an action table with the manager.
 
virtual int NumActionTables ()=0
 Returns the number of ActionTables.
 
virtual ActionTableGetTable (int i)=0
 Returns a pointer to the nth ActionTable.
 
virtual int ActivateActionTable (ActionCallback *pCallback, ActionTableId id)=0
 Activate the action table.
 
virtual int DeactivateActionTable (ActionCallback *pCallback, ActionTableId id)=0
 Deactivates the action table.
 
virtual ActionTableFindTable (ActionTableId id)=0
 Returns a pointer to an action table.
 
virtual BOOL GetShortcutString (ActionTableId tableId, int commandId, MCHAR *buf)=0
 Retrieves the string that describes the keyboard shortcut for the specified ActionItem.
 
virtual BOOL GetActionDescription (ActionTableId tableId, int commandId, MCHAR *buf)=0
 Retrieves a string that describes the specified operation from the action table whose ID is passed.
 
virtual BOOL RegisterActionContext (ActionContextId contextId, const MCHAR *pName)=0
 Registers an action context.
 
virtual int NumActionContexts ()=0
 Returns the number of ActionContexts.
 
virtual ActionContextGetActionContext (int i)=0
 Returns a pointer to the nth ActionContext.
 
virtual ActionContextFindContext (ActionContextId contextId)=0
 Returns a pointer to the specified ActionContext.
 
virtual BOOL IsContextActive (ActionContextId contextId)=0
 Checks if an ActionContext is active or not.
 
virtual void RegisterActionTable (ActionTable *pTable)=0
 Register an action table with the manager.
 
virtual int NumActionTables ()=0
 Returns the number of ActionTables.
 
virtual ActionTableGetTable (int i)=0
 Returns a pointer to the nth ActionTable.
 
virtual int ActivateActionTable (ActionCallback *pCallback, ActionTableId id)=0
 Activate the action table.
 
virtual int DeactivateActionTable (ActionCallback *pCallback, ActionTableId id)=0
 Deactivates the action table.
 
virtual ActionTableFindTable (ActionTableId id)=0
 Returns a pointer to an action table.
 
virtual BOOL GetShortcutString (ActionTableId tableId, int commandId, MCHAR *buf)=0
 Retrieves the string that describes the keyboard shortcut for the specified ActionItem.
 
virtual BOOL GetActionDescription (ActionTableId tableId, int commandId, MCHAR *buf)=0
 Retrieves a string that describes the specified operation from the action table whose ID is passed.
 
virtual BOOL RegisterActionContext (ActionContextId contextId, const MCHAR *pName)=0
 Registers an action context.
 
virtual int NumActionContexts ()=0
 Returns the number of ActionContexts.
 
virtual ActionContextGetActionContext (int i)=0
 Returns a pointer to the nth ActionContext.
 
virtual ActionContextFindContext (ActionContextId contextId)=0
 Returns a pointer to the specified ActionContext.
 
virtual BOOL IsContextActive (ActionContextId contextId)=0
 Checks if an ActionContext is active or not.
 
virtual void RegisterActionTable (ActionTable *pTable)=0
 Register an action table with the manager.
 
virtual int NumActionTables ()=0
 Returns the number of ActionTables.
 
virtual ActionTableGetTable (int i)=0
 Returns a pointer to the nth ActionTable.
 
virtual int ActivateActionTable (ActionCallback *pCallback, ActionTableId id)=0
 Activate the action table.
 
virtual int DeactivateActionTable (ActionCallback *pCallback, ActionTableId id)=0
 Deactivates the action table.
 
virtual ActionTableFindTable (ActionTableId id)=0
 Returns a pointer to an action table.
 
virtual BOOL GetShortcutString (ActionTableId tableId, int commandId, MCHAR *buf)=0
 Retrieves the string that describes the keyboard shortcut for the specified ActionItem.
 
virtual BOOL GetActionDescription (ActionTableId tableId, int commandId, MCHAR *buf)=0
 Retrieves a string that describes the specified operation from the action table whose ID is passed.
 
virtual BOOL RegisterActionContext (ActionContextId contextId, const MCHAR *pName)=0
 Registers an action context.
 
virtual int NumActionContexts ()=0
 Returns the number of ActionContexts.
 
virtual ActionContextGetActionContext (int i)=0
 Returns a pointer to the nth ActionContext.
 
virtual ActionContextFindContext (ActionContextId contextId)=0
 Returns a pointer to the specified ActionContext.
 
virtual BOOL IsContextActive (ActionContextId contextId)=0
 Checks if an ActionContext is active or not.
 
- Public Member Functions inherited from FPInterfaceDesc
CoreExport FPInterfaceDesc ()
 
CoreExport FPInterfaceDesc (Interface_ID id, const MCHAR *int_name, StringResID descr, ClassDesc *cd, ULONG flag,...)
 
CoreExport ~FPInterfaceDesc ()
 
virtual void Init ()
 
LifetimeType LifetimeControl ()
 
virtual BaseInterfaceGetInterface (Interface_ID id)
 
CoreExport void LoadDescriptor (Interface_ID id, const MCHAR *int_name, StringResID descr, ClassDesc *pCD, ULONG flag,...)
 
CoreExport void AppendFunction (int id,...)
 Add a new function to this interface descriptor.
 
CoreExport void AppendProperty (int id,...)
 Add a new property to this interface descriptor.
 
CoreExport void AppendEnum (int id,...)
 Add a new enum to this interface descriptor.
 
CoreExport void SetClassDesc (ClassDesc *i_cd)
 
CoreExport va_list check_fn (va_list ap, int id)
 
CoreExport va_list scan_fn (va_list ap, int id, int index)
 
CoreExport va_list check_prop (va_list ap, int id)
 
CoreExport va_list scan_prop (va_list ap, int id, int index)
 
CoreExport va_list check_enum (va_list ap, EnumID id)
 
CoreExport va_list scan_enum (va_list ap, EnumID id, int index)
 
FPInterfaceDescGetDesc ()
 
Interface_ID GetID ()
 
CoreExport FPFunctionDefGetFnDef (FunctionID fid)
 
ActionTableGetActionTable ()
 
CoreExport void EnableActions (BOOL onOff)
 
virtual CoreExport HINSTANCE HInstance ()
 
virtual CoreExport const MCHARGetRsrcString (StringResID id)
 
- Public Member Functions inherited from FPInterface
virtual BaseInterfaceGetInterface (Interface_ID id)
 
virtual FPInterfaceDescGetDesc ()=0
 
virtual CoreExport FPStatus Invoke (FunctionID fid, TimeValue t=0, FPParams *params=NULL)
 
virtual FPStatus Invoke (FunctionID fid, FPParams *params)
 
virtual CoreExport FPStatus Invoke (FunctionID fid, TimeValue t, FPValue &result, FPParams *params=NULL)
 
virtual FPStatus Invoke (FunctionID fid, FPValue &result, FPParams *params=NULL)
 
virtual CoreExport FunctionID FindFn (const MCHAR *name)
 
virtual CoreExport BOOL IsEnabled (FunctionID actionID)
 
virtual CoreExport BOOL IsChecked (FunctionID actionID)
 
virtual CoreExport BOOL IsVisible (FunctionID actionID)
 
virtual CoreExport FunctionID GetIsEnabled (FunctionID actionID)
 
virtual CoreExport FunctionID GetIsChecked (FunctionID actionID)
 
virtual CoreExport FunctionID GetIsVisible (FunctionID actionID)
 
virtual ActionTableGetActionTable ()
 
virtual void EnableActions (BOOL onOff)
 
- Public Member Functions inherited from BaseInterface
virtual UtilExport ~BaseInterface ()
 Destructor.
 
UtilExport BaseInterfaceGetInterface (Interface_ID id) override
 
virtual UtilExport Interface_ID GetID ()
 
virtual LifetimeType LifetimeControl ()
 
virtual bool RegisterNotifyCallback (InterfaceNotifyCallback *incb)
 
virtual void UnRegisterNotifyCallback (InterfaceNotifyCallback *incb)
 
virtual BaseInterfaceAcquireInterface ()
 
virtual void ReleaseInterface ()
 
virtual void DeleteInterface ()
 
virtual BaseInterfaceCloneInterface (void *remapDir=nullptr)
 
- Public Member Functions inherited from InterfaceServer
virtual UtilExport ~InterfaceServer ()
 Destructor.
 
virtual UtilExport BaseInterfaceGetInterface (Interface_ID id)
 
template<class InterfaceType >
InterfaceType * GetTypedInterface ()
 

Internal Methods

enum  ActionManagerFps {
  executeAction , saveKeyboardFile , loadKeyboardFile , getKeyboardFile ,
  numActionTables , getActionTable , getActionContext , numActionContexts ,
  executeAction , saveKeyboardFile , loadKeyboardFile , getKeyboardFile ,
  numActionTables , getActionTable , getActionContext , numActionContexts ,
  executeAction , saveKeyboardFile , loadKeyboardFile , getKeyboardFile ,
  numActionTables , getActionTable , getActionContext , numActionContexts ,
  executeAction , saveKeyboardFile , loadKeyboardFile , getKeyboardFile ,
  numActionTables , getActionTable , getActionContext , numActionContexts ,
  executeAction , saveKeyboardFile , loadKeyboardFile , getKeyboardFile ,
  numActionTables , getActionTable , getActionContext , numActionContexts
}
 IDs for function published (Fps) methods and properties. More...
 
enum  ActionManagerFps {
  executeAction , saveKeyboardFile , loadKeyboardFile , getKeyboardFile ,
  numActionTables , getActionTable , getActionContext , numActionContexts ,
  executeAction , saveKeyboardFile , loadKeyboardFile , getKeyboardFile ,
  numActionTables , getActionTable , getActionContext , numActionContexts ,
  executeAction , saveKeyboardFile , loadKeyboardFile , getKeyboardFile ,
  numActionTables , getActionTable , getActionContext , numActionContexts ,
  executeAction , saveKeyboardFile , loadKeyboardFile , getKeyboardFile ,
  numActionTables , getActionTable , getActionContext , numActionContexts ,
  executeAction , saveKeyboardFile , loadKeyboardFile , getKeyboardFile ,
  numActionTables , getActionTable , getActionContext , numActionContexts
}
 IDs for function published (Fps) methods and properties. More...
 
enum  ActionManagerFps {
  executeAction , saveKeyboardFile , loadKeyboardFile , getKeyboardFile ,
  numActionTables , getActionTable , getActionContext , numActionContexts ,
  executeAction , saveKeyboardFile , loadKeyboardFile , getKeyboardFile ,
  numActionTables , getActionTable , getActionContext , numActionContexts ,
  executeAction , saveKeyboardFile , loadKeyboardFile , getKeyboardFile ,
  numActionTables , getActionTable , getActionContext , numActionContexts ,
  executeAction , saveKeyboardFile , loadKeyboardFile , getKeyboardFile ,
  numActionTables , getActionTable , getActionContext , numActionContexts ,
  executeAction , saveKeyboardFile , loadKeyboardFile , getKeyboardFile ,
  numActionTables , getActionTable , getActionContext , numActionContexts
}
 IDs for function published (Fps) methods and properties. More...
 
enum  ActionManagerFps {
  executeAction , saveKeyboardFile , loadKeyboardFile , getKeyboardFile ,
  numActionTables , getActionTable , getActionContext , numActionContexts ,
  executeAction , saveKeyboardFile , loadKeyboardFile , getKeyboardFile ,
  numActionTables , getActionTable , getActionContext , numActionContexts ,
  executeAction , saveKeyboardFile , loadKeyboardFile , getKeyboardFile ,
  numActionTables , getActionTable , getActionContext , numActionContexts ,
  executeAction , saveKeyboardFile , loadKeyboardFile , getKeyboardFile ,
  numActionTables , getActionTable , getActionContext , numActionContexts ,
  executeAction , saveKeyboardFile , loadKeyboardFile , getKeyboardFile ,
  numActionTables , getActionTable , getActionContext , numActionContexts
}
 IDs for function published (Fps) methods and properties. More...
 
enum  ActionManagerFps {
  executeAction , saveKeyboardFile , loadKeyboardFile , getKeyboardFile ,
  numActionTables , getActionTable , getActionContext , numActionContexts ,
  executeAction , saveKeyboardFile , loadKeyboardFile , getKeyboardFile ,
  numActionTables , getActionTable , getActionContext , numActionContexts ,
  executeAction , saveKeyboardFile , loadKeyboardFile , getKeyboardFile ,
  numActionTables , getActionTable , getActionContext , numActionContexts ,
  executeAction , saveKeyboardFile , loadKeyboardFile , getKeyboardFile ,
  numActionTables , getActionTable , getActionContext , numActionContexts ,
  executeAction , saveKeyboardFile , loadKeyboardFile , getKeyboardFile ,
  numActionTables , getActionTable , getActionContext , numActionContexts
}
 IDs for function published (Fps) methods and properties. More...
 
virtual int IdToIndex (ActionTableId id)=0
 IDs for function published (Fps) methods and properties.
 
virtual BOOL SaveKeyboardFile (const MCHAR *pFileName)=0
 Saves the current keyboard shortcut configuration into the given file name.
 
virtual BOOL LoadKeyboardFile (const MCHAR *pFileName)=0
 Loads a keyboard shortcut configuration from the specified file name.
 
virtual const MCHARGetKeyboardFile ()=0
 Returns the full path to the current keyboard shortcuts file.
 
virtual int IdToIndex (ActionTableId id)=0
 IDs for function published (Fps) methods and properties.
 
virtual BOOL SaveKeyboardFile (const MCHAR *pFileName)=0
 Saves the current keyboard shortcut configuration into the given file name.
 
virtual BOOL LoadKeyboardFile (const MCHAR *pFileName)=0
 Loads a keyboard shortcut configuration from the specified file name.
 
virtual const MCHARGetKeyboardFile ()=0
 Returns the full path to the current keyboard shortcuts file.
 
virtual int IdToIndex (ActionTableId id)=0
 IDs for function published (Fps) methods and properties.
 
virtual BOOL SaveKeyboardFile (const MCHAR *pFileName)=0
 Saves the current keyboard shortcut configuration into the given file name.
 
virtual BOOL LoadKeyboardFile (const MCHAR *pFileName)=0
 Loads a keyboard shortcut configuration from the specified file name.
 
virtual const MCHARGetKeyboardFile ()=0
 Returns the full path to the current keyboard shortcuts file.
 
virtual int IdToIndex (ActionTableId id)=0
 IDs for function published (Fps) methods and properties.
 
virtual BOOL SaveKeyboardFile (const MCHAR *pFileName)=0
 Saves the current keyboard shortcut configuration into the given file name.
 
virtual BOOL LoadKeyboardFile (const MCHAR *pFileName)=0
 Loads a keyboard shortcut configuration from the specified file name.
 
virtual const MCHARGetKeyboardFile ()=0
 Returns the full path to the current keyboard shortcuts file.
 
virtual int IdToIndex (ActionTableId id)=0
 IDs for function published (Fps) methods and properties.
 
virtual BOOL SaveKeyboardFile (const MCHAR *pFileName)=0
 Saves the current keyboard shortcut configuration into the given file name.
 
virtual BOOL LoadKeyboardFile (const MCHAR *pFileName)=0
 Loads a keyboard shortcut configuration from the specified file name.
 
virtual const MCHARGetKeyboardFile ()=0
 Returns the full path to the current keyboard shortcuts file.
 

Additional Inherited Members

- Public Types inherited from BaseInterface
enum  LifetimeType { noRelease , immediateRelease , wantsRelease , serverControlled }
 
- Static Public Member Functions inherited from MaxHeapOperators
static UtilExport voidoperator new (size_t size)
 Standard new operator used to allocate objects If there is insufficient memory, an exception will be thrown.
 
static UtilExport voidoperator new (size_t size, const std::nothrow_t &e)
 Standard new operator used to allocate objects if there is insufficient memory, NULL will be returned.
 
static UtilExport voidoperator new (size_t size, const char *filename, int line)
 New operator used to allocate objects that takes the filename and line number where the new was called If there is insufficient memory, an exception will be thrown.
 
static UtilExport voidoperator new (size_t size, int block_type, const char *filename, int line)
 New operator used to allocate objects that takes the type of memory, filename and line number where the new was called If there is insufficient memory, an exception will be thrown.
 
static UtilExport voidoperator new (size_t size, const std::nothrow_t &e, const char *filename, int line)
 New operator used to allocate objects that takes the filename and line number where the new was called If there is insufficient memory, NULL will be returned.
 
static UtilExport voidoperator new (size_t size, unsigned long flags)
 New operator used to allocate objects that takes extra flags to specify special operations If there is insufficient memory, an exception will be thrown.
 
static UtilExport voidoperator new (size_t size, const std::nothrow_t &e, unsigned long flags)
 New operator used to allocate objects that takes extra flags to specify special operations If there is insufficient memory, NULL will be returned.
 
static UtilExport voidoperator new[] (size_t size)
 New operator used to allocate arrays of objects If there is insufficient memory, an exception will be thrown.
 
static UtilExport voidoperator new[] (size_t size, const std::nothrow_t &e)
 New operator used to allocate arrays of objects If there is insufficient memory, NULL will be returned.
 
static UtilExport voidoperator new[] (size_t size, const char *filename, int line)
 New operator used to allocate arrays of objects If there is insufficient memory, an exception will be thrown.
 
static UtilExport voidoperator new[] (size_t size, int block_type, const char *filename, int line)
 New operator used to allocate arrays of objects.
 
static UtilExport voidoperator new[] (size_t size, const std::nothrow_t &e, const char *filename, int line)
 New operator used to allocate arrays of objects If there is insufficient memory, NULL will be returned.
 
static UtilExport voidoperator new[] (size_t size, unsigned long flags)
 New operator used to allocate arrays of objects If there is insufficient memory, an exception will be thrown.
 
static UtilExport voidoperator new[] (size_t size, const std::nothrow_t &e, unsigned long flags)
 New operator used to allocate arrays of objects If there is insufficient memory, NULL will be returned.
 
static UtilExport void operator delete (void *ptr)
 Standard delete operator used to deallocate an object If the pointer is invalid, an exception will be thrown.
 
static UtilExport void operator delete (void *ptr, const std::nothrow_t &e)
 Standard delete operator used to deallocate an object If the pointer is invalid, nothing will happen.
 
static UtilExport void operator delete (void *ptr, const char *filename, int line)
 Delete operator used to deallocate an object that takes the filename and line number where the delete was called If the pointer is invalid, an exception will be thrown.
 
static UtilExport void operator delete (void *ptr, int block_type, const char *filename, int line)
 Delete operator used to deallocate an object that takes the type of memory, filename and line number where the delete was called If the pointer is invalid, an exception will be thrown.
 
static UtilExport void operator delete (void *ptr, const std::nothrow_t &e, const char *filename, int line)
 Delete operator used to deallocate an object that takes the filename and line number where the delete was called If the pointer is invalid, nothing will happen.
 
static UtilExport void operator delete (void *ptr, unsigned long flags)
 Delete operator used to deallocate an object that takes extra flags to specify special operations If the pointer is invalid, an exception will be thrown.
 
static UtilExport void operator delete (void *ptr, const std::nothrow_t &e, unsigned long flags)
 Delete operator used to deallocate an object that takes extra flags to specify special operations If the pointer is invalid, nothing will happen.
 
static UtilExport void operator delete[] (void *ptr)
 Standard delete operator used to deallocate an array of objects If the pointer is invalid, an exception will be thrown.
 
static UtilExport void operator delete[] (void *ptr, const std::nothrow_t &e)
 Standard delete operator used to deallocate an array of objects If the pointer is invalid, nothing will happen.
 
static UtilExport void operator delete[] (void *ptr, const char *filename, int line)
 Delete operator used to deallocate an array of objects that takes the filename and line number where the delete was called If the pointer is invalid, an exception will be thrown.
 
static UtilExport void operator delete[] (void *ptr, int block_type, const char *filename, int line)
 Delete operator used to deallocate an array of objects that takes the type of memory, filename and line number where the delete was called If the pointer is invalid, an exception will be thrown.
 
static UtilExport void operator delete[] (void *ptr, const std::nothrow_t &e, const char *filename, int line)
 Delete operator used to deallocate an array of objects that takes the filename and line number where the delete was called If the pointer is invalid, nothing will happen.
 
static UtilExport void operator delete[] (void *ptr, unsigned long flags)
 Delete operator used to deallocate an array of objects that takes extra flags to specify special operations If the pointer is invalid, an exception will be thrown.
 
static UtilExport void operator delete[] (void *ptr, const std::nothrow_t &e, unsigned long flags)
 Delete operator used to deallocate an array of objects that takes extra flags to specify special operations If the pointer is invalid, an exception will be thrown.
 
static UtilExport voidoperator new (size_t size, void *placement_ptr)
 Placement new operator.
 
static UtilExport void operator delete (void *ptr, void *placement_ptr)
 Placement delete operator.
 
static UtilExport voidaligned_malloc (size_t size, size_t alignment)
 Allocates memory on a specified alignment boundary.
 
static UtilExport voidaligned_realloc (void *ptr, size_t size, size_t alignment)
 Reallocates memory on a specified alignment boundary.
 
static UtilExport void aligned_free (void *ptr)
 Frees a block of memory that was allocated with aligned_malloc/aligned_realloc.
 
- Public Attributes inherited from FPInterfaceDesc
Interface_ID ID
 
MSTR internal_name
 
StringResID description
 
ClassDesccd
 
USHORT flags
 
Tab< FPFunctionDef * > functions
 
Tab< FPPropDef * > props
 
Tab< FPEnum * > enumerations
 
MSPluginClasspc
 
Rolloutrollout
 
ActionTableaction_table
 
- Static Public Attributes inherited from FPInterface
static CoreExport FPInterfaceDesc nullInterface
 
- Protected Member Functions inherited from FPInterfaceDesc
CoreExport void load_descriptor (Interface_ID id, const MCHAR *int_name, StringResID descr, ClassDesc *cd, USHORT flag, va_list ap)
 
- Protected Member Functions inherited from FPInterface
virtual FPStatus _dispatch_fn (FunctionID fid, TimeValue t, FPValue &result, FPParams *p)
 

Detailed Description

Manages a set of ActionTables, ActionCallbacks and ActionContext.

The manager handles the keyboard accelerator tables for each ActionTable as well. You can get a pointer to a class implementing this interface using Interface::GetActionManager().

See also
Class ActionTable, Class ClassDesc, Class ActionItem, Class ActionCallback, Class ActionContext, Class DynamicMenu, Class DynamicMenuCallback, Class Interface.

The manager handles the keyboard accelerator tables for each ActionTable as well. You can get a pointer to a class implementing this interface using Interface::GetActionManager().
<<<<<<< HEAD

Version
4.0

\sa Class ActionTable, Class ClassDesc, Class ActionItem, Class ActionCallback, Class ActionContext, Class Interface.

See also
Class ActionTable, Class ClassDesc, Class ActionItem, Class ActionCallback, Class ActionContext, Class DynamicMenu, Class DynamicMenuCallback, Class Interface.

‍a406e112cf287e51abdbba7f88b8e4b91e0a64e7

The manager handles the keyboard accelerator tables for each ActionTable as well. You can get a pointer to a class implementing this interface using Interface::GetActionManager().

Version
4.0
See also
Class ActionTable, Class ClassDesc, Class ActionItem, Class ActionCallback, Class ActionContext, Class DynamicMenu, Class DynamicMenuCallback, Class Interface.

The manager handles the keyboard accelerator tables for each ActionTable as well. You can get a pointer to a class implementing this interface using Interface::GetActionManager().

Version
4.0
See also
Class ActionTable, Class ClassDesc, Class ActionItem, Class ActionCallback, Class ActionContext, Class Interface.

Member Enumeration Documentation

◆ ActionManagerFps [1/5]

IDs for function published (Fps) methods and properties.

Enumerator
executeAction 
saveKeyboardFile 
loadKeyboardFile 
getKeyboardFile 
numActionTables 
getActionTable 
getActionContext 
numActionContexts 
executeAction 
saveKeyboardFile 
loadKeyboardFile 
getKeyboardFile 
numActionTables 
getActionTable 
getActionContext 
numActionContexts 
executeAction 
saveKeyboardFile 
loadKeyboardFile 
getKeyboardFile 
numActionTables 
getActionTable 
getActionContext 
numActionContexts 
executeAction 
saveKeyboardFile 
loadKeyboardFile 
getKeyboardFile 
numActionTables 
getActionTable 
getActionContext 
numActionContexts 
executeAction 
saveKeyboardFile 
loadKeyboardFile 
getKeyboardFile 
numActionTables 
getActionTable 
getActionContext 
numActionContexts 
1031 {
1033#ifndef NO_CUI // russom - 02/12/02
1037#endif // NO_CUI
1042 };
@ getKeyboardFile
Definition: actiontable.h:1036
@ executeAction
Definition: actiontable.h:1032
@ saveKeyboardFile
Definition: actiontable.h:1034
@ getActionContext
Definition: actiontable.h:1040
@ getActionTable
Definition: actiontable.h:1039
@ numActionTables
Definition: actiontable.h:1038
@ loadKeyboardFile
Definition: actiontable.h:1035
@ numActionContexts
Definition: actiontable.h:1041

◆ ActionManagerFps [2/5]

IDs for function published (Fps) methods and properties.

Enumerator
executeAction 
saveKeyboardFile 
loadKeyboardFile 
getKeyboardFile 
numActionTables 
getActionTable 
getActionContext 
numActionContexts 
executeAction 
saveKeyboardFile 
loadKeyboardFile 
getKeyboardFile 
numActionTables 
getActionTable 
getActionContext 
numActionContexts 
executeAction 
saveKeyboardFile 
loadKeyboardFile 
getKeyboardFile 
numActionTables 
getActionTable 
getActionContext 
numActionContexts 
executeAction 
saveKeyboardFile 
loadKeyboardFile 
getKeyboardFile 
numActionTables 
getActionTable 
getActionContext 
numActionContexts 
executeAction 
saveKeyboardFile 
loadKeyboardFile 
getKeyboardFile 
numActionTables 
getActionTable 
getActionContext 
numActionContexts 
1123 {
1125#ifndef NO_CUI // russom - 02/12/02
1129#endif // NO_CUI
1134 };

◆ ActionManagerFps [3/5]

IDs for function published (Fps) methods and properties.

Enumerator
executeAction 
saveKeyboardFile 
loadKeyboardFile 
getKeyboardFile 
numActionTables 
getActionTable 
getActionContext 
numActionContexts 
executeAction 
saveKeyboardFile 
loadKeyboardFile 
getKeyboardFile 
numActionTables 
getActionTable 
getActionContext 
numActionContexts 
executeAction 
saveKeyboardFile 
loadKeyboardFile 
getKeyboardFile 
numActionTables 
getActionTable 
getActionContext 
numActionContexts 
executeAction 
saveKeyboardFile 
loadKeyboardFile 
getKeyboardFile 
numActionTables 
getActionTable 
getActionContext 
numActionContexts 
executeAction 
saveKeyboardFile 
loadKeyboardFile 
getKeyboardFile 
numActionTables 
getActionTable 
getActionContext 
numActionContexts 
1028 {
1030#ifndef NO_CUI // russom - 02/12/02
1034#endif // NO_CUI
1039 };

◆ ActionManagerFps [4/5]

IDs for function published (Fps) methods and properties.

Enumerator
executeAction 
saveKeyboardFile 
loadKeyboardFile 
getKeyboardFile 
numActionTables 
getActionTable 
getActionContext 
numActionContexts 
executeAction 
saveKeyboardFile 
loadKeyboardFile 
getKeyboardFile 
numActionTables 
getActionTable 
getActionContext 
numActionContexts 
executeAction 
saveKeyboardFile 
loadKeyboardFile 
getKeyboardFile 
numActionTables 
getActionTable 
getActionContext 
numActionContexts 
executeAction 
saveKeyboardFile 
loadKeyboardFile 
getKeyboardFile 
numActionTables 
getActionTable 
getActionContext 
numActionContexts 
executeAction 
saveKeyboardFile 
loadKeyboardFile 
getKeyboardFile 
numActionTables 
getActionTable 
getActionContext 
numActionContexts 
1095 {
1097#ifndef NO_CUI // russom - 02/12/02
1101#endif // NO_CUI
1106 };

◆ ActionManagerFps [5/5]

IDs for function published (Fps) methods and properties.

Enumerator
executeAction 
saveKeyboardFile 
loadKeyboardFile 
getKeyboardFile 
numActionTables 
getActionTable 
getActionContext 
numActionContexts 
executeAction 
saveKeyboardFile 
loadKeyboardFile 
getKeyboardFile 
numActionTables 
getActionTable 
getActionContext 
numActionContexts 
executeAction 
saveKeyboardFile 
loadKeyboardFile 
getKeyboardFile 
numActionTables 
getActionTable 
getActionContext 
numActionContexts 
executeAction 
saveKeyboardFile 
loadKeyboardFile 
getKeyboardFile 
numActionTables 
getActionTable 
getActionContext 
numActionContexts 
executeAction 
saveKeyboardFile 
loadKeyboardFile 
getKeyboardFile 
numActionTables 
getActionTable 
getActionContext 
numActionContexts 
1031 {
1033#ifndef NO_CUI // russom - 02/12/02
1037#endif // NO_CUI
1042 };

Member Function Documentation

◆ RegisterActionTable() [1/5]

virtual void RegisterActionTable ( ActionTable pTable)
pure virtual

Register an action table with the manager.

Note that plug-ins that expose their action tables via their ClassDesc::NumActionTables() method. do not need to register their action tables explicitly, as 3ds Max will do it for them. Also note that plug-ins do not need to unregister or destroy their action tables and action items, as 3ds Max will take care of this when it shuts down. Also note that an action table needs to be activated once registered. For more information see IActionManager::ActivateActionTable() See ClassDesc Action Table Methods.

Parameters
pTablePoints to the Action Table to register.

◆ NumActionTables() [1/5]

virtual int NumActionTables ( )
pure virtual

Returns the number of ActionTables.

◆ GetTable() [1/5]

virtual ActionTable * GetTable ( int  i)
pure virtual

Returns a pointer to the nth ActionTable.

Parameters
iThe zero based index of the table.

◆ ActivateActionTable() [1/5]

virtual int ActivateActionTable ( ActionCallback pCallback,
ActionTableId  id 
)
pure virtual

Activate the action table.

Action tables need to be activated by their owners. Some plug-ins (for instance Modifiers or Geometric Objects) may only want to activate the table when they are being edited in the command panel (between BeginEditParams() and EndEditParams()). Others, for instance Global Utility Plug-ins, may wish to do so when they are initially loaded so the actions are always available. Note that if this method is called multiple times, only the callback from the last call will be used.

Parameters
pCallbackPoints to the callback object which is responsible for executing the action.
idThis is the ID of the table to activate.
Returns
TRUE if the action table was activated. FALSE if the table is already active or doesn't exist.

◆ DeactivateActionTable() [1/5]

virtual int DeactivateActionTable ( ActionCallback pCallback,
ActionTableId  id 
)
pure virtual

Deactivates the action table.

After the table is deactivated (for example in EndEditParams()) the callback object can be deleted. Tables are initially active, please do not call this method without a preceding call to ActivateActionTable().

Parameters
pCallbackPoints to the callback object responsible for executing the action. Pass the same callback that was originally passed to ActivateActionTable() and do not set this to NULL.
idThe ID of the table to deactivate.
Returns
TRUE if the action table was deactivated. FALSE if the table was already deactivated or doesn't exist.

◆ FindTable() [1/5]

virtual ActionTable * FindTable ( ActionTableId  id)
pure virtual

Returns a pointer to an action table.

Parameters
idThe ID of the table to find.

◆ GetShortcutString() [1/5]

virtual BOOL GetShortcutString ( ActionTableId  tableId,
int  commandId,
MCHAR buf 
)
pure virtual

Retrieves the string that describes the keyboard shortcut for the specified ActionItem.

Parameters
tableIdThe ID of the action table.
commandIdThe ID of the command for the action.
[out]bufString to contain the retrieved text.
Returns
TRUE if found; FALSE if not found.

◆ GetActionDescription() [1/5]

virtual BOOL GetActionDescription ( ActionTableId  tableId,
int  commandId,
MCHAR buf 
)
pure virtual

Retrieves a string that describes the specified operation from the action table whose ID is passed.

Parameters
tableIdThe ID of the action table.
commandIdThe ID of the command.
bufPoints to storage for the description string. Note that buf's length must be 256, including space for the terminating null character.
Returns
TRUE if the string was returned; FALSE if not.

◆ RegisterActionContext() [1/5]

virtual BOOL RegisterActionContext ( ActionContextId  contextId,
const MCHAR pName 
)
pure virtual

Registers an action context.

This is called when you create the action table that uses this context.

Parameters
contextIdThe context ID.
pNameThe name for the action context.
Returns
If the specified action context is already registered FALSE is returned; otherwise TRUE is returned.

◆ NumActionContexts() [1/5]

virtual int NumActionContexts ( )
pure virtual

Returns the number of ActionContexts.

◆ GetActionContext() [1/5]

virtual ActionContext * GetActionContext ( int  i)
pure virtual

Returns a pointer to the nth ActionContext.

Parameters
iThe zero based index of the ActionContext.

◆ FindContext() [1/5]

virtual ActionContext * FindContext ( ActionContextId  contextId)
pure virtual

Returns a pointer to the specified ActionContext.

Parameters
contextIdThe ID of the context to find
Returns
A pointer to the ActionContext or NULL if it not found.

◆ IsContextActive() [1/5]

virtual BOOL IsContextActive ( ActionContextId  contextId)
pure virtual

Checks if an ActionContext is active or not.

Parameters
contextIdSpecifies the context to check.
Returns
Returns TRUE if the specified context is active; otherwise FALSE.

◆ IdToIndex() [1/5]

virtual int IdToIndex ( ActionTableId  id)
pure virtual

IDs for function published (Fps) methods and properties.

◆ SaveKeyboardFile() [1/5]

virtual BOOL SaveKeyboardFile ( const MCHAR pFileName)
pure virtual

Saves the current keyboard shortcut configuration into the given file name.

3ds Max 2020 Update 1 uses a new keyboard shortcut configuration system which uses a new file format to store the data. To support existing workflows the storage mechanism is able to save a shortcut set in both formats (legacy and new) depending on the file extension. When the file name has the .hsx file extension the shortcuts will be stored in the new format, where just the user customized shortcuts will be serialized. The newly stored shortcut file will become the current selected shortcut set, which is used on 3ds Max startup shortcut loading or when the Customize Shortcuts dialog is opened. When the file name has the legacy .kbdx file extension the shortcuts will be stored in the old format. The stored shortcut file will not become the current shortcut set.

Note
Support for the legacy kbdx file format will be deprecated with the next SDK version and only the new hsx format will be functional.
Parameters
pFileNameThe path of the file in which the keyboard shortcuts should be stored. The file must either have the new .hsx or the old .kbdx extension.
Returns
TRUE if the file could be successfully saved; FALSE if not.
See also
LoadKeyboardFile, GetKeyboardFile

◆ LoadKeyboardFile() [1/5]

virtual BOOL LoadKeyboardFile ( const MCHAR pFileName)
pure virtual

Loads a keyboard shortcut configuration from the specified file name.

3ds Max 2020 Update 1 uses a new keyboard shortcut configuration system which uses a new file format to store the data. To support existing workflows the loading mechanism is able to load a shortcut set in both formats (legacy and new) depending on the file extension. When the file name has the .hsx file extension the shortcuts will be loaded in the new format. The loaded shortcut file will become the current selected shortcut set, which is used on 3ds Max startup shortcut loading or when the Customize Shortcuts dialog is opened. When the file name has the legacy .kbdx file extension the shortcuts in the old format will be automatically converted to the new format and in the user customization folder a .hsx file with the same name will be generated. The generated hsx file will become the current active shortcut set. The conversion process will create a log file in the user customization folder when an error occurs.

Note
Support for the legacy kbdx file format will be deprecated with the next SDK version and only the new hsx format will be functional.
Parameters
pFileNameThe path of the file from which the keyboard shortcuts should be loaded. The file must either have the new .hsx or the old .kbdx extension.
Returns
TRUE if the file could be successfully loaded; FALSE if not.
See also
SaveKeyboardFile, GetKeyboardFile

◆ GetKeyboardFile() [1/5]

virtual const MCHAR * GetKeyboardFile ( )
pure virtual

Returns the full path to the current keyboard shortcuts file.

This can be a shortcut factory preset or a user customized shortcut set. The returned file will have the new .hsx file extension.

See also
LoadKeyboardFile, SaveKeyboardFile

◆ RegisterActionTable() [2/5]

virtual void RegisterActionTable ( ActionTable pTable)
pure virtual

Register an action table with the manager.

Note that plug-ins that expose their action tables via their ClassDesc::NumActionTables() method. do not need to register their action tables explicitly, as 3ds Max will do it for them. Also note that plug-ins do not need to unregister or destroy their action tables and action items, as 3ds Max will take care of this when it shuts down. Also note that an action table needs to be activated once registered. For more information see IActionManager::ActivateActionTable() See ClassDesc Action Table Methods.

Parameters
pTablePoints to the Action Table to register.

◆ NumActionTables() [2/5]

virtual int NumActionTables ( )
pure virtual

Returns the number of ActionTables.

◆ GetTable() [2/5]

virtual ActionTable * GetTable ( int  i)
pure virtual

Returns a pointer to the nth ActionTable.

Parameters
iThe zero based index of the table.

◆ ActivateActionTable() [2/5]

virtual int ActivateActionTable ( ActionCallback pCallback,
ActionTableId  id 
)
pure virtual

Activate the action table.

Action tables need to be activated by their owners. Some plug-ins (for instance Modifiers or Geometric Objects) may only want to activate the table when they are being edited in the command panel (between BeginEditParams() and EndEditParams()). Others, for instance Global Utility Plug-ins, may wish to do so when they are initially loaded so the actions are always available. Note that if this method is called multiple times, only the callback from the last call will be used.

Parameters
pCallbackPoints to the callback object which is responsible for executing the action.
idThis is the ID of the table to activate.
Returns
TRUE if the action table was activated. FALSE if the table is already active or doesn't exist.

◆ DeactivateActionTable() [2/5]

virtual int DeactivateActionTable ( ActionCallback pCallback,
ActionTableId  id 
)
pure virtual

Deactivates the action table.

After the table is deactivated (for example in EndEditParams()) the callback object can be deleted. Tables are initially active, please do not call this method without a preceding call to ActivateActionTable().

Parameters
pCallbackPoints to the callback object responsible for executing the action. Pass the same callback that was originally passed to ActivateActionTable() and do not set this to NULL.
idThe ID of the table to deactivate.
Returns
TRUE if the action table was deactivated. FALSE if the table was already deactivated or doesn't exist.

◆ FindTable() [2/5]

virtual ActionTable * FindTable ( ActionTableId  id)
pure virtual

Returns a pointer to an action table.

Parameters
idThe ID of the table to find.

◆ GetShortcutString() [2/5]

virtual BOOL GetShortcutString ( ActionTableId  tableId,
int  commandId,
MCHAR buf 
)
pure virtual

Retrieves the string that describes the keyboard shortcut for the specified ActionItem.

Parameters
tableIdThe ID of the action table.
commandIdThe ID of the command for the action.
[out]bufString to contain the retrieved text.
Returns
TRUE if found; FALSE if not found.

◆ GetActionDescription() [2/5]

virtual BOOL GetActionDescription ( ActionTableId  tableId,
int  commandId,
MCHAR buf 
)
pure virtual

Retrieves a string that describes the specified operation from the action table whose ID is passed.

Parameters
tableIdThe ID of the action table.
commandIdThe ID of the command.
bufPoints to storage for the description string. Note that buf's length must be 256, including space for the terminating null character.
Returns
TRUE if the string was returned; FALSE if not.

◆ RegisterActionContext() [2/5]

virtual BOOL RegisterActionContext ( ActionContextId  contextId,
const MCHAR pName 
)
pure virtual

Registers an action context.

This is called when you create the action table that uses this context.

Parameters
contextIdThe context ID.
pNameThe name for the action context.
Returns
If the specified action context is already registered FALSE is returned; otherwise TRUE is returned.

◆ NumActionContexts() [2/5]

virtual int NumActionContexts ( )
pure virtual

Returns the number of ActionContexts.

◆ GetActionContext() [2/5]

virtual ActionContext * GetActionContext ( int  i)
pure virtual

Returns a pointer to the nth ActionContext.

Parameters
iThe zero based index of the ActionContext.

◆ FindContext() [2/5]

virtual ActionContext * FindContext ( ActionContextId  contextId)
pure virtual

Returns a pointer to the specified ActionContext.

Parameters
contextIdThe ID of the context to find
Returns
A pointer to the ActionContext or NULL if it not found.

◆ IsContextActive() [2/5]

virtual BOOL IsContextActive ( ActionContextId  contextId)
pure virtual

Checks if an ActionContext is active or not.

Parameters
contextIdSpecifies the context to check.
Returns
Returns TRUE if the specified context is active; otherwise FALSE.

◆ IdToIndex() [2/5]

virtual int IdToIndex ( ActionTableId  id)
pure virtual

IDs for function published (Fps) methods and properties.

◆ SaveKeyboardFile() [2/5]

virtual BOOL SaveKeyboardFile ( const MCHAR pFileName)
pure virtual

Saves the current keyboard shortcut configuration into the given file name.

3ds Max 2020 Update 1 uses a new keyboard shortcut configuration system which uses a new file format to store the data. To support existing workflows the storage mechanism is able to save a shortcut set in both formats (legacy and new) depending on the file extension. When the file name has the .hsx file extension the shortcuts will be stored in the new format, where just the user customized shortcuts will be serialized. The newly stored shortcut file will become the current selected shortcut set, which is used on 3ds Max startup shortcut loading or when the Customize Shortcuts dialog is opened. When the file name has the legacy .kbdx file extension the shortcuts will be stored in the old format. The stored shortcut file will not become the current shortcut set.

Note
Support for the legacy kbdx file format will be deprecated with the next SDK version and only the new hsx format will be functional.
Parameters
pFileNameThe path of the file in which the keyboard shortcuts should be stored. The file must either have the new .hsx or the old .kbdx extension.
Returns
TRUE if the file could be successfully saved; FALSE if not.
See also
LoadKeyboardFile, GetKeyboardFile

◆ LoadKeyboardFile() [2/5]

virtual BOOL LoadKeyboardFile ( const MCHAR pFileName)
pure virtual

Loads a keyboard shortcut configuration from the specified file name.

3ds Max 2020 Update 1 uses a new keyboard shortcut configuration system which uses a new file format to store the data. To support existing workflows the loading mechanism is able to load a shortcut set in both formats (legacy and new) depending on the file extension. When the file name has the .hsx file extension the shortcuts will be loaded in the new format. The loaded shortcut file will become the current selected shortcut set, which is used on 3ds Max startup shortcut loading or when the Customize Shortcuts dialog is opened. When the file name has the legacy .kbdx file extension the shortcuts in the old format will be automatically converted to the new format and in the user customization folder a .hsx file with the same name will be generated. The generated hsx file will become the current active shortcut set. The conversion process will create a log file in the user customization folder when an error occurs.

Note
Support for the legacy kbdx file format will be deprecated with the next SDK version and only the new hsx format will be functional.
Parameters
pFileNameThe path of the file from which the keyboard shortcuts should be loaded. The file must either have the new .hsx or the old .kbdx extension.
Returns
TRUE if the file could be successfully loaded; FALSE if not.
See also
SaveKeyboardFile, GetKeyboardFile

◆ GetKeyboardFile() [2/5]

virtual const MCHAR * GetKeyboardFile ( )
pure virtual

Returns the full path to the current keyboard shortcuts file.

This can be a shortcut factory preset or a user customized shortcut set. The returned file will have the new .hsx file extension.

See also
LoadKeyboardFile, SaveKeyboardFile

◆ RegisterActionTable() [3/5]

virtual void RegisterActionTable ( ActionTable pTable)
pure virtual

Register an action table with the manager.

Note that plug-ins that expose their action tables via their ClassDesc::NumActionTables() method. do not need to register their action tables explicitly, as 3ds Max will do it for them. Also note that plug-ins do not need to unregister or destroy their action tables and action items, as 3ds Max will take care of this when it shuts down. Also note that an action table needs to be activated once registered. For more information see IActionManager::ActivateActionTable() See ClassDesc Action Table Methods.

Parameters
pTablePoints to the Action Table to register.

◆ NumActionTables() [3/5]

virtual int NumActionTables ( )
pure virtual

Returns the number of ActionTables.

◆ GetTable() [3/5]

virtual ActionTable * GetTable ( int  i)
pure virtual

Returns a pointer to the nth ActionTable.

Parameters
iThe zero based index of the table.

◆ ActivateActionTable() [3/5]

virtual int ActivateActionTable ( ActionCallback pCallback,
ActionTableId  id 
)
pure virtual

Activate the action table.

Action tables need to be activated by their owners. Some plug-ins (for instance Modifiers or Geometric Objects) may only want to activate the table when they are being edited in the command panel (between BeginEditParams() and EndEditParams()). Others, for instance Global Utility Plug-ins, may wish to do so when they are initially loaded so the actions are always available. Note that if this method is called multiple times, only the callback from the last call will be used.

Parameters
pCallbackPoints to the callback object which is responsible for executing the action.
idThis is the ID of the table to activate.
Returns
TRUE if the action table was activated. FALSE if the table is already active or doesn't exist.

◆ DeactivateActionTable() [3/5]

virtual int DeactivateActionTable ( ActionCallback pCallback,
ActionTableId  id 
)
pure virtual

Deactivates the action table.

After the table is deactivated (for example in EndEditParams()) the callback object can be deleted. Tables are initially active, please do not call this method without a preceding call to ActivateActionTable().

Parameters
pCallbackPoints to the callback object responsible for executing the action. Pass the same callback that was originally passed to ActivateActionTable() and do not set this to NULL.
idThe ID of the table to deactivate.
Returns
TRUE if the action table was deactivated. FALSE if the table was already deactivated or doesn't exist.

◆ FindTable() [3/5]

virtual ActionTable * FindTable ( ActionTableId  id)
pure virtual

Returns a pointer to an action table.

Parameters
idThe ID of the table to find.

◆ GetShortcutString() [3/5]

virtual BOOL GetShortcutString ( ActionTableId  tableId,
int  commandId,
MCHAR buf 
)
pure virtual

Retrieves the string that describes the keyboard shortcut for the specified ActionItem.

Parameters
tableIdThe ID of the action table.
commandIdThe ID of the command for the action.
[out]bufString to contain the retrieved text.
Returns
TRUE if found; FALSE if not found.

◆ GetActionDescription() [3/5]

virtual BOOL GetActionDescription ( ActionTableId  tableId,
int  commandId,
MCHAR buf 
)
pure virtual

Retrieves a string that describes the specified operation from the action table whose ID is passed.

Parameters
tableIdThe ID of the action table.
commandIdThe ID of the command.
bufPoints to storage for the description string. Note that buf's length must be 256, including space for the terminating null character.
Returns
TRUE if the string was returned; FALSE if not.

◆ RegisterActionContext() [3/5]

virtual BOOL RegisterActionContext ( ActionContextId  contextId,
const MCHAR pName 
)
pure virtual

Registers an action context.

This is called when you create the action table that uses this context.

Parameters
contextIdThe context ID.
pNameThe name for the action context.
Returns
If the specified action context is already registered FALSE is returned; otherwise TRUE is returned.

◆ NumActionContexts() [3/5]

virtual int NumActionContexts ( )
pure virtual

Returns the number of ActionContexts.

◆ GetActionContext() [3/5]

virtual ActionContext * GetActionContext ( int  i)
pure virtual

Returns a pointer to the nth ActionContext.

Parameters
iThe zero based index of the ActionContext.

◆ FindContext() [3/5]

virtual ActionContext * FindContext ( ActionContextId  contextId)
pure virtual

Returns a pointer to the specified ActionContext.

Parameters
contextIdThe ID of the context to find
Returns
A pointer to the ActionContext or NULL if it not found.

◆ IsContextActive() [3/5]

virtual BOOL IsContextActive ( ActionContextId  contextId)
pure virtual

Checks if an ActionContext is active or not.

Parameters
contextIdSpecifies the context to check.
Returns
Returns TRUE if the specified context is active; otherwise FALSE.

◆ IdToIndex() [3/5]

virtual int IdToIndex ( ActionTableId  id)
pure virtual

IDs for function published (Fps) methods and properties.

◆ SaveKeyboardFile() [3/5]

virtual BOOL SaveKeyboardFile ( const MCHAR pFileName)
pure virtual

Saves the current keyboard shortcut configuration into the given file name.

3ds Max 2020 Update 1 uses a new keyboard shortcut configuration system which uses a new file format to store the data. To support existing workflows the storage mechanism is able to save a shortcut set in both formats (legacy and new) depending on the file extension. When the file name has the .hsx file extension the shortcuts will be stored in the new format, where just the user customized shortcuts will be serialized. The newly stored shortcut file will become the current selected shortcut set, which is used on 3ds Max startup shortcut loading or when the Customize Shortcuts dialog is opened. When the file name has the legacy .kbdx file extension the shortcuts will be stored in the old format. The stored shortcut file will not become the current shortcut set.

Note
Support for the legacy kbdx file format will be deprecated with the next SDK version and only the new hsx format will be functional.
Parameters
pFileNameThe path of the file in which the keyboard shortcuts should be stored. The file must either have the new .hsx or the old .kbdx extension.
Returns
TRUE if the file could be successfully saved; FALSE if not.
See also
LoadKeyboardFile, GetKeyboardFile

◆ LoadKeyboardFile() [3/5]

virtual BOOL LoadKeyboardFile ( const MCHAR pFileName)
pure virtual

Loads a keyboard shortcut configuration from the specified file name.

3ds Max 2020 Update 1 uses a new keyboard shortcut configuration system which uses a new file format to store the data. To support existing workflows the loading mechanism is able to load a shortcut set in both formats (legacy and new) depending on the file extension. When the file name has the .hsx file extension the shortcuts will be loaded in the new format. The loaded shortcut file will become the current selected shortcut set, which is used on 3ds Max startup shortcut loading or when the Customize Shortcuts dialog is opened. When the file name has the legacy .kbdx file extension the shortcuts in the old format will be automatically converted to the new format and in the user customization folder a .hsx file with the same name will be generated. The generated hsx file will become the current active shortcut set. The conversion process will create a log file in the user customization folder when an error occurs.

Note
Support for the legacy kbdx file format will be deprecated with the next SDK version and only the new hsx format will be functional.
Parameters
pFileNameThe path of the file from which the keyboard shortcuts should be loaded. The file must either have the new .hsx or the old .kbdx extension.
Returns
TRUE if the file could be successfully loaded; FALSE if not.
See also
SaveKeyboardFile, GetKeyboardFile

◆ GetKeyboardFile() [3/5]

virtual const MCHAR * GetKeyboardFile ( )
pure virtual

Returns the full path to the current keyboard shortcuts file.

This can be a shortcut factory preset or a user customized shortcut set. The returned file will have the new .hsx file extension.

See also
LoadKeyboardFile, SaveKeyboardFile

◆ RegisterActionTable() [4/5]

virtual void RegisterActionTable ( ActionTable pTable)
pure virtual

Register an action table with the manager.

Note that plug-ins that expose their action tables via their ClassDesc::NumActionTables() method. do not need to register their action tables explicitly, as 3ds Max will do it for them. Also note that plug-ins do not need to unregister or destroy their action tables and action items, as 3ds Max will take care of this when it shuts down. Also note that an action table needs to be activated once registered. For more information see IActionManager::ActivateActionTable() See ClassDesc Action Table Methods.

Parameters
pTablePoints to the Action Table to register.

◆ NumActionTables() [4/5]

virtual int NumActionTables ( )
pure virtual

Returns the number of ActionTables.

◆ GetTable() [4/5]

virtual ActionTable * GetTable ( int  i)
pure virtual

Returns a pointer to the nth ActionTable.

Parameters
iThe zero based index of the table.

◆ ActivateActionTable() [4/5]

virtual int ActivateActionTable ( ActionCallback pCallback,
ActionTableId  id 
)
pure virtual

Activate the action table.

Action tables need to be activated by their owners. Some plug-ins (for instance Modifiers or Geometric Objects) may only want to activate the table when they are being edited in the command panel (between BeginEditParams() and EndEditParams()). Others, for instance Global Utility Plug-ins, may wish to do so when they are initially loaded so the actions are always available. Note that if this method is called multiple times, only the callback from the last call will be used.

Parameters
pCallbackPoints to the callback object which is responsible for executing the action.
idThis is the ID of the table to activate.
Returns
TRUE if the action table was activated. FALSE if the table is already active or doesn't exist.

◆ DeactivateActionTable() [4/5]

virtual int DeactivateActionTable ( ActionCallback pCallback,
ActionTableId  id 
)
pure virtual

Deactivates the action table.

After the table is deactivated (for example in EndEditParams()) the callback object can be deleted. Tables are initially active, please do not call this method without a preceding call to ActivateActionTable().

Parameters
pCallbackPoints to the callback object responsible for executing the action. Pass the same callback that was originally passed to ActivateActionTable() and do not set this to NULL.
idThe ID of the table to deactivate.
Returns
TRUE if the action table was deactivated. FALSE if the table was already deactivated or doesn't exist.

◆ FindTable() [4/5]

virtual ActionTable * FindTable ( ActionTableId  id)
pure virtual

Returns a pointer to an action table.

Parameters
idThe ID of the table to find.

◆ GetShortcutString() [4/5]

virtual BOOL GetShortcutString ( ActionTableId  tableId,
int  commandId,
MCHAR buf 
)
pure virtual

Retrieves the string that describes the keyboard shortcut for the specified ActionItem.

Parameters
tableIdThe ID of the action table.
commandIdThe ID of the command for the action.
[out]bufString to contain the retrieved text.
Returns
TRUE if found; FALSE if not found.

◆ GetActionDescription() [4/5]

virtual BOOL GetActionDescription ( ActionTableId  tableId,
int  commandId,
MCHAR buf 
)
pure virtual

Retrieves a string that describes the specified operation from the action table whose ID is passed.

Parameters
tableIdThe ID of the action table.
commandIdThe ID of the command.
bufPoints to storage for the description string. Note that buf's length must be 256, including space for the terminating null character.
Returns
TRUE if the string was returned; FALSE if not.

◆ RegisterActionContext() [4/5]

virtual BOOL RegisterActionContext ( ActionContextId  contextId,
const MCHAR pName 
)
pure virtual

Registers an action context.

This is called when you create the action table that uses this context.

Parameters
contextIdThe context ID.
pNameThe name for the action context.
Returns
If the specified action context is already registered FALSE is returned; otherwise TRUE is returned.

◆ NumActionContexts() [4/5]

virtual int NumActionContexts ( )
pure virtual

Returns the number of ActionContexts.

◆ GetActionContext() [4/5]

virtual ActionContext * GetActionContext ( int  i)
pure virtual

Returns a pointer to the nth ActionContext.

Parameters
iThe zero based index of the ActionContext.

◆ FindContext() [4/5]

virtual ActionContext * FindContext ( ActionContextId  contextId)
pure virtual

Returns a pointer to the specified ActionContext.

Parameters
contextIdThe ID of the context to find
Returns
A pointer to the ActionContext or NULL if it not found.

◆ IsContextActive() [4/5]

virtual BOOL IsContextActive ( ActionContextId  contextId)
pure virtual

Checks if an ActionContext is active or not.

Parameters
contextIdSpecifies the context to check.
Returns
Returns TRUE if the specified context is active; otherwise FALSE.

◆ IdToIndex() [4/5]

virtual int IdToIndex ( ActionTableId  id)
pure virtual

IDs for function published (Fps) methods and properties.

◆ SaveKeyboardFile() [4/5]

virtual BOOL SaveKeyboardFile ( const MCHAR pFileName)
pure virtual

Saves the current keyboard shortcut configuration into the given file name.

3ds Max 2020 Update 1 uses a new keyboard shortcut configuration system which uses a new file format to store the data. To support existing workflows the storage mechanism is able to save a shortcut set in both formats (legacy and new) depending on the file extension. When the file name has the .hsx file extension the shortcuts will be stored in the new format, where just the user customized shortcuts will be serialized. The newly stored shortcut file will become the current selected shortcut set, which is used on 3ds Max startup shortcut loading or when the Customize Shortcuts dialog is opened. When the file name has the legacy .kbdx file extension the shortcuts will be stored in the old format. The stored shortcut file will not become the current shortcut set.

Note
Support for the legacy kbdx file format will be deprecated with the next SDK version and only the new hsx format will be functional.
Parameters
pFileNameThe path of the file in which the keyboard shortcuts should be stored. The file must either have the new .hsx or the old .kbdx extension.
Returns
TRUE if the file could be successfully saved; FALSE if not.
See also
LoadKeyboardFile, GetKeyboardFile

◆ LoadKeyboardFile() [4/5]

virtual BOOL LoadKeyboardFile ( const MCHAR pFileName)
pure virtual

Loads a keyboard shortcut configuration from the specified file name.

3ds Max 2020 Update 1 uses a new keyboard shortcut configuration system which uses a new file format to store the data. To support existing workflows the loading mechanism is able to load a shortcut set in both formats (legacy and new) depending on the file extension. When the file name has the .hsx file extension the shortcuts will be loaded in the new format. The loaded shortcut file will become the current selected shortcut set, which is used on 3ds Max startup shortcut loading or when the Customize Shortcuts dialog is opened. When the file name has the legacy .kbdx file extension the shortcuts in the old format will be automatically converted to the new format and in the user customization folder a .hsx file with the same name will be generated. The generated hsx file will become the current active shortcut set. The conversion process will create a log file in the user customization folder when an error occurs.

Note
Support for the legacy kbdx file format will be deprecated with the next SDK version and only the new hsx format will be functional.
Parameters
pFileNameThe path of the file from which the keyboard shortcuts should be loaded. The file must either have the new .hsx or the old .kbdx extension.
Returns
TRUE if the file could be successfully loaded; FALSE if not.
See also
SaveKeyboardFile, GetKeyboardFile

◆ GetKeyboardFile() [4/5]

virtual const MCHAR * GetKeyboardFile ( )
pure virtual

Returns the full path to the current keyboard shortcuts file.

This can be a shortcut factory preset or a user customized shortcut set. The returned file will have the new .hsx file extension.

See also
LoadKeyboardFile, SaveKeyboardFile

◆ RegisterActionTable() [5/5]

virtual void RegisterActionTable ( ActionTable pTable)
pure virtual

Register an action table with the manager.

Note that plug-ins that expose their action tables via their ClassDesc::NumActionTables() method. do not need to register their action tables explicitly, as 3ds Max will do it for them. Also note that plug-ins do not need to unregister or destroy their action tables and action items, as 3ds Max will take care of this when it shuts down. Also note that an action table needs to be activated once registered. For more information see IActionManager::ActivateActionTable() See ClassDesc Action Table Methods.

Parameters
pTablePoints to the Action Table to register.

◆ NumActionTables() [5/5]

virtual int NumActionTables ( )
pure virtual

Returns the number of ActionTables.

◆ GetTable() [5/5]

virtual ActionTable * GetTable ( int  i)
pure virtual

Returns a pointer to the nth ActionTable.

Parameters
iThe zero based index of the table.

◆ ActivateActionTable() [5/5]

virtual int ActivateActionTable ( ActionCallback pCallback,
ActionTableId  id 
)
pure virtual

Activate the action table.

Action tables need to be activated by their owners. Some plug-ins (for instance Modifiers or Geometric Objects) may only want to activate the table when they are being edited in the command panel (between BeginEditParams() and EndEditParams()). Others, for instance Global Utility Plug-ins, may wish to do so when they are initially loaded so the actions are always available. Note that if this method is called multiple times, only the callback from the last call will be used.

Parameters
pCallbackPoints to the callback object which is responsible for executing the action.
idThis is the ID of the table to activate.
Returns
TRUE if the action table was activated. FALSE if the table is already active or doesn't exist.

◆ DeactivateActionTable() [5/5]

virtual int DeactivateActionTable ( ActionCallback pCallback,
ActionTableId  id 
)
pure virtual

Deactivates the action table.

After the table is deactivated (for example in EndEditParams()) the callback object can be deleted. Tables are initially active, please do not call this method without a preceding call to ActivateActionTable().

Parameters
pCallbackPoints to the callback object responsible for executing the action. Pass the same callback that was originally passed to ActivateActionTable() and do not set this to NULL.
idThe ID of the table to deactivate.
Returns
TRUE if the action table was deactivated. FALSE if the table was already deactivated or doesn't exist.

◆ FindTable() [5/5]

virtual ActionTable * FindTable ( ActionTableId  id)
pure virtual

Returns a pointer to an action table.

Parameters
idThe ID of the table to find.

◆ GetShortcutString() [5/5]

virtual BOOL GetShortcutString ( ActionTableId  tableId,
int  commandId,
MCHAR buf 
)
pure virtual

Retrieves the string that describes the keyboard shortcut for the specified ActionItem.

Parameters
tableIdThe ID of the action table.
commandIdThe ID of the command for the action.
[out]bufString to contain the retrieved text.
Returns
TRUE if found; FALSE if not found.

◆ GetActionDescription() [5/5]

virtual BOOL GetActionDescription ( ActionTableId  tableId,
int  commandId,
MCHAR buf 
)
pure virtual

Retrieves a string that describes the specified operation from the action table whose ID is passed.

Parameters
tableIdThe ID of the action table.
commandIdThe ID of the command.
bufPoints to storage for the description string. Note that buf's length must be 256, including space for the terminating null character.
Returns
TRUE if the string was returned; FALSE if not.

◆ RegisterActionContext() [5/5]

virtual BOOL RegisterActionContext ( ActionContextId  contextId,
const MCHAR pName 
)
pure virtual

Registers an action context.

This is called when you create the action table that uses this context.

Parameters
contextIdThe context ID.
pNameThe name for the action context.
Returns
If the specified action context is already registered FALSE is returned; otherwise TRUE is returned.

◆ NumActionContexts() [5/5]

virtual int NumActionContexts ( )
pure virtual

Returns the number of ActionContexts.

◆ GetActionContext() [5/5]

virtual ActionContext * GetActionContext ( int  i)
pure virtual

Returns a pointer to the nth ActionContext.

Parameters
iThe zero based index of the ActionContext.

◆ FindContext() [5/5]

virtual ActionContext * FindContext ( ActionContextId  contextId)
pure virtual

Returns a pointer to the specified ActionContext.

Parameters
contextIdThe ID of the context to find
Returns
A pointer to the ActionContext or NULL if it not found.

◆ IsContextActive() [5/5]

virtual BOOL IsContextActive ( ActionContextId  contextId)
pure virtual

Checks if an ActionContext is active or not.

Parameters
contextIdSpecifies the context to check.
Returns
Returns TRUE if the specified context is active; otherwise FALSE.

◆ IdToIndex() [5/5]

virtual int IdToIndex ( ActionTableId  id)
pure virtual

IDs for function published (Fps) methods and properties.

◆ SaveKeyboardFile() [5/5]

virtual BOOL SaveKeyboardFile ( const MCHAR pFileName)
pure virtual

Saves the current keyboard shortcut configuration into the given file name.

3ds Max 2020 Update 1 uses a new keyboard shortcut configuration system which uses a new file format to store the data. To support existing workflows the storage mechanism is able to save a shortcut set in both formats (legacy and new) depending on the file extension. When the file name has the .hsx file extension the shortcuts will be stored in the new format, where just the user customized shortcuts will be serialized. The newly stored shortcut file will become the current selected shortcut set, which is used on 3ds Max startup shortcut loading or when the Customize Shortcuts dialog is opened. When the file name has the legacy .kbdx file extension the shortcuts will be stored in the old format. The stored shortcut file will not become the current shortcut set.

Note
Support for the legacy kbdx file format will be deprecated with the next SDK version and only the new hsx format will be functional.
Parameters
pFileNameThe path of the file in which the keyboard shortcuts should be stored. The file must either have the new .hsx or the old .kbdx extension.
Returns
TRUE if the file could be successfully saved; FALSE if not.
See also
LoadKeyboardFile, GetKeyboardFile

◆ LoadKeyboardFile() [5/5]

virtual BOOL LoadKeyboardFile ( const MCHAR pFileName)
pure virtual

Loads a keyboard shortcut configuration from the specified file name.

3ds Max 2020 Update 1 uses a new keyboard shortcut configuration system which uses a new file format to store the data. To support existing workflows the loading mechanism is able to load a shortcut set in both formats (legacy and new) depending on the file extension. When the file name has the .hsx file extension the shortcuts will be loaded in the new format. The loaded shortcut file will become the current selected shortcut set, which is used on 3ds Max startup shortcut loading or when the Customize Shortcuts dialog is opened. When the file name has the legacy .kbdx file extension the shortcuts in the old format will be automatically converted to the new format and in the user customization folder a .hsx file with the same name will be generated. The generated hsx file will become the current active shortcut set. The conversion process will create a log file in the user customization folder when an error occurs.

Note
Support for the legacy kbdx file format will be deprecated with the next SDK version and only the new hsx format will be functional.
Parameters
pFileNameThe path of the file from which the keyboard shortcuts should be loaded. The file must either have the new .hsx or the old .kbdx extension.
Returns
TRUE if the file could be successfully loaded; FALSE if not.
See also
SaveKeyboardFile, GetKeyboardFile

◆ GetKeyboardFile() [5/5]

virtual const MCHAR * GetKeyboardFile ( )
pure virtual

Returns the full path to the current keyboard shortcuts file.

This can be a shortcut factory preset or a user customized shortcut set. The returned file will have the new .hsx file extension.

See also
LoadKeyboardFile, SaveKeyboardFile