Public Member Functions | |
| HRESULT | ExecuteTool ([in] IRsTool *pTool,[in] RtMouseEvent *pMouseEvent,[in] IRsNode *pViewNode) |
| HRESULT | GetAttachedTool ([in] RtMouseEvent *pMouseEvent,[in] IRsNode *pViewNode,[out, retval] IRsTool **ppTool) |
| HRESULT | AttachToWindow ([in]IRsNode *pViewNode) |
| HRESULT | DetachFromWindow ([in]IRsNode *pViewNode) |
| HRESULT | OnFocusLost () |
| HRESULT | OnFocus () |
| HRESULT | ActivateToolPersistent ([in] IRsTool *pTool) |
| HRESULT | DeactivateToolPersistent ([in] IRsTool *pTool) |
| HRESULT | ActivateToolById ([in] CLSID gToolId) |
| HRESULT | DeactivateToolById ([in] CLSID gToolId) |
| HRESULT | GetActiveToolId ([in] CLSID *pToolId) |
| HRESULT | GetActiveTool ([out, retval] IRsTool **ppTool) |
| HRESULT | Initialize () |
| HRESULT | Destroy (void) |
| HRESULT | AddHook ([in] IRsToolManagerHook *pHook) |
| HRESULT | RemoveHook ([in] IRsToolManagerHook *pHook) |
| HRESULT | MoveToTop (IRsTool *pTool) |
| HRESULT | GetToolsCount (RtUlong *pdwCnt) |
| HRESULT | GetToolId (RtUlong dwId, GUID *pGuid) |
| HRESULT | DeactivateToolGroup ([in] GUID *pgId) |
| HRESULT IRsToolManager::ExecuteTool | ( | [in] IRsTool * | pTool, | |
| [in] RtMouseEvent * | pMouseEvent, | |||
| [in] IRsNode * | pViewNode | |||
| ) |
Called by IRsSysToolManager to execute specified tool.
| pTool | [in] Tool to execute (must be registered in tool manager tools). | |
| pMouseEvent | [in] Mouse event to pass to tool. | |
| pViewNode | [in] Registered view node. |
| HRESULT IRsToolManager::GetAttachedTool | ( | [in] RtMouseEvent * | pMouseEvent, | |
| [in] IRsNode * | pViewNode, | |||
| [out, retval] IRsTool ** | ppTool | |||
| ) |
Get attached tool according to provided mouse tool ID and internal tool manager state machine and priorities.
| pMouseEvent | [in] Mouse event for which tool is searched. | |
| pViewNode | [in] Active view node. |
S_OK if succeeded.
| HRESULT IRsToolManager::AttachToWindow | ( | [in] IRsNode * | pViewNode | ) |
Attach view node to this tool manager.
| pViewNode | [in] View node to attach. |
| HRESULT IRsToolManager::DetachFromWindow | ( | [in] IRsNode * | pViewNode | ) |
Dettach view node to this tool manager.
| pViewNode | [in] View node to attach. |
| HRESULT IRsToolManager::OnFocusLost | ( | ) |
Call if tool manager lost focus (eg. focus was changed to different window).
| gToolId | Tool class ID to remove. |
| HRESULT IRsToolManager::OnFocus | ( | ) |
Call if tool manager is focused (eg. window that uses this tool manager received focus).
| gToolId | Tool class ID to remove. |
| HRESULT IRsToolManager::ActivateToolPersistent | ( | [in] IRsTool * | pTool | ) |
Add persistent tool into tool manager's tools list.
| pTool | [in] Tool to add. |
| HRESULT IRsToolManager::DeactivateToolPersistent | ( | [in] IRsTool * | pTool | ) |
Remove persistent tool from tool manager's tools list.
| pTool | [in] Tool to remove. |
| HRESULT IRsToolManager::ActivateToolById | ( | [in] CLSID | gToolId | ) |
Add tool specified by class id into tool manager's tools list.
| gToolId | [in] Tool class ID to add. |
| HRESULT IRsToolManager::DeactivateToolById | ( | [in] CLSID | gToolId | ) |
Remove tool specified by class ID from tool manager.
| gToolId | [in] Tool class ID to remove. |
| HRESULT IRsToolManager::GetActiveToolId | ( | [in] CLSID * | pToolId | ) |
Return class id of active tool.
| pToolId | [in] Tool class ID. |
| HRESULT IRsToolManager::GetActiveTool | ( | [out, retval] IRsTool ** | ppTool | ) |
Return interface to active tool.
S_OK if succeeded.
| HRESULT IRsToolManager::Initialize | ( | ) |
Initialize tool manager.
| HRESULT IRsToolManager::Destroy | ( | void | ) |
Uninitialize tool manager and release all references to external objects.
| HRESULT IRsToolManager::AddHook | ( | [in] IRsToolManagerHook * | pHook | ) |
Register tool manager hook.
| pHook | [in] Hook pointer to add to list of hooks. |
| HRESULT IRsToolManager::RemoveHook | ( | [in] IRsToolManagerHook * | pHook | ) |
Remove registered tool manager hook.
| pHook | [in] Hook pointer to unregister. |
| HRESULT IRsToolManager::MoveToTop | ( | IRsTool * | pTool | ) |
Move specified tool to top of tool managers tools queue.
| pTool | Pointer to tool to move to top. |
| HRESULT IRsToolManager::GetToolsCount | ( | RtUlong * | pdwCnt | ) |
Get number of tools in tool manager queue.
| pdwCnt | Number of tools registered in tool manager. |
| HRESULT IRsToolManager::GetToolId | ( | RtUlong | dwId, | |
| GUID * | pGuid | |||
| ) |
Get tool manager's queue tool ID.
| dwId | Tool index. | |
| pGuid | Filled with class ID of requested tool. |
| HRESULT IRsToolManager::DeactivateToolGroup | ( | [in] GUID * | pgId | ) |
Deactivate tool group.
| pgId | [in] Group ID to deactivate. |
1.5.5