Exemplo n.º 1
0
        public void GuiInit()
        {
            // Load XML file
            Glade.XML gxml = new Glade.XML("gui.glade", "mainWindow", null);
            gxml.Autoconnect(this);

            // Load icons
            toolbuttonRun.IconWidget = Pixmaps.DebugStart.GetImage();
            toolbuttonRun.IconWidget.Show();
            toolbuttonStop.IconWidget = Pixmaps.DebugStopProcess.GetImage();
            toolbuttonStop.IconWidget.Show();
            toolbuttonContinue.IconWidget = Pixmaps.DebugContinue.GetImage();
            toolbuttonContinue.IconWidget.Show();
            toolbuttonStepIn.IconWidget = Pixmaps.DebugStepInto.GetImage();
            toolbuttonStepIn.IconWidget.Show();
            toolbuttonStepOver.IconWidget = Pixmaps.DebugStepOver.GetImage();
            toolbuttonStepOver.IconWidget.Show();
            toolbuttonStepOut.IconWidget = Pixmaps.DebugStepOut.GetImage();
            toolbuttonStepOut.IconWidget.Show();
            toolbuttonBreakpoint.IconWidget = Pixmaps.Breakpoint.GetImage();
            toolbuttonBreakpoint.IconWidget.Show();

            // Source code view
            sourceView = new SourceView(this);
            ScrolledWindow scrolledWindow = new ScrolledWindow();

            scrolledWindow.Add(sourceView);
            viewportSourceView.Add(scrolledWindow);
            scrolledWindow.Show();
            sourceView.Show();

            // Load pads
            mdbConsolePad = new MdbConsolePad(debuggerService);
            viewportConsole.Add(mdbConsolePad);
            callstackPad = new CallstackPad(debuggerService);
            viewportCallstack.Add(callstackPad);
            threadPad = new ThreadPad(debuggerService);
            viewportThreads.Add(threadPad);
            localsPad = new LocalsPad(debuggerService);
            viewportLocalVariables.Add(localsPad);
            breakpointsPad = new BreakpointsPad(debuggerService);
            viewportBreakpoints.Add(breakpointsPad);

            mdbConsolePad.GrabFocus();

            // Regularly update the GUI
            GLib.Timeout.Add(50, ReceiveGUIUpdates);
        }
Exemplo n.º 2
0
		public void GuiInit()
		{
			// Load XML file
			Glade.XML gxml = new Glade.XML("gui.glade", "mainWindow", null);
			gxml.Autoconnect(this);
			
			// Load icons
			toolbuttonRun.IconWidget = Pixmaps.DebugStart.GetImage();
			toolbuttonRun.IconWidget.Show();
			toolbuttonStop.IconWidget = Pixmaps.DebugStopProcess.GetImage();
			toolbuttonStop.IconWidget.Show();
			toolbuttonContinue.IconWidget = Pixmaps.DebugContinue.GetImage();
			toolbuttonContinue.IconWidget.Show();
			toolbuttonStepIn.IconWidget = Pixmaps.DebugStepInto.GetImage();
			toolbuttonStepIn.IconWidget.Show();
			toolbuttonStepOver.IconWidget = Pixmaps.DebugStepOver.GetImage();
			toolbuttonStepOver.IconWidget.Show();
			toolbuttonStepOut.IconWidget = Pixmaps.DebugStepOut.GetImage();
			toolbuttonStepOut.IconWidget.Show();
			toolbuttonBreakpoint.IconWidget = Pixmaps.Breakpoint.GetImage();
			toolbuttonBreakpoint.IconWidget.Show();
			
			// Source code view
			sourceView = new SourceView(this);
			ScrolledWindow scrolledWindow = new ScrolledWindow();
			scrolledWindow.Add(sourceView);
			viewportSourceView.Add(scrolledWindow);
			scrolledWindow.Show();
			sourceView.Show();
			
			// Load pads
			mdbConsolePad = new MdbConsolePad(debuggerService);
			viewportConsole.Add(mdbConsolePad);
			callstackPad = new CallstackPad(debuggerService);
			viewportCallstack.Add(callstackPad);
			threadPad = new ThreadPad(debuggerService);
			viewportThreads.Add(threadPad);
			localsPad = new LocalsPad(debuggerService);
			viewportLocalVariables.Add(localsPad);
			breakpointsPad = new BreakpointsPad(debuggerService);
			viewportBreakpoints.Add(breakpointsPad);
			
			mdbConsolePad.GrabFocus();
			
			// Regularly update the GUI
			GLib.Timeout.Add(50, ReceiveGUIUpdates);
		}