public MenuAndToolBarView(RibbonBarManager barManager, IButtonGroupToRibbonPageGroupMapper ribbonPageGroupMapper, IMenuBarItemToBarItemMapper barItemMapper, IRibbonBarItemToBarItemMapper ribbonItemMapper, ISkinManagerToSkinGalleryMapper skinGalleryMapper, ApplicationMenu applicationMenu, PanelControl panelRecentItems, IToolTipCreator toolTipCreator) { _barManager = barManager; _ribbonPageGroupMapper = ribbonPageGroupMapper; _barItemMapper = barItemMapper; _ribbonItemMapper = ribbonItemMapper; _skinGalleryMapper = skinGalleryMapper; _applicationMenu = applicationMenu; _mruArrayList = new MRUArrayList(_applicationMenu, panelRecentItems, toolTipCreator); _buttonGroupCache = new Cache <string, IList <IButtonGroup> >(category => new List <IButtonGroup>()); }
public ChartEditorView(IMenuBarItemToBarItemMapper barItemMapper, IImageListRetriever imageListRetriever) { _barItemMapper = barItemMapper; InitializeComponent(); //to avoid grouping state being lost layoutControl.UseLocalBindingContext = true; layoutControl.AllowCustomization = false; _allImages = imageListRetriever.AllImages16x16; _barManager.Images = _allImages; _barManager.MainMenu = null; _barManager.TransparentEditors = true; _barMenu.OptionsBar.AllowQuickCustomization = false; var repositoryItemCheckEditForUsedIn = new RepositoryItemCheckEdit { UseParentBackground = true, Caption = string.Empty, GlyphAlignment = HorzAlignment.Near, AutoWidth = false }; _barEditItemForUsedIn = new BarEditItem(_barManager) { Edit = repositoryItemCheckEditForUsedIn, Alignment = BarItemLinkAlignment.Right, AutoFillWidth = false, Width = 20, Caption = Captions.UseSelected, CaptionAlignment = HorzAlignment.Near, PaintStyle = BarItemPaintStyle.Caption }; _barEditItemForUsedIn.SuperTip = new SuperToolTip().WithText(ToolTips.UseSelectedCurvesToolTip); repositoryItemCheckEditForUsedIn.EditValueChanged += (o, e) => OnEvent(() => changeUsed(o)); repositoryItemCheckEditForUsedIn.ValueGrayed = null; }
public RibbonBarItemToBarItemMapper(RibbonBarManager ribbonBarManager, IMenuBarItemToBarItemMapper barItemMapper) { _ribbonBarManager = ribbonBarManager; _barItemMapper = barItemMapper; }
public ContextMenuView(IMenuBarItemToBarItemMapper mapper) { _mapper = mapper; _allMenuItems = new List <IMenuBarItem>(); }