private Browser createTriggerActionBrowser() { Browser browser = new Browser("Types", "Choose Trigger Type"); BrowserNode rootNode = browser.getTopNode(); browser.DefaultSelection = new BrowserNode("Setup Scene", new Func <String, SlideAction>((name) => { SetupSceneAction setupScene = new SetupSceneAction(name); setupScene.captureSceneState(uiCallback); return(setupScene); })); rootNode.addChild(browser.DefaultSelection); rootNode.addChild(new BrowserNode("Play Timeline", new Func <String, SlideAction>((name) => { return(new PlayTimelineAction(name)); }))); rootNode.addChild(new BrowserNode("Stop Timeline", new Func <String, SlideAction>((name) => { return(new StopTimelineAction(name)); }))); return(browser); }
private Browser createActionBrowser() { Browser browser = new Browser("Action", "Choose Action"); if (CurrentEditingMvcContext != null) { foreach (MvcController controller in CurrentEditingMvcContext.Controllers) { BrowserNode controllerNode = new BrowserNode(controller.Name, null); foreach (ControllerAction action in controller.Actions) { controllerNode.addChild(new BrowserNode(action.Name, String.Format("{0}/{1}", controller.Name, action.Name))); } browser.addNode(null, null, controllerNode); } } return browser; }
public static void makeViewBrowser(Browser browser) { BrowserNode wizardNode = new BrowserNode("Wizard Views", null); wizardNode.addChild(new GenericBrowserNode <ViewCollection.CreateView>("Disclaimer", name => { return(new DisclaimerView(name)); })); wizardNode.addChild(new GenericBrowserNode <ViewCollection.CreateView>("Left Condylar Growth", name => { return(new LeftCondylarGrowthView(name)); })); wizardNode.addChild(new GenericBrowserNode <ViewCollection.CreateView>("Right Condylar Growth", name => { return(new RightCondylarGrowthView(name)); })); wizardNode.addChild(new GenericBrowserNode <ViewCollection.CreateView>("Left Condylar Degeneration", name => { return(new LeftCondylarDegenerationView(name)); })); wizardNode.addChild(new GenericBrowserNode <ViewCollection.CreateView>("Right Condylar Degeneration", name => { return(new RightCondylarDegenerationView(name)); })); wizardNode.addChild(new GenericBrowserNode <ViewCollection.CreateView>("Disc Space", name => { return(new DiscSpaceView(name)); })); wizardNode.addChild(new GenericBrowserNode <ViewCollection.CreateView>("Doppler", name => { return(new DopplerView(name)); })); wizardNode.addChild(new GenericBrowserNode <ViewCollection.CreateView>("Left Fossa", name => { return(new LeftFossaView(name)); })); wizardNode.addChild(new GenericBrowserNode <ViewCollection.CreateView>("Right Fossa", name => { return(new RightFossaView(name)); })); wizardNode.addChild(new GenericBrowserNode <ViewCollection.CreateView>("Preset State", name => { return(new PresetStateView(name)); })); wizardNode.addChild(new GenericBrowserNode <ViewCollection.CreateView>("Profile Distortion", name => { return(new ProfileDistortionView(name)); })); wizardNode.addChild(new GenericBrowserNode <ViewCollection.CreateView>("Remove Bottom Teeth", name => { return(new RemoveBottomTeethView(name)); })); wizardNode.addChild(new GenericBrowserNode <ViewCollection.CreateView>("Remove Top Teeth", name => { return(new RemoveTopTeethView(name)); })); wizardNode.addChild(new GenericBrowserNode <ViewCollection.CreateView>("Teeth Adaptation", name => { return(new TeethAdaptationView(name)); })); wizardNode.addChild(new GenericBrowserNode <ViewCollection.CreateView>("Teeth Height Adaptation", name => { return(new TeethHeightAdaptationView(name)); })); wizardNode.addChild(new GenericBrowserNode <ViewCollection.CreateView>("Notes", name => { return(new NotesView(name)); })); browser.addNode(null, null, wizardNode); }