Exemplo n.º 1
0
        public MainView(ISettingsProvider <Settings> settingsProvider, IThemeProvider themeProvider)
        {
            InitializeComponent();


            this.messenger = new Messenger(this);

            this.viewModel = new MainViewModel(settingsProvider);
            var scheduler = new AsyncJobScheduler(this, viewModel);

            var output = new OutputView(themeProvider, messenger);

            output.Show(this.dockPanel1, DockState.DockBottom);


            var entityTreeView = new EntityTreeView(output, messenger, scheduler);

            entityTreeView.Show(this.dockPanel1, DockState.DockLeft);



            this.tConnectToEnvironment.Bind(_ => _.Visible, this.viewModel, _ => _.IsConnectToEnvirnmentVisible);
            this.tEnvironmentName.Bind(_ => _.Visible, this.viewModel, _ => _.IsEnvironmentNameVisible);
            this.tEnvironmentName.Bind(_ => _.Text, this.viewModel, _ => _.ConnectionName);

            this.tOpenFolder.BindCommand(() => this.viewModel.OpenWikiFolder);
        }
Exemplo n.º 2
0
        private void MainForm_Load(object sender, EventArgs e)
        {
            Text = "MOSA GDB Debugger v" + CompilerVersion.VersionString;

            dockPanel.SuspendLayout(true);
            dockPanel.DockTopPortion = 75;

            controlView.Show(dockPanel, DockState.DockTop);
            statusView.Show(controlView.PanelPane, DockAlignment.Right, 0.50);

            breakPointView.Show(dockPanel, DockState.DockBottom);
            watchView.Show(breakPointView.PanelPane, DockAlignment.Right, 0.50);

            displayView.Show(dockPanel, DockState.Document);
            outputView.Show(dockPanel, DockState.Document);

            //scriptView.Show(dockPanel, DockState.Document);
            registersView.Show(dockPanel, DockState.DockRight);
            stackFrameView.Show(registersView.Pane, DockAlignment.Bottom, 0.5);

            sourceView.Show(dockPanel, DockState.Document);
            sourceDataView.Show(dockPanel, DockState.Document);

            //stackFrameView.Show(dockPanel, DockState.DockRight);

            var memoryView = new MemoryView(this);

            memoryView.Show(dockPanel, DockState.Document);
            symbolView.Show(dockPanel, DockState.Document);

            instructionView.Show(symbolView.PanelPane, DockAlignment.Right, 0.35);
            methodView.Show(instructionView.PanelPane, instructionView);
            callStackView.Show(instructionView.PanelPane, DockAlignment.Bottom, 0.25);

            registersView.Show();

            dockPanel.ResumeLayout(true, true);

            CalculateVMHash();

            LauncherOptions.SerialConnectionOption = SerialConnectionOption.TCPServer;
            LauncherOptions.SerialConnectionPort   = 1250;

            if (LauncherOptions.ImageFile != null)
            {
                VMProcess = StartQEMU();
            }
            LoadDebugFile();
            if (LauncherOptions.AutoStart)
            {
                System.Threading.Thread.Sleep(3000);
                Connect();
            }

            LoadBreakPoints();
            LoadWatches();
        }
Exemplo n.º 3
0
        private void MainForm_Load(object sender, EventArgs e)
        {
            Text = "MOSA GDB Debugger v" + CompilerVersion.VersionString;

            dockPanel.SuspendLayout(true);
            dockPanel.Theme          = new VS2015DarkTheme();
            dockPanel.DockTopPortion = 88;

            controlView.Show(dockPanel, DockState.DockTop);
            statusView.Show(controlView.PanelPane, DockAlignment.Right, 0.50);

            breakPointView.Show(dockPanel, DockState.DockBottom);
            watchView.Show(breakPointView.PanelPane, DockAlignment.Right, 0.50);

            launchView.Show(dockPanel, DockState.Document);
            displayView.Show(dockPanel, DockState.Document);
            traceView.Show(dockPanel, DockState.Document);
            outputView.Show(dockPanel, DockState.Document);

            //scriptView.Show(dockPanel, DockState.Document);
            registersView.Show(dockPanel, DockState.DockRight);
            stackFrameView.Show(registersView.Pane, DockAlignment.Bottom, 0.5);

            sourceView.Show(dockPanel, DockState.Document);

            sourceDataView.Show(dockPanel, DockState.Document);

            var memoryView = new MemoryView(this);

            memoryView.Show(dockPanel, DockState.Document);

            symbolView.Show(dockPanel, DockState.Document);

            methodParametersView.Show(symbolView.PanelPane, DockAlignment.Right, 0.35);

            instructionView.Show(methodParametersView.PanelPane, DockAlignment.Bottom, 0.85);
            methodView.Show(instructionView.PanelPane, instructionView);

            callStackView.Show(instructionView.PanelPane, DockAlignment.Bottom, 0.25);

            registersView.Show();
            launchView.Show();

            dockPanel.ResumeLayout(true, true);

            if (ImageFile != null)
            {
                LaunchImage();
            }
        }
Exemplo n.º 4
0
        public void Restore(IWorkspace workspace)
        {
            String configFile = Path.Combine(
                Path.GetDirectoryName(Application.ExecutablePath), "Layout.config");

            if (File.Exists(configFile))
            {
                workspace.MainDockManager.LoadFromXml(configFile,
                                                      new DeserializeDockContent(GetContentFromPersistString));
            }
            else
            {
                arGraph.Show(workspace.MainDockManager, DockState.Document);
                outView.Show(workspace.MainDockManager, DockState.DockBottomAutoHide);
                projExplorer.Show(workspace.MainDockManager, DockState.DockRight);
                avaShapes.Show(workspace.MainDockManager, DockState.DockRight);
            }
        }
Exemplo n.º 5
0
        private void MainForm_Load(object sender, EventArgs e)
        {
            dockPanel.SuspendLayout(true);
            dockPanel.DockTopPortion = 75;

            controlView.Show(dockPanel, DockState.DockTop);
            statusView.Show(controlView.PanelPane, DockAlignment.Right, 0.50);

            breakPointView.Show(dockPanel, DockState.DockBottom);
            watchView.Show(breakPointView.PanelPane, DockAlignment.Right, 0.50);

            displayView.Show(dockPanel, DockState.Document);
            outputView.Show(dockPanel, DockState.Document);

            //scriptView.Show(dockPanel, DockState.Document);
            registersView.Show(dockPanel, DockState.DockRight);

            //flagView.Show(dockPanel, DockState.DockRight);
            //stackView.Show(dockPanel, DockState.DockRight);
            stackFrameView.Show(dockPanel, DockState.DockRight);

            var memoryView = new MemoryView(this);

            memoryView.Show(dockPanel, DockState.Document);
            symbolView.Show(dockPanel, DockState.Document);

            instructionView.Show(symbolView.PanelPane, DockAlignment.Right, 0.35);
            methodView.Show(instructionView.PanelPane, instructionView);
            callStackView.Show(instructionView.PanelPane, DockAlignment.Bottom, 0.25);

            registersView.Show();

            dockPanel.ResumeLayout(true, true);

            if (Options.AutoConnect)
            {
                Connect();
            }

            if (Options.DebugInfoFile != null)
            {
                LoadDebugData.LoadDebugInfo(Options.DebugInfoFile, DebugSource);
            }
        }
Exemplo n.º 6
0
        private void ChangePage(object sender, EventArgs e)
        {
            this.InputView.Hide();
            this.SignalView.Hide();
            this.OutputView.Hide();

            if (sender == LabelInputs)
            {
                InputView.Show();
            }
            else if (sender == labelSignals)
            {
                SignalView.Show();
            }
            else if (sender == labelOutputs)
            {
                OutputView.Show();
            }
        }
Exemplo n.º 7
0
        private void toolStripButton3_Click(object sender, System.EventArgs e)
        {
            var dockOutput = new OutputView();

            dockOutput.Show(this.dockPanel1, DockState.Float);
        }