// ======================================== // PUBLIC Constructors // ======================================== public Window() : base(Info.Name + " " + Info.Version) { // Initialize Window Properties this.SetDefaultSize(500, 300); DefaultIcon = StockIcons.GetPixbuf("NyIVIcon"); this.DeleteEvent += new DeleteEventHandler(OnWindowDelete); // Initialize VBox this.vbox = new Gtk.VBox(false, 0); this.Add(this.vbox); // Initialize Menu & Toolbar this.uiMenuManager = new UiMenuManager(); this.uiMenuManager.Activated += new EventHandler(OnMenuActivated); this.AddAccelGroup(this.uiMenuManager.AccelGroup); // Initialize MenuBar Gtk.MenuBar menubar = this.MenuBar; this.vbox.PackStart(menubar, false, false, 0); // Initialize ToolBar Gtk.Toolbar toolbar = this.ToolBar; toolbar.ToolbarStyle = ToolbarStyle.Both; toolbar.IconSize = IconSize.LargeToolbar; this.vbox.PackStart(toolbar, false, false, 0); // Initialize Viewer this.viewer = new Viewer(); this.vbox.PackStart(this.viewer, true, true, 2); // Initialize StatusBar this.statusBar = new Gtk.Statusbar(); this.vbox.PackEnd(this.statusBar, false, false, 0); // Set Sensitive Menu SetSensitiveImageMenu(false); }