public Control walkthroughHomeScreen() { ImageList imageListTreeView = new ImageList(); imageListTreeView.ImageSize = new Size(25, 25); imageListTreeView.Images.Add("clickableItem", global::MAGiC.Properties.Resources.mouseHand); walkthroughTree = new WalkthroughTree(); CustomTree treeView = new CustomTree(); treeView.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); treeView.BackColor = System.Drawing.SystemColors.Info; treeView.FullRowSelect = true; treeView.ImageIndex = 0; treeView.ImageList = imageListTreeView; treeView.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(172)))), ((int)(((byte)(168)))), ((int)(((byte)(153))))); treeView.Location = new System.Drawing.Point(0, 0); treeView.Name = "walkthrough"; treeView.SelectedImageIndex = 0; treeView.Size = new System.Drawing.Size(234, 216); treeView.TabIndex = 0; walkthroughTree.ensureDefaultImageIndex(treeView); treeView.DrawMode = TreeViewDrawMode.OwnerDrawAll; walkthroughTree.loadTree(treeView); treeView.Nodes[0].ExpandAll(); treeView.NodeMouseClick += new System.Windows.Forms.TreeNodeMouseClickEventHandler(tv_NodeMouseClick); return(treeView); }
private bool createWalkthrougPage(TreeNodeMouseClickEventArgs e, WalkthroughTree walkthroughTree) { bool changeWalkthrouhPage = false; if (e.Node == walkthroughTree.node_analysis_speech_extractFormatAudio) { /*Extract and Format Audio Tab*/ /**************************************************************************/ TableLayoutPanel pnl_extractAndFormatAudio = speechAnalysisWalkthrougUI.getExtractAndFormatAudioWalkthroughLayout(); /*End of Extract and Format Audio*/ tp_walkthrough_nodes = new TabPage(Constants.WalkthroughTitleExtractFormatAudio); tp_walkthrough_nodes.Controls.Add(pnl_extractAndFormatAudio); changeWalkthrouhPage = true; } else if (e.Node == walkthroughTree.node_analysis_speech_segmentAudio) { /*Segment Audio*/ /**************************************************************************/ TableLayoutPanel pnl_SegmentAudio = speechAnalysisWalkthrougUI.getSegmentAudioWalkthroughLayout(); /*End of Segment Audio*/ tp_walkthrough_nodes = new TabPage(Constants.WalkthroughTitleSegmentAudio); tp_walkthrough_nodes.Controls.Add(pnl_SegmentAudio); changeWalkthrouhPage = true; } else if (e.Node == walkthroughTree.node_analysis_speech_timeIntervalEstimation) { /*Time Interval Specification (also,Synchronization for Multiple Recordings) Tab*/ /**************************************************************************/ TableLayoutPanel pnl_specifyTimeInterval = speechAnalysisWalkthrougUI.getSpecifyTimeIntervalWalkthroughLayout(); /*End of Time Interval Specification (also, Synchronization for Multiple Recordings) Tab*/ tp_walkthrough_nodes = new TabPage(Constants.WalkthroughTitleTimeIntervalEstimation); tp_walkthrough_nodes.Controls.Add(pnl_specifyTimeInterval); changeWalkthrouhPage = true; } else if (e.Node == walkthroughTree.node_analysis_speech_speechAnnotation_defineSpeechActs) { /*DefineSpeechAct Tab*/ /**************************************************************************/ TableLayoutPanel pnl_defineSpeechAct = speechAnalysisWalkthrougUI.getDefineSpeechActWalkthroughLayout(); /*DefineSpeechActTab*/ tp_walkthrough_nodes = new TabPage(Constants.WalkthroughTitleDefineSpeechActs); tp_walkthrough_nodes.Controls.Add(pnl_defineSpeechAct); changeWalkthrouhPage = true; } else if (e.Node == walkthroughTree.node_analysis_speech_speechAnnotation_annotation) { /*Annotation Tab*/ /**************************************************************************/ TableLayoutPanel pnl_annotation = speechAnalysisWalkthrougUI.getAnnotationWalkthroughLayout(); /*Annotation Tab*/ tp_walkthrough_nodes = new TabPage(Constants.WalkthroughTitleAnnotation); tp_walkthrough_nodes.Controls.Add(pnl_annotation); changeWalkthrouhPage = true; } else if (e.Node == walkthroughTree.node_analysis_aoi_faceTracking_defaultDetector) { /*Face Tracking With Default Detector Tab*/ /**************************************************************************/ TableLayoutPanel pnl_faceTrackingWithDefaultDetector = aoiAnalysisWalkthroughUI.getFaceTrackingWithDefaultDetectorWalkthroughLayout(); /*End of Face Tracking With Default Detector*/ tp_walkthrough_nodes = new TabPage(Constants.WalkthroughTitleFaceTrackingDefaultDetector); tp_walkthrough_nodes.Controls.Add(pnl_faceTrackingWithDefaultDetector); changeWalkthrouhPage = true; } else if (e.Node == walkthroughTree.node_analysis_aoi_faceTracking_trainedDetector) { /*Face Tracking With Trained Detector Tab*/ /**************************************************************************/ TableLayoutPanel pnl_faceTrackingWithTrainedDetector = aoiAnalysisWalkthroughUI.getFaceTrackingWithTrainedDetectorWalkthroughLayout(); /*End of Face Tracking With Default Detector*/ tp_walkthrough_nodes = new TabPage(Constants.WalkthroughTitleFaceTrackingTrainedDetector); tp_walkthrough_nodes.Controls.Add(pnl_faceTrackingWithTrainedDetector); changeWalkthrouhPage = true; } else if (e.Node == walkthroughTree.node_analysis_aoi_aoiAnaylse_preProcessGazeData) { TableLayoutPanel pnl_preProcessGazeData = aoiAnalysisWalkthroughUI.getPreProcessGazeDataWalkthroughLayout(); tp_walkthrough_nodes = new TabPage(Constants.WalkthroughTitlePreProcessGazeData); tp_walkthrough_nodes.Controls.Add(pnl_preProcessGazeData); changeWalkthrouhPage = true; } else if (e.Node == walkthroughTree.node_analysis_aoi_aoiAnaylse_faceasAOI) { TableLayoutPanel pnl_detectAOI = aoiAnalysisWalkthroughUI.getDetectAOIWalkthroughLayout(); tp_walkthrough_nodes = new TabPage(Constants.WalkthroughTitleFaceasAOI); tp_walkthrough_nodes.Controls.Add(pnl_detectAOI); changeWalkthrouhPage = true; } else if (e.Node == walkthroughTree.node_analysis_aoi_reviewOutcomes_visualizeTracking) { TableLayoutPanel pnl_visualizeTracking = aoiAnalysisWalkthroughUI.getVisualizeTrackingWalkthroughLayout(); tp_walkthrough_nodes = new TabPage(Constants.WalkthroughTitleVisualizeTracking); tp_walkthrough_nodes.Controls.Add(pnl_visualizeTracking); changeWalkthrouhPage = true; } else if (e.Node == walkthroughTree.node_analysis_aoi_reviewOutcomes_findAOIsDetectionRatio) { TableLayoutPanel pnl_findDetectionRatio = aoiAnalysisWalkthroughUI.getFindDetectionRatioWalkthroughLayout(); tp_walkthrough_nodes = new TabPage(Constants.WalkthroughTitleFindAOIsDetectionRatio); tp_walkthrough_nodes.Controls.Add(pnl_findDetectionRatio); changeWalkthrouhPage = true; } else if (e.Node == walkthroughTree.node_analysis_aoi_reviewOutcomes_labelAOIsManually) { TableLayoutPanel pnl_labelAOIManually = aoiAnalysisWalkthroughUI.getLabelAOIManuallyWalkthroughLayout(); tp_walkthrough_nodes = new TabPage(Constants.WalkthroughTitleLabelAOIsManually); tp_walkthrough_nodes.Controls.Add(pnl_labelAOIManually); changeWalkthrouhPage = true; } else if (e.Node == walkthroughTree.node_analysis_aoi_reviewOutcomes_reanalyseAOIs) { TableLayoutPanel pnl_reanalyseAOI = aoiAnalysisWalkthroughUI.getReanalyseAOIWalkthroughLayout(); tp_walkthrough_nodes = new TabPage(Constants.WalkthroughTitleReanalyseAOIs); tp_walkthrough_nodes.Controls.Add(pnl_reanalyseAOI); changeWalkthrouhPage = true; } else if (e.Node == walkthroughTree.node_analysis_summary) { TableLayoutPanel pnl_summary = summaryWalkthroughUI.getLayout(); tp_walkthrough_nodes = new TabPage(Constants.WalkthroughTitleSummary); tp_walkthrough_nodes.Controls.Add(pnl_summary); changeWalkthrouhPage = true; } return(changeWalkthrouhPage); }