public WorkbenchView(WorkbenchController controller) { SplashWindow.Update ("Creating GUI"); XML gxml = new Glade.XML (null, WorkbenchSingleton.GLADEFILE, "Workbench", null); window = (Gtk.Window) gxml["Workbench"]; Gtk.VPaned splitter = (Gtk.VPaned) gxml["mainPane"]; editorNotebook = new EditorNotebook (); splitter.Pack1 (editorNotebook, true, false); ScrolledWindow sw = new ScrolledWindow (); console = new TextView (); console.Editable = false; console.WrapMode = WrapMode.Word; sw.Add (console); Notebook bottomNotebook = new Notebook (); bottomNotebook.AppendPage (sw, new Label ("Console")); splitter.Pack2 (bottomNotebook, true, false); window.Icon = icon; this.WindowTitle = ""; gxml.Autoconnect (controller); bottomNotebook.ShowAll (); editorNotebook.ShowAll (); SplashWindow.Update ("Simetron is ready!"); }
// avoid public instantiation private WorkbenchSingleton() { model = new WorkbenchModel (); controller = new WorkbenchController (model); }