private void CreateCodeTab(TabCodon codon) { codeTab = new CodeTab(mediator); codeTab.TabIdentifier = codon.CodonName; codeTab.Text = codon.Text; RaiseNewTab(codeTab); }
// private void CreateBugLoggerTab(TabCodon codon) // { // bugTab = new BugTab(this.mediator); // bugTab.TabIdentifier = codon.CodonName; // bugTab.Text = codon.Text; // RaiseNewTab(bugTab); // } private void CreateBrowserTab(TabCodon codon) { browserTab = new BrowserTab(this.mediator); browserTab.TabIdentifier = codon.CodonName; browserTab.Text = codon.Text; RaiseNewTab(browserTab); }
private void CreateShapesTab(TabCodon codon) { shapesTab = new ShapeViewerTab(this.mediator); shapesTab.Text = codon.Text; shapesTab.TabIdentifier = codon.CodonName; RaiseNewTab(shapesTab); }
private void CreateOutputTab(TabCodon codon) { outputTab = new OutputExTab(this.mediator); outputTab.TabIdentifier = codon.CodonName; outputTab.Text = codon.Text; RaiseNewTab(outputTab); }
private void CreateZoomTab(TabCodon codon) { zoomTab = new ZoomTab(this.mediator); zoomTab.Text = codon.Text; zoomTab.TabIdentifier = codon.CodonName; RaiseNewTab(zoomTab); }
private void CreatePropertiesTab(TabCodon codon) { propsTab = new PropertiesTab(this.mediator); propsTab.Text = codon.Text; propsTab.TabIdentifier = codon.CodonName; RaiseNewTab(propsTab); }
private void CreateDiagramBrowserTab(TabCodon codon) { diagramBrowserTab = new DiagramBrowserTab(mediator); diagramBrowserTab.TabIdentifier = codon.CodonName; diagramBrowserTab.Text = codon.Text; string initialPath = ConfigurationSettings.AppSettings.Get("DiagramBrowserInitialDirectory"); if (initialPath != string.Empty) { diagramBrowserTab.LoadDirectory(initialPath, false); } diagramBrowserTab.Thumbnails = true; //set to small size initially RaiseNewTab(diagramBrowserTab); }
private void CreateShapeFavoritesTab(TabCodon codon) { favTab = new FavTab(this.mediator); favTab.Text = codon.Text; favTab.TabIdentifier = codon.CodonName; string defaultFolder = ConfigurationSettings.AppSettings.Get("TemplateBrowserInitialDirectory"); if (defaultFolder != string.Empty) { favTab.LoadDirectory(defaultFolder); favTab.DefaultDirectory = defaultFolder; } RaiseNewTab(favTab); }
private void CreateGraphTab(TabCodon codon) { graphTab = new GraphTab(this.mediator); graphTab.Text = codon.Text; graphTab.TabIdentifier = codon.CodonName; RaiseNewTab(graphTab); //create the stamper and couple it if (zoomTab == null) { CreateZoomTab(new TabCodon("Zoom", "Zoom", TabTypes.DiagramZoom)); } //connect the stamper to the graph control zoomTab.GraphStamp.GraphControl = zoomTab.GraphControl = graphTab.GraphControl; }
public object GetTab(TabCodon codon) { switch (codon.TabType) { case TabTypes.DiagramBrowser: if (diagramBrowserTab == null) { CreateDiagramBrowserTab(codon); } return(diagramBrowserTab); case TabTypes.Browser: if (browserTab == null) { CreateBrowserTab(codon); } return(browserTab); case TabTypes.ChmToc: if (chmTocTab == null) { CreateBrowserTab(codon); } return(chmTocTab); case TabTypes.Output: if (outputTab == null) { CreateOutputTab(codon); } return(outputTab); case TabTypes.PropertyGrid: if (propsTab == null) { CreatePropertiesTab(codon); } return(propsTab); case TabTypes.NetronDiagram: if (graphTab == null) { CreateGraphTab(codon); } return(graphTab); case TabTypes.DiagramZoom: if (zoomTab == null) { CreateZoomTab(codon); } return(zoomTab); case TabTypes.ShapesViewer: if (shapesTab == null) { CreateShapesTab(codon); } return(shapesTab); case TabTypes.ShapeFavorites: if (favTab == null) { CreateShapeFavoritesTab(codon); } return(favTab); // case TabTypes.BugTab: // if(bugTab == null) // CreateBugLoggerTab(codon); // return bugTab; case TabTypes.Code: if (codeTab == null) { CreateCodeTab(codon); } return(codeTab); } return(null); }