/// ------------------------------------------------------------------------------------ /// <summary> /// Adds tab items to the sidebar (if the adapter is not null) via the sidebar/info. /// bar adapter. When running tests, the adapter will be null. - from FwMainWnd.cs /// </summary> /// <param name="tab"></param> /// <param name="itemProps"></param> /// ------------------------------------------------------------------------------------ protected void AddSideBarTabItem(string tab, SBTabItemProperties itemProps) { if (SIBAdapter != null) { SIBAdapter.AddTabItem(tab, itemProps); } }
protected virtual void AddVerticalView2() //IUserView userView) { // Add this user view to the Scripture sidebar tab. SBTabItemProperties itemProps = new SBTabItemProperties(this); itemProps.Name = kScrVerticalViewSBItemName + "2"; itemProps.Text = "VEdit2"; itemProps.ImageIndex = (int)TeResourceHelper.SideBarIndices.Draft; // itemProps.Tag = TeViewType.VerticalView; itemProps.Message = "SwitchActiveView"; AddSideBarTabItem(kBTSBTabName, itemProps); }
/// ------------------------------------------------------------------------------------ /// <summary> /// Adds the Scripture/Draft View - from TeMainWnd.cs /// </summary> /// <param name="userView"></param> /// ------------------------------------------------------------------------------------ protected virtual void AddDraftView() //IUserView userView) { // Add this user view to the Scripture sidebar tab. SBTabItemProperties itemProps = new SBTabItemProperties(this); itemProps.Name = kScrDraftViewSBItemName; itemProps.Text = "Parallel Print Layout"; itemProps.ImageIndex = (int)TeResourceHelper.SideBarIndices.Draft; //itemProps.Tag = TeViewType.DraftView; itemProps.Message = "SwitchActiveView"; AddSideBarTabItem(kScrSBTabName, itemProps); }