The Default Action System interface.
This interface allows for associating default actions to be taken by the system (3ds Max) when certain predefined events occur, and managing these associations. Note that the default actions are carried out only when the system is runing in quiet mode, i.e. no dialogs are displayed.
#include <DefaultActions.H>
Public Member Functions |
|
virtual BOOL | GetAction (DWORD eventID, DWORD &action)=0 |
Retrieves the action associated with an
event. |
|
virtual BOOL | SetAction (DWORD eventID, DWORD action, MCHAR *title=NULL, DWORD *oldAction=NULL)=0 |
Sets the default action and descriptive
title for an event. |
|
virtual BOOL | DeleteAction (DWORD eventID)=0 |
Deletes the specified default action event.
|
|
virtual int | GetActionCount ()=0 |
Retrieves the number of events registered
with the Default Action System. |
|
virtual MSTR | GetActionTitle (DWORD eventID)=0 |
Retrieves the title of the specified event.
|
|
virtual MSTR | GetActionTitleByIndex (int index)=0 |
Retrieves the title of an event specified by
its index in the Default Action System. |
|
virtual DWORD | GetActionIDByIndex (int index)=0 |
Retrieves the id of an event specified by
its index in the Default Action System. |
|
virtual BOOL | LogEntry (DWORD eventID, MCHAR *message)=0 |
Logs a message for the specified event.
|
|
virtual void | MsgLogClear (DWORD eventID)=0 |
Clears logged messages. |
|
virtual int | GetMsgLogCount (DWORD eventID)=0 |
Retrieves the number of logged messages.
|
|
virtual MSTR | GetMsgLogMsg (DWORD eventID, int index)=0 |
Retrives a specified logged message.
|
|
virtual DWORD | GetMsgLogID (int index)=0 |
Retrieves the event for a logged message.
|
|
virtual int | SetMsgLogMaxCount (int count)=0 |
Sets the total maximum number of messages
that can be logged with the Default Action Sustem. |
virtual BOOL GetAction | ( | DWORD | eventID, |
DWORD & | action | ||
) | [pure virtual] |
Retrieves the action associated with an event.
[in] | eventID | Identifier of a predefined event or a user defined one. |
[out] | action | If an action was specified for the given event, it is returned through this argument. The default action value for events which have not had an action set is DEFAULTACTIONS_LOGTOFILE The returned value can be a combination of the following predefined actions |
virtual BOOL SetAction | ( | DWORD | eventID, |
DWORD | action, | ||
MCHAR * | title = NULL , |
||
DWORD * | oldAction =
NULL |
||
) | [pure virtual] |
Sets the default action and descriptive title for an event.
[in] | eventID | Identifier of a predefined event or a user defined one. |
[in] | action | The actions to be taken when the specified event occurs. |
[in] | title | The event's title. Appears in the log file or dialog displaying the messages associated with the event. |
[in,out] | oldAction | The old action value can be returned via this argument |
virtual BOOL DeleteAction | ( | DWORD | eventID | ) | [pure virtual] |
Deletes the specified default action event.
[in] | eventID | Identifier of a predefined event or a user defined one. |
virtual int GetActionCount | ( | ) | [pure virtual] |
Retrieves the number of events registered with the Default Action System.
virtual MSTR GetActionTitle | ( | DWORD | eventID | ) | [pure virtual] |
Retrieves the title of the specified event.
[in] | eventID | Identifier of a predefined event or a user defined one. |
virtual MSTR GetActionTitleByIndex | ( | int | index | ) | [pure virtual] |
Retrieves the title of an event specified by its index in the Default Action System.
[in] | index | The index of an event registered with the Default Action System |
virtual DWORD GetActionIDByIndex | ( | int | index | ) | [pure virtual] |
Retrieves the id of an event specified by its index in the Default Action System.
[in] | index | The index of an event registered with the Default Action System |
virtual BOOL LogEntry | ( | DWORD | eventID, |
MCHAR * | message | ||
) | [pure virtual] |
Logs a message for the specified event.
[in] | eventID | Identifier of a predefined event or a user defined one |
[in] | message | The message to log for the specified event. The message is kept within the Defautl Action System. Use GetMsgLogMsg to retrieve messages logged for an event. |
virtual void MsgLogClear | ( | DWORD | eventID | ) | [pure virtual] |
Clears logged messages.
[in] | eventID | Identifier of a predefined or a user defined event. If eventID is 0, all messages are deleted, otherwise only messages for the specific event are deleted. |
virtual int GetMsgLogCount | ( | DWORD | eventID | ) | [pure virtual] |
Retrieves the number of logged messages.
[in] | eventID | Identifier of a predefined or a user defined event. If eventID is 0, all messages are counted, otherwise only messages for the specific event are counted. |
virtual MSTR GetMsgLogMsg | ( | DWORD | eventID, |
int | index | ||
) | [pure virtual] |
Retrives a specified logged message.
[in] | eventID | Identifier of a predefined or a user defined event. |
[in] | index | The index of a logged message to be retrieved. |
virtual DWORD GetMsgLogID | ( | int | index | ) | [pure virtual] |
Retrieves the event for a logged message.
[in] | index | The index of a message logged with the Default Action System. |
virtual int SetMsgLogMaxCount | ( | int | count | ) | [pure virtual] |
Sets the total maximum number of messages that can be logged with the Default Action Sustem.
[in] | count | The maximum number of messages that can be logged. |