class
ToolbarItemManager
Tracks toolbar items that are registered in managed code using the ToolbarItem attribute.
Public
Constructors
ToolbarItemManager
Methods
~ToolbarItemManager
staticInstance
Returns a reference to the module instance.
Module has to have been started up first otherwise an exception will be thrown.
staticInstancePtr
Returns a pointer to the module instance.
Module has to have been started up first otherwise an exception will be thrown.
staticShutDown
Shuts down this module and frees any resources it is using.
staticIsStarted
Query if the module has been started.
Protected
Methods
~Module<T>
OnStartUp
Override if you want your module to be notified once it has been constructed and started.
OnShutDown
Override if you want your module to be notified just before it is deleted.
staticInstanceInternal
Returns a singleton instance of this module.
Private
Methods
ClearToolbarItems
Removes all managed toolbar items from the main menu.
ReloadAssemblyData
Reloads all assembly types and attempts to find uses of ToolbarItem.
Old toolbar items are cleared and new are added.
ParseToolbarItemMethod
Parse the provided method and detect whether it has a ToolbarItem attribute.
If it has extract needed data from it.
- method
- Managed method to parse.
- name
- Output name defined in the ToolbarItem attribute.
- icon
- Image defined in the ToolbarItem attribute.
- tooltip
- Optional tooltip defined in the ToolbarItem attribute.
- priority
- Menu item priority defined in the MenuItem attribute.
- separator
- Should the separator be inserted before the menu item.
Returns: True if the method has a ToolbarItem attribute. If false is returned output parameters from this method are undefined.
staticToolbarItemCallback
Triggered when one of the managed toolbar items is clicked.
- method
- Managed method that the ToolbarItem is referencing.