public void LoadTrack(EditorTrackInfo track) { Notebook.NotebookChild notebook_child = dialog.Notebook [this] as Notebook.NotebookChild; if (notebook_child == null) { return; } notebook_child.TabFill = false; notebook_child.TabExpand = false; }
protected virtual void Build() { // Widget BizeeBirdBoarding.Ui.MainWindow Name = "BizeeBirdBoarding.Ui.MainWindow"; Title = "BiZee Bird Boarding"; WindowPosition = WindowPosition.CenterOnParent; DefaultWidth = 1115; DefaultHeight = 480; // Container child BizeeBirdBoarding.Ui.MainWindow.Container+ContainerChild topLevelVbox = new VBox(); topLevelVbox.Name = "topLevelVbox"; topLevelVbox.Spacing = 6; // Container child topLevelVbox.Box+BoxChild toolbarButtonBox = new HButtonBox(); toolbarButtonBox.Name = "toolbarButtonBox"; toolbarButtonBox.LayoutStyle = ButtonBoxStyle.Start; // Container child toolbarButtonBox.ButtonBox+ButtonBoxChild button1 = new Button(); button1.CanFocus = true; button1.Name = "button1"; button1.UseUnderline = true; button1.Label = "New Customer"; toolbarButtonBox.Add(button1); ButtonBox.ButtonBoxChild w1 = (ButtonBox.ButtonBoxChild)toolbarButtonBox[button1]; w1.Expand = false; w1.Fill = false; // Container child toolbarButtonBox.ButtonBox+ButtonBoxChild button2 = new Button(); button2.CanFocus = true; button2.Name = "button2"; button2.UseUnderline = true; button2.Label = "New Appointment"; toolbarButtonBox.Add(button2); ButtonBox.ButtonBoxChild w2 = (ButtonBox.ButtonBoxChild)toolbarButtonBox[button2]; w2.Position = 1; w2.Expand = false; w2.Fill = false; topLevelVbox.Add(toolbarButtonBox); Box.BoxChild w3 = ((Box.BoxChild)(topLevelVbox[toolbarButtonBox])); w3.Position = 0; w3.Expand = false; w3.Fill = false; // Container child topLevelVbox.Box+BoxChild notebook = new Notebook(); notebook.CanFocus = true; notebook.Name = "notebook"; notebook.CurrentPage = 0; // Container child notebook.Notebook+NotebookChild appointmentsTabHPaned = new HPaned(); appointmentsTabHPaned.Name = "appointmentsTabHPaned"; // Container child appointmentsTabHPaned.Paned+PanedChild upcomingDropOffsFrame = new Frame(); upcomingDropOffsFrame.WidthRequest = 450; upcomingDropOffsFrame.Name = "upcomingDropOffsFrame"; upcomingDropOffsFrame.ShadowType = ShadowType.In; // Container child upcomingDropOffsFrame.Container+ContainerChild upcomingDropOffsGtkAlignment = new Alignment(0F, 0F, 1F, 1F); upcomingDropOffsGtkAlignment.Name = "upcomingDropOffsGtkAlignment"; upcomingDropOffsGtkAlignment.LeftPadding = 12; // Container child upcomingDropOffsGtkAlignment.Container+ContainerChild upcomingDropOffsGtkScrolledWindow = new ScrolledWindow(); upcomingDropOffsGtkScrolledWindow.Name = "upcomingDropOffsGtkScrolledWindow"; upcomingDropOffsGtkScrolledWindow.ShadowType = ShadowType.In; // Container child upcomingDropOffsGtkScrolledWindow.Container+ContainerChild upcomingDropOffsTreeView = new TreeView(); upcomingDropOffsTreeView.CanFocus = true; upcomingDropOffsTreeView.Name = "upcomingDropOffsTreeView"; upcomingDropOffsGtkScrolledWindow.Add(upcomingDropOffsTreeView); upcomingDropOffsGtkAlignment.Add(upcomingDropOffsGtkScrolledWindow); upcomingDropOffsFrame.Add(upcomingDropOffsGtkAlignment); upcomingDropOffsLabel = new Label(); upcomingDropOffsLabel.Name = "upcomingDropOffsLabel"; upcomingDropOffsLabel.LabelProp = "<b>Upcoming Drop Offs</b>"; upcomingDropOffsLabel.UseMarkup = true; upcomingDropOffsFrame.LabelWidget = upcomingDropOffsLabel; appointmentsTabHPaned.Add(upcomingDropOffsFrame); Paned.PanedChild w7 = (Paned.PanedChild)appointmentsTabHPaned[upcomingDropOffsFrame]; w7.Resize = false; // Container child appointmentsTabHPaned.Paned+PanedChild upcomingPickupsFrame = new Frame(); upcomingPickupsFrame.Name = "upcomingPickupsFrame"; upcomingPickupsFrame.ShadowType = ShadowType.In; // Container child upcomingPickupsFrame.Container+ContainerChild upcomingPickupsAlignment = new Alignment(0F, 0F, 1F, 1F); upcomingPickupsAlignment.Name = "upcomingPickupsAlignment"; upcomingPickupsAlignment.LeftPadding = 12; // Container child upcomingPickupsAlignment.Container+ContainerChild upcomingPickupsScrolledWindow = new ScrolledWindow(); upcomingPickupsScrolledWindow.Name = "upcomingPickupsScrolledWindow"; upcomingPickupsScrolledWindow.ShadowType = ShadowType.In; // Container child upcomingPickupsScrolledWindow.Container+ContainerChild upcomingPickupsTreeview = new TreeView(); upcomingPickupsTreeview.CanFocus = true; upcomingPickupsTreeview.Name = "upcomingPickupsTreeview"; upcomingPickupsScrolledWindow.Add(upcomingPickupsTreeview); upcomingPickupsAlignment.Add(upcomingPickupsScrolledWindow); upcomingPickupsFrame.Add(upcomingPickupsAlignment); upcomingPickupsLabel = new Label(); upcomingPickupsLabel.Name = "upcomingPickupsLabel"; upcomingPickupsLabel.LabelProp = "<b>Upcoming Pickups</b>"; upcomingPickupsLabel.UseMarkup = true; upcomingPickupsFrame.LabelWidget = upcomingPickupsLabel; appointmentsTabHPaned.Add(upcomingPickupsFrame); notebook.Add(appointmentsTabHPaned); // Notebook tab appointmentsTabLabel = new Label(); appointmentsTabLabel.Name = "appointmentsTabLabel"; appointmentsTabLabel.LabelProp = "Appointments"; notebook.SetTabLabel(appointmentsTabHPaned, appointmentsTabLabel); appointmentsTabLabel.ShowAll(); // Container child notebook.Notebook+NotebookChild customerTabVbox = new VBox(); customerTabVbox.Name = "customerTabVbox"; customerTabVbox.Spacing = 6; // Container child customerTabVbox.Box+BoxChild hbox1 = new HBox(); hbox1.Name = "hbox1"; hbox1.Spacing = 6; // Container child hbox1.Box+BoxChild customerSearchLabel = new Label(); customerSearchLabel.Name = "customerSearchLabel"; customerSearchLabel.LabelProp = "Search"; hbox1.Add(customerSearchLabel); Box.BoxChild w13 = (Box.BoxChild)hbox1[customerSearchLabel]; w13.Position = 0; w13.Expand = false; w13.Fill = false; // Container child hbox1.Box+BoxChild customerSearchEntry = new Entry(); customerSearchEntry.CanFocus = true; customerSearchEntry.Name = "customerSearchEntry"; customerSearchEntry.IsEditable = true; hbox1.Add(customerSearchEntry); Box.BoxChild w14 = (Box.BoxChild)hbox1[customerSearchEntry]; w14.Position = 1; customerTabVbox.Add(hbox1); Box.BoxChild w15 = (Box.BoxChild)customerTabVbox[hbox1]; w15.Position = 0; w15.Expand = false; w15.Fill = false; // Container child customerTabVbox.Box+BoxChild customersScrolledWindow = new ScrolledWindow(); customersScrolledWindow.Name = "customersScrolledWindow"; customersScrolledWindow.ShadowType = ShadowType.In; // Container child customersScrolledWindow.Container+ContainerChild customersTreeview = new TreeView(); customersTreeview.CanFocus = true; customersTreeview.Name = "customersTreeview"; customersScrolledWindow.Add(customersTreeview); customerTabVbox.Add(customersScrolledWindow); Box.BoxChild w17 = (Box.BoxChild)customerTabVbox[customersScrolledWindow]; w17.Position = 1; notebook.Add(customerTabVbox); Notebook.NotebookChild w18 = (Notebook.NotebookChild)notebook[customerTabVbox]; w18.Position = 1; // Notebook tab customerTabLabel = new Label(); customerTabLabel.Name = "customerTabLabel"; customerTabLabel.LabelProp = "Customers"; notebook.SetTabLabel(customerTabVbox, customerTabLabel); customerTabLabel.ShowAll(); // Container child notebook.Notebook+NotebookChild historyTablVbox = new VBox(); historyTablVbox.Name = "historyTablVbox"; historyTablVbox.Spacing = 6; // Container child historyTablVbox.Box+BoxChild historySearchHbox = new HBox(); historySearchHbox.Name = "historySearchHbox"; historySearchHbox.Spacing = 6; // Container child historySearchHbox.Box+BoxChild historySearchLabel = new Label(); historySearchLabel.Name = "historySearchLabel"; historySearchLabel.LabelProp = "Search"; historySearchHbox.Add(historySearchLabel); Box.BoxChild w19 = (Box.BoxChild)historySearchHbox[historySearchLabel]; w19.Position = 0; w19.Expand = false; w19.Fill = false; // Container child historySearchHbox.Box+BoxChild historySearchEntry = new Entry(); historySearchEntry.CanFocus = true; historySearchEntry.Name = "historySearchEntry"; historySearchEntry.IsEditable = true; historySearchHbox.Add(historySearchEntry); Box.BoxChild w20 = (Box.BoxChild)historySearchHbox[historySearchEntry]; w20.Position = 1; historyTablVbox.Add(historySearchHbox); Box.BoxChild w21 = (Box.BoxChild)historyTablVbox[historySearchHbox]; w21.Position = 0; w21.Expand = false; w21.Fill = false; // Container child historyTablVbox.Box+BoxChild historyScrolledWindow = new ScrolledWindow(); historyScrolledWindow.Name = "historyScrolledWindow"; historyScrolledWindow.ShadowType = ShadowType.In; // Container child historyScrolledWindow.Container+ContainerChild historyTreeview = new TreeView(); historyTreeview.CanFocus = true; historyTreeview.Name = "historyTreeview"; historyScrolledWindow.Add(historyTreeview); historyTablVbox.Add(historyScrolledWindow); Box.BoxChild w23 = (Box.BoxChild)historyTablVbox[historyScrolledWindow]; w23.Position = 1; notebook.Add(historyTablVbox); Notebook.NotebookChild w24 = (Notebook.NotebookChild)notebook[historyTablVbox]; w24.Position = 2; // Notebook tab historyTabLabel = new Label(); historyTabLabel.Name = "historyTabLabel"; historyTabLabel.LabelProp = "History"; notebook.SetTabLabel(historyTablVbox, historyTabLabel); historyTabLabel.ShowAll(); topLevelVbox.Add(notebook); Box.BoxChild w25 = (Box.BoxChild)topLevelVbox[notebook]; w25.Position = 1; Add(topLevelVbox); if ((Child != null)) { Child.ShowAll(); } Show(); DeleteEvent += new DeleteEventHandler(OnDeleteEvent); button1.Clicked += new System.EventHandler(onNewCustomerClicked); button2.Clicked += new System.EventHandler(onNewApointmentButtonClicked); upcomingDropOffsTreeView.RowActivated += new RowActivatedHandler(onUpcomingDropOffsRowActivated); upcomingPickupsTreeview.RowActivated += new RowActivatedHandler(onUpcomingPickupsRowActivated); customerSearchEntry.Changed += new System.EventHandler(onCustomerSearchEntryChanged); customersTreeview.RowActivated += new RowActivatedHandler(onCustomersRowActivated); historySearchEntry.Changed += new System.EventHandler(onHistorySearchEntryChanged); historyTreeview.RowActivated += new RowActivatedHandler(onHistoryRowActivated); }
protected virtual void Build() { BorderWidth = 0; notebook1 = new Notebook(); notebook1.CurrentPage = 0; notebook1.ShowTabs = false; notebook1.BorderWidth = 0; notebook1.ShowBorder = false; scrolledwindow1 = new ScrolledWindow(); scrolledwindow1.CanFocus = true; scrolledwindow1.ShadowType = ShadowType.None; scrolledwindow1.BorderWidth = 0; Viewport w1 = new Viewport(); w1.ShadowType = ShadowType.None; w1.BorderWidth = 0; fixed1 = new Fixed(); fixed1.HasWindow = true; w1.Add(fixed1); scrolledwindow1.Add(w1); notebook1.Add(scrolledwindow1); label1 = new Label(); notebook1.SetTabLabel(scrolledwindow1, label1); label1.ShowAll(); vbox2 = new VBox(); eventbox_titlebar = new EventBox(); eventbox_titlebar.HeightRequest = 24; hbox1 = new HBox(); label_title = new Label(); hbox1.Add(label_title); Box.BoxChild w5 = ((Box.BoxChild)(hbox1[label_title])); w5.Position = 1; eventbox_restore = new EventBox(); image_restore = new Image(); image_restore.Pixbuf = RestoreImageNormal; eventbox_restore.Add(image_restore); hbox1.Add(eventbox_restore); Box.BoxChild w7 = ((Box.BoxChild)(hbox1[eventbox_restore])); w7.Position = 2; w7.Expand = false; w7.Fill = false; alignment5 = new Alignment(0.5F, 0.5F, 1F, 1F); alignment5.WidthRequest = 7; hbox1.Add(alignment5); Box.BoxChild w8 = ((Box.BoxChild)(hbox1[alignment5])); w8.Position = 3; w8.Expand = false; w8.Fill = false; eventbox_close = new EventBox(); image_close = new Image(); image_close.Pixbuf = CloseImageNormal; eventbox_close.Add(image_close); hbox1.Add(eventbox_close); Box.BoxChild w10 = ((Box.BoxChild)(hbox1[eventbox_close])); w10.Position = 4; w10.Expand = false; w10.Fill = false; alignment6 = new Alignment(0.5F, 0.5F, 1F, 1F); alignment6.WidthRequest = 3; hbox1.Add(alignment6); Box.BoxChild w11 = ((Box.BoxChild)(hbox1[alignment6])); w11.Position = 5; w11.Expand = false; w11.Fill = false; eventbox_titlebar.Add(hbox1); vbox2.Add(eventbox_titlebar); Box.BoxChild w13 = ((Box.BoxChild)(vbox2[eventbox_titlebar])); w13.Position = 0; w13.Expand = false; w13.Fill = false; eventbox1 = new EventBox(); vbox2.Add(eventbox1); Box.BoxChild w14 = ((Box.BoxChild)(vbox2[eventbox1])); w14.Position = 1; notebook1.Add(vbox2); Notebook.NotebookChild w15 = ((Notebook.NotebookChild)(notebook1[vbox2])); w15.Position = 1; label2 = new Label(); notebook1.SetTabLabel(vbox2, label2); label2.ShowAll(); Add(notebook1); Hide(); eventbox_restore.EnterNotifyEvent += Restore_Enter; eventbox_restore.LeaveNotifyEvent += Restore_Leave; eventbox_restore.ButtonPressEvent += Restore_Pressed; eventbox_close.EnterNotifyEvent += Close_Enter; eventbox_close.LeaveNotifyEvent += Close_Leave; eventbox_close.ButtonPressEvent += Close_Pressed; }