public MainWindow() { InitializeComponent(); BasePanel.MainWindow = this; BaseDocument.MainWindow = this; dockPanel = new DockPanel(); dockPanel.Dock = System.Windows.Forms.DockStyle.Fill; dockPanel.DockBackColor = System.Drawing.SystemColors.AppWorkspace; dockPanel.DockBottomPortion = 200D; dockPanel.DockLeftPortion = 350D; dockPanel.Name = "dockPanel"; Controls.Add(dockPanel); Controls.SetChildIndex(dockPanel, 0); Debugger = new Debugger((AsyncTask task) => { BeginInvoke(task); }); breakpointsPanel = new BreakpointsPanel(Debugger); callstackPanel = new CallstackPanel(Debugger); codeDocuments.Add(new CodeDocument(Debugger)); filesystemPanel = new FilesystemPanel(Debugger); functionsPanel = new FunctionsPanel(Debugger); heapDocument = new HeapDocument(Debugger); memoryDocuments.Add(new MemoryDocument(Debugger)); modulesPanel = new ModulesPanel(Debugger); profilePanel = new ProfilePanel(Debugger); registersPanels.Add(new RegistersPanel(Debugger, RegisterClass.GuestGeneralPurpose)); registersPanels.Add(new RegistersPanel(Debugger, RegisterClass.GuestFloatingPoint)); registersPanels.Add(new RegistersPanel(Debugger, RegisterClass.GuestVector)); statisticsDocument = new StatisticsDocument(Debugger); threadsPanel = new ThreadsPanel(Debugger); tracePanel = new TracePanel(Debugger); // deserializeDockContent = // new DeserializeDockContent(GetContentFromPersistString); SetupDefaultLayout(); // For hotkeys. KeyPreview = true; Debugger.StateChanged += Debugger_StateChanged; Debugger_StateChanged(this, Debugger.CurrentState); Debugger.CurrentContext.Changed += CurrentContext_Changed; CurrentContext_Changed(Debugger.CurrentContext); Debugger.Attach(); }
/// <summary> Create a GUI-Instance for Jamocha. /// /// </summary> /// <param name="">engine /// The Jamocha-engine that will be used in the GUI. /// /// </param> public JamochaGui(Rete engine) { InitBlock(); // set up the frame //UPGRADE_ISSUE: Constructor 'java.awt.BorderLayout.BorderLayout' was not converted. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1000_javaawtBorderLayout"' this.ContentPane.setLayout(new BorderLayout()); this.setTitle("Jamocha"); setSizeAndLocation(); // show logo //UPGRADE_ISSUE: Constructor 'java.awt.BorderLayout.BorderLayout' was not converted. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1000_javaawtBorderLayout"' JPanel logoPanel = new JPanel(new BorderLayout()); //UPGRADE_ISSUE: Field 'java.awt.BorderLayout.EAST' was not converted. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1000_javaawtBorderLayout"' logoPanel.add(new JLabel(IconLoader.getImageIcon("jamocha")), BorderLayout.EAST); //UPGRADE_ISSUE: Field 'java.awt.BorderLayout.NORTH' was not converted. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1000_javaawtBorderLayout"' this.ContentPane.add(logoPanel, BorderLayout.NORTH); // create a tabbed pane tabbedPane = new JTabbedPane(); //UPGRADE_ISSUE: Field 'java.awt.BorderLayout.CENTER' was not converted. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1000_javaawtBorderLayout"' this.ContentPane.add(tabbedPane, BorderLayout.CENTER); // add MenuBar menuBar = new JamochaMenuBar(this); this.setJMenuBar(menuBar); // create a rete engine this.engine = engine; // create a shell tab and add it to the tabbed pane ShellPanel shellPanel = new ShellPanel(this); tabbedPane.addTab("Shell", IconLoader.getImageIcon("application_osx_terminal"), shellPanel, "Jamocha Shell"); panels.add(shellPanel); FactsPanel factsPanel = new FactsPanel(this); tabbedPane.addTab("Facts", IconLoader.getImageIcon("database"), factsPanel, "View or modify Facts"); panels.add(factsPanel); TemplatesPanel templatesPanel = new TemplatesPanel(this); tabbedPane.addTab("Templates", IconLoader.getImageIcon("brick"), templatesPanel, "View or modify Templates"); panels.add(templatesPanel); FunctionsPanel functionsPanel = new FunctionsPanel(this); tabbedPane.addTab("Functions", IconLoader.getImageIcon("cog"), functionsPanel, "View Functions"); panels.add(functionsPanel); RetePanel retePanel = new RetePanel(this); tabbedPane.addTab("Rete", IconLoader.getImageIcon("eye"), retePanel, "View the Rete-network"); panels.add(retePanel); LogPanel logPanel = new LogPanel(this); tabbedPane.addTab("Log", IconLoader.getImageIcon("monitor"), logPanel, "View alle messages from or to the Rete-engine"); panels.add(logPanel); SettingsPanel settingsPanel = new SettingsPanel(this); tabbedPane.addTab("Settings", IconLoader.getImageIcon("wrench"), settingsPanel, "Settings for Jamocha"); panels.add(settingsPanel); // add the tab pane to the frame //UPGRADE_ISSUE: Field 'java.awt.BorderLayout.CENTER' was not converted. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1000_javaawtBorderLayout"' this.ContentPane.add(tabbedPane, BorderLayout.CENTER); tabbedPane.addChangeListener(this); // add a listener to the frame to kill the engine when the GUI is closed addWindowListener(new AnonymousClassWindowAdapter(this)); }
private void InitBlock(FunctionsPanel enclosingInstance) { this.enclosingInstance = enclosingInstance; funclist = new ArrayList(); }
public FunctionsTableModel(FunctionsPanel enclosingInstance) { InitBlock(enclosingInstance); }