private void ChangeBtnPosion() { if (!Platform.IsMac) { HButtonBox actionArea = base.ActionArea; ButtonBox.ButtonBoxChild buttonBoxChild = (ButtonBox.ButtonBoxChild)actionArea[this.buttonOk]; ButtonBox.ButtonBoxChild buttonBoxChild2 = (ButtonBox.ButtonBoxChild)actionArea[this.buttonCancel]; buttonBoxChild.Position = 0; buttonBoxChild2.Position = 1; } }
private void ChangeBtnPosion() { if (Platform.IsMac) { return; } HButtonBox actionArea = this.ActionArea; ButtonBox.ButtonBoxChild buttonBoxChild1 = (ButtonBox.ButtonBoxChild)actionArea[(Widget)this.buttonOk]; ButtonBox.ButtonBoxChild buttonBoxChild2 = (ButtonBox.ButtonBoxChild)actionArea[(Widget)this.buttonCancel]; buttonBoxChild1.Position = 0; buttonBoxChild2.Position = 1; }
private void InitPlatform() { ButtonBox.ButtonBoxChild buttonBoxChild = (ButtonBox.ButtonBoxChild)base.ActionArea[this.btnNew]; ButtonBox.ButtonBoxChild buttonBoxChild2 = (ButtonBox.ButtonBoxChild)base.ActionArea[this.buttonCancel]; if (Platform.IsMac) { buttonBoxChild2.Position = 0; buttonBoxChild.Position = 1; } else { buttonBoxChild2.Position = 1; buttonBoxChild.Position = 0; } if (base.Child != null) { base.Child.ShowAll(); } base.Show(); }
protected virtual void Build() { Gui.Initialize((Widget)this); this.HeightRequest = 175; this.Name = "CocoStudio.ControlLib.Windows.LoginDialog"; this.WindowPosition = WindowPosition.CenterOnParent; VBox vbox = this.VBox; vbox.Name = "dialog1_VBox"; vbox.BorderWidth = 2U; this.evtbx_border = new EventBox(); this.evtbx_border.Name = "evtbx_border"; this.evtbx_border.BorderWidth = 10U; this.table_main = new Table(4U, 2U, false); this.table_main.Name = "table_main"; this.table_main.RowSpacing = 6U; this.table_main.ColumnSpacing = 6U; this.hbox_firstRow = new HBox(); this.hbox_firstRow.Name = "hbox_firstRow"; this.hbox_firstRow.Spacing = 6; this.entry_Name = new Entry(); this.entry_Name.WidthRequest = 250; this.entry_Name.CanFocus = true; this.entry_Name.Name = "entry_Name"; this.entry_Name.IsEditable = true; this.entry_Name.InvisibleChar = '●'; this.hbox_firstRow.Add((Widget)this.entry_Name); Box.BoxChild boxChild1 = (Box.BoxChild) this.hbox_firstRow[(Widget)this.entry_Name]; boxChild1.Position = 0; boxChild1.Expand = false; this.link_RegisterAccount = new LabelLink((string)null); this.link_RegisterAccount.Events = EventMask.ButtonPressMask; this.link_RegisterAccount.Name = "link_RegisterAccount"; this.hbox_firstRow.Add((Widget)this.link_RegisterAccount); Box.BoxChild boxChild2 = (Box.BoxChild) this.hbox_firstRow[(Widget)this.link_RegisterAccount]; boxChild2.Position = 1; boxChild2.Expand = false; boxChild2.Fill = false; this.table_main.Add((Widget)this.hbox_firstRow); Table.TableChild tableChild1 = (Table.TableChild) this.table_main[(Widget)this.hbox_firstRow]; tableChild1.LeftAttach = 1U; tableChild1.RightAttach = 2U; tableChild1.XOptions = AttachOptions.Fill; tableChild1.YOptions = AttachOptions.Fill; this.hbox_fourthRow = new HBox(); this.hbox_fourthRow.Name = "hbox_fourthRow"; this.hbox_fourthRow.Spacing = 6; this.label_remark = new Label(); this.label_remark.Name = "label_remark"; this.label_remark.LabelProp = Catalog.GetString("(请使用CocoaChina账号登陆)"); this.hbox_fourthRow.Add((Widget)this.label_remark); Box.BoxChild boxChild3 = (Box.BoxChild) this.hbox_fourthRow[(Widget)this.label_remark]; boxChild3.Position = 0; boxChild3.Expand = false; boxChild3.Fill = false; this.table_main.Add((Widget)this.hbox_fourthRow); Table.TableChild tableChild2 = (Table.TableChild) this.table_main[(Widget)this.hbox_fourthRow]; tableChild2.TopAttach = 3U; tableChild2.BottomAttach = 4U; tableChild2.LeftAttach = 1U; tableChild2.RightAttach = 2U; tableChild2.XOptions = AttachOptions.Fill; tableChild2.YOptions = AttachOptions.Fill; this.hbox_secondRow = new HBox(); this.hbox_secondRow.Name = "hbox_secondRow"; this.hbox_secondRow.Spacing = 6; this.entry_PassWord = new PassWordEntry(); this.entry_PassWord.CanFocus = true; this.entry_PassWord.Name = "entry_PassWord"; this.entry_PassWord.IsEditable = true; this.entry_PassWord.InvisibleChar = '●'; this.hbox_secondRow.Add((Widget)this.entry_PassWord); ((Box.BoxChild) this.hbox_secondRow[(Widget)this.entry_PassWord]).Position = 0; this.link_ForgotPassword = new LabelLink((string)null); this.link_ForgotPassword.Events = EventMask.ButtonPressMask; this.link_ForgotPassword.Name = "link_ForgotPassword"; this.hbox_secondRow.Add((Widget)this.link_ForgotPassword); Box.BoxChild boxChild4 = (Box.BoxChild) this.hbox_secondRow[(Widget)this.link_ForgotPassword]; boxChild4.Position = 1; boxChild4.Expand = false; boxChild4.Fill = false; this.table_main.Add((Widget)this.hbox_secondRow); Table.TableChild tableChild3 = (Table.TableChild) this.table_main[(Widget)this.hbox_secondRow]; tableChild3.TopAttach = 1U; tableChild3.BottomAttach = 2U; tableChild3.LeftAttach = 1U; tableChild3.RightAttach = 2U; tableChild3.XOptions = AttachOptions.Fill; tableChild3.YOptions = AttachOptions.Fill; this.hbox_thirdRow = new HBox(); this.hbox_thirdRow.Name = "hbox_thirdRow"; this.hbox_thirdRow.Spacing = 6; this.checkbutton_password = new CheckButton(); this.checkbutton_password.CanFocus = true; this.checkbutton_password.Name = "checkbutton_password"; this.checkbutton_password.Label = Catalog.GetString("记住密码"); this.checkbutton_password.DrawIndicator = true; this.checkbutton_password.UseUnderline = true; this.hbox_thirdRow.Add((Widget)this.checkbutton_password); Box.BoxChild boxChild5 = (Box.BoxChild) this.hbox_thirdRow[(Widget)this.checkbutton_password]; boxChild5.Position = 0; boxChild5.Expand = false; this.checkbutton_AutoLogin = new CheckButton(); this.checkbutton_AutoLogin.CanFocus = true; this.checkbutton_AutoLogin.Name = "checkbutton_AutoLogin"; this.checkbutton_AutoLogin.Label = Catalog.GetString("自动登陆"); this.checkbutton_AutoLogin.DrawIndicator = true; this.checkbutton_AutoLogin.UseUnderline = true; this.hbox_thirdRow.Add((Widget)this.checkbutton_AutoLogin); Box.BoxChild boxChild6 = (Box.BoxChild) this.hbox_thirdRow[(Widget)this.checkbutton_AutoLogin]; boxChild6.Position = 1; boxChild6.Expand = false; this.table_main.Add((Widget)this.hbox_thirdRow); Table.TableChild tableChild4 = (Table.TableChild) this.table_main[(Widget)this.hbox_thirdRow]; tableChild4.TopAttach = 2U; tableChild4.BottomAttach = 3U; tableChild4.LeftAttach = 1U; tableChild4.RightAttach = 2U; tableChild4.XOptions = AttachOptions.Fill; tableChild4.YOptions = AttachOptions.Fill; this.label_Name = new Label(); this.label_Name.Name = "label_Name"; this.label_Name.Xalign = 1f; this.label_Name.LabelProp = Catalog.GetString("用户名"); this.table_main.Add((Widget)this.label_Name); Table.TableChild tableChild5 = (Table.TableChild) this.table_main[(Widget)this.label_Name]; tableChild5.XOptions = AttachOptions.Fill; tableChild5.YOptions = AttachOptions.Fill; this.label_PassWord = new Label(); this.label_PassWord.Name = "label_PassWord"; this.label_PassWord.Xalign = 1f; this.label_PassWord.LabelProp = Catalog.GetString("密码"); this.table_main.Add((Widget)this.label_PassWord); Table.TableChild tableChild6 = (Table.TableChild) this.table_main[(Widget)this.label_PassWord]; tableChild6.TopAttach = 1U; tableChild6.BottomAttach = 2U; tableChild6.XOptions = AttachOptions.Fill; tableChild6.YOptions = AttachOptions.Fill; this.evtbx_border.Add((Widget)this.table_main); vbox.Add((Widget)this.evtbx_border); Box.BoxChild boxChild7 = (Box.BoxChild)vbox[(Widget)this.evtbx_border]; boxChild7.Position = 0; boxChild7.Expand = false; boxChild7.Fill = false; HButtonBox actionArea = this.ActionArea; actionArea.Name = "dialog1_ActionArea"; actionArea.Spacing = 10; actionArea.BorderWidth = 5U; actionArea.LayoutStyle = ButtonBoxStyle.End; this.buttonCancel = new Button(); this.buttonCancel.CanDefault = true; this.buttonCancel.CanFocus = true; this.buttonCancel.Name = "buttonCancel"; this.buttonCancel.UseStock = true; this.buttonCancel.UseUnderline = true; this.buttonCancel.Label = "gtk-cancel"; this.AddActionWidget((Widget)this.buttonCancel, -6); ButtonBox.ButtonBoxChild buttonBoxChild1 = (ButtonBox.ButtonBoxChild)actionArea[(Widget)this.buttonCancel]; buttonBoxChild1.Expand = false; buttonBoxChild1.Fill = false; this.buttonOk = new Button(); this.buttonOk.CanDefault = true; this.buttonOk.CanFocus = true; this.buttonOk.Name = "buttonOk"; this.buttonOk.UseStock = true; this.buttonOk.UseUnderline = true; this.buttonOk.Label = "gtk-ok"; this.AddActionWidget((Widget)this.buttonOk, -5); ButtonBox.ButtonBoxChild buttonBoxChild2 = (ButtonBox.ButtonBoxChild)actionArea[(Widget)this.buttonOk]; buttonBoxChild2.Position = 1; buttonBoxChild2.Expand = false; buttonBoxChild2.Fill = false; if (this.Child != null) { this.Child.ShowAll(); } this.DefaultWidth = 412; this.DefaultHeight = 191; this.Show(); }
protected virtual void Build() { Gui.Initialize(this); base.HeightRequest = 140; base.Name = "CocoStudio.ControlLib.Windows.CoverPromptDialog"; base.WindowPosition = WindowPosition.CenterOnParent; VBox vBox = base.VBox; vBox.Name = "dialog1_VBox"; vBox.BorderWidth = 2u; this.vbox2 = new VBox(); this.vbox2.Name = "vbox2"; this.vbox2.Spacing = 6; this.vbox2.BorderWidth = 5u; this.label_Prompt = new Label(); this.label_Prompt.HeightRequest = 20; this.label_Prompt.Name = "label_Prompt"; this.label_Prompt.LabelProp = Catalog.GetString("导出目录下存在A文件夹"); this.vbox2.Add(this.label_Prompt); Box.BoxChild boxChild = (Box.BoxChild) this.vbox2[this.label_Prompt]; boxChild.Position = 0; boxChild.Expand = false; boxChild.Fill = false; this.radiobutton_CoverFolder = new RadioButton(Catalog.GetString("覆盖文件夹,警告:覆盖可能导致导出资源赘余!")); this.radiobutton_CoverFolder.CanFocus = true; this.radiobutton_CoverFolder.Name = "radiobutton_CoverFolder"; this.radiobutton_CoverFolder.DrawIndicator = true; this.radiobutton_CoverFolder.UseUnderline = true; this.radiobutton_CoverFolder.Group = new SList(IntPtr.Zero); this.vbox2.Add(this.radiobutton_CoverFolder); Box.BoxChild boxChild2 = (Box.BoxChild) this.vbox2[this.radiobutton_CoverFolder]; boxChild2.Position = 1; boxChild2.Expand = false; boxChild2.Fill = false; this.radiobutton_ChangeFolder = new RadioButton(Catalog.GetString("_将导出文件夹名称:A_1 修改为A_1")); this.radiobutton_ChangeFolder.CanFocus = true; this.radiobutton_ChangeFolder.Name = "radiobutton_ChangeFolder"; this.radiobutton_ChangeFolder.DrawIndicator = true; this.radiobutton_ChangeFolder.UseUnderline = true; this.radiobutton_ChangeFolder.Group = this.radiobutton_CoverFolder.Group; this.vbox2.Add(this.radiobutton_ChangeFolder); Box.BoxChild boxChild3 = (Box.BoxChild) this.vbox2[this.radiobutton_ChangeFolder]; boxChild3.Position = 2; boxChild3.Expand = false; boxChild3.Fill = false; vBox.Add(this.vbox2); Box.BoxChild boxChild4 = (Box.BoxChild)vBox[this.vbox2]; boxChild4.Position = 0; boxChild4.Expand = false; boxChild4.Fill = false; HButtonBox actionArea = base.ActionArea; actionArea.Name = "dialog1_ActionArea"; actionArea.Spacing = 10; actionArea.BorderWidth = 5u; actionArea.LayoutStyle = ButtonBoxStyle.End; this.buttonCancel = new Button(); this.buttonCancel.CanDefault = true; this.buttonCancel.CanFocus = true; this.buttonCancel.Name = "buttonCancel"; this.buttonCancel.UseStock = true; this.buttonCancel.UseUnderline = true; this.buttonCancel.Label = "gtk-cancel"; base.AddActionWidget(this.buttonCancel, -6); ButtonBox.ButtonBoxChild buttonBoxChild = (ButtonBox.ButtonBoxChild)actionArea[this.buttonCancel]; buttonBoxChild.Expand = false; buttonBoxChild.Fill = false; this.buttonOk = new Button(); this.buttonOk.CanDefault = true; this.buttonOk.CanFocus = true; this.buttonOk.Name = "buttonOk"; this.buttonOk.UseStock = true; this.buttonOk.UseUnderline = true; this.buttonOk.Label = "gtk-ok"; base.AddActionWidget(this.buttonOk, -5); ButtonBox.ButtonBoxChild buttonBoxChild2 = (ButtonBox.ButtonBoxChild)actionArea[this.buttonOk]; buttonBoxChild2.Position = 1; buttonBoxChild2.Expand = false; buttonBoxChild2.Fill = false; if (base.Child != null) { base.Child.ShowAll(); } base.DefaultWidth = 500; base.DefaultHeight = 140; base.Show(); }
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() { Gui.Initialize(this); base.Name = "CocoStudio.ControlLib.Windows.NewProjectDialog"; base.WindowPosition = WindowPosition.CenterOnParent; VBox vBox = base.VBox; vBox.Name = "dialog1_VBox"; vBox.BorderWidth = 2u; this.evtbx_border = new EventBox(); this.evtbx_border.Name = "evtbx_border"; this.evtbx_border.BorderWidth = 12u; this.table1 = new Table(2u, 2u, false); this.table1.Name = "table1"; this.table1.RowSpacing = 6u; this.table1.ColumnSpacing = 6u; this.entry_Name = new Entry(); this.entry_Name.CanFocus = true; this.entry_Name.Name = "entry_Name"; this.entry_Name.IsEditable = true; this.entry_Name.InvisibleChar = '●'; this.table1.Add(this.entry_Name); Table.TableChild tableChild = (Table.TableChild) this.table1[this.entry_Name]; tableChild.LeftAttach = 1u; tableChild.RightAttach = 2u; tableChild.YOptions = AttachOptions.Fill; this.hbox3 = new HBox(); this.hbox3.Name = "hbox3"; this.hbox3.Spacing = 6; this.entry_Path = new Entry(); this.entry_Path.CanFocus = true; this.entry_Path.Name = "entry_Path"; this.entry_Path.IsEditable = true; this.entry_Path.InvisibleChar = '●'; this.hbox3.Add(this.entry_Path); Box.BoxChild boxChild = (Box.BoxChild) this.hbox3[this.entry_Path]; boxChild.Position = 0; this.button_Browse = new Button(); this.button_Browse.CanFocus = true; this.button_Browse.Name = "button_Browse"; this.button_Browse.UseUnderline = true; this.button_Browse.Label = Catalog.GetString("浏览"); this.hbox3.Add(this.button_Browse); Box.BoxChild boxChild2 = (Box.BoxChild) this.hbox3[this.button_Browse]; boxChild2.Position = 1; boxChild2.Expand = false; boxChild2.Fill = false; this.table1.Add(this.hbox3); Table.TableChild tableChild2 = (Table.TableChild) this.table1[this.hbox3]; tableChild2.TopAttach = 1u; tableChild2.BottomAttach = 2u; tableChild2.LeftAttach = 1u; tableChild2.RightAttach = 2u; tableChild2.YOptions = AttachOptions.Fill; this.label_Name = new Label(); this.label_Name.Name = "label_Name"; this.label_Name.Xalign = 1f; this.label_Name.LabelProp = Catalog.GetString("项目名称"); this.table1.Add(this.label_Name); Table.TableChild tableChild3 = (Table.TableChild) this.table1[this.label_Name]; tableChild3.XOptions = AttachOptions.Fill; tableChild3.YOptions = AttachOptions.Fill; this.label_Path = new Label(); this.label_Path.Name = "label_Path"; this.label_Path.Xalign = 1f; this.label_Path.LabelProp = Catalog.GetString("项目路径"); this.table1.Add(this.label_Path); Table.TableChild tableChild4 = (Table.TableChild) this.table1[this.label_Path]; tableChild4.TopAttach = 1u; tableChild4.BottomAttach = 2u; tableChild4.XOptions = AttachOptions.Fill; tableChild4.YOptions = AttachOptions.Fill; this.evtbx_border.Add(this.table1); vBox.Add(this.evtbx_border); Box.BoxChild boxChild3 = (Box.BoxChild)vBox[this.evtbx_border]; boxChild3.Position = 0; boxChild3.Expand = false; boxChild3.Fill = false; HButtonBox actionArea = base.ActionArea; actionArea.Name = "dialog1_ActionArea"; actionArea.Spacing = 10; actionArea.BorderWidth = 5u; actionArea.LayoutStyle = ButtonBoxStyle.End; this.hbox_cancelOKBox = new HBox(); this.hbox_cancelOKBox.Name = "hbox_cancelOKBox"; this.hbox_cancelOKBox.Spacing = 6; this.buttonCancel = new Button(); this.buttonCancel.WidthRequest = 80; this.buttonCancel.CanDefault = true; this.buttonCancel.CanFocus = true; this.buttonCancel.Name = "buttonCancel"; this.buttonCancel.UseStock = true; this.buttonCancel.UseUnderline = true; this.buttonCancel.Label = "gtk-cancel"; this.hbox_cancelOKBox.Add(this.buttonCancel); Box.BoxChild boxChild4 = (Box.BoxChild) this.hbox_cancelOKBox[this.buttonCancel]; boxChild4.Position = 0; boxChild4.Expand = false; boxChild4.Fill = false; this.buttonOk = new Button(); this.buttonOk.WidthRequest = 80; this.buttonOk.CanDefault = true; this.buttonOk.CanFocus = true; this.buttonOk.Name = "buttonOk"; this.buttonOk.UseStock = true; this.buttonOk.UseUnderline = true; this.buttonOk.Label = "gtk-ok"; this.hbox_cancelOKBox.Add(this.buttonOk); Box.BoxChild boxChild5 = (Box.BoxChild) this.hbox_cancelOKBox[this.buttonOk]; boxChild5.Position = 1; boxChild5.Expand = false; boxChild5.Fill = false; actionArea.Add(this.hbox_cancelOKBox); ButtonBox.ButtonBoxChild buttonBoxChild = (ButtonBox.ButtonBoxChild)actionArea[this.hbox_cancelOKBox]; buttonBoxChild.Expand = false; buttonBoxChild.Fill = false; if (base.Child != null) { base.Child.ShowAll(); } base.DefaultWidth = 363; base.DefaultHeight = 134; base.Show(); }
protected virtual void Build() { Gui.Initialize(this); base.Name = "CocoStudio.ControlLib.Windows.CustomCanvasDialog"; base.WindowPosition = WindowPosition.CenterOnParent; VBox vBox = base.VBox; vBox.Name = "dialog1_VBox"; vBox.BorderWidth = 2u; this.alignment1 = new Alignment(0.5f, 0.5f, 1f, 1f); this.alignment1.Name = "alignment1"; this.alignment1.TopPadding = 15u; this.hbox_root = new HBox(); this.hbox_root.Name = "hbox_root"; this.hbox_root.Spacing = 40; this.hbox_root.BorderWidth = 10u; this.hbox2 = new HBox(); this.hbox2.Name = "hbox2"; this.hbox2.Spacing = 6; this.label_Width = new Label(); this.label_Width.Name = "label_Width"; this.label_Width.LabelProp = Catalog.GetString("宽:"); this.hbox2.Add(this.label_Width); Box.BoxChild boxChild = (Box.BoxChild) this.hbox2[this.label_Width]; boxChild.Position = 0; boxChild.Expand = false; boxChild.Fill = false; this.hbox_root.Add(this.hbox2); Box.BoxChild boxChild2 = (Box.BoxChild) this.hbox_root[this.hbox2]; boxChild2.Position = 0; this.hbox3 = new HBox(); this.hbox3.Name = "hbox3"; this.hbox3.Spacing = 6; this.label_Height = new Label(); this.label_Height.Name = "label_Height"; this.label_Height.LabelProp = Catalog.GetString("高:"); this.hbox3.Add(this.label_Height); Box.BoxChild boxChild3 = (Box.BoxChild) this.hbox3[this.label_Height]; boxChild3.Position = 0; boxChild3.Expand = false; boxChild3.Fill = false; this.hbox_root.Add(this.hbox3); Box.BoxChild boxChild4 = (Box.BoxChild) this.hbox_root[this.hbox3]; boxChild4.Position = 1; this.alignment1.Add(this.hbox_root); vBox.Add(this.alignment1); Box.BoxChild boxChild5 = (Box.BoxChild)vBox[this.alignment1]; boxChild5.Position = 0; boxChild5.Expand = false; boxChild5.Fill = false; HButtonBox actionArea = base.ActionArea; actionArea.Name = "dialog1_ActionArea"; actionArea.Spacing = 10; actionArea.BorderWidth = 5u; actionArea.LayoutStyle = ButtonBoxStyle.End; this.buttonCancel = new Button(); this.buttonCancel.CanDefault = true; this.buttonCancel.CanFocus = true; this.buttonCancel.Name = "buttonCancel"; this.buttonCancel.UseStock = true; this.buttonCancel.UseUnderline = true; this.buttonCancel.Label = "gtk-cancel"; base.AddActionWidget(this.buttonCancel, -6); ButtonBox.ButtonBoxChild buttonBoxChild = (ButtonBox.ButtonBoxChild)actionArea[this.buttonCancel]; buttonBoxChild.Expand = false; buttonBoxChild.Fill = false; this.buttonOk = new Button(); this.buttonOk.CanDefault = true; this.buttonOk.CanFocus = true; this.buttonOk.Name = "buttonOk"; this.buttonOk.UseStock = true; this.buttonOk.UseUnderline = true; this.buttonOk.Label = "gtk-ok"; base.AddActionWidget(this.buttonOk, -5); ButtonBox.ButtonBoxChild buttonBoxChild2 = (ButtonBox.ButtonBoxChild)actionArea[this.buttonOk]; buttonBoxChild2.Position = 1; buttonBoxChild2.Expand = false; buttonBoxChild2.Fill = false; if (base.Child != null) { base.Child.ShowAll(); } base.DefaultWidth = 340; base.DefaultHeight = 140; base.Show(); }
protected virtual void Build() { // Widget BizeeBirdBoarding.Ui.AppointmentDialog Name = "BizeeBirdBoarding.Ui.AppointmentDialog"; Title = "New Appointment"; WindowPosition = WindowPosition.CenterOnParent; // Internal child BizeeBirdBoarding.Ui.AppointmentDialog.VBox VBox w1 = VBox; w1.Name = "topLevelVbox"; w1.BorderWidth = 2; // Container child topLevelVbox.Box+BoxChild topLevelTable = new Table(7, 2, false); topLevelTable.Name = "topLevelTable"; topLevelTable.RowSpacing = 6; topLevelTable.ColumnSpacing = 6; // Container child topLevelTable.Table+TableChild birdLabel = new Label(); birdLabel.Name = "birdLabel"; birdLabel.LabelProp = "Bird"; topLevelTable.Add(birdLabel); Table.TableChild w2 = (Table.TableChild)topLevelTable[birdLabel]; w2.TopAttach = 1; w2.BottomAttach = 2; w2.XOptions = AttachOptions.Fill; w2.YOptions = AttachOptions.Fill; // Container child topLevelTable.Table+TableChild birdScrolledWindow = new ScrolledWindow(); birdScrolledWindow.HeightRequest = 125; birdScrolledWindow.CanFocus = true; birdScrolledWindow.Name = "birdScrolledWindow"; birdScrolledWindow.VscrollbarPolicy = PolicyType.Never; birdScrolledWindow.ShadowType = ShadowType.In; // Container child birdScrolledWindow.Container+ContainerChild Viewport w3 = new Viewport(); w3.ShadowType = ShadowType.None; // Container child GtkViewport.Container+ContainerChild birdHBox = new HBox(); birdHBox.Name = "birdHBox"; birdHBox.Spacing = 6; w3.Add(birdHBox); birdScrolledWindow.Add(w3); topLevelTable.Add(birdScrolledWindow); Table.TableChild w6 = (Table.TableChild)topLevelTable[birdScrolledWindow]; w6.TopAttach = 1; w6.BottomAttach = 2; w6.LeftAttach = 1; w6.RightAttach = 2; w6.XOptions = AttachOptions.Fill; w6.YOptions = AttachOptions.Fill; // Container child topLevelTable.Table+TableChild boardingRateEntry = new Entry(); boardingRateEntry.Sensitive = false; boardingRateEntry.CanFocus = true; boardingRateEntry.Name = "boardingRateEntry"; boardingRateEntry.IsEditable = true; topLevelTable.Add(boardingRateEntry); Table.TableChild w7 = (Table.TableChild)topLevelTable[boardingRateEntry]; w7.TopAttach = 2; w7.BottomAttach = 3; w7.LeftAttach = 1; w7.RightAttach = 2; w7.XOptions = AttachOptions.Fill; w7.YOptions = AttachOptions.Fill; // Container child topLevelTable.Table+TableChild boardingRateLabel = new Label(); boardingRateLabel.Name = "boardingRateLabel"; boardingRateLabel.LabelProp = "Boarding Rate"; topLevelTable.Add(boardingRateLabel); Table.TableChild w8 = (Table.TableChild)topLevelTable[boardingRateLabel]; w8.TopAttach = 2; w8.BottomAttach = 3; w8.XOptions = AttachOptions.Fill; w8.YOptions = AttachOptions.Fill; // Container child topLevelTable.Table+TableChild customerCombobox = ComboBoxEntry.NewText(); customerCombobox.Name = "customerCombobox"; topLevelTable.Add(customerCombobox); Table.TableChild w9 = (Table.TableChild)topLevelTable[customerCombobox]; w9.LeftAttach = 1; w9.RightAttach = 2; w9.XOptions = AttachOptions.Fill; w9.YOptions = AttachOptions.Fill; // Container child topLevelTable.Table+TableChild customerLabel = new Label(); customerLabel.Name = "customerLabel"; customerLabel.LabelProp = "Customer"; topLevelTable.Add(customerLabel); Table.TableChild w10 = (Table.TableChild)topLevelTable[customerLabel]; w10.XOptions = AttachOptions.Fill; w10.YOptions = AttachOptions.Fill; // Container child topLevelTable.Table+TableChild endDateContainer = new Alignment(0.5F, 0.5F, 1F, 1F); endDateContainer.Name = "endDateContainer"; topLevelTable.Add(endDateContainer); Table.TableChild w11 = (Table.TableChild)topLevelTable[endDateContainer]; w11.TopAttach = 4; w11.BottomAttach = 5; w11.LeftAttach = 1; w11.RightAttach = 2; w11.XOptions = AttachOptions.Fill; w11.YOptions = AttachOptions.Fill; // Container child topLevelTable.Table+TableChild endDateLabel = new Label(); endDateLabel.Name = "endDateLabel"; endDateLabel.LabelProp = "End Date"; topLevelTable.Add(endDateLabel); Table.TableChild w12 = (Table.TableChild)topLevelTable[endDateLabel]; w12.TopAttach = 4; w12.BottomAttach = 5; w12.XOptions = AttachOptions.Fill; w12.YOptions = AttachOptions.Fill; // Container child topLevelTable.Table+TableChild notesLabel = new Label(); notesLabel.Name = "notesLabel"; notesLabel.LabelProp = "Notes"; topLevelTable.Add(notesLabel); Table.TableChild w13 = (Table.TableChild)topLevelTable[notesLabel]; w13.TopAttach = 6; w13.BottomAttach = 7; w13.XOptions = AttachOptions.Fill; w13.YOptions = AttachOptions.Fill; // Container child topLevelTable.Table+TableChild notesScrolledWindow = new ScrolledWindow(); notesScrolledWindow.Name = "notesScrolledWindow"; notesScrolledWindow.ShadowType = ShadowType.In; // Container child notesScrolledWindow.Container+ContainerChild notesTextView = new TextView(); notesTextView.CanFocus = true; notesTextView.Name = "notesTextView"; notesScrolledWindow.Add(notesTextView); topLevelTable.Add(notesScrolledWindow); Table.TableChild w15 = (Table.TableChild)topLevelTable[notesScrolledWindow]; w15.TopAttach = 6; w15.BottomAttach = 7; w15.LeftAttach = 1; w15.RightAttach = 2; w15.XOptions = ((AttachOptions)(7)); // Container child topLevelTable.Table+TableChild startDateContainer = new Alignment(0.5F, 0.5F, 1F, 1F); startDateContainer.Name = "startDateContainer"; topLevelTable.Add(startDateContainer); Table.TableChild w16 = (Table.TableChild)topLevelTable[startDateContainer]; w16.TopAttach = 3; w16.BottomAttach = 4; w16.LeftAttach = 1; w16.RightAttach = 2; w16.XOptions = AttachOptions.Fill; w16.YOptions = AttachOptions.Fill; // Container child topLevelTable.Table+TableChild startDateLabel = new Label(); startDateLabel.Name = "startDateLabel"; startDateLabel.LabelProp = "Start Date"; topLevelTable.Add(startDateLabel); Table.TableChild w17 = (Table.TableChild)topLevelTable[startDateLabel]; w17.TopAttach = 3; w17.BottomAttach = 4; w17.XOptions = AttachOptions.Fill; w17.YOptions = AttachOptions.Fill; // Container child topLevelTable.Table+TableChild statusCombobox = ComboBox.NewText(); statusCombobox.AppendText("Scheduled"); statusCombobox.AppendText("Checked In"); statusCombobox.AppendText("Checked Out"); statusCombobox.AppendText("Cancelled"); statusCombobox.AppendText("No-Show"); statusCombobox.Name = "statusCombobox"; statusCombobox.Active = 0; topLevelTable.Add(statusCombobox); Table.TableChild w18 = (Table.TableChild)topLevelTable[statusCombobox]; w18.TopAttach = 5; w18.BottomAttach = 6; w18.LeftAttach = 1; w18.RightAttach = 2; w18.YOptions = AttachOptions.Fill; // Container child topLevelTable.Table+TableChild statusLabel = new Label(); statusLabel.Name = "statusLabel"; statusLabel.LabelProp = "Status"; topLevelTable.Add(statusLabel); Table.TableChild w19 = (Table.TableChild)topLevelTable[statusLabel]; w19.TopAttach = 5; w19.BottomAttach = 6; w19.XOptions = AttachOptions.Fill; w19.YOptions = AttachOptions.Fill; w1.Add(topLevelTable); Box.BoxChild w20 = (Box.BoxChild)w1[topLevelTable]; w20.Position = 0; // Internal child BizeeBirdBoarding.Ui.AppointmentDialog.ActionArea HButtonBox w21 = ActionArea; w21.Name = "actionArea"; w21.Spacing = 10; w21.BorderWidth = 5; w21.LayoutStyle = ButtonBoxStyle.End; // Container child actionArea.ButtonBox+ButtonBoxChild buttonCancel = new Button(); buttonCancel.CanDefault = true; buttonCancel.CanFocus = true; buttonCancel.Name = "buttonCancel"; buttonCancel.UseStock = true; buttonCancel.UseUnderline = true; buttonCancel.Label = "gtk-cancel"; AddActionWidget(buttonCancel, -6); ButtonBox.ButtonBoxChild w22 = (ButtonBox.ButtonBoxChild)w21[buttonCancel]; w22.Expand = false; w22.Fill = false; // Container child actionArea.ButtonBox+ButtonBoxChild buttonOk = new Button(); buttonOk.CanDefault = true; buttonOk.CanFocus = true; buttonOk.Name = "buttonOk"; buttonOk.UseStock = true; buttonOk.UseUnderline = true; buttonOk.Label = "gtk-ok"; AddActionWidget(buttonOk, -5); ButtonBox.ButtonBoxChild w23 = (ButtonBox.ButtonBoxChild)w21[buttonOk]; w23.Position = 1; w23.Expand = false; w23.Fill = false; if (Child != null) { Child.ShowAll(); } DefaultWidth = 400; DefaultHeight = 684; Show(); customerCombobox.Changed += new System.EventHandler(onCustomerComboChanged); buttonCancel.Clicked += new System.EventHandler(onCancelButtonClicked); buttonOk.Clicked += new System.EventHandler(onOkButtonClicked); }
protected virtual void Build() { // Widget BizeeBirdBoarding.Ui.CustomerDialog Name = "BizeeBirdBoarding.Ui.CustomerDialog"; Title = "New Customer"; WindowPosition = WindowPosition.CenterOnParent; // Internal child BizeeBirdBoarding.Ui.CustomerDialog.VBox VBox w1 = VBox; w1.Name = "newCustomerDialog_VBox"; w1.BorderWidth = 2; // Container child newCustomerDialog_VBox.Box+BoxChild toplevelVbox = new VBox(); toplevelVbox.Name = "toplevelVbox"; toplevelVbox.Spacing = 6; // Container child toplevelVbox.Box+BoxChild topTable = new Table(5, 2, false); topTable.Name = "topTable"; topTable.RowSpacing = 6; topTable.ColumnSpacing = 6; // Container child topTable.Table+TableChild boardingRateLabel = new Label(); boardingRateLabel.Name = "boardingRateLabel"; boardingRateLabel.LabelProp = "Boarding Rate"; topTable.Add(boardingRateLabel); Table.TableChild w2 = (Table.TableChild)topTable[boardingRateLabel]; w2.TopAttach = 3; w2.BottomAttach = 4; w2.XOptions = AttachOptions.Fill; w2.YOptions = AttachOptions.Fill; // Container child topTable.Table+TableChild boardingRateSpinButton = new SpinButton(0D, 100D, 1D); boardingRateSpinButton.CanFocus = true; boardingRateSpinButton.Name = "boardingRateSpinButton"; boardingRateSpinButton.Adjustment.PageIncrement = 10D; boardingRateSpinButton.ClimbRate = 1D; boardingRateSpinButton.Digits = 2; boardingRateSpinButton.Numeric = true; topTable.Add(boardingRateSpinButton); Table.TableChild w3 = (Table.TableChild)topTable[boardingRateSpinButton]; w3.TopAttach = 3; w3.BottomAttach = 4; w3.LeftAttach = 1; w3.RightAttach = 2; w3.YOptions = AttachOptions.Fill; // Container child topTable.Table+TableChild customerNameEntry = new Entry(); customerNameEntry.CanFocus = true; customerNameEntry.Name = "customerNameEntry"; customerNameEntry.IsEditable = true; topTable.Add(customerNameEntry); Table.TableChild w4 = ((Table.TableChild)(topTable[customerNameEntry])); w4.LeftAttach = 1; w4.RightAttach = 2; w4.YOptions = AttachOptions.Fill; // Container child topTable.Table+TableChild customerNotesLabel = new Label(); customerNotesLabel.Name = "customerNotesLabel"; customerNotesLabel.LabelProp = "Notes"; topTable.Add(customerNotesLabel); Table.TableChild w5 = ((Table.TableChild)(topTable[customerNotesLabel])); w5.TopAttach = 4; w5.BottomAttach = 5; w5.XOptions = AttachOptions.Fill; w5.YOptions = AttachOptions.Fill; // Container child topTable.Table+TableChild customerNotesScrolledWindow = new ScrolledWindow(); customerNotesScrolledWindow.Name = "customerNotesScrolledWindow"; customerNotesScrolledWindow.ShadowType = ShadowType.In; // Container child customerNotesScrolledWindow.Container+ContainerChild customerNotesTextView = new TextView(); customerNotesTextView.CanFocus = true; customerNotesTextView.Name = "customerNotesTextView"; customerNotesScrolledWindow.Add(customerNotesTextView); topTable.Add(customerNotesScrolledWindow); Table.TableChild w7 = ((Table.TableChild)(topTable[customerNotesScrolledWindow])); w7.TopAttach = 4; w7.BottomAttach = 5; w7.LeftAttach = 1; w7.RightAttach = 2; // Container child topTable.Table+TableChild emailEntry = new Entry(); emailEntry.CanFocus = true; emailEntry.Name = "emailEntry"; emailEntry.IsEditable = true; topTable.Add(emailEntry); Table.TableChild w8 = (Table.TableChild)topTable[emailEntry]; w8.TopAttach = 2; w8.BottomAttach = 3; w8.LeftAttach = 1; w8.RightAttach = 2; w8.YOptions = AttachOptions.Fill; // Container child topTable.Table+TableChild emailLabel = new Label(); emailLabel.Name = "emailLabel"; emailLabel.LabelProp = "E-mail"; topTable.Add(emailLabel); Table.TableChild w9 = (Table.TableChild)topTable[emailLabel]; w9.TopAttach = 2; w9.BottomAttach = 3; w9.XOptions = AttachOptions.Fill; w9.YOptions = AttachOptions.Fill; // Container child topTable.Table+TableChild nameLabel = new Label(); nameLabel.Name = "nameLabel"; nameLabel.LabelProp = "Name"; topTable.Add(nameLabel); Table.TableChild w10 = (Table.TableChild)topTable[nameLabel]; w10.XOptions = AttachOptions.Fill; w10.YOptions = AttachOptions.Fill; // Container child topTable.Table+TableChild phoneNumberContainerVbox = new VBox(); phoneNumberContainerVbox.Name = "phoneNumberContainerVbox"; phoneNumberContainerVbox.Spacing = 6; topTable.Add(phoneNumberContainerVbox); Table.TableChild w11 = (Table.TableChild)topTable[phoneNumberContainerVbox]; w11.TopAttach = 1; w11.BottomAttach = 2; w11.LeftAttach = 1; w11.RightAttach = 2; w11.XOptions = AttachOptions.Fill; w11.YOptions = AttachOptions.Fill; // Container child topTable.Table+TableChild phoneNumberLabel = new Label(); phoneNumberLabel.Name = "phoneNumberLabel"; phoneNumberLabel.LabelProp = "Phone Number"; topTable.Add(phoneNumberLabel); Table.TableChild w12 = (Table.TableChild)topTable[phoneNumberLabel]; w12.TopAttach = 1; w12.BottomAttach = 2; w12.XOptions = AttachOptions.Fill; w12.YOptions = AttachOptions.Fill; toplevelVbox.Add(topTable); Box.BoxChild w13 = (Box.BoxChild)toplevelVbox[topTable]; w13.Position = 0; // Container child toplevelVbox.Box+BoxChild birdsFrame = new Frame(); birdsFrame.Name = "birdsFrame"; birdsFrame.ShadowType = ShadowType.In; // Container child birdsFrame.Container+ContainerChild birdsGtkAlignment = new Alignment(0F, 0F, 1F, 1F); birdsGtkAlignment.Name = "birdsGtkAlignment"; birdsGtkAlignment.LeftPadding = 12; // Container child birdsGtkAlignment.Container+ContainerChild birdsHbox = new HBox(); birdsHbox.Name = "birdsHbox"; birdsHbox.Spacing = 6; // Container child birdsHbox.Box+BoxChild birdsVBox = new VBox(); birdsVBox.Name = "birdsVBox"; birdsVBox.Spacing = 6; // Container child birdsVBox.Box+BoxChild GtkScrolledWindow = new ScrolledWindow(); GtkScrolledWindow.Name = "GtkScrolledWindow"; GtkScrolledWindow.ShadowType = ShadowType.In; // Container child GtkScrolledWindow.Container+ContainerChild birdsTreeView = new TreeView(); birdsTreeView.WidthRequest = 300; birdsTreeView.CanFocus = true; birdsTreeView.Name = "birdsTreeView"; GtkScrolledWindow.Add(birdsTreeView); birdsVBox.Add(GtkScrolledWindow); Box.BoxChild w15 = (Box.BoxChild)birdsVBox[GtkScrolledWindow]; w15.Position = 0; // Container child birdsVBox.Box+BoxChild birdsButtonBox = new HButtonBox(); birdsButtonBox.Name = "birdsButtonBox"; // Container child birdsButtonBox.ButtonBox+ButtonBoxChild addBirdButton = new Button(); addBirdButton.CanFocus = true; addBirdButton.Name = "addBirdButton"; addBirdButton.UseStock = true; addBirdButton.UseUnderline = true; addBirdButton.Label = "gtk-add"; birdsButtonBox.Add(addBirdButton); ButtonBox.ButtonBoxChild w16 = (ButtonBox.ButtonBoxChild)birdsButtonBox[addBirdButton]; w16.Expand = false; w16.Fill = false; // Container child birdsButtonBox.ButtonBox+ButtonBoxChild removeBirdButton = new Button(); removeBirdButton.CanFocus = true; removeBirdButton.Name = "removeBirdButton"; removeBirdButton.UseStock = true; removeBirdButton.UseUnderline = true; removeBirdButton.Label = "gtk-remove"; birdsButtonBox.Add(removeBirdButton); ButtonBox.ButtonBoxChild w17 = (ButtonBox.ButtonBoxChild)birdsButtonBox[removeBirdButton]; w17.Position = 1; w17.Expand = false; w17.Fill = false; birdsVBox.Add(birdsButtonBox); Box.BoxChild w18 = (Box.BoxChild)birdsVBox[birdsButtonBox]; w18.Position = 1; w18.Expand = false; w18.Fill = false; birdsHbox.Add(birdsVBox); Box.BoxChild w19 = (Box.BoxChild)birdsHbox[birdsVBox]; w19.Position = 0; // Container child birdsHbox.Box+BoxChild birdsTable = new Table(6, 2, false); birdsTable.Name = "birdsTable"; birdsTable.RowSpacing = 6; birdsTable.ColumnSpacing = 6; // Container child birdsTable.Table+TableChild birdAgeLabel = new Label(); birdAgeLabel.Name = "birdAgeLabel"; birdAgeLabel.LabelProp = "Age"; birdsTable.Add(birdAgeLabel); Table.TableChild w20 = (Table.TableChild)birdsTable[birdAgeLabel]; w20.TopAttach = 3; w20.BottomAttach = 4; w20.XOptions = AttachOptions.Fill; w20.YOptions = AttachOptions.Fill; // Container child birdsTable.Table+TableChild birdAgeSpinButton = new SpinButton(0D, 100D, 1D); birdAgeSpinButton.CanFocus = true; birdAgeSpinButton.Name = "birdAgeSpinButton"; birdAgeSpinButton.Adjustment.PageIncrement = 10D; birdAgeSpinButton.ClimbRate = 1D; birdAgeSpinButton.Numeric = true; birdsTable.Add(birdAgeSpinButton); Table.TableChild w21 = (Table.TableChild)birdsTable[birdAgeSpinButton]; w21.TopAttach = 3; w21.BottomAttach = 4; w21.LeftAttach = 1; w21.RightAttach = 2; w21.YOptions = AttachOptions.Fill; // Container child birdsTable.Table+TableChild birdBreedEntry = new Entry(); birdBreedEntry.CanFocus = true; birdBreedEntry.Name = "birdBreedEntry"; birdBreedEntry.IsEditable = true; birdsTable.Add(birdBreedEntry); Table.TableChild w22 = (Table.TableChild)birdsTable[birdBreedEntry]; w22.TopAttach = 1; w22.BottomAttach = 2; w22.LeftAttach = 1; w22.RightAttach = 2; w22.YOptions = AttachOptions.Fill; // Container child birdsTable.Table+TableChild birdBreedLabel = new Label(); birdBreedLabel.Name = "birdBreedLabel"; birdBreedLabel.LabelProp = "Breed"; birdsTable.Add(birdBreedLabel); Table.TableChild w23 = (Table.TableChild)birdsTable[birdBreedLabel]; w23.TopAttach = 1; w23.BottomAttach = 2; w23.XOptions = AttachOptions.Fill; w23.YOptions = AttachOptions.Fill; // Container child birdsTable.Table+TableChild birdColorEntry = new Entry(); birdColorEntry.CanFocus = true; birdColorEntry.Name = "birdColorEntry"; birdColorEntry.IsEditable = true; birdsTable.Add(birdColorEntry); Table.TableChild w24 = (Table.TableChild)birdsTable[birdColorEntry]; w24.TopAttach = 2; w24.BottomAttach = 3; w24.LeftAttach = 1; w24.RightAttach = 2; w24.YOptions = AttachOptions.Fill; // Container child birdsTable.Table+TableChild birdColorLabel = new Label(); birdColorLabel.Name = "birdColorLabel"; birdColorLabel.LabelProp = "Color"; birdsTable.Add(birdColorLabel); Table.TableChild w25 = (Table.TableChild)birdsTable[birdColorLabel]; w25.TopAttach = 2; w25.BottomAttach = 3; w25.XOptions = AttachOptions.Fill; w25.YOptions = AttachOptions.Fill; // Container child birdsTable.Table+TableChild birdGenderHbox = new HBox(); birdGenderHbox.Name = "birdGenderHbox"; birdGenderHbox.Spacing = 6; // Container child birdGenderHbox.Box+BoxChild birdGenderMaleRadioButton = new RadioButton("Male"); birdGenderMaleRadioButton.CanFocus = true; birdGenderMaleRadioButton.Name = "birdGenderMaleRadioButton"; birdGenderMaleRadioButton.DrawIndicator = true; birdGenderMaleRadioButton.UseUnderline = true; birdGenderMaleRadioButton.Group = new GLib.SList(System.IntPtr.Zero); birdGenderHbox.Add(birdGenderMaleRadioButton); Box.BoxChild w26 = (Box.BoxChild)birdGenderHbox[birdGenderMaleRadioButton]; w26.Position = 0; // Container child birdGenderHbox.Box+BoxChild birdGenderFemaleRadioButton = new RadioButton("Female"); birdGenderFemaleRadioButton.CanFocus = true; birdGenderFemaleRadioButton.Name = "birdGenderFemaleRadioButton"; birdGenderFemaleRadioButton.DrawIndicator = true; birdGenderFemaleRadioButton.UseUnderline = true; birdGenderFemaleRadioButton.Group = birdGenderMaleRadioButton.Group; birdGenderHbox.Add(birdGenderFemaleRadioButton); Box.BoxChild w27 = (Box.BoxChild)birdGenderHbox[birdGenderFemaleRadioButton]; w27.Position = 1; birdsTable.Add(birdGenderHbox); Table.TableChild w28 = (Table.TableChild)birdsTable[birdGenderHbox]; w28.TopAttach = 4; w28.BottomAttach = 5; w28.LeftAttach = 1; w28.RightAttach = 2; w28.YOptions = AttachOptions.Fill; // Container child birdsTable.Table+TableChild birdGenderLabel = new Label(); birdGenderLabel.Name = "birdGenderLabel"; birdGenderLabel.LabelProp = "Gender"; birdsTable.Add(birdGenderLabel); Table.TableChild w29 = (Table.TableChild)birdsTable[birdGenderLabel]; w29.TopAttach = 4; w29.BottomAttach = 5; w29.XOptions = AttachOptions.Fill; w29.YOptions = AttachOptions.Fill; // Container child birdsTable.Table+TableChild birdNameEntry = new Entry(); birdNameEntry.CanFocus = true; birdNameEntry.Name = "birdNameEntry"; birdNameEntry.IsEditable = true; birdsTable.Add(birdNameEntry); Table.TableChild w30 = (Table.TableChild)birdsTable[birdNameEntry]; w30.LeftAttach = 1; w30.RightAttach = 2; w30.YOptions = AttachOptions.Fill; // Container child birdsTable.Table+TableChild birdNameLabel = new Label(); birdNameLabel.Name = "birdNameLabel"; birdNameLabel.LabelProp = "Name"; birdsTable.Add(birdNameLabel); Table.TableChild w31 = (Table.TableChild)birdsTable[birdNameLabel]; w31.XOptions = AttachOptions.Fill; w31.YOptions = AttachOptions.Fill; // Container child birdsTable.Table+TableChild birdNotesLabel = new Label(); birdNotesLabel.Name = "birdNotesLabel"; birdNotesLabel.LabelProp = "Notes"; birdsTable.Add(birdNotesLabel); Table.TableChild w32 = (Table.TableChild)birdsTable[birdNotesLabel]; w32.TopAttach = 5; w32.BottomAttach = 6; w32.XOptions = AttachOptions.Fill; w32.YOptions = AttachOptions.Fill; // Container child birdsTable.Table+TableChild birdNotesScrolledWindow = new ScrolledWindow(); birdNotesScrolledWindow.Name = "birdNotesScrolledWindow"; birdNotesScrolledWindow.ShadowType = ShadowType.In; // Container child birdNotesScrolledWindow.Container+ContainerChild birdNotesTextView = new TextView(); birdNotesTextView.CanFocus = true; birdNotesTextView.Name = "birdNotesTextView"; birdNotesScrolledWindow.Add(birdNotesTextView); birdsTable.Add(birdNotesScrolledWindow); Table.TableChild w34 = (Table.TableChild)birdsTable[birdNotesScrolledWindow]; w34.TopAttach = 5; w34.BottomAttach = 6; w34.LeftAttach = 1; w34.RightAttach = 2; birdsHbox.Add(birdsTable); Box.BoxChild w35 = (Box.BoxChild)birdsHbox[birdsTable]; w35.Position = 1; birdsGtkAlignment.Add(birdsHbox); birdsFrame.Add(birdsGtkAlignment); birdsFrameLabel = new Label(); birdsFrameLabel.Name = "birdsFrameLabel"; birdsFrameLabel.LabelProp = "<b>Birds</b>"; birdsFrameLabel.UseMarkup = true; birdsFrame.LabelWidget = birdsFrameLabel; toplevelVbox.Add(birdsFrame); Box.BoxChild w38 = (Box.BoxChild)toplevelVbox[birdsFrame]; w38.Position = 1; w1.Add(toplevelVbox); Box.BoxChild w39 = (Box.BoxChild)w1[toplevelVbox]; w39.Position = 0; // Internal child BizeeBirdBoarding.Ui.CustomerDialog.ActionArea HButtonBox w40 = ActionArea; w40.Name = "newCustomerDialog_ActionArea"; w40.Spacing = 10; w40.BorderWidth = 5; w40.LayoutStyle = ButtonBoxStyle.End; // Container child newCustomerDialog_ActionArea.ButtonBox+ButtonBoxChild buttonCancel = new Button(); buttonCancel.CanDefault = true; buttonCancel.CanFocus = true; buttonCancel.Name = "buttonCancel"; buttonCancel.UseStock = true; buttonCancel.UseUnderline = true; buttonCancel.Label = "gtk-cancel"; AddActionWidget(buttonCancel, -6); ButtonBox.ButtonBoxChild w41 = (ButtonBox.ButtonBoxChild)w40[buttonCancel]; w41.Expand = false; w41.Fill = false; // Container child newCustomerDialog_ActionArea.ButtonBox+ButtonBoxChild buttonOk = new Button(); buttonOk.CanDefault = true; buttonOk.CanFocus = true; buttonOk.Name = "buttonOk"; buttonOk.UseStock = true; buttonOk.UseUnderline = true; buttonOk.Label = "gtk-ok"; AddActionWidget(buttonOk, -5); ButtonBox.ButtonBoxChild w42 = (ButtonBox.ButtonBoxChild)w40[buttonOk]; w42.Position = 1; w42.Expand = false; w42.Fill = false; if ((Child != null)) { Child.ShowAll(); } DefaultWidth = 551; DefaultHeight = 490; Show(); addBirdButton.Clicked += new System.EventHandler(onBirdAddButtonClicked); removeBirdButton.Clicked += new System.EventHandler(onBirdRemoveButtonClicked); buttonCancel.Clicked += new System.EventHandler(onCancelButtonClicked); buttonOk.Clicked += new System.EventHandler(onOkButtonClicked); }
protected virtual void Build() { Gui.Initialize((Widget)this); this.WidthRequest = 400; this.HeightRequest = 100; this.Name = "ImprotFileDialog.Dialog"; this.Title = Catalog.GetString("导入文件"); this.WindowPosition = WindowPosition.CenterOnParent; this.Resizable = false; VBox vbox = this.VBox; vbox.Name = "dialog1_VBox"; vbox.BorderWidth = 2U; this.alignment1 = new Alignment(0.5f, 0.5f, 1f, 1f); this.alignment1.Name = "alignment1"; this.alignment1.LeftPadding = 8U; this.labDescribe = new Label(); this.labDescribe.WidthRequest = 392; this.labDescribe.HeightRequest = 50; this.labDescribe.LineWrap = true; this.labDescribe.Name = "labDescribe"; this.labDescribe.LabelProp = Catalog.GetString("文件已经存在,请选择"); this.alignment1.Add((Widget)this.labDescribe); vbox.Add((Widget)this.alignment1); ((Box.BoxChild)vbox[(Widget)this.alignment1]).Position = 0; HButtonBox actionArea = this.ActionArea; actionArea.Name = "dialog1_ActionArea"; actionArea.Spacing = 10; actionArea.BorderWidth = 5U; actionArea.LayoutStyle = ButtonBoxStyle.Edge; this.ckbIsChangeAll = new CheckButton(); this.ckbIsChangeAll.CanFocus = true; this.ckbIsChangeAll.Name = "ckbIsChangeAll"; this.ckbIsChangeAll.Label = Catalog.GetString("全部应用"); this.ckbIsChangeAll.DrawIndicator = true; this.ckbIsChangeAll.UseUnderline = true; actionArea.Add((Widget)this.ckbIsChangeAll); ButtonBox.ButtonBoxChild buttonBoxChild1 = (ButtonBox.ButtonBoxChild)actionArea[(Widget)this.ckbIsChangeAll]; buttonBoxChild1.Expand = false; buttonBoxChild1.Fill = false; this.hbox4 = new HBox(); this.hbox4.Name = "hbox4"; this.hbox4.Spacing = 6; this.btnKeepBoth = new Button(); this.btnKeepBoth.WidthRequest = 65; this.btnKeepBoth.CanFocus = true; this.btnKeepBoth.Name = "btnKeepBoth"; this.btnKeepBoth.UseUnderline = true; this.btnKeepBoth.Label = Catalog.GetString("保留两者"); this.hbox4.Add((Widget)this.btnKeepBoth); Box.BoxChild boxChild1 = (Box.BoxChild) this.hbox4[(Widget)this.btnKeepBoth]; boxChild1.Position = 0; boxChild1.Expand = false; boxChild1.Fill = false; this.btnReplace = new Button(); this.btnReplace.WidthRequest = 65; this.btnReplace.CanDefault = true; this.btnReplace.CanFocus = true; this.btnReplace.Name = "btnReplace"; this.btnReplace.UseUnderline = true; this.btnReplace.Label = Catalog.GetString("替换"); this.hbox4.Add((Widget)this.btnReplace); Box.BoxChild boxChild2 = (Box.BoxChild) this.hbox4[(Widget)this.btnReplace]; boxChild2.Position = 1; boxChild2.Expand = false; boxChild2.Fill = false; this.btnSkip = new Button(); this.btnSkip.WidthRequest = 65; this.btnSkip.CanDefault = true; this.btnSkip.CanFocus = true; this.btnSkip.Name = "btnSkip"; this.btnSkip.UseUnderline = true; this.btnSkip.Label = Catalog.GetString("跳过"); this.hbox4.Add((Widget)this.btnSkip); Box.BoxChild boxChild3 = (Box.BoxChild) this.hbox4[(Widget)this.btnSkip]; boxChild3.Position = 2; boxChild3.Expand = false; boxChild3.Fill = false; actionArea.Add((Widget)this.hbox4); ButtonBox.ButtonBoxChild buttonBoxChild2 = (ButtonBox.ButtonBoxChild)actionArea[(Widget)this.hbox4]; buttonBoxChild2.Position = 1; buttonBoxChild2.Expand = false; buttonBoxChild2.Fill = false; if (this.Child != null) { this.Child.ShowAll(); } this.DefaultWidth = 454; this.DefaultHeight = 126; this.Show(); }
protected virtual void Build() { Gui.Initialize((Widget)this); this.Name = "CocoStudio.ControlLib.Windows.CoverEachFileDialog"; this.WindowPosition = WindowPosition.CenterOnParent; VBox vbox = this.VBox; vbox.WidthRequest = 440; vbox.HeightRequest = 130; vbox.Name = "dialog1_VBox"; vbox.BorderWidth = 2U; this.vbox2 = new VBox(); this.vbox2.Name = "vbox2"; this.vbox2.Spacing = 72; this.vbox2.BorderWidth = 10U; this.label_Message = new Label(); this.label_Message.Name = "label_Message"; this.label_Message.LabelProp = Catalog.GetString("label1"); this.vbox2.Add((Widget)this.label_Message); Box.BoxChild boxChild1 = (Box.BoxChild) this.vbox2[(Widget)this.label_Message]; boxChild1.Position = 0; boxChild1.Expand = false; boxChild1.Fill = false; this.checkbutton_All = new CheckButton(); this.checkbutton_All.CanFocus = true; this.checkbutton_All.Name = "checkbutton_All"; this.checkbutton_All.Label = Catalog.GetString("全部选择"); this.checkbutton_All.DrawIndicator = true; this.checkbutton_All.UseUnderline = true; this.vbox2.Add((Widget)this.checkbutton_All); Box.BoxChild boxChild2 = (Box.BoxChild) this.vbox2[(Widget)this.checkbutton_All]; boxChild2.Position = 1; boxChild2.Expand = false; boxChild2.Fill = false; vbox.Add((Widget)this.vbox2); ((Box.BoxChild)vbox[(Widget)this.vbox2]).Position = 0; HButtonBox actionArea = this.ActionArea; actionArea.Name = "dialog1_ActionArea"; actionArea.Spacing = 10; actionArea.BorderWidth = 5U; actionArea.LayoutStyle = ButtonBoxStyle.End; this.buttonCancel = new Button(); this.buttonCancel.CanDefault = true; this.buttonCancel.CanFocus = true; this.buttonCancel.Name = "buttonCancel"; this.buttonCancel.UseStock = true; this.buttonCancel.UseUnderline = true; this.buttonCancel.Label = "gtk-cancel"; this.AddActionWidget((Widget)this.buttonCancel, -6); ButtonBox.ButtonBoxChild buttonBoxChild1 = (ButtonBox.ButtonBoxChild)actionArea[(Widget)this.buttonCancel]; buttonBoxChild1.Expand = false; buttonBoxChild1.Fill = false; this.buttonOk = new Button(); this.buttonOk.CanDefault = true; this.buttonOk.CanFocus = true; this.buttonOk.Name = "buttonOk"; this.buttonOk.UseStock = true; this.buttonOk.UseUnderline = true; this.buttonOk.Label = "gtk-ok"; this.AddActionWidget((Widget)this.buttonOk, -5); ButtonBox.ButtonBoxChild buttonBoxChild2 = (ButtonBox.ButtonBoxChild)actionArea[(Widget)this.buttonOk]; buttonBoxChild2.Position = 1; buttonBoxChild2.Expand = false; buttonBoxChild2.Fill = false; if (this.Child != null) { this.Child.ShowAll(); } this.DefaultWidth = 440; this.DefaultHeight = 130; this.Show(); }
protected virtual void Build() { Gui.Initialize((Widget)this); this.Name = "MonoDevelop.Ide.Gui.Dialogs.ProgressDialog"; this.Title = ""; this.WindowPosition = WindowPosition.CenterOnParent; this.Modal = true; VBox vbox = this.VBox; vbox.Name = "dialog1_VBox"; vbox.BorderWidth = 2U; this.vbox2 = new VBox(); this.vbox2.Name = "vbox2"; this.vbox2.Spacing = 6; this.vbox2.BorderWidth = 12U; this.label = new Label(); this.label.Name = "label"; this.label.Xalign = 0.0f; this.label.LabelProp = "label"; this.vbox2.Add((Widget)this.label); Box.BoxChild boxChild1 = (Box.BoxChild) this.vbox2[(Widget)this.label]; boxChild1.Position = 0; boxChild1.Expand = false; boxChild1.Fill = false; this.hbox1 = new HBox(); this.hbox1.Name = "hbox1"; this.hbox1.Spacing = 6; this.progressBar = new ProgressBar(); this.progressBar.Name = "progressBar"; this.hbox1.Add((Widget)this.progressBar); ((Box.BoxChild) this.hbox1[(Widget)this.progressBar]).Position = 0; this.btnCancel = new Button(); this.btnCancel.CanDefault = true; this.btnCancel.CanFocus = true; this.btnCancel.Name = "btnCancel"; this.btnCancel.UseStock = true; this.btnCancel.UseUnderline = true; this.btnCancel.Label = "gtk-cancel"; this.hbox1.Add((Widget)this.btnCancel); Box.BoxChild boxChild2 = (Box.BoxChild) this.hbox1[(Widget)this.btnCancel]; boxChild2.Position = 1; boxChild2.Expand = false; boxChild2.Fill = false; this.btnClose = new Button(); this.btnClose.CanDefault = true; this.btnClose.CanFocus = true; this.btnClose.Name = "btnClose"; this.btnClose.UseStock = true; this.btnClose.UseUnderline = true; this.btnClose.Label = "gtk-close"; this.hbox1.Add((Widget)this.btnClose); Box.BoxChild boxChild3 = (Box.BoxChild) this.hbox1[(Widget)this.btnClose]; boxChild3.Position = 2; boxChild3.Expand = false; boxChild3.Fill = false; this.vbox2.Add((Widget)this.hbox1); Box.BoxChild boxChild4 = (Box.BoxChild) this.vbox2[(Widget)this.hbox1]; boxChild4.Position = 1; boxChild4.Expand = false; boxChild4.Fill = false; this.expander = new Expander((string)null); this.expander.CanFocus = true; this.expander.Name = "expander"; this.GtkScrolledWindow = new ScrolledWindow(); this.GtkScrolledWindow.HeightRequest = 250; this.GtkScrolledWindow.Name = "GtkScrolledWindow"; this.GtkScrolledWindow.ShadowType = ShadowType.In; this.detailsTextView = new TextView(); this.detailsTextView.CanFocus = true; this.detailsTextView.Name = "detailsTextView"; this.GtkScrolledWindow.Add((Widget)this.detailsTextView); this.expander.Add((Widget)this.GtkScrolledWindow); this.expanderLabel = new Label(); this.expanderLabel.Name = "expanderLabel"; this.expanderLabel.LabelProp = Catalog.GetString("Details"); this.expanderLabel.UseUnderline = true; this.expander.LabelWidget = (Widget)this.expanderLabel; this.vbox2.Add((Widget)this.expander); ((Box.BoxChild) this.vbox2[(Widget)this.expander]).Position = 2; vbox.Add((Widget)this.vbox2); ((Box.BoxChild)vbox[(Widget)this.vbox2]).Position = 0; HButtonBox actionArea = this.ActionArea; actionArea.Name = "dialog1_ActionArea"; actionArea.Spacing = 10; actionArea.BorderWidth = 5U; actionArea.LayoutStyle = ButtonBoxStyle.End; this.button103 = new Button(); this.button103.CanFocus = true; this.button103.Name = "button103"; this.button103.UseUnderline = true; this.button103.Label = Catalog.GetString("GtkButton"); this.AddActionWidget((Widget)this.button103, 0); ButtonBox.ButtonBoxChild buttonBoxChild = (ButtonBox.ButtonBoxChild)actionArea[(Widget)this.button103]; buttonBoxChild.Expand = false; buttonBoxChild.Fill = false; if (this.Child != null) { this.Child.ShowAll(); } this.DefaultWidth = 544; this.DefaultHeight = 170; this.btnClose.Hide(); actionArea.Hide(); this.Hide(); this.btnCancel.Clicked += new EventHandler(this.OnBtnCancelClicked); this.btnClose.Clicked += new EventHandler(this.OnBtnCloseClicked); this.expander.Activated += new EventHandler(this.OnExpander1Activated); }
protected virtual void Build() { Gui.Initialize((Widget)this); this.WidthRequest = 500; this.HeightRequest = 200; this.Name = "CocoStudio.ControlLib.Windows.HelpDialog"; this.WindowPosition = WindowPosition.CenterOnParent; VBox vbox = this.VBox; vbox.Name = "dialog1_VBox"; vbox.BorderWidth = 2U; this.hbox1 = new HBox(); this.hbox1.Name = "hbox1"; this.hbox1.Spacing = 40; this.hbox1.BorderWidth = 20U; this.imageIcon = new Gtk.Image(); this.imageIcon.WidthRequest = 136; this.imageIcon.HeightRequest = 143; this.imageIcon.Name = "imageIcon"; this.imageIcon.Pixbuf = Pixbuf.LoadFromResource("CocoStudio.ControlLib.Resource.CocoStudio_Logo.png"); this.hbox1.Add((Widget)this.imageIcon); Box.BoxChild boxChild1 = (Box.BoxChild) this.hbox1[(Widget)this.imageIcon]; boxChild1.Position = 0; boxChild1.Expand = false; boxChild1.Fill = false; this.vbox2 = new VBox(); this.vbox2.Name = "vbox2"; this.vbox2.Spacing = 6; this.labelCocoStudio = new Label(); this.labelCocoStudio.Name = "labelCocoStudio"; this.labelCocoStudio.LabelProp = Catalog.GetString("Cocos Studio"); this.vbox2.Add((Widget)this.labelCocoStudio); Box.BoxChild boxChild2 = (Box.BoxChild) this.vbox2[(Widget)this.labelCocoStudio]; boxChild2.Position = 0; boxChild2.Expand = false; boxChild2.Fill = false; this.labelVersion = new Label(); this.labelVersion.Name = "labelVersion"; this.labelVersion.Xalign = 0.0f; this.labelVersion.LabelProp = Catalog.GetString("版本 1.0.0.0 Alpha"); this.vbox2.Add((Widget)this.labelVersion); Box.BoxChild boxChild3 = (Box.BoxChild) this.vbox2[(Widget)this.labelVersion]; boxChild3.Position = 1; boxChild3.Expand = false; boxChild3.Fill = false; this.labelCopyright = new Label(); this.labelCopyright.Name = "labelCopyright"; this.labelCopyright.Xalign = 0.0f; this.labelCopyright.LabelProp = Catalog.GetString("Copyright © Chukong Aipu 2014"); this.vbox2.Add((Widget)this.labelCopyright); Box.BoxChild boxChild4 = (Box.BoxChild) this.vbox2[(Widget)this.labelCopyright]; boxChild4.Position = 2; boxChild4.Expand = false; boxChild4.Fill = false; this.labelAccredit = new Label(); this.labelAccredit.Name = "labelAccredit"; this.labelAccredit.Xalign = 0.0f; this.labelAccredit.LabelProp = Catalog.GetString("授权 Beijing Chukong Aipu Technology Co.,Ltd"); this.vbox2.Add((Widget)this.labelAccredit); Box.BoxChild boxChild5 = (Box.BoxChild) this.vbox2[(Widget)this.labelAccredit]; boxChild5.Position = 3; boxChild5.Expand = false; boxChild5.Fill = false; this.hbox1.Add((Widget)this.vbox2); Box.BoxChild boxChild6 = (Box.BoxChild) this.hbox1[(Widget)this.vbox2]; boxChild6.Position = 1; boxChild6.Expand = false; boxChild6.Fill = false; vbox.Add((Widget)this.hbox1); Box.BoxChild boxChild7 = (Box.BoxChild)vbox[(Widget)this.hbox1]; boxChild7.Position = 0; boxChild7.Expand = false; boxChild7.Fill = false; HButtonBox actionArea = this.ActionArea; actionArea.Name = "dialog1_ActionArea"; actionArea.Spacing = 10; actionArea.BorderWidth = 5U; actionArea.LayoutStyle = ButtonBoxStyle.End; this.buttonOk = new Button(); this.buttonOk.CanDefault = true; this.buttonOk.CanFocus = true; this.buttonOk.Name = "buttonOk"; this.buttonOk.UseStock = true; this.buttonOk.UseUnderline = true; this.buttonOk.Label = "gtk-ok"; this.AddActionWidget((Widget)this.buttonOk, -5); ButtonBox.ButtonBoxChild buttonBoxChild = (ButtonBox.ButtonBoxChild)actionArea[(Widget)this.buttonOk]; buttonBoxChild.Expand = false; buttonBoxChild.Fill = false; if (this.Child != null) { this.Child.ShowAll(); } this.DefaultWidth = 500; this.DefaultHeight = 200; this.Show(); }
protected virtual void Build() { Gui.Initialize(this); base.Name = "CocoStudio.ControlLib.NewFileDialog"; base.Title = Catalog.GetString("新建文件"); base.WindowPosition = WindowPosition.CenterOnParent; base.Resizable = false; base.DefaultWidth = 450; base.DefaultHeight = 240; Gtk.VBox vBox = base.VBox; vBox.Name = "dialog1_VBox"; vBox.BorderWidth = 2u; this.tab_Root = new Gtk.Table(4u, 2u, false); this.tab_Root.Name = "tab_Root"; this.tab_Root.RowSpacing = 12u; this.tab_Root.ColumnSpacing = 18u; this.tab_Root.BorderWidth = 15u; this.entry_FileName = new Entry(); this.entry_FileName.WidthRequest = 330; this.entry_FileName.CanFocus = true; this.entry_FileName.Name = "entry_FileName"; this.entry_FileName.IsEditable = true; this.entry_FileName.InvisibleChar = '●'; this.tab_Root.Add(this.entry_FileName); Gtk.Table.TableChild tableChild = (Gtk.Table.TableChild) this.tab_Root[this.entry_FileName]; tableChild.LeftAttach = 1u; tableChild.RightAttach = 2u; tableChild.XOptions = Gtk.AttachOptions.Fill; tableChild.YOptions = Gtk.AttachOptions.Fill; this.hb_FileType = new Gtk.HBox(); this.hb_FileType.HeightRequest = 80; this.hb_FileType.Name = "hb_FileType"; this.hb_FileType.Spacing = 6; this.tab_Root.Add(this.hb_FileType); Gtk.Table.TableChild tableChild2 = (Gtk.Table.TableChild) this.tab_Root[this.hb_FileType]; tableChild2.TopAttach = 1u; tableChild2.BottomAttach = 2u; tableChild2.LeftAttach = 1u; tableChild2.RightAttach = 2u; tableChild2.XOptions = Gtk.AttachOptions.Fill; tableChild2.YOptions = Gtk.AttachOptions.Fill; this.lab_FileDescribe = new Gtk.Label(); this.lab_FileDescribe.Name = "lab_FileDescribe"; this.lab_FileDescribe.Xalign = 1f; this.lab_FileDescribe.Yalign = 0f; this.lab_FileDescribe.LabelProp = Catalog.GetString("描述"); this.tab_Root.Add(this.lab_FileDescribe); Gtk.Table.TableChild tableChild3 = (Gtk.Table.TableChild) this.tab_Root[this.lab_FileDescribe]; tableChild3.TopAttach = 2u; tableChild3.BottomAttach = 3u; tableChild3.XOptions = Gtk.AttachOptions.Fill; tableChild3.YOptions = Gtk.AttachOptions.Fill; this.lab_FileDescribeContent = new Gtk.Label(); this.lab_FileDescribeContent.WidthRequest = 330; this.lab_FileDescribeContent.HeightRequest = 60; this.lab_FileDescribeContent.Name = "lab_FileDescribeContent"; this.lab_FileDescribeContent.Xalign = 0f; this.lab_FileDescribeContent.Yalign = 0f; this.lab_FileDescribeContent.LabelProp = Catalog.GetString("描述文件"); this.lab_FileDescribeContent.Wrap = true; this.tab_Root.Add(this.lab_FileDescribeContent); Gtk.Table.TableChild tableChild4 = (Gtk.Table.TableChild) this.tab_Root[this.lab_FileDescribeContent]; tableChild4.TopAttach = 2u; tableChild4.BottomAttach = 3u; tableChild4.LeftAttach = 1u; tableChild4.RightAttach = 2u; tableChild4.YOptions = Gtk.AttachOptions.Fill; this.lab_FileName = new Gtk.Label(); this.lab_FileName.Name = "lab_FileName"; this.lab_FileName.Xalign = 1f; this.lab_FileName.LabelProp = Catalog.GetString("文件名称"); this.tab_Root.Add(this.lab_FileName); Gtk.Table.TableChild tableChild5 = (Gtk.Table.TableChild) this.tab_Root[this.lab_FileName]; tableChild5.XOptions = Gtk.AttachOptions.Fill; tableChild5.YOptions = Gtk.AttachOptions.Fill; this.lab_FileSize = new Gtk.Label(); this.lab_FileSize.Name = "lab_FileSize"; this.lab_FileSize.Xalign = 1f; this.lab_FileSize.Yalign = 0.1f; this.lab_FileSize.LabelProp = Catalog.GetString("大小"); this.tab_Root.Add(this.lab_FileSize); Gtk.Table.TableChild tableChild6 = (Gtk.Table.TableChild) this.tab_Root[this.lab_FileSize]; tableChild6.TopAttach = 3u; tableChild6.BottomAttach = 4u; tableChild6.XOptions = Gtk.AttachOptions.Fill; tableChild6.YOptions = Gtk.AttachOptions.Fill; this.lab_FileType = new Gtk.Label(); this.lab_FileType.Name = "lab_FileType"; this.lab_FileType.Xalign = 1f; this.lab_FileType.Yalign = 0.3f; this.lab_FileType.LabelProp = Catalog.GetString("类型"); this.tab_Root.Add(this.lab_FileType); Gtk.Table.TableChild tableChild7 = (Gtk.Table.TableChild) this.tab_Root[this.lab_FileType]; tableChild7.TopAttach = 1u; tableChild7.BottomAttach = 2u; tableChild7.XOptions = Gtk.AttachOptions.Fill; tableChild7.YOptions = Gtk.AttachOptions.Fill; this.table_widthHeight = new Gtk.Table(2u, 4u, false); this.table_widthHeight.Name = "table_widthHeight"; this.table_widthHeight.RowSpacing = 6u; this.table_widthHeight.ColumnSpacing = 6u; this.alignment_widthPx = new Gtk.Alignment(0.5f, 0.5f, 1f, 1f); this.alignment_widthPx.Name = "alignment_widthPx"; this.alignment_widthPx.RightPadding = 25u; this.label2 = new Gtk.Label(); this.label2.Name = "label2"; this.label2.LabelProp = Catalog.GetString("px"); this.alignment_widthPx.Add(this.label2); this.table_widthHeight.Add(this.alignment_widthPx); Gtk.Table.TableChild tableChild8 = (Gtk.Table.TableChild) this.table_widthHeight[this.alignment_widthPx]; tableChild8.LeftAttach = 1u; tableChild8.RightAttach = 2u; tableChild8.XOptions = Gtk.AttachOptions.Fill; tableChild8.YOptions = Gtk.AttachOptions.Fill; this.evtbx_height = new EventBox(); this.evtbx_height.WidthRequest = 100; this.evtbx_height.Name = "evtbx_height"; this.table_widthHeight.Add(this.evtbx_height); Gtk.Table.TableChild tableChild9 = (Gtk.Table.TableChild) this.table_widthHeight[this.evtbx_height]; tableChild9.LeftAttach = 2u; tableChild9.RightAttach = 3u; tableChild9.XOptions = Gtk.AttachOptions.Fill; tableChild9.YOptions = Gtk.AttachOptions.Fill; this.evtbx_width = new EventBox(); this.evtbx_width.WidthRequest = 100; this.evtbx_width.Name = "evtbx_width"; this.table_widthHeight.Add(this.evtbx_width); Gtk.Table.TableChild tableChild10 = (Gtk.Table.TableChild) this.table_widthHeight[this.evtbx_width]; tableChild10.XOptions = Gtk.AttachOptions.Fill; tableChild10.YOptions = Gtk.AttachOptions.Fill; this.label1 = new Gtk.Label(); this.label1.Name = "label1"; this.label1.LabelProp = Catalog.GetString("宽"); this.table_widthHeight.Add(this.label1); Gtk.Table.TableChild tableChild11 = (Gtk.Table.TableChild) this.table_widthHeight[this.label1]; tableChild11.TopAttach = 1u; tableChild11.BottomAttach = 2u; tableChild11.XOptions = Gtk.AttachOptions.Fill; tableChild11.YOptions = Gtk.AttachOptions.Fill; this.label3 = new Gtk.Label(); this.label3.Name = "label3"; this.label3.LabelProp = Catalog.GetString("高"); this.table_widthHeight.Add(this.label3); Gtk.Table.TableChild tableChild12 = (Gtk.Table.TableChild) this.table_widthHeight[this.label3]; tableChild12.TopAttach = 1u; tableChild12.BottomAttach = 2u; tableChild12.LeftAttach = 2u; tableChild12.RightAttach = 3u; tableChild12.XOptions = Gtk.AttachOptions.Fill; tableChild12.YOptions = Gtk.AttachOptions.Fill; this.label4 = new Gtk.Label(); this.label4.Name = "label4"; this.label4.LabelProp = Catalog.GetString("px"); this.table_widthHeight.Add(this.label4); Gtk.Table.TableChild tableChild13 = (Gtk.Table.TableChild) this.table_widthHeight[this.label4]; tableChild13.LeftAttach = 3u; tableChild13.RightAttach = 4u; tableChild13.XOptions = Gtk.AttachOptions.Fill; tableChild13.YOptions = Gtk.AttachOptions.Fill; this.tab_Root.Add(this.table_widthHeight); Gtk.Table.TableChild tableChild14 = (Gtk.Table.TableChild) this.tab_Root[this.table_widthHeight]; tableChild14.TopAttach = 3u; tableChild14.BottomAttach = 4u; tableChild14.LeftAttach = 1u; tableChild14.RightAttach = 2u; tableChild14.XOptions = Gtk.AttachOptions.Fill; tableChild14.YOptions = Gtk.AttachOptions.Fill; vBox.Add(this.tab_Root); Gtk.Box.BoxChild boxChild = (Gtk.Box.BoxChild)vBox[this.tab_Root]; boxChild.Position = 0; boxChild.Expand = false; boxChild.Fill = false; HButtonBox actionArea = base.ActionArea; actionArea.Name = "dialog1_ActionArea"; actionArea.Spacing = 10; actionArea.BorderWidth = 5u; actionArea.LayoutStyle = ButtonBoxStyle.End; this.buttonCancel = new Gtk.Button(); this.buttonCancel.CanDefault = true; this.buttonCancel.CanFocus = true; this.buttonCancel.Name = "buttonCancel"; this.buttonCancel.UseUnderline = true; this.buttonCancel.Label = Catalog.GetString("取消"); base.AddActionWidget(this.buttonCancel, -6); ButtonBox.ButtonBoxChild buttonBoxChild = (ButtonBox.ButtonBoxChild)actionArea[this.buttonCancel]; buttonBoxChild.Expand = false; buttonBoxChild.Fill = false; this.btnNew = new Gtk.Button(); this.btnNew.CanDefault = true; this.btnNew.CanFocus = true; this.btnNew.Name = "btnNew"; this.btnNew.UseUnderline = true; this.btnNew.Label = Catalog.GetString("新建"); base.AddActionWidget(this.btnNew, -5); ButtonBox.ButtonBoxChild buttonBoxChild2 = (ButtonBox.ButtonBoxChild)actionArea[this.btnNew]; buttonBoxChild2.Position = 1; buttonBoxChild2.Expand = false; buttonBoxChild2.Fill = false; if (base.Child != null) { base.Child.ShowAll(); } base.Show(); }
protected virtual void Build() { Gui.Initialize((Widget)this); this.Name = "CocoStudio.ControlLib.ExportPlistInfoDialog"; this.WindowPosition = WindowPosition.CenterOnParent; VBox vbox = this.VBox; vbox.Name = "dialog1_VBox"; vbox.BorderWidth = 2U; this.hbox_path = new HBox(); this.hbox_path.Name = "hbox_path"; this.hbox_path.Spacing = 6; this.hbox_path.BorderWidth = 8U; this.label_Path = new Label(); this.label_Path.Name = "label_Path"; this.label_Path.LabelProp = Catalog.GetString("导出路径"); this.hbox_path.Add((Widget)this.label_Path); Box.BoxChild boxChild1 = (Box.BoxChild) this.hbox_path[(Widget)this.label_Path]; boxChild1.Position = 0; boxChild1.Expand = false; boxChild1.Fill = false; boxChild1.Padding = 5U; this.entry_Path = new Entry(); this.entry_Path.WidthRequest = 370; this.entry_Path.CanFocus = true; this.entry_Path.Name = "entry_Path"; this.entry_Path.IsEditable = true; this.entry_Path.InvisibleChar = '●'; this.hbox_path.Add((Widget)this.entry_Path); ((Box.BoxChild) this.hbox_path[(Widget)this.entry_Path]).Position = 1; this.button_Browse = new Button(); this.button_Browse.CanFocus = true; this.button_Browse.Name = "button_Browse"; this.button_Browse.UseUnderline = true; this.button_Browse.Label = Catalog.GetString(" 浏览 "); this.hbox_path.Add((Widget)this.button_Browse); Box.BoxChild boxChild2 = (Box.BoxChild) this.hbox_path[(Widget)this.button_Browse]; boxChild2.Position = 2; boxChild2.Expand = false; boxChild2.Fill = false; vbox.Add((Widget)this.hbox_path); Box.BoxChild boxChild3 = (Box.BoxChild)vbox[(Widget)this.hbox_path]; boxChild3.Position = 0; boxChild3.Expand = false; boxChild3.Fill = false; HButtonBox actionArea = this.ActionArea; actionArea.Name = "dialog1_ActionArea"; actionArea.Spacing = 10; actionArea.BorderWidth = 5U; actionArea.LayoutStyle = ButtonBoxStyle.End; this.buttonOk = new Button(); this.buttonOk.CanDefault = true; this.buttonOk.CanFocus = true; this.buttonOk.Name = "buttonOk"; this.buttonOk.UseStock = true; this.buttonOk.UseUnderline = true; this.buttonOk.Label = "gtk-ok"; this.AddActionWidget((Widget)this.buttonOk, -5); ButtonBox.ButtonBoxChild buttonBoxChild1 = (ButtonBox.ButtonBoxChild)actionArea[(Widget)this.buttonOk]; buttonBoxChild1.Expand = false; buttonBoxChild1.Fill = false; this.buttonCancel = new Button(); this.buttonCancel.CanFocus = true; this.buttonCancel.Name = "buttonCancel"; this.buttonCancel.UseStock = true; this.buttonCancel.UseUnderline = true; this.buttonCancel.Label = "gtk-cancel"; this.AddActionWidget((Widget)this.buttonCancel, -6); ButtonBox.ButtonBoxChild buttonBoxChild2 = (ButtonBox.ButtonBoxChild)actionArea[(Widget)this.buttonCancel]; buttonBoxChild2.Position = 1; buttonBoxChild2.Expand = false; buttonBoxChild2.Fill = false; if (this.Child != null) { this.Child.ShowAll(); } this.DefaultWidth = 517; this.DefaultHeight = 96; this.Show(); }