Esempio n. 1
0
            public SpeechAnalysisTab(HomeScreen _homeScreen)
            {
                homeScreen = _homeScreen;
                List <CheckBox> checkboxList = new List <CheckBox>();

                TableLayoutPanel pnl_main_speechAnalysis = new TableLayoutPanel {
                    Dock = DockStyle.Fill, BackColor = Color.WhiteSmoke, Size = new Size(800, 800), AutoSizeMode = AutoSizeMode.GrowAndShrink
                };

                pnl_main_speechAnalysis.Margin      = new Padding(0);
                pnl_main_speechAnalysis.ColumnCount = 1;
                pnl_main_speechAnalysis.RowCount    = 1;

                Accordion accParent = acc;

                acc.Insets         = new Padding(10);
                acc.ContentPadding = new Padding(10);
                acc.ContentMargin  = new Padding(0);
                acc.CheckBoxMargin = new Padding(0);

                /*Extract and Format Audio Tab*/
                /**************************************************************************/
                ExtractAndFormatAudioUI extractAndFormatAudioUI = new ExtractAndFormatAudioUI(homeScreen);
                ExtractAndFormatAudioBE efa = new ExtractAndFormatAudioBE(extractAndFormatAudioUI);

                checkboxList.Add(accParent.Add(extractAndFormatAudioUI.pnl_extractAndFormatAudio, "Extract and Format Audio", "ToolTip 1"));
                /*End of Extract and Format Audio*/


                /*Segment Audio*/
                /**************************************************************************/
                SegmentAudioUI segmentAudioUI = new SegmentAudioUI(homeScreen);
                SegmentAudioBE sa             = new SegmentAudioBE(segmentAudioUI);

                checkboxList.Add(accParent.Add(segmentAudioUI.pnl_SegmentAudio, "Segment Audio", "ToolTip 2"));
                /*End of Segment Audio*/

                /*Time Interval Specification (also,Synchronization for Multiple Recordings) Tab*/
                /**************************************************************************/
                SpecifyTimeIntervalUI specifyTimeIntervalUI = new SpecifyTimeIntervalUI(homeScreen);
                SpecifyTimeIntervalBE sti = new SpecifyTimeIntervalBE(specifyTimeIntervalUI);

                checkboxList.Add(accParent.Add(specifyTimeIntervalUI.pnl_specifyTimeInterval, "Time Interval Estimation (also, Syncronization for Multiple Recordings)", "ToolTip 3"));
                /*End of Time Interval Specification (also, Synchronization for Multiple Recordings) Tab*/

                /*Speech-Act Annotation Tab*/
                /**************************************************************************/
                SpeechActAnnotationUI speechActAnnotationUI = new SpeechActAnnotationUI(homeScreen);
                SpeechActAnnotationBE saa = new SpeechActAnnotationBE(speechActAnnotationUI);

                accNested = new Accordion()
                {
                    Dock = DockStyle.Fill, OpenOneOnly = true
                };
                checkboxList.Add(accNested.Add(speechActAnnotationUI.pnl_defineSpeechAct, "Define Speech-Acts"));
                checkboxList.Add(accNested.Add(speechActAnnotationUI.pnl_annotation, "Annotation"));
                checkboxList.Add(accParent.Add(accNested, "Speech Annotation", "ToolTip 4"));
                /*Speech-Act Annotation Tab*/

                pnl_main_speechAnalysis.Controls.Add(acc);
                Controls.Add(pnl_main_speechAnalysis);
                // Controls.Add(acc);
            }
 public SpecifyTimeIntervalBE(SpecifyTimeIntervalUI _controls)
 {
     controls = _controls;
     initialize();
 }