Public Member Functions | |
| HRESULT | Activate () |
| HRESULT | Deactivate () |
| HRESULT | DeactivateManagedWidgets ([in] GUID gGroupId,[in] IRcUndoRedoGroup *pUndoRedo) |
| HRESULT | QueryWidgetCache ([in] BSTR bstrWidgetName,[in] BSTR bstrAspectName,[out, retval] IRsWidgetCacheItem **pItem) |
| HRESULT | AddWidgetToCache ([in] IRnActiveWidget *pWidget) |
| HRESULT | InvalidateCache ([in] BSTR bstrNodeName) |
| HRESULT | RemoveWidget ([in] IRnActiveWidget *pWidget) |
| HRESULT | AddManagedWidget ([in] IRnActiveWidget *pWidget) |
| HRESULT | ReplaceManagedWidget ([in] IRnActiveWidget *pWidget,[in] IRcUndoRedoGroup *pUndoRedo) |
| HRESULT | UpdateActiveWidgets ([in] BSTR bszWidgetPrototype,[in] BSTR bszRelativePath,[in]CONID conid) |
| HRESULT | ReactivateWidgets ([in] BSTR bszWidgetPrototype) |
| HRESULT | GetActiveWidgetParameters ([out] IRdWidgetParameters **ppParams) |
| HRESULT | ActivateDefaultWidget ([in] IRcUndoRedoGroup *pUndoRedo) |
| HRESULT | SetSelection ([in] RtUlong uCount,[in] IRsNode **ppSelectionList) |
| HRESULT | SetSelectionList ([in] IRsObjectList *pList) |
| HRESULT | ForceSelectionOwner ([in] BSTR szOwner) |
| HRESULT | ResetSelection () |
| HRESULT | IgnoreSelection ([in] RtUlong uCount) |
| HRESULT | SetGroupDependency ([in] GUID source_id,[in] GUID dependent_id) |
| HRESULT | RemoveGroupDependency ([in] GUID source_id,[in] GUID dependent_id) |
| HRESULT | GetActiveWidget ([out] IRnActiveWidget **ppActiveWidget) |
| HRESULT | CheckWidgetPrototypeActive ([in] BSTR szWidgetPrototype,[out] RtBool *pbActive) |
| HRESULT | EnableSelectionAutoHandling ([in] RtBool bActive) |
| HRESULT | GetManagedWidgetsCount ([out, retval] RtUlong *pdwCount) |
| HRESULT | GetManagedWidget ([in] RtUlong dwIndex,[out, retval] IRnActiveWidget **ppActiveWidget) |
| HRESULT | SetEventHandling ([in] RtBool bEnable) |
| HRESULT | CheckWidgetPrototypeGroupActive ([in] BSTR szWidgetPrototype,[in] GUID gGUID,[out] RtBool *pbActive) |
| HRESULT | RegisterWidgetSelectionHandler ([in] IRsWidgetSelectionHandler *pSelectionHandler) |
| HRESULT | UnregisterWidgetSelectionHandler ([in] IRsWidgetSelectionHandler *pSelectionHandler) |
| HRESULT | GetWidgetPrototypeInstance ([in] BSTR szWidgetProto,[out] IRnActiveWidget **ppWidgetInstance) |
| HRESULT | GetWidgetGroupSize ([in] GUID gGroupId,[out] RtUlong *dwNumWidgets) |
| HRESULT | GetWidgetGroupWidget ([in] GUID gGroupId,[in] RtUlong dwIndex,[out] IRnActiveWidget **ppWidget) |
Widget subsystem supports two types of widget:
| HRESULT IRnWidgetSubsystem::Activate | ( | ) |
Activate widget subsystem.
| HRESULT IRnWidgetSubsystem::Deactivate | ( | ) |
Deactivate widget subsystem.
| HRESULT IRnWidgetSubsystem::DeactivateManagedWidgets | ( | [in] GUID | gGroupId, | |
| [in] IRcUndoRedoGroup * | pUndoRedo | |||
| ) |
Deactivate managed widgets in specified group.
| gGroupId | [in] Widget group ID. | |
| pUndoRedo | [in] Widget group Undo/Redo command. |
| HRESULT IRnWidgetSubsystem::QueryWidgetCache | ( | [in] BSTR | bstrWidgetName, | |
| [in] BSTR | bstrAspectName, | |||
| [out, retval] IRsWidgetCacheItem ** | pItem | |||
| ) |
Retrieve cached widget from widget cache.
| bstrWidgetName | [in] Name of the widget. | |
| bstrAspectName | [in] Active aspect. |
standard HRESULT processing can be applied to returned value.
| HRESULT IRnWidgetSubsystem::AddWidgetToCache | ( | [in] IRnActiveWidget * | pWidget | ) |
Add widget to cache.
| pWidget | [in] Active widget to add to cache. |
| HRESULT IRnWidgetSubsystem::InvalidateCache | ( | [in] BSTR | bstrNodeName | ) |
Deactivate widget cache items that are dependent on specified node.
| bstrNodeName | [in] Node name. |
| HRESULT IRnWidgetSubsystem::RemoveWidget | ( | [in] IRnActiveWidget * | pWidget | ) |
Deactivate widget.
| pWidget | [in] Widget interface. |
| HRESULT IRnWidgetSubsystem::AddManagedWidget | ( | [in] IRnActiveWidget * | pWidget | ) |
Add widget to managed group.
| pWidget | [in] Widget interface. |
| HRESULT IRnWidgetSubsystem::ReplaceManagedWidget | ( | [in] IRnActiveWidget * | pWidget, | |
| [in] IRcUndoRedoGroup * | pUndoRedo | |||
| ) |
Deactivate widget group and add new widget.
| pWidget | [in] Widget interface | |
| pUndoRedo | [in] Widget Undo/redo group command. |
| HRESULT IRnWidgetSubsystem::UpdateActiveWidgets | ( | [in] BSTR | bszWidgetPrototype, | |
| [in] BSTR | bszRelativePath, | |||
| [in] CONID | conid | |||
| ) |
Update all active widgets after connector changed in their template node.
| bszWidgetPrototype | [in] Widget prototype node. | |
| bszRelativePath | [in] Relative path inside widget prototype. | |
| conid | [in] Changed connector ID. |
| HRESULT IRnWidgetSubsystem::ReactivateWidgets | ( | [in] BSTR | bszWidgetPrototype | ) |
Re-activate widgets that are created from specified template (for example after widget topology change).
| bszWidgetPrototype | [in] Widget prototype node. |
| HRESULT IRnWidgetSubsystem::GetActiveWidgetParameters | ( | [out] IRdWidgetParameters ** | ppParams | ) |
Get widget parameters for currently active widget.
| ppParams | [out] Widget parameters. |
| HRESULT IRnWidgetSubsystem::ActivateDefaultWidget | ( | [in] IRcUndoRedoGroup * | pUndoRedo | ) |
Activate default widget.
| pUndoRedo | [in] Widget undo/redo group command. |
| HRESULT IRnWidgetSubsystem::SetSelection | ( | [in] RtUlong | uCount, | |
| [in] IRsNode ** | ppSelectionList | |||
| ) |
Force selection to widget automatic management.
| uCount | [in] Number of nodes in selection. | |
| ppSelectionList | [in] Array of at the least uCount nodes. |
| HRESULT IRnWidgetSubsystem::SetSelectionList | ( | [in] IRsObjectList * | pList | ) |
Force selection to widget automatic management.
| pList | [in] List of selected nodes. |
| HRESULT IRnWidgetSubsystem::ForceSelectionOwner | ( | [in] BSTR | szOwner | ) |
Force selection ownership to widget automatic management.
| szOwner | [in] Owner widget name. |
| HRESULT IRnWidgetSubsystem::ResetSelection | ( | ) |
Clear internal widget automatic management selection.
| HRESULT IRnWidgetSubsystem::IgnoreSelection | ( | [in] RtUlong | uCount | ) |
Set number of selection events to ignore.
| uCount | [in] Number of events to ignore. |
| HRESULT IRnWidgetSubsystem::SetGroupDependency | ( | [in] GUID | source_id, | |
| [in] GUID | dependent_id | |||
| ) |
Set widget groups dependency.
| source_id | [in] Parent group ID. | |
| dependent_id | [in] Children group ID. |
| HRESULT IRnWidgetSubsystem::RemoveGroupDependency | ( | [in] GUID | source_id, | |
| [in] GUID | dependent_id | |||
| ) |
Remove widget groups dependency.
| source_id | [in] Parent group ID. | |
| dependent_id | [in] Children group ID. |
| HRESULT IRnWidgetSubsystem::GetActiveWidget | ( | [out] IRnActiveWidget ** | ppActiveWidget | ) |
Return active widget (currently receiving mouse tool manager messages) if any.
| ppActiveWidget | [out] Active widget. |
| HRESULT IRnWidgetSubsystem::CheckWidgetPrototypeActive | ( | [in] BSTR | szWidgetPrototype, | |
| [out] RtBool * | pbActive | |||
| ) |
Check if widget is active or not.
| szWidgetPrototype | [in] Widget prototype name. | |
| pbActive | [out] True, if widget prototype is activated. |
| HRESULT IRnWidgetSubsystem::EnableSelectionAutoHandling | ( | [in] RtBool | bActive | ) |
Enable or disable selection auto handling.
| bEnable | [in] True to enable auto handling, false to disable. |
| HRESULT IRnWidgetSubsystem::GetManagedWidgetsCount | ( | [out, retval] RtUlong * | pdwCount | ) |
Get number of managed widgets.
standard HRESULT processing can be applied to returned value.
| HRESULT IRnWidgetSubsystem::GetManagedWidget | ( | [in] RtUlong | dwIndex, | |
| [out, retval] IRnActiveWidget ** | ppActiveWidget | |||
| ) |
Get managed widget by index.
| dwIndex | [in] Index of managed widget. |
standard HRESULT processing can be applied to returned value
| HRESULT IRnWidgetSubsystem::SetEventHandling | ( | [in] RtBool | bEnable | ) |
Enable/Disable event handling and automatic management of widget controlled objects lists.
| bEnable | [in] Set to true to enable handling, false to disable. |
| HRESULT IRnWidgetSubsystem::CheckWidgetPrototypeGroupActive | ( | [in] BSTR | szWidgetPrototype, | |
| [in] GUID | gGUID, | |||
| [out] RtBool * | pbActive | |||
| ) |
Check if any widget with specified prefix is active.
| szWidgetPrototype | [in] Widget prototype name. | |
| gGUID | [in] Widget group. Set to GUID_NULL to check for all groups. | |
| pbActive | [out] True, if widget prototype is activated. |
| HRESULT IRnWidgetSubsystem::RegisterWidgetSelectionHandler | ( | [in] IRsWidgetSelectionHandler * | pSelectionHandler | ) |
Register widget selection handler which are used to override global selection events - for example selecting in LE.
| pSelectionHandler | [in] Handler to register. |
| HRESULT IRnWidgetSubsystem::UnregisterWidgetSelectionHandler | ( | [in] IRsWidgetSelectionHandler * | pSelectionHandler | ) |
Unregister widget selection handler.
| pSelectionHandler | [in] Handler to unregister. |
| HRESULT IRnWidgetSubsystem::GetWidgetPrototypeInstance | ( | [in] BSTR | szWidgetProto, | |
| [out] IRnActiveWidget ** | ppWidgetInstance | |||
| ) |
Return first active widget from specified prototype.
| szWidgetProto | [in] Prototype name. | |
| ppWidgetInstance | [out] Returned active widget or NULL if none found. |
| HRESULT IRnWidgetSubsystem::GetWidgetGroupSize | ( | [in] GUID | gGroupId, | |
| [out] RtUlong * | dwNumWidgets | |||
| ) |
Return number of widgets within specified group.
| gGUID | [in] Widget group ID. | |
| dwNumWidgets | [out] Number of widgets within specified group. |
| HRESULT IRnWidgetSubsystem::GetWidgetGroupWidget | ( | [in] GUID | gGroupId, | |
| [in] RtUlong | dwIndex, | |||
| [out] IRnActiveWidget ** | ppWidget | |||
| ) |
Return widget specified by group and index.
| gGUID | [in] Widget group ID. | |
| dwIndex | [in] Index of a widget within widget group to retrieve. | |
| ppWidget | [out] is filled with widget specified by group ID and index. |
1.5.5