public SummaryWalkthroughBE(SummaryWalkthroughUI _controls)
 {
     controls = _controls;
     initialize();
 }
Beispiel #2
0
        public HomeScreen()
        {
            speechAnalysisTab = new SpeechAnalysisTab(this);
            aoiAnalysisTab    = new AOIAnalysisTab(this);
            summaryTab        = new SummaryTab(this);

            speechAnalysisWalkthrougUI = new SpeechAnalysisWalkthroughUI(this);
            speechAnalysisWalkthrougUI.initializeController();
            aoiAnalysisWalkthroughUI = new AOIAnalysisWalkthroughUI(this);
            aoiAnalysisWalkthroughUI.initializeController();
            summaryWalkthroughUI = new SummaryWalkthroughUI(this);
            summaryWalkthroughUI.initializeController();

            Text       = "MAGiC v1.0";
            this.Icon  = global::MAGiC.Properties.Resources.top;
            ClientSize = new System.Drawing.Size(1000, 700);

            //splitPane.Size = new System.Drawing.Size(1000, 1);
            //splitPane.SplitterDistance = 400;
            //splitPane.FixedPanel = FixedPanel.Panel1;

            ((System.ComponentModel.ISupportInitialize)(this.splitter)).BeginInit();
            this.splitter.SuspendLayout();
            SuspendLayout();
            createOutlookBarComponentItems();

            this.splitter.Cursor   = System.Windows.Forms.Cursors.Default;
            this.splitter.Dock     = System.Windows.Forms.DockStyle.Fill;
            this.splitter.Location = new System.Drawing.Point(0, 24);
            this.splitter.Name     = "splitter";
            this.splitter.Size     = new System.Drawing.Size(384, 237);
            //this.splitter.SplitterButtonBitmap = ((System.Drawing.Bitmap)(resources.GetObject("splitter.SplitterButtonBitmap")));
            this.splitter.SplitterButtonStyle = ButtonStyle.PushButton;
            this.splitter.SplitterDistance    = 60;
            this.splitter.SplitterWidth       = 22;
            this.splitter.TabIndex            = 2;

            splitter.Panel1.Controls.Add(outlookBar1);
            splitter.Panel2.Controls.Add(tc);
            splitter.SplitterButtonStyle    = ButtonStyle.ScrollBar;
            splitter.SplitterButtonPosition = ButtonPosition.Center;

            this.Controls.Add(this.splitter);


            tc.ItemSize   = new Size(250, 50);
            tc.Appearance = TabAppearance.Buttons;
            ImageList imageList1 = new ImageList();

            imageList1.ImageSize = new Size(35, 35);
            imageList1.Images.Add("walkthroughImage", global::MAGiC.Properties.Resources.walkthroughResized);
            imageList1.Images.Add("speechAnalysisImage", global::MAGiC.Properties.Resources.sound);
            imageList1.Images.Add("AOIAnalysisImage", global::MAGiC.Properties.Resources.face);
            imageList1.Images.Add("summaryImage", global::MAGiC.Properties.Resources.notebook_1);
            tc.ImageList = imageList1;


            tc.TabPages.Add(tp_walkthrough);

            tc.Font = new Font("Arial", 12, FontStyle.Bold);

            tp_walkthrough.Controls.Add(walkthroughHomeScreen());
            tp_walkthrough.ImageKey = "walkthroughImage";


            tp_speechAnalysis.Controls.Add(speechAnalysisTab);
            tp_speechAnalysis.ImageKey = "speechAnalysisImage";

            tp_aoiAnalysis.Controls.Add(aoiAnalysisTab);
            tp_aoiAnalysis.ImageKey = "AOIAnalysisImage";

            tp_summary.Controls.Add(summaryTab.getLayout());
            tp_summary.ImageKey = "summaryImage";

            outlookBar1.SelectedButton = outlookBarButtonWalkthrough;

            //---

            Accordion[] accs = new[] { speechAnalysisTab.acc, aoiAnalysisTab.acc };
            foreach (var a in accs)
            {
                a.OpenOneOnly = true;
                a.Close(null);
            }


            this.WindowState = FormWindowState.Maximized;


            //---
            //Controls.Add(splitPane);
            tc.SelectedTab = tp_walkthrough;

            ((System.ComponentModel.ISupportInitialize)(this.splitter)).EndInit();

            this.splitter.ResumeLayout(false);
            //this.outlookBar1.ResumeLayout();
            // ResumeLayout(true);

            this.ResumeLayout(true);
            this.PerformLayout();
        }