internal RibbonButton(RibbonBarController controller) : base(controller) { controller.AddClickableItemToWatch(this); DropDownItems = new List <ClickableItem>(); DisplayType = ButtonDisplayType.TextAndImage; ImageLocation = ImageDisplayLocation.Top; }
public void AddRibbonBarButtons(RibbonBarBuilder builder) { RibbonBarController = builder.Controller; var addVPButton = builder.CreateButton() .SetText("Add Virtual Property") .SetIsEnabledHandler(CanAddNewVirtualProperty) .SetToolTip("Add New Virtual Property to Type") .AddClickEventHandler(AddNewVirtualProperty_Clicked); var removeVPButton = builder.CreateButton() .SetText("Remove Virtual Property") .SetIsEnabledHandler(CanRemoveVirtualProperty) .SetToolTip("Deletes the Virtual Property from the Project") .AddClickEventHandler(RemoveVirtualProperty_Clicked); var vpBar = builder.CreateBar() .SetName("Virtual Properties") .SetOrientation(Orientation.Horizontal) .AddButton(addVPButton) .AddButton(removeVPButton); builder.AddRibbonBar(vpBar); var bar = builder.CreateBar() .SetName("Extension Actions"); var addLoadFunctionButton = builder.CreateButton() .SetText("Add OnLoad Action") .AddClickEventHandler(buttonAddLoadFunction_Click) .SetIsEnabledHandler(CanAddLoadFunction); var addNewProjectScreensFunctionButton = builder.CreateButton() .SetText("Add New Project Screens Action") .AddClickEventHandler(buttonAddProjectScreensFunction_Click) .SetIsEnabledHandler(CanAddProjectScreensFunction); var addPreGenerationFunctionButton = builder.CreateButton() .SetText("Add Pre Generation Action") .AddClickEventHandler(buttonAddPreGenerationFunction_Click) .SetIsEnabledHandler(CanAddPreGenerationFunction); bar.AddButton(addLoadFunctionButton); bar.AddButton(addNewProjectScreensFunctionButton); bar.AddButton(addPreGenerationFunctionButton); builder.AddRibbonBar(bar); }
internal ClickableItem(RibbonBarController controller) { this.controller = controller; }
internal RibbonButton(RibbonBarController controller) : base(controller) { controller.AddClickableItemToWatch(this); DropDownItems = new List<ClickableItem>(); DisplayType = ButtonDisplayType.TextAndImage; ImageLocation = ImageDisplayLocation.Top; }
public RibbonBarBuilder(RibbonBarController controller) { Controller = controller; }
public DropDownItem(RibbonBarController controller) : base(controller) { controller.AddClickableItemToWatch(this); }