IPluginRibbonCommand Interface

The Ribbon command is used to communicate between PCB-Investigator and all included menu items. You can see a simple example here: http://www.pcb-investigator.com/forum/ribbon-menu-items

Definition

Namespace: PCBI.Plugin.Interfaces
Assembly: PCB-Investigator (in PCB-Investigator.exe) Version: 0
C#
public interface IPluginRibbonCommand : IPlugin
Implements
IPlugin

Properties

Assembly
(Inherited from IPlugin)
Parent
(Inherited from IPlugin)
Path
(Inherited from IPlugin)
PluginDestination
(Inherited from IPlugin)
PluginEnabled
(Inherited from IPlugin)
Type
(Inherited from IPlugin)

Methods

InitEvents After loading the Plugin PCB-Investigator init all events and set the parent.
(Inherited from IPlugin)
IsActionAllowed Ast plugin for handling of special ID_ActionItem or registrated IDs. default is return false.
(Inherited from IPlugin)
OnCommandExecute Will be called with each command to execute.
RegisterCommand Register your own commands here like this: int MyCmdID = Parent.UIAction.RegisterID(new PCBI.Plugin.Interfaces.IRegisterItem() { Text = PCB_Investigator.Localization.PCBILocalization.TranslateToCurrentLanguage("CommandName"), MetroStyleIcon = icon, ToolTip = "...", RegisterType = RegisterItemType.BUTTON, GUID = "ID_MY_COMMAND", Category = "PlugIn", EnableOn = Availability.Always });

See Also