public MenuButtonEntry (Gtk.Entry entry, Gtk.Button button) { if (entry == null) entry = new Gtk.Entry (); if (button == null) button = new Gtk.Button (new Gtk.Arrow (Gtk.ArrowType.Right, Gtk.ShadowType.Out)); this.entry = entry; this.button = button; manager = new CommandManager (); manager.RegisterGlobalHandler (this); if (entry.Parent == null) PackStart (entry, true, true, 0); if (button.Parent == null) PackStart (button, false, false, 2); ActionCommand cmd = new ActionCommand ("InsertOption", "InsertOption", null); cmd.CommandArray = true; manager.RegisterCommand (cmd); entrySet = new CommandEntrySet (); entrySet.AddItem ("InsertOption"); button.Clicked += ShowQuickInsertMenu; button.StateChanged += ButtonStateChanged; }
public DoubleInputView(DoubleInputModel model) { this.Build (); for (int i = 0; i < model.Count; ++i) { var input = new Gtk.Entry(); var label = new Gtk.Label(model._labels[i] + ": "); //The index i was being "captured" by referance in the anonymous function.\ //This makes a copy int j = i; input.Changed += (object sender, EventArgs e) => { Double.TryParse((sender as Gtk.Entry).Text, out model._inputs[j]); Console.WriteLine("we wrote: " + model._inputs[j] + " j: " + j); }; MainView.Put(label, 10, 10 + i*40); MainView.Put(input, 120, 10 + i*40); } buttonCancel.Clicked += (o, args) => {model._inputs = null; this.Destroy();}; buttonOk.Clicked += (o, args) => {this.Destroy();}; }
public WebSyncPreferencesWidget (Api.OAuth oauth, string server, EventHandler requiredPrefChanged) : base (false, 5) { this.oauth = oauth; Gtk.Table prefsTable = new Gtk.Table (1, 2, false); prefsTable.RowSpacing = 5; prefsTable.ColumnSpacing = 10; serverEntry = new Gtk.Entry (); serverEntry.Text = server; AddRow (prefsTable, serverEntry, Catalog.GetString ("Se_rver:"), 0); Add (prefsTable); authButton = new Gtk.Button (); // TODO: If Auth is valid, this text should change if (!Auth.IsAccessToken) authButton.Label = Catalog.GetString ("Connect to Server"); else { authButton.Label = Catalog.GetString ("Connected"); authButton.Sensitive = false; } authButton.Clicked += OnAuthButtonClicked; serverEntry.Changed += delegate { Auth = null; }; serverEntry.Changed += requiredPrefChanged; Add (authButton); // TODO: Add a section that shows the user something to verify they put // in the right URL...something that constructs their user URL, maybe? ShowAll (); }
void InitializeComponents() { // set up this actual dialog this.Modal = true; // FIXME: make this a resource in the resource file this.Title = String.Format (GettextCatalog.GetString ("{0} Code Group"), titlePrefix); // set up the dialog fields and add them templateExtensionsTextBox = new Gtk.Entry(); templateExtensionsTextBox.ActivatesDefault = true; // FIXME: make this a resource in the resource file Gtk.Label label1 = new Gtk.Label("Extensions (; seperated)"); label1.Xalign = 0; templateExtensionsTextBox.Text = string.Join(";", codeTemplateGroup.ExtensionStrings); // FIXME: make the labels both part of the same sizing group so they have the same left and right rows. Gtk.HBox hBox1 = new Gtk.HBox(false, 6); hBox1.PackStart(label1, false, false, 6); hBox1.PackStart(templateExtensionsTextBox, false, false, 6); this.VBox.PackStart(hBox1, false, false, 6); // set up the buttons and add them this.DefaultResponse = Gtk.ResponseType.Ok; Gtk.Button cancelButton = new Gtk.Button(Gtk.Stock.Cancel); Gtk.Button okButton = new Gtk.Button(Gtk.Stock.Ok); okButton.Clicked += new EventHandler(AcceptEvent); cancelButton.Clicked += new EventHandler(CancelEvent); this.AddActionWidget (cancelButton, Gtk.ResponseType.Cancel); this.AddActionWidget (okButton, (int) Gtk.ResponseType.Ok); }
// uses reflection to call the corresponding method in the "Create" class. public static UML.Element CreateUmlElement(string elementType) { Type create = typeof(UML.Create); object newElement = create.InvokeMember( elementType, BindingFlags.InvokeMethod | BindingFlags.Public | BindingFlags.Static, null, null, null); UML.NamedElement ne = newElement as UML.NamedElement; if(ne != null) { _dialog = new Gtk.MessageDialog( null, Gtk.DialogFlags.Modal, Gtk.MessageType.Question, Gtk.ButtonsType.Ok, GettextCatalog.GetString ("New element name:")); Gtk.Entry elementName = new Gtk.Entry(); elementName.Activated += new EventHandler(CloseNewElementNameModal); _dialog.VBox.Add(elementName); elementName.Show(); _dialog.Run(); ne.Name = String.Format(elementName.Text, elementType); _dialog.Destroy(); _dialog = null; } return (UML.Element)newElement; }
public BorderEditor() { entry = new Gtk.Entry (); entry.Changed += OnChanged; entry.HasFrame = false; PackStart (entry, true, true, 0); ShowAll (); }
public TextEntryWithCodeCompletion () { gtkEntry = Xwt.Toolkit.CurrentEngine.GetNativeWidget (this) as Gtk.Entry; if (gtkEntry == null) throw new NotImplementedException (); gtkEntry.KeyReleaseEvent += HandleKeyReleaseEvent; gtkEntry.KeyPressEvent += HandleKeyPressEvent; CompletionWindowManager.WindowClosed += HandleWindowClosed; }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget ocmgtk.CoordinateWidget Stetic.BinContainer.Attach(this); this.Name = "ocmgtk.CoordinateWidget"; // Container child ocmgtk.CoordinateWidget.Gtk.Container+ContainerChild this.hbox5 = new Gtk.HBox(); this.hbox5.Name = "hbox5"; this.hbox5.Spacing = 6; // Container child hbox5.Gtk.Box+BoxChild this.directionCombo = Gtk.ComboBox.NewText(); this.directionCombo.WidthRequest = 50; this.directionCombo.Name = "directionCombo"; this.hbox5.Add(this.directionCombo); Gtk.Box.BoxChild w1 = ((Gtk.Box.BoxChild)(this.hbox5[this.directionCombo])); w1.Position = 0; w1.Expand = false; // Container child hbox5.Gtk.Box+BoxChild this.degreeEntry = new Gtk.Entry(); this.degreeEntry.CanFocus = true; this.degreeEntry.Name = "degreeEntry"; this.degreeEntry.Text = "000"; this.degreeEntry.IsEditable = true; this.degreeEntry.WidthChars = 3; this.degreeEntry.MaxLength = 3; this.degreeEntry.InvisibleChar = '•'; this.hbox5.Add(this.degreeEntry); Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.hbox5[this.degreeEntry])); w2.Position = 1; w2.Expand = false; // Container child hbox5.Gtk.Box+BoxChild this.label9 = new Gtk.Label(); this.label9.Name = "label9"; this.label9.LabelProp = Mono.Unix.Catalog.GetString("°"); this.hbox5.Add(this.label9); Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.hbox5[this.label9])); w3.Position = 2; w3.Expand = false; w3.Fill = false; // Container child hbox5.Gtk.Box+BoxChild this.minuteEntry = new Gtk.Entry(); this.minuteEntry.CanFocus = true; this.minuteEntry.Name = "minuteEntry"; this.minuteEntry.Text = "0.000"; this.minuteEntry.IsEditable = true; this.minuteEntry.InvisibleChar = '•'; this.hbox5.Add(this.minuteEntry); Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.hbox5[this.minuteEntry])); w4.Position = 3; this.Add(this.hbox5); if ((this.Child != null)) { this.Child.ShowAll(); } this.Hide(); }
public override void Initialize (PropertyDescriptor prop) { base.Initialize (prop); entry = new Gtk.Entry (); entry.HasFrame = false; entry.Show (); entry.Changed += EntryChanged; Add (entry); }
private void BuildFileNameGroup(Gtk.HBox hbFileName) { this.btOpen = new Gtk.Button( Gtk.Stock.Open ); this.edFileName = new Gtk.Entry(); this.edFileName.IsEditable = false; this.btOpen.Clicked += (sender, e) => this.OnOpen(); hbFileName.PackStart( this.edFileName, true, true, 5 ); hbFileName.PackStart( this.btOpen, false, false, 5 ); }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget MonoDevelop.TaskForce.LocalProvider.Gui.NewCategory this.Name = "MonoDevelop.TaskForce.LocalProvider.Gui.NewCategory"; this.Title = Mono.Unix.Catalog.GetString("NewCategory"); this.WindowPosition = ((Gtk.WindowPosition)(4)); // Container child MonoDevelop.TaskForce.LocalProvider.Gui.NewCategory.Gtk.Container+ContainerChild this.vbox1 = new Gtk.VBox(); this.vbox1.Name = "vbox1"; this.vbox1.Spacing = 6; // Container child vbox1.Gtk.Box+BoxChild this.label1 = new Gtk.Label(); this.label1.Name = "label1"; this.label1.LabelProp = Mono.Unix.Catalog.GetString("label1"); this.vbox1.Add(this.label1); Gtk.Box.BoxChild w1 = ((Gtk.Box.BoxChild)(this.vbox1[this.label1])); w1.Position = 0; w1.Expand = false; w1.Fill = false; // Container child vbox1.Gtk.Box+BoxChild this.categoryName = new Gtk.Entry(); this.categoryName.CanFocus = true; this.categoryName.Name = "categoryName"; this.categoryName.IsEditable = true; this.categoryName.InvisibleChar = '●'; this.vbox1.Add(this.categoryName); Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.vbox1[this.categoryName])); w2.Position = 1; w2.Expand = false; w2.Fill = false; // Container child vbox1.Gtk.Box+BoxChild this.button1 = new Gtk.Button(); this.button1.CanFocus = true; this.button1.Name = "button1"; this.button1.UseUnderline = true; this.button1.Label = Mono.Unix.Catalog.GetString("button1"); this.vbox1.Add(this.button1); Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox1[this.button1])); w3.Position = 2; w3.Expand = false; w3.Fill = false; this.Add(this.vbox1); if ((this.Child != null)) { this.Child.ShowAll(); } this.DefaultWidth = 400; this.DefaultHeight = 300; this.Show(); this.button1.Clicked += new System.EventHandler(this.OnButton1Clicked); }
public Accelerator () { entry = new Gtk.Entry (); clearButton = new Gtk.Button (new Gtk.Image (Gtk.Stock.Clear, Gtk.IconSize.Menu)); PackStart (entry, true, true, 0); PackStart (clearButton, false, false, 3); clearButton.Clicked += delegate (object s, EventArgs args) { Value = null; }; entry.IsEditable = false; entry.ButtonPressEvent += OnButtonPressEvent; entry.KeyPressEvent += OnKeyPressEvent; ShowAll (); }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget HollyLibrary.HBaseComboBox Stetic.BinContainer.Attach(this); this.Name = "HollyLibrary.HBaseComboBox"; // Container child HollyLibrary.HBaseComboBox.Gtk.Container+ContainerChild this.hbox3 = new Gtk.HBox(); this.hbox3.Name = "hbox3"; // Container child hbox3.Gtk.Box+BoxChild this.hbox4 = new Gtk.HBox(); this.hbox4.Name = "hbox4"; this.hbox4.Spacing = 2; this.hbox4.BorderWidth = ((uint)(5)); // Container child hbox4.Gtk.Box+BoxChild this.entry = new Gtk.Entry(); this.entry.CanFocus = true; this.entry.Name = "entry"; this.entry.IsEditable = true; this.entry.HasFrame = false; this.entry.InvisibleChar = '●'; this.hbox4.Add(this.entry); Gtk.Box.BoxChild w1 = ((Gtk.Box.BoxChild)(this.hbox4[this.entry])); w1.Position = 0; this.hbox3.Add(this.hbox4); Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.hbox3[this.hbox4])); w2.Position = 0; // Container child hbox3.Gtk.Box+BoxChild this.popupButton = new Gtk.Button(); this.popupButton.WidthRequest = 30; this.popupButton.CanFocus = true; this.popupButton.Name = "popupButton"; // Container child popupButton.Gtk.Container+ContainerChild this.arrow1 = new Gtk.Arrow(((Gtk.ArrowType)(1)), ((Gtk.ShadowType)(2))); this.arrow1.Name = "arrow1"; this.popupButton.Add(this.arrow1); this.popupButton.Label = null; this.hbox3.Add(this.popupButton); Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.hbox3[this.popupButton])); w4.Position = 1; w4.Expand = false; this.Add(this.hbox3); if ((this.Child != null)) { this.Child.ShowAll(); } this.Show(); this.entry.FocusInEvent += new Gtk.FocusInEventHandler(this.OnEntryFocusInEvent); this.entry.FocusOutEvent += new Gtk.FocusOutEventHandler(this.OnEntryFocusOutEvent); }
public override Gtk.Widget CreatePanelWidget () { Gtk.VBox box = new Gtk.VBox (); box.Spacing = 6; Gtk.HBox labelBox = new Gtk.HBox (); Gtk.Label label = CreateLabel ("Android studio executable location:"); labelBox.PackStart (label, false, false, 0); entry = new FileEntry (); entry.Path = AddInPreferences.AndroidStudioLocation; Gtk.HBox sdkVersions = new Gtk.HBox (); Gtk.Label minSdkLabel = CreateLabel ("Min SDK version:"); MinSdkEntry = new Gtk.Entry (AddInPreferences.MinSdkVersion); Gtk.Label targetSdkLabel = CreateLabel ("Target/Compile SDK version:"); TargetSdkEntry = new Gtk.Entry (AddInPreferences.CompileSdkVersion); sdkVersions.PackStart (minSdkLabel, false, false, 0); sdkVersions.PackStart (MinSdkEntry, true, false, 0); sdkVersions.PackStart (targetSdkLabel, false, false, 0); sdkVersions.PackStart (TargetSdkEntry, true, false, 0); Gtk.HBox otherVersions = new Gtk.HBox (); Gtk.Label supportVersionLabel = CreateLabel ("Support library versions:"); SupportVersionEntry = new Gtk.Entry (AddInPreferences.SupportVersion); Gtk.Label buildToolsVersionLabel = CreateLabel ("Build tools version:"); BuildToolsVersionEntry = new Gtk.Entry (AddInPreferences.BuildToolsVersion); otherVersions.PackStart (supportVersionLabel, false, false, 0); otherVersions.PackStart (SupportVersionEntry, true, false, 0); otherVersions.PackStart (buildToolsVersionLabel, false, false, 0); otherVersions.PackStart (BuildToolsVersionEntry, true, false, 0); box.PackStart (labelBox, false, false, 0); box.PackStart (entry, false, false, 0); box.PackStart (sdkVersions, false, false, 0); box.PackStart (otherVersions, false, false, 0); box.ShowAll (); return box; }
public CreateNotebookDialog(Gtk.Window parent, Gtk.DialogFlags flags) : base (parent, flags, Gtk.MessageType.Info, Gtk.ButtonsType.None, Catalog.GetString ("Create a new notebook"), Catalog.GetString ("Type the name of the notebook you'd like to create.")) { this.Pixbuf = newNotebookIconDialog; Gtk.Table table = new Gtk.Table (2, 2, false); Gtk.Label label = new Gtk.Label (Catalog.GetString ("N_otebook name:")); label.Xalign = 0; label.UseUnderline = true; label.Show (); nameEntry = new Gtk.Entry (); nameEntry.Changed += OnNameEntryChanged; nameEntry.ActivatesDefault = true; nameEntry.Show (); label.MnemonicWidget = nameEntry; errorLabel = new Gtk.Label (); errorLabel.Xalign = 0; errorLabel.Markup = string.Format("<span foreground='red' style='italic'>{0}</span>", Catalog.GetString ("Name already taken")); table.Attach (label, 0, 1, 0, 1); table.Attach (nameEntry, 1, 2, 0, 1); table.Attach (errorLabel, 1, 2, 1, 2); table.Show (); ExtraWidget = table; AddButton (Gtk.Stock.Cancel, Gtk.ResponseType.Cancel, false); AddButton ( newNotebookIcon, // Translation note: This is the Create button in the Create // New Note Dialog. Catalog.GetString ("C_reate"), Gtk.ResponseType.Ok, true); // Only let the Ok response be sensitive when // there's something in nameEntry SetResponseSensitive (Gtk.ResponseType.Ok, false); errorLabel.Hide (); }
public ResourceControlBar() { Layout = Gtk.ButtonBoxStyle.Start; Spacing = 10; AddResourceButton = new AddResourceButton (); RemoveResourceButton = new RemoveResourceButton (); FilterEntry = new Gtk.Entry (); AddResourceButton.Clicked += (sender, e) => OnAddResource (this, e); RemoveResourceButton.Clicked += (sender, e) => OnRemoveResource (this, e); PackStart (AddResourceButton, false, false, 10); PackStart (RemoveResourceButton, false, false, 10); PackEnd (FilterEntry); }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget ControlWrappers.BoundEntry Stetic.BinContainer.Attach(this); this.Name = "ControlWrappers.BoundEntry"; // Container child ControlWrappers.BoundEntry.Gtk.Container+ContainerChild this.txtEntry = new Gtk.Entry(); this.txtEntry.CanFocus = true; this.txtEntry.Name = "txtEntry"; this.txtEntry.IsEditable = true; this.txtEntry.InvisibleChar = '●'; this.Add(this.txtEntry); if ((this.Child != null)) { this.Child.ShowAll(); } this.Hide(); this.txtEntry.Changed += new System.EventHandler(this.TextEntryChanged); }
public ResponseIdEditor() { combo = Gtk.ComboBoxEntry.NewText (); combo.Changed += combo_Changed; combo.Show (); PackStart (combo, true, true, 0); entry = combo.Child as Gtk.Entry; entry.Changed += entry_Changed; enm = Registry.LookupEnum ("Gtk.ResponseType"); values = new ArrayList (); foreach (Enum value in enm.Values) { if (enm[value].Label != "") { combo.AppendText (enm[value].Label); values.Add ((int)enm[value].Value); } } }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget Boxerp.Client.GtkSharp.Controls.IntegerTextBox Stetic.BinContainer.Attach(this); this.Name = "Boxerp.Client.GtkSharp.Controls.IntegerTextBox"; // Container child Boxerp.Client.GtkSharp.Controls.IntegerTextBox.Gtk.Container+ContainerChild this._textBox = new Gtk.Entry(); this._textBox.CanFocus = true; this._textBox.Name = "_textBox"; this._textBox.IsEditable = true; this._textBox.InvisibleChar = '●'; this.Add(this._textBox); if ((this.Child != null)) { this.Child.ShowAll(); } this.Show(); this._textBox.KeyReleaseEvent += new Gtk.KeyReleaseEventHandler(this.OnKeyReleased); }
void InitializeComponents() { // set up this actual dialog this.Modal = true; // set up the dialog fields and add them templateTextBox = new Gtk.Entry(); descriptionTextBox = new Gtk.Entry(); descriptionTextBox.ActivatesDefault = true; Gtk.Label label1 = new Gtk.Label(GettextCatalog.GetString ("_Description")); Gtk.Label label2 = new Gtk.Label(GettextCatalog.GetString ("_Template")); label1.Xalign = 0; label2.Xalign = 0; templateTextBox.Text = codeTemplate.Shortcut; descriptionTextBox.Text = codeTemplate.Description; Gtk.SizeGroup sizeGroup1 = new Gtk.SizeGroup(Gtk.SizeGroupMode.Horizontal); Gtk.SizeGroup sizeGroup2 = new Gtk.SizeGroup(Gtk.SizeGroupMode.Horizontal); sizeGroup1.AddWidget(templateTextBox); sizeGroup1.AddWidget(descriptionTextBox); sizeGroup2.AddWidget(label1); sizeGroup2.AddWidget(label2); // FIXME: make the labels both part of the same sizing group so they have the same left and right rows. Gtk.HBox hBox1 = new Gtk.HBox(false, 6); hBox1.PackStart(label1, false, false, 6); hBox1.PackStart(descriptionTextBox, false, false, 6); Gtk.HBox hBox2 = new Gtk.HBox(false, 6); hBox2.PackStart(label2, false, false, 6); hBox2.PackStart(templateTextBox, false, false, 6); this.VBox.PackStart(hBox1, false, false, 6); this.VBox.PackStart(hBox2, false, false, 6); // set up the buttons and add them this.DefaultResponse = Gtk.ResponseType.Ok; Gtk.Button cancelButton = new Gtk.Button(Gtk.Stock.Cancel); Gtk.Button okButton = new Gtk.Button(Gtk.Stock.Ok); okButton.Clicked += new EventHandler(AcceptEvent); cancelButton.Clicked += new EventHandler(CancelEvent); this.AddActionWidget (cancelButton, Gtk.ResponseType.Cancel); this.AddActionWidget (okButton, (int) Gtk.ResponseType.Ok); }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget HollyLibrary.HRegExEntry Stetic.BinContainer.Attach(this); this.Name = "HollyLibrary.HRegExEntry"; // Container child HollyLibrary.HRegExEntry.Gtk.Container+ContainerChild this.hbox1 = new Gtk.HBox(); this.hbox1.Name = "hbox1"; this.hbox1.Spacing = 6; this.hbox1.BorderWidth = ((uint)(5)); // Container child hbox1.Gtk.Box+BoxChild this.TextBox = new Gtk.Entry(); this.TextBox.CanFocus = true; this.TextBox.Name = "TextBox"; this.TextBox.IsEditable = true; this.TextBox.HasFrame = false; this.TextBox.InvisibleChar = '●'; this.hbox1.Add(this.TextBox); Gtk.Box.BoxChild w1 = ((Gtk.Box.BoxChild)(this.hbox1[this.TextBox])); w1.Position = 0; // Container child hbox1.Gtk.Box+BoxChild this.EbErrorImage = new Gtk.EventBox(); this.EbErrorImage.Name = "EbErrorImage"; this.EbErrorImage.VisibleWindow = false; // Container child EbErrorImage.Gtk.Container+ContainerChild this.ErrorImage = new Gtk.Image(); this.ErrorImage.Name = "ErrorImage"; this.EbErrorImage.Add(this.ErrorImage); this.hbox1.Add(this.EbErrorImage); Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.hbox1[this.EbErrorImage])); w3.Position = 1; w3.Expand = false; w3.Fill = false; this.Add(this.hbox1); if ((this.Child != null)) { this.Child.ShowAll(); } this.Show(); this.TextBox.Changed += new System.EventHandler(this.OnTextBoxChanged); }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget ocmgtk.DateWidget Stetic.BinContainer.Attach(this); this.Name = "ocmgtk.DateWidget"; // Container child ocmgtk.DateWidget.Gtk.Container+ContainerChild this.hbox1 = new Gtk.HBox(); this.hbox1.Name = "hbox1"; this.hbox1.Spacing = 6; // Container child hbox1.Gtk.Box+BoxChild this.dateField = new Gtk.Entry(); this.dateField.CanFocus = true; this.dateField.Name = "dateField"; this.dateField.IsEditable = true; this.dateField.InvisibleChar = '•'; this.hbox1.Add(this.dateField); Gtk.Box.BoxChild w1 = ((Gtk.Box.BoxChild)(this.hbox1[this.dateField])); w1.Position = 0; // Container child hbox1.Gtk.Box+BoxChild this.calButton = new Gtk.Button(); this.calButton.CanFocus = true; this.calButton.Name = "calButton"; // Container child calButton.Gtk.Container+ContainerChild this.image2 = new Gtk.Image(); this.image2.Name = "image2"; this.image2.Pixbuf = Stetic.IconLoader.LoadIcon(this, "stock_calendar", Gtk.IconSize.Menu, 16); this.calButton.Add(this.image2); this.calButton.Label = null; this.hbox1.Add(this.calButton); Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.hbox1[this.calButton])); w3.Position = 1; w3.Expand = false; w3.Fill = false; this.Add(this.hbox1); if ((this.Child != null)) { this.Child.ShowAll(); } this.Hide(); this.calButton.Clicked += new System.EventHandler(this.OnCallClicked); }
public MenuButtonEntry(Gtk.Entry entry, Gtk.Button button) { if (entry == null) entry = new Gtk.Entry (); if (button == null) button = new Gtk.Button (">"); this.entry = entry; manager = new CommandManager (); manager.RegisterGlobalHandler (this); PackStart (entry, true, true, 0); PackStart (button, false, false, 6); ActionCommand cmd = new ActionCommand ("InsertOption", "InsertOption", null); cmd.CommandArray = true; manager.RegisterCommand (cmd); entrySet = new CommandEntrySet (); entrySet.AddItem ("InsertOption"); button.Clicked += new EventHandler (ShowQuickInsertMenu); }
public MultiplicityElementViewer(IBroadcaster hub) { _orderedViewer = new SingleBooleanViewer(hub, "Ordered:", "IsOrdered"); _uniqueViewer = new SingleBooleanViewer(hub, "Unique:", "IsUnique"); _lower = new Gtk.Entry(); _lower.WidthChars = 4; _lower.Changed += new EventHandler(OnEntryChanged); _lower.Activated += new EventHandler(OnActivated); _lower.FocusOutEvent += new Gtk.FocusOutEventHandler(OnFocusOutEvent); _upper = new Gtk.Entry(); _upper.WidthChars = 4; _upper.Changed += new EventHandler(OnEntryChanged); _upper.Activated += new EventHandler(OnActivated); _upper.FocusOutEvent += new Gtk.FocusOutEventHandler(OnFocusOutEvent); base.PackStart(_orderedViewer, false, false, 0); base.PackStart(_uniqueViewer, false, false, 2); base.PackStart(new Gtk.Label("Lower:"), false, false, 2); base.PackStart(_lower, false, false, 2); base.PackStart(new Gtk.Label("Upper:"), false, false, 2); base.PackStart(_upper, false, false, 2); }
public PreferenceView() { vbox1 = new Gtk.VBox () { Spacing = 6 }; table1 = new Gtk.Table (3, 2, true) { RowSpacing = 6, ColumnSpacing = 6 }; entPassword = new Gtk.Entry () { CanFocus = true, IsEditable = true, Visibility = false, InvisibleChar = '●' }; table1.Attach (entPassword, 1, 2, 2, 3); entUrl = new Gtk.Entry () { CanFocus = true, IsEditable = true }; table1.Attach (entUrl, 1, 2, 0, 1); entUser = new Gtk.Entry () { CanFocus = true, IsEditable = true }; table1.Attach (entUser, 1, 2, 1, 2); lblPassword = new Gtk.Label ("Password:"******"Ampache Server Name:"); table1.Attach (lblUrl, 0, 1, 0 ,1); lblUser = new Gtk.Label ("User Name:"); table1.Attach (lblUser, 0, 1, 1, 2); vbox1.PackStart (table1, true, false, 0); hbox1 = new Gtk.HBox (); btnSave = new Gtk.Button (); btnSave.Label = "Save"; btnSave.Clicked += Save_OnClicked; hbox1.PackStart (btnSave, false, false, 0); btnClear = new Gtk.Button (); btnClear.Label = "Clear"; btnClear.Clicked += Clean_OnClicked; hbox1.PackStart (btnClear, true, false, 0); vbox1.PackStart (hbox1, false, false, 0); this.Add (vbox1); ShowAll (); entUrl.Text = AmpacheSource.AmpacheRootAddress.Get(AmpacheSource.AmpacheRootAddress.DefaultValue); entUser.Text = AmpacheSource.UserName.Get(AmpacheSource.UserName.DefaultValue); entPassword.Text = AmpacheSource.UserPassword.Get(AmpacheSource.UserPassword.DefaultValue); }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget MainWindow this.Name = "MainWindow"; this.Title = Mono.Unix.Catalog.GetString("MainWindow"); this.WindowPosition = ((Gtk.WindowPosition)(4)); // Container child MainWindow.Gtk.Container+ContainerChild this.fixed1 = new Gtk.Fixed(); this.fixed1.Name = "fixed1"; this.fixed1.HasWindow = false; // Container child fixed1.Gtk.Fixed+FixedChild this.entry1 = new Gtk.Entry(); this.entry1.CanFocus = true; this.entry1.Name = "entry1"; this.entry1.IsEditable = true; this.entry1.InvisibleChar = '•'; this.fixed1.Add(this.entry1); Gtk.Fixed.FixedChild w1 = ((Gtk.Fixed.FixedChild)(this.fixed1[this.entry1])); w1.X = 37; w1.Y = 44; // Container child fixed1.Gtk.Fixed+FixedChild this.button1 = new Gtk.Button(); this.button1.CanFocus = true; this.button1.Name = "button1"; this.button1.UseUnderline = true; this.button1.Label = Mono.Unix.Catalog.GetString("GtkButton"); this.fixed1.Add(this.button1); Gtk.Fixed.FixedChild w2 = ((Gtk.Fixed.FixedChild)(this.fixed1[this.button1])); w2.X = 221; w2.Y = 42; this.Add(this.fixed1); if ((this.Child != null)) { this.Child.ShowAll(); } this.DefaultWidth = 400; this.DefaultHeight = 320; this.Show(); this.DeleteEvent += new Gtk.DeleteEventHandler(this.OnDeleteEvent); }
protected SingleObjectViewer(IBroadcaster hub, string caption) : base(false, 0) { Gtk.Image image; _hub = hub; // Caption label base.PackStart(new Gtk.Label(caption), false, false, 0); // Value entry _entry = new Gtk.Entry(); _entry.IsEditable = false; base.PackStart(_entry, true, true, 0); // "Edit" button image = new Gtk.Image(); image.Stock = Gtk.Stock.Find; _btnEdit = new Gtk.Button(); _btnEdit.Add(image); _btnEdit.Relief = Gtk.ReliefStyle.None; _btnEdit.Clicked += new EventHandler(OnEditButtonClicked); _btnEdit.Sensitive = false; base.PackStart(_btnEdit, false, false, 0); // "Select" button image = new Gtk.Image(); image.Stock = Gtk.Stock.JumpTo; _btnSelect = new Gtk.Button(); _btnSelect.Add(image); _btnSelect.Relief = Gtk.ReliefStyle.None; _btnSelect.Clicked += new EventHandler(OnSelectButtonClicked); _btnSelect.Sensitive = false; base.PackStart(_btnSelect, false, false, 0); // "Clear" button image = new Gtk.Image(); image.Stock = Gtk.Stock.Clear; _btnClear = new Gtk.Button(); _btnClear.Add(image); _btnClear.Relief = Gtk.ReliefStyle.None; _btnClear.Clicked += new EventHandler(OnClearButtonClicked); _btnClear.Sensitive = false; base.PackStart(_btnClear, false, false, 0); }
public HIpEntry() { this.Build(); entries = new Gtk.Entry[] { entry1, entry2, entry3, entry4 }; foreach( Gtk.Entry e in entries ) { e.FocusInEvent += delegate(object sender, Gtk.FocusInEventArgs args ) { CurrentEntry = (Gtk.Entry) sender; this.QueueDraw(); }; e.FocusOutEvent += delegate(object sender, Gtk.FocusOutEventArgs args ) { CurrentEntry = (Gtk.Entry) sender; this.QueueDraw(); }; e.KeyReleaseEvent += OnEntryKeyRelease; } }
protected virtual void Build() { Stetic.Gui.Initialize(); // Widget CBinding.CodeGenerationPanel Stetic.BinContainer.Attach(this); this.Name = "CBinding.CodeGenerationPanel"; // Container child CBinding.CodeGenerationPanel.Gtk.Container+ContainerChild this.notebook1 = new Gtk.Notebook(); this.notebook1.CanFocus = true; this.notebook1.Name = "notebook1"; this.notebook1.CurrentPage = 0; // Container child notebook1.Gtk.Notebook+NotebookChild this.vbox6 = new Gtk.VBox(); this.vbox6.Name = "vbox6"; this.vbox6.Spacing = 3; // Container child vbox6.Gtk.Box+BoxChild this.table1 = new Gtk.Table(((uint)(3)), ((uint)(2)), false); this.table1.Name = "table1"; this.table1.RowSpacing = ((uint)(5)); this.table1.ColumnSpacing = ((uint)(5)); this.table1.BorderWidth = ((uint)(2)); // Container child table1.Gtk.Table+TableChild this.label4 = new Gtk.Label(); this.label4.Name = "label4"; this.label4.Xpad = 10; this.label4.Xalign = 0F; this.label4.LabelProp = Mono.Unix.Catalog.GetString("Warning Level:"); this.table1.Add(this.label4); Gtk.Table.TableChild w1 = ((Gtk.Table.TableChild)(this.table1[this.label4])); w1.XOptions = ((Gtk.AttachOptions)(4)); w1.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.label5 = new Gtk.Label(); this.label5.Name = "label5"; this.label5.Xpad = 10; this.label5.Xalign = 0F; this.label5.LabelProp = Mono.Unix.Catalog.GetString("Optimization Level:"); this.table1.Add(this.label5); Gtk.Table.TableChild w2 = ((Gtk.Table.TableChild)(this.table1[this.label5])); w2.TopAttach = ((uint)(1)); w2.BottomAttach = ((uint)(2)); w2.XOptions = ((Gtk.AttachOptions)(4)); w2.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.label6 = new Gtk.Label(); this.label6.Name = "label6"; this.label6.Xpad = 10; this.label6.Xalign = 0F; this.label6.LabelProp = Mono.Unix.Catalog.GetString("Target:"); this.table1.Add(this.label6); Gtk.Table.TableChild w3 = ((Gtk.Table.TableChild)(this.table1[this.label6])); w3.TopAttach = ((uint)(2)); w3.BottomAttach = ((uint)(3)); w3.XOptions = ((Gtk.AttachOptions)(4)); w3.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.optimizationSpinButton = new Gtk.SpinButton(0, 3, 1); this.optimizationSpinButton.CanFocus = true; this.optimizationSpinButton.Name = "optimizationSpinButton"; this.optimizationSpinButton.Adjustment.PageIncrement = 10; this.optimizationSpinButton.ClimbRate = 1; this.optimizationSpinButton.Numeric = true; this.table1.Add(this.optimizationSpinButton); Gtk.Table.TableChild w4 = ((Gtk.Table.TableChild)(this.table1[this.optimizationSpinButton])); w4.TopAttach = ((uint)(1)); w4.BottomAttach = ((uint)(2)); w4.LeftAttach = ((uint)(1)); w4.RightAttach = ((uint)(2)); w4.XOptions = ((Gtk.AttachOptions)(4)); w4.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.targetComboBox = Gtk.ComboBox.NewText(); this.targetComboBox.AppendText(Mono.Unix.Catalog.GetString("Executable")); this.targetComboBox.AppendText(Mono.Unix.Catalog.GetString("Static Library")); this.targetComboBox.AppendText(Mono.Unix.Catalog.GetString("Shared Object")); this.targetComboBox.Name = "targetComboBox"; this.table1.Add(this.targetComboBox); Gtk.Table.TableChild w5 = ((Gtk.Table.TableChild)(this.table1[this.targetComboBox])); w5.TopAttach = ((uint)(2)); w5.BottomAttach = ((uint)(3)); w5.LeftAttach = ((uint)(1)); w5.RightAttach = ((uint)(2)); w5.XOptions = ((Gtk.AttachOptions)(4)); w5.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.vbox1 = new Gtk.VBox(); this.vbox1.Name = "vbox1"; this.vbox1.Spacing = 1; // Container child vbox1.Gtk.Box+BoxChild this.noWarningRadio = new Gtk.RadioButton(Mono.Unix.Catalog.GetString("no warnings")); this.noWarningRadio.CanFocus = true; this.noWarningRadio.Name = "noWarningRadio"; this.noWarningRadio.Active = true; this.noWarningRadio.DrawIndicator = true; this.noWarningRadio.UseUnderline = true; this.noWarningRadio.Group = new GLib.SList(System.IntPtr.Zero); this.vbox1.Add(this.noWarningRadio); Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(this.vbox1[this.noWarningRadio])); w6.Position = 0; w6.Expand = false; w6.Fill = false; // Container child vbox1.Gtk.Box+BoxChild this.normalWarningRadio = new Gtk.RadioButton(Mono.Unix.Catalog.GetString("normal")); this.normalWarningRadio.CanFocus = true; this.normalWarningRadio.Name = "normalWarningRadio"; this.normalWarningRadio.DrawIndicator = true; this.normalWarningRadio.UseUnderline = true; this.normalWarningRadio.Group = this.noWarningRadio.Group; this.vbox1.Add(this.normalWarningRadio); Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(this.vbox1[this.normalWarningRadio])); w7.Position = 1; w7.Expand = false; w7.Fill = false; // Container child vbox1.Gtk.Box+BoxChild this.allWarningRadio = new Gtk.RadioButton(Mono.Unix.Catalog.GetString("all")); this.allWarningRadio.CanFocus = true; this.allWarningRadio.Name = "allWarningRadio"; this.allWarningRadio.DrawIndicator = true; this.allWarningRadio.UseUnderline = true; this.allWarningRadio.Group = this.noWarningRadio.Group; this.vbox1.Add(this.allWarningRadio); Gtk.Box.BoxChild w8 = ((Gtk.Box.BoxChild)(this.vbox1[this.allWarningRadio])); w8.Position = 2; w8.Expand = false; w8.Fill = false; this.table1.Add(this.vbox1); Gtk.Table.TableChild w9 = ((Gtk.Table.TableChild)(this.table1[this.vbox1])); w9.LeftAttach = ((uint)(1)); w9.RightAttach = ((uint)(2)); w9.XOptions = ((Gtk.AttachOptions)(4)); w9.YOptions = ((Gtk.AttachOptions)(4)); this.vbox6.Add(this.table1); Gtk.Box.BoxChild w10 = ((Gtk.Box.BoxChild)(this.vbox6[this.table1])); w10.Position = 0; w10.Expand = false; w10.Fill = false; // Container child vbox6.Gtk.Box+BoxChild this.hbox1 = new Gtk.HBox(); this.hbox1.Name = "hbox1"; this.hbox1.Spacing = 6; // Container child hbox1.Gtk.Box+BoxChild this.label12 = new Gtk.Label(); this.label12.Name = "label12"; this.label12.Xpad = 13; this.label12.Xalign = 0F; this.label12.LabelProp = Mono.Unix.Catalog.GetString("Define Symbols:"); this.hbox1.Add(this.label12); Gtk.Box.BoxChild w11 = ((Gtk.Box.BoxChild)(this.hbox1[this.label12])); w11.Position = 0; w11.Expand = false; w11.Fill = false; // Container child hbox1.Gtk.Box+BoxChild this.defineSymbolsTextEntry = new Gtk.Entry(); Gtk.Tooltips w12 = new Gtk.Tooltips(); w12.SetTip(this.defineSymbolsTextEntry, "A space seperated list of symbols to define.", "A space seperated list of symbols to define."); this.defineSymbolsTextEntry.CanFocus = true; this.defineSymbolsTextEntry.Name = "defineSymbolsTextEntry"; this.defineSymbolsTextEntry.IsEditable = true; this.defineSymbolsTextEntry.InvisibleChar = '●'; this.hbox1.Add(this.defineSymbolsTextEntry); Gtk.Box.BoxChild w13 = ((Gtk.Box.BoxChild)(this.hbox1[this.defineSymbolsTextEntry])); w13.Position = 1; w13.Padding = ((uint)(14)); this.vbox6.Add(this.hbox1); Gtk.Box.BoxChild w14 = ((Gtk.Box.BoxChild)(this.vbox6[this.hbox1])); w14.Position = 1; w14.Expand = false; w14.Fill = false; // Container child vbox6.Gtk.Box+BoxChild this.frame2 = new Gtk.Frame(); this.frame2.Name = "frame2"; this.frame2.ShadowType = ((Gtk.ShadowType)(0)); this.frame2.LabelXalign = 0F; this.frame2.LabelYalign = 0F; // Container child frame2.Gtk.Container+ContainerChild this.GtkAlignment = new Gtk.Alignment(0F, 0F, 1F, 1F); this.GtkAlignment.Name = "GtkAlignment"; this.GtkAlignment.LeftPadding = ((uint)(12)); // Container child GtkAlignment.Gtk.Container+ContainerChild this.table5 = new Gtk.Table(((uint)(2)), ((uint)(2)), false); this.table5.Name = "table5"; this.table5.RowSpacing = ((uint)(6)); this.table5.ColumnSpacing = ((uint)(9)); this.table5.BorderWidth = ((uint)(6)); // Container child table5.Gtk.Table+TableChild this.label11 = new Gtk.Label(); this.label11.Name = "label11"; this.label11.Xalign = 0F; this.label11.LabelProp = Mono.Unix.Catalog.GetString("Extra Linker Options"); this.table5.Add(this.label11); Gtk.Table.TableChild w15 = ((Gtk.Table.TableChild)(this.table5[this.label11])); w15.LeftAttach = ((uint)(1)); w15.RightAttach = ((uint)(2)); w15.XOptions = ((Gtk.AttachOptions)(4)); w15.YOptions = ((Gtk.AttachOptions)(4)); // Container child table5.Gtk.Table+TableChild this.label7 = new Gtk.Label(); this.label7.Name = "label7"; this.label7.Xalign = 0F; this.label7.LabelProp = Mono.Unix.Catalog.GetString("Extra Compiler Options"); this.table5.Add(this.label7); Gtk.Table.TableChild w16 = ((Gtk.Table.TableChild)(this.table5[this.label7])); w16.XOptions = ((Gtk.AttachOptions)(4)); w16.YOptions = ((Gtk.AttachOptions)(4)); // Container child table5.Gtk.Table+TableChild this.scrolledwindow4 = new Gtk.ScrolledWindow(); this.scrolledwindow4.CanFocus = true; this.scrolledwindow4.Name = "scrolledwindow4"; this.scrolledwindow4.VscrollbarPolicy = ((Gtk.PolicyType)(1)); this.scrolledwindow4.HscrollbarPolicy = ((Gtk.PolicyType)(1)); this.scrolledwindow4.ShadowType = ((Gtk.ShadowType)(1)); // Container child scrolledwindow4.Gtk.Container+ContainerChild this.extraCompilerTextView = new Gtk.TextView(); w12.SetTip(this.extraCompilerTextView, "A newline seperated list of extra options to send to the compiler.\nOne option can be in more than one line.\nExample:\n\t`pkg-config\n\t--cflags\n\tcairo`", "A newline seperated list of extra options to send to the compiler.\nOne option can be in more than one line.\nExample:\n\t`pkg-config\n\t--cflags\n\tcairo`"); this.extraCompilerTextView.CanFocus = true; this.extraCompilerTextView.Name = "extraCompilerTextView"; this.scrolledwindow4.Add(this.extraCompilerTextView); this.table5.Add(this.scrolledwindow4); Gtk.Table.TableChild w18 = ((Gtk.Table.TableChild)(this.table5[this.scrolledwindow4])); w18.TopAttach = ((uint)(1)); w18.BottomAttach = ((uint)(2)); // Container child table5.Gtk.Table+TableChild this.scrolledwindow5 = new Gtk.ScrolledWindow(); this.scrolledwindow5.CanFocus = true; this.scrolledwindow5.Name = "scrolledwindow5"; this.scrolledwindow5.VscrollbarPolicy = ((Gtk.PolicyType)(1)); this.scrolledwindow5.HscrollbarPolicy = ((Gtk.PolicyType)(1)); this.scrolledwindow5.ShadowType = ((Gtk.ShadowType)(1)); // Container child scrolledwindow5.Gtk.Container+ContainerChild this.extraLinkerTextView = new Gtk.TextView(); w12.SetTip(this.extraLinkerTextView, "A newline seperated list of extra options to send to the linker.\nOne option can be in more than one line.\nExample:\n\t`pkg-config\n\t--libs\n\tcairo`", "A newline seperated list of extra options to send to the linker.\nOne option can be in more than one line.\nExample:\n\t`pkg-config\n\t--libs\n\tcairo`"); this.extraLinkerTextView.CanFocus = true; this.extraLinkerTextView.Name = "extraLinkerTextView"; this.scrolledwindow5.Add(this.extraLinkerTextView); this.table5.Add(this.scrolledwindow5); Gtk.Table.TableChild w20 = ((Gtk.Table.TableChild)(this.table5[this.scrolledwindow5])); w20.TopAttach = ((uint)(1)); w20.BottomAttach = ((uint)(2)); w20.LeftAttach = ((uint)(1)); w20.RightAttach = ((uint)(2)); this.GtkAlignment.Add(this.table5); this.frame2.Add(this.GtkAlignment); this.GtkLabel12 = new Gtk.Label(); this.GtkLabel12.Name = "GtkLabel12"; this.GtkLabel12.LabelProp = Mono.Unix.Catalog.GetString("<b>Extra Options</b>"); this.GtkLabel12.UseMarkup = true; this.frame2.LabelWidget = this.GtkLabel12; this.vbox6.Add(this.frame2); Gtk.Box.BoxChild w23 = ((Gtk.Box.BoxChild)(this.vbox6[this.frame2])); w23.Position = 2; this.notebook1.Add(this.vbox6); Gtk.Notebook.NotebookChild w24 = ((Gtk.Notebook.NotebookChild)(this.notebook1[this.vbox6])); w24.TabExpand = false; // Notebook tab this.label1 = new Gtk.Label(); this.label1.Name = "label1"; this.label1.LabelProp = Mono.Unix.Catalog.GetString("Code Generation"); this.notebook1.SetTabLabel(this.vbox6, this.label1); // Container child notebook1.Gtk.Notebook+NotebookChild this.table2 = new Gtk.Table(((uint)(2)), ((uint)(3)), false); this.table2.Name = "table2"; this.table2.RowSpacing = ((uint)(10)); this.table2.ColumnSpacing = ((uint)(10)); this.table2.BorderWidth = ((uint)(3)); // Container child table2.Gtk.Table+TableChild this.addLibButton = new Gtk.Button(); this.addLibButton.Sensitive = false; this.addLibButton.CanFocus = true; this.addLibButton.Name = "addLibButton"; this.addLibButton.UseUnderline = true; this.addLibButton.Label = Mono.Unix.Catalog.GetString("Add"); this.table2.Add(this.addLibButton); Gtk.Table.TableChild w25 = ((Gtk.Table.TableChild)(this.table2[this.addLibButton])); w25.LeftAttach = ((uint)(2)); w25.RightAttach = ((uint)(3)); w25.XOptions = ((Gtk.AttachOptions)(4)); w25.YOptions = ((Gtk.AttachOptions)(4)); // Container child table2.Gtk.Table+TableChild this.label8 = new Gtk.Label(); this.label8.Name = "label8"; this.label8.LabelProp = Mono.Unix.Catalog.GetString("Library:"); this.table2.Add(this.label8); Gtk.Table.TableChild w26 = ((Gtk.Table.TableChild)(this.table2[this.label8])); w26.XOptions = ((Gtk.AttachOptions)(4)); w26.YOptions = ((Gtk.AttachOptions)(4)); // Container child table2.Gtk.Table+TableChild this.libAddEntry = new Gtk.Entry(); this.libAddEntry.CanFocus = true; this.libAddEntry.Name = "libAddEntry"; this.libAddEntry.IsEditable = true; this.libAddEntry.InvisibleChar = '●'; this.table2.Add(this.libAddEntry); Gtk.Table.TableChild w27 = ((Gtk.Table.TableChild)(this.table2[this.libAddEntry])); w27.LeftAttach = ((uint)(1)); w27.RightAttach = ((uint)(2)); w27.YOptions = ((Gtk.AttachOptions)(4)); // Container child table2.Gtk.Table+TableChild this.scrolledwindow1 = new Gtk.ScrolledWindow(); this.scrolledwindow1.CanFocus = true; this.scrolledwindow1.Name = "scrolledwindow1"; this.scrolledwindow1.VscrollbarPolicy = ((Gtk.PolicyType)(1)); this.scrolledwindow1.HscrollbarPolicy = ((Gtk.PolicyType)(1)); this.scrolledwindow1.ShadowType = ((Gtk.ShadowType)(1)); // Container child scrolledwindow1.Gtk.Container+ContainerChild this.libTreeView = new Gtk.TreeView(); this.libTreeView.CanFocus = true; this.libTreeView.Name = "libTreeView"; this.libTreeView.HeadersClickable = true; this.scrolledwindow1.Add(this.libTreeView); this.table2.Add(this.scrolledwindow1); Gtk.Table.TableChild w29 = ((Gtk.Table.TableChild)(this.table2[this.scrolledwindow1])); w29.TopAttach = ((uint)(1)); w29.BottomAttach = ((uint)(2)); w29.LeftAttach = ((uint)(1)); w29.RightAttach = ((uint)(2)); // Container child table2.Gtk.Table+TableChild this.vbox4 = new Gtk.VBox(); this.vbox4.Name = "vbox4"; this.vbox4.Spacing = 6; // Container child vbox4.Gtk.Box+BoxChild this.browseButton = new Gtk.Button(); this.browseButton.CanFocus = true; this.browseButton.Name = "browseButton"; this.browseButton.UseUnderline = true; this.browseButton.Label = Mono.Unix.Catalog.GetString("Browse..."); this.vbox4.Add(this.browseButton); Gtk.Box.BoxChild w30 = ((Gtk.Box.BoxChild)(this.vbox4[this.browseButton])); w30.Position = 0; w30.Expand = false; w30.Fill = false; // Container child vbox4.Gtk.Box+BoxChild this.removeLibButton = new Gtk.Button(); this.removeLibButton.Sensitive = false; this.removeLibButton.CanFocus = true; this.removeLibButton.Name = "removeLibButton"; this.removeLibButton.UseUnderline = true; this.removeLibButton.Label = Mono.Unix.Catalog.GetString("Remove"); this.vbox4.Add(this.removeLibButton); Gtk.Box.BoxChild w31 = ((Gtk.Box.BoxChild)(this.vbox4[this.removeLibButton])); w31.Position = 1; w31.Expand = false; w31.Fill = false; this.table2.Add(this.vbox4); Gtk.Table.TableChild w32 = ((Gtk.Table.TableChild)(this.table2[this.vbox4])); w32.TopAttach = ((uint)(1)); w32.BottomAttach = ((uint)(2)); w32.LeftAttach = ((uint)(2)); w32.RightAttach = ((uint)(3)); w32.XOptions = ((Gtk.AttachOptions)(4)); this.notebook1.Add(this.table2); Gtk.Notebook.NotebookChild w33 = ((Gtk.Notebook.NotebookChild)(this.notebook1[this.table2])); w33.Position = 1; w33.TabExpand = false; // Notebook tab this.label2 = new Gtk.Label(); this.label2.Name = "label2"; this.label2.LabelProp = Mono.Unix.Catalog.GetString("Libraries"); this.notebook1.SetTabLabel(this.table2, this.label2); // Container child notebook1.Gtk.Notebook+NotebookChild this.vbox7 = new Gtk.VBox(); this.vbox7.Name = "vbox7"; this.vbox7.Spacing = 6; this.vbox7.BorderWidth = ((uint)(3)); // Container child vbox7.Gtk.Box+BoxChild this.table4 = new Gtk.Table(((uint)(2)), ((uint)(3)), false); this.table4.Name = "table4"; this.table4.RowSpacing = ((uint)(10)); this.table4.ColumnSpacing = ((uint)(10)); // Container child table4.Gtk.Table+TableChild this.label10 = new Gtk.Label(); this.label10.Name = "label10"; this.label10.LabelProp = Mono.Unix.Catalog.GetString("Library:"); this.table4.Add(this.label10); Gtk.Table.TableChild w34 = ((Gtk.Table.TableChild)(this.table4[this.label10])); w34.XOptions = ((Gtk.AttachOptions)(4)); w34.YOptions = ((Gtk.AttachOptions)(4)); // Container child table4.Gtk.Table+TableChild this.libPathAddButton = new Gtk.Button(); this.libPathAddButton.Sensitive = false; this.libPathAddButton.CanFocus = true; this.libPathAddButton.Name = "libPathAddButton"; this.libPathAddButton.UseUnderline = true; this.libPathAddButton.Label = Mono.Unix.Catalog.GetString("Add"); this.table4.Add(this.libPathAddButton); Gtk.Table.TableChild w35 = ((Gtk.Table.TableChild)(this.table4[this.libPathAddButton])); w35.LeftAttach = ((uint)(2)); w35.RightAttach = ((uint)(3)); w35.XOptions = ((Gtk.AttachOptions)(4)); w35.YOptions = ((Gtk.AttachOptions)(4)); // Container child table4.Gtk.Table+TableChild this.libPathEntry = new Gtk.Entry(); this.libPathEntry.CanFocus = true; this.libPathEntry.Name = "libPathEntry"; this.libPathEntry.IsEditable = true; this.libPathEntry.InvisibleChar = '●'; this.table4.Add(this.libPathEntry); Gtk.Table.TableChild w36 = ((Gtk.Table.TableChild)(this.table4[this.libPathEntry])); w36.LeftAttach = ((uint)(1)); w36.RightAttach = ((uint)(2)); w36.YOptions = ((Gtk.AttachOptions)(4)); // Container child table4.Gtk.Table+TableChild this.scrolledwindow3 = new Gtk.ScrolledWindow(); this.scrolledwindow3.CanFocus = true; this.scrolledwindow3.Name = "scrolledwindow3"; this.scrolledwindow3.VscrollbarPolicy = ((Gtk.PolicyType)(1)); this.scrolledwindow3.HscrollbarPolicy = ((Gtk.PolicyType)(1)); this.scrolledwindow3.ShadowType = ((Gtk.ShadowType)(1)); // Container child scrolledwindow3.Gtk.Container+ContainerChild this.libPathTreeView = new Gtk.TreeView(); this.libPathTreeView.CanFocus = true; this.libPathTreeView.Name = "libPathTreeView"; this.libPathTreeView.HeadersClickable = true; this.scrolledwindow3.Add(this.libPathTreeView); this.table4.Add(this.scrolledwindow3); Gtk.Table.TableChild w38 = ((Gtk.Table.TableChild)(this.table4[this.scrolledwindow3])); w38.TopAttach = ((uint)(1)); w38.BottomAttach = ((uint)(2)); w38.LeftAttach = ((uint)(1)); w38.RightAttach = ((uint)(2)); // Container child table4.Gtk.Table+TableChild this.vbox3 = new Gtk.VBox(); this.vbox3.Name = "vbox3"; this.vbox3.Spacing = 6; // Container child vbox3.Gtk.Box+BoxChild this.libPathBrowseButton = new Gtk.Button(); this.libPathBrowseButton.CanFocus = true; this.libPathBrowseButton.Name = "libPathBrowseButton"; this.libPathBrowseButton.UseUnderline = true; this.libPathBrowseButton.Label = Mono.Unix.Catalog.GetString("Browse..."); this.vbox3.Add(this.libPathBrowseButton); Gtk.Box.BoxChild w39 = ((Gtk.Box.BoxChild)(this.vbox3[this.libPathBrowseButton])); w39.Position = 0; w39.Expand = false; w39.Fill = false; // Container child vbox3.Gtk.Box+BoxChild this.libPathRemoveButton = new Gtk.Button(); this.libPathRemoveButton.Sensitive = false; this.libPathRemoveButton.CanFocus = true; this.libPathRemoveButton.Name = "libPathRemoveButton"; this.libPathRemoveButton.UseUnderline = true; this.libPathRemoveButton.Label = Mono.Unix.Catalog.GetString("Remove"); this.vbox3.Add(this.libPathRemoveButton); Gtk.Box.BoxChild w40 = ((Gtk.Box.BoxChild)(this.vbox3[this.libPathRemoveButton])); w40.Position = 1; w40.Expand = false; w40.Fill = false; this.table4.Add(this.vbox3); Gtk.Table.TableChild w41 = ((Gtk.Table.TableChild)(this.table4[this.vbox3])); w41.TopAttach = ((uint)(1)); w41.BottomAttach = ((uint)(2)); w41.LeftAttach = ((uint)(2)); w41.RightAttach = ((uint)(3)); w41.XOptions = ((Gtk.AttachOptions)(4)); this.vbox7.Add(this.table4); Gtk.Box.BoxChild w42 = ((Gtk.Box.BoxChild)(this.vbox7[this.table4])); w42.Position = 0; // Container child vbox7.Gtk.Box+BoxChild this.table3 = new Gtk.Table(((uint)(2)), ((uint)(3)), false); this.table3.Name = "table3"; this.table3.RowSpacing = ((uint)(10)); this.table3.ColumnSpacing = ((uint)(10)); // Container child table3.Gtk.Table+TableChild this.includePathAddButton = new Gtk.Button(); this.includePathAddButton.Sensitive = false; this.includePathAddButton.CanFocus = true; this.includePathAddButton.Name = "includePathAddButton"; this.includePathAddButton.UseUnderline = true; this.includePathAddButton.Label = Mono.Unix.Catalog.GetString("Add"); this.table3.Add(this.includePathAddButton); Gtk.Table.TableChild w43 = ((Gtk.Table.TableChild)(this.table3[this.includePathAddButton])); w43.LeftAttach = ((uint)(2)); w43.RightAttach = ((uint)(3)); w43.XOptions = ((Gtk.AttachOptions)(4)); w43.YOptions = ((Gtk.AttachOptions)(4)); // Container child table3.Gtk.Table+TableChild this.includePathEntry = new Gtk.Entry(); this.includePathEntry.CanFocus = true; this.includePathEntry.Name = "includePathEntry"; this.includePathEntry.IsEditable = true; this.includePathEntry.InvisibleChar = '●'; this.table3.Add(this.includePathEntry); Gtk.Table.TableChild w44 = ((Gtk.Table.TableChild)(this.table3[this.includePathEntry])); w44.LeftAttach = ((uint)(1)); w44.RightAttach = ((uint)(2)); w44.YOptions = ((Gtk.AttachOptions)(4)); // Container child table3.Gtk.Table+TableChild this.label9 = new Gtk.Label(); this.label9.Name = "label9"; this.label9.LabelProp = Mono.Unix.Catalog.GetString("Include:"); this.table3.Add(this.label9); Gtk.Table.TableChild w45 = ((Gtk.Table.TableChild)(this.table3[this.label9])); w45.XOptions = ((Gtk.AttachOptions)(4)); w45.YOptions = ((Gtk.AttachOptions)(4)); // Container child table3.Gtk.Table+TableChild this.scrolledwindow2 = new Gtk.ScrolledWindow(); this.scrolledwindow2.CanFocus = true; this.scrolledwindow2.Name = "scrolledwindow2"; this.scrolledwindow2.VscrollbarPolicy = ((Gtk.PolicyType)(1)); this.scrolledwindow2.HscrollbarPolicy = ((Gtk.PolicyType)(1)); this.scrolledwindow2.ShadowType = ((Gtk.ShadowType)(1)); // Container child scrolledwindow2.Gtk.Container+ContainerChild this.includePathTreeView = new Gtk.TreeView(); this.includePathTreeView.CanFocus = true; this.includePathTreeView.Name = "includePathTreeView"; this.includePathTreeView.HeadersClickable = true; this.scrolledwindow2.Add(this.includePathTreeView); this.table3.Add(this.scrolledwindow2); Gtk.Table.TableChild w47 = ((Gtk.Table.TableChild)(this.table3[this.scrolledwindow2])); w47.TopAttach = ((uint)(1)); w47.BottomAttach = ((uint)(2)); w47.LeftAttach = ((uint)(1)); w47.RightAttach = ((uint)(2)); // Container child table3.Gtk.Table+TableChild this.vbox5 = new Gtk.VBox(); this.vbox5.Name = "vbox5"; this.vbox5.Spacing = 6; // Container child vbox5.Gtk.Box+BoxChild this.includePathBrowseButton = new Gtk.Button(); this.includePathBrowseButton.CanFocus = true; this.includePathBrowseButton.Name = "includePathBrowseButton"; this.includePathBrowseButton.UseUnderline = true; this.includePathBrowseButton.Label = Mono.Unix.Catalog.GetString("Browse..."); this.vbox5.Add(this.includePathBrowseButton); Gtk.Box.BoxChild w48 = ((Gtk.Box.BoxChild)(this.vbox5[this.includePathBrowseButton])); w48.Position = 0; w48.Expand = false; w48.Fill = false; // Container child vbox5.Gtk.Box+BoxChild this.includePathRemoveButton = new Gtk.Button(); this.includePathRemoveButton.Sensitive = false; this.includePathRemoveButton.CanFocus = true; this.includePathRemoveButton.Name = "includePathRemoveButton"; this.includePathRemoveButton.UseUnderline = true; this.includePathRemoveButton.Label = Mono.Unix.Catalog.GetString("Remove"); this.vbox5.Add(this.includePathRemoveButton); Gtk.Box.BoxChild w49 = ((Gtk.Box.BoxChild)(this.vbox5[this.includePathRemoveButton])); w49.Position = 1; w49.Expand = false; w49.Fill = false; this.table3.Add(this.vbox5); Gtk.Table.TableChild w50 = ((Gtk.Table.TableChild)(this.table3[this.vbox5])); w50.TopAttach = ((uint)(1)); w50.BottomAttach = ((uint)(2)); w50.LeftAttach = ((uint)(2)); w50.RightAttach = ((uint)(3)); w50.XOptions = ((Gtk.AttachOptions)(4)); this.vbox7.Add(this.table3); Gtk.Box.BoxChild w51 = ((Gtk.Box.BoxChild)(this.vbox7[this.table3])); w51.Position = 1; this.notebook1.Add(this.vbox7); Gtk.Notebook.NotebookChild w52 = ((Gtk.Notebook.NotebookChild)(this.notebook1[this.vbox7])); w52.Position = 2; w52.TabExpand = false; // Notebook tab this.label3 = new Gtk.Label(); this.label3.Name = "label3"; this.label3.LabelProp = Mono.Unix.Catalog.GetString("Paths"); this.notebook1.SetTabLabel(this.vbox7, this.label3); this.Add(this.notebook1); if ((this.Child != null)) { this.Child.ShowAll(); } this.Show(); this.browseButton.Clicked += new System.EventHandler(this.OnBrowseButtonClick); this.removeLibButton.Clicked += new System.EventHandler(this.OnRemoveLibButtonClicked); this.removeLibButton.Clicked += new System.EventHandler(this.OnLibRemoved); this.libTreeView.CursorChanged += new System.EventHandler(this.OnLibTreeViewCursorChanged); this.libAddEntry.Changed += new System.EventHandler(this.OnLibAddEntryChanged); this.libAddEntry.Activated += new System.EventHandler(this.OnLibAddEntryActivated); this.addLibButton.Clicked += new System.EventHandler(this.OnLibAdded); this.libPathBrowseButton.Clicked += new System.EventHandler(this.OnLibPathBrowseButtonClick); this.libPathRemoveButton.Clicked += new System.EventHandler(this.OnLibPathRemoveButtonClicked); this.libPathRemoveButton.Clicked += new System.EventHandler(this.OnLibPathRemoved); this.libPathTreeView.CursorChanged += new System.EventHandler(this.OnLibPathTreeViewCursorChanged); this.libPathEntry.Changed += new System.EventHandler(this.OnLibPathEntryChanged); this.libPathEntry.Activated += new System.EventHandler(this.OnLibPathEntryActivated); this.libPathAddButton.Clicked += new System.EventHandler(this.OnLibPathAdded); this.includePathBrowseButton.Clicked += new System.EventHandler(this.OnIncludePathBrowseButtonClick); this.includePathRemoveButton.Clicked += new System.EventHandler(this.OnIncludePathRemoveButtonClicked); this.includePathRemoveButton.Clicked += new System.EventHandler(this.OnIncludePathRemoved); this.includePathTreeView.CursorChanged += new System.EventHandler(this.OnIncludePathTreeViewCursorChanged); this.includePathEntry.Changed += new System.EventHandler(this.OnIncludePathEntryChanged); this.includePathEntry.Activated += new System.EventHandler(this.OnIncludePathEntryActivated); this.includePathAddButton.Clicked += new System.EventHandler(this.OnIncludePathAdded); }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget ocmgtk.ExportPOIDialog this.WidthRequest = 600; this.Name = "ocmgtk.ExportPOIDialog"; this.Title = Mono.Unix.Catalog.GetString("Export Garmin POI"); this.TypeHint = ((Gdk.WindowTypeHint)(1)); this.WindowPosition = ((Gtk.WindowPosition)(4)); this.Modal = true; this.BorderWidth = ((uint)(6)); this.Resizable = false; this.AllowGrow = false; this.SkipPagerHint = true; this.SkipTaskbarHint = true; // Internal child ocmgtk.ExportPOIDialog.VBox Gtk.VBox w1 = this.VBox; w1.Name = "dialog1_VBox"; w1.BorderWidth = ((uint)(2)); // Container child dialog1_VBox.Gtk.Box+BoxChild this.vbox2 = new Gtk.VBox(); this.vbox2.Name = "vbox2"; this.vbox2.Spacing = 6; // Container child vbox2.Gtk.Box+BoxChild this.hbox1 = new Gtk.HBox(); this.hbox1.Name = "hbox1"; this.hbox1.Spacing = 6; // Container child hbox1.Gtk.Box+BoxChild this.label1 = new Gtk.Label(); this.label1.Name = "label1"; this.label1.LabelProp = Mono.Unix.Catalog.GetString("File:"); this.hbox1.Add(this.label1); Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.hbox1[this.label1])); w2.Position = 0; w2.Expand = false; w2.Fill = false; // Container child hbox1.Gtk.Box+BoxChild this.fileEntry = new Gtk.Entry(); this.fileEntry.CanFocus = true; this.fileEntry.Name = "fileEntry"; this.fileEntry.IsEditable = true; this.fileEntry.InvisibleChar = '●'; this.hbox1.Add(this.fileEntry); Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.hbox1[this.fileEntry])); w3.Position = 1; // Container child hbox1.Gtk.Box+BoxChild this.fileButton = new Gtk.Button(); this.fileButton.CanFocus = true; this.fileButton.Name = "fileButton"; // Container child fileButton.Gtk.Container+ContainerChild this.image3 = new Gtk.Image(); this.image3.Name = "image3"; this.image3.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-open", Gtk.IconSize.Menu, 16); this.fileButton.Add(this.image3); this.fileButton.Label = null; this.hbox1.Add(this.fileButton); Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.hbox1[this.fileButton])); w5.Position = 2; w5.Expand = false; w5.Fill = false; this.vbox2.Add(this.hbox1); Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(this.vbox2[this.hbox1])); w6.Position = 0; w6.Expand = false; w6.Fill = false; // Container child vbox2.Gtk.Box+BoxChild this.frame1 = new Gtk.Frame(); this.frame1.Name = "frame1"; this.frame1.ShadowType = ((Gtk.ShadowType)(0)); // Container child frame1.Gtk.Container+ContainerChild this.GtkAlignment2 = new Gtk.Alignment(0F, 0F, 1F, 1F); this.GtkAlignment2.Name = "GtkAlignment2"; this.GtkAlignment2.LeftPadding = ((uint)(12)); // Container child GtkAlignment2.Gtk.Container+ContainerChild this.table1 = new Gtk.Table(((uint)(9)), ((uint)(2)), false); this.table1.Name = "table1"; this.table1.RowSpacing = ((uint)(6)); this.table1.ColumnSpacing = ((uint)(6)); // Container child table1.Gtk.Table+TableChild this.catagoryEntry = new Gtk.Entry(); this.catagoryEntry.CanFocus = true; this.catagoryEntry.Name = "catagoryEntry"; this.catagoryEntry.Text = Mono.Unix.Catalog.GetString("Geocaches"); this.catagoryEntry.IsEditable = true; this.catagoryEntry.InvisibleChar = '●'; this.table1.Add(this.catagoryEntry); Gtk.Table.TableChild w7 = ((Gtk.Table.TableChild)(this.table1[this.catagoryEntry])); w7.TopAttach = ((uint)(2)); w7.BottomAttach = ((uint)(3)); w7.LeftAttach = ((uint)(1)); w7.RightAttach = ((uint)(2)); w7.XOptions = ((Gtk.AttachOptions)(4)); w7.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.descCombo = Gtk.ComboBox.NewText(); this.descCombo.AppendText(Mono.Unix.Catalog.GetString("Cache Name")); this.descCombo.AppendText(Mono.Unix.Catalog.GetString("Cache Code/Size/Hint")); this.descCombo.AppendText(Mono.Unix.Catalog.GetString("Cache Code/Size/Type")); this.descCombo.AppendText(Mono.Unix.Catalog.GetString("Full Paperless")); this.descCombo.Name = "descCombo"; this.descCombo.Active = 0; this.table1.Add(this.descCombo); Gtk.Table.TableChild w8 = ((Gtk.Table.TableChild)(this.table1[this.descCombo])); w8.TopAttach = ((uint)(1)); w8.BottomAttach = ((uint)(2)); w8.LeftAttach = ((uint)(1)); w8.RightAttach = ((uint)(2)); w8.XOptions = ((Gtk.AttachOptions)(4)); w8.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.hbox2 = new Gtk.HBox(); this.hbox2.Name = "hbox2"; this.hbox2.Spacing = 6; // Container child hbox2.Gtk.Box+BoxChild this.includeBMPCheck = new Gtk.CheckButton(); this.includeBMPCheck.CanFocus = true; this.includeBMPCheck.Name = "includeBMPCheck"; this.includeBMPCheck.Label = Mono.Unix.Catalog.GetString("BMP Icon:"); this.includeBMPCheck.DrawIndicator = true; this.includeBMPCheck.UseUnderline = true; this.hbox2.Add(this.includeBMPCheck); Gtk.Box.BoxChild w9 = ((Gtk.Box.BoxChild)(this.hbox2[this.includeBMPCheck])); w9.Position = 0; w9.Expand = false; // Container child hbox2.Gtk.Box+BoxChild this.bmpFile = new Gtk.Entry(); this.bmpFile.Sensitive = false; this.bmpFile.CanFocus = true; this.bmpFile.Name = "bmpFile"; this.bmpFile.IsEditable = true; this.bmpFile.InvisibleChar = '●'; this.hbox2.Add(this.bmpFile); Gtk.Box.BoxChild w10 = ((Gtk.Box.BoxChild)(this.hbox2[this.bmpFile])); w10.Position = 1; // Container child hbox2.Gtk.Box+BoxChild this.bmpButton = new Gtk.Button(); this.bmpButton.Sensitive = false; this.bmpButton.CanFocus = true; this.bmpButton.Name = "bmpButton"; // Container child bmpButton.Gtk.Container+ContainerChild this.image4 = new Gtk.Image(); this.image4.Name = "image4"; this.image4.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-open", Gtk.IconSize.Menu, 16); this.bmpButton.Add(this.image4); this.bmpButton.Label = null; this.hbox2.Add(this.bmpButton); Gtk.Box.BoxChild w12 = ((Gtk.Box.BoxChild)(this.hbox2[this.bmpButton])); w12.Position = 2; w12.Expand = false; w12.Fill = false; this.table1.Add(this.hbox2); Gtk.Table.TableChild w13 = ((Gtk.Table.TableChild)(this.table1[this.hbox2])); w13.TopAttach = ((uint)(8)); w13.BottomAttach = ((uint)(9)); w13.RightAttach = ((uint)(2)); w13.XOptions = ((Gtk.AttachOptions)(4)); w13.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.hbox3 = new Gtk.HBox(); this.hbox3.Name = "hbox3"; this.hbox3.Spacing = 6; // Container child hbox3.Gtk.Box+BoxChild this.proxEntry = new Gtk.Entry(); this.proxEntry.Sensitive = false; this.proxEntry.CanFocus = true; this.proxEntry.Name = "proxEntry"; this.proxEntry.Text = Mono.Unix.Catalog.GetString("1"); this.proxEntry.IsEditable = true; this.proxEntry.InvisibleChar = '●'; this.hbox3.Add(this.proxEntry); Gtk.Box.BoxChild w14 = ((Gtk.Box.BoxChild)(this.hbox3[this.proxEntry])); w14.Position = 0; // Container child hbox3.Gtk.Box+BoxChild this.proxCombo = Gtk.ComboBox.NewText(); this.proxCombo.AppendText(Mono.Unix.Catalog.GetString("kilometers")); this.proxCombo.AppendText(Mono.Unix.Catalog.GetString("miles")); this.proxCombo.Sensitive = false; this.proxCombo.Name = "proxCombo"; this.proxCombo.Active = 0; this.hbox3.Add(this.proxCombo); Gtk.Box.BoxChild w15 = ((Gtk.Box.BoxChild)(this.hbox3[this.proxCombo])); w15.Position = 1; w15.Expand = false; w15.Fill = false; this.table1.Add(this.hbox3); Gtk.Table.TableChild w16 = ((Gtk.Table.TableChild)(this.table1[this.hbox3])); w16.TopAttach = ((uint)(3)); w16.BottomAttach = ((uint)(4)); w16.LeftAttach = ((uint)(1)); w16.RightAttach = ((uint)(2)); w16.XOptions = ((Gtk.AttachOptions)(4)); w16.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.includeChildrenCheck = new Gtk.CheckButton(); this.includeChildrenCheck.CanFocus = true; this.includeChildrenCheck.Name = "includeChildrenCheck"; this.includeChildrenCheck.Label = Mono.Unix.Catalog.GetString("Include Child Waypoints"); this.includeChildrenCheck.DrawIndicator = true; this.includeChildrenCheck.UseUnderline = true; this.table1.Add(this.includeChildrenCheck); Gtk.Table.TableChild w17 = ((Gtk.Table.TableChild)(this.table1[this.includeChildrenCheck])); w17.TopAttach = ((uint)(6)); w17.BottomAttach = ((uint)(7)); w17.RightAttach = ((uint)(2)); w17.XOptions = ((Gtk.AttachOptions)(4)); w17.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.label2 = new Gtk.Label(); this.label2.Name = "label2"; this.label2.Xalign = 0F; this.label2.LabelProp = Mono.Unix.Catalog.GetString("Name:"); this.table1.Add(this.label2); Gtk.Table.TableChild w18 = ((Gtk.Table.TableChild)(this.table1[this.label2])); w18.XOptions = ((Gtk.AttachOptions)(4)); w18.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.label3 = new Gtk.Label(); this.label3.Name = "label3"; this.label3.Xalign = 0F; this.label3.LabelProp = Mono.Unix.Catalog.GetString("Description:"); this.table1.Add(this.label3); Gtk.Table.TableChild w19 = ((Gtk.Table.TableChild)(this.table1[this.label3])); w19.TopAttach = ((uint)(1)); w19.BottomAttach = ((uint)(2)); w19.XOptions = ((Gtk.AttachOptions)(4)); w19.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.label4 = new Gtk.Label(); this.label4.Name = "label4"; this.label4.Xalign = 0F; this.label4.LabelProp = Mono.Unix.Catalog.GetString("Category:"); this.table1.Add(this.label4); Gtk.Table.TableChild w20 = ((Gtk.Table.TableChild)(this.table1[this.label4])); w20.TopAttach = ((uint)(2)); w20.BottomAttach = ((uint)(3)); w20.XOptions = ((Gtk.AttachOptions)(4)); w20.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.limitCaches = new Gtk.CheckButton(); this.limitCaches.CanFocus = true; this.limitCaches.Name = "limitCaches"; this.limitCaches.Label = Mono.Unix.Catalog.GetString("Limit Number of Geocaches"); this.limitCaches.DrawIndicator = true; this.limitCaches.UseUnderline = true; this.table1.Add(this.limitCaches); Gtk.Table.TableChild w21 = ((Gtk.Table.TableChild)(this.table1[this.limitCaches])); w21.TopAttach = ((uint)(4)); w21.BottomAttach = ((uint)(5)); w21.XOptions = ((Gtk.AttachOptions)(4)); w21.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.limitEntry = new Gtk.Entry(); this.limitEntry.Sensitive = false; this.limitEntry.CanFocus = true; this.limitEntry.Name = "limitEntry"; this.limitEntry.Text = Mono.Unix.Catalog.GetString("1000"); this.limitEntry.IsEditable = true; this.limitEntry.InvisibleChar = '●'; this.table1.Add(this.limitEntry); Gtk.Table.TableChild w22 = ((Gtk.Table.TableChild)(this.table1[this.limitEntry])); w22.TopAttach = ((uint)(4)); w22.BottomAttach = ((uint)(5)); w22.LeftAttach = ((uint)(1)); w22.RightAttach = ((uint)(2)); w22.XOptions = ((Gtk.AttachOptions)(4)); w22.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.logCheck = new Gtk.CheckButton(); this.logCheck.CanFocus = true; this.logCheck.Name = "logCheck"; this.logCheck.Label = Mono.Unix.Catalog.GetString("Limit Number of Logs"); this.logCheck.DrawIndicator = true; this.logCheck.UseUnderline = true; this.table1.Add(this.logCheck); Gtk.Table.TableChild w23 = ((Gtk.Table.TableChild)(this.table1[this.logCheck])); w23.TopAttach = ((uint)(5)); w23.BottomAttach = ((uint)(6)); w23.XOptions = ((Gtk.AttachOptions)(4)); w23.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.logEntry = new Gtk.Entry(); this.logEntry.Sensitive = false; this.logEntry.CanFocus = true; this.logEntry.Name = "logEntry"; this.logEntry.Text = Mono.Unix.Catalog.GetString("5"); this.logEntry.IsEditable = true; this.logEntry.InvisibleChar = '●'; this.table1.Add(this.logEntry); Gtk.Table.TableChild w24 = ((Gtk.Table.TableChild)(this.table1[this.logEntry])); w24.TopAttach = ((uint)(5)); w24.BottomAttach = ((uint)(6)); w24.LeftAttach = ((uint)(1)); w24.RightAttach = ((uint)(2)); w24.XOptions = ((Gtk.AttachOptions)(4)); w24.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.nameCombo = Gtk.ComboBox.NewText(); this.nameCombo.AppendText(Mono.Unix.Catalog.GetString("Cache Code")); this.nameCombo.AppendText(Mono.Unix.Catalog.GetString("Cache Name")); this.nameCombo.Name = "nameCombo"; this.nameCombo.Active = 0; this.table1.Add(this.nameCombo); Gtk.Table.TableChild w25 = ((Gtk.Table.TableChild)(this.table1[this.nameCombo])); w25.LeftAttach = ((uint)(1)); w25.RightAttach = ((uint)(2)); w25.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.proximityAlertCheck = new Gtk.CheckButton(); this.proximityAlertCheck.CanFocus = true; this.proximityAlertCheck.Name = "proximityAlertCheck"; this.proximityAlertCheck.Label = Mono.Unix.Catalog.GetString("Proximity Alert:"); this.proximityAlertCheck.DrawIndicator = true; this.proximityAlertCheck.UseUnderline = true; this.table1.Add(this.proximityAlertCheck); Gtk.Table.TableChild w26 = ((Gtk.Table.TableChild)(this.table1[this.proximityAlertCheck])); w26.TopAttach = ((uint)(3)); w26.BottomAttach = ((uint)(4)); w26.XOptions = ((Gtk.AttachOptions)(4)); w26.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.useHTMLCheck = new Gtk.CheckButton(); this.useHTMLCheck.CanFocus = true; this.useHTMLCheck.Name = "useHTMLCheck"; this.useHTMLCheck.Label = Mono.Unix.Catalog.GetString("Convert HTML to Plain Text"); this.useHTMLCheck.DrawIndicator = true; this.useHTMLCheck.UseUnderline = true; this.table1.Add(this.useHTMLCheck); Gtk.Table.TableChild w27 = ((Gtk.Table.TableChild)(this.table1[this.useHTMLCheck])); w27.TopAttach = ((uint)(7)); w27.BottomAttach = ((uint)(8)); w27.RightAttach = ((uint)(2)); w27.XOptions = ((Gtk.AttachOptions)(4)); w27.YOptions = ((Gtk.AttachOptions)(4)); this.GtkAlignment2.Add(this.table1); this.frame1.Add(this.GtkAlignment2); this.GtkLabel4 = new Gtk.Label(); this.GtkLabel4.Name = "GtkLabel4"; this.GtkLabel4.LabelProp = Mono.Unix.Catalog.GetString("<b>POI Options</b>"); this.GtkLabel4.UseMarkup = true; this.frame1.LabelWidget = this.GtkLabel4; this.vbox2.Add(this.frame1); Gtk.Box.BoxChild w30 = ((Gtk.Box.BoxChild)(this.vbox2[this.frame1])); w30.Position = 1; w30.Expand = false; w30.Fill = false; w1.Add(this.vbox2); Gtk.Box.BoxChild w31 = ((Gtk.Box.BoxChild)(w1[this.vbox2])); w31.Position = 0; w31.Expand = false; w31.Fill = false; // Internal child ocmgtk.ExportPOIDialog.ActionArea Gtk.HButtonBox w32 = this.ActionArea; w32.Name = "dialog1_ActionArea"; w32.Spacing = 10; w32.BorderWidth = ((uint)(5)); w32.LayoutStyle = ((Gtk.ButtonBoxStyle)(4)); // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild this.buttonCancel = new Gtk.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(this.buttonCancel, -6); Gtk.ButtonBox.ButtonBoxChild w33 = ((Gtk.ButtonBox.ButtonBoxChild)(w32[this.buttonCancel])); w33.Expand = false; w33.Fill = false; // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild this.buttonOk = new Gtk.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(this.buttonOk, -5); Gtk.ButtonBox.ButtonBoxChild w34 = ((Gtk.ButtonBox.ButtonBoxChild)(w32[this.buttonOk])); w34.Position = 1; w34.Expand = false; w34.Fill = false; if ((this.Child != null)) { this.Child.ShowAll(); } this.DefaultWidth = 612; this.DefaultHeight = 415; this.Show(); this.fileButton.Clicked += new System.EventHandler(this.OnFileClick); this.proximityAlertCheck.Toggled += new System.EventHandler(this.OnProxToggle); this.logCheck.Toggled += new System.EventHandler(this.OnLogToggle); this.limitCaches.Toggled += new System.EventHandler(this.OnCacheToggle); this.includeBMPCheck.Toggled += new System.EventHandler(this.OnBMPToggle); this.bmpButton.Clicked += new System.EventHandler(this.OnBMPClick); this.buttonCancel.Clicked += new System.EventHandler(this.OnCancelClick); this.buttonOk.Clicked += new System.EventHandler(this.OnOKClick); }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget Monoplayer.windows.dialogs.Preferences this.Name = "Monoplayer.windows.dialogs.Preferences"; this.Title = Mono.Unix.Catalog.GetString("Preferences"); this.WindowPosition = ((Gtk.WindowPosition)(4)); // Container child Monoplayer.windows.dialogs.Preferences.Gtk.Container+ContainerChild this.notebook1 = new Gtk.Notebook(); this.notebook1.CanFocus = true; this.notebook1.Name = "notebook1"; this.notebook1.CurrentPage = 0; // Container child notebook1.Gtk.Notebook+NotebookChild this.vbox1 = new Gtk.VBox(); this.vbox1.Name = "vbox1"; this.vbox1.Spacing = 6; // Container child vbox1.Gtk.Box+BoxChild this.frame1 = new Gtk.Frame(); this.frame1.Name = "frame1"; this.frame1.ShadowType = ((Gtk.ShadowType)(1)); // Container child frame1.Gtk.Container+ContainerChild this.GtkAlignment = new Gtk.Alignment(0F, 0F, 1F, 1F); this.GtkAlignment.Name = "GtkAlignment"; this.GtkAlignment.LeftPadding = ((uint)(12)); // Container child GtkAlignment.Gtk.Container+ContainerChild this.table1 = new Gtk.Table(((uint)(3)), ((uint)(4)), false); this.table1.Name = "table1"; this.table1.RowSpacing = ((uint)(6)); this.table1.ColumnSpacing = ((uint)(6)); // Container child table1.Gtk.Table+TableChild this.btn_scan = new Gtk.Button(); this.btn_scan.CanFocus = true; this.btn_scan.Name = "btn_scan"; this.btn_scan.UseUnderline = true; // Container child btn_scan.Gtk.Container+ContainerChild Gtk.Alignment w1 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w2 = new Gtk.HBox(); w2.Spacing = 2; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w3 = new Gtk.Image(); w3.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-find", Gtk.IconSize.Menu, 16); w2.Add(w3); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w5 = new Gtk.Label(); w5.LabelProp = Mono.Unix.Catalog.GetString("_Update Database"); w5.UseUnderline = true; w2.Add(w5); w1.Add(w2); this.btn_scan.Add(w1); this.table1.Add(this.btn_scan); Gtk.Table.TableChild w9 = ((Gtk.Table.TableChild)(this.table1[this.btn_scan])); w9.TopAttach = ((uint)(1)); w9.BottomAttach = ((uint)(2)); w9.LeftAttach = ((uint)(3)); w9.RightAttach = ((uint)(4)); w9.XOptions = ((Gtk.AttachOptions)(4)); w9.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.filepath = new Gtk.Entry(); this.filepath.CanFocus = true; this.filepath.Name = "filepath"; this.filepath.IsEditable = true; this.filepath.InvisibleChar = '●'; this.table1.Add(this.filepath); Gtk.Table.TableChild w10 = ((Gtk.Table.TableChild)(this.table1[this.filepath])); w10.TopAttach = ((uint)(1)); w10.BottomAttach = ((uint)(2)); w10.LeftAttach = ((uint)(1)); w10.RightAttach = ((uint)(2)); w10.XOptions = ((Gtk.AttachOptions)(4)); w10.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.label2 = new Gtk.Label(); this.label2.Name = "label2"; this.label2.LabelProp = Mono.Unix.Catalog.GetString("The library contains all your media files."); this.label2.UseMarkup = true; this.table1.Add(this.label2); Gtk.Table.TableChild w11 = ((Gtk.Table.TableChild)(this.table1[this.label2])); w11.RightAttach = ((uint)(4)); w11.XOptions = ((Gtk.AttachOptions)(4)); w11.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.label3 = new Gtk.Label(); this.label3.Name = "label3"; this.label3.LabelProp = Mono.Unix.Catalog.GetString("Path:"); this.table1.Add(this.label3); Gtk.Table.TableChild w12 = ((Gtk.Table.TableChild)(this.table1[this.label3])); w12.TopAttach = ((uint)(1)); w12.BottomAttach = ((uint)(2)); w12.XOptions = ((Gtk.AttachOptions)(4)); w12.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.select_dir = new Gtk.Button(); this.select_dir.CanFocus = true; this.select_dir.Name = "select_dir"; this.select_dir.UseUnderline = true; // Container child select_dir.Gtk.Container+ContainerChild Gtk.Alignment w13 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w14 = new Gtk.HBox(); w14.Spacing = 2; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w15 = new Gtk.Image(); w15.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-directory", Gtk.IconSize.Menu, 16); w14.Add(w15); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w17 = new Gtk.Label(); w17.LabelProp = Mono.Unix.Catalog.GetString("Select _Directory"); w17.UseUnderline = true; w14.Add(w17); w13.Add(w14); this.select_dir.Add(w13); this.table1.Add(this.select_dir); Gtk.Table.TableChild w21 = ((Gtk.Table.TableChild)(this.table1[this.select_dir])); w21.TopAttach = ((uint)(1)); w21.BottomAttach = ((uint)(2)); w21.LeftAttach = ((uint)(2)); w21.RightAttach = ((uint)(3)); w21.XOptions = ((Gtk.AttachOptions)(4)); w21.YOptions = ((Gtk.AttachOptions)(4)); this.GtkAlignment.Add(this.table1); this.frame1.Add(this.GtkAlignment); this.GtkLabel1 = new Gtk.Label(); this.GtkLabel1.Name = "GtkLabel1"; this.GtkLabel1.LabelProp = Mono.Unix.Catalog.GetString("<b>Library</b>"); this.GtkLabel1.UseMarkup = true; this.frame1.LabelWidget = this.GtkLabel1; this.vbox1.Add(this.frame1); Gtk.Box.BoxChild w24 = ((Gtk.Box.BoxChild)(this.vbox1[this.frame1])); w24.Position = 0; this.notebook1.Add(this.vbox1); // Notebook tab this.label1 = new Gtk.Label(); this.label1.Name = "label1"; this.label1.LabelProp = Mono.Unix.Catalog.GetString("Media"); this.label1.UseMarkup = true; this.notebook1.SetTabLabel(this.vbox1, this.label1); this.label1.ShowAll(); this.Add(this.notebook1); if ((this.Child != null)) { this.Child.ShowAll(); } this.DefaultWidth = 448; this.DefaultHeight = 297; this.Show(); this.DeleteEvent += new Gtk.DeleteEventHandler(this.OnDeleteEvent); this.select_dir.Clicked += new System.EventHandler(this.OnSelectDirClicked); this.btn_scan.Clicked += new System.EventHandler(this.OnBtnScanClicked); }
public ValueReferenceEditor(Project p, ValueReferenceGroup vrg, int rows, string frameText = null) : base(1.0F, 1.0F, 1.0F, 1.0F) { Project = p; valueReferenceGroup = vrg; maxBounds = new int[valueReferenceGroup.GetNumValueReferences()]; widgetPositions = new Tuple <uint, uint> [maxBounds.Count]; widgets = new Gtk.Widget[maxBounds.Count]; helpButtonContainers = new Gtk.Container[maxBounds.Count]; table = new Gtk.Table(2, 2, false); uint x = 0, y = 0; int cnt = 0; foreach (ValueReference r in valueReferenceGroup.GetValueReferences()) { int index = cnt; cnt++; if (y >= rows) { y = 0; x += 3; } widgetPositions[index] = new Tuple <uint, uint>(x, y); // If it has a ConstantsMapping, use a combobox instead of anything else if (r.ConstantsMapping != null) { ComboBoxFromConstants comboBox = new ComboBoxFromConstants(false); comboBox.SetConstantsMapping(r.ConstantsMapping); comboBox.Changed += delegate(object sender, EventArgs e) { r.SetValue(comboBox.ActiveValue); OnDataModifiedInternal(); }; dataModifiedExternalEvent += delegate() { comboBox.ActiveValue = r.GetIntValue(); }; table.Attach(new Gtk.Label(r.Name), x + 0, x + 1, y, y + 1); table.Attach(comboBox, x + 1, x + 2, y, y + 1); widgets[index] = comboBox; helpButtonContainers[index] = new Gtk.HBox(); table.Attach(helpButtonContainers[index], x + 2, x + 3, y, y + 1, 0, Gtk.AttachOptions.Fill, 0, 0); goto loopEnd; } // ConstantsMapping == null switch (r.ValueType) { case DataValueType.String: default: { table.Attach(new Gtk.Label(r.Name), x + 0, x + 1, y, y + 1); Gtk.Entry entry = new Gtk.Entry(); if (!r.Editable) { entry.Sensitive = false; } dataModifiedExternalEvent += delegate() { entry.Text = r.GetStringValue(); OnDataModifiedInternal(); }; table.Attach(entry, x + 1, x + 2, y, y + 1); widgets[index] = entry; helpButtonContainers[index] = new Gtk.HBox(); table.Attach(helpButtonContainers[index], x + 2, x + 3, y, y + 1, 0, Gtk.AttachOptions.Fill, 0, 0); break; } case DataValueType.Byte: case DataValueType.HalfByte: byteCase: { table.Attach(new Gtk.Label(r.Name), x + 0, x + 1, y, y + 1); SpinButtonHexadecimal spinButton = new SpinButtonHexadecimal(0, 255); if (!r.Editable) { spinButton.Sensitive = false; } if (r.ValueType == DataValueType.HalfByte) { spinButton.Digits = 1; spinButton.Adjustment.Upper = 15; } else { spinButton.Digits = 2; } spinButton.ValueChanged += delegate(object sender, EventArgs e) { Gtk.SpinButton button = sender as Gtk.SpinButton; if (maxBounds[index] == 0 || button.ValueAsInt <= maxBounds[index]) { r.SetValue(button.ValueAsInt); } else { button.Value = maxBounds[index]; } OnDataModifiedInternal(); }; dataModifiedExternalEvent += delegate() { spinButton.Value = r.GetIntValue(); }; table.Attach(spinButton, x + 1, x + 2, y, y + 1); widgets[index] = spinButton; helpButtonContainers[index] = new Gtk.HBox(); table.Attach(helpButtonContainers[index], x + 2, x + 3, y, y + 1, 0, Gtk.AttachOptions.Fill, 0, 0); } break; case DataValueType.WarpDestIndex: { Gtk.Button newDestButton = new Gtk.Button("New\nDestination"); newDestButton.Clicked += delegate(object sender, EventArgs e) { WarpSourceData warpData = (WarpSourceData)r.Data; WarpDestGroup destGroup = warpData.GetReferencedDestGroup(); // Check if there's unused destination data // already for (int i = 0; i < destGroup.GetNumWarpDests(); i++) { WarpDestData destData = destGroup.GetWarpDest(i); if (destData.GetNumReferences() == 0) { Gtk.MessageDialog d = new Gtk.MessageDialog(null, Gtk.DialogFlags.DestroyWithParent, Gtk.MessageType.Warning, Gtk.ButtonsType.YesNo, "Destination index " + i.ToString("X2") + " is not used by any sources. Use this index?\n\n(\"No\" will create a new destination instead.)"); Gtk.ResponseType response = (Gtk.ResponseType)d.Run(); d.Destroy(); if (response == Gtk.ResponseType.Yes) { warpData.SetDestData(destGroup.GetWarpDest(i)); } else if (response == Gtk.ResponseType.No) { warpData.SetDestData(destGroup.AddDestData()); } break; } } }; table.Attach(newDestButton, x + 2, x + 3, y, y + 2); } goto byteCase; case DataValueType.Word: { table.Attach(new Gtk.Label(r.Name), x + 0, x + 1, y, y + 1); SpinButtonHexadecimal spinButton = new SpinButtonHexadecimal(0, 0xffff); if (!r.Editable) { spinButton.Sensitive = false; } spinButton.Digits = 4; spinButton.ValueChanged += delegate(object sender, EventArgs e) { Gtk.SpinButton button = sender as Gtk.SpinButton; if (maxBounds[index] == 0 || button.ValueAsInt <= maxBounds[index]) { r.SetValue(button.ValueAsInt); } else { button.Value = maxBounds[index]; } OnDataModifiedInternal(); }; dataModifiedExternalEvent += delegate() { spinButton.Value = r.GetIntValue(); }; table.Attach(spinButton, x + 1, x + 2, y, y + 1); widgets[index] = spinButton; helpButtonContainers[index] = new Gtk.HBox(); table.Attach(helpButtonContainers[index], x + 2, x + 3, y, y + 1, 0, Gtk.AttachOptions.Fill, 0, 0); } break; case DataValueType.ByteBit: { table.Attach(new Gtk.Label(r.Name), x + 0, x + 1, y, y + 1); Gtk.CheckButton checkButton = new Gtk.CheckButton(); checkButton.CanFocus = false; if (!r.Editable) { checkButton.Sensitive = false; } checkButton.Toggled += delegate(object sender, EventArgs e) { Gtk.CheckButton button = sender as Gtk.CheckButton; r.SetValue(button.Active ? 1 : 0); OnDataModifiedInternal(); }; dataModifiedExternalEvent += delegate() { checkButton.Active = r.GetIntValue() == 1; }; table.Attach(checkButton, x + 1, x + 2, y, y + 1); widgets[index] = checkButton; helpButtonContainers[index] = new Gtk.HBox(); table.Attach(helpButtonContainers[index], x + 2, x + 3, y, y + 1, 0, Gtk.AttachOptions.Fill, 0, 0); } break; case DataValueType.ByteBits: case DataValueType.WordBits: { table.Attach(new Gtk.Label(r.Name), x + 0, x + 1, y, y + 1); SpinButtonHexadecimal spinButton = new SpinButtonHexadecimal(0, r.MaxValue); if (!r.Editable) { spinButton.Sensitive = false; } spinButton.Digits = (uint)Math.Pow(r.MaxValue, ((double)1) / 16) + 1; spinButton.ValueChanged += delegate(object sender, EventArgs e) { Gtk.SpinButton button = sender as Gtk.SpinButton; if (maxBounds[index] == 0 || button.ValueAsInt <= maxBounds[index]) { r.SetValue(button.ValueAsInt); } else { button.Value = maxBounds[index]; } OnDataModifiedInternal(); }; dataModifiedExternalEvent += delegate() { spinButton.Value = r.GetIntValue(); }; table.Attach(spinButton, x + 1, x + 2, y, y + 1); widgets[index] = spinButton; helpButtonContainers[index] = new Gtk.HBox(); table.Attach(helpButtonContainers[index], x + 2, x + 3, y, y + 1, 0, Gtk.AttachOptions.Fill, 0, 0); } break; case DataValueType.ObjectPointer: { table.Attach(new Gtk.Label(r.Name), x + 0, x + 1, y, y + 1); Gtk.Entry entry = new Gtk.Entry(); if (!r.Editable) { entry.Sensitive = false; } entry.Changed += delegate(object sender, EventArgs e) { UpdatePointerTextBox(sender as Gtk.Entry, r); OnDataModifiedInternal(); }; table.Attach(entry, x + 1, x + 2, y, y + 1); widgets[index] = entry; pointerFrame = new Gtk.Frame(); pointerFrame.Label = "Pointer data (possibly shared)"; pointerFrame.BorderWidth = 5; y++; table.Attach(pointerFrame, x + 0, x + 2, y, y + 1); dataModifiedExternalEvent += delegate() { entry.Text = r.GetStringValue(); UpdatePointerTextBox(entry, r); }; helpButtonContainers[index] = new Gtk.HBox(); table.Attach(helpButtonContainers[index], x + 2, x + 3, y, y + 1, 0, Gtk.AttachOptions.Fill, 0, 0); } break; } loopEnd: y++; } table.ColumnSpacing = 6; if (frameText != null) { var frame = new Gtk.Frame(frameText); frame.Add(table); this.Add(frame); } else { this.Add(table); } this.ShowAll(); Data lastData = null; foreach (ValueReference r in valueReferenceGroup.GetValueReferences()) { if (lastData != r.Data) { lastData = r.Data; r.Data.AddDataModifiedHandler(OnDataModifiedExternal); // Destroy handler this.Destroyed += delegate(object sender, EventArgs e) { r.Data.RemoveDataModifiedHandler(OnDataModifiedExternal); }; } } // Initial values if (dataModifiedExternalEvent != null) { dataModifiedExternalEvent(); } UpdateHelpButtons(); }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget SystemServices.SystemServicesConfig Stetic.BinContainer.Attach(this); this.Name = "SystemServices.SystemServicesConfig"; // Container child SystemServices.SystemServicesConfig.Gtk.Container+ContainerChild this.vbox1 = new Gtk.VBox(); this.vbox1.Name = "vbox1"; this.vbox1.Spacing = 6; this.vbox1.BorderWidth = ((uint)(4)); // Container child vbox1.Gtk.Box+BoxChild this.label1 = new Gtk.Label(); this.label1.Name = "label1"; this.label1.Xalign = 0F; this.label1.LabelProp = Mono.Addins.AddinManager.CurrentLocalizer.GetString("Command for start/stop services (gksudo, etc):"); this.vbox1.Add(this.label1); Gtk.Box.BoxChild w1 = ((Gtk.Box.BoxChild)(this.vbox1[this.label1])); w1.Position = 0; w1.Expand = false; w1.Fill = false; // Container child vbox1.Gtk.Box+BoxChild this.hbox1 = new Gtk.HBox(); this.hbox1.Name = "hbox1"; this.hbox1.Spacing = 6; // Container child hbox1.Gtk.Box+BoxChild this.eCommand = new Gtk.Entry(); this.eCommand.CanFocus = true; this.eCommand.Name = "eCommand"; this.eCommand.IsEditable = true; this.eCommand.InvisibleChar = '●'; this.hbox1.Add(this.eCommand); Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.hbox1[this.eCommand])); w2.Position = 0; // Container child hbox1.Gtk.Box+BoxChild this.btnSelectFile = new Gtk.Button(); this.btnSelectFile.TooltipMarkup = "Select file"; this.btnSelectFile.CanFocus = true; this.btnSelectFile.Name = "btnSelectFile"; this.btnSelectFile.UseUnderline = true; this.btnSelectFile.Label = Mono.Addins.AddinManager.CurrentLocalizer.GetString("..."); this.hbox1.Add(this.btnSelectFile); Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.hbox1[this.btnSelectFile])); w3.Position = 1; w3.Expand = false; w3.Fill = false; this.vbox1.Add(this.hbox1); Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.vbox1[this.hbox1])); w4.Position = 1; w4.Expand = false; w4.Fill = false; // Container child vbox1.Gtk.Box+BoxChild this.label2 = new Gtk.Label(); this.label2.Name = "label2"; this.label2.Xalign = 0F; this.label2.LabelProp = Mono.Addins.AddinManager.CurrentLocalizer.GetString("Services to control:"); this.vbox1.Add(this.label2); Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.vbox1[this.label2])); w5.Position = 2; w5.Expand = false; w5.Fill = false; // Container child vbox1.Gtk.Box+BoxChild this.scrolledwindow1 = new Gtk.ScrolledWindow(); this.scrolledwindow1.CanFocus = true; this.scrolledwindow1.Name = "scrolledwindow1"; this.scrolledwindow1.ShadowType = ((Gtk.ShadowType)(1)); // Container child scrolledwindow1.Gtk.Container+ContainerChild Gtk.Viewport w6 = new Gtk.Viewport(); w6.ShadowType = ((Gtk.ShadowType)(0)); // Container child GtkViewport.Gtk.Container+ContainerChild this.boxServicesList = new Gtk.VBox(); this.boxServicesList.Name = "boxServicesList"; this.boxServicesList.Spacing = 2; w6.Add(this.boxServicesList); this.scrolledwindow1.Add(w6); this.vbox1.Add(this.scrolledwindow1); Gtk.Box.BoxChild w9 = ((Gtk.Box.BoxChild)(this.vbox1[this.scrolledwindow1])); w9.Position = 3; this.Add(this.vbox1); if ((this.Child != null)) { this.Child.ShowAll(); } this.Show(); this.eCommand.Changed += new System.EventHandler(this.OnECommandChanged); this.btnSelectFile.Clicked += new System.EventHandler(this.OnBtnSelectFileClicked); }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget PingFM.Configuration Stetic.BinContainer.Attach(this); this.Name = "PingFM.Configuration"; // Container child PingFM.Configuration.Gtk.Container+ContainerChild this.vbox1 = new Gtk.VBox(); this.vbox1.Name = "vbox1"; this.vbox1.Spacing = 6; // Container child vbox1.Gtk.Box+BoxChild this.table1 = new Gtk.Table(((uint)(1)), ((uint)(2)), false); this.table1.Name = "table1"; this.table1.RowSpacing = ((uint)(6)); this.table1.ColumnSpacing = ((uint)(6)); this.table1.BorderWidth = ((uint)(7)); // Container child table1.Gtk.Table+TableChild this.appkey_entry = new Gtk.Entry(); this.appkey_entry.CanFocus = true; this.appkey_entry.Name = "appkey_entry"; this.appkey_entry.IsEditable = true; this.appkey_entry.InvisibleChar = '●'; this.table1.Add(this.appkey_entry); Gtk.Table.TableChild w1 = ((Gtk.Table.TableChild)(this.table1[this.appkey_entry])); w1.LeftAttach = ((uint)(1)); w1.RightAttach = ((uint)(2)); w1.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.appkey_lbl = new Gtk.Label(); this.appkey_lbl.Name = "appkey_lbl"; this.appkey_lbl.Ypad = 5; this.appkey_lbl.LabelProp = Mono.Addins.AddinManager.CurrentLocalizer.GetString("Application Key"); this.table1.Add(this.appkey_lbl); Gtk.Table.TableChild w2 = ((Gtk.Table.TableChild)(this.table1[this.appkey_lbl])); w2.XOptions = ((Gtk.AttachOptions)(4)); w2.YOptions = ((Gtk.AttachOptions)(4)); this.vbox1.Add(this.table1); Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox1[this.table1])); w3.Position = 0; w3.Expand = false; w3.Fill = false; // Container child vbox1.Gtk.Box+BoxChild this.vbox2 = new Gtk.VBox(); this.vbox2.Name = "vbox2"; this.vbox2.Spacing = 6; // Container child vbox2.Gtk.Box+BoxChild this.validate_lbl = new Gtk.Label(); this.validate_lbl.Name = "validate_lbl"; this.validate_lbl.LabelProp = Mono.Addins.AddinManager.CurrentLocalizer.GetString("<i>Verify and save your account information</i>"); this.validate_lbl.UseMarkup = true; this.vbox2.Add(this.validate_lbl); Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.vbox2[this.validate_lbl])); w4.Position = 0; w4.Expand = false; w4.Fill = false; // Container child vbox2.Gtk.Box+BoxChild this.table2 = new Gtk.Table(((uint)(1)), ((uint)(2)), false); this.table2.Name = "table2"; this.table2.RowSpacing = ((uint)(6)); this.table2.ColumnSpacing = ((uint)(6)); // Container child table2.Gtk.Table+TableChild this.fixed1 = new Gtk.Fixed(); this.fixed1.WidthRequest = 119; this.fixed1.Name = "fixed1"; this.fixed1.HasWindow = false; this.table2.Add(this.fixed1); Gtk.Table.TableChild w5 = ((Gtk.Table.TableChild)(this.table2[this.fixed1])); w5.YOptions = ((Gtk.AttachOptions)(4)); // Container child table2.Gtk.Table+TableChild this.validate_btn = new Gtk.Button(); this.validate_btn.WidthRequest = 40; this.validate_btn.CanFocus = true; this.validate_btn.Name = "validate_btn"; this.validate_btn.UseStock = true; this.validate_btn.UseUnderline = true; this.validate_btn.BorderWidth = ((uint)(7)); this.validate_btn.Label = "gtk-apply"; this.table2.Add(this.validate_btn); Gtk.Table.TableChild w6 = ((Gtk.Table.TableChild)(this.table2[this.validate_btn])); w6.LeftAttach = ((uint)(1)); w6.RightAttach = ((uint)(2)); w6.YOptions = ((Gtk.AttachOptions)(4)); this.vbox2.Add(this.table2); Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(this.vbox2[this.table2])); w7.Position = 1; w7.Expand = false; w7.Fill = false; this.vbox1.Add(this.vbox2); Gtk.Box.BoxChild w8 = ((Gtk.Box.BoxChild)(this.vbox1[this.vbox2])); w8.Position = 1; // Container child vbox1.Gtk.Box+BoxChild this.info_hbox = new Gtk.HBox(); this.info_hbox.Name = "info_hbox"; this.info_hbox.Spacing = 6; // Container child info_hbox.Gtk.Box+BoxChild this.fixed3 = new Gtk.Fixed(); this.fixed3.Name = "fixed3"; this.fixed3.HasWindow = false; this.info_hbox.Add(this.fixed3); Gtk.Box.BoxChild w9 = ((Gtk.Box.BoxChild)(this.info_hbox[this.fixed3])); w9.Position = 0; // Container child info_hbox.Gtk.Box+BoxChild this.fixed4 = new Gtk.Fixed(); this.fixed4.Name = "fixed4"; this.fixed4.HasWindow = false; this.info_hbox.Add(this.fixed4); Gtk.Box.BoxChild w10 = ((Gtk.Box.BoxChild)(this.info_hbox[this.fixed4])); w10.Position = 2; this.vbox1.Add(this.info_hbox); Gtk.Box.BoxChild w11 = ((Gtk.Box.BoxChild)(this.vbox1[this.info_hbox])); w11.Position = 2; w11.Expand = false; w11.Fill = false; this.Add(this.vbox1); if ((this.Child != null)) { this.Child.ShowAll(); } this.Show(); this.validate_btn.Clicked += new System.EventHandler(this.OnApplyBtnClicked); }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget ocmgtk.GarminUSBWidget Stetic.BinContainer.Attach(this); this.Name = "ocmgtk.GarminUSBWidget"; // Container child ocmgtk.GarminUSBWidget.Gtk.Container+ContainerChild this.vbox2 = new Gtk.VBox(); this.vbox2.Name = "vbox2"; this.vbox2.Spacing = 6; this.vbox2.BorderWidth = ((uint)(6)); // Container child vbox2.Gtk.Box+BoxChild this.table1 = new Gtk.Table(((uint)(3)), ((uint)(2)), false); this.table1.Name = "table1"; this.table1.RowSpacing = ((uint)(6)); this.table1.ColumnSpacing = ((uint)(6)); // Container child table1.Gtk.Table+TableChild this.descMode = Gtk.ComboBox.NewText(); this.descMode.AppendText(Mono.Unix.Catalog.GetString("Cache Name")); this.descMode.AppendText(Mono.Unix.Catalog.GetString("Cache Code/Size/Hint")); this.descMode.AppendText(Mono.Unix.Catalog.GetString("Cache Code/Size/Type")); this.descMode.Name = "descMode"; this.descMode.Active = 0; this.table1.Add(this.descMode); Gtk.Table.TableChild w1 = ((Gtk.Table.TableChild)(this.table1[this.descMode])); w1.TopAttach = ((uint)(2)); w1.BottomAttach = ((uint)(3)); w1.LeftAttach = ((uint)(1)); w1.RightAttach = ((uint)(2)); w1.XOptions = ((Gtk.AttachOptions)(4)); w1.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.label1 = new Gtk.Label(); this.label1.Name = "label1"; this.label1.Xalign = 0F; this.label1.LabelProp = Mono.Unix.Catalog.GetString("Waypoint Name Format:"); this.table1.Add(this.label1); Gtk.Table.TableChild w2 = ((Gtk.Table.TableChild)(this.table1[this.label1])); w2.TopAttach = ((uint)(1)); w2.BottomAttach = ((uint)(2)); w2.XOptions = ((Gtk.AttachOptions)(4)); w2.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.label2 = new Gtk.Label(); this.label2.Name = "label2"; this.label2.Xalign = 0F; this.label2.LabelProp = Mono.Unix.Catalog.GetString("Waypoint Description Format:"); this.table1.Add(this.label2); Gtk.Table.TableChild w3 = ((Gtk.Table.TableChild)(this.table1[this.label2])); w3.TopAttach = ((uint)(2)); w3.BottomAttach = ((uint)(3)); w3.XOptions = ((Gtk.AttachOptions)(4)); w3.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.limitCheck = new Gtk.CheckButton(); this.limitCheck.CanFocus = true; this.limitCheck.Name = "limitCheck"; this.limitCheck.Label = Mono.Unix.Catalog.GetString("Limit Number of Geocaches"); this.limitCheck.Active = true; this.limitCheck.DrawIndicator = true; this.limitCheck.UseUnderline = true; this.table1.Add(this.limitCheck); Gtk.Table.TableChild w4 = ((Gtk.Table.TableChild)(this.table1[this.limitCheck])); w4.XOptions = ((Gtk.AttachOptions)(4)); w4.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.limitEntry = new Gtk.Entry(); this.limitEntry.CanFocus = true; this.limitEntry.Name = "limitEntry"; this.limitEntry.Text = "500"; this.limitEntry.IsEditable = true; this.limitEntry.InvisibleChar = '•'; this.table1.Add(this.limitEntry); Gtk.Table.TableChild w5 = ((Gtk.Table.TableChild)(this.table1[this.limitEntry])); w5.LeftAttach = ((uint)(1)); w5.RightAttach = ((uint)(2)); w5.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.nameMode = Gtk.ComboBox.NewText(); this.nameMode.AppendText(Mono.Unix.Catalog.GetString("Cache Code")); this.nameMode.AppendText(Mono.Unix.Catalog.GetString("Cache Name")); this.nameMode.Name = "nameMode"; this.nameMode.Active = 0; this.table1.Add(this.nameMode); Gtk.Table.TableChild w6 = ((Gtk.Table.TableChild)(this.table1[this.nameMode])); w6.TopAttach = ((uint)(1)); w6.BottomAttach = ((uint)(2)); w6.LeftAttach = ((uint)(1)); w6.RightAttach = ((uint)(2)); w6.XOptions = ((Gtk.AttachOptions)(4)); w6.YOptions = ((Gtk.AttachOptions)(4)); this.vbox2.Add(this.table1); Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(this.vbox2[this.table1])); w7.Position = 0; w7.Expand = false; w7.Fill = false; // Container child vbox2.Gtk.Box+BoxChild this.hbox2 = new Gtk.HBox(); this.hbox2.Name = "hbox2"; this.hbox2.Spacing = 6; // Container child hbox2.Gtk.Box+BoxChild this.image2 = new Gtk.Image(); this.image2.Name = "image2"; this.image2.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-dialog-warning", Gtk.IconSize.Menu, 16); this.hbox2.Add(this.image2); Gtk.Box.BoxChild w8 = ((Gtk.Box.BoxChild)(this.hbox2[this.image2])); w8.Position = 0; w8.Expand = false; w8.Fill = false; // Container child hbox2.Gtk.Box+BoxChild this.hotPlugButton = new Gtk.Button(); this.hotPlugButton.CanFocus = true; this.hotPlugButton.Name = "hotPlugButton"; this.hotPlugButton.Relief = ((Gtk.ReliefStyle)(2)); // Container child hotPlugButton.Gtk.Container+ContainerChild this.label4 = new Gtk.Label(); this.label4.Name = "label4"; this.label4.LabelProp = Mono.Unix.Catalog.GetString("<b>Important:</b> You may need to configure non-root access to\nUSB to allow OCM to write to your Garmin Device. See:\n<span fgcolor=\"blue\">http://www.gpsbabel.org/os/Linux_Hotplug.html</span>"); this.label4.UseMarkup = true; this.hotPlugButton.Add(this.label4); this.hotPlugButton.Label = null; this.hbox2.Add(this.hotPlugButton); Gtk.Box.BoxChild w10 = ((Gtk.Box.BoxChild)(this.hbox2[this.hotPlugButton])); w10.Position = 1; w10.Expand = false; w10.Fill = false; this.vbox2.Add(this.hbox2); Gtk.Box.BoxChild w11 = ((Gtk.Box.BoxChild)(this.vbox2[this.hbox2])); w11.Position = 1; w11.Expand = false; w11.Fill = false; this.Add(this.vbox2); if ((this.Child != null)) { this.Child.ShowAll(); } this.Hide(); this.limitCheck.Toggled += new System.EventHandler(this.OnLimitToggle); this.hotPlugButton.Clicked += new System.EventHandler(this.OnHotplugClick); }
protected virtual void Build() { Stetic.Gui.Initialize(); // Widget OpenGridServices.Manager.ConnectToGridServerDialog this.Events = ((Gdk.EventMask)(256)); this.Name = "OpenGridServices.Manager.ConnectToGridServerDialog"; this.Title = Mono.Unix.Catalog.GetString("Connect to Grid server"); this.WindowPosition = ((Gtk.WindowPosition)(4)); this.HasSeparator = false; // Internal child OpenGridServices.Manager.ConnectToGridServerDialog.VBox Gtk.VBox w1 = this.VBox; w1.Events = ((Gdk.EventMask)(256)); w1.Name = "dialog_VBox"; w1.BorderWidth = ((uint)(2)); // Container child dialog_VBox.Gtk.Box+BoxChild this.vbox2 = new Gtk.VBox(); this.vbox2.Name = "vbox2"; // Container child vbox2.Gtk.Box+BoxChild this.vbox3 = new Gtk.VBox(); this.vbox3.Name = "vbox3"; // Container child vbox3.Gtk.Box+BoxChild this.hbox1 = new Gtk.HBox(); this.hbox1.Name = "hbox1"; // Container child hbox1.Gtk.Box+BoxChild this.label1 = new Gtk.Label(); this.label1.Name = "label1"; this.label1.Xalign = 1F; this.label1.LabelProp = Mono.Unix.Catalog.GetString("Grid server URL: "); this.label1.Justify = ((Gtk.Justification)(1)); this.hbox1.Add(this.label1); Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.hbox1[this.label1])); w2.Position = 0; // Container child hbox1.Gtk.Box+BoxChild this.entry1 = new Gtk.Entry(); this.entry1.CanFocus = true; this.entry1.Name = "entry1"; this.entry1.Text = Mono.Unix.Catalog.GetString("http://gridserver:8001"); this.entry1.IsEditable = true; this.entry1.MaxLength = 255; this.entry1.InvisibleChar = '•'; this.hbox1.Add(this.entry1); Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.hbox1[this.entry1])); w3.Position = 1; this.vbox3.Add(this.hbox1); Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.vbox3[this.hbox1])); w4.Position = 0; w4.Expand = false; w4.Fill = false; // Container child vbox3.Gtk.Box+BoxChild this.hbox2 = new Gtk.HBox(); this.hbox2.Name = "hbox2"; // Container child hbox2.Gtk.Box+BoxChild this.label2 = new Gtk.Label(); this.label2.Name = "label2"; this.label2.Xalign = 1F; this.label2.LabelProp = Mono.Unix.Catalog.GetString("Username:"******"entry2"; this.entry2.IsEditable = true; this.entry2.InvisibleChar = '•'; this.hbox2.Add(this.entry2); Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(this.hbox2[this.entry2])); w6.Position = 1; this.vbox3.Add(this.hbox2); Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(this.vbox3[this.hbox2])); w7.Position = 1; w7.Expand = false; w7.Fill = false; // Container child vbox3.Gtk.Box+BoxChild this.hbox3 = new Gtk.HBox(); this.hbox3.Name = "hbox3"; // Container child hbox3.Gtk.Box+BoxChild this.label3 = new Gtk.Label(); this.label3.Name = "label3"; this.label3.Xalign = 1F; this.label3.LabelProp = Mono.Unix.Catalog.GetString("Password:"******"entry3"; this.entry3.IsEditable = true; this.entry3.InvisibleChar = '•'; this.hbox3.Add(this.entry3); Gtk.Box.BoxChild w9 = ((Gtk.Box.BoxChild)(this.hbox3[this.entry3])); w9.Position = 1; this.vbox3.Add(this.hbox3); Gtk.Box.BoxChild w10 = ((Gtk.Box.BoxChild)(this.vbox3[this.hbox3])); w10.Position = 2; w10.Expand = false; w10.Fill = false; this.vbox2.Add(this.vbox3); Gtk.Box.BoxChild w11 = ((Gtk.Box.BoxChild)(this.vbox2[this.vbox3])); w11.Position = 2; w11.Expand = false; w11.Fill = false; w1.Add(this.vbox2); Gtk.Box.BoxChild w12 = ((Gtk.Box.BoxChild)(w1[this.vbox2])); w12.Position = 0; // Internal child OpenGridServices.Manager.ConnectToGridServerDialog.ActionArea Gtk.HButtonBox w13 = this.ActionArea; w13.Events = ((Gdk.EventMask)(256)); w13.Name = "OpenGridServices.Manager.ConnectToGridServerDialog_ActionArea"; w13.Spacing = 6; w13.BorderWidth = ((uint)(5)); w13.LayoutStyle = ((Gtk.ButtonBoxStyle)(4)); // Container child OpenGridServices.Manager.ConnectToGridServerDialog_ActionArea.Gtk.ButtonBox+ButtonBoxChild this.button2 = new Gtk.Button(); this.button2.CanDefault = true; this.button2.CanFocus = true; this.button2.Name = "button2"; this.button2.UseUnderline = true; // Container child button2.Gtk.Container+ContainerChild Gtk.Alignment w14 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); w14.Name = "GtkAlignment"; // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w15 = new Gtk.HBox(); w15.Name = "GtkHBox"; w15.Spacing = 2; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w16 = new Gtk.Image(); w16.Name = "image1"; w16.Pixbuf = Gtk.IconTheme.Default.LoadIcon("gtk-apply", 16, 0); w15.Add(w16); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w18 = new Gtk.Label(); w18.Name = "GtkLabel"; w18.LabelProp = Mono.Unix.Catalog.GetString("Connect"); w18.UseUnderline = true; w15.Add(w18); w14.Add(w15); this.button2.Add(w14); this.AddActionWidget(this.button2, -5); Gtk.ButtonBox.ButtonBoxChild w22 = ((Gtk.ButtonBox.ButtonBoxChild)(w13[this.button2])); w22.Expand = false; w22.Fill = false; // Container child OpenGridServices.Manager.ConnectToGridServerDialog_ActionArea.Gtk.ButtonBox+ButtonBoxChild this.button8 = new Gtk.Button(); this.button8.CanDefault = true; this.button8.CanFocus = true; this.button8.Name = "button8"; this.button8.UseUnderline = true; // Container child button8.Gtk.Container+ContainerChild Gtk.Alignment w23 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); w23.Name = "GtkAlignment1"; // Container child GtkAlignment1.Gtk.Container+ContainerChild Gtk.HBox w24 = new Gtk.HBox(); w24.Name = "GtkHBox1"; w24.Spacing = 2; // Container child GtkHBox1.Gtk.Container+ContainerChild Gtk.Image w25 = new Gtk.Image(); w25.Name = "image2"; w25.Pixbuf = Gtk.IconTheme.Default.LoadIcon("gtk-cancel", 16, 0); w24.Add(w25); // Container child GtkHBox1.Gtk.Container+ContainerChild Gtk.Label w27 = new Gtk.Label(); w27.Name = "GtkLabel1"; w27.LabelProp = Mono.Unix.Catalog.GetString("Cancel"); w27.UseUnderline = true; w24.Add(w27); w23.Add(w24); this.button8.Add(w23); this.AddActionWidget(this.button8, -6); Gtk.ButtonBox.ButtonBoxChild w31 = ((Gtk.ButtonBox.ButtonBoxChild)(w13[this.button8])); w31.Position = 1; w31.Expand = false; w31.Fill = false; if (this.Child != null) { this.Child.ShowAll(); } this.DefaultWidth = 476; this.DefaultHeight = 137; this.Show(); this.Response += new Gtk.ResponseHandler(this.OnResponse); }
public IPropertyEditor CreatePropertyEditorEntry(string key, Gtk.Entry sourceEntry) { return(new PropertyEditorEntry(key, sourceEntry)); }
public void SendChat(Gtk.Entry sender2) { this.Framework = Framework.GetInstance(); if (sender2.Name.StartsWith("irctab_")) { if (sender2.Text.StartsWith("/")) { string[] command = sender2.Text.Split(' '); if (command[0].ToLower() == "/part" && command.Length != 1) { this.Framework.SendGSPacket(new OpenGraal.Core.CString() + (byte)154 + "GraalEngine,irc,part," + command[1].Trim() + "\n"); this.RemovePanel("irctab_" + command[1].Trim()); } else if (command[0].ToLower() == "/part" && command.Length == 1) { this.Framework.SendGSPacket(new OpenGraal.Core.CString() + (byte)154 + "GraalEngine,irc,part," + sender2.Name.Replace("irctab_", "").Replace("_entry", "").ToString() + "\n"); this.RemovePanel(sender2.Name.Replace("_entry", "")); } else if (command[0].ToLower() == "/join" && command.Length != 1) { this.Framework.SendGSPacket(new OpenGraal.Core.CString() + (byte)154 + "GraalEngine,irc,join," + command[1].Trim() + "\n"); } } else { this.Framework.SendGSPacket(new OpenGraal.Core.CString() + (byte)154 + "GraalEngine,irc,privmsg," + sender2.Name.Replace("irctab_", "").Replace("_entry", "").ToString() + "," + OpenGraal.Core.CString.tokenize(sender2.Text) + "\n"); } } else { if (sender2.Text.StartsWith("/")) { string[] command = sender2.Text.Split(' '); if (command[0].ToLower() == "/join" && command.Length != 1) { this.Framework.SendGSPacket(new OpenGraal.Core.CString() + (byte)154 + "GraalEngine,irc,join," + command[1].Trim() + "\n"); } else if (command[0].ToLower() == "/msg" && command.Length != 1) { String msg = ""; for (int i = 2; i < command.Length; i++) { msg += command[i].Trim() + " "; } // Turn the string into a CString. Core.CString Message = new Core.CString(msg); this.Framework.SendGSPacket(new OpenGraal.Core.CString() + (byte)154 + "GraalEngine,irc,privmsg," + command[1].Trim() + "," + Message.Tokenize() + "\n"); } else if (command[0].ToLower() == "/pm" && command.Length != 1) { this.SendPM(command); } else if (command[0].ToLower() == "/mapgen" && command.Length == 1) { /* * MapGenWindow MapGen; * Thread thread = new Thread(() => * { * MapGen = new MapGenWindow(); * MapGen.Show(); * //MapGen.Closed += (s, e) => MapGen.Dispatcher.InvokeShutdown(); * //Dispatcher.Run(); * } * ); * thread.SetApartmentState(ApartmentState.STA); * //thread.IsBackground = true; * thread.Start(); * //MapGenWindow MapGen = new MapGenWindow(); * * TestWindow test = new TestWindow(); * test.ShowAll(); */ } else { if (this.isRC) { this.Framework.SendGSPacket(new OpenGraal.Core.CString() + (byte)Common.Connections.Client.GraalServer.PacketOut.RC_CHAT + sender2.Text + "\n"); } else { this.Framework.SendGSPacket(new OpenGraal.Core.CString() + (byte)Common.Connections.Client.GraalServer.PacketOut.PLAYERPROPS + (byte)Common.Connections.Client.GraalServer.PLPROPS.CURCHAT + (byte)sender2.Text.Length + sender2.Text + "\n"); this.WriteText("(" + this.NCPlayer.Account + "(" + this.NCPlayer.Id + ")) " + sender2.Text); } } } else { if (this.isRC) { this.Framework.SendGSPacket(new OpenGraal.Core.CString() + (byte)Common.Connections.Client.GraalServer.PacketOut.RC_CHAT + sender2.Text + "\n"); } else { this.NCPlayer.Chat = sender2.Text; this.Framework.SendGSPacket(new OpenGraal.Core.CString() + (byte)Common.Connections.Client.GraalServer.PacketOut.PLAYERPROPS + (byte)Common.Connections.Client.GraalServer.PLPROPS.CURCHAT + (byte)sender2.Text.Length + sender2.Text + "\n"); this.WriteText("(" + this.NCPlayer.Account + "(" + this.NCPlayer.Id + ")) " + sender2.Text); } } } sender2.Text = ""; }
void CreateControls() { if (node.Type == Gtk.UIManagerItemType.Separator) { Gtk.Widget sep; if (parentMenu.IsTopMenu) { sep = new Gtk.VSeparator(); sep.WidthRequest = 6; } else { sep = new Gtk.HSeparator(); sep.HeightRequest = 6; } Add(sep); ShowAll(); return; } else { if (Child != null && Child is Gtk.Separator) { Remove(Child); } } if (node.Action == null) { return; } bool isGlobal = wrapper != null && wrapper.Project.ActionGroups.IndexOf(node.Action.ActionGroup) != -1; Gtk.Action gaction = node.Action.GtkAction; bool barItem = parentMenu.IsTopMenu; string text = gaction.Label; string stock = gaction.StockId; if (barItem) { icon = null; } else if (node.Action.Type == Stetic.Wrapper.Action.ActionType.Radio) { icon = new CheckActionIcon(true, node.Action.Active); } else if (node.Action.Type == Stetic.Wrapper.Action.ActionType.Toggle) { icon = new CheckActionIcon(node.Action.DrawAsRadio, node.Action.Active); } if (stock != null) { Gtk.StockItem item = Gtk.Stock.Lookup(stock); if (text == null || text.Length == 0) { text = item.Label; } if (item.Keyval != 0 && !editing && !barItem) { Gtk.Label lac = new Gtk.Label(); string accelName = Gtk.Accelerator.Name(item.Keyval, item.Modifier).ToUpper(); accelName = accelName.Replace("<CONTROL>", "Ctrl+"); accelName = accelName.Replace("<SHIFT>", "Shift+"); accelName = accelName.Replace("<ALT>", "Alt+"); lac.Text = accelName; accel = lac; } if (icon == null && !barItem) { icon = node.Action.CreateIcon(Gtk.IconSize.Menu); } } if (editing && !isGlobal) { if (!barItem) { Gtk.HBox bbox = new Gtk.HBox(); if (icon != null) { bbox.PackStart(icon, false, false, 0); } bbox.PackStart(new Gtk.Arrow(Gtk.ArrowType.Down, Gtk.ShadowType.In), false, false, 0); Gtk.Button b = new Gtk.Button(bbox); b.TooltipText = Catalog.GetString("Select action type"); b.Relief = Gtk.ReliefStyle.None; b.ButtonPressEvent += OnSelectIcon; icon = b; } else { icon = null; } Gtk.Entry entry = new Gtk.Entry(); entry.Text = text; entry.Activated += OnLabelActivated; entry.KeyPressEvent += OnEntryKeyPress; entry.HasFrame = false; this.label = entry; entry.TooltipText = Catalog.GetString("Action label"); } else { Gtk.Label label = new Gtk.Label(text); label.Xalign = 0; this.label = label; } if (editing && wrapper != null) { // Add a button for creating / deleting a submenu Gdk.Pixbuf img; string tip; if (node.Type != Gtk.UIManagerItemType.Menu) { img = addMenuImage; tip = Catalog.GetString("Add submenu (Ctrl+Right)"); } else { img = removeMenuImage; tip = Catalog.GetString("Remove submenu (Ctrl+Left)"); } Gtk.Button sb = new Gtk.Button(new Gtk.Image(img)); sb.TooltipText = tip; sb.Relief = Gtk.ReliefStyle.None; sb.Clicked += OnCreateDeleteSubmenu; // Make sure the button is alligned to the right of the column Gtk.HBox bbox = new Gtk.HBox(); bbox.PackEnd(sb, false, false, 0); accel = bbox; } if (node.Type == Gtk.UIManagerItemType.Menu && !editing && !barItem) { Gtk.Arrow arrow = new Gtk.Arrow(Gtk.ArrowType.Right, Gtk.ShadowType.None); arrow.Xalign = 1; this.accel = arrow; } if (itemSpacing > 0 && icon != null) { // Add some padding to the left of the icon Gtk.Alignment a = new Gtk.Alignment(0, 0.5f, 0, 0); a.LeftPadding = itemSpacing; a.Add(icon); icon = a; } }
public CustomComboEntryBackend(Gtk.Entry entry) { this.entry = entry; }
public InsertTimestampPreferences () : base (false, 12) { // Get current values String dateFormat = (string) Preferences.Get ( Preferences.INSERT_TIMESTAMP_FORMAT); DateTime now = DateTime.Now; // Label Gtk.Label label = new Gtk.Label (Catalog.GetString ( "Choose one of the predefined formats " + "or use your own.")); label.Wrap = true; label.Xalign = 0; PackStart (label); // Use Selected Format selected_radio = new Gtk.RadioButton (Catalog.GetString ( "Use _Selected Format")); PackStart (selected_radio); // 1st column (visible): formatted date // 2nd column (not visible): date format store = new Gtk.ListStore (typeof (string), typeof (string)); foreach (String format in formats) store.AppendValues (now.ToString (format), format); scroll = new Gtk.ScrolledWindow(); scroll.ShadowType = Gtk.ShadowType.In; PackStart (scroll); tv = new Gtk.TreeView (store); tv.HeadersVisible = false; tv.AppendColumn ("Format", new Gtk.CellRendererText (), "text", 0); scroll.Add (tv); // Use Custom Format Gtk.HBox customBox = new Gtk.HBox (false, 12); PackStart (customBox); custom_radio = new Gtk.RadioButton ( selected_radio, Catalog.GetString ("_Use Custom Format")); customBox.PackStart (custom_radio); custom_entry = new Gtk.Entry (); customBox.PackStart (custom_entry); IPropertyEditor entryEditor = Services.Factory.CreatePropertyEditorEntry ( Preferences.INSERT_TIMESTAMP_FORMAT, custom_entry); entryEditor.Setup (); // Activate/deactivate widgets bool useCustom = true; Gtk.TreeIter iter; store.GetIterFirst (out iter); foreach (object[] row in store) { if (dateFormat.Equals (row[1])) { // Found format in list useCustom = false; break; } store.IterNext (ref iter); } if (useCustom) { custom_radio.Active = true; scroll.Sensitive = false; } else { selected_radio.Active = true; custom_entry.Sensitive = false; tv.Selection.SelectIter (iter); Gtk.TreePath path = store.GetPath (iter); tv.ScrollToCell (path, null, false, 0, 0); } // Register Toggled event for one radio button only selected_radio.Toggled += OnSelectedRadioToggled; tv.Selection.Changed += OnSelectionChanged; ShowAll (); }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget ocmgtk.DelormeGPXWidget Stetic.BinContainer.Attach(this); this.Name = "ocmgtk.DelormeGPXWidget"; // Container child ocmgtk.DelormeGPXWidget.Gtk.Container+ContainerChild this.vbox1 = new Gtk.VBox(); this.vbox1.Name = "vbox1"; this.vbox1.Spacing = 6; // Container child vbox1.Gtk.Box+BoxChild this.table1 = new Gtk.Table(((uint)(2)), ((uint)(2)), false); this.table1.Name = "table1"; this.table1.RowSpacing = ((uint)(6)); this.table1.ColumnSpacing = ((uint)(6)); // Container child table1.Gtk.Table+TableChild this.limitCheck = new Gtk.CheckButton(); this.limitCheck.CanFocus = true; this.limitCheck.Name = "limitCheck"; this.limitCheck.Label = Mono.Unix.Catalog.GetString("Limit Number of Caches"); this.limitCheck.Active = true; this.limitCheck.DrawIndicator = true; this.limitCheck.UseUnderline = true; this.table1.Add(this.limitCheck); Gtk.Table.TableChild w1 = ((Gtk.Table.TableChild)(this.table1[this.limitCheck])); w1.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.limitEntry = new Gtk.Entry(); this.limitEntry.CanFocus = true; this.limitEntry.Name = "limitEntry"; this.limitEntry.Text = "1000"; this.limitEntry.IsEditable = true; this.limitEntry.InvisibleChar = '•'; this.table1.Add(this.limitEntry); Gtk.Table.TableChild w2 = ((Gtk.Table.TableChild)(this.table1[this.limitEntry])); w2.LeftAttach = ((uint)(1)); w2.RightAttach = ((uint)(2)); w2.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.logLimitCheck = new Gtk.CheckButton(); this.logLimitCheck.CanFocus = true; this.logLimitCheck.Name = "logLimitCheck"; this.logLimitCheck.Label = Mono.Unix.Catalog.GetString("Limit Number of Logs"); this.logLimitCheck.DrawIndicator = true; this.logLimitCheck.UseUnderline = true; this.table1.Add(this.logLimitCheck); Gtk.Table.TableChild w3 = ((Gtk.Table.TableChild)(this.table1[this.logLimitCheck])); w3.TopAttach = ((uint)(1)); w3.BottomAttach = ((uint)(2)); w3.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.logLimitEntry = new Gtk.Entry(); this.logLimitEntry.Sensitive = false; this.logLimitEntry.CanFocus = true; this.logLimitEntry.Name = "logLimitEntry"; this.logLimitEntry.Text = Mono.Unix.Catalog.GetString("5"); this.logLimitEntry.IsEditable = true; this.logLimitEntry.InvisibleChar = '•'; this.table1.Add(this.logLimitEntry); Gtk.Table.TableChild w4 = ((Gtk.Table.TableChild)(this.table1[this.logLimitEntry])); w4.TopAttach = ((uint)(1)); w4.BottomAttach = ((uint)(2)); w4.LeftAttach = ((uint)(1)); w4.RightAttach = ((uint)(2)); w4.YOptions = ((Gtk.AttachOptions)(4)); this.vbox1.Add(this.table1); Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.vbox1[this.table1])); w5.Position = 0; w5.Expand = false; w5.Fill = false; // Container child vbox1.Gtk.Box+BoxChild this.table2 = new Gtk.Table(((uint)(4)), ((uint)(3)), false); this.table2.Name = "table2"; this.table2.RowSpacing = ((uint)(6)); this.table2.ColumnSpacing = ((uint)(6)); // Container child table2.Gtk.Table+TableChild this.attrCheck = new Gtk.CheckButton(); this.attrCheck.CanFocus = true; this.attrCheck.Name = "attrCheck"; this.attrCheck.Label = Mono.Unix.Catalog.GetString("Include Attributes in Description"); this.attrCheck.Active = true; this.attrCheck.DrawIndicator = true; this.attrCheck.UseUnderline = true; this.table2.Add(this.attrCheck); Gtk.Table.TableChild w6 = ((Gtk.Table.TableChild)(this.table2[this.attrCheck])); w6.RightAttach = ((uint)(2)); w6.XOptions = ((Gtk.AttachOptions)(4)); w6.YOptions = ((Gtk.AttachOptions)(4)); // Container child table2.Gtk.Table+TableChild this.autoNameRado = new Gtk.RadioButton(Mono.Unix.Catalog.GetString("Auto name on internal drive")); this.autoNameRado.CanFocus = true; this.autoNameRado.Name = "autoNameRado"; this.autoNameRado.DrawIndicator = true; this.autoNameRado.UseUnderline = true; this.autoNameRado.Group = new GLib.SList(System.IntPtr.Zero); this.table2.Add(this.autoNameRado); Gtk.Table.TableChild w7 = ((Gtk.Table.TableChild)(this.table2[this.autoNameRado])); w7.TopAttach = ((uint)(1)); w7.BottomAttach = ((uint)(2)); w7.XOptions = ((Gtk.AttachOptions)(4)); w7.YOptions = ((Gtk.AttachOptions)(4)); // Container child table2.Gtk.Table+TableChild this.fieldBrowseButton = new Gtk.Button(); this.fieldBrowseButton.CanFocus = true; this.fieldBrowseButton.Name = "fieldBrowseButton"; // Container child fieldBrowseButton.Gtk.Container+ContainerChild this.image21 = new Gtk.Image(); this.image21.Name = "image21"; this.image21.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-open", Gtk.IconSize.Button, 20); this.fieldBrowseButton.Add(this.image21); this.fieldBrowseButton.Label = null; this.table2.Add(this.fieldBrowseButton); Gtk.Table.TableChild w9 = ((Gtk.Table.TableChild)(this.table2[this.fieldBrowseButton])); w9.TopAttach = ((uint)(3)); w9.BottomAttach = ((uint)(4)); w9.LeftAttach = ((uint)(2)); w9.RightAttach = ((uint)(3)); w9.XOptions = ((Gtk.AttachOptions)(4)); w9.YOptions = ((Gtk.AttachOptions)(4)); // Container child table2.Gtk.Table+TableChild this.fieldNotesEntry = new Gtk.Entry(); this.fieldNotesEntry.CanFocus = true; this.fieldNotesEntry.Name = "fieldNotesEntry"; this.fieldNotesEntry.Text = "/media/EM_USERMAPS/FieldNotes.txt"; this.fieldNotesEntry.IsEditable = true; this.fieldNotesEntry.InvisibleChar = '•'; this.table2.Add(this.fieldNotesEntry); Gtk.Table.TableChild w10 = ((Gtk.Table.TableChild)(this.table2[this.fieldNotesEntry])); w10.TopAttach = ((uint)(3)); w10.BottomAttach = ((uint)(4)); w10.LeftAttach = ((uint)(1)); w10.RightAttach = ((uint)(2)); w10.XOptions = ((Gtk.AttachOptions)(4)); w10.YOptions = ((Gtk.AttachOptions)(4)); // Container child table2.Gtk.Table+TableChild this.fileButton = new Gtk.Button(); this.fileButton.CanFocus = true; this.fileButton.Name = "fileButton"; // Container child fileButton.Gtk.Container+ContainerChild this.image3 = new Gtk.Image(); this.image3.Name = "image3"; this.image3.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-open", Gtk.IconSize.Menu, 16); this.fileButton.Add(this.image3); this.fileButton.Label = null; this.table2.Add(this.fileButton); Gtk.Table.TableChild w12 = ((Gtk.Table.TableChild)(this.table2[this.fileButton])); w12.TopAttach = ((uint)(2)); w12.BottomAttach = ((uint)(3)); w12.LeftAttach = ((uint)(2)); w12.RightAttach = ((uint)(3)); w12.XOptions = ((Gtk.AttachOptions)(4)); w12.YOptions = ((Gtk.AttachOptions)(4)); // Container child table2.Gtk.Table+TableChild this.fileEntry = new Gtk.Entry(); this.fileEntry.Sensitive = false; this.fileEntry.CanFocus = true; this.fileEntry.Name = "fileEntry"; this.fileEntry.Text = "/media/EM_USERMAPS/waypoints/geocaches.gpx"; this.fileEntry.IsEditable = true; this.fileEntry.InvisibleChar = '•'; this.table2.Add(this.fileEntry); Gtk.Table.TableChild w13 = ((Gtk.Table.TableChild)(this.table2[this.fileEntry])); w13.TopAttach = ((uint)(2)); w13.BottomAttach = ((uint)(3)); w13.LeftAttach = ((uint)(1)); w13.RightAttach = ((uint)(2)); w13.YOptions = ((Gtk.AttachOptions)(4)); // Container child table2.Gtk.Table+TableChild this.label1 = new Gtk.Label(); this.label1.Name = "label1"; this.label1.Xalign = 0F; this.label1.LabelProp = Mono.Unix.Catalog.GetString("Field Notes File:"); this.table2.Add(this.label1); Gtk.Table.TableChild w14 = ((Gtk.Table.TableChild)(this.table2[this.label1])); w14.TopAttach = ((uint)(3)); w14.BottomAttach = ((uint)(4)); w14.XOptions = ((Gtk.AttachOptions)(4)); w14.YOptions = ((Gtk.AttachOptions)(4)); // Container child table2.Gtk.Table+TableChild this.useFileRadio = new Gtk.RadioButton(Mono.Unix.Catalog.GetString("Use specified file:")); this.useFileRadio.CanFocus = true; this.useFileRadio.Name = "useFileRadio"; this.useFileRadio.DrawIndicator = true; this.useFileRadio.UseUnderline = true; this.useFileRadio.Group = this.autoNameRado.Group; this.table2.Add(this.useFileRadio); Gtk.Table.TableChild w15 = ((Gtk.Table.TableChild)(this.table2[this.useFileRadio])); w15.TopAttach = ((uint)(2)); w15.BottomAttach = ((uint)(3)); w15.XOptions = ((Gtk.AttachOptions)(4)); w15.YOptions = ((Gtk.AttachOptions)(4)); this.vbox1.Add(this.table2); Gtk.Box.BoxChild w16 = ((Gtk.Box.BoxChild)(this.vbox1[this.table2])); w16.Position = 1; w16.Expand = false; w16.Fill = false; this.Add(this.vbox1); if ((this.Child != null)) { this.Child.ShowAll(); } this.Hide(); this.logLimitCheck.Toggled += new System.EventHandler(this.OnLogLimitToggle); this.limitCheck.Toggled += new System.EventHandler(this.OnLimitToggle); this.useFileRadio.Toggled += new System.EventHandler(this.OnFileToggle); this.fileButton.Clicked += new System.EventHandler(this.OnFileClick); this.fieldBrowseButton.Clicked += new System.EventHandler(this.OnFieldBrowse); }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget HollyLibrary.FolderChooserDialog this.Name = "HollyLibrary.FolderChooserDialog"; this.Title = "FolderChooserDialog"; this.WindowPosition = ((Gtk.WindowPosition)(4)); this.BorderWidth = ((uint)(2)); this.Decorated = false; this.SkipPagerHint = true; this.SkipTaskbarHint = true; this.FocusOnMap = false; // Container child HollyLibrary.FolderChooserDialog.Gtk.Container+ContainerChild this.vbox1 = new Gtk.VBox(); this.vbox1.Name = "vbox1"; this.vbox1.Spacing = 6; this.vbox1.BorderWidth = ((uint)(4)); // Container child vbox1.Gtk.Box+BoxChild this.GtkScrolledWindow = new Gtk.ScrolledWindow(); this.GtkScrolledWindow.Name = "GtkScrolledWindow"; this.GtkScrolledWindow.ShadowType = ((Gtk.ShadowType)(1)); this.GtkScrolledWindow.BorderWidth = ((uint)(2)); // Container child GtkScrolledWindow.Gtk.Container+ContainerChild this.FolderTree = new HollyLibrary.HTreeView(); this.FolderTree.CanFocus = true; this.FolderTree.Name = "FolderTree"; this.FolderTree.HeadersClickable = true; this.FolderTree.OwnerDraw = false; this.FolderTree.ItemHeight = 0; this.FolderTree.NodeIconVisible = true; this.FolderTree.IsCheckBoxTree = false; this.FolderTree.IsDragAndDropEnable = false; this.FolderTree.Editable = false; this.GtkScrolledWindow.Add(this.FolderTree); this.vbox1.Add(this.GtkScrolledWindow); Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.vbox1[this.GtkScrolledWindow])); w2.Position = 0; // Container child vbox1.Gtk.Box+BoxChild this.hseparator1 = new Gtk.HSeparator(); this.hseparator1.Name = "hseparator1"; this.vbox1.Add(this.hseparator1); Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox1[this.hseparator1])); w3.Position = 1; w3.Expand = false; w3.Fill = false; // Container child vbox1.Gtk.Box+BoxChild this.hbox1 = new Gtk.HBox(); this.hbox1.Name = "hbox1"; this.hbox1.Spacing = 6; // Container child hbox1.Gtk.Box+BoxChild this.label1 = new Gtk.Label(); this.label1.Name = "label1"; this.label1.Xalign = 0F; this.label1.LabelProp = "Add new folder:"; this.hbox1.Add(this.label1); Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.hbox1[this.label1])); w4.Position = 0; // Container child hbox1.Gtk.Box+BoxChild this.TxtNewFolder = new Gtk.Entry(); this.TxtNewFolder.CanFocus = true; this.TxtNewFolder.Name = "TxtNewFolder"; this.TxtNewFolder.IsEditable = true; this.TxtNewFolder.InvisibleChar = '●'; this.hbox1.Add(this.TxtNewFolder); Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.hbox1[this.TxtNewFolder])); w5.Position = 1; // Container child hbox1.Gtk.Box+BoxChild this.BtnNewFolder = new Gtk.Button(); this.BtnNewFolder.CanFocus = true; this.BtnNewFolder.Name = "BtnNewFolder"; this.BtnNewFolder.UseStock = true; this.BtnNewFolder.UseUnderline = true; this.BtnNewFolder.Label = "gtk-add"; this.hbox1.Add(this.BtnNewFolder); Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(this.hbox1[this.BtnNewFolder])); w6.Position = 2; w6.Expand = false; this.vbox1.Add(this.hbox1); Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(this.vbox1[this.hbox1])); w7.Position = 2; w7.Expand = false; w7.Fill = false; this.Add(this.vbox1); if ((this.Child != null)) { this.Child.ShowAll(); } this.DefaultWidth = 355; this.DefaultHeight = 271; this.Hide(); this.ButtonPressEvent += new Gtk.ButtonPressEventHandler(this.OnButtonPressEvent); this.FolderTree.ButtonPressEvent += new Gtk.ButtonPressEventHandler(this.OnFolderTreeButtonPressEvent); this.FolderTree.CursorChanged += new System.EventHandler(this.OnFolderTreeCursorChanged); this.FolderTree.RowActivated += new Gtk.RowActivatedHandler(this.OnFolderTreeRowActivated); this.FolderTree.BeforeNodeExpand += new HollyLibrary.NodeEventHandler(this.OnFolderTreeBeforeNodeExpand); this.TxtNewFolder.KeyReleaseEvent += new Gtk.KeyReleaseEventHandler(this.OnTxtNewFolderKeyReleaseEvent); this.BtnNewFolder.Clicked += new System.EventHandler(this.OnBtnNewFolderClicked); this.BtnNewFolder.ButtonPressEvent += new Gtk.ButtonPressEventHandler(this.OnBtnNewFolderButtonPressEvent); }
protected virtual void Build() { Stetic.Gui.Initialize(); // Widget tryServer.frmSettings this.WidthRequest = 380; this.HeightRequest = 450; this.Events = ((Gdk.EventMask)(256)); this.Name = "tryServer.frmSettings"; this.Title = Mono.Unix.Catalog.GetString("Settings"); this.WindowPosition = ((Gtk.WindowPosition)(4)); this.Resizable = false; this.AllowGrow = false; this.HasSeparator = false; // Internal child tryServer.frmSettings.VBox Gtk.VBox w1 = this.VBox; w1.Events = ((Gdk.EventMask)(256)); w1.Name = "dialog_VBox"; w1.BorderWidth = ((uint)(2)); // Container child dialog_VBox.Gtk.Box+BoxChild this.fixed1 = new Gtk.Fixed(); this.fixed1.HeightRequest = 390; this.fixed1.Name = "fixed1"; this.fixed1.HasWindow = false; // Container child fixed1.Gtk.Fixed+FixedChild this.label4 = new Gtk.Label(); this.label4.Name = "label4"; this.label4.LabelProp = Mono.Unix.Catalog.GetString("Server"); this.fixed1.Add(this.label4); Gtk.Fixed.FixedChild w2 = ((Gtk.Fixed.FixedChild)(this.fixed1[this.label4])); w2.X = 135; w2.Y = 40; // Container child fixed1.Gtk.Fixed+FixedChild this.label5 = new Gtk.Label(); this.label5.Name = "label5"; this.label5.LabelProp = Mono.Unix.Catalog.GetString("Port"); this.fixed1.Add(this.label5); Gtk.Fixed.FixedChild w3 = ((Gtk.Fixed.FixedChild)(this.fixed1[this.label5])); w3.X = 135; w3.Y = 80; // Container child fixed1.Gtk.Fixed+FixedChild this.label6 = new Gtk.Label(); this.label6.Name = "label6"; this.label6.LabelProp = Mono.Unix.Catalog.GetString("File"); this.fixed1.Add(this.label6); Gtk.Fixed.FixedChild w4 = ((Gtk.Fixed.FixedChild)(this.fixed1[this.label6])); w4.X = 135; w4.Y = 120; // Container child fixed1.Gtk.Fixed+FixedChild this.image52 = new Gtk.Image(); this.image52.Name = "image52"; this.image52.Pixbuf = Gdk.Pixbuf.LoadFromResource("_database.png"); this.fixed1.Add(this.image52); Gtk.Fixed.FixedChild w5 = ((Gtk.Fixed.FixedChild)(this.fixed1[this.image52])); w5.X = 35; w5.Y = 58; // Container child fixed1.Gtk.Fixed+FixedChild this.image53 = new Gtk.Image(); this.image53.Name = "image53"; this.image53.Pixbuf = Gdk.Pixbuf.LoadFromResource("password.png"); this.fixed1.Add(this.image53); Gtk.Fixed.FixedChild w6 = ((Gtk.Fixed.FixedChild)(this.fixed1[this.image53])); w6.X = 35; w6.Y = 174; // Container child fixed1.Gtk.Fixed+FixedChild this.hseparator1 = new Gtk.HSeparator(); this.hseparator1.WidthRequest = 380; this.hseparator1.Name = "hseparator1"; this.fixed1.Add(this.hseparator1); Gtk.Fixed.FixedChild w7 = ((Gtk.Fixed.FixedChild)(this.fixed1[this.hseparator1])); w7.X = 12; w7.Y = 151; // Container child fixed1.Gtk.Fixed+FixedChild this.txtServer = new Gtk.Entry(); this.txtServer.CanFocus = true; this.txtServer.Name = "txtServer"; this.txtServer.IsEditable = true; this.txtServer.InvisibleChar = '●'; this.fixed1.Add(this.txtServer); Gtk.Fixed.FixedChild w8 = ((Gtk.Fixed.FixedChild)(this.fixed1[this.txtServer])); w8.X = 215; w8.Y = 35; // Container child fixed1.Gtk.Fixed+FixedChild this.txtPort = new Gtk.Entry(); this.txtPort.CanFocus = true; this.txtPort.Name = "txtPort"; this.txtPort.IsEditable = true; this.txtPort.InvisibleChar = '●'; this.fixed1.Add(this.txtPort); Gtk.Fixed.FixedChild w9 = ((Gtk.Fixed.FixedChild)(this.fixed1[this.txtPort])); w9.X = 215; w9.Y = 75; // Container child fixed1.Gtk.Fixed+FixedChild this.txtFile = new Gtk.Entry(); this.txtFile.CanFocus = true; this.txtFile.Name = "txtFile"; this.txtFile.IsEditable = true; this.txtFile.InvisibleChar = '●'; this.fixed1.Add(this.txtFile); Gtk.Fixed.FixedChild w10 = ((Gtk.Fixed.FixedChild)(this.fixed1[this.txtFile])); w10.X = 215; w10.Y = 115; // Container child fixed1.Gtk.Fixed+FixedChild this.label7 = new Gtk.Label(); this.label7.Name = "label7"; this.label7.LabelProp = Mono.Unix.Catalog.GetString("User"); this.fixed1.Add(this.label7); Gtk.Fixed.FixedChild w11 = ((Gtk.Fixed.FixedChild)(this.fixed1[this.label7])); w11.X = 135; w11.Y = 175; // Container child fixed1.Gtk.Fixed+FixedChild this.label8 = new Gtk.Label(); this.label8.Name = "label8"; this.label8.LabelProp = Mono.Unix.Catalog.GetString("Password"); this.fixed1.Add(this.label8); Gtk.Fixed.FixedChild w12 = ((Gtk.Fixed.FixedChild)(this.fixed1[this.label8])); w12.X = 135; w12.Y = 220; // Container child fixed1.Gtk.Fixed+FixedChild this.txtUser = new Gtk.Entry(); this.txtUser.CanFocus = true; this.txtUser.Name = "txtUser"; this.txtUser.IsEditable = true; this.txtUser.InvisibleChar = '●'; this.fixed1.Add(this.txtUser); Gtk.Fixed.FixedChild w13 = ((Gtk.Fixed.FixedChild)(this.fixed1[this.txtUser])); w13.X = 215; w13.Y = 170; // Container child fixed1.Gtk.Fixed+FixedChild this.txtPassword = new Gtk.Entry(); this.txtPassword.CanFocus = true; this.txtPassword.Name = "txtPassword"; this.txtPassword.IsEditable = true; this.txtPassword.Visibility = false; this.txtPassword.InvisibleChar = '●'; this.fixed1.Add(this.txtPassword); Gtk.Fixed.FixedChild w14 = ((Gtk.Fixed.FixedChild)(this.fixed1[this.txtPassword])); w14.X = 215; w14.Y = 210; // Container child fixed1.Gtk.Fixed+FixedChild this.label10 = new Gtk.Label(); this.label10.Name = "label10"; this.label10.LabelProp = Mono.Unix.Catalog.GetString("Add users"); this.fixed1.Add(this.label10); Gtk.Fixed.FixedChild w15 = ((Gtk.Fixed.FixedChild)(this.fixed1[this.label10])); w15.X = 21; w15.Y = 340; // Container child fixed1.Gtk.Fixed+FixedChild this.btnUsers = new Gtk.Button(); this.btnUsers.CanFocus = true; this.btnUsers.Name = "btnUsers"; this.btnUsers.UseUnderline = true; // Container child btnUsers.Gtk.Container+ContainerChild Gtk.Alignment w16 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); w16.Name = "GtkAlignment"; // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w17 = new Gtk.HBox(); w17.Name = "GtkHBox"; w17.Spacing = 2; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w18 = new Gtk.Image(); w18.Name = "image4"; w18.Pixbuf = Gdk.Pixbuf.LoadFromResource("users.png"); w17.Add(w18); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w20 = new Gtk.Label(); w20.Name = "GtkLabel"; w20.LabelProp = ""; w17.Add(w20); w16.Add(w17); this.btnUsers.Add(w16); this.fixed1.Add(this.btnUsers); Gtk.Fixed.FixedChild w24 = ((Gtk.Fixed.FixedChild)(this.fixed1[this.btnUsers])); w24.X = 28; w24.Y = 277; // Container child fixed1.Gtk.Fixed+FixedChild this.hseparator2 = new Gtk.HSeparator(); this.hseparator2.WidthRequest = 370; this.hseparator2.Name = "hseparator2"; this.fixed1.Add(this.hseparator2); Gtk.Fixed.FixedChild w25 = ((Gtk.Fixed.FixedChild)(this.fixed1[this.hseparator2])); w25.X = 12; w25.Y = 251; // Container child fixed1.Gtk.Fixed+FixedChild this.txtFileUsers = new Gtk.Entry(); this.txtFileUsers.CanFocus = true; this.txtFileUsers.Name = "txtFileUsers"; this.txtFileUsers.IsEditable = true; this.txtFileUsers.InvisibleChar = '●'; this.fixed1.Add(this.txtFileUsers); Gtk.Fixed.FixedChild w26 = ((Gtk.Fixed.FixedChild)(this.fixed1[this.txtFileUsers])); w26.X = 215; w26.Y = 295; // Container child fixed1.Gtk.Fixed+FixedChild this.label9 = new Gtk.Label(); this.label9.Name = "label9"; this.label9.LabelProp = Mono.Unix.Catalog.GetString("File"); this.fixed1.Add(this.label9); Gtk.Fixed.FixedChild w27 = ((Gtk.Fixed.FixedChild)(this.fixed1[this.label9])); w27.X = 133; w27.Y = 300; w1.Add(this.fixed1); Gtk.Box.BoxChild w28 = ((Gtk.Box.BoxChild)(w1[this.fixed1])); w28.Position = 0; w28.Expand = false; w28.Fill = false; // Internal child tryServer.frmSettings.ActionArea Gtk.HButtonBox w29 = this.ActionArea; w29.Events = ((Gdk.EventMask)(256)); w29.Name = "tryServer.frmSettings_ActionArea"; w29.Spacing = 6; w29.BorderWidth = ((uint)(5)); w29.LayoutStyle = ((Gtk.ButtonBoxStyle)(4)); // Container child tryServer.frmSettings_ActionArea.Gtk.ButtonBox+ButtonBoxChild this.Ok = new Gtk.Button(); this.Ok.CanDefault = true; this.Ok.CanFocus = true; this.Ok.Name = "Ok"; this.Ok.UseUnderline = true; this.Ok.Label = Mono.Unix.Catalog.GetString("Ok"); this.AddActionWidget(this.Ok, 0); Gtk.ButtonBox.ButtonBoxChild w30 = ((Gtk.ButtonBox.ButtonBoxChild)(w29[this.Ok])); w30.Expand = false; w30.Fill = false; if ((this.Child != null)) { this.Child.ShowAll(); } this.DefaultWidth = 421; this.DefaultHeight = 479; this.Show(); this.DeleteEvent += new Gtk.DeleteEventHandler(this.OnDeleteEvent); this.btnUsers.Clicked += new System.EventHandler(this.OnBtnUsersClicked); this.Ok.Clicked += new System.EventHandler(this.OnButton30Clicked); }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget MainWindow this.Name = "MainWindow"; this.Title = Mono.Unix.Catalog.GetString("MainWindow"); this.WindowPosition = ((Gtk.WindowPosition)(4)); // Container child MainWindow.Gtk.Container+ContainerChild this.vbox1 = new Gtk.VBox(); this.vbox1.Name = "vbox1"; this.vbox1.Spacing = 6; // Container child vbox1.Gtk.Box+BoxChild this.button1 = new Gtk.Button(); this.button1.CanFocus = true; this.button1.Name = "button1"; this.button1.UseUnderline = true; // Container child button1.Gtk.Container+ContainerChild Gtk.Alignment w1 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w2 = new Gtk.HBox(); w2.Spacing = 2; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w3 = new Gtk.Image(); w2.Add(w3); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w5 = new Gtk.Label(); w5.LabelProp = Mono.Unix.Catalog.GetString("button1"); w5.UseUnderline = true; w2.Add(w5); w1.Add(w2); this.button1.Add(w1); this.vbox1.Add(this.button1); Gtk.Box.BoxChild w9 = ((Gtk.Box.BoxChild)(this.vbox1[this.button1])); w9.Position = 0; w9.Expand = false; w9.Fill = false; // Container child vbox1.Gtk.Box+BoxChild this.datalabel1 = new Gtk.DataBindings.DataLabel(); this.datalabel1.Name = "datalabel1"; this.datalabel1.LabelProp = Mono.Unix.Catalog.GetString("datalabel1"); this.datalabel1.InheritedDataSource = false; this.datalabel1.InheritedBoundaryDataSource = false; this.datalabel1.Important = false; this.vbox1.Add(this.datalabel1); Gtk.Box.BoxChild w10 = ((Gtk.Box.BoxChild)(this.vbox1[this.datalabel1])); w10.Position = 1; w10.Expand = false; w10.Fill = false; // Container child vbox1.Gtk.Box+BoxChild this.dateentry1 = new Gtk.DataBindings.DateEntry(); this.dateentry1.CanFocus = true; this.dateentry1.Name = "dateentry1"; this.dateentry1.HasDropDown = true; this.dateentry1.HasClearButton = true; this.dateentry1.HasCalculator = true; this.dateentry1.Editable = true; this.vbox1.Add(this.dateentry1); Gtk.Box.BoxChild w11 = ((Gtk.Box.BoxChild)(this.vbox1[this.dateentry1])); w11.Position = 3; w11.Expand = false; w11.Fill = false; // Container child vbox1.Gtk.Box+BoxChild this.dateentry2 = new Gtk.DataBindings.DateEntry(); this.dateentry2.CanFocus = true; this.dateentry2.Name = "dateentry2"; this.dateentry2.HasDropDown = true; this.dateentry2.HasClearButton = true; this.dateentry2.HasCalculator = true; this.dateentry2.Editable = true; this.vbox1.Add(this.dateentry2); Gtk.Box.BoxChild w12 = ((Gtk.Box.BoxChild)(this.vbox1[this.dateentry2])); w12.Position = 4; w12.Expand = false; w12.Fill = false; // Container child vbox1.Gtk.Box+BoxChild this.entry1 = new Gtk.Entry(); this.entry1.CanFocus = true; this.entry1.Name = "entry1"; this.entry1.IsEditable = true; this.entry1.InvisibleChar = '•'; this.vbox1.Add(this.entry1); Gtk.Box.BoxChild w13 = ((Gtk.Box.BoxChild)(this.vbox1[this.entry1])); w13.Position = 5; w13.Expand = false; w13.Fill = false; // Container child vbox1.Gtk.Box+BoxChild this.checkbutton1 = new Gtk.CheckButton(); this.checkbutton1.CanFocus = true; this.checkbutton1.Name = "checkbutton1"; this.checkbutton1.Label = Mono.Unix.Catalog.GetString("checkbutton1"); this.checkbutton1.Active = true; this.checkbutton1.DrawIndicator = true; this.checkbutton1.UseUnderline = true; this.vbox1.Add(this.checkbutton1); Gtk.Box.BoxChild w14 = ((Gtk.Box.BoxChild)(this.vbox1[this.checkbutton1])); w14.Position = 6; w14.Expand = false; w14.Fill = false; // Container child vbox1.Gtk.Box+BoxChild this.button2 = new Gtk.Button(); this.button2.CanFocus = true; this.button2.Name = "button2"; this.button2.UseUnderline = true; this.button2.Label = Mono.Unix.Catalog.GetString("button1"); this.vbox1.Add(this.button2); Gtk.Box.BoxChild w15 = ((Gtk.Box.BoxChild)(this.vbox1[this.button2])); w15.Position = 7; w15.Expand = false; w15.Fill = false; // Container child vbox1.Gtk.Box+BoxChild this.image303 = new Gtk.Image(); this.image303.Name = "image303"; this.vbox1.Add(this.image303); Gtk.Box.BoxChild w16 = ((Gtk.Box.BoxChild)(this.vbox1[this.image303])); w16.Position = 8; w16.Expand = false; w16.Fill = false; // Container child vbox1.Gtk.Box+BoxChild this.ipv4entry1 = new Gtk.ExtraWidgets.IPv4Entry(); this.ipv4entry1.Name = "ipv4entry1"; this.vbox1.Add(this.ipv4entry1); Gtk.Box.BoxChild w17 = ((Gtk.Box.BoxChild)(this.vbox1[this.ipv4entry1])); w17.Position = 9; w17.Expand = false; w17.Fill = false; // Container child vbox1.Gtk.Box+BoxChild this.timeentry1 = new Gtk.ExtraWidgets.TimeEntry(); this.timeentry1.Name = "timeentry1"; this.timeentry1.Editable = true; this.timeentry1.HasDropDown = true; this.timeentry1.HasClearButton = true; this.timeentry1.HasCalculator = true; this.timeentry1.EditSeconds = true; this.timeentry1.EditMilliseconds = true; this.vbox1.Add(this.timeentry1); Gtk.Box.BoxChild w18 = ((Gtk.Box.BoxChild)(this.vbox1[this.timeentry1])); w18.Position = 10; w18.Expand = false; w18.Fill = false; // Container child vbox1.Gtk.Box+BoxChild this.checkbutton2 = new Gtk.CheckButton(); this.checkbutton2.CanFocus = true; this.checkbutton2.Name = "checkbutton2"; this.checkbutton2.Label = Mono.Unix.Catalog.GetString("checkbutton1"); this.checkbutton2.Active = true; this.checkbutton2.DrawIndicator = true; this.checkbutton2.UseUnderline = true; this.vbox1.Add(this.checkbutton2); Gtk.Box.BoxChild w19 = ((Gtk.Box.BoxChild)(this.vbox1[this.checkbutton2])); w19.Position = 11; w19.Expand = false; w19.Fill = false; this.Add(this.vbox1); if ((this.Child != null)) { this.Child.ShowAll(); } this.DefaultWidth = 400; this.DefaultHeight = 300; this.Show(); this.DeleteEvent += new Gtk.DeleteEventHandler(this.OnDeleteEvent); this.button1.Clicked += new System.EventHandler(this.OnButton1Clicked); this.checkbutton1.Toggled += new System.EventHandler(this.OnCheckbutton1Toggled); this.button2.Clicked += new System.EventHandler(this.OnButton2Clicked); this.checkbutton2.Toggled += new System.EventHandler(this.OnCheckbutton2Toggled); }
public override void Initialize() { Widget = new Gtk.Entry(); Widget.Show(); Widget.Visibility = false; }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget LinuxGUITest.WiimoteInformation Stetic.BinContainer w1 = Stetic.BinContainer.Attach(this); Gtk.UIManager w2 = new Gtk.UIManager(); Gtk.ActionGroup w3 = new Gtk.ActionGroup("Default"); this.WiiMoteAction = new Gtk.Action("WiiMoteAction", Mono.Unix.Catalog.GetString("WiiMote"), null, null); this.WiiMoteAction.ShortLabel = Mono.Unix.Catalog.GetString("Tools"); w3.Add(this.WiiMoteAction, null); this.DisconnectAction = new Gtk.Action("DisconnectAction", Mono.Unix.Catalog.GetString("Disconnect"), null, null); this.DisconnectAction.HideIfEmpty = false; this.DisconnectAction.ShortLabel = Mono.Unix.Catalog.GetString("Disconnect"); w3.Add(this.DisconnectAction, null); this.PlaySoundAction = new Gtk.Action("PlaySoundAction", Mono.Unix.Catalog.GetString("Play sound"), null, null); this.PlaySoundAction.ShortLabel = Mono.Unix.Catalog.GetString("Play sound"); w3.Add(this.PlaySoundAction, null); this.DumpMemoryAction = new Gtk.Action("DumpMemoryAction", Mono.Unix.Catalog.GetString("Dump memory..."), null, null); this.DumpMemoryAction.ShortLabel = Mono.Unix.Catalog.GetString("Dump memory"); w3.Add(this.DumpMemoryAction, null); this.DisconnectAction1 = new Gtk.Action("DisconnectAction1", Mono.Unix.Catalog.GetString("Disconnect"), null, null); this.DisconnectAction1.ShortLabel = Mono.Unix.Catalog.GetString("Disconnect"); w3.Add(this.DisconnectAction1, null); this.CalibrateAction = new Gtk.Action("CalibrateAction", Mono.Unix.Catalog.GetString("Calibrate..."), null, null); this.CalibrateAction.ShortLabel = Mono.Unix.Catalog.GetString("Calibrate..."); w3.Add(this.CalibrateAction, null); w2.InsertActionGroup(w3, 0); this.Name = "LinuxGUITest.WiimoteInformation"; // Container child LinuxGUITest.WiimoteInformation.Gtk.Container+ContainerChild this.vbox1 = new Gtk.VBox(); this.vbox1.Name = "vbox1"; this.vbox1.Spacing = 6; // Container child vbox1.Gtk.Box+BoxChild w2.AddUiFromString("<ui><menubar name='menubar1'><menu action='WiiMoteAction'><menuitem action='DisconnectAction1'/><menuitem action='DumpMemoryAction'/><menuitem action='CalibrateAction'/></menu></menubar></ui>"); this.menubar1 = ((Gtk.MenuBar)(w2.GetWidget("/menubar1"))); this.menubar1.Name = "menubar1"; this.vbox1.Add(this.menubar1); Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.vbox1[this.menubar1])); w4.Position = 0; w4.Expand = false; w4.Fill = false; // Container child vbox1.Gtk.Box+BoxChild this.hbox5 = new Gtk.HBox(); this.hbox5.Name = "hbox5"; this.hbox5.Spacing = 6; // Container child hbox5.Gtk.Box+BoxChild this.lblReportingMode = new Gtk.Label(); this.lblReportingMode.Name = "lblReportingMode"; this.lblReportingMode.LabelProp = Mono.Unix.Catalog.GetString("Reporting Mode"); this.hbox5.Add(this.lblReportingMode); Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.hbox5[this.lblReportingMode])); w5.Position = 0; w5.Expand = false; w5.Fill = false; // Container child hbox5.Gtk.Box+BoxChild this.comboboxReportingMode = Gtk.ComboBox.NewText(); this.comboboxReportingMode.Name = "comboboxReportingMode"; this.hbox5.Add(this.comboboxReportingMode); Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(this.hbox5[this.comboboxReportingMode])); w6.Position = 1; this.vbox1.Add(this.hbox5); Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(this.vbox1[this.hbox5])); w7.Position = 1; w7.Expand = false; w7.Fill = false; // Container child vbox1.Gtk.Box+BoxChild this.hbox4 = new Gtk.HBox(); this.hbox4.Name = "hbox4"; this.hbox4.Spacing = 6; // Container child hbox4.Gtk.Box+BoxChild this.lblButtons = new Gtk.Label(); this.lblButtons.Name = "lblButtons"; this.lblButtons.LabelProp = Mono.Unix.Catalog.GetString("Buttons"); this.hbox4.Add(this.lblButtons); Gtk.Box.BoxChild w8 = ((Gtk.Box.BoxChild)(this.hbox4[this.lblButtons])); w8.Position = 0; w8.Expand = false; w8.Fill = false; // Container child hbox4.Gtk.Box+BoxChild this.entryButtons = new Gtk.Entry(); this.entryButtons.CanFocus = true; this.entryButtons.Name = "entryButtons"; this.entryButtons.IsEditable = false; this.entryButtons.InvisibleChar = '●'; this.hbox4.Add(this.entryButtons); Gtk.Box.BoxChild w9 = ((Gtk.Box.BoxChild)(this.hbox4[this.entryButtons])); w9.Position = 1; this.vbox1.Add(this.hbox4); Gtk.Box.BoxChild w10 = ((Gtk.Box.BoxChild)(this.vbox1[this.hbox4])); w10.Position = 2; w10.Expand = false; w10.Fill = false; // Container child vbox1.Gtk.Box+BoxChild this.frame1 = new Gtk.Frame(); this.frame1.Name = "frame1"; this.frame1.ShadowType = ((Gtk.ShadowType)(0)); // Container child frame1.Gtk.Container+ContainerChild this.GtkAlignment = new Gtk.Alignment(0F, 0F, 1F, 1F); this.GtkAlignment.Name = "GtkAlignment"; this.GtkAlignment.LeftPadding = ((uint)(12)); // Container child GtkAlignment.Gtk.Container+ContainerChild this.drawingareaIR = new Gtk.DrawingArea(); this.drawingareaIR.HeightRequest = 100; this.drawingareaIR.Name = "drawingareaIR"; this.GtkAlignment.Add(this.drawingareaIR); this.frame1.Add(this.GtkAlignment); this.GtkLabel3 = new Gtk.Label(); this.GtkLabel3.Name = "GtkLabel3"; this.GtkLabel3.LabelProp = Mono.Unix.Catalog.GetString("<b>IR points</b>"); this.GtkLabel3.UseMarkup = true; this.frame1.LabelWidget = this.GtkLabel3; this.vbox1.Add(this.frame1); Gtk.Box.BoxChild w13 = ((Gtk.Box.BoxChild)(this.vbox1[this.frame1])); w13.Position = 3; // Container child vbox1.Gtk.Box+BoxChild this.frame2 = new Gtk.Frame(); this.frame2.Name = "frame2"; this.frame2.ShadowType = ((Gtk.ShadowType)(0)); // Container child frame2.Gtk.Container+ContainerChild this.GtkAlignment1 = new Gtk.Alignment(0F, 0F, 1F, 1F); this.GtkAlignment1.Name = "GtkAlignment1"; this.GtkAlignment1.LeftPadding = ((uint)(12)); // Container child GtkAlignment1.Gtk.Container+ContainerChild this.hbox6 = new Gtk.HBox(); this.hbox6.Name = "hbox6"; this.hbox6.Spacing = 6; // Container child hbox6.Gtk.Box+BoxChild this.entryX = new Gtk.Entry(); this.entryX.WidthRequest = 80; this.entryX.CanFocus = true; this.entryX.Name = "entryX"; this.entryX.IsEditable = false; this.entryX.InvisibleChar = '●'; this.hbox6.Add(this.entryX); Gtk.Box.BoxChild w14 = ((Gtk.Box.BoxChild)(this.hbox6[this.entryX])); w14.Position = 0; w14.Expand = false; // Container child hbox6.Gtk.Box+BoxChild this.entryY = new Gtk.Entry(); this.entryY.WidthRequest = 80; this.entryY.CanFocus = true; this.entryY.Name = "entryY"; this.entryY.IsEditable = false; this.entryY.InvisibleChar = '●'; this.hbox6.Add(this.entryY); Gtk.Box.BoxChild w15 = ((Gtk.Box.BoxChild)(this.hbox6[this.entryY])); w15.Position = 1; w15.Expand = false; // Container child hbox6.Gtk.Box+BoxChild this.entryZ = new Gtk.Entry(); this.entryZ.WidthRequest = 80; this.entryZ.CanFocus = true; this.entryZ.Name = "entryZ"; this.entryZ.IsEditable = false; this.entryZ.InvisibleChar = '●'; this.hbox6.Add(this.entryZ); Gtk.Box.BoxChild w16 = ((Gtk.Box.BoxChild)(this.hbox6[this.entryZ])); w16.Position = 2; w16.Expand = false; w16.Fill = false; this.GtkAlignment1.Add(this.hbox6); this.frame2.Add(this.GtkAlignment1); this.GtkLabel4 = new Gtk.Label(); this.GtkLabel4.Name = "GtkLabel4"; this.GtkLabel4.LabelProp = Mono.Unix.Catalog.GetString("<b>Accelerometers</b>"); this.GtkLabel4.UseMarkup = true; this.frame2.LabelWidget = this.GtkLabel4; this.vbox1.Add(this.frame2); Gtk.Box.BoxChild w19 = ((Gtk.Box.BoxChild)(this.vbox1[this.frame2])); w19.Position = 4; w19.Expand = false; w19.Fill = false; // Container child vbox1.Gtk.Box+BoxChild this.frame3 = new Gtk.Frame(); this.frame3.Name = "frame3"; this.frame3.ShadowType = ((Gtk.ShadowType)(0)); // Container child frame3.Gtk.Container+ContainerChild this.GtkAlignment2 = new Gtk.Alignment(0F, 0F, 1F, 1F); this.GtkAlignment2.Name = "GtkAlignment2"; this.GtkAlignment2.LeftPadding = ((uint)(12)); this.frame3.Add(this.GtkAlignment2); this.GtkLabel1 = new Gtk.Label(); this.GtkLabel1.Name = "GtkLabel1"; this.GtkLabel1.LabelProp = Mono.Unix.Catalog.GetString("<b>Extension</b>"); this.GtkLabel1.UseMarkup = true; this.frame3.LabelWidget = this.GtkLabel1; this.vbox1.Add(this.frame3); Gtk.Box.BoxChild w21 = ((Gtk.Box.BoxChild)(this.vbox1[this.frame3])); w21.Position = 5; // Container child vbox1.Gtk.Box+BoxChild this.hbox2 = new Gtk.HBox(); this.hbox2.Name = "hbox2"; this.hbox2.Spacing = 6; // Container child hbox2.Gtk.Box+BoxChild this.checkboxLed1 = new Gtk.CheckButton(); this.checkboxLed1.CanFocus = true; this.checkboxLed1.Name = "checkboxLed1"; this.checkboxLed1.Label = Mono.Unix.Catalog.GetString("Led1"); this.checkboxLed1.DrawIndicator = true; this.checkboxLed1.UseUnderline = true; this.hbox2.Add(this.checkboxLed1); Gtk.Box.BoxChild w22 = ((Gtk.Box.BoxChild)(this.hbox2[this.checkboxLed1])); w22.Position = 0; w22.Expand = false; // Container child hbox2.Gtk.Box+BoxChild this.checkboxLed2 = new Gtk.CheckButton(); this.checkboxLed2.CanFocus = true; this.checkboxLed2.Name = "checkboxLed2"; this.checkboxLed2.Label = Mono.Unix.Catalog.GetString("Led 2"); this.checkboxLed2.DrawIndicator = true; this.checkboxLed2.UseUnderline = true; this.hbox2.Add(this.checkboxLed2); Gtk.Box.BoxChild w23 = ((Gtk.Box.BoxChild)(this.hbox2[this.checkboxLed2])); w23.Position = 1; w23.Expand = false; // Container child hbox2.Gtk.Box+BoxChild this.checkboxLed3 = new Gtk.CheckButton(); this.checkboxLed3.CanFocus = true; this.checkboxLed3.Name = "checkboxLed3"; this.checkboxLed3.Label = Mono.Unix.Catalog.GetString("Led 3"); this.checkboxLed3.DrawIndicator = true; this.checkboxLed3.UseUnderline = true; this.hbox2.Add(this.checkboxLed3); Gtk.Box.BoxChild w24 = ((Gtk.Box.BoxChild)(this.hbox2[this.checkboxLed3])); w24.Position = 2; w24.Expand = false; // Container child hbox2.Gtk.Box+BoxChild this.checkboxLed4 = new Gtk.CheckButton(); this.checkboxLed4.CanFocus = true; this.checkboxLed4.Name = "checkboxLed4"; this.checkboxLed4.Label = Mono.Unix.Catalog.GetString("Led 4"); this.checkboxLed4.DrawIndicator = true; this.checkboxLed4.UseUnderline = true; this.hbox2.Add(this.checkboxLed4); Gtk.Box.BoxChild w25 = ((Gtk.Box.BoxChild)(this.hbox2[this.checkboxLed4])); w25.Position = 3; // Container child hbox2.Gtk.Box+BoxChild this.checkboxRumble = new Gtk.CheckButton(); this.checkboxRumble.CanFocus = true; this.checkboxRumble.Name = "checkboxRumble"; this.checkboxRumble.Label = Mono.Unix.Catalog.GetString("Rumble"); this.checkboxRumble.DrawIndicator = true; this.checkboxRumble.UseUnderline = true; this.hbox2.Add(this.checkboxRumble); Gtk.Box.BoxChild w26 = ((Gtk.Box.BoxChild)(this.hbox2[this.checkboxRumble])); w26.Position = 4; w26.Expand = false; this.vbox1.Add(this.hbox2); Gtk.Box.BoxChild w27 = ((Gtk.Box.BoxChild)(this.vbox1[this.hbox2])); w27.Position = 6; w27.Expand = false; w27.Fill = false; // Container child vbox1.Gtk.Box+BoxChild this.hbox3 = new Gtk.HBox(); this.hbox3.Name = "hbox3"; this.hbox3.Spacing = 6; // Container child hbox3.Gtk.Box+BoxChild this.btnUpdateBattery = new Gtk.Button(); this.btnUpdateBattery.CanFocus = true; this.btnUpdateBattery.Name = "btnUpdateBattery"; this.btnUpdateBattery.UseUnderline = true; this.btnUpdateBattery.Label = Mono.Unix.Catalog.GetString("Update Battery"); this.hbox3.Add(this.btnUpdateBattery); Gtk.Box.BoxChild w28 = ((Gtk.Box.BoxChild)(this.hbox3[this.btnUpdateBattery])); w28.Position = 0; w28.Expand = false; w28.Fill = false; // Container child hbox3.Gtk.Box+BoxChild this.progressbarBattery = new Gtk.ProgressBar(); this.progressbarBattery.Name = "progressbarBattery"; this.hbox3.Add(this.progressbarBattery); Gtk.Box.BoxChild w29 = ((Gtk.Box.BoxChild)(this.hbox3[this.progressbarBattery])); w29.Position = 1; this.vbox1.Add(this.hbox3); Gtk.Box.BoxChild w30 = ((Gtk.Box.BoxChild)(this.vbox1[this.hbox3])); w30.Position = 7; w30.Expand = false; w30.Fill = false; this.Add(this.vbox1); if ((this.Child != null)) { this.Child.ShowAll(); } w1.SetUiManager(w2); this.Show(); this.DisconnectAction.Activated += new System.EventHandler(this.OnDisconnectActionActivated); this.PlaySoundAction.Activated += new System.EventHandler(this.OnPlaySoundActionActivated); this.DumpMemoryAction.Activated += new System.EventHandler(this.OnDumpMemoryActionActivated); this.DisconnectAction1.Activated += new System.EventHandler(this.OnDisconnectActionActivated); this.CalibrateAction.Activated += new System.EventHandler(this.OnCalibrateActionActivated); this.comboboxReportingMode.Changed += new System.EventHandler(this.OnComboboxReportingModeChanged); this.drawingareaIR.ExposeEvent += new Gtk.ExposeEventHandler(this.OnDrawingareaIRExposeEvent); this.checkboxLed1.Pressed += new System.EventHandler(this.OnCheckboxLed1Pressed); this.checkboxLed2.Pressed += new System.EventHandler(this.OnCheckboxLed2Pressed); this.checkboxLed3.Pressed += new System.EventHandler(this.OnCheckboxLed3Pressed); this.checkboxLed4.Pressed += new System.EventHandler(this.OnCheckboxLed4Pressed); this.checkboxRumble.Pressed += new System.EventHandler(this.OnCheckboxRumblePressed); this.btnUpdateBattery.Pressed += new System.EventHandler(this.OnBtnUpdateBatteryPressed); }
protected virtual void Build() { Stetic.Gui.Initialize(); // Widget tryServer.MainWindow this.WidthRequest = 380; this.HeightRequest = 330; this.CanFocus = true; this.Events = ((Gdk.EventMask)(256)); this.Name = "tryServer.MainWindow"; this.Title = Mono.Unix.Catalog.GetString("Main"); this.WindowPosition = ((Gtk.WindowPosition)(1)); this.Resizable = false; this.AllowGrow = false; this.DestroyWithParent = true; // Container child tryServer.MainWindow.Gtk.Container+ContainerChild this.notebook3 = new Gtk.Notebook(); this.notebook3.WidthRequest = 300; this.notebook3.CanFocus = true; this.notebook3.Name = "notebook3"; // Container child notebook3.Gtk.Notebook+NotebookChild this.fixed3 = new Gtk.Fixed(); this.fixed3.Name = "fixed3"; this.fixed3.HasWindow = false; // Container child fixed3.Gtk.Fixed+FixedChild this.label8 = new Gtk.Label(); this.label8.Name = "label8"; this.label8.LabelProp = Mono.Unix.Catalog.GetString("Stop server"); this.fixed3.Add(this.label8); Gtk.Fixed.FixedChild w1 = ((Gtk.Fixed.FixedChild)(this.fixed3[this.label8])); w1.X = 104; w1.Y = 172; // Container child fixed3.Gtk.Fixed+FixedChild this.label9 = new Gtk.Label(); this.label9.Name = "label9"; this.label9.LabelProp = Mono.Unix.Catalog.GetString("Connections Settings"); this.fixed3.Add(this.label9); Gtk.Fixed.FixedChild w2 = ((Gtk.Fixed.FixedChild)(this.fixed3[this.label9])); w2.X = 104; w2.Y = 230; // Container child fixed3.Gtk.Fixed+FixedChild this.btnStart = new Gtk.Button(); this.btnStart.WidthRequest = 80; this.btnStart.HeightRequest = 55; this.btnStart.CanFocus = true; this.btnStart.Name = "btnStart"; this.btnStart.UseUnderline = true; // Container child btnStart.Gtk.Container+ContainerChild Gtk.Alignment w3 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); w3.Name = "GtkAlignment"; // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w4 = new Gtk.HBox(); w4.Name = "GtkHBox"; w4.Spacing = 2; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w5 = new Gtk.Image(); w5.Name = "image14"; w5.Pixbuf = Gdk.Pixbuf.LoadFromResource("play.png"); w4.Add(w5); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w7 = new Gtk.Label(); w7.Name = "GtkLabel"; w7.LabelProp = ""; w4.Add(w7); w3.Add(w4); this.btnStart.Add(w3); this.fixed3.Add(this.btnStart); Gtk.Fixed.FixedChild w11 = ((Gtk.Fixed.FixedChild)(this.fixed3[this.btnStart])); w11.X = 14; w11.Y = 99; // Container child fixed3.Gtk.Fixed+FixedChild this.btnStop = new Gtk.Button(); this.btnStop.WidthRequest = 80; this.btnStop.HeightRequest = 55; this.btnStop.CanFocus = true; this.btnStop.Name = "btnStop"; this.btnStop.UseUnderline = true; // Container child btnStop.Gtk.Container+ContainerChild Gtk.Alignment w12 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); w12.Name = "GtkAlignment1"; // Container child GtkAlignment1.Gtk.Container+ContainerChild Gtk.HBox w13 = new Gtk.HBox(); w13.Name = "GtkHBox1"; w13.Spacing = 2; // Container child GtkHBox1.Gtk.Container+ContainerChild Gtk.Image w14 = new Gtk.Image(); w14.Name = "image15"; w14.Pixbuf = Gdk.Pixbuf.LoadFromResource("process-stop.png"); w13.Add(w14); // Container child GtkHBox1.Gtk.Container+ContainerChild Gtk.Label w16 = new Gtk.Label(); w16.Name = "GtkLabel1"; w16.LabelProp = ""; w13.Add(w16); w12.Add(w13); this.btnStop.Add(w12); this.fixed3.Add(this.btnStop); Gtk.Fixed.FixedChild w20 = ((Gtk.Fixed.FixedChild)(this.fixed3[this.btnStop])); w20.X = 14; w20.Y = 157; // Container child fixed3.Gtk.Fixed+FixedChild this.btnSettings = new Gtk.Button(); this.btnSettings.WidthRequest = 80; this.btnSettings.HeightRequest = 55; this.btnSettings.CanFocus = true; this.btnSettings.Name = "btnSettings"; this.btnSettings.UseUnderline = true; // Container child btnSettings.Gtk.Container+ContainerChild Gtk.Alignment w21 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); w21.Name = "GtkAlignment2"; // Container child GtkAlignment2.Gtk.Container+ContainerChild Gtk.HBox w22 = new Gtk.HBox(); w22.Name = "GtkHBox2"; w22.Spacing = 2; // Container child GtkHBox2.Gtk.Container+ContainerChild Gtk.Image w23 = new Gtk.Image(); w23.Name = "image16"; w23.Pixbuf = Gdk.Pixbuf.LoadFromResource("db_sql_.png"); w22.Add(w23); // Container child GtkHBox2.Gtk.Container+ContainerChild Gtk.Label w25 = new Gtk.Label(); w25.Name = "GtkLabel2"; w25.LabelProp = ""; w22.Add(w25); w21.Add(w22); this.btnSettings.Add(w21); this.fixed3.Add(this.btnSettings); Gtk.Fixed.FixedChild w29 = ((Gtk.Fixed.FixedChild)(this.fixed3[this.btnSettings])); w29.X = 14; w29.Y = 215; // Container child fixed3.Gtk.Fixed+FixedChild this.label7 = new Gtk.Label(); this.label7.Name = "label7"; this.label7.LabelProp = Mono.Unix.Catalog.GetString("Start server"); this.fixed3.Add(this.label7); Gtk.Fixed.FixedChild w30 = ((Gtk.Fixed.FixedChild)(this.fixed3[this.label7])); w30.X = 104; w30.Y = 116; // Container child fixed3.Gtk.Fixed+FixedChild this.imgOffline = new Gtk.Image(); this.imgOffline.Name = "imgOffline"; this.imgOffline.Pixbuf = Gdk.Pixbuf.LoadFromResource("Internet - Offline.png"); this.fixed3.Add(this.imgOffline); Gtk.Fixed.FixedChild w31 = ((Gtk.Fixed.FixedChild)(this.fixed3[this.imgOffline])); w31.X = 211; w31.Y = 93; // Container child fixed3.Gtk.Fixed+FixedChild this.imgOnline = new Gtk.Image(); this.imgOnline.Name = "imgOnline"; this.imgOnline.Pixbuf = Gdk.Pixbuf.LoadFromResource("Network Configuration.png"); this.fixed3.Add(this.imgOnline); Gtk.Fixed.FixedChild w32 = ((Gtk.Fixed.FixedChild)(this.fixed3[this.imgOnline])); w32.X = 211; w32.Y = 93; // Container child fixed3.Gtk.Fixed+FixedChild this.label6 = new Gtk.Label(); this.label6.Name = "label6"; this.label6.LabelProp = Mono.Unix.Catalog.GetString("Instance"); this.fixed3.Add(this.label6); Gtk.Fixed.FixedChild w33 = ((Gtk.Fixed.FixedChild)(this.fixed3[this.label6])); w33.X = 16; w33.Y = 39; // Container child fixed3.Gtk.Fixed+FixedChild this.cmbInstance = Gtk.ComboBox.NewText(); this.cmbInstance.WidthRequest = 250; this.cmbInstance.Name = "cmbInstance"; this.fixed3.Add(this.cmbInstance); Gtk.Fixed.FixedChild w34 = ((Gtk.Fixed.FixedChild)(this.fixed3[this.cmbInstance])); w34.X = 93; w34.Y = 31; this.notebook3.Add(this.fixed3); // Notebook tab this.label4 = new Gtk.Label(); this.label4.Name = "label4"; this.label4.LabelProp = Mono.Unix.Catalog.GetString("Settings"); this.notebook3.SetTabLabel(this.fixed3, this.label4); // Container child notebook3.Gtk.Notebook+NotebookChild this.fixed4 = new Gtk.Fixed(); this.fixed4.Name = "fixed4"; this.fixed4.HasWindow = false; // Container child fixed4.Gtk.Fixed+FixedChild this.label10 = new Gtk.Label(); this.label10.Name = "label10"; this.label10.LabelProp = Mono.Unix.Catalog.GetString("Server"); this.fixed4.Add(this.label10); Gtk.Fixed.FixedChild w36 = ((Gtk.Fixed.FixedChild)(this.fixed4[this.label10])); w36.X = 175; w36.Y = 30; // Container child fixed4.Gtk.Fixed+FixedChild this.label11 = new Gtk.Label(); this.label11.Name = "label11"; this.label11.LabelProp = Mono.Unix.Catalog.GetString("Port"); this.fixed4.Add(this.label11); Gtk.Fixed.FixedChild w37 = ((Gtk.Fixed.FixedChild)(this.fixed4[this.label11])); w37.X = 175; w37.Y = 65; // Container child fixed4.Gtk.Fixed+FixedChild this.label12 = new Gtk.Label(); this.label12.Name = "label12"; this.label12.LabelProp = Mono.Unix.Catalog.GetString("File"); this.fixed4.Add(this.label12); Gtk.Fixed.FixedChild w38 = ((Gtk.Fixed.FixedChild)(this.fixed4[this.label12])); w38.X = 175; w38.Y = 100; // Container child fixed4.Gtk.Fixed+FixedChild this.label13 = new Gtk.Label(); this.label13.Name = "label13"; this.label13.LabelProp = Mono.Unix.Catalog.GetString("User"); this.fixed4.Add(this.label13); Gtk.Fixed.FixedChild w39 = ((Gtk.Fixed.FixedChild)(this.fixed4[this.label13])); w39.X = 175; w39.Y = 145; // Container child fixed4.Gtk.Fixed+FixedChild this.label14 = new Gtk.Label(); this.label14.Name = "label14"; this.label14.LabelProp = Mono.Unix.Catalog.GetString("Password"); this.fixed4.Add(this.label14); Gtk.Fixed.FixedChild w40 = ((Gtk.Fixed.FixedChild)(this.fixed4[this.label14])); w40.X = 175; w40.Y = 180; // Container child fixed4.Gtk.Fixed+FixedChild this.chkStart = new Gtk.CheckButton(); this.chkStart.CanFocus = true; this.chkStart.Name = "chkStart"; this.chkStart.Label = Mono.Unix.Catalog.GetString("Start automatically"); this.chkStart.DrawIndicator = true; this.chkStart.UseUnderline = true; this.fixed4.Add(this.chkStart); Gtk.Fixed.FixedChild w41 = ((Gtk.Fixed.FixedChild)(this.fixed4[this.chkStart])); w41.X = 191; w41.Y = 216; // Container child fixed4.Gtk.Fixed+FixedChild this.button4 = new Gtk.Button(); this.button4.WidthRequest = 80; this.button4.CanFocus = true; this.button4.Name = "button4"; this.button4.UseUnderline = true; this.button4.Label = Mono.Unix.Catalog.GetString("Ok"); this.fixed4.Add(this.button4); Gtk.Fixed.FixedChild w42 = ((Gtk.Fixed.FixedChild)(this.fixed4[this.button4])); w42.X = 204; w42.Y = 253; // Container child fixed4.Gtk.Fixed+FixedChild this.button5 = new Gtk.Button(); this.button5.WidthRequest = 80; this.button5.CanFocus = true; this.button5.Name = "button5"; this.button5.UseUnderline = true; this.button5.Label = Mono.Unix.Catalog.GetString("Cancel"); this.fixed4.Add(this.button5); Gtk.Fixed.FixedChild w43 = ((Gtk.Fixed.FixedChild)(this.fixed4[this.button5])); w43.X = 288; w43.Y = 253; // Container child fixed4.Gtk.Fixed+FixedChild this.entry1 = new Gtk.Entry(); this.entry1.WidthRequest = 120; this.entry1.CanFocus = true; this.entry1.Name = "entry1"; this.entry1.IsEditable = true; this.entry1.InvisibleChar = '●'; this.fixed4.Add(this.entry1); Gtk.Fixed.FixedChild w44 = ((Gtk.Fixed.FixedChild)(this.fixed4[this.entry1])); w44.X = 250; w44.Y = 25; // Container child fixed4.Gtk.Fixed+FixedChild this.entry2 = new Gtk.Entry(); this.entry2.WidthRequest = 120; this.entry2.CanFocus = true; this.entry2.Name = "entry2"; this.entry2.IsEditable = true; this.entry2.InvisibleChar = '●'; this.fixed4.Add(this.entry2); Gtk.Fixed.FixedChild w45 = ((Gtk.Fixed.FixedChild)(this.fixed4[this.entry2])); w45.X = 250; w45.Y = 60; // Container child fixed4.Gtk.Fixed+FixedChild this.entry4 = new Gtk.Entry(); this.entry4.WidthRequest = 120; this.entry4.CanFocus = true; this.entry4.Name = "entry4"; this.entry4.IsEditable = true; this.entry4.InvisibleChar = '●'; this.fixed4.Add(this.entry4); Gtk.Fixed.FixedChild w46 = ((Gtk.Fixed.FixedChild)(this.fixed4[this.entry4])); w46.X = 250; w46.Y = 95; // Container child fixed4.Gtk.Fixed+FixedChild this.hseparator1 = new Gtk.HSeparator(); this.hseparator1.WidthRequest = 200; this.hseparator1.Name = "hseparator1"; this.fixed4.Add(this.hseparator1); Gtk.Fixed.FixedChild w47 = ((Gtk.Fixed.FixedChild)(this.fixed4[this.hseparator1])); w47.X = 169; w47.Y = 129; // Container child fixed4.Gtk.Fixed+FixedChild this.entry5 = new Gtk.Entry(); this.entry5.WidthRequest = 120; this.entry5.CanFocus = true; this.entry5.Name = "entry5"; this.entry5.IsEditable = true; this.entry5.Visibility = false; this.entry5.InvisibleChar = '●'; this.fixed4.Add(this.entry5); Gtk.Fixed.FixedChild w48 = ((Gtk.Fixed.FixedChild)(this.fixed4[this.entry5])); w48.X = 250; w48.Y = 175; // Container child fixed4.Gtk.Fixed+FixedChild this.entry6 = new Gtk.Entry(); this.entry6.WidthRequest = 120; this.entry6.CanFocus = true; this.entry6.Name = "entry6"; this.entry6.IsEditable = true; this.entry6.InvisibleChar = '●'; this.fixed4.Add(this.entry6); Gtk.Fixed.FixedChild w49 = ((Gtk.Fixed.FixedChild)(this.fixed4[this.entry6])); w49.X = 248; w49.Y = 140; // Container child fixed4.Gtk.Fixed+FixedChild this.hseparator4 = new Gtk.HSeparator(); this.hseparator4.WidthRequest = 150; this.hseparator4.Name = "hseparator4"; this.fixed4.Add(this.hseparator4); Gtk.Fixed.FixedChild w50 = ((Gtk.Fixed.FixedChild)(this.fixed4[this.hseparator4])); w50.X = 11; w50.Y = 10; // Container child fixed4.Gtk.Fixed+FixedChild this.hseparator5 = new Gtk.HSeparator(); this.hseparator5.WidthRequest = 150; this.hseparator5.Name = "hseparator5"; this.fixed4.Add(this.hseparator5); Gtk.Fixed.FixedChild w51 = ((Gtk.Fixed.FixedChild)(this.fixed4[this.hseparator5])); w51.X = 9; w51.Y = 282; // Container child fixed4.Gtk.Fixed+FixedChild this.treeview1 = new Gtk.TreeView(); this.treeview1.WidthRequest = 150; this.treeview1.HeightRequest = 270; this.treeview1.CanFocus = true; this.treeview1.Name = "treeview1"; this.treeview1.FixedHeightMode = true; this.treeview1.HeadersVisible = false; this.fixed4.Add(this.treeview1); Gtk.Fixed.FixedChild w52 = ((Gtk.Fixed.FixedChild)(this.fixed4[this.treeview1])); w52.X = 11; w52.Y = 11; this.notebook3.Add(this.fixed4); Gtk.Notebook.NotebookChild w53 = ((Gtk.Notebook.NotebookChild)(this.notebook3[this.fixed4])); w53.Position = 1; // Notebook tab this.label5 = new Gtk.Label(); this.label5.Name = "label5"; this.label5.LabelProp = Mono.Unix.Catalog.GetString("Registered items"); this.notebook3.SetTabLabel(this.fixed4, this.label5); this.Add(this.notebook3); if ((this.Child != null)) { this.Child.ShowAll(); } this.DefaultWidth = 419; this.DefaultHeight = 379; this.Show(); this.DeleteEvent += new Gtk.DeleteEventHandler(this.OnDeleteEvent); this.btnStart.Clicked += new System.EventHandler(this.OnBtnStartClicked); this.btnStop.Clicked += new System.EventHandler(this.OnBtnStopClicked); this.btnSettings.Clicked += new System.EventHandler(this.OnBtnSettingsClicked); }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget MonoDevelop.Database.Designer.CreateDatabaseDialog this.Name = "MonoDevelop.Database.Designer.CreateDatabaseDialog"; this.Title = Mono.Unix.Catalog.GetString("Create Database"); this.TypeHint = ((Gdk.WindowTypeHint)(1)); this.WindowPosition = ((Gtk.WindowPosition)(1)); this.SkipTaskbarHint = true; this.HasSeparator = false; // Internal child MonoDevelop.Database.Designer.CreateDatabaseDialog.VBox Gtk.VBox w1 = this.VBox; w1.Name = "dialog1_VBox"; w1.BorderWidth = ((uint)(2)); // Container child dialog1_VBox.Gtk.Box+BoxChild this.table = new Gtk.Table(((uint)(3)), ((uint)(3)), false); this.table.Name = "table"; this.table.RowSpacing = ((uint)(6)); this.table.ColumnSpacing = ((uint)(6)); this.table.BorderWidth = ((uint)(6)); // Container child table.Gtk.Table+TableChild this.buttonNew = new Gtk.Button(); this.buttonNew.CanFocus = true; this.buttonNew.Name = "buttonNew"; this.buttonNew.UseStock = true; this.buttonNew.UseUnderline = true; this.buttonNew.Label = "gtk-new"; this.table.Add(this.buttonNew); Gtk.Table.TableChild w2 = ((Gtk.Table.TableChild)(this.table[this.buttonNew])); w2.LeftAttach = ((uint)(2)); w2.RightAttach = ((uint)(3)); w2.XOptions = ((Gtk.AttachOptions)(4)); w2.YOptions = ((Gtk.AttachOptions)(4)); // Container child table.Gtk.Table+TableChild this.buttonSelect = new Gtk.Button(); this.buttonSelect.Sensitive = false; this.buttonSelect.CanFocus = true; this.buttonSelect.Name = "buttonSelect"; this.buttonSelect.UseStock = true; this.buttonSelect.UseUnderline = true; this.buttonSelect.Label = "gtk-save-as"; this.table.Add(this.buttonSelect); Gtk.Table.TableChild w3 = ((Gtk.Table.TableChild)(this.table[this.buttonSelect])); w3.TopAttach = ((uint)(2)); w3.BottomAttach = ((uint)(3)); w3.LeftAttach = ((uint)(2)); w3.RightAttach = ((uint)(3)); w3.XOptions = ((Gtk.AttachOptions)(4)); w3.YOptions = ((Gtk.AttachOptions)(4)); // Container child table.Gtk.Table+TableChild this.comboConnections = new MonoDevelop.Database.Components.DatabaseConnectionContextComboBox(); this.comboConnections.Name = "comboConnections"; this.table.Add(this.comboConnections); Gtk.Table.TableChild w4 = ((Gtk.Table.TableChild)(this.table[this.comboConnections])); w4.LeftAttach = ((uint)(1)); w4.RightAttach = ((uint)(2)); w4.YOptions = ((Gtk.AttachOptions)(4)); // Container child table.Gtk.Table+TableChild this.entryDatabase = new Gtk.Entry(); this.entryDatabase.CanFocus = true; this.entryDatabase.Name = "entryDatabase"; this.entryDatabase.IsEditable = true; this.entryDatabase.InvisibleChar = '●'; this.table.Add(this.entryDatabase); Gtk.Table.TableChild w5 = ((Gtk.Table.TableChild)(this.table[this.entryDatabase])); w5.TopAttach = ((uint)(2)); w5.BottomAttach = ((uint)(3)); w5.LeftAttach = ((uint)(1)); w5.RightAttach = ((uint)(2)); w5.YOptions = ((Gtk.AttachOptions)(4)); // Container child table.Gtk.Table+TableChild this.entryName = new Gtk.Entry(); this.entryName.CanFocus = true; this.entryName.Name = "entryName"; this.entryName.IsEditable = true; this.entryName.InvisibleChar = '●'; this.table.Add(this.entryName); Gtk.Table.TableChild w6 = ((Gtk.Table.TableChild)(this.table[this.entryName])); w6.TopAttach = ((uint)(1)); w6.BottomAttach = ((uint)(2)); w6.LeftAttach = ((uint)(1)); w6.RightAttach = ((uint)(3)); w6.XOptions = ((Gtk.AttachOptions)(4)); w6.YOptions = ((Gtk.AttachOptions)(4)); // Container child table.Gtk.Table+TableChild this.label1 = new Gtk.Label(); this.label1.Name = "label1"; this.label1.Xalign = 0F; this.label1.LabelProp = Mono.Unix.Catalog.GetString("Name"); this.table.Add(this.label1); Gtk.Table.TableChild w7 = ((Gtk.Table.TableChild)(this.table[this.label1])); w7.TopAttach = ((uint)(1)); w7.BottomAttach = ((uint)(2)); w7.XOptions = ((Gtk.AttachOptions)(4)); w7.YOptions = ((Gtk.AttachOptions)(4)); // Container child table.Gtk.Table+TableChild this.label2 = new Gtk.Label(); this.label2.Name = "label2"; this.label2.Xalign = 0F; this.label2.LabelProp = Mono.Unix.Catalog.GetString("Database"); this.table.Add(this.label2); Gtk.Table.TableChild w8 = ((Gtk.Table.TableChild)(this.table[this.label2])); w8.TopAttach = ((uint)(2)); w8.BottomAttach = ((uint)(3)); w8.XOptions = ((Gtk.AttachOptions)(4)); w8.YOptions = ((Gtk.AttachOptions)(4)); // Container child table.Gtk.Table+TableChild this.label3 = new Gtk.Label(); this.label3.Name = "label3"; this.label3.Xalign = 0F; this.label3.LabelProp = Mono.Unix.Catalog.GetString("Base Settings"); this.table.Add(this.label3); Gtk.Table.TableChild w9 = ((Gtk.Table.TableChild)(this.table[this.label3])); w9.XOptions = ((Gtk.AttachOptions)(4)); w9.YOptions = ((Gtk.AttachOptions)(4)); w1.Add(this.table); Gtk.Box.BoxChild w10 = ((Gtk.Box.BoxChild)(w1[this.table])); w10.Position = 0; w10.Expand = false; w10.Fill = false; // Internal child MonoDevelop.Database.Designer.CreateDatabaseDialog.ActionArea Gtk.HButtonBox w11 = this.ActionArea; w11.Name = "dialog1_ActionArea"; w11.Spacing = 6; w11.BorderWidth = ((uint)(5)); w11.LayoutStyle = ((Gtk.ButtonBoxStyle)(4)); // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild this.buttonCancel = new Gtk.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(this.buttonCancel, -6); Gtk.ButtonBox.ButtonBoxChild w12 = ((Gtk.ButtonBox.ButtonBoxChild)(w11[this.buttonCancel])); w12.Expand = false; w12.Fill = false; // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild this.buttonOk = new Gtk.Button(); this.buttonOk.Sensitive = false; 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(this.buttonOk, -5); Gtk.ButtonBox.ButtonBoxChild w13 = ((Gtk.ButtonBox.ButtonBoxChild)(w11[this.buttonOk])); w13.Position = 1; w13.Expand = false; w13.Fill = false; if ((this.Child != null)) { this.Child.ShowAll(); } this.DefaultWidth = 420; this.DefaultHeight = 191; this.Show(); this.entryName.Changed += new System.EventHandler(this.NameChanged); this.entryDatabase.Changed += new System.EventHandler(this.DatabaseNameChanged); this.comboConnections.Changed += new System.EventHandler(this.ConnectionChanged); this.buttonSelect.Clicked += new System.EventHandler(this.SaveAsClicked); this.buttonNew.Clicked += new System.EventHandler(this.NewClicked); this.buttonCancel.Clicked += new System.EventHandler(this.CancelClicked); this.buttonOk.Clicked += new System.EventHandler(this.OkClicked); }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget MonoDevelop.Database.Designer.TableEditorDialog this.Name = "MonoDevelop.Database.Designer.TableEditorDialog"; this.Title = Mono.Unix.Catalog.GetString("Edit Table"); this.TypeHint = ((Gdk.WindowTypeHint)(1)); this.WindowPosition = ((Gtk.WindowPosition)(1)); this.SkipTaskbarHint = true; this.HasSeparator = false; // Internal child MonoDevelop.Database.Designer.TableEditorDialog.VBox Gtk.VBox w1 = this.VBox; w1.Name = "dialog1_VBox"; w1.BorderWidth = ((uint)(2)); // Container child dialog1_VBox.Gtk.Box+BoxChild this.vboxContent = new Gtk.VBox(); this.vboxContent.Name = "vboxContent"; this.vboxContent.Spacing = 6; this.vboxContent.BorderWidth = ((uint)(6)); // Container child vboxContent.Gtk.Box+BoxChild this.hboxName = new Gtk.HBox(); this.hboxName.Name = "hboxName"; this.hboxName.Spacing = 6; // Container child hboxName.Gtk.Box+BoxChild this.label7 = new Gtk.Label(); this.label7.Name = "label7"; this.label7.Xalign = 0F; this.label7.LabelProp = Mono.Unix.Catalog.GetString("Name"); this.hboxName.Add(this.label7); Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.hboxName[this.label7])); w2.Position = 0; w2.Expand = false; w2.Fill = false; // Container child hboxName.Gtk.Box+BoxChild this.entryName = new Gtk.Entry(); this.entryName.CanFocus = true; this.entryName.Name = "entryName"; this.entryName.IsEditable = true; this.entryName.InvisibleChar = '●'; this.hboxName.Add(this.entryName); Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.hboxName[this.entryName])); w3.Position = 1; this.vboxContent.Add(this.hboxName); Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.vboxContent[this.hboxName])); w4.Position = 0; w4.Expand = false; w4.Fill = false; // Container child vboxContent.Gtk.Box+BoxChild this.hboxWarning = new Gtk.HBox(); this.hboxWarning.Name = "hboxWarning"; this.hboxWarning.Spacing = 6; // Container child hboxWarning.Gtk.Box+BoxChild this.imageWarning = new Gtk.Image(); this.imageWarning.Name = "imageWarning"; this.imageWarning.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-dialog-warning", Gtk.IconSize.Menu, 16); this.hboxWarning.Add(this.imageWarning); Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.hboxWarning[this.imageWarning])); w5.Position = 0; w5.Expand = false; w5.Fill = false; // Container child hboxWarning.Gtk.Box+BoxChild this.labelWarning = new Gtk.Label(); this.labelWarning.Name = "labelWarning"; this.labelWarning.Xalign = 0F; this.labelWarning.LabelProp = ""; this.hboxWarning.Add(this.labelWarning); Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(this.hboxWarning[this.labelWarning])); w6.Position = 1; this.vboxContent.Add(this.hboxWarning); Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(this.vboxContent[this.hboxWarning])); w7.PackType = ((Gtk.PackType)(1)); w7.Position = 2; w7.Expand = false; w7.Fill = false; // Container child vboxContent.Gtk.Box+BoxChild this.checkPreview = new Gtk.CheckButton(); this.checkPreview.CanFocus = true; this.checkPreview.Name = "checkPreview"; this.checkPreview.Label = Mono.Unix.Catalog.GetString("Preview SQL"); this.checkPreview.Active = true; this.checkPreview.DrawIndicator = true; this.checkPreview.UseUnderline = true; this.vboxContent.Add(this.checkPreview); Gtk.Box.BoxChild w8 = ((Gtk.Box.BoxChild)(this.vboxContent[this.checkPreview])); w8.PackType = ((Gtk.PackType)(1)); w8.Position = 3; w8.Expand = false; w8.Fill = false; w1.Add(this.vboxContent); Gtk.Box.BoxChild w9 = ((Gtk.Box.BoxChild)(w1[this.vboxContent])); w9.Position = 0; // Internal child MonoDevelop.Database.Designer.TableEditorDialog.ActionArea Gtk.HButtonBox w10 = this.ActionArea; w10.Name = "dialog1_ActionArea"; w10.Spacing = 6; w10.BorderWidth = ((uint)(5)); w10.LayoutStyle = ((Gtk.ButtonBoxStyle)(4)); // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild this.buttonCancel = new Gtk.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(this.buttonCancel, -6); Gtk.ButtonBox.ButtonBoxChild w11 = ((Gtk.ButtonBox.ButtonBoxChild)(w10[this.buttonCancel])); w11.Expand = false; w11.Fill = false; // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild this.buttonOk = new Gtk.Button(); this.buttonOk.Sensitive = false; 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(this.buttonOk, -5); Gtk.ButtonBox.ButtonBoxChild w12 = ((Gtk.ButtonBox.ButtonBoxChild)(w10[this.buttonOk])); w12.Position = 1; w12.Expand = false; w12.Fill = false; if ((this.Child != null)) { this.Child.ShowAll(); } this.DefaultWidth = 640; this.DefaultHeight = 480; this.Show(); this.entryName.Changed += new System.EventHandler(this.NameChanged); this.buttonCancel.Clicked += new System.EventHandler(this.CancelClicked); this.buttonOk.Clicked += new System.EventHandler(this.OkClicked); }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget ocmgtk.MagellanExploristWidget Stetic.BinContainer.Attach(this); this.Name = "ocmgtk.MagellanExploristWidget"; // Container child ocmgtk.MagellanExploristWidget.Gtk.Container+ContainerChild this.vbox3 = new Gtk.VBox(); this.vbox3.Name = "vbox3"; this.vbox3.Spacing = 6; this.vbox3.BorderWidth = ((uint)(6)); // Container child vbox3.Gtk.Box+BoxChild this.hbox3 = new Gtk.HBox(); this.hbox3.Name = "hbox3"; this.hbox3.Spacing = 6; // Container child hbox3.Gtk.Box+BoxChild this.limitCheck = new Gtk.CheckButton(); this.limitCheck.CanFocus = true; this.limitCheck.Name = "limitCheck"; this.limitCheck.Label = Mono.Unix.Catalog.GetString("Limit Number of Caches"); this.limitCheck.DrawIndicator = true; this.limitCheck.UseUnderline = true; this.hbox3.Add(this.limitCheck); Gtk.Box.BoxChild w1 = ((Gtk.Box.BoxChild)(this.hbox3[this.limitCheck])); w1.Position = 0; w1.Expand = false; // Container child hbox3.Gtk.Box+BoxChild this.limitEntry = new Gtk.Entry(); this.limitEntry.Sensitive = false; this.limitEntry.CanFocus = true; this.limitEntry.Name = "limitEntry"; this.limitEntry.Text = "1000"; this.limitEntry.IsEditable = true; this.limitEntry.InvisibleChar = '•'; this.hbox3.Add(this.limitEntry); Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.hbox3[this.limitEntry])); w2.Position = 1; this.vbox3.Add(this.hbox3); Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox3[this.hbox3])); w3.Position = 0; w3.Expand = false; w3.Fill = false; // Container child vbox3.Gtk.Box+BoxChild this.hbox4 = new Gtk.HBox(); this.hbox4.Name = "hbox4"; this.hbox4.Spacing = 6; // Container child hbox4.Gtk.Box+BoxChild this.label3 = new Gtk.Label(); this.label3.Name = "label3"; this.label3.LabelProp = Mono.Unix.Catalog.GetString("Serial Port or File:"); this.hbox4.Add(this.label3); Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.hbox4[this.label3])); w4.Position = 0; w4.Expand = false; w4.Fill = false; // Container child hbox4.Gtk.Box+BoxChild this.fileEntry = new Gtk.Entry(); this.fileEntry.CanFocus = true; this.fileEntry.Name = "fileEntry"; this.fileEntry.Text = "/dev/ttyS0"; this.fileEntry.IsEditable = true; this.fileEntry.InvisibleChar = '•'; this.hbox4.Add(this.fileEntry); Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.hbox4[this.fileEntry])); w5.Position = 1; // Container child hbox4.Gtk.Box+BoxChild this.fileButton = new Gtk.Button(); this.fileButton.CanFocus = true; this.fileButton.Name = "fileButton"; // Container child fileButton.Gtk.Container+ContainerChild this.image3 = new Gtk.Image(); this.image3.Name = "image3"; this.image3.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-open", Gtk.IconSize.Menu, 16); this.fileButton.Add(this.image3); this.fileButton.Label = null; this.hbox4.Add(this.fileButton); Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(this.hbox4[this.fileButton])); w7.Position = 2; w7.Expand = false; w7.Fill = false; this.vbox3.Add(this.hbox4); Gtk.Box.BoxChild w8 = ((Gtk.Box.BoxChild)(this.vbox3[this.hbox4])); w8.Position = 1; w8.Expand = false; w8.Fill = false; this.Add(this.vbox3); if ((this.Child != null)) { this.Child.ShowAll(); } this.Hide(); }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget MonoDevelop.Database.Components.DataGrid Stetic.BinContainer.Attach(this); this.Name = "MonoDevelop.Database.Components.DataGrid"; // Container child MonoDevelop.Database.Components.DataGrid.Gtk.Container+ContainerChild this.vbox = new Gtk.VBox(); this.vbox.Name = "vbox"; this.vbox.Spacing = 5; this.vbox.BorderWidth = ((uint)(5)); // Container child vbox.Gtk.Box+BoxChild this.scrolledwindow = new Gtk.ScrolledWindow(); this.scrolledwindow.CanFocus = true; this.scrolledwindow.Name = "scrolledwindow"; this.scrolledwindow.VscrollbarPolicy = ((Gtk.PolicyType)(1)); this.scrolledwindow.HscrollbarPolicy = ((Gtk.PolicyType)(1)); this.scrolledwindow.ShadowType = ((Gtk.ShadowType)(1)); // Container child scrolledwindow.Gtk.Container+ContainerChild this.grid = new Gtk.TreeView(); this.grid.CanDefault = true; this.grid.CanFocus = true; this.grid.Name = "grid"; this.grid.EnableSearch = false; this.grid.HeadersClickable = true; this.scrolledwindow.Add(this.grid); this.vbox.Add(this.scrolledwindow); Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.vbox[this.scrolledwindow])); w2.Position = 0; // Container child vbox.Gtk.Box+BoxChild this.hbox = new Gtk.HBox(); this.hbox.Name = "hbox"; this.hbox.Spacing = 5; // Container child hbox.Gtk.Box+BoxChild this.buttonFirst = new Gtk.Button(); this.buttonFirst.CanFocus = true; this.buttonFirst.Name = "buttonFirst"; this.buttonFirst.UseStock = true; this.buttonFirst.UseUnderline = true; this.buttonFirst.Label = "gtk-goto-first"; this.hbox.Add(this.buttonFirst); Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.hbox[this.buttonFirst])); w3.Position = 0; w3.Expand = false; w3.Fill = false; // Container child hbox.Gtk.Box+BoxChild this.buttonPrevious = new Gtk.Button(); this.buttonPrevious.CanFocus = true; this.buttonPrevious.Name = "buttonPrevious"; this.buttonPrevious.UseStock = true; this.buttonPrevious.UseUnderline = true; this.buttonPrevious.Label = "gtk-go-back"; this.hbox.Add(this.buttonPrevious); Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.hbox[this.buttonPrevious])); w4.Position = 1; w4.Expand = false; w4.Fill = false; // Container child hbox.Gtk.Box+BoxChild this.entryCurrent = new Gtk.Entry(); this.entryCurrent.CanFocus = true; this.entryCurrent.Name = "entryCurrent"; this.entryCurrent.IsEditable = true; this.entryCurrent.InvisibleChar = '●'; this.entryCurrent.Xalign = 0.5F; this.hbox.Add(this.entryCurrent); Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.hbox[this.entryCurrent])); w5.Position = 2; w5.Expand = false; // Container child hbox.Gtk.Box+BoxChild this.label1 = new Gtk.Label(); this.label1.Name = "label1"; this.label1.LabelProp = Mono.Unix.Catalog.GetString("of"); this.hbox.Add(this.label1); Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(this.hbox[this.label1])); w6.Position = 3; w6.Expand = false; w6.Fill = false; // Container child hbox.Gtk.Box+BoxChild this.entryTotal = new Gtk.Entry(); this.entryTotal.CanFocus = true; this.entryTotal.Name = "entryTotal"; this.entryTotal.IsEditable = false; this.entryTotal.InvisibleChar = '●'; this.entryTotal.Xalign = 0.5F; this.hbox.Add(this.entryTotal); Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(this.hbox[this.entryTotal])); w7.Position = 4; w7.Expand = false; // Container child hbox.Gtk.Box+BoxChild this.buttonNext = new Gtk.Button(); this.buttonNext.CanFocus = true; this.buttonNext.Name = "buttonNext"; this.buttonNext.UseStock = true; this.buttonNext.UseUnderline = true; this.buttonNext.Label = "gtk-go-forward"; this.hbox.Add(this.buttonNext); Gtk.Box.BoxChild w8 = ((Gtk.Box.BoxChild)(this.hbox[this.buttonNext])); w8.Position = 5; w8.Expand = false; w8.Fill = false; // Container child hbox.Gtk.Box+BoxChild this.buttonLast = new Gtk.Button(); this.buttonLast.CanFocus = true; this.buttonLast.Name = "buttonLast"; this.buttonLast.UseStock = true; this.buttonLast.UseUnderline = true; this.buttonLast.Label = "gtk-goto-last"; this.hbox.Add(this.buttonLast); Gtk.Box.BoxChild w9 = ((Gtk.Box.BoxChild)(this.hbox[this.buttonLast])); w9.Position = 6; w9.Expand = false; w9.Fill = false; this.vbox.Add(this.hbox); Gtk.Box.BoxChild w10 = ((Gtk.Box.BoxChild)(this.vbox[this.hbox])); w10.Position = 1; w10.Expand = false; w10.Fill = false; this.Add(this.vbox); if ((this.Child != null)) { this.Child.ShowAll(); } this.Show(); this.buttonFirst.Clicked += new System.EventHandler(this.ButtonFirstClicked); this.buttonPrevious.Clicked += new System.EventHandler(this.ButtonPreviousClicked); this.entryCurrent.Activated += new System.EventHandler(this.EntryCurrentActivated); this.buttonNext.Clicked += new System.EventHandler(this.ButtonNextClicked); this.buttonLast.Clicked += new System.EventHandler(this.ButtonLastClicked); }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget MainWindow this.UIManager = new Gtk.UIManager(); Gtk.ActionGroup w1 = new Gtk.ActionGroup("Default"); this.XFileAction = new Gtk.Action("XFileAction", Mono.Unix.Catalog.GetString("XFile"), null, null); this.XFileAction.ShortLabel = Mono.Unix.Catalog.GetString("File"); w1.Add(this.XFileAction, null); this.GimmeHelpAction = new Gtk.Action("GimmeHelpAction", Mono.Unix.Catalog.GetString("GimmeHelp"), null, null); this.GimmeHelpAction.ShortLabel = Mono.Unix.Catalog.GetString("Help"); w1.Add(this.GimmeHelpAction, null); this.AboutAction = new Gtk.Action("AboutAction", Mono.Unix.Catalog.GetString("About"), null, null); this.AboutAction.ShortLabel = Mono.Unix.Catalog.GetString("About"); w1.Add(this.AboutAction, null); this.QuitAction = new Gtk.Action("QuitAction", Mono.Unix.Catalog.GetString("Quit"), null, null); this.QuitAction.ShortLabel = Mono.Unix.Catalog.GetString("Quit"); w1.Add(this.QuitAction, null); this.SomeEditMenuAction = new Gtk.Action("SomeEditMenuAction", Mono.Unix.Catalog.GetString("SomeEditMenu"), null, null); this.SomeEditMenuAction.ShortLabel = Mono.Unix.Catalog.GetString("SomeEditMenu"); w1.Add(this.SomeEditMenuAction, null); this.NewAction = new Gtk.Action("NewAction", Mono.Unix.Catalog.GetString("New"), null, null); this.NewAction.ShortLabel = Mono.Unix.Catalog.GetString("New"); w1.Add(this.NewAction, null); this.Action1 = new Gtk.Action("Action1", null, null, null); w1.Add(this.Action1, null); this.indexAction = new Gtk.Action("indexAction", null, Mono.Unix.Catalog.GetString("tooltipText"), "gtk-index"); w1.Add(this.indexAction, null); this.cdromAction = new Gtk.Action("cdromAction", null, null, "gtk-cdrom"); w1.Add(this.cdromAction, null); this.RadioInToolBarTest1Action = new Gtk.RadioAction("RadioInToolBarTest1Action", Mono.Unix.Catalog.GetString("RadioInToolBarTest1"), null, null, 0); this.RadioInToolBarTest1Action.Group = new GLib.SList(System.IntPtr.Zero); this.RadioInToolBarTest1Action.ShortLabel = Mono.Unix.Catalog.GetString("RadioInToolBarTest1"); w1.Add(this.RadioInToolBarTest1Action, null); this.RadioInToolBarTest2Action = new Gtk.RadioAction("RadioInToolBarTest2Action", Mono.Unix.Catalog.GetString("RadioInToolBarTest2"), null, null, 0); this.RadioInToolBarTest2Action.Group = this.RadioInToolBarTest1Action.Group; this.RadioInToolBarTest2Action.ShortLabel = Mono.Unix.Catalog.GetString("RadioInToolBarTest2"); w1.Add(this.RadioInToolBarTest2Action, null); this.UIManager.InsertActionGroup(w1, 0); this.AddAccelGroup(this.UIManager.AccelGroup); this.Name = "MainWindow"; this.Title = Mono.Unix.Catalog.GetString("MainWindow"); this.WindowPosition = ((Gtk.WindowPosition)(4)); // Container child MainWindow.Gtk.Container+ContainerChild this.vbox1 = new Gtk.VBox(); this.vbox1.Name = "vbox1"; this.vbox1.Spacing = 6; // Container child vbox1.Gtk.Box+BoxChild this.UIManager.AddUiFromString("<ui><menubar name='menubar1'><menu name='XFileAction' action='XFileAction'><menuitem name='NewAction' action='NewAction'/><separator/><menuitem name='QuitAction' action='QuitAction'/></menu><menu name='SomeEditMenuAction' action='SomeEditMenuAction'/><menu name='GimmeHelpAction' action='GimmeHelpAction'><menuitem name='AboutAction' action='AboutAction'/></menu></menubar></ui>"); this.menubar1 = ((Gtk.MenuBar)(this.UIManager.GetWidget("/menubar1"))); this.menubar1.Name = "menubar1"; this.vbox1.Add(this.menubar1); Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.vbox1[this.menubar1])); w2.Position = 0; w2.Expand = false; w2.Fill = false; // Container child vbox1.Gtk.Box+BoxChild this.UIManager.AddUiFromString("<ui><toolbar name='toolbar1'><toolitem name='indexAction' action='indexAction'/><toolitem name='RadioInToolBarTest1Action' action='RadioInToolBarTest1Action'/><toolitem name='RadioInToolBarTest2Action' action='RadioInToolBarTest2Action'/></toolbar></ui>"); this.toolbar1 = ((Gtk.Toolbar)(this.UIManager.GetWidget("/toolbar1"))); this.toolbar1.Name = "toolbar1"; this.toolbar1.ShowArrow = false; this.toolbar1.ToolbarStyle = ((Gtk.ToolbarStyle)(0)); this.vbox1.Add(this.toolbar1); Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox1[this.toolbar1])); w3.Position = 1; w3.Expand = false; w3.Fill = false; // Container child vbox1.Gtk.Box+BoxChild this.notebook1 = new Gtk.Notebook(); this.notebook1.CanFocus = true; this.notebook1.Name = "notebook1"; this.notebook1.CurrentPage = 0; // Container child notebook1.Gtk.Notebook+NotebookChild this.hbox1 = new Gtk.HBox(); this.hbox1.Name = "hbox1"; this.hbox1.Spacing = 6; // Container child hbox1.Gtk.Box+BoxChild this.GtkScrolledWindow = new Gtk.ScrolledWindow(); this.GtkScrolledWindow.Name = "GtkScrolledWindow"; this.GtkScrolledWindow.ShadowType = ((Gtk.ShadowType)(1)); // Container child GtkScrolledWindow.Gtk.Container+ContainerChild this.treeview2 = new Gtk.TreeView(); this.treeview2.CanFocus = true; this.treeview2.Name = "treeview2"; this.GtkScrolledWindow.Add(this.treeview2); this.hbox1.Add(this.GtkScrolledWindow); Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.hbox1[this.GtkScrolledWindow])); w5.Position = 0; // Container child hbox1.Gtk.Box+BoxChild this.table1 = new Gtk.Table(((uint)(5)), ((uint)(3)), false); this.table1.Name = "table1"; this.table1.RowSpacing = ((uint)(6)); this.table1.ColumnSpacing = ((uint)(6)); // Container child table1.Gtk.Table+TableChild this.btnTest1 = new Gtk.Button(); this.btnTest1.CanFocus = true; this.btnTest1.Name = "btnTest1"; this.btnTest1.UseUnderline = true; this.btnTest1.Label = Mono.Unix.Catalog.GetString("hey ya"); this.table1.Add(this.btnTest1); Gtk.Table.TableChild w6 = ((Gtk.Table.TableChild)(this.table1[this.btnTest1])); w6.LeftAttach = ((uint)(2)); w6.RightAttach = ((uint)(3)); w6.XOptions = ((Gtk.AttachOptions)(4)); w6.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.btnWithImg = new Gtk.Button(); this.btnWithImg.CanFocus = true; this.btnWithImg.Name = "btnWithImg"; this.btnWithImg.UseUnderline = true; this.btnWithImg.Label = Mono.Unix.Catalog.GetString("IMG"); this.table1.Add(this.btnWithImg); Gtk.Table.TableChild w7 = ((Gtk.Table.TableChild)(this.table1[this.btnWithImg])); w7.TopAttach = ((uint)(3)); w7.BottomAttach = ((uint)(4)); w7.XOptions = ((Gtk.AttachOptions)(4)); w7.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.cbeTest = Gtk.ComboBoxEntry.NewText(); this.cbeTest.AppendText(Mono.Unix.Catalog.GetString("First element")); this.cbeTest.AppendText(Mono.Unix.Catalog.GetString("Second element")); this.cbeTest.AppendText(Mono.Unix.Catalog.GetString("Third element")); this.cbeTest.Name = "cbeTest"; this.table1.Add(this.cbeTest); Gtk.Table.TableChild w8 = ((Gtk.Table.TableChild)(this.table1[this.cbeTest])); w8.TopAttach = ((uint)(1)); w8.BottomAttach = ((uint)(2)); w8.LeftAttach = ((uint)(2)); w8.RightAttach = ((uint)(3)); w8.XOptions = ((Gtk.AttachOptions)(4)); w8.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.cbxTest = Gtk.ComboBox.NewText(); this.cbxTest.AppendText(Mono.Unix.Catalog.GetString("FirstItem")); this.cbxTest.AppendText(Mono.Unix.Catalog.GetString("SecondItem")); this.cbxTest.AppendText(Mono.Unix.Catalog.GetString("LastItem")); this.cbxTest.Name = "cbxTest"; this.table1.Add(this.cbxTest); Gtk.Table.TableChild w9 = ((Gtk.Table.TableChild)(this.table1[this.cbxTest])); w9.TopAttach = ((uint)(1)); w9.BottomAttach = ((uint)(2)); w9.LeftAttach = ((uint)(1)); w9.RightAttach = ((uint)(2)); w9.XOptions = ((Gtk.AttachOptions)(4)); w9.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.checkbutton1 = new Gtk.CheckButton(); this.checkbutton1.CanFocus = true; this.checkbutton1.Name = "checkbutton1"; this.checkbutton1.Label = Mono.Unix.Catalog.GetString("checkbutton1"); this.checkbutton1.DrawIndicator = true; this.checkbutton1.UseUnderline = true; this.table1.Add(this.checkbutton1); Gtk.Table.TableChild w10 = ((Gtk.Table.TableChild)(this.table1[this.checkbutton1])); w10.TopAttach = ((uint)(2)); w10.BottomAttach = ((uint)(3)); w10.XOptions = ((Gtk.AttachOptions)(4)); w10.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.chkTest = new Gtk.CheckButton(); this.chkTest.CanFocus = true; this.chkTest.Name = "chkTest"; this.chkTest.Label = Mono.Unix.Catalog.GetString("checkbutton1"); this.chkTest.DrawIndicator = true; this.chkTest.UseUnderline = true; this.table1.Add(this.chkTest); Gtk.Table.TableChild w11 = ((Gtk.Table.TableChild)(this.table1[this.chkTest])); w11.TopAttach = ((uint)(1)); w11.BottomAttach = ((uint)(2)); w11.XOptions = ((Gtk.AttachOptions)(4)); w11.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.lblTest1 = new Gtk.Label(); this.lblTest1.Name = "lblTest1"; this.lblTest1.LabelProp = Mono.Unix.Catalog.GetString("This is a test message\nin a label"); this.table1.Add(this.lblTest1); Gtk.Table.TableChild w12 = ((Gtk.Table.TableChild)(this.table1[this.lblTest1])); w12.XOptions = ((Gtk.AttachOptions)(4)); w12.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.maskedEntry = new Gtk.Entry(); this.maskedEntry.CanFocus = true; this.maskedEntry.Name = "maskedEntry"; this.maskedEntry.IsEditable = true; this.maskedEntry.InvisibleChar = '●'; this.table1.Add(this.maskedEntry); Gtk.Table.TableChild w13 = ((Gtk.Table.TableChild)(this.table1[this.maskedEntry])); w13.TopAttach = ((uint)(4)); w13.BottomAttach = ((uint)(5)); w13.LeftAttach = ((uint)(2)); w13.RightAttach = ((uint)(3)); w13.XOptions = ((Gtk.AttachOptions)(4)); w13.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.radiobutton1 = new Gtk.RadioButton(Mono.Unix.Catalog.GetString("radiobutton1")); this.radiobutton1.CanFocus = true; this.radiobutton1.Name = "radiobutton1"; this.radiobutton1.DrawIndicator = true; this.radiobutton1.UseUnderline = true; this.radiobutton1.Group = new GLib.SList(System.IntPtr.Zero); this.table1.Add(this.radiobutton1); Gtk.Table.TableChild w14 = ((Gtk.Table.TableChild)(this.table1[this.radiobutton1])); w14.TopAttach = ((uint)(3)); w14.BottomAttach = ((uint)(4)); w14.LeftAttach = ((uint)(1)); w14.RightAttach = ((uint)(2)); w14.XOptions = ((Gtk.AttachOptions)(4)); w14.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.radiobutton2 = new Gtk.RadioButton(Mono.Unix.Catalog.GetString("radiobutton2")); this.radiobutton2.CanFocus = true; this.radiobutton2.Name = "radiobutton2"; this.radiobutton2.DrawIndicator = true; this.radiobutton2.UseUnderline = true; this.radiobutton2.Group = this.radiobutton1.Group; this.table1.Add(this.radiobutton2); Gtk.Table.TableChild w15 = ((Gtk.Table.TableChild)(this.table1[this.radiobutton2])); w15.TopAttach = ((uint)(3)); w15.BottomAttach = ((uint)(4)); w15.LeftAttach = ((uint)(2)); w15.RightAttach = ((uint)(3)); w15.XOptions = ((Gtk.AttachOptions)(4)); w15.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.radTest1 = new Gtk.RadioButton(Mono.Unix.Catalog.GetString("rad Opt 0")); this.radTest1.CanFocus = true; this.radTest1.Name = "radTest1"; this.radTest1.DrawIndicator = true; this.radTest1.UseUnderline = true; this.radTest1.Group = new GLib.SList(System.IntPtr.Zero); this.table1.Add(this.radTest1); Gtk.Table.TableChild w16 = ((Gtk.Table.TableChild)(this.table1[this.radTest1])); w16.TopAttach = ((uint)(2)); w16.BottomAttach = ((uint)(3)); w16.LeftAttach = ((uint)(1)); w16.RightAttach = ((uint)(2)); w16.XOptions = ((Gtk.AttachOptions)(4)); w16.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.radTest2 = new Gtk.RadioButton(Mono.Unix.Catalog.GetString("rad Opt 1")); this.radTest2.CanFocus = true; this.radTest2.Name = "radTest2"; this.radTest2.DrawIndicator = true; this.radTest2.UseUnderline = true; this.radTest2.Group = this.radTest1.Group; this.table1.Add(this.radTest2); Gtk.Table.TableChild w17 = ((Gtk.Table.TableChild)(this.table1[this.radTest2])); w17.TopAttach = ((uint)(2)); w17.BottomAttach = ((uint)(3)); w17.LeftAttach = ((uint)(2)); w17.RightAttach = ((uint)(3)); w17.XOptions = ((Gtk.AttachOptions)(4)); w17.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.spinbuttonTest1 = new Gtk.SpinButton(0, 100, 1); this.spinbuttonTest1.CanFocus = true; this.spinbuttonTest1.Name = "spinbuttonTest1"; this.spinbuttonTest1.Adjustment.PageIncrement = 10; this.spinbuttonTest1.ClimbRate = 1; this.spinbuttonTest1.Numeric = true; this.table1.Add(this.spinbuttonTest1); Gtk.Table.TableChild w18 = ((Gtk.Table.TableChild)(this.table1[this.spinbuttonTest1])); w18.TopAttach = ((uint)(4)); w18.BottomAttach = ((uint)(5)); w18.XOptions = ((Gtk.AttachOptions)(4)); w18.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.txtEntry = new Gtk.Entry(); this.txtEntry.CanFocus = true; this.txtEntry.Name = "txtEntry"; this.txtEntry.Text = Mono.Unix.Catalog.GetString("test text"); this.txtEntry.IsEditable = true; this.txtEntry.InvisibleChar = '●'; this.table1.Add(this.txtEntry); Gtk.Table.TableChild w19 = ((Gtk.Table.TableChild)(this.table1[this.txtEntry])); w19.LeftAttach = ((uint)(1)); w19.RightAttach = ((uint)(2)); w19.XOptions = ((Gtk.AttachOptions)(4)); w19.YOptions = ((Gtk.AttachOptions)(4)); this.hbox1.Add(this.table1); Gtk.Box.BoxChild w20 = ((Gtk.Box.BoxChild)(this.hbox1[this.table1])); w20.Position = 1; w20.Expand = false; w20.Fill = false; // Container child hbox1.Gtk.Box+BoxChild this.vscrollbar1 = new Gtk.VScrollbar(null); this.vscrollbar1.Name = "vscrollbar1"; this.vscrollbar1.Adjustment.Upper = 100; this.vscrollbar1.Adjustment.PageIncrement = 10; this.vscrollbar1.Adjustment.PageSize = 10; this.vscrollbar1.Adjustment.StepIncrement = 1; this.hbox1.Add(this.vscrollbar1); Gtk.Box.BoxChild w21 = ((Gtk.Box.BoxChild)(this.hbox1[this.vscrollbar1])); w21.Position = 2; w21.Expand = false; w21.Fill = false; // Container child hbox1.Gtk.Box+BoxChild this.imgTest1 = new Gtk.Image(); this.imgTest1.Name = "imgTest1"; this.hbox1.Add(this.imgTest1); Gtk.Box.BoxChild w22 = ((Gtk.Box.BoxChild)(this.hbox1[this.imgTest1])); w22.Position = 3; w22.Expand = false; w22.Fill = false; // Container child hbox1.Gtk.Box+BoxChild this.imgTest2 = new Gtk.Image(); this.imgTest2.Name = "imgTest2"; this.hbox1.Add(this.imgTest2); Gtk.Box.BoxChild w23 = ((Gtk.Box.BoxChild)(this.hbox1[this.imgTest2])); w23.Position = 5; w23.Expand = false; w23.Fill = false; this.notebook1.Add(this.hbox1); // Notebook tab this.label1 = new Gtk.Label(); this.label1.Name = "label1"; this.label1.LabelProp = Mono.Unix.Catalog.GetString("page1"); this.notebook1.SetTabLabel(this.hbox1, this.label1); this.label1.ShowAll(); // Container child notebook1.Gtk.Notebook+NotebookChild this.calendar1 = new Gtk.Calendar(); this.calendar1.CanFocus = true; this.calendar1.Name = "calendar1"; this.calendar1.DisplayOptions = ((Gtk.CalendarDisplayOptions)(3)); this.notebook1.Add(this.calendar1); Gtk.Notebook.NotebookChild w25 = ((Gtk.Notebook.NotebookChild)(this.notebook1[this.calendar1])); w25.Position = 1; // Notebook tab this.label2 = new Gtk.Label(); this.label2.Name = "label2"; this.label2.LabelProp = Mono.Unix.Catalog.GetString("page2"); this.notebook1.SetTabLabel(this.calendar1, this.label2); this.label2.ShowAll(); this.vbox1.Add(this.notebook1); Gtk.Box.BoxChild w26 = ((Gtk.Box.BoxChild)(this.vbox1[this.notebook1])); w26.Position = 2; w26.Expand = false; w26.Fill = false; // Container child vbox1.Gtk.Box+BoxChild this.progressbar1 = new Gtk.ProgressBar(); this.progressbar1.Name = "progressbar1"; this.vbox1.Add(this.progressbar1); Gtk.Box.BoxChild w27 = ((Gtk.Box.BoxChild)(this.vbox1[this.progressbar1])); w27.Position = 3; w27.Expand = false; w27.Fill = false; // Container child vbox1.Gtk.Box+BoxChild this.hscrollbar1 = new Gtk.HScrollbar(null); this.hscrollbar1.Name = "hscrollbar1"; this.hscrollbar1.Adjustment.Upper = 100; this.hscrollbar1.Adjustment.PageIncrement = 10; this.hscrollbar1.Adjustment.PageSize = 10; this.hscrollbar1.Adjustment.StepIncrement = 1; this.hscrollbar1.Adjustment.Value = 9.28317766722556; this.vbox1.Add(this.hscrollbar1); Gtk.Box.BoxChild w28 = ((Gtk.Box.BoxChild)(this.vbox1[this.hscrollbar1])); w28.Position = 4; w28.Expand = false; w28.Fill = false; // Container child vbox1.Gtk.Box+BoxChild this.hbox2 = new Gtk.HBox(); this.hbox2.Name = "hbox2"; this.hbox2.Spacing = 6; // Container child hbox2.Gtk.Box+BoxChild this.hpaned1 = new Gtk.HPaned(); this.hpaned1.CanFocus = true; this.hpaned1.Name = "hpaned1"; this.hpaned1.Position = 19; // Container child hpaned1.Gtk.Paned+PanedChild this.vscale1 = new Gtk.VScale(null); this.vscale1.CanFocus = true; this.vscale1.Name = "vscale1"; this.vscale1.Adjustment.Upper = 100; this.vscale1.Adjustment.PageIncrement = 10; this.vscale1.Adjustment.StepIncrement = 1; this.vscale1.DrawValue = true; this.vscale1.Digits = 0; this.vscale1.ValuePos = ((Gtk.PositionType)(2)); this.hpaned1.Add(this.vscale1); Gtk.Paned.PanedChild w29 = ((Gtk.Paned.PanedChild)(this.hpaned1[this.vscale1])); w29.Resize = false; // Container child hpaned1.Gtk.Paned+PanedChild this.GtkScrolledWindow2 = new Gtk.ScrolledWindow(); this.GtkScrolledWindow2.Name = "GtkScrolledWindow2"; this.GtkScrolledWindow2.ShadowType = ((Gtk.ShadowType)(1)); // Container child GtkScrolledWindow2.Gtk.Container+ContainerChild this.nodeview1 = new Gtk.NodeView(); this.nodeview1.CanFocus = true; this.nodeview1.Name = "nodeview1"; this.GtkScrolledWindow2.Add(this.nodeview1); this.hpaned1.Add(this.GtkScrolledWindow2); this.hbox2.Add(this.hpaned1); Gtk.Box.BoxChild w32 = ((Gtk.Box.BoxChild)(this.hbox2[this.hpaned1])); w32.Position = 0; // Container child hbox2.Gtk.Box+BoxChild this.GtkScrolledWindow1 = new Gtk.ScrolledWindow(); this.GtkScrolledWindow1.Name = "GtkScrolledWindow1"; this.GtkScrolledWindow1.ShadowType = ((Gtk.ShadowType)(1)); // Container child GtkScrolledWindow1.Gtk.Container+ContainerChild this.txtViewTest = new Gtk.TextView(); this.txtViewTest.CanFocus = true; this.txtViewTest.Name = "txtViewTest"; this.GtkScrolledWindow1.Add(this.txtViewTest); this.hbox2.Add(this.GtkScrolledWindow1); Gtk.Box.BoxChild w34 = ((Gtk.Box.BoxChild)(this.hbox2[this.GtkScrolledWindow1])); w34.Position = 1; // Container child hbox2.Gtk.Box+BoxChild this.frame1 = new Gtk.Frame(); this.frame1.Name = "frame1"; this.frame1.ShadowType = ((Gtk.ShadowType)(0)); // Container child frame1.Gtk.Container+ContainerChild this.GtkAlignment = new Gtk.Alignment(0F, 0F, 1F, 1F); this.GtkAlignment.Name = "GtkAlignment"; this.GtkAlignment.LeftPadding = ((uint)(12)); this.frame1.Add(this.GtkAlignment); this.GtkLabel13 = new Gtk.Label(); this.GtkLabel13.Name = "GtkLabel13"; this.GtkLabel13.LabelProp = Mono.Unix.Catalog.GetString("<b>frame1</b>"); this.GtkLabel13.UseMarkup = true; this.frame1.LabelWidget = this.GtkLabel13; this.hbox2.Add(this.frame1); Gtk.Box.BoxChild w36 = ((Gtk.Box.BoxChild)(this.hbox2[this.frame1])); w36.Position = 2; w36.Expand = false; w36.Fill = false; this.vbox1.Add(this.hbox2); Gtk.Box.BoxChild w37 = ((Gtk.Box.BoxChild)(this.vbox1[this.hbox2])); w37.Position = 5; // Container child vbox1.Gtk.Box+BoxChild this.statusbar1 = new Gtk.Statusbar(); this.statusbar1.Name = "statusbar1"; this.statusbar1.Spacing = 6; this.vbox1.Add(this.statusbar1); Gtk.Box.BoxChild w38 = ((Gtk.Box.BoxChild)(this.vbox1[this.statusbar1])); w38.Position = 7; w38.Expand = false; w38.Fill = false; this.Add(this.vbox1); if ((this.Child != null)) { this.Child.ShowAll(); } this.DefaultWidth = 757; this.DefaultHeight = 516; this.Show(); this.DeleteEvent += new Gtk.DeleteEventHandler(this.OnDeleteEvent); }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget SqueezeCenter.Configuration Stetic.BinContainer.Attach(this); this.Name = "SqueezeCenter.Configuration"; // Container child SqueezeCenter.Configuration.Gtk.Container+ContainerChild this.table1 = new Gtk.Table(((uint)(6)), ((uint)(2)), false); this.table1.Name = "table1"; this.table1.RowSpacing = ((uint)(6)); this.table1.ColumnSpacing = ((uint)(6)); // Container child table1.Gtk.Table+TableChild this.button1 = new Gtk.Button(); this.button1.CanFocus = true; this.button1.Name = "button1"; this.button1.UseStock = true; this.button1.UseUnderline = true; this.button1.Label = "gtk-save"; this.table1.Add(this.button1); Gtk.Table.TableChild w1 = ((Gtk.Table.TableChild)(this.table1[this.button1])); w1.TopAttach = ((uint)(5)); w1.BottomAttach = ((uint)(6)); w1.LeftAttach = ((uint)(1)); w1.RightAttach = ((uint)(2)); w1.XOptions = ((Gtk.AttachOptions)(4)); w1.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.chkLoadInBackground = new Gtk.CheckButton(); this.chkLoadInBackground.CanFocus = true; this.chkLoadInBackground.Name = "chkLoadInBackground"; this.chkLoadInBackground.Label = Mono.Addins.AddinManager.CurrentLocalizer.GetString("Load items in background"); this.chkLoadInBackground.DrawIndicator = true; this.chkLoadInBackground.UseUnderline = true; this.table1.Add(this.chkLoadInBackground); Gtk.Table.TableChild w2 = ((Gtk.Table.TableChild)(this.table1[this.chkLoadInBackground])); w2.TopAttach = ((uint)(3)); w2.BottomAttach = ((uint)(4)); w2.LeftAttach = ((uint)(1)); w2.RightAttach = ((uint)(2)); w2.XOptions = ((Gtk.AttachOptions)(0)); // Container child table1.Gtk.Table+TableChild this.label2 = new Gtk.Label(); this.label2.Name = "label2"; this.label2.Xalign = 0F; this.label2.LabelProp = Mono.Addins.AddinManager.CurrentLocalizer.GetString("Comma-seperated list of radios to load"); this.table1.Add(this.label2); Gtk.Table.TableChild w3 = ((Gtk.Table.TableChild)(this.table1[this.label2])); w3.TopAttach = ((uint)(4)); w3.BottomAttach = ((uint)(5)); w3.XOptions = ((Gtk.AttachOptions)(4)); w3.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.label5 = new Gtk.Label(); this.label5.Name = "label5"; this.label5.Xalign = 0F; this.label5.LabelProp = Mono.Addins.AddinManager.CurrentLocalizer.GetString("Host-name of SqueezeCenter server"); this.table1.Add(this.label5); Gtk.Table.TableChild w4 = ((Gtk.Table.TableChild)(this.table1[this.label5])); w4.XOptions = ((Gtk.AttachOptions)(4)); w4.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.label6 = new Gtk.Label(); this.label6.Name = "label6"; this.label6.Xalign = 0F; this.label6.LabelProp = Mono.Addins.AddinManager.CurrentLocalizer.GetString("Port of the SqueezeCenter server cli interface"); this.table1.Add(this.label6); Gtk.Table.TableChild w5 = ((Gtk.Table.TableChild)(this.table1[this.label6])); w5.TopAttach = ((uint)(1)); w5.BottomAttach = ((uint)(2)); w5.XOptions = ((Gtk.AttachOptions)(4)); w5.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.label7 = new Gtk.Label(); this.label7.Name = "label7"; this.label7.Xalign = 0F; this.label7.LabelProp = Mono.Addins.AddinManager.CurrentLocalizer.GetString("Port of the SqueezeCenter server web interface"); this.table1.Add(this.label7); Gtk.Table.TableChild w6 = ((Gtk.Table.TableChild)(this.table1[this.label7])); w6.TopAttach = ((uint)(2)); w6.BottomAttach = ((uint)(3)); w6.XOptions = ((Gtk.AttachOptions)(4)); w6.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.label8 = new Gtk.Label(); this.label8.Name = "label8"; this.label8.Xalign = 0F; this.label8.LabelProp = Mono.Addins.AddinManager.CurrentLocalizer.GetString("Load artist, albums and radio in the background when loading DO. \nIf set to unchecked, these items are loaded when DO is loading causing a delay until all items are loaded."); this.label8.Wrap = true; this.table1.Add(this.label8); Gtk.Table.TableChild w7 = ((Gtk.Table.TableChild)(this.table1[this.label8])); w7.TopAttach = ((uint)(3)); w7.BottomAttach = ((uint)(4)); w7.XOptions = ((Gtk.AttachOptions)(4)); w7.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.txtHost = new Gtk.Entry(); this.txtHost.CanFocus = true; this.txtHost.Name = "txtHost"; this.txtHost.IsEditable = true; this.txtHost.InvisibleChar = '●'; this.table1.Add(this.txtHost); Gtk.Table.TableChild w8 = ((Gtk.Table.TableChild)(this.table1[this.txtHost])); w8.LeftAttach = ((uint)(1)); w8.RightAttach = ((uint)(2)); w8.XOptions = ((Gtk.AttachOptions)(4)); w8.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.txtPortCli = new Gtk.Entry(); this.txtPortCli.CanFocus = true; this.txtPortCli.Name = "txtPortCli"; this.txtPortCli.IsEditable = true; this.txtPortCli.InvisibleChar = '●'; this.table1.Add(this.txtPortCli); Gtk.Table.TableChild w9 = ((Gtk.Table.TableChild)(this.table1[this.txtPortCli])); w9.TopAttach = ((uint)(1)); w9.BottomAttach = ((uint)(2)); w9.LeftAttach = ((uint)(1)); w9.RightAttach = ((uint)(2)); w9.XOptions = ((Gtk.AttachOptions)(4)); w9.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.txtPortWeb = new Gtk.Entry(); this.txtPortWeb.CanFocus = true; this.txtPortWeb.Name = "txtPortWeb"; this.txtPortWeb.IsEditable = true; this.txtPortWeb.InvisibleChar = '●'; this.table1.Add(this.txtPortWeb); Gtk.Table.TableChild w10 = ((Gtk.Table.TableChild)(this.table1[this.txtPortWeb])); w10.TopAttach = ((uint)(2)); w10.BottomAttach = ((uint)(3)); w10.LeftAttach = ((uint)(1)); w10.RightAttach = ((uint)(2)); w10.XOptions = ((Gtk.AttachOptions)(4)); w10.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.txtRadios = new Gtk.Entry(); this.txtRadios.CanFocus = true; this.txtRadios.Name = "txtRadios"; this.txtRadios.IsEditable = true; this.txtRadios.InvisibleChar = '●'; this.table1.Add(this.txtRadios); Gtk.Table.TableChild w11 = ((Gtk.Table.TableChild)(this.table1[this.txtRadios])); w11.TopAttach = ((uint)(4)); w11.BottomAttach = ((uint)(5)); w11.LeftAttach = ((uint)(1)); w11.RightAttach = ((uint)(2)); w11.XOptions = ((Gtk.AttachOptions)(4)); w11.YOptions = ((Gtk.AttachOptions)(4)); this.Add(this.table1); if ((this.Child != null)) { this.Child.ShowAll(); } this.Show(); this.button1.Clicked += new System.EventHandler(this.OntbnSaveClicked); }
public void ConnectEntry(Gtk.Entry entry) { gtk_search_bar_connect_entry(Handle, entry == null ? IntPtr.Zero : entry.Handle); }
void CreateControls() { Gtk.Widget icon = null; Gtk.Widget label = null; dropButton = null; if (Child != null) { Gtk.Widget w = Child; Remove(w); w.Destroy(); } if (node.Type == Gtk.UIManagerItemType.Separator) { Gtk.Widget sep; if (parentToolbar.Orientation == Gtk.Orientation.Horizontal) { sep = new Gtk.VSeparator(); } else { sep = new Gtk.HSeparator(); } Gtk.HBox box = new Gtk.HBox(); box.BorderWidth = 6; box.PackStart(sep, true, true, 0); Add(box); return; } if (node.Action == null) { return; } Gtk.Action gaction = node.Action.GtkAction; bool showText = parentToolbar.ToolbarStyle == Gtk.ToolbarStyle.Text; bool showIcon = parentToolbar.ToolbarStyle == Gtk.ToolbarStyle.Icons; if (parentToolbar.ToolbarStyle == Gtk.ToolbarStyle.Both) { showText = showIcon = true; } else if (parentToolbar.ToolbarStyle == Gtk.ToolbarStyle.BothHoriz) { showText = parentToolbar.Orientation == Gtk.Orientation.Vertical || gaction.IsImportant; showIcon = true; } string text = node.Action.ToolLabel; showingText = showText; if (showIcon) { if (gaction.StockId != null) { icon = node.Action.CreateIcon(parentToolbar.IconSize); } else if (!gaction.IsImportant) { icon = CreateFakeItem(); } } if (editing) { Gtk.HBox bbox = new Gtk.HBox(); bbox.Spacing = 3; if (icon != null) { bbox.PackStart(icon, false, false, 0); } bbox.PackStart(new Gtk.Arrow(Gtk.ArrowType.Down, Gtk.ShadowType.In), false, false, 0); Gtk.Button b = new Gtk.Button(bbox); b.TooltipText = Catalog.GetString("Select action type"); b.Relief = Gtk.ReliefStyle.None; b.ButtonPressEvent += OnSelectIcon; dropButton = b; icon = b; if (showText) { Gtk.Entry entry = new Gtk.Entry(); entry.Text = text; entry.Changed += OnLabelChanged; entry.Activated += OnLabelActivated; entry.HasFrame = false; label = entry; entry.TooltipText = Catalog.GetString("Action label"); } } else if (showText && text != null && text.Length > 0) { label = new Gtk.Label(text); label.Sensitive = editing || node.Action == null || node.Action.GtkAction.Sensitive; } if (icon != null && label != null) { if (parentToolbar.ToolbarStyle == Gtk.ToolbarStyle.BothHoriz) { Gtk.HBox box = new Gtk.HBox(); box.PackStart(icon, false, false, 0); box.PackStart(label, true, true, 0); icon = box; } else if (parentToolbar.ToolbarStyle == Gtk.ToolbarStyle.Both) { Gtk.VBox box = new Gtk.VBox(); Gtk.Alignment al = new Gtk.Alignment(0.5f, 0f, 0f, 0f); al.Add(icon); box.PackStart(al, false, false, 0); box.PackStart(label, true, true, 0); icon = box; } } else if (label != null) { icon = label; } if (icon == null) { icon = CreateFakeItem(); } icon.Sensitive = editing || node.Action == null || node.Action.GtkAction.Sensitive; if (!editing) { Gtk.Button but = new Gtk.Button(icon); but.Relief = Gtk.ReliefStyle.None; but.ButtonPressEvent += OnToolItemPress; but.ButtonReleaseEvent += OnMemuItemRelease; but.MotionNotifyEvent += OnMotionNotify; but.Events |= Gdk.EventMask.PointerMotionMask; icon = but; } Add(icon); ShowAll(); }
public override void Initialize() { Widget = new Gtk.Entry(); Widget.Show(); }
public virtual void Initialize(PropertyDescriptor prop) { CheckType(prop); this.prop = prop; mainHBox = new Gtk.HBox(false, 6); PackStart(mainHBox, false, false, 0); if (!prop.Translatable) { return; } button = new Gtk.Button(); try { globe = Gdk.Pixbuf.LoadFromResource("globe.png"); globe_not = Gdk.Pixbuf.LoadFromResource("globe-not.png"); } catch (Exception e) { Console.WriteLine("Error while loading pixbuf: " + e); } image = new Gtk.Image(globe); button.Add(image); button.ButtonPressEvent += ButtonPressed; mainHBox.PackEnd(button, false, false, 0); mainHBox.ShowAll(); menu = new Gtk.Menu(); markItem = new Gtk.CheckMenuItem("Mark for Translation"); markItem.Toggled += ToggleMark; markItem.Show(); menu.Add(markItem); addContextItem = new Gtk.MenuItem("Add Translation Context Hint"); addContextItem.Activated += AddContext; menu.Add(addContextItem); remContextItem = new Gtk.MenuItem("Remove Translation Context Hint"); remContextItem.Activated += RemoveContext; menu.Add(remContextItem); addCommentItem = new Gtk.MenuItem("Add Comment for Translators"); addCommentItem.Activated += AddComment; menu.Add(addCommentItem); remCommentItem = new Gtk.MenuItem("Remove Comment for Translators"); remCommentItem.Activated += RemoveComment; menu.Add(remCommentItem); contextBox = new Gtk.HBox(false, 6); Gtk.Label contextLabel = new Gtk.Label("Translation context"); contextLabel.Xalign = 0.0f; contextBox.PackStart(contextLabel, false, false, 0); contextEntry = new Gtk.Entry(); contextEntry.WidthChars = 8; contextBox.PackStart(contextEntry, true, true, 0); contextBox.ShowAll(); contextEntry.Changed += ContextChanged; commentBox = new Gtk.VBox(false, 3); Gtk.Label commentLabel = new Gtk.Label("Comment for Translators:"); commentLabel.Xalign = 0.0f; commentBox.PackStart(commentLabel, false, false, 0); commentText = new TextBox(3); commentBox.PackStart(commentText, false, false, 0); commentBox.ShowAll(); commentText.Changed += CommentChanged; }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget omvviewerlight.GroupSearch Stetic.BinContainer.Attach(this); this.Name = "omvviewerlight.GroupSearch"; // Container child omvviewerlight.GroupSearch.Gtk.Container+ContainerChild this.vbox1 = new Gtk.VBox(); this.vbox1.Name = "vbox1"; this.vbox1.Spacing = 6; // Container child vbox1.Gtk.Box+BoxChild this.hbox1 = new Gtk.HBox(); this.hbox1.Name = "hbox1"; this.hbox1.Spacing = 6; // Container child hbox1.Gtk.Box+BoxChild this.label1 = new Gtk.Label(); this.label1.Name = "label1"; this.label1.LabelProp = Mono.Unix.Catalog.GetString("Search for"); this.hbox1.Add(this.label1); Gtk.Box.BoxChild w1 = ((Gtk.Box.BoxChild)(this.hbox1[this.label1])); w1.Position = 0; w1.Expand = false; w1.Fill = false; // Container child hbox1.Gtk.Box+BoxChild this.entry_search = new Gtk.Entry(); this.entry_search.CanFocus = true; this.entry_search.Name = "entry_search"; this.entry_search.IsEditable = true; this.entry_search.InvisibleChar = '●'; this.hbox1.Add(this.entry_search); Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.hbox1[this.entry_search])); w2.Position = 1; // Container child hbox1.Gtk.Box+BoxChild this.button1 = new Gtk.Button(); this.button1.CanFocus = true; this.button1.Name = "button1"; this.button1.UseUnderline = true; // Container child button1.Gtk.Container+ContainerChild Gtk.Alignment w3 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w4 = new Gtk.HBox(); w4.Spacing = 2; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w5 = new Gtk.Image(); w5.Pixbuf = MainClass.GetResource("status_search_btn.png"); w4.Add(w5); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w7 = new Gtk.Label(); w7.LabelProp = Mono.Unix.Catalog.GetString("Search"); w7.UseUnderline = true; w4.Add(w7); w3.Add(w4); this.button1.Add(w3); this.hbox1.Add(this.button1); Gtk.Box.BoxChild w11 = ((Gtk.Box.BoxChild)(this.hbox1[this.button1])); w11.Position = 2; w11.Expand = false; w11.Fill = false; this.vbox1.Add(this.hbox1); Gtk.Box.BoxChild w12 = ((Gtk.Box.BoxChild)(this.vbox1[this.hbox1])); w12.Position = 0; w12.Expand = false; w12.Fill = false; // Container child vbox1.Gtk.Box+BoxChild this.label_search_progress = new Gtk.Label(); this.label_search_progress.Name = "label_search_progress"; this.label_search_progress.Xalign = 0F; this.label_search_progress.LabelProp = Mono.Unix.Catalog.GetString("Type a name or partial group name to search for and press search"); this.vbox1.Add(this.label_search_progress); Gtk.Box.BoxChild w13 = ((Gtk.Box.BoxChild)(this.vbox1[this.label_search_progress])); w13.Position = 1; w13.Expand = false; w13.Fill = false; // Container child vbox1.Gtk.Box+BoxChild this.GtkScrolledWindow = new Gtk.ScrolledWindow(); this.GtkScrolledWindow.Name = "GtkScrolledWindow"; this.GtkScrolledWindow.ShadowType = ((Gtk.ShadowType)(1)); // Container child GtkScrolledWindow.Gtk.Container+ContainerChild this.treeview1 = new Gtk.TreeView(); this.treeview1.CanFocus = true; this.treeview1.Name = "treeview1"; this.GtkScrolledWindow.Add(this.treeview1); this.vbox1.Add(this.GtkScrolledWindow); Gtk.Box.BoxChild w15 = ((Gtk.Box.BoxChild)(this.vbox1[this.GtkScrolledWindow])); w15.Position = 2; // Container child vbox1.Gtk.Box+BoxChild this.hbox2 = new Gtk.HBox(); this.hbox2.Name = "hbox2"; this.hbox2.Spacing = 6; // Container child hbox2.Gtk.Box+BoxChild this.button_view_group_profile = new Gtk.Button(); this.button_view_group_profile.CanFocus = true; this.button_view_group_profile.Name = "button_view_group_profile"; this.button_view_group_profile.UseUnderline = true; this.button_view_group_profile.Label = Mono.Unix.Catalog.GetString("View full group profile"); this.hbox2.Add(this.button_view_group_profile); Gtk.Box.BoxChild w16 = ((Gtk.Box.BoxChild)(this.hbox2[this.button_view_group_profile])); w16.Position = 0; w16.Expand = false; w16.Fill = false; this.vbox1.Add(this.hbox2); Gtk.Box.BoxChild w17 = ((Gtk.Box.BoxChild)(this.vbox1[this.hbox2])); w17.Position = 3; w17.Expand = false; w17.Fill = false; this.Add(this.vbox1); if ((this.Child != null)) { this.Child.ShowAll(); } this.Show(); this.button1.Clicked += new System.EventHandler(this.OnButton1Clicked); this.button_view_group_profile.Clicked += new System.EventHandler(this.OnButtonViewGroupProfileClicked); }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget ocmgtk.GarminSerialWidget Stetic.BinContainer.Attach(this); this.Name = "ocmgtk.GarminSerialWidget"; // Container child ocmgtk.GarminSerialWidget.Gtk.Container+ContainerChild this.table1 = new Gtk.Table(((uint)(3)), ((uint)(2)), false); this.table1.Name = "table1"; this.table1.RowSpacing = ((uint)(6)); this.table1.ColumnSpacing = ((uint)(6)); this.table1.BorderWidth = ((uint)(6)); // Container child table1.Gtk.Table+TableChild this.fileEntry = new Gtk.Entry(); this.fileEntry.CanFocus = true; this.fileEntry.Name = "fileEntry"; this.fileEntry.Text = Mono.Unix.Catalog.GetString("/dev/tty0"); this.fileEntry.IsEditable = true; this.fileEntry.InvisibleChar = '•'; this.table1.Add(this.fileEntry); Gtk.Table.TableChild w1 = ((Gtk.Table.TableChild)(this.table1[this.fileEntry])); w1.TopAttach = ((uint)(2)); w1.BottomAttach = ((uint)(3)); w1.LeftAttach = ((uint)(1)); w1.RightAttach = ((uint)(2)); w1.XOptions = ((Gtk.AttachOptions)(4)); w1.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.label1 = new Gtk.Label(); this.label1.Name = "label1"; this.label1.Xalign = 0F; this.label1.LabelProp = Mono.Unix.Catalog.GetString("Waypoint Name Format:"); this.table1.Add(this.label1); Gtk.Table.TableChild w2 = ((Gtk.Table.TableChild)(this.table1[this.label1])); w2.TopAttach = ((uint)(1)); w2.BottomAttach = ((uint)(2)); w2.XOptions = ((Gtk.AttachOptions)(4)); w2.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.label2 = new Gtk.Label(); this.label2.Name = "label2"; this.label2.Xalign = 0F; this.label2.LabelProp = Mono.Unix.Catalog.GetString("Serial Port:"); this.table1.Add(this.label2); Gtk.Table.TableChild w3 = ((Gtk.Table.TableChild)(this.table1[this.label2])); w3.TopAttach = ((uint)(2)); w3.BottomAttach = ((uint)(3)); w3.XOptions = ((Gtk.AttachOptions)(4)); w3.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.limitCheck = new Gtk.CheckButton(); this.limitCheck.CanFocus = true; this.limitCheck.Name = "limitCheck"; this.limitCheck.Label = Mono.Unix.Catalog.GetString("Limit Number of Geocaches"); this.limitCheck.Active = true; this.limitCheck.DrawIndicator = true; this.limitCheck.UseUnderline = true; this.table1.Add(this.limitCheck); Gtk.Table.TableChild w4 = ((Gtk.Table.TableChild)(this.table1[this.limitCheck])); w4.XOptions = ((Gtk.AttachOptions)(4)); w4.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.limitEntry = new Gtk.Entry(); this.limitEntry.CanFocus = true; this.limitEntry.Name = "limitEntry"; this.limitEntry.Text = Mono.Unix.Catalog.GetString("500"); this.limitEntry.IsEditable = true; this.limitEntry.InvisibleChar = '•'; this.table1.Add(this.limitEntry); Gtk.Table.TableChild w5 = ((Gtk.Table.TableChild)(this.table1[this.limitEntry])); w5.LeftAttach = ((uint)(1)); w5.RightAttach = ((uint)(2)); w5.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.nameMode = Gtk.ComboBox.NewText(); this.nameMode.AppendText(Mono.Unix.Catalog.GetString("Cache Code")); this.nameMode.AppendText(Mono.Unix.Catalog.GetString("Cache Name")); this.nameMode.AppendText(Mono.Unix.Catalog.GetString("Short Cache Code")); this.nameMode.Name = "nameMode"; this.nameMode.Active = 0; this.table1.Add(this.nameMode); Gtk.Table.TableChild w6 = ((Gtk.Table.TableChild)(this.table1[this.nameMode])); w6.TopAttach = ((uint)(1)); w6.BottomAttach = ((uint)(2)); w6.LeftAttach = ((uint)(1)); w6.RightAttach = ((uint)(2)); w6.XOptions = ((Gtk.AttachOptions)(4)); w6.YOptions = ((Gtk.AttachOptions)(4)); this.Add(this.table1); if ((this.Child != null)) { this.Child.ShowAll(); } this.Hide(); this.limitCheck.Toggled += new System.EventHandler(this.OnLimitToggle); }