public override void Initialize() { var progressBar = new Gtk.ProgressBar(); Widget = progressBar; Widget.Show(); }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget ocmgtk.MapWidget Stetic.BinContainer.Attach(this); this.Name = "ocmgtk.MapWidget"; // Container child ocmgtk.MapWidget.Gtk.Container+ContainerChild this.mapVBox = new Gtk.VBox(); this.mapVBox.Name = "mapVBox"; this.mapVBox.Spacing = 6; // Container child mapVBox.Gtk.Box+BoxChild this.mapScroll = new Gtk.ScrolledWindow(); this.mapScroll.CanFocus = true; this.mapScroll.Name = "mapScroll"; this.mapScroll.ShadowType = ((Gtk.ShadowType)(1)); this.mapVBox.Add(this.mapScroll); Gtk.Box.BoxChild w1 = ((Gtk.Box.BoxChild)(this.mapVBox[this.mapScroll])); w1.Position = 0; // Container child mapVBox.Gtk.Box+BoxChild this.mapProgress = new Gtk.ProgressBar(); this.mapProgress.HeightRequest = 10; this.mapProgress.Name = "mapProgress"; this.mapVBox.Add(this.mapProgress); Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.mapVBox[this.mapProgress])); w2.Position = 1; w2.Expand = false; w2.Fill = false; this.Add(this.mapVBox); if ((this.Child != null)) { this.Child.ShowAll(); } this.mapProgress.Hide(); this.Hide(); }
// TODO: Create a class Archive.cs and do all the archiving stuff there! public static bool UncompressBzip2File(string Filename, string To, Gtk.ProgressBar bar) { try{ Console.WriteLine(Filename); BZip2InputStream bzipIn = new BZip2InputStream(File.OpenRead(Filename)); FileStream streamWriter = File.Create(To + Path.GetFileNameWithoutExtension(Filename)); long size = 0; byte[] data = new byte[1024]; while (true) { size = bzipIn.Read(data, 0, data.Length); if (size > 0) { streamWriter.Write(data, 0, (int)size); } else { break; } } streamWriter.Close(); Console.WriteLine("Deflating the gzip file done!"); return(true); } catch (Exception e) { Console.WriteLine("An exception occured while deflating the bzip2 file: " + e.Message); return(false); } }
//Downloads the selected theme if non-existant on the hd public void GetThemeFile(CStatusWindow sw, string downloadTo) { Gtk.ProgressBar bar = null; //Set the user hint if a status window is available if (sw != null) { bar = sw.DetailProgressBar; sw.Mainlabel = CConfiguration.txtDownloadTheme; } //user choosen download location available? if (downloadTo == "" || downloadTo == null) { downloadTo = LocalThemeFile; } else { downloadTo = Path.GetFullPath(downloadTo) + config.DirectorySeperator + Path.GetFileName(LocalThemeFile); } Console.Out.WriteLine("Downloading theme to : " + downloadTo); //Finally - download the theme if (this is CBackgroundTheme) { DownloadFile((this as CBackgroundTheme).Image.URL, downloadTo, sw.DetailProgressBar); } else { DownloadFile(DownloadUrl, downloadTo, bar); } }
private void SetDownloadBarProgress(Gtk.ProgressBar bar, Int64 fileSize, Int64 currentSize, string byteString) { if (bar != null) { if (fileSize > 0) { if (currentSize > 0) { bar.Text = (int)(currentSize / 1024) + " k" + byteString + " / " + (int)(fileSize / 1024) + " k" + byteString; bar.Fraction = (double)currentSize / fileSize; } } else { bar.Pulse(); } if (currentSize % 2 == 0) { while (Gtk.Application.EventsPending()) { Gtk.Application.RunIteration(); } } } }
public ThreadProgressDialog (Thread thread, int total) { /* if (parent_window) this.TransientFor = parent_window; */ this.Title = thread.Name; this.thread = thread; HasSeparator = false; BorderWidth = 6; SetDefaultSize (300, -1); message_label = new Gtk.Label (String.Empty); VBox.PackStart (message_label, true, true, 12); progress_bar = new Gtk.ProgressBar (); VBox.PackStart (progress_bar, true, true, 6); retry_button = new Gtk.Button (Mono.Unix.Catalog.GetString ("Retry")); retry_button.Clicked += new EventHandler (HandleRetryClicked); skip_button = new Gtk.Button (Mono.Unix.Catalog.GetString ("Skip")); skip_button.Clicked += new EventHandler (HandleSkipClicked); ActionArea.Add (retry_button); ActionArea.Add (skip_button); button_label = Gtk.Stock.Cancel; button = (Gtk.Button) AddButton (button_label, (int)Gtk.ResponseType.Cancel); delay = new Delay (new GLib.IdleHandler (HandleUpdate)); Response += HandleResponse; Destroyed += HandleDestroy; }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget ocmgtk.OCMSplash this.WidthRequest = 744; this.HeightRequest = 600; this.Name = "ocmgtk.OCMSplash"; this.Title = Mono.Unix.Catalog.GetString("OCMSplash"); this.TypeHint = ((Gdk.WindowTypeHint)(4)); this.WindowPosition = ((Gtk.WindowPosition)(3)); this.Resizable = false; this.AllowGrow = false; this.Decorated = false; // Container child ocmgtk.OCMSplash.Gtk.Container+ContainerChild this.splashVBox = new Gtk.VBox(); this.splashVBox.Name = "splashVBox"; this.splashVBox.Spacing = 6; // Container child splashVBox.Gtk.Box+BoxChild this.labelAlignment = new Gtk.Alignment(0F, 0F, 1F, 1F); this.labelAlignment.Name = "labelAlignment"; this.labelAlignment.LeftPadding = ((uint)(120)); this.labelAlignment.TopPadding = ((uint)(430)); // Container child labelAlignment.Gtk.Container+ContainerChild this.versionLabel = new Gtk.Label(); this.versionLabel.Name = "versionLabel"; this.versionLabel.Xalign = 0F; this.versionLabel.Yalign = 0F; this.versionLabel.LabelProp = "<b><big>Version XXX</big></b>\n<small>Copyright (c) Kyle Campbell 2010-2011</small>"; this.versionLabel.UseMarkup = true; this.labelAlignment.Add(this.versionLabel); this.splashVBox.Add(this.labelAlignment); Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.splashVBox[this.labelAlignment])); w2.Position = 0; w2.Expand = false; w2.Fill = false; // Container child splashVBox.Gtk.Box+BoxChild this.progressAlign = new Gtk.Alignment(0F, 0F, 1F, 1F); this.progressAlign.Name = "progressAlign"; this.progressAlign.LeftPadding = ((uint)(120)); this.progressAlign.RightPadding = ((uint)(400)); // Container child progressAlign.Gtk.Container+ContainerChild this.loadProgress = new Gtk.ProgressBar(); this.loadProgress.WidthRequest = 100; this.loadProgress.HeightRequest = 10; this.loadProgress.Name = "loadProgress"; this.progressAlign.Add(this.loadProgress); this.splashVBox.Add(this.progressAlign); Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.splashVBox[this.progressAlign])); w4.Position = 1; w4.Expand = false; w4.Fill = false; this.Add(this.splashVBox); if ((this.Child != null)) { this.Child.ShowAll(); } this.DefaultWidth = 786; this.DefaultHeight = 627; this.Show(); }
//Thumbnail herunterladen public void GetThumbnailImage(Gtk.ProgressBar bar) { if (!localThumbExists) { DownloadFile(SmallThumbnailUrl, localThumbnailFile, bar); localThumbExists = true; } }
public void DownloadFile(string From, string To, Gtk.ProgressBar bar) { // The stream of data retrieved from the web server Stream strResponse; // The stream of data that we write to the harddrive Stream strLocal; // A buffer for storing and writing the data retrieved from the server byte[] downBuffer = new byte[2048]; string byteString = Catalog.GetString("bytes"); WebResponse webResponse; try { // Create a request to the file we are downloading initWebRequest(From); // Retrieve the response from the server webResponse = (HttpWebResponse)webRequest.GetResponse(); // Ask the server for the file size and store it Int64 fileSize = webResponse.ContentLength; // It will store the current number of bytes we receieved from the server int bytesSize = 0; InitializeDownloadBar(bar, fileSize, downBuffer.Length); Console.WriteLine("Filesize of " + From + " -> " + fileSize + " " + byteString); if (webRequest.HaveResponse) { strResponse = webResponse.GetResponseStream(); // Create a new file stream where we will be saving the data (local drive) strLocal = new FileStream(To, FileMode.Create, FileAccess.Write, FileShare.None); // Loop through the buffer until the buffer is empty while ((bytesSize = strResponse.Read(downBuffer, 0, downBuffer.Length)) > 0) { // Write the data from the buffer to the local hard drive strLocal.Write(downBuffer, 0, bytesSize); SetDownloadBarProgress(bar, fileSize, strLocal.Length, byteString); } //Close the request if (!keepConnection) { webResponse.Close(); strResponse.Close(); strLocal.Close(); } } else { Console.WriteLine("WebRequest didn't get a response...strange!"); } } catch (Exception ex) { throw new Exception("Download of file " + From + " failed:" + "\n" + ex.Message); } }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget Pinta.ProgressDialog this.Name = "Pinta.ProgressDialog"; this.WindowPosition = ((Gtk.WindowPosition)(4)); // Internal child Pinta.ProgressDialog.VBox Gtk.VBox w1 = this.VBox; w1.Name = "dialog1_VBox"; w1.BorderWidth = ((uint)(2)); // Container child dialog1_VBox.Gtk.Box+BoxChild this.label = new Gtk.Label(); this.label.Name = "label"; this.label.LabelProp = "label2"; w1.Add(this.label); Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(w1[this.label])); w2.Position = 0; w2.Expand = false; w2.Fill = false; // Container child dialog1_VBox.Gtk.Box+BoxChild this.progress_bar = new Gtk.ProgressBar(); this.progress_bar.Name = "progress_bar"; w1.Add(this.progress_bar); Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(w1[this.progress_bar])); w3.Position = 1; w3.Expand = false; w3.Fill = false; // Internal child Pinta.ProgressDialog.ActionArea Gtk.HButtonBox w4 = this.ActionArea; w4.Name = "dialog1_ActionArea"; w4.Spacing = 10; w4.BorderWidth = ((uint)(5)); w4.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 w5 = ((Gtk.ButtonBox.ButtonBoxChild)(w4[this.buttonCancel])); w5.Expand = false; w5.Fill = false; if ((this.Child != null)) { this.Child.ShowAll(); } this.DefaultWidth = 400; this.DefaultHeight = 114; this.Hide(); }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget Pinta.ProgressDialog this.Name = "Pinta.ProgressDialog"; this.WindowPosition = ((Gtk.WindowPosition)(4)); // Internal child Pinta.ProgressDialog.VBox Gtk.VBox w1 = this.VBox; w1.Name = "dialog1_VBox"; w1.BorderWidth = ((uint)(2)); // Container child dialog1_VBox.Gtk.Box+BoxChild this.label = new Gtk.Label(); this.label.Name = "label"; this.label.LabelProp = Mono.Unix.Catalog.GetString("label2"); w1.Add(this.label); Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(w1[this.label])); w2.Position = 0; w2.Expand = false; w2.Fill = false; // Container child dialog1_VBox.Gtk.Box+BoxChild this.progress_bar = new Gtk.ProgressBar(); this.progress_bar.Name = "progress_bar"; w1.Add(this.progress_bar); Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(w1[this.progress_bar])); w3.Position = 1; w3.Expand = false; w3.Fill = false; // Internal child Pinta.ProgressDialog.ActionArea Gtk.HButtonBox w4 = this.ActionArea; w4.Name = "dialog1_ActionArea"; w4.Spacing = 10; w4.BorderWidth = ((uint)(5)); w4.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 w5 = ((Gtk.ButtonBox.ButtonBoxChild)(w4[this.buttonCancel])); w5.Expand = false; w5.Fill = false; if ((this.Child != null)) { this.Child.ShowAll(); } this.DefaultWidth = 400; this.DefaultHeight = 114; this.Hide(); }
public void GetPreviewImage(Gtk.ProgressBar bar) { try{ if (!localPreviewExists) { DownloadFile(PreviewUrl, LocalPreviewFile, bar); localPreviewExists = true; } } catch (Exception ex) { Console.WriteLine("Exception occured in GetPreviewImage"); localPreviewExists = false; throw ex; } }
/// <summary> /// Function that animate the word "LOADING...", during /// function calls /// </summary> public static void IterateLoad(ref Gtk.ProgressBar oneProgressBar) { if (oneProgressBar.Text != "LOADING...") { if (oneProgressBar.Text == "") { oneProgressBar.Text += "L"; } else if (oneProgressBar.Text == "L") { oneProgressBar.Text += "O"; } else if (oneProgressBar.Text == "LO") { oneProgressBar.Text += "A"; } else if (oneProgressBar.Text == "LOA") { oneProgressBar.Text += "D"; } else if (oneProgressBar.Text == "LOAD") { oneProgressBar.Text += "I"; } else if (oneProgressBar.Text == "LOADI") { oneProgressBar.Text += "N"; } else if (oneProgressBar.Text == "LOADIN") { oneProgressBar.Text += "G"; } else if (oneProgressBar.Text == "LOADING") { oneProgressBar.Text += "."; } else if (oneProgressBar.Text == "LOADING.") { oneProgressBar.Text += "."; } else if (oneProgressBar.Text == "LOADING..") { oneProgressBar.Text += "."; } } else { oneProgressBar.Text = ""; } }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget ocmgtk.WebBrowser this.WidthRequest = 800; this.HeightRequest = 500; this.Name = "ocmgtk.WebBrowser"; this.Title = Mono.Unix.Catalog.GetString("WebBrowser"); this.WindowPosition = ((Gtk.WindowPosition)(4)); // Container child ocmgtk.WebBrowser.Gtk.Container+ContainerChild this.vbox2 = new Gtk.VBox(); this.vbox2.Name = "vbox2"; this.vbox2.Spacing = 6; // Container child vbox2.Gtk.Box+BoxChild this.browserScroll = new Gtk.ScrolledWindow(); this.browserScroll.CanFocus = true; this.browserScroll.Name = "browserScroll"; this.browserScroll.ShadowType = ((Gtk.ShadowType)(1)); this.vbox2.Add(this.browserScroll); Gtk.Box.BoxChild w1 = ((Gtk.Box.BoxChild)(this.vbox2[this.browserScroll])); w1.Position = 0; // Container child vbox2.Gtk.Box+BoxChild this.browserStatus = new Gtk.Statusbar(); this.browserStatus.Name = "browserStatus"; this.browserStatus.Spacing = 6; // Container child browserStatus.Gtk.Box+BoxChild this.browserProgress = new Gtk.ProgressBar(); this.browserProgress.WidthRequest = 150; this.browserProgress.Name = "browserProgress"; this.browserStatus.Add(this.browserProgress); Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.browserStatus[this.browserProgress])); w2.Position = 2; w2.Expand = false; w2.Fill = false; this.vbox2.Add(this.browserStatus); Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox2[this.browserStatus])); w3.Position = 1; w3.Expand = false; w3.Fill = false; this.Add(this.vbox2); if ((this.Child != null)) { this.Child.ShowAll(); } this.DefaultWidth = 812; this.DefaultHeight = 627; this.Show(); }
//true if an update is available; false if not or an error occured public static bool IsAnUpdateAvailable(string UpdateUrl, Gtk.ProgressBar bar, out string NewestVersionNumberOnServer, out string DownloadLocation, CConfiguration config) { NewestVersionNumberOnServer = CConfiguration.Version; DownloadLocation = ""; try { string localUpdateFile = Environment.GetFolderPath(Environment.SpecialFolder.Personal) + Path.DirectorySeparatorChar + Path.GetFileName(UpdateUrl); new CFileDownloader(config).DownloadFile(UpdateUrl, localUpdateFile, bar); // version information contains the text "x.x.x" (without the quotes) and the download location in the second row if (File.Exists(localUpdateFile)) { TextReader tr = new StreamReader(localUpdateFile); string newestVer = tr.ReadLine(); //Get the appropriate download location (Releasename@Location) while (true) { DownloadLocation = tr.ReadLine(); if (DownloadLocation != null) { if (DownloadLocation.ToLower().Contains(config.DistributionVersion.ToString().ToLower() + '@')) { int pos = DownloadLocation.IndexOf('@') + 1; DownloadLocation = DownloadLocation.Substring(pos); break; } } else { break; } } System.Console.WriteLine(DownloadLocation); tr.Close(); tr = null; File.Delete(localUpdateFile); string shortVersionFromFile = newestVer.Replace(".", String.Empty); string shortVersionFromApp = CConfiguration.Version.Replace(".", String.Empty); NewestVersionNumberOnServer = newestVer; return(Convert.ToInt32(shortVersionFromApp) < Convert.ToInt32(shortVersionFromFile)); } else { return(false); } } catch { Console.WriteLine("Unable to get version information from " + UpdateUrl); return(false); } }
private void InitializeDownloadBar(Gtk.ProgressBar bar, Int64 fileSize, int bufferSize) { if (bar != null) { if (fileSize > 0) { bar.Text = Catalog.GetString("Initialize download"); bar.PulseStep = 1.0 / (fileSize / bufferSize); bar.Fraction = 0.0; } else { bar.Text = Catalog.GetString("downloading... (no progress available)"); bar.PulseStep = 0.005; bar.Fraction = 1.0; } } }
// TODO: Create a class Archive.cs and do all the archiving stuff there! This is just copy and paste crap public static ArrayList UncompressTarFile(string Filename, string To, Gtk.ProgressBar bar) { ArrayList entries = new ArrayList(); try{ TarInputStream tarIn = new TarInputStream(File.OpenRead(Filename)); TarEntry entry; while ((entry = tarIn.GetNextEntry()) != null) { string savepath = Path.GetDirectoryName(To + entry.Name); if (!Directory.Exists(savepath)) { Directory.CreateDirectory(savepath); //Console.WriteLine(Path.GetDirectoryName(entry.Name)); } entries.Add(Path.GetDirectoryName(entry.Name)); if (!entry.IsDirectory) { FileStream streamWriter = File.Create(To + entry.Name); long size = entry.Size; byte[] data = new byte[size]; while (true) { size = tarIn.Read(data, 0, data.Length); if (size > 0) { streamWriter.Write(data, 0, (int)size); } else { break; } } streamWriter.Close(); } } Console.WriteLine("Deflating the tar file done!"); return(entries); } catch (Exception e) { Console.WriteLine("An exception occured while deflating the tar file: " + e.Message); return(entries); } }
/// <summary> /// Function that animate the word "ACTUALIZING...", during /// function calls /// </summary> public static void IterateActualize(ref Gtk.ProgressBar oneProgressBar) { if (oneProgressBar.Text != "ACTUALIZING...") { if (oneProgressBar.Text == "") { oneProgressBar.Text += "AC"; } else if (oneProgressBar.Text == "AC") { oneProgressBar.Text += "TU"; } else if (oneProgressBar.Text == "ACTU") { oneProgressBar.Text += "AL"; } else if (oneProgressBar.Text == "ACTUAL") { oneProgressBar.Text += "IZ"; } else if (oneProgressBar.Text == "ACTUALIZ") { oneProgressBar.Text += "IN"; } else if (oneProgressBar.Text == "ACTUALIZIN") { oneProgressBar.Text += "G."; } else if (oneProgressBar.Text == "ACTUALIZING.") { oneProgressBar.Text += ".."; } } else { oneProgressBar.Text = ""; } }
// TODO: Create a class Archive.cs and do all the archiving stuff there! This is just copy and paste crap public static ArrayList UncompressZipFile(string Filename, string To, Gtk.ProgressBar bar) { ArrayList entries = new ArrayList(); try{ ZipInputStream zipIn = new ZipInputStream(File.OpenRead(Filename)); ZipEntry entry; while ((entry = zipIn.GetNextEntry()) != null) { if (entry.IsDirectory) { entries.Add(entry.Name); } FileStream streamWriter = File.Create(To + entry.Name); long size = entry.Size; byte[] data = new byte[size]; while (true) { size = zipIn.Read(data, 0, data.Length); if (size > 0) { streamWriter.Write(data, 0, (int)size); } else { break; } } streamWriter.Close(); } Console.WriteLine("Deflating the zip file done!"); return(entries); } catch (Exception e) { Console.WriteLine("An exception occured while deflating the zip file: " + e.Message); return(entries); } }
public void DownloadFiles(ArrayList FileUrls, ArrayList DownloadLocations, Gtk.ProgressBar bar) { try { if ((FileUrls == null) || (DownloadLocations == null)) { throw new Exception("Files or DownloadLocations may not be null!"); } else if (FileUrls.Count != DownloadLocations.Count) { Console.WriteLine("File and location count are different, using the last entry as a repeatable value"); } StartMassDownloading(); //Todo:unbedingt noch die grenzen der listen beachten for (int i = 0; i < FileUrls.Count; i++) { currentDownloadUrl = (string)FileUrls[i]; currentDownloadLocation = (string)DownloadLocations[i]; DownloadFile(currentDownloadUrl, currentDownloadLocation, bar); } } finally { EndMassDownloading(); } }
public ThreadProgressDialog(Thread thread, int total) { /* * if (parent_window) * this.TransientFor = parent_window; * */ this.Title = thread.Name; this.thread = thread; HasSeparator = false; BorderWidth = 6; SetDefaultSize(300, -1); message_label = new Gtk.Label(String.Empty); VBox.PackStart(message_label, true, true, 12); progress_bar = new Gtk.ProgressBar(); VBox.PackStart(progress_bar, true, true, 6); retry_button = new Gtk.Button(Mono.Unix.Catalog.GetString("Retry")); retry_button.Clicked += new EventHandler(HandleRetryClicked); skip_button = new Gtk.Button(Mono.Unix.Catalog.GetString("Skip")); skip_button.Clicked += new EventHandler(HandleSkipClicked); ActionArea.Add(retry_button); ActionArea.Add(skip_button); button_label = Gtk.Stock.Cancel; button = (Gtk.Button)AddButton(button_label, (int)Gtk.ResponseType.Cancel); delay = new Delay(new GLib.IdleHandler(HandleUpdate)); Response += HandleResponse; Destroyed += HandleDestroy; }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget MonoDevelop.Database.Components.WaitDialog this.Name = "MonoDevelop.Database.Components.WaitDialog"; this.Title = Mono.Unix.Catalog.GetString("WaitDialog"); this.TypeHint = ((Gdk.WindowTypeHint)(6)); this.WindowPosition = ((Gtk.WindowPosition)(1)); this.Modal = true; this.BorderWidth = ((uint)(1)); this.Resizable = false; this.AllowGrow = false; this.Decorated = false; this.SkipTaskbarHint = true; // Container child MonoDevelop.Database.Components.WaitDialog.Gtk.Container+ContainerChild this.vbox = new Gtk.VBox(); this.vbox.Name = "vbox"; this.vbox.Spacing = 6; this.vbox.BorderWidth = ((uint)(6)); // Container child vbox.Gtk.Box+BoxChild this.hbox2 = new Gtk.HBox(); this.hbox2.Name = "hbox2"; this.hbox2.Spacing = 6; // Container child hbox2.Gtk.Box+BoxChild this.image = new Gtk.Image(); this.image.Name = "image"; this.image.Xalign = 0F; this.image.Yalign = 0F; this.image.Pixbuf = Stetic.IconLoader.LoadIcon(this, "stock_alarm", Gtk.IconSize.Dialog, 48); this.hbox2.Add(this.image); Gtk.Box.BoxChild w1 = ((Gtk.Box.BoxChild)(this.hbox2[this.image])); w1.Position = 0; w1.Expand = false; w1.Fill = false; // Container child hbox2.Gtk.Box+BoxChild this.label = new Gtk.Label(); this.label.Name = "label"; this.label.Xalign = 0F; this.label.Yalign = 0F; this.label.LabelProp = Mono.Unix.Catalog.GetString("Please wait"); this.hbox2.Add(this.label); Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.hbox2[this.label])); w2.Position = 1; this.vbox.Add(this.hbox2); Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox[this.hbox2])); w3.Position = 0; w3.Expand = false; w3.Fill = false; // Container child vbox.Gtk.Box+BoxChild this.progressbar = new Gtk.ProgressBar(); this.progressbar.Name = "progressbar"; this.vbox.Add(this.progressbar); Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.vbox[this.progressbar])); w4.Position = 1; w4.Expand = false; w4.Fill = false; this.Add(this.vbox); if ((this.Child != null)) { this.Child.ShowAll(); } this.DefaultWidth = 400; this.DefaultHeight = 114; this.Show(); }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget ocmgtk.LoggingDialog this.Name = "ocmgtk.LoggingDialog"; this.Title = Mono.Unix.Catalog.GetString("Log Cache..."); this.WindowPosition = ((Gtk.WindowPosition)(4)); // Internal child ocmgtk.LoggingDialog.VBox Gtk.VBox w1 = this.VBox; w1.Name = "dialog1_VBox"; w1.BorderWidth = ((uint)(2)); // Container child dialog1_VBox.Gtk.Box+BoxChild this.hbox1 = new Gtk.HBox(); this.hbox1.Name = "hbox1"; this.hbox1.Spacing = 6; this.hbox1.BorderWidth = ((uint)(6)); // Container child hbox1.Gtk.Box+BoxChild this.image35 = new Gtk.Image(); this.image35.Name = "image35"; this.image35.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-dialog-info", Gtk.IconSize.Button, 20); this.hbox1.Add(this.image35); Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.hbox1[this.image35])); w2.Position = 0; w2.Expand = false; w2.Fill = false; // Container child hbox1.Gtk.Box+BoxChild this.label1 = new Gtk.Label(); this.label1.Name = "label1"; this.label1.Xalign = 0F; this.label1.LabelProp = Mono.Unix.Catalog.GetString("After completing your log online, click \"Close\" to return to OCM. To use offline logging, goto <b>Cache → Log to Field Notes File </b>"); this.label1.UseMarkup = true; this.label1.Wrap = true; this.label1.WidthChars = 100; this.hbox1.Add(this.label1); Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.hbox1[this.label1])); w3.Position = 1; w1.Add(this.hbox1); Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(w1[this.hbox1])); w4.Position = 0; w4.Expand = false; w4.Fill = false; // Container child dialog1_VBox.Gtk.Box+BoxChild this.scrolledWindow = new Gtk.ScrolledWindow(); this.scrolledWindow.CanFocus = true; this.scrolledWindow.Name = "scrolledWindow"; this.scrolledWindow.ShadowType = ((Gtk.ShadowType)(1)); w1.Add(this.scrolledWindow); Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(w1[this.scrolledWindow])); w5.Position = 1; // Container child dialog1_VBox.Gtk.Box+BoxChild this.hbox2 = new Gtk.HBox(); this.hbox2.Name = "hbox2"; this.hbox2.Spacing = 6; // Container child hbox2.Gtk.Box+BoxChild this.label2 = new Gtk.Label(); this.label2.Name = "label2"; this.hbox2.Add(this.label2); Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(this.hbox2[this.label2])); w6.Position = 0; w6.Fill = false; // Container child hbox2.Gtk.Box+BoxChild this.loadProgressBar = new Gtk.ProgressBar(); this.loadProgressBar.WidthRequest = 150; this.loadProgressBar.Name = "loadProgressBar"; this.hbox2.Add(this.loadProgressBar); Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(this.hbox2[this.loadProgressBar])); w7.Position = 1; w7.Expand = false; w1.Add(this.hbox2); Gtk.Box.BoxChild w8 = ((Gtk.Box.BoxChild)(w1[this.hbox2])); w8.Position = 2; w8.Expand = false; w8.Fill = false; // Internal child ocmgtk.LoggingDialog.ActionArea Gtk.HButtonBox w9 = this.ActionArea; w9.Name = "dialog1_ActionArea"; w9.Spacing = 10; w9.BorderWidth = ((uint)(5)); w9.LayoutStyle = ((Gtk.ButtonBoxStyle)(4)); // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild this.buttonClose = new Gtk.Button(); this.buttonClose.CanDefault = true; this.buttonClose.CanFocus = true; this.buttonClose.Name = "buttonClose"; this.buttonClose.UseStock = true; this.buttonClose.UseUnderline = true; this.buttonClose.Label = "gtk-close"; this.AddActionWidget(this.buttonClose, -7); Gtk.ButtonBox.ButtonBoxChild w10 = ((Gtk.ButtonBox.ButtonBoxChild)(w9[this.buttonClose])); w10.Expand = false; w10.Fill = false; if ((this.Child != null)) { this.Child.ShowAll(); } this.DefaultWidth = 750; this.DefaultHeight = 485; this.Show(); this.buttonClose.Clicked += new System.EventHandler(this.OnCloseClicked); }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget SimpleDownloader.MainWindow this.Name = "SimpleDownloader.MainWindow"; this.Title = Mono.Unix.Catalog.GetString("Simple Downloader"); this.WindowPosition = ((Gtk.WindowPosition)(4)); // Container child SimpleDownloader.MainWindow.Gtk.Container+ContainerChild this.vbox4 = new Gtk.VBox(); this.vbox4.Name = "vbox4"; this.vbox4.Spacing = 6; // Container child vbox4.Gtk.Box+BoxChild this.table2 = new Gtk.Table(((uint)(2)), ((uint)(2)), false); this.table2.RowSpacing = ((uint)(6)); this.table2.ColumnSpacing = ((uint)(6)); // Container child table2.Gtk.Table+TableChild this.downloadPath = new Gtk.FileChooserButton(Mono.Unix.Catalog.GetString("Datei auswählen"), ((Gtk.FileChooserAction)(0))); this.downloadPath.Name = "downloadPath"; this.table2.Add(this.downloadPath); Gtk.Table.TableChild w1 = ((Gtk.Table.TableChild)(this.table2[this.downloadPath])); w1.TopAttach = ((uint)(1)); w1.BottomAttach = ((uint)(2)); w1.LeftAttach = ((uint)(1)); w1.RightAttach = ((uint)(2)); w1.YOptions = ((Gtk.AttachOptions)(4)); // Container child table2.Gtk.Table+TableChild this.downloadUrl = new Gtk.Entry(); this.downloadUrl.CanFocus = true; this.downloadUrl.Name = "downloadUrl"; this.downloadUrl.IsEditable = true; this.downloadUrl.InvisibleChar = '●'; this.table2.Add(this.downloadUrl); Gtk.Table.TableChild w2 = ((Gtk.Table.TableChild)(this.table2[this.downloadUrl])); w2.LeftAttach = ((uint)(1)); w2.RightAttach = ((uint)(2)); w2.YOptions = ((Gtk.AttachOptions)(4)); // Container child table2.Gtk.Table+TableChild this.label5 = new Gtk.Label(); this.label5.Name = "label5"; this.label5.LabelProp = Mono.Unix.Catalog.GetString("Download URL:"); this.table2.Add(this.label5); Gtk.Table.TableChild w3 = ((Gtk.Table.TableChild)(this.table2[this.label5])); w3.XOptions = ((Gtk.AttachOptions)(4)); w3.YOptions = ((Gtk.AttachOptions)(4)); // Container child table2.Gtk.Table+TableChild this.label6 = new Gtk.Label(); this.label6.Name = "label6"; this.label6.LabelProp = Mono.Unix.Catalog.GetString("Download Path:"); this.table2.Add(this.label6); Gtk.Table.TableChild w4 = ((Gtk.Table.TableChild)(this.table2[this.label6])); w4.TopAttach = ((uint)(1)); w4.BottomAttach = ((uint)(2)); w4.XOptions = ((Gtk.AttachOptions)(4)); w4.YOptions = ((Gtk.AttachOptions)(4)); this.vbox4.Add(this.table2); Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.vbox4[this.table2])); w5.Position = 0; w5.Expand = false; w5.Fill = false; // Container child vbox4.Gtk.Box+BoxChild this.hbox3 = new Gtk.HBox(); this.hbox3.Name = "hbox3"; this.hbox3.Spacing = 6; // Container child hbox3.Gtk.Box+BoxChild this.alignment1 = new Gtk.Alignment(0.5F, 0.5F, 1F, 1F); this.alignment1.Name = "alignment1"; this.hbox3.Add(this.alignment1); Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(this.hbox3[this.alignment1])); w6.Position = 0; // Container child hbox3.Gtk.Box+BoxChild this.stopButton = new Gtk.Button(); this.stopButton.CanFocus = true; this.stopButton.Name = "stopButton"; this.stopButton.UseUnderline = true; this.stopButton.Label = Mono.Unix.Catalog.GetString("Stop"); this.hbox3.Add(this.stopButton); Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(this.hbox3[this.stopButton])); w7.Position = 1; w7.Expand = false; w7.Fill = false; // Container child hbox3.Gtk.Box+BoxChild this.downloadButton = new Gtk.Button(); this.downloadButton.CanFocus = true; this.downloadButton.Name = "downloadButton"; this.downloadButton.UseUnderline = true; // Container child downloadButton.Gtk.Container+ContainerChild Gtk.Alignment w8 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w9 = new Gtk.HBox(); w9.Spacing = 2; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w10 = new Gtk.Image(); w10.Pixbuf = Stetic.IconLoader.LoadIcon(this, "down", Gtk.IconSize.Menu, 16); w9.Add(w10); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w12 = new Gtk.Label(); w12.LabelProp = Mono.Unix.Catalog.GetString("Download"); w12.UseUnderline = true; w9.Add(w12); w8.Add(w9); this.downloadButton.Add(w8); this.hbox3.Add(this.downloadButton); Gtk.Box.BoxChild w16 = ((Gtk.Box.BoxChild)(this.hbox3[this.downloadButton])); w16.Position = 2; w16.Expand = false; w16.Fill = false; this.vbox4.Add(this.hbox3); Gtk.Box.BoxChild w17 = ((Gtk.Box.BoxChild)(this.vbox4[this.hbox3])); w17.Position = 1; w17.Expand = false; w17.Fill = false; // Container child vbox4.Gtk.Box+BoxChild this.downloadProgressBar = new Gtk.ProgressBar(); this.downloadProgressBar.Name = "downloadProgressBar"; this.vbox4.Add(this.downloadProgressBar); Gtk.Box.BoxChild w18 = ((Gtk.Box.BoxChild)(this.vbox4[this.downloadProgressBar])); w18.Position = 2; w18.Expand = false; w18.Fill = false; // Container child vbox4.Gtk.Box+BoxChild this.progressLabel = new Gtk.Label(); this.progressLabel.Name = "progressLabel"; this.progressLabel.LabelProp = Mono.Unix.Catalog.GetString("Waiting for download"); this.vbox4.Add(this.progressLabel); Gtk.Box.BoxChild w19 = ((Gtk.Box.BoxChild)(this.vbox4[this.progressLabel])); w19.Position = 3; w19.Expand = false; w19.Fill = false; this.Add(this.vbox4); if ((this.Child != null)) { this.Child.ShowAll(); } this.DefaultWidth = 458; this.DefaultHeight = 172; this.Show(); this.DeleteEvent += new Gtk.DeleteEventHandler(this.OnDeleteEvent); this.stopButton.Clicked += new System.EventHandler(this.OnStopButtonClicked); this.downloadButton.Clicked += new System.EventHandler(this.OnDownloadButtonClicked); }
public MainWindow() : base("Smuxi") { // restore window size / position int width, heigth; if (Frontend.FrontendConfig[Frontend.UIName + "/Interface/Width"] != null) { width = (int) Frontend.FrontendConfig[Frontend.UIName + "/Interface/Width"]; } else { width = 800; } if (Frontend.FrontendConfig[Frontend.UIName + "/Interface/Heigth"] != null) { heigth = (int) Frontend.FrontendConfig[Frontend.UIName + "/Interface/Heigth"]; } else { heigth = 600; } if (width == -1 && heigth == -1) { SetDefaultSize(800, 600); Maximize(); } else if (width == 0 && heigth == 0) { // HACK: map 0/0 to default size as it crashes on Windows :/ SetDefaultSize(800, 600); } else { SetDefaultSize(width, heigth); } int x, y; if (Frontend.FrontendConfig[Frontend.UIName + "/Interface/XPosition"] != null) { x = (int) Frontend.FrontendConfig[Frontend.UIName + "/Interface/XPosition"]; } else { x = 0; } if (Frontend.FrontendConfig[Frontend.UIName + "/Interface/YPosition"] != null) { y = (int) Frontend.FrontendConfig[Frontend.UIName + "/Interface/YPosition"]; } else { y = 0; } if (x == 0 && y == 0) { SetPosition(Gtk.WindowPosition.Center); } else { Move(x, y); } DeleteEvent += OnDeleteEvent; FocusInEvent += OnFocusInEvent; FocusOutEvent += OnFocusOutEvent; WindowStateEvent += OnWindowStateEvent; Gtk.AccelGroup agrp = new Gtk.AccelGroup(); Gtk.AccelKey akey; AddAccelGroup(agrp); // Menu _MenuBar = new Gtk.MenuBar(); Gtk.Menu menu; Gtk.MenuItem item; Gtk.ImageMenuItem image_item; // Menu - File menu = new Gtk.Menu(); item = new Gtk.MenuItem(_("_File")); item.Submenu = menu; _MenuBar.Append(item); item = new Gtk.ImageMenuItem(Gtk.Stock.Preferences, agrp); item.Activated += new EventHandler(_OnPreferencesButtonClicked); menu.Append(item); menu.Append(new Gtk.SeparatorMenuItem()); item = new Gtk.ImageMenuItem(Gtk.Stock.Quit, agrp); item.Activated += new EventHandler(_OnQuitButtonClicked); menu.Append(item); // Menu - Server menu = new Gtk.Menu(); item = new Gtk.MenuItem(_("_Server")); item.Submenu = menu; _MenuBar.Append(item); image_item = new Gtk.ImageMenuItem(_("_Quick Connect")); image_item.Image = new Gtk.Image(Gtk.Stock.Connect, Gtk.IconSize.Menu); image_item.Activated += OnServerQuickConnectButtonClicked; menu.Append(image_item); menu.Append(new Gtk.SeparatorMenuItem()); image_item = new Gtk.ImageMenuItem(Gtk.Stock.Add, agrp); image_item.Activated += OnServerAddButtonClicked; menu.Append(image_item); image_item = new Gtk.ImageMenuItem(_("_Manage")); image_item.Image = new Gtk.Image(Gtk.Stock.Edit, Gtk.IconSize.Menu); image_item.Activated += OnServerManageServersButtonClicked; menu.Append(image_item); // Menu - Chat menu = new Gtk.Menu(); item = new Gtk.MenuItem(_("_Chat")); item.Submenu = menu; _MenuBar.Append(item); _OpenChatMenuItem = new Gtk.ImageMenuItem(_("Open / Join Chat")); _OpenChatMenuItem.Image = new Gtk.Image(Gtk.Stock.Open, Gtk.IconSize.Menu); _OpenChatMenuItem.Activated += OnChatOpenChatButtonClicked; _OpenChatMenuItem.Sensitive = false; menu.Append(_OpenChatMenuItem); _FindGroupChatMenuItem = new Gtk.ImageMenuItem(_("_Find Group Chat")); _FindGroupChatMenuItem.Image = new Gtk.Image(Gtk.Stock.Find, Gtk.IconSize.Menu); _FindGroupChatMenuItem.Activated += OnChatFindGroupChatButtonClicked; _FindGroupChatMenuItem.Sensitive = false; menu.Append(_FindGroupChatMenuItem); image_item = new Gtk.ImageMenuItem(_("C_lear All Activity")); image_item.Image = new Gtk.Image(Gtk.Stock.Clear, Gtk.IconSize.Menu); image_item.Activated += OnChatClearAllActivityButtonClicked; menu.Append(image_item); menu.Append(new Gtk.SeparatorMenuItem()); image_item = new Gtk.ImageMenuItem(_("_Next Chat")); image_item.Image = new Gtk.Image(Gtk.Stock.GoForward, Gtk.IconSize.Menu); image_item.Activated += OnNextChatMenuItemActivated; akey = new Gtk.AccelKey(); akey.AccelFlags = Gtk.AccelFlags.Visible; akey.AccelMods = Gdk.ModifierType.ControlMask; akey.Key = Gdk.Key.Page_Down; image_item.AddAccelerator("activate", agrp, akey); menu.Append(image_item); image_item = new Gtk.ImageMenuItem(_("_Previous Chat")); image_item.Image = new Gtk.Image(Gtk.Stock.GoBack, Gtk.IconSize.Menu); image_item.Activated += OnPreviousChatMenuItemActivated; akey = new Gtk.AccelKey(); akey.AccelFlags = Gtk.AccelFlags.Visible; akey.AccelMods = Gdk.ModifierType.ControlMask; akey.Key = Gdk.Key.Page_Up; image_item.AddAccelerator("activate", agrp, akey); menu.Append(image_item); menu.Append(new Gtk.SeparatorMenuItem()); /* // TODO: make a radio item for each chat hotkey Gtk.RadioMenuItem radio_item; radio_item = new Gtk.RadioMenuItem(); radio_item = new Gtk.RadioMenuItem(radio_item); radio_item = new Gtk.RadioMenuItem(radio_item); menu.Append(new Gtk.SeparatorMenuItem()); */ /* image_item = new Gtk.ImageMenuItem(Gtk.Stock.Find, agrp); image_item.Activated += OnFindChatMenuItemActivated; menu.Append(image_item); item = new Gtk.MenuItem(_("Find _Next")); item.Activated += OnFindNextChatMenuItemActivated; akey = new Gtk.AccelKey(); akey.AccelFlags = Gtk.AccelFlags.Visible; akey.AccelMods = Gdk.ModifierType.ControlMask; akey.Key = Gdk.Key.G; item.AddAccelerator("activate", agrp, akey); menu.Append(item); item = new Gtk.MenuItem(_("Find _Previous")); item.Activated += OnFindPreviousChatMenuItemActivated; akey = new Gtk.AccelKey(); akey.AccelFlags = Gtk.AccelFlags.Visible; akey.AccelMods = Gdk.ModifierType.ControlMask | Gdk.ModifierType.ShiftMask; akey.Key = Gdk.Key.G; item.AddAccelerator("activate", agrp, akey); menu.Append(item); */ // ROFL: the empty code statement below is needed to keep stupid // gettext away from using all the commented code from above as // translator comment ; _OpenLogChatMenuItem = new Gtk.ImageMenuItem(_("Open Log")); _OpenLogChatMenuItem.Image = new Gtk.Image(Gtk.Stock.Open, Gtk.IconSize.Menu); _OpenLogChatMenuItem.Activated += OnOpenLogChatMenuItemActivated; _OpenLogChatMenuItem.Sensitive = false; _OpenLogChatMenuItem.NoShowAll = true; menu.Append(_OpenLogChatMenuItem); _CloseChatMenuItem = new Gtk.ImageMenuItem(Gtk.Stock.Close, agrp); _CloseChatMenuItem.Activated += OnCloseChatMenuItemActivated; menu.Append(_CloseChatMenuItem); // Menu - Engine menu = new Gtk.Menu(); item = new Gtk.MenuItem(_("_Engine")); item.Submenu = menu; _MenuBar.Append(item); item = new Gtk.MenuItem(_("_Use Local Engine")); item.Activated += new EventHandler(_OnUseLocalEngineButtonClicked); menu.Append(item); menu.Append(new Gtk.SeparatorMenuItem()); image_item = new Gtk.ImageMenuItem(_("_Add Remote Engine")); image_item.Image = new Gtk.Image(Gtk.Stock.Add, Gtk.IconSize.Menu); image_item.Activated += new EventHandler(_OnAddRemoteEngineButtonClicked); menu.Append(image_item); image_item = new Gtk.ImageMenuItem(_("_Switch Remote Engine")); image_item.Image = new Gtk.Image(Gtk.Stock.Refresh, Gtk.IconSize.Menu); image_item.Activated += new EventHandler(_OnSwitchRemoteEngineButtonClicked); menu.Append(image_item); // Menu - View menu = new Gtk.Menu(); item = new Gtk.MenuItem(_("_View")); item.Submenu = menu; _MenuBar.Append(item); item = new Gtk.CheckMenuItem(_("_Caret Mode")); item.Activated += new EventHandler(_OnCaretModeButtonClicked); akey = new Gtk.AccelKey(); akey.AccelFlags = Gtk.AccelFlags.Visible; akey.Key = Gdk.Key.F7; item.AddAccelerator("activate", agrp, akey); menu.Append(item); item = new Gtk.CheckMenuItem(_("_Browse Mode")); item.Activated += delegate { try { _Notebook.IsBrowseModeEnabled = !_Notebook.IsBrowseModeEnabled; } catch (Exception ex) { Frontend.ShowException(this, ex); } }; akey = new Gtk.AccelKey(); akey.AccelFlags = Gtk.AccelFlags.Visible; akey.Key = Gdk.Key.F8; item.AddAccelerator("activate", agrp, akey); menu.Append(item); _ShowMenuBarItem = new Gtk.CheckMenuItem(_("Show _Menubar")); _ShowMenuBarItem.Active = true; _ShowMenuBarItem.Activated += delegate { try { _MenuBar.Visible = !_MenuBar.Visible; } catch (Exception ex) { Frontend.ShowException(this, ex); } }; menu.Append(_ShowMenuBarItem); item = new Gtk.ImageMenuItem(Gtk.Stock.Fullscreen, agrp); item.Activated += delegate { try { IsFullscreen = !IsFullscreen; } catch (Exception ex) { Frontend.ShowException(this, ex); } }; akey = new Gtk.AccelKey(); akey.AccelFlags = Gtk.AccelFlags.Visible; akey.Key = Gdk.Key.F11; item.AddAccelerator("activate", agrp, akey); menu.Append(item); // Menu - Help menu = new Gtk.Menu(); item = new Gtk.MenuItem(_("_Help")); item.Submenu = menu; _MenuBar.Append(item); image_item = new Gtk.ImageMenuItem(Gtk.Stock.About, agrp); image_item.Activated += new EventHandler(_OnAboutButtonClicked); menu.Append(image_item); // TODO: network treeview _Notebook = new Notebook(); _Notebook.SwitchPage += OnNotebookSwitchPage; _ChatViewManager = new ChatViewManager(_Notebook, null); Assembly asm = Assembly.GetExecutingAssembly(); _ChatViewManager.Load(asm); _ChatViewManager.LoadAll(System.IO.Path.GetDirectoryName(asm.Location), "smuxi-frontend-gnome-*.dll"); _ChatViewManager.ChatAdded += OnChatViewManagerChatAdded; _ChatViewManager.ChatRemoved += OnChatViewManagerChatRemoved; #if GTK_SHARP_2_10 _StatusIconManager = new StatusIconManager(this, _ChatViewManager); #endif #if INDICATE_SHARP _IndicateManager = new IndicateManager(this, _ChatViewManager); #endif #if NOTIFY_SHARP _NotifyManager = new NotifyManager(this, _ChatViewManager); #endif _UI = new GnomeUI(_ChatViewManager); // HACK: Frontend.FrontendConfig out of scope _EngineManager = new EngineManager(Frontend.FrontendConfig, _UI); _Entry = new Entry(_Notebook); _ProgressBar = new Gtk.ProgressBar(); Gtk.VBox vbox = new Gtk.VBox(); vbox.PackStart(_MenuBar, false, false, 0); vbox.PackStart(_Notebook, true, true, 0); vbox.PackStart(_Entry, false, false, 0); _NetworkStatusbar = new Gtk.Statusbar(); _NetworkStatusbar.WidthRequest = 300; _NetworkStatusbar.HasResizeGrip = false; _Statusbar = new Gtk.Statusbar(); _Statusbar.HasResizeGrip = false; Gtk.HBox status_bar_hbox = new Gtk.HBox(); status_bar_hbox.Homogeneous = true; status_bar_hbox.PackStart(_NetworkStatusbar, false, true, 0); status_bar_hbox.PackStart(_Statusbar, true, true, 0); Gtk.HBox status_hbox = new Gtk.HBox(); status_hbox.PackStart(status_bar_hbox); status_hbox.PackStart(_ProgressBar, false, false, 0); vbox.PackStart(status_hbox, false, false, 0); Add(vbox); }
protected virtual void Build() { Stetic.Gui.Initialize(); // Widget Mono.Addins.Gui.AddinInstallDialog this.Name = "Mono.Addins.Gui.AddinInstallDialog"; this.Title = Mono.Unix.Catalog.GetString("Add-in Installation"); this.TypeHint = ((Gdk.WindowTypeHint)(1)); this.Modal = true; this.DefaultWidth = 725; this.DefaultHeight = 550; // Internal child Mono.Addins.Gui.AddinInstallDialog.VBox Gtk.VBox w1 = this.VBox; w1.Name = "dialog-vbox9"; w1.BorderWidth = ((uint)(2)); // Container child dialog-vbox9.Gtk.Box+BoxChild this.wizardNotebook = new Gtk.Notebook(); this.wizardNotebook.CanFocus = true; this.wizardNotebook.Name = "wizardNotebook"; this.wizardNotebook.CurrentPage = 0; this.wizardNotebook.ShowBorder = false; this.wizardNotebook.BorderWidth = ((uint)(12)); // Container child wizardNotebook.Gtk.Notebook+NotebookChild this.vbox82 = new Gtk.VBox(); this.vbox82.Name = "vbox82"; this.vbox82.Spacing = 12; // Container child vbox82.Gtk.Box+BoxChild this.label113 = new Gtk.Label(); this.label113.Name = "label113"; this.label113.Xalign = 0F; this.label113.LabelProp = Mono.Unix.Catalog.GetString("<b>Select the add-ins to install and click on Next</b>"); this.label113.UseMarkup = true; this.vbox82.Add(this.label113); Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.vbox82[this.label113])); w2.Position = 0; w2.Expand = false; w2.Fill = false; // Container child vbox82.Gtk.Box+BoxChild this.hbox66 = new Gtk.HBox(); this.hbox66.Name = "hbox66"; this.hbox66.Spacing = 6; // Container child hbox66.Gtk.Box+BoxChild this.label112 = new Gtk.Label(); this.label112.Name = "label112"; this.label112.LabelProp = Mono.Unix.Catalog.GetString("Install from:"); this.hbox66.Add(this.label112); Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.hbox66[this.label112])); w3.Position = 0; w3.Expand = false; w3.Fill = false; // Container child hbox66.Gtk.Box+BoxChild this.repoCombo = new Gtk.ComboBox(); this.repoCombo.Name = "repoCombo"; this.hbox66.Add(this.repoCombo); Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.hbox66[this.repoCombo])); w4.Position = 1; // Container child hbox66.Gtk.Box+BoxChild 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-refresh"; this.hbox66.Add(this.button1); Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.hbox66[this.button1])); w5.Position = 2; w5.Expand = false; w5.Fill = false; // Container child hbox66.Gtk.Box+BoxChild this.btnManageSites = new Gtk.Button(); this.btnManageSites.CanFocus = true; this.btnManageSites.Name = "btnManageSites"; this.btnManageSites.UseUnderline = true; this.btnManageSites.Label = Mono.Unix.Catalog.GetString("_Repositories..."); this.hbox66.Add(this.btnManageSites); Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(this.hbox66[this.btnManageSites])); w6.Position = 3; w6.Expand = false; w6.Fill = false; this.vbox82.Add(this.hbox66); Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(this.vbox82[this.hbox66])); w7.Position = 1; w7.Expand = false; w7.Fill = false; // Container child vbox82.Gtk.Box+BoxChild this.hbox70 = new Gtk.HBox(); this.hbox70.Name = "hbox70"; this.hbox70.Spacing = 12; // Container child hbox70.Gtk.Box+BoxChild this.vbox92 = new Gtk.VBox(); this.vbox92.Name = "vbox92"; this.vbox92.Spacing = 6; // Container child vbox92.Gtk.Box+BoxChild this.scrolledwindow18 = new Gtk.ScrolledWindow(); this.scrolledwindow18.CanFocus = true; this.scrolledwindow18.Name = "scrolledwindow18"; this.scrolledwindow18.VscrollbarPolicy = ((Gtk.PolicyType)(1)); this.scrolledwindow18.HscrollbarPolicy = ((Gtk.PolicyType)(1)); this.scrolledwindow18.ShadowType = ((Gtk.ShadowType)(1)); // Container child scrolledwindow18.Gtk.Container+ContainerChild this.addinTree = new Gtk.TreeView(); this.addinTree.CanFocus = true; this.addinTree.Name = "addinTree"; this.scrolledwindow18.Add(this.addinTree); this.vbox92.Add(this.scrolledwindow18); Gtk.Box.BoxChild w9 = ((Gtk.Box.BoxChild)(this.vbox92[this.scrolledwindow18])); w9.Position = 0; // Container child vbox92.Gtk.Box+BoxChild this.hbox83 = new Gtk.HBox(); this.hbox83.Name = "hbox83"; this.hbox83.Spacing = 6; // Container child hbox83.Gtk.Box+BoxChild this.filterComboBox = Gtk.ComboBox.NewText(); this.filterComboBox.AppendText(Mono.Unix.Catalog.GetString("Show all packages")); this.filterComboBox.AppendText(Mono.Unix.Catalog.GetString("Show new versions only")); this.filterComboBox.AppendText(Mono.Unix.Catalog.GetString("Show updates only")); this.filterComboBox.Name = "filterComboBox"; this.hbox83.Add(this.filterComboBox); Gtk.Box.BoxChild w10 = ((Gtk.Box.BoxChild)(this.hbox83[this.filterComboBox])); w10.Position = 0; w10.Expand = false; w10.Fill = false; // Container child hbox83.Gtk.Box+BoxChild this.btnInfo = new Gtk.Button(); this.btnInfo.CanFocus = true; this.btnInfo.Name = "btnInfo"; this.btnInfo.UseStock = true; this.btnInfo.UseUnderline = true; this.btnInfo.Label = "gtk-dialog-info"; this.hbox83.Add(this.btnInfo); Gtk.Box.BoxChild w11 = ((Gtk.Box.BoxChild)(this.hbox83[this.btnInfo])); w11.PackType = ((Gtk.PackType)(1)); w11.Position = 1; w11.Expand = false; w11.Fill = false; // Container child hbox83.Gtk.Box+BoxChild this.btnUnselectAll = new Gtk.Button(); this.btnUnselectAll.CanFocus = true; this.btnUnselectAll.Name = "btnUnselectAll"; this.btnUnselectAll.UseUnderline = true; this.btnUnselectAll.Label = Mono.Unix.Catalog.GetString("_Unselect All"); this.hbox83.Add(this.btnUnselectAll); Gtk.Box.BoxChild w12 = ((Gtk.Box.BoxChild)(this.hbox83[this.btnUnselectAll])); w12.PackType = ((Gtk.PackType)(1)); w12.Position = 2; w12.Expand = false; w12.Fill = false; // Container child hbox83.Gtk.Box+BoxChild this.btnSelectAll = new Gtk.Button(); this.btnSelectAll.CanFocus = true; this.btnSelectAll.Name = "btnSelectAll"; this.btnSelectAll.UseUnderline = true; this.btnSelectAll.Label = Mono.Unix.Catalog.GetString("Select _All"); this.hbox83.Add(this.btnSelectAll); Gtk.Box.BoxChild w13 = ((Gtk.Box.BoxChild)(this.hbox83[this.btnSelectAll])); w13.PackType = ((Gtk.PackType)(1)); w13.Position = 3; w13.Expand = false; w13.Fill = false; this.vbox92.Add(this.hbox83); Gtk.Box.BoxChild w14 = ((Gtk.Box.BoxChild)(this.vbox92[this.hbox83])); w14.Position = 1; w14.Expand = false; w14.Fill = false; this.hbox70.Add(this.vbox92); Gtk.Box.BoxChild w15 = ((Gtk.Box.BoxChild)(this.hbox70[this.vbox92])); w15.Position = 0; this.vbox82.Add(this.hbox70); Gtk.Box.BoxChild w16 = ((Gtk.Box.BoxChild)(this.vbox82[this.hbox70])); w16.Position = 2; this.wizardNotebook.Add(this.vbox82); Gtk.Notebook.NotebookChild w17 = ((Gtk.Notebook.NotebookChild)(this.wizardNotebook[this.vbox82])); w17.TabExpand = false; // Notebook tab this.label108 = new Gtk.Label(); this.label108.Name = "label108"; this.label108.LabelProp = "label108"; this.wizardNotebook.SetTabLabel(this.vbox82, this.label108); // Container child wizardNotebook.Gtk.Notebook+NotebookChild this.scrolledwindow19 = new Gtk.ScrolledWindow(); this.scrolledwindow19.CanFocus = true; this.scrolledwindow19.Name = "scrolledwindow19"; this.scrolledwindow19.VscrollbarPolicy = ((Gtk.PolicyType)(1)); this.scrolledwindow19.HscrollbarPolicy = ((Gtk.PolicyType)(1)); // Container child scrolledwindow19.Gtk.Container+ContainerChild Gtk.Viewport w18 = new Gtk.Viewport(); w18.Name = "viewport1"; // Container child viewport1.Gtk.Container+ContainerChild this.hbox82 = new Gtk.HBox(); this.hbox82.Name = "hbox82"; this.hbox82.Spacing = 12; this.hbox82.BorderWidth = ((uint)(12)); // Container child hbox82.Gtk.Box+BoxChild this.imageInstall = new Gtk.Image(); this.imageInstall.Name = "imageInstall"; this.imageInstall.Xalign = 0F; this.imageInstall.Yalign = 0F; this.imageInstall.Pixbuf = Stetic.IconLoader.LoadIcon("gtk-dialog-warning", 48); this.hbox82.Add(this.imageInstall); Gtk.Box.BoxChild w19 = ((Gtk.Box.BoxChild)(this.hbox82[this.imageInstall])); w19.Position = 0; w19.Expand = false; w19.Fill = false; // Container child hbox82.Gtk.Box+BoxChild this.labelSummary = new Gtk.Label(); this.labelSummary.Name = "labelSummary"; this.labelSummary.Xpad = 6; this.labelSummary.Ypad = 6; this.labelSummary.Xalign = 0F; this.labelSummary.Yalign = 0F; this.labelSummary.LabelProp = "<b>The following add-ins will be installed:</b>\n\nC# language binding\nC# language IDE extension\n\n<b>The following add-ins are required by the selected add-ins</b>\n\nNUnit add-in\nNAnt add-in\n\nasd\nasd\na\nsd\nasd\nasd\na\nsda\nsd\nas\nda\nsd\nasd\n"; this.labelSummary.UseMarkup = true; this.labelSummary.Wrap = true; this.hbox82.Add(this.labelSummary); Gtk.Box.BoxChild w20 = ((Gtk.Box.BoxChild)(this.hbox82[this.labelSummary])); w20.Position = 1; w20.Expand = false; w20.Fill = false; w18.Add(this.hbox82); this.scrolledwindow19.Add(w18); this.wizardNotebook.Add(this.scrolledwindow19); Gtk.Notebook.NotebookChild w23 = ((Gtk.Notebook.NotebookChild)(this.wizardNotebook[this.scrolledwindow19])); w23.Position = 1; w23.TabExpand = false; // Notebook tab this.label124 = new Gtk.Label(); this.label124.Name = "label124"; this.label124.LabelProp = Mono.Unix.Catalog.GetString("label124"); this.wizardNotebook.SetTabLabel(this.scrolledwindow19, this.label124); // Container child wizardNotebook.Gtk.Notebook+NotebookChild this.vbox86 = new Gtk.VBox(); this.vbox86.Name = "vbox86"; this.vbox86.Spacing = 6; this.vbox86.BorderWidth = ((uint)(116)); // Container child vbox86.Gtk.Box+BoxChild this.label126 = new Gtk.Label(); this.label126.Name = "label126"; this.label126.Xalign = 0F; this.label126.LabelProp = Mono.Unix.Catalog.GetString("Overall Progress:"); this.vbox86.Add(this.label126); Gtk.Box.BoxChild w24 = ((Gtk.Box.BoxChild)(this.vbox86[this.label126])); w24.Position = 0; w24.Expand = false; w24.Fill = false; // Container child vbox86.Gtk.Box+BoxChild this.mainProgressBar = new Gtk.ProgressBar(); this.mainProgressBar.Name = "mainProgressBar"; this.mainProgressBar.PulseStep = 0.10000000149; this.vbox86.Add(this.mainProgressBar); Gtk.Box.BoxChild w25 = ((Gtk.Box.BoxChild)(this.vbox86[this.mainProgressBar])); w25.Position = 1; w25.Expand = false; w25.Fill = false; // Container child vbox86.Gtk.Box+BoxChild this.label129 = new Gtk.Label(); this.label129.Name = "label129"; this.label129.LabelProp = ""; this.vbox86.Add(this.label129); Gtk.Box.BoxChild w26 = ((Gtk.Box.BoxChild)(this.vbox86[this.label129])); w26.Position = 2; w26.Expand = false; w26.Fill = false; // Container child vbox86.Gtk.Box+BoxChild this.progressLabel = new Gtk.Label(); this.progressLabel.Name = "progressLabel"; this.progressLabel.Xalign = 0F; this.progressLabel.LabelProp = Mono.Unix.Catalog.GetString("Downloading add-ins..."); this.vbox86.Add(this.progressLabel); Gtk.Box.BoxChild w27 = ((Gtk.Box.BoxChild)(this.vbox86[this.progressLabel])); w27.Position = 3; w27.Expand = false; w27.Fill = false; // Container child vbox86.Gtk.Box+BoxChild this.progressBar = new Gtk.ProgressBar(); this.progressBar.Name = "progressBar"; this.progressBar.PulseStep = 0.10000000149; this.vbox86.Add(this.progressBar); Gtk.Box.BoxChild w28 = ((Gtk.Box.BoxChild)(this.vbox86[this.progressBar])); w28.Position = 4; w28.Expand = false; w28.Fill = false; this.wizardNotebook.Add(this.vbox86); Gtk.Notebook.NotebookChild w29 = ((Gtk.Notebook.NotebookChild)(this.wizardNotebook[this.vbox86])); w29.Position = 2; w29.TabExpand = false; // Notebook tab this.label110 = new Gtk.Label(); this.label110.Name = "label110"; this.label110.LabelProp = "label110"; this.wizardNotebook.SetTabLabel(this.vbox86, this.label110); // Container child wizardNotebook.Gtk.Notebook+NotebookChild this.scrolledwindow20 = new Gtk.ScrolledWindow(); this.scrolledwindow20.CanFocus = true; this.scrolledwindow20.Name = "scrolledwindow20"; this.scrolledwindow20.VscrollbarPolicy = ((Gtk.PolicyType)(1)); this.scrolledwindow20.HscrollbarPolicy = ((Gtk.PolicyType)(1)); // Container child scrolledwindow20.Gtk.Container+ContainerChild Gtk.Viewport w30 = new Gtk.Viewport(); w30.Name = "viewport3"; // Container child viewport3.Gtk.Container+ContainerChild this.vbox91 = new Gtk.VBox(); this.vbox91.Name = "vbox91"; // Container child vbox91.Gtk.Box+BoxChild this.label130 = new Gtk.Label(); this.label130.Name = "label130"; this.label130.LabelProp = ""; this.vbox91.Add(this.label130); Gtk.Box.BoxChild w31 = ((Gtk.Box.BoxChild)(this.vbox91[this.label130])); w31.Position = 0; // Container child vbox91.Gtk.Box+BoxChild this.imageError = new Gtk.Image(); this.imageError.Name = "imageError"; this.imageError.Yalign = 1F; this.imageError.Pixbuf = Stetic.IconLoader.LoadIcon("gtk-dialog-error", 48); this.vbox91.Add(this.imageError); Gtk.Box.BoxChild w32 = ((Gtk.Box.BoxChild)(this.vbox91[this.imageError])); w32.Position = 1; w32.Expand = false; w32.Fill = false; w32.Padding = ((uint)(5)); // Container child vbox91.Gtk.Box+BoxChild this.imageInfo = new Gtk.Image(); this.imageInfo.Name = "imageInfo"; this.imageInfo.Yalign = 1F; this.imageInfo.Pixbuf = Stetic.IconLoader.LoadIcon("gtk-dialog-info", 48); this.vbox91.Add(this.imageInfo); Gtk.Box.BoxChild w33 = ((Gtk.Box.BoxChild)(this.vbox91[this.imageInfo])); w33.Position = 2; w33.Expand = false; w33.Fill = false; // Container child vbox91.Gtk.Box+BoxChild this.hbox71 = new Gtk.HBox(); this.hbox71.Name = "hbox71"; // Container child hbox71.Gtk.Box+BoxChild this.labelResult = new Gtk.Label(); this.labelResult.WidthRequest = 450; this.labelResult.Name = "labelResult"; this.labelResult.Ypad = 9; this.labelResult.Yalign = 0F; this.labelResult.LabelProp = "Done"; this.labelResult.UseMarkup = true; this.labelResult.Wrap = true; this.labelResult.Justify = ((Gtk.Justification)(2)); this.hbox71.Add(this.labelResult); Gtk.Box.BoxChild w34 = ((Gtk.Box.BoxChild)(this.hbox71[this.labelResult])); w34.PackType = ((Gtk.PackType)(1)); w34.Position = 0; this.vbox91.Add(this.hbox71); Gtk.Box.BoxChild w35 = ((Gtk.Box.BoxChild)(this.vbox91[this.hbox71])); w35.Position = 3; w35.Expand = false; w35.Fill = false; // Container child vbox91.Gtk.Box+BoxChild this.label131 = new Gtk.Label(); this.label131.Name = "label131"; this.label131.LabelProp = ""; this.vbox91.Add(this.label131); Gtk.Box.BoxChild w36 = ((Gtk.Box.BoxChild)(this.vbox91[this.label131])); w36.Position = 4; w30.Add(this.vbox91); this.scrolledwindow20.Add(w30); this.wizardNotebook.Add(this.scrolledwindow20); Gtk.Notebook.NotebookChild w39 = ((Gtk.Notebook.NotebookChild)(this.wizardNotebook[this.scrolledwindow20])); w39.Position = 3; w39.TabExpand = false; // Notebook tab this.label111 = new Gtk.Label(); this.label111.Name = "label111"; this.label111.LabelProp = "label111"; this.wizardNotebook.SetTabLabel(this.scrolledwindow20, this.label111); w1.Add(this.wizardNotebook); Gtk.Box.BoxChild w40 = ((Gtk.Box.BoxChild)(w1[this.wizardNotebook])); w40.Position = 0; // Container child dialog-vbox9.Gtk.Box+BoxChild this.dialog_action_area9 = new Gtk.HButtonBox(); this.dialog_action_area9.Name = "dialog_action_area9"; this.dialog_action_area9.Spacing = 9; this.dialog_action_area9.BorderWidth = ((uint)(6)); this.dialog_action_area9.LayoutStyle = ((Gtk.ButtonBoxStyle)(4)); // Container child dialog_action_area9.Gtk.ButtonBox+ButtonBoxChild this.btnCancel = new Gtk.Button(); this.btnCancel.CanDefault = true; this.btnCancel.CanFocus = true; this.btnCancel.Name = "btnCancel"; this.btnCancel.UseStock = true; this.btnCancel.UseUnderline = true; this.btnCancel.Label = "gtk-cancel"; this.dialog_action_area9.Add(this.btnCancel); // Container child dialog_action_area9.Gtk.ButtonBox+ButtonBoxChild this.btnPrev = new Gtk.Button(); this.btnPrev.CanDefault = true; this.btnPrev.CanFocus = true; this.btnPrev.Name = "btnPrev"; this.btnPrev.UseStock = true; this.btnPrev.UseUnderline = true; this.btnPrev.Label = "gtk-go-back"; this.dialog_action_area9.Add(this.btnPrev); Gtk.ButtonBox.ButtonBoxChild w42 = ((Gtk.ButtonBox.ButtonBoxChild)(this.dialog_action_area9[this.btnPrev])); w42.Position = 1; // Container child dialog_action_area9.Gtk.ButtonBox+ButtonBoxChild this.btnNext = new Gtk.Button(); this.btnNext.CanDefault = true; this.btnNext.CanFocus = true; this.btnNext.Name = "btnNext"; this.btnNext.UseStock = true; this.btnNext.UseUnderline = true; this.btnNext.Label = "gtk-go-forward"; this.dialog_action_area9.Add(this.btnNext); Gtk.ButtonBox.ButtonBoxChild w43 = ((Gtk.ButtonBox.ButtonBoxChild)(this.dialog_action_area9[this.btnNext])); w43.Position = 2; // Container child dialog_action_area9.Gtk.ButtonBox+ButtonBoxChild this.btnOk = new Gtk.Button(); this.btnOk.CanDefault = true; this.btnOk.CanFocus = true; this.btnOk.Name = "btnOk"; this.btnOk.UseStock = true; this.btnOk.UseUnderline = true; this.btnOk.Label = "gtk-ok"; this.dialog_action_area9.Add(this.btnOk); Gtk.ButtonBox.ButtonBoxChild w44 = ((Gtk.ButtonBox.ButtonBoxChild)(this.dialog_action_area9[this.btnOk])); w44.Position = 3; w1.Add(this.dialog_action_area9); Gtk.Box.BoxChild w45 = ((Gtk.Box.BoxChild)(w1[this.dialog_action_area9])); w45.PackType = ((Gtk.PackType)(1)); w45.Position = 2; w45.Expand = false; w45.Fill = false; // Container child dialog-vbox9.Gtk.Box+BoxChild this.hseparator3 = new Gtk.HSeparator(); this.hseparator3.Name = "hseparator3"; w1.Add(this.hseparator3); Gtk.Box.BoxChild w46 = ((Gtk.Box.BoxChild)(w1[this.hseparator3])); w46.PackType = ((Gtk.PackType)(1)); w46.Position = 3; w46.Expand = false; w46.Fill = false; // Internal child Mono.Addins.Gui.AddinInstallDialog.ActionArea Gtk.HButtonBox w47 = this.ActionArea; w47.Name = "hbuttonbox1"; w47.Spacing = 10; w47.BorderWidth = ((uint)(5)); w47.LayoutStyle = ((Gtk.ButtonBoxStyle)(4)); if ((this.Child != null)) { this.Child.ShowAll(); } this.Show(); this.repoCombo.Changed += new System.EventHandler(this.OnRepoChanged); this.button1.Clicked += new System.EventHandler(this.OnUpdateRepo); this.btnManageSites.Clicked += new System.EventHandler(this.OnManageSites); this.addinTree.CursorChanged += new System.EventHandler(this.OnActiveAddinChanged); this.filterComboBox.Changed += new System.EventHandler(this.OnFilterChanged); this.btnSelectAll.Clicked += new System.EventHandler(this.OnSelectAll); this.btnUnselectAll.Clicked += new System.EventHandler(this.OnUnselectAll); this.btnInfo.Clicked += new System.EventHandler(this.OnShowInfo); this.btnCancel.Clicked += new System.EventHandler(this.OnCancel); this.btnPrev.Clicked += new System.EventHandler(this.OnPrevPage); this.btnNext.Clicked += new System.EventHandler(this.OnNextPage); this.btnOk.Clicked += new System.EventHandler(this.OnOk); }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget Monsoon.MainWindow this.UIManager = new Gtk.UIManager(); Gtk.ActionGroup w1 = new Gtk.ActionGroup("Default"); this.FileAction = new Gtk.Action("FileAction", Mono.Unix.Catalog.GetString("_File"), null, null); this.FileAction.ShortLabel = Mono.Unix.Catalog.GetString("File"); w1.Add(this.FileAction, null); this.EditAction = new Gtk.Action("EditAction", Mono.Unix.Catalog.GetString("_Edit"), null, null); this.EditAction.ShortLabel = Mono.Unix.Catalog.GetString("Edit"); w1.Add(this.EditAction, null); this.ViewAction = new Gtk.Action("ViewAction", Mono.Unix.Catalog.GetString("_View"), null, null); this.ViewAction.ShortLabel = Mono.Unix.Catalog.GetString("View"); w1.Add(this.ViewAction, null); this.HelpAction = new Gtk.Action("HelpAction", Mono.Unix.Catalog.GetString("_Help"), null, null); this.HelpAction.ShortLabel = Mono.Unix.Catalog.GetString("Help"); w1.Add(this.HelpAction, null); this.About = new Gtk.Action("About", Mono.Unix.Catalog.GetString("_About"), null, "gtk-about"); this.About.ShortLabel = Mono.Unix.Catalog.GetString("_About"); w1.Add(this.About, null); this.Quit = new Gtk.Action("Quit", Mono.Unix.Catalog.GetString("Quit"), null, "gtk-quit"); this.Quit.ShortLabel = Mono.Unix.Catalog.GetString("Quit"); w1.Add(this.Quit, null); this.stopTorrentButton = new Gtk.Action("stopTorrentButton", null, Mono.Unix.Catalog.GetString("Stop the torrent"), "gtk-media-stop"); this.stopTorrentButton.Sensitive = false; w1.Add(this.stopTorrentButton, null); this.removeTorrentButton = new Gtk.Action("removeTorrentButton", null, Mono.Unix.Catalog.GetString("Remove the torrent"), "gtk-remove"); this.removeTorrentButton.Sensitive = false; w1.Add(this.removeTorrentButton, null); this.preferences = new Gtk.Action("preferences", null, Mono.Unix.Catalog.GetString("Open the preferences dialog"), "gtk-preferences"); w1.Add(this.preferences, null); this.deleteTorrentButton = new Gtk.Action("deleteTorrentButton", null, Mono.Unix.Catalog.GetString("Remove the torrent and delete it's data"), "gtk-delete"); this.deleteTorrentButton.Sensitive = false; w1.Add(this.deleteTorrentButton, null); this.EditColumns = new Gtk.Action("EditColumns", Mono.Unix.Catalog.GetString("Edit Columns"), null, null); this.EditColumns.ShortLabel = Mono.Unix.Catalog.GetString("Columns"); w1.Add(this.EditColumns, null); this.ShowLabels = new Gtk.ToggleAction("ShowLabels", Mono.Unix.Catalog.GetString("Show Labels"), null, null); this.ShowLabels.ShortLabel = Mono.Unix.Catalog.GetString("Show Labels"); w1.Add(this.ShowLabels, null); this.ShowDetailedInfo = new Gtk.ToggleAction("ShowDetailedInfo", Mono.Unix.Catalog.GetString("Show Detailed Info"), null, null); this.ShowDetailedInfo.ShortLabel = Mono.Unix.Catalog.GetString("Show Detailed Info"); w1.Add(this.ShowDetailedInfo, null); this.OpenTorrent = new Gtk.Action("OpenTorrent", Mono.Unix.Catalog.GetString("_Open Torrent"), Mono.Unix.Catalog.GetString("Open existing torrent file"), "gtk-open"); this.OpenTorrent.ShortLabel = Mono.Unix.Catalog.GetString("_Open Torrent"); w1.Add(this.OpenTorrent, null); this.startTorrentButton = new Gtk.Action("startTorrentButton", null, Mono.Unix.Catalog.GetString("Start the torrent"), "gtk-media-play"); this.startTorrentButton.Sensitive = false; w1.Add(this.startTorrentButton, null); this.NewTorrent = new Gtk.Action("NewTorrent", Mono.Unix.Catalog.GetString("_New Torrent"), Mono.Unix.Catalog.GetString("Create a new torrent"), "gtk-new"); this.NewTorrent.ShortLabel = Mono.Unix.Catalog.GetString("_New Torrent"); w1.Add(this.NewTorrent, null); this.Plugins = new Gtk.Action("Plugins", Mono.Unix.Catalog.GetString("Plugins"), Mono.Unix.Catalog.GetString("Open the RSS manager"), "rss"); this.Plugins.ShortLabel = Mono.Unix.Catalog.GetString("Plugins"); w1.Add(this.Plugins, null); this.ReportBugAction = new Gtk.Action("ReportBugAction", Mono.Unix.Catalog.GetString("Report Bug"), null, null); this.ReportBugAction.ShortLabel = Mono.Unix.Catalog.GetString("Report Bug"); w1.Add(this.ReportBugAction, null); this.gotoTopAction = new Gtk.Action("gotoTopAction", null, null, "gtk-goto-top"); w1.Add(this.gotoTopAction, null); this.gotoBottomAction = new Gtk.Action("gotoBottomAction", null, null, "gtk-goto-bottom"); w1.Add(this.gotoBottomAction, null); this.CloseAction = new Gtk.Action("CloseAction", Mono.Unix.Catalog.GetString("Close"), null, "gtk-close"); this.CloseAction.ShortLabel = Mono.Unix.Catalog.GetString("Close"); w1.Add(this.CloseAction, null); this.AddInManagerAction = new Gtk.Action("AddInManagerAction", Mono.Unix.Catalog.GetString("_Add-in Manager"), null, "gtk-properties"); this.AddInManagerAction.ShortLabel = Mono.Unix.Catalog.GetString("_Add-in Manager"); w1.Add(this.AddInManagerAction, null); this.UIManager.InsertActionGroup(w1, 0); this.AddAccelGroup(this.UIManager.AccelGroup); this.Name = "Monsoon.MainWindow"; this.Title = Mono.Unix.Catalog.GetString("Monsoon"); this.Icon = Stetic.IconLoader.LoadIcon(this, "stock_weather-showers", Gtk.IconSize.Dialog, 48); // Container child Monsoon.MainWindow.Gtk.Container+ContainerChild this.vbox1 = new Gtk.VBox(); this.vbox1.Name = "vbox1"; // Container child vbox1.Gtk.Box+BoxChild this.UIManager.AddUiFromString("<ui><menubar name='menubar1'><menu name='FileAction' action='FileAction'><menuitem name='NewTorrent' action='NewTorrent'/><menuitem name='OpenTorrent' action='OpenTorrent'/><separator/><menuitem name='CloseAction' action='CloseAction'/><menuitem name='Quit' action='Quit'/></menu><menu name='EditAction' action='EditAction'><menuitem name='AddInManagerAction' action='AddInManagerAction'/><menuitem name='preferences' action='preferences'/></menu><menu name='ViewAction' action='ViewAction'><menuitem name='EditColumns' action='EditColumns'/><separator/><menuitem name='ShowLabels' action='ShowLabels'/><menuitem name='ShowDetailedInfo' action='ShowDetailedInfo'/></menu><menu name='HelpAction' action='HelpAction'><menuitem name='About' action='About'/><menuitem name='ReportBugAction' action='ReportBugAction'/></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='NewTorrent' action='NewTorrent'/><toolitem name='OpenTorrent' action='OpenTorrent'/><separator/><toolitem name='startTorrentButton' action='startTorrentButton'/><toolitem name='stopTorrentButton' action='stopTorrentButton'/><toolitem name='removeTorrentButton' action='removeTorrentButton'/><toolitem name='deleteTorrentButton' action='deleteTorrentButton'/><separator/><toolitem name='gotoTopAction' action='gotoTopAction'/><toolitem name='gotoBottomAction' action='gotoBottomAction'/><separator/><toolitem name='Plugins' action='Plugins'/><toolitem name='preferences' action='preferences'/></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.hPaned = new Gtk.HPaned(); this.hPaned.CanFocus = true; this.hPaned.Name = "hPaned"; this.hPaned.Position = 145; // Container child hPaned.Gtk.Paned+PanedChild this.labelViewScrolledWindow = new Gtk.ScrolledWindow(); this.labelViewScrolledWindow.CanFocus = true; this.labelViewScrolledWindow.Name = "labelViewScrolledWindow"; this.hPaned.Add(this.labelViewScrolledWindow); Gtk.Paned.PanedChild w4 = ((Gtk.Paned.PanedChild)(this.hPaned[this.labelViewScrolledWindow])); w4.Resize = false; // Container child hPaned.Gtk.Paned+PanedChild this.vPaned = new Gtk.VPaned(); this.vPaned.CanFocus = true; this.vPaned.Name = "vPaned"; this.vPaned.Position = 165; // Container child vPaned.Gtk.Paned+PanedChild this.torrentViewScrolledWindow = new Gtk.ScrolledWindow(); this.torrentViewScrolledWindow.CanFocus = true; this.torrentViewScrolledWindow.Name = "torrentViewScrolledWindow"; this.torrentViewScrolledWindow.ShadowType = ((Gtk.ShadowType)(1)); this.vPaned.Add(this.torrentViewScrolledWindow); Gtk.Paned.PanedChild w5 = ((Gtk.Paned.PanedChild)(this.vPaned[this.torrentViewScrolledWindow])); w5.Resize = false; // Container child vPaned.Gtk.Paned+PanedChild this.detailNotebook = new Gtk.Notebook(); this.detailNotebook.CanFocus = true; this.detailNotebook.Name = "detailNotebook"; this.detailNotebook.CurrentPage = 4; // Container child detailNotebook.Gtk.Notebook+NotebookChild 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 GtkViewport2.Gtk.Container+ContainerChild this.vbox4 = new Gtk.VBox(); this.vbox4.Name = "vbox4"; this.vbox4.Spacing = 6; this.vbox4.BorderWidth = ((uint)(5)); // Container child vbox4.Gtk.Box+BoxChild this.hbox3 = new Gtk.HBox(); this.hbox3.Name = "hbox3"; this.hbox3.Spacing = 6; // Container child hbox3.Gtk.Box+BoxChild this.statusProgressBarLabel = new Gtk.Label(); this.statusProgressBarLabel.Name = "statusProgressBarLabel"; this.statusProgressBarLabel.LabelProp = Mono.Unix.Catalog.GetString("Status: "); this.hbox3.Add(this.statusProgressBarLabel); Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(this.hbox3[this.statusProgressBarLabel])); w7.Position = 0; w7.Expand = false; w7.Fill = false; // Container child hbox3.Gtk.Box+BoxChild this.statusProgressBar = new Gtk.ProgressBar(); this.statusProgressBar.Name = "statusProgressBar"; this.statusProgressBar.Text = Mono.Unix.Catalog.GetString(" "); this.hbox3.Add(this.statusProgressBar); Gtk.Box.BoxChild w8 = ((Gtk.Box.BoxChild)(this.hbox3[this.statusProgressBar])); w8.Position = 1; this.vbox4.Add(this.hbox3); Gtk.Box.BoxChild w9 = ((Gtk.Box.BoxChild)(this.vbox4[this.hbox3])); w9.Position = 0; w9.Expand = false; w9.Fill = false; // Container child vbox4.Gtk.Box+BoxChild this.hbox1 = new Gtk.HBox(); this.hbox1.Name = "hbox1"; this.hbox1.Spacing = 6; // Container child hbox1.Gtk.Box+BoxChild this.frame1 = new Gtk.Frame(); this.frame1.WidthRequest = 260; 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.table8 = new Gtk.Table(((uint)(5)), ((uint)(2)), false); this.table8.Name = "table8"; this.table8.RowSpacing = ((uint)(6)); this.table8.ColumnSpacing = ((uint)(6)); // Container child table8.Gtk.Table+TableChild this.downloadedValueLabel = new Gtk.Label(); this.downloadedValueLabel.Name = "downloadedValueLabel"; this.downloadedValueLabel.Xalign = 0F; this.table8.Add(this.downloadedValueLabel); Gtk.Table.TableChild w10 = ((Gtk.Table.TableChild)(this.table8[this.downloadedValueLabel])); 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 table8.Gtk.Table+TableChild this.elapsedTimeLabel = new Gtk.Label(); this.elapsedTimeLabel.Name = "elapsedTimeLabel"; this.elapsedTimeLabel.Xalign = 0F; this.elapsedTimeLabel.LabelProp = Mono.Unix.Catalog.GetString("Elapsed Time:"); this.table8.Add(this.elapsedTimeLabel); Gtk.Table.TableChild w11 = ((Gtk.Table.TableChild)(this.table8[this.elapsedTimeLabel])); w11.XOptions = ((Gtk.AttachOptions)(4)); w11.YOptions = ((Gtk.AttachOptions)(4)); // Container child table8.Gtk.Table+TableChild this.elapsedTimeValueLabel = new Gtk.Label(); this.elapsedTimeValueLabel.Name = "elapsedTimeValueLabel"; this.elapsedTimeValueLabel.Xalign = 0F; this.table8.Add(this.elapsedTimeValueLabel); Gtk.Table.TableChild w12 = ((Gtk.Table.TableChild)(this.table8[this.elapsedTimeValueLabel])); w12.LeftAttach = ((uint)(1)); w12.RightAttach = ((uint)(2)); w12.XOptions = ((Gtk.AttachOptions)(4)); w12.YOptions = ((Gtk.AttachOptions)(4)); // Container child table8.Gtk.Table+TableChild this.hashFailsLabel = new Gtk.Label(); this.hashFailsLabel.Name = "hashFailsLabel"; this.hashFailsLabel.Xalign = 0F; this.table8.Add(this.hashFailsLabel); Gtk.Table.TableChild w13 = ((Gtk.Table.TableChild)(this.table8[this.hashFailsLabel])); w13.TopAttach = ((uint)(3)); w13.BottomAttach = ((uint)(4)); w13.LeftAttach = ((uint)(1)); w13.RightAttach = ((uint)(2)); w13.XOptions = ((Gtk.AttachOptions)(4)); w13.YOptions = ((Gtk.AttachOptions)(4)); // Container child table8.Gtk.Table+TableChild this.label21 = new Gtk.Label(); this.label21.Name = "label21"; this.label21.Xalign = 0F; this.label21.LabelProp = Mono.Unix.Catalog.GetString("Downloaded:"); this.table8.Add(this.label21); Gtk.Table.TableChild w14 = ((Gtk.Table.TableChild)(this.table8[this.label21])); w14.TopAttach = ((uint)(1)); w14.BottomAttach = ((uint)(2)); w14.XOptions = ((Gtk.AttachOptions)(4)); w14.YOptions = ((Gtk.AttachOptions)(4)); // Container child table8.Gtk.Table+TableChild this.label22 = new Gtk.Label(); this.label22.Name = "label22"; this.label22.Xalign = 0F; this.label22.LabelProp = Mono.Unix.Catalog.GetString("Uploaded:"); this.table8.Add(this.label22); Gtk.Table.TableChild w15 = ((Gtk.Table.TableChild)(this.table8[this.label22])); w15.TopAttach = ((uint)(2)); w15.BottomAttach = ((uint)(3)); w15.XOptions = ((Gtk.AttachOptions)(4)); w15.YOptions = ((Gtk.AttachOptions)(4)); // Container child table8.Gtk.Table+TableChild this.label3 = new Gtk.Label(); this.label3.Name = "label3"; this.label3.Xalign = 0F; this.label3.LabelProp = Mono.Unix.Catalog.GetString("Hash Fails:"); this.table8.Add(this.label3); Gtk.Table.TableChild w16 = ((Gtk.Table.TableChild)(this.table8[this.label3])); w16.TopAttach = ((uint)(3)); w16.BottomAttach = ((uint)(4)); w16.XOptions = ((Gtk.AttachOptions)(4)); w16.YOptions = ((Gtk.AttachOptions)(4)); // Container child table8.Gtk.Table+TableChild this.label5 = new Gtk.Label(); this.label5.Name = "label5"; this.label5.Xalign = 0F; this.label5.LabelProp = Mono.Unix.Catalog.GetString("Swarm Speed:"); this.table8.Add(this.label5); Gtk.Table.TableChild w17 = ((Gtk.Table.TableChild)(this.table8[this.label5])); w17.TopAttach = ((uint)(4)); w17.BottomAttach = ((uint)(5)); w17.XOptions = ((Gtk.AttachOptions)(4)); w17.YOptions = ((Gtk.AttachOptions)(4)); // Container child table8.Gtk.Table+TableChild this.swarmSpeedLabel = new Gtk.Label(); this.swarmSpeedLabel.Name = "swarmSpeedLabel"; this.swarmSpeedLabel.Xalign = 0F; this.table8.Add(this.swarmSpeedLabel); Gtk.Table.TableChild w18 = ((Gtk.Table.TableChild)(this.table8[this.swarmSpeedLabel])); w18.TopAttach = ((uint)(4)); w18.BottomAttach = ((uint)(5)); w18.LeftAttach = ((uint)(1)); w18.RightAttach = ((uint)(2)); w18.XOptions = ((Gtk.AttachOptions)(4)); w18.YOptions = ((Gtk.AttachOptions)(4)); // Container child table8.Gtk.Table+TableChild this.uploadedValueLabel = new Gtk.Label(); this.uploadedValueLabel.Name = "uploadedValueLabel"; this.uploadedValueLabel.Xalign = 0F; this.table8.Add(this.uploadedValueLabel); Gtk.Table.TableChild w19 = ((Gtk.Table.TableChild)(this.table8[this.uploadedValueLabel])); w19.TopAttach = ((uint)(2)); w19.BottomAttach = ((uint)(3)); w19.LeftAttach = ((uint)(1)); w19.RightAttach = ((uint)(2)); w19.XOptions = ((Gtk.AttachOptions)(4)); w19.YOptions = ((Gtk.AttachOptions)(4)); this.GtkAlignment.Add(this.table8); this.frame1.Add(this.GtkAlignment); this.GtkLabel6 = new Gtk.Label(); this.GtkLabel6.Name = "GtkLabel6"; this.GtkLabel6.LabelProp = Mono.Unix.Catalog.GetString("<b>Transfer</b>"); this.GtkLabel6.UseMarkup = true; this.frame1.LabelWidget = this.GtkLabel6; this.hbox1.Add(this.frame1); Gtk.Box.BoxChild w22 = ((Gtk.Box.BoxChild)(this.hbox1[this.frame1])); w22.Position = 0; w22.Expand = false; w22.Fill = false; // Container child hbox1.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.table7 = new Gtk.Table(((uint)(5)), ((uint)(2)), false); this.table7.Name = "table7"; this.table7.RowSpacing = ((uint)(6)); this.table7.ColumnSpacing = ((uint)(6)); // Container child table7.Gtk.Table+TableChild this.label19 = new Gtk.Label(); this.label19.Name = "label19"; this.label19.Xalign = 0F; this.label19.LabelProp = Mono.Unix.Catalog.GetString("Update In:"); this.table7.Add(this.label19); Gtk.Table.TableChild w23 = ((Gtk.Table.TableChild)(this.table7[this.label19])); w23.TopAttach = ((uint)(3)); w23.BottomAttach = ((uint)(4)); w23.XOptions = ((Gtk.AttachOptions)(4)); w23.YOptions = ((Gtk.AttachOptions)(4)); // Container child table7.Gtk.Table+TableChild this.label20 = new Gtk.Label(); this.label20.Name = "label20"; this.label20.Xalign = 0F; this.label20.LabelProp = Mono.Unix.Catalog.GetString("Status:"); this.table7.Add(this.label20); Gtk.Table.TableChild w24 = ((Gtk.Table.TableChild)(this.table7[this.label20])); w24.TopAttach = ((uint)(1)); w24.BottomAttach = ((uint)(2)); w24.XOptions = ((Gtk.AttachOptions)(4)); w24.YOptions = ((Gtk.AttachOptions)(4)); // Container child table7.Gtk.Table+TableChild this.label23 = new Gtk.Label(); this.label23.Name = "label23"; this.label23.Xalign = 0F; this.label23.LabelProp = Mono.Unix.Catalog.GetString("Message:"); this.table7.Add(this.label23); Gtk.Table.TableChild w25 = ((Gtk.Table.TableChild)(this.table7[this.label23])); w25.TopAttach = ((uint)(4)); w25.BottomAttach = ((uint)(5)); w25.XOptions = ((Gtk.AttachOptions)(4)); w25.YOptions = ((Gtk.AttachOptions)(4)); // Container child table7.Gtk.Table+TableChild this.label4 = new Gtk.Label(); this.label4.Name = "label4"; this.label4.Xalign = 0F; this.label4.LabelProp = Mono.Unix.Catalog.GetString("Last Updated:"); this.table7.Add(this.label4); Gtk.Table.TableChild w26 = ((Gtk.Table.TableChild)(this.table7[this.label4])); w26.TopAttach = ((uint)(2)); w26.BottomAttach = ((uint)(3)); w26.XOptions = ((Gtk.AttachOptions)(4)); w26.YOptions = ((Gtk.AttachOptions)(4)); // Container child table7.Gtk.Table+TableChild this.label8 = new Gtk.Label(); this.label8.Name = "label8"; this.label8.Xalign = 0F; this.label8.LabelProp = Mono.Unix.Catalog.GetString("URL:"); this.table7.Add(this.label8); Gtk.Table.TableChild w27 = ((Gtk.Table.TableChild)(this.table7[this.label8])); w27.XOptions = ((Gtk.AttachOptions)(4)); w27.YOptions = ((Gtk.AttachOptions)(4)); // Container child table7.Gtk.Table+TableChild this.lastUpdatedLabel = new Gtk.Label(); this.lastUpdatedLabel.Name = "lastUpdatedLabel"; this.lastUpdatedLabel.Xalign = 0F; this.table7.Add(this.lastUpdatedLabel); Gtk.Table.TableChild w28 = ((Gtk.Table.TableChild)(this.table7[this.lastUpdatedLabel])); w28.TopAttach = ((uint)(2)); w28.BottomAttach = ((uint)(3)); w28.LeftAttach = ((uint)(1)); w28.RightAttach = ((uint)(2)); w28.XOptions = ((Gtk.AttachOptions)(4)); w28.YOptions = ((Gtk.AttachOptions)(4)); // Container child table7.Gtk.Table+TableChild this.messageLabel = new Gtk.Label(); this.messageLabel.Name = "messageLabel"; this.messageLabel.Xalign = 0F; this.messageLabel.Wrap = true; this.table7.Add(this.messageLabel); Gtk.Table.TableChild w29 = ((Gtk.Table.TableChild)(this.table7[this.messageLabel])); w29.TopAttach = ((uint)(4)); w29.BottomAttach = ((uint)(5)); w29.LeftAttach = ((uint)(1)); w29.RightAttach = ((uint)(2)); w29.XOptions = ((Gtk.AttachOptions)(4)); w29.YOptions = ((Gtk.AttachOptions)(4)); // Container child table7.Gtk.Table+TableChild this.trackerStatusValueLabel = new Gtk.Label(); this.trackerStatusValueLabel.Name = "trackerStatusValueLabel"; this.trackerStatusValueLabel.Xalign = 0F; this.table7.Add(this.trackerStatusValueLabel); Gtk.Table.TableChild w30 = ((Gtk.Table.TableChild)(this.table7[this.trackerStatusValueLabel])); w30.TopAttach = ((uint)(1)); w30.BottomAttach = ((uint)(2)); w30.LeftAttach = ((uint)(1)); w30.RightAttach = ((uint)(2)); w30.XOptions = ((Gtk.AttachOptions)(4)); w30.YOptions = ((Gtk.AttachOptions)(4)); // Container child table7.Gtk.Table+TableChild this.trackerUrlValueLabel = new Gtk.Label(); this.trackerUrlValueLabel.Name = "trackerUrlValueLabel"; this.trackerUrlValueLabel.Xalign = 0F; this.table7.Add(this.trackerUrlValueLabel); Gtk.Table.TableChild w31 = ((Gtk.Table.TableChild)(this.table7[this.trackerUrlValueLabel])); w31.LeftAttach = ((uint)(1)); w31.RightAttach = ((uint)(2)); w31.XOptions = ((Gtk.AttachOptions)(4)); w31.YOptions = ((Gtk.AttachOptions)(4)); // Container child table7.Gtk.Table+TableChild this.updateInLabel = new Gtk.Label(); this.updateInLabel.Name = "updateInLabel"; this.updateInLabel.Xalign = 0F; this.table7.Add(this.updateInLabel); Gtk.Table.TableChild w32 = ((Gtk.Table.TableChild)(this.table7[this.updateInLabel])); w32.TopAttach = ((uint)(3)); w32.BottomAttach = ((uint)(4)); w32.LeftAttach = ((uint)(1)); w32.RightAttach = ((uint)(2)); w32.XOptions = ((Gtk.AttachOptions)(4)); w32.YOptions = ((Gtk.AttachOptions)(4)); this.GtkAlignment1.Add(this.table7); this.frame2.Add(this.GtkAlignment1); this.GtkLabel7 = new Gtk.Label(); this.GtkLabel7.Name = "GtkLabel7"; this.GtkLabel7.LabelProp = Mono.Unix.Catalog.GetString("<b>Tracker</b>"); this.GtkLabel7.UseMarkup = true; this.frame2.LabelWidget = this.GtkLabel7; this.hbox1.Add(this.frame2); Gtk.Box.BoxChild w35 = ((Gtk.Box.BoxChild)(this.hbox1[this.frame2])); w35.Position = 1; w35.Expand = false; w35.Fill = false; this.vbox4.Add(this.hbox1); Gtk.Box.BoxChild w36 = ((Gtk.Box.BoxChild)(this.vbox4[this.hbox1])); w36.Position = 1; w36.Expand = false; w36.Fill = false; // Container child vbox4.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)); // Container child GtkAlignment2.Gtk.Container+ContainerChild this.table9 = new Gtk.Table(((uint)(4)), ((uint)(2)), false); this.table9.Name = "table9"; this.table9.RowSpacing = ((uint)(6)); this.table9.ColumnSpacing = ((uint)(6)); // Container child table9.Gtk.Table+TableChild this.commentValueLabel = new Gtk.Label(); this.commentValueLabel.Name = "commentValueLabel"; this.commentValueLabel.Xalign = 0F; this.table9.Add(this.commentValueLabel); Gtk.Table.TableChild w37 = ((Gtk.Table.TableChild)(this.table9[this.commentValueLabel])); w37.TopAttach = ((uint)(3)); w37.BottomAttach = ((uint)(4)); w37.LeftAttach = ((uint)(1)); w37.RightAttach = ((uint)(2)); w37.XOptions = ((Gtk.AttachOptions)(4)); w37.YOptions = ((Gtk.AttachOptions)(4)); // Container child table9.Gtk.Table+TableChild this.createdOnValueLabel = new Gtk.Label(); this.createdOnValueLabel.Name = "createdOnValueLabel"; this.createdOnValueLabel.Xalign = 0F; this.table9.Add(this.createdOnValueLabel); Gtk.Table.TableChild w38 = ((Gtk.Table.TableChild)(this.table9[this.createdOnValueLabel])); w38.TopAttach = ((uint)(2)); w38.BottomAttach = ((uint)(3)); w38.LeftAttach = ((uint)(1)); w38.RightAttach = ((uint)(2)); w38.XOptions = ((Gtk.AttachOptions)(4)); w38.YOptions = ((Gtk.AttachOptions)(4)); // Container child table9.Gtk.Table+TableChild this.label10 = new Gtk.Label(); this.label10.Name = "label10"; this.label10.Xalign = 0F; this.label10.LabelProp = Mono.Unix.Catalog.GetString("Size:"); this.table9.Add(this.label10); Gtk.Table.TableChild w39 = ((Gtk.Table.TableChild)(this.table9[this.label10])); w39.TopAttach = ((uint)(1)); w39.BottomAttach = ((uint)(2)); w39.XOptions = ((Gtk.AttachOptions)(4)); w39.YOptions = ((Gtk.AttachOptions)(4)); // Container child table9.Gtk.Table+TableChild this.label11 = new Gtk.Label(); this.label11.Name = "label11"; this.label11.Xalign = 0F; this.label11.LabelProp = Mono.Unix.Catalog.GetString("Created on:"); this.table9.Add(this.label11); Gtk.Table.TableChild w40 = ((Gtk.Table.TableChild)(this.table9[this.label11])); w40.TopAttach = ((uint)(2)); w40.BottomAttach = ((uint)(3)); w40.XOptions = ((Gtk.AttachOptions)(4)); w40.YOptions = ((Gtk.AttachOptions)(4)); // Container child table9.Gtk.Table+TableChild this.label12 = new Gtk.Label(); this.label12.Name = "label12"; this.label12.Xalign = 0F; this.label12.LabelProp = Mono.Unix.Catalog.GetString("Comment:"); this.table9.Add(this.label12); Gtk.Table.TableChild w41 = ((Gtk.Table.TableChild)(this.table9[this.label12])); w41.TopAttach = ((uint)(3)); w41.BottomAttach = ((uint)(4)); w41.XOptions = ((Gtk.AttachOptions)(4)); w41.YOptions = ((Gtk.AttachOptions)(4)); // Container child table9.Gtk.Table+TableChild this.label7 = new Gtk.Label(); this.label7.Name = "label7"; this.label7.Xalign = 0F; this.label7.LabelProp = Mono.Unix.Catalog.GetString("Save path:"); this.table9.Add(this.label7); Gtk.Table.TableChild w42 = ((Gtk.Table.TableChild)(this.table9[this.label7])); w42.XOptions = ((Gtk.AttachOptions)(4)); w42.YOptions = ((Gtk.AttachOptions)(4)); // Container child table9.Gtk.Table+TableChild this.savePathValueLabel = new Gtk.Label(); this.savePathValueLabel.Name = "savePathValueLabel"; this.savePathValueLabel.Xalign = 0F; this.table9.Add(this.savePathValueLabel); Gtk.Table.TableChild w43 = ((Gtk.Table.TableChild)(this.table9[this.savePathValueLabel])); w43.LeftAttach = ((uint)(1)); w43.RightAttach = ((uint)(2)); w43.XOptions = ((Gtk.AttachOptions)(4)); w43.YOptions = ((Gtk.AttachOptions)(4)); // Container child table9.Gtk.Table+TableChild this.sizeValueLabel = new Gtk.Label(); this.sizeValueLabel.Name = "sizeValueLabel"; this.sizeValueLabel.Xalign = 0F; this.table9.Add(this.sizeValueLabel); Gtk.Table.TableChild w44 = ((Gtk.Table.TableChild)(this.table9[this.sizeValueLabel])); w44.TopAttach = ((uint)(1)); w44.BottomAttach = ((uint)(2)); w44.LeftAttach = ((uint)(1)); w44.RightAttach = ((uint)(2)); w44.XOptions = ((Gtk.AttachOptions)(4)); w44.YOptions = ((Gtk.AttachOptions)(4)); this.GtkAlignment2.Add(this.table9); this.frame3.Add(this.GtkAlignment2); this.GtkLabel8 = new Gtk.Label(); this.GtkLabel8.Name = "GtkLabel8"; this.GtkLabel8.LabelProp = Mono.Unix.Catalog.GetString("<b>General</b>"); this.GtkLabel8.UseMarkup = true; this.frame3.LabelWidget = this.GtkLabel8; this.vbox4.Add(this.frame3); Gtk.Box.BoxChild w47 = ((Gtk.Box.BoxChild)(this.vbox4[this.frame3])); w47.Position = 2; w47.Expand = false; w47.Fill = false; w6.Add(this.vbox4); this.scrolledwindow1.Add(w6); this.detailNotebook.Add(this.scrolledwindow1); // Notebook tab this.label1 = new Gtk.Label(); this.label1.Name = "label1"; this.label1.LabelProp = Mono.Unix.Catalog.GetString("General"); this.detailNotebook.SetTabLabel(this.scrolledwindow1, this.label1); this.label1.ShowAll(); // Container child detailNotebook.Gtk.Notebook+NotebookChild this.filesScrolledWindow = new Gtk.ScrolledWindow(); this.filesScrolledWindow.CanFocus = true; this.filesScrolledWindow.Name = "filesScrolledWindow"; this.filesScrolledWindow.ShadowType = ((Gtk.ShadowType)(1)); this.detailNotebook.Add(this.filesScrolledWindow); Gtk.Notebook.NotebookChild w51 = ((Gtk.Notebook.NotebookChild)(this.detailNotebook[this.filesScrolledWindow])); w51.Position = 1; // Notebook tab this.label9 = new Gtk.Label(); this.label9.Name = "label9"; this.label9.LabelProp = Mono.Unix.Catalog.GetString("Files"); this.detailNotebook.SetTabLabel(this.filesScrolledWindow, this.label9); this.label9.ShowAll(); // Container child detailNotebook.Gtk.Notebook+NotebookChild this.piecesScrolledWindow = new Gtk.ScrolledWindow(); this.piecesScrolledWindow.CanFocus = true; this.piecesScrolledWindow.Name = "piecesScrolledWindow"; this.piecesScrolledWindow.ShadowType = ((Gtk.ShadowType)(1)); this.detailNotebook.Add(this.piecesScrolledWindow); Gtk.Notebook.NotebookChild w52 = ((Gtk.Notebook.NotebookChild)(this.detailNotebook[this.piecesScrolledWindow])); w52.Position = 2; // Notebook tab this.label18 = new Gtk.Label(); this.label18.Name = "label18"; this.label18.LabelProp = Mono.Unix.Catalog.GetString("Pieces"); this.detailNotebook.SetTabLabel(this.piecesScrolledWindow, this.label18); this.label18.ShowAll(); // Container child detailNotebook.Gtk.Notebook+NotebookChild this.peersScrolledWindow = new Gtk.ScrolledWindow(); this.peersScrolledWindow.CanFocus = true; this.peersScrolledWindow.Name = "peersScrolledWindow"; this.peersScrolledWindow.ShadowType = ((Gtk.ShadowType)(1)); this.detailNotebook.Add(this.peersScrolledWindow); Gtk.Notebook.NotebookChild w53 = ((Gtk.Notebook.NotebookChild)(this.detailNotebook[this.peersScrolledWindow])); w53.Position = 3; // Notebook tab this.label6 = new Gtk.Label(); this.label6.Name = "label6"; this.label6.LabelProp = Mono.Unix.Catalog.GetString("Peers"); this.detailNotebook.SetTabLabel(this.peersScrolledWindow, this.label6); this.label6.ShowAll(); // Container child detailNotebook.Gtk.Notebook+NotebookChild this.scrolledwindow2 = new Gtk.ScrolledWindow(); this.scrolledwindow2.CanFocus = true; this.scrolledwindow2.Name = "scrolledwindow2"; this.scrolledwindow2.ShadowType = ((Gtk.ShadowType)(1)); // Container child scrolledwindow2.Gtk.Container+ContainerChild Gtk.Viewport w54 = new Gtk.Viewport(); w54.ShadowType = ((Gtk.ShadowType)(0)); // Container child GtkViewport5.Gtk.Container+ContainerChild this.hbox13 = new Gtk.HBox(); this.hbox13.Name = "hbox13"; this.hbox13.Spacing = 6; // Container child hbox13.Gtk.Box+BoxChild this.vbox6 = new Gtk.VBox(); this.vbox6.Name = "vbox6"; this.vbox6.Spacing = 6; // Container child vbox6.Gtk.Box+BoxChild this.frame5 = new Gtk.Frame(); this.frame5.Name = "frame5"; this.frame5.ShadowType = ((Gtk.ShadowType)(0)); // Container child frame5.Gtk.Container+ContainerChild this.GtkAlignment4 = new Gtk.Alignment(0F, 0F, 1F, 1F); this.GtkAlignment4.Name = "GtkAlignment4"; this.GtkAlignment4.LeftPadding = ((uint)(12)); // Container child GtkAlignment4.Gtk.Container+ContainerChild this.table2 = new Gtk.Table(((uint)(5)), ((uint)(2)), false); this.table2.Name = "table2"; this.table2.RowSpacing = ((uint)(6)); this.table2.ColumnSpacing = ((uint)(6)); // Container child table2.Gtk.Table+TableChild this.label14 = new Gtk.Label(); this.label14.Name = "label14"; this.label14.Xalign = 0F; this.label14.LabelProp = Mono.Unix.Catalog.GetString("Maximum upload rate:"); this.table2.Add(this.label14); Gtk.Table.TableChild w55 = ((Gtk.Table.TableChild)(this.table2[this.label14])); w55.XOptions = ((Gtk.AttachOptions)(4)); w55.YOptions = ((Gtk.AttachOptions)(4)); // Container child table2.Gtk.Table+TableChild this.label15 = new Gtk.Label(); this.label15.Name = "label15"; this.label15.Xalign = 0F; this.label15.LabelProp = Mono.Unix.Catalog.GetString("Maximum download rate:"); this.table2.Add(this.label15); Gtk.Table.TableChild w56 = ((Gtk.Table.TableChild)(this.table2[this.label15])); w56.TopAttach = ((uint)(1)); w56.BottomAttach = ((uint)(2)); w56.XOptions = ((Gtk.AttachOptions)(4)); w56.YOptions = ((Gtk.AttachOptions)(4)); // Container child table2.Gtk.Table+TableChild this.label16 = new Gtk.Label(); this.label16.Name = "label16"; this.label16.Xalign = 0F; this.label16.LabelProp = Mono.Unix.Catalog.GetString("Maximum connections:"); this.table2.Add(this.label16); Gtk.Table.TableChild w57 = ((Gtk.Table.TableChild)(this.table2[this.label16])); w57.TopAttach = ((uint)(2)); w57.BottomAttach = ((uint)(3)); w57.XOptions = ((Gtk.AttachOptions)(4)); w57.YOptions = ((Gtk.AttachOptions)(4)); // Container child table2.Gtk.Table+TableChild this.label17 = new Gtk.Label(); this.label17.Name = "label17"; this.label17.Xalign = 0F; this.label17.LabelProp = Mono.Unix.Catalog.GetString("Upload slots:"); this.table2.Add(this.label17); Gtk.Table.TableChild w58 = ((Gtk.Table.TableChild)(this.table2[this.label17])); w58.TopAttach = ((uint)(3)); w58.BottomAttach = ((uint)(4)); w58.XOptions = ((Gtk.AttachOptions)(4)); w58.YOptions = ((Gtk.AttachOptions)(4)); // Container child table2.Gtk.Table+TableChild this.torrentDownloadRateSpinButton = new Gtk.SpinButton(0, 100, 1); this.torrentDownloadRateSpinButton.CanFocus = true; this.torrentDownloadRateSpinButton.Name = "torrentDownloadRateSpinButton"; this.torrentDownloadRateSpinButton.Adjustment.PageIncrement = 10; this.torrentDownloadRateSpinButton.ClimbRate = 1; this.torrentDownloadRateSpinButton.Numeric = true; this.table2.Add(this.torrentDownloadRateSpinButton); Gtk.Table.TableChild w59 = ((Gtk.Table.TableChild)(this.table2[this.torrentDownloadRateSpinButton])); w59.TopAttach = ((uint)(1)); w59.BottomAttach = ((uint)(2)); w59.LeftAttach = ((uint)(1)); w59.RightAttach = ((uint)(2)); w59.XOptions = ((Gtk.AttachOptions)(4)); w59.YOptions = ((Gtk.AttachOptions)(4)); // Container child table2.Gtk.Table+TableChild this.torrentMaxConnectionsSpinButton = new Gtk.SpinButton(0, 100, 1); this.torrentMaxConnectionsSpinButton.CanFocus = true; this.torrentMaxConnectionsSpinButton.Name = "torrentMaxConnectionsSpinButton"; this.torrentMaxConnectionsSpinButton.Adjustment.PageIncrement = 10; this.torrentMaxConnectionsSpinButton.ClimbRate = 1; this.torrentMaxConnectionsSpinButton.Numeric = true; this.table2.Add(this.torrentMaxConnectionsSpinButton); Gtk.Table.TableChild w60 = ((Gtk.Table.TableChild)(this.table2[this.torrentMaxConnectionsSpinButton])); w60.TopAttach = ((uint)(2)); w60.BottomAttach = ((uint)(3)); w60.LeftAttach = ((uint)(1)); w60.RightAttach = ((uint)(2)); w60.XOptions = ((Gtk.AttachOptions)(4)); w60.YOptions = ((Gtk.AttachOptions)(4)); // Container child table2.Gtk.Table+TableChild this.torrentUploadRateSpinButton = new Gtk.SpinButton(0, 100, 1); this.torrentUploadRateSpinButton.CanFocus = true; this.torrentUploadRateSpinButton.Name = "torrentUploadRateSpinButton"; this.torrentUploadRateSpinButton.Adjustment.PageIncrement = 10; this.torrentUploadRateSpinButton.ClimbRate = 1; this.torrentUploadRateSpinButton.Numeric = true; this.table2.Add(this.torrentUploadRateSpinButton); Gtk.Table.TableChild w61 = ((Gtk.Table.TableChild)(this.table2[this.torrentUploadRateSpinButton])); w61.LeftAttach = ((uint)(1)); w61.RightAttach = ((uint)(2)); w61.XOptions = ((Gtk.AttachOptions)(4)); w61.YOptions = ((Gtk.AttachOptions)(4)); // Container child table2.Gtk.Table+TableChild this.torrentUploadSlotSpinButton = new Gtk.SpinButton(0, 100, 1); this.torrentUploadSlotSpinButton.CanFocus = true; this.torrentUploadSlotSpinButton.Name = "torrentUploadSlotSpinButton"; this.torrentUploadSlotSpinButton.Adjustment.PageIncrement = 10; this.torrentUploadSlotSpinButton.ClimbRate = 1; this.torrentUploadSlotSpinButton.Numeric = true; this.table2.Add(this.torrentUploadSlotSpinButton); Gtk.Table.TableChild w62 = ((Gtk.Table.TableChild)(this.table2[this.torrentUploadSlotSpinButton])); w62.TopAttach = ((uint)(3)); w62.BottomAttach = ((uint)(4)); w62.LeftAttach = ((uint)(1)); w62.RightAttach = ((uint)(2)); w62.XOptions = ((Gtk.AttachOptions)(4)); w62.YOptions = ((Gtk.AttachOptions)(4)); this.GtkAlignment4.Add(this.table2); this.frame5.Add(this.GtkAlignment4); this.GtkLabel11 = new Gtk.Label(); this.GtkLabel11.Name = "GtkLabel11"; this.GtkLabel11.LabelProp = Mono.Unix.Catalog.GetString("<b>Bandwidth</b>"); this.GtkLabel11.UseMarkup = true; this.frame5.LabelWidget = this.GtkLabel11; this.vbox6.Add(this.frame5); Gtk.Box.BoxChild w65 = ((Gtk.Box.BoxChild)(this.vbox6[this.frame5])); w65.Position = 0; this.hbox13.Add(this.vbox6); Gtk.Box.BoxChild w66 = ((Gtk.Box.BoxChild)(this.hbox13[this.vbox6])); w66.Position = 0; w66.Expand = false; w66.Fill = false; w54.Add(this.hbox13); this.scrolledwindow2.Add(w54); this.detailNotebook.Add(this.scrolledwindow2); Gtk.Notebook.NotebookChild w69 = ((Gtk.Notebook.NotebookChild)(this.detailNotebook[this.scrolledwindow2])); w69.Position = 4; // Notebook tab this.label13 = new Gtk.Label(); this.label13.Name = "label13"; this.label13.LabelProp = Mono.Unix.Catalog.GetString("Options"); this.detailNotebook.SetTabLabel(this.scrolledwindow2, this.label13); this.label13.ShowAll(); this.vPaned.Add(this.detailNotebook); this.hPaned.Add(this.vPaned); this.vbox1.Add(this.hPaned); Gtk.Box.BoxChild w72 = ((Gtk.Box.BoxChild)(this.vbox1[this.hPaned])); w72.Position = 2; // Container child vbox1.Gtk.Box+BoxChild this.alignment4 = new Gtk.Alignment(1F, 0.5F, 0F, 1F); this.alignment4.Name = "alignment4"; // Container child alignment4.Gtk.Container+ContainerChild this.hbox4 = new Gtk.HBox(); this.hbox4.Name = "hbox4"; this.hbox4.Spacing = 6; // Container child hbox4.Gtk.Box+BoxChild this.natStatus = new Monsoon.NatWidget(); this.natStatus.WidthRequest = 28; this.natStatus.Name = "natStatus"; this.natStatus.HasIncoming = false; this.natStatus.RouterFound = false; this.natStatus.PortForwarded = false; this.hbox4.Add(this.natStatus); Gtk.Box.BoxChild w73 = ((Gtk.Box.BoxChild)(this.hbox4[this.natStatus])); w73.Position = 0; w73.Expand = false; w73.Fill = false; // Container child hbox4.Gtk.Box+BoxChild this.UIManager.AddUiFromString("<ui><toolbar name='statusToolbar'/></ui>"); this.statusToolbar = ((Gtk.Toolbar)(this.UIManager.GetWidget("/statusToolbar"))); this.statusToolbar.Name = "statusToolbar"; this.statusToolbar.ShowArrow = false; this.statusToolbar.ToolbarStyle = ((Gtk.ToolbarStyle)(0)); this.statusToolbar.IconSize = ((Gtk.IconSize)(1)); this.hbox4.Add(this.statusToolbar); Gtk.Box.BoxChild w74 = ((Gtk.Box.BoxChild)(this.hbox4[this.statusToolbar])); w74.Position = 1; this.alignment4.Add(this.hbox4); this.vbox1.Add(this.alignment4); Gtk.Box.BoxChild w76 = ((Gtk.Box.BoxChild)(this.vbox1[this.alignment4])); w76.Position = 3; w76.Expand = false; w76.Fill = false; this.Add(this.vbox1); if ((this.Child != null)) { this.Child.ShowAll(); } this.DefaultWidth = 765; this.DefaultHeight = 658; this.Hide(); this.DeleteEvent += new Gtk.DeleteEventHandler(this.OnDeleteEvent); this.About.Activated += new System.EventHandler(this.OnAboutActivated); this.Quit.Activated += new System.EventHandler(this.OnQuitActivated); this.stopTorrentButton.Activated += new System.EventHandler(this.OnStopTorrentActivated); this.removeTorrentButton.Activated += new System.EventHandler(this.OnRemoveTorrentButtonActivated); this.preferences.Activated += new System.EventHandler(this.OnPreferencesActivated); this.deleteTorrentButton.Activated += new System.EventHandler(this.OnDeleteTorrentButtonActivated); this.EditColumns.Activated += new System.EventHandler(this.OnColumnsActivated); this.ShowLabels.Activated += new System.EventHandler(this.OnShowLabelsActivated); this.ShowDetailedInfo.Activated += new System.EventHandler(this.OnShowDetailedInfoActivated); this.OpenTorrent.Activated += new System.EventHandler(this.OnOpenActivated); this.startTorrentButton.Activated += new System.EventHandler(this.OnStartTorrentActivated); this.NewTorrent.Activated += new System.EventHandler(this.OnNewActivated); this.Plugins.Activated += new System.EventHandler(this.OnPluginsActivated); this.ReportBugAction.Activated += new System.EventHandler(this.OnReportBugActivated); this.gotoTopAction.Activated += new System.EventHandler(this.OnPriorityHighest); this.gotoBottomAction.Activated += new System.EventHandler(this.OnPriorityLowest); this.CloseAction.Activated += new System.EventHandler(this.OnCloseActionActivated); }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget ocmgtk.FileDownloadProgress this.WidthRequest = 450; this.Name = "ocmgtk.FileDownloadProgress"; this.Title = Mono.Unix.Catalog.GetString("Downloading File"); this.TypeHint = ((Gdk.WindowTypeHint)(1)); this.WindowPosition = ((Gtk.WindowPosition)(4)); this.Modal = true; this.Resizable = false; this.AllowGrow = false; this.SkipPagerHint = true; this.SkipTaskbarHint = true; // Internal child ocmgtk.FileDownloadProgress.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; this.vbox2.BorderWidth = ((uint)(6)); // Container child vbox2.Gtk.Box+BoxChild this.label1 = new Gtk.Label(); this.label1.Name = "label1"; this.label1.Xalign = 0F; this.label1.LabelProp = Mono.Unix.Catalog.GetString("<big><b>Downloading File</b></big>"); this.label1.UseMarkup = true; this.vbox2.Add(this.label1); Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.vbox2[this.label1])); w2.Position = 0; w2.Expand = false; w2.Fill = false; // Container child vbox2.Gtk.Box+BoxChild this.fileLabel = new Gtk.Label(); this.fileLabel.Name = "fileLabel"; this.fileLabel.Xalign = 0F; this.fileLabel.LabelProp = Mono.Unix.Catalog.GetString("Initializing"); this.fileLabel.UseMarkup = true; this.vbox2.Add(this.fileLabel); Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox2[this.fileLabel])); w3.Position = 1; w3.Expand = false; w3.Fill = false; // Container child vbox2.Gtk.Box+BoxChild this.progBar = new Gtk.ProgressBar(); this.progBar.Name = "progBar"; this.vbox2.Add(this.progBar); Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.vbox2[this.progBar])); w4.Position = 2; w4.Expand = false; w4.Fill = false; w1.Add(this.vbox2); Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(w1[this.vbox2])); w5.Position = 0; w5.Expand = false; w5.Fill = false; // Internal child ocmgtk.FileDownloadProgress.ActionArea Gtk.HButtonBox w6 = this.ActionArea; w6.Name = "dialog1_ActionArea"; w6.Spacing = 10; w6.BorderWidth = ((uint)(5)); w6.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 w7 = ((Gtk.ButtonBox.ButtonBoxChild)(w6[this.buttonCancel])); w7.Expand = false; w7.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 w8 = ((Gtk.ButtonBox.ButtonBoxChild)(w6[this.buttonOk])); w8.Position = 1; w8.Expand = false; w8.Fill = false; if ((this.Child != null)) { this.Child.ShowAll(); } this.DefaultWidth = 462; this.DefaultHeight = 173; this.buttonOk.Hide(); this.Show(); 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 Mono.Addins.Gui.AddinInstallerDialog this.Name = "Mono.Addins.Gui.AddinInstallerDialog"; this.Title = Mono.Unix.Catalog.GetString("Extension Manager"); this.WindowPosition = ((Gtk.WindowPosition)(4)); this.BorderWidth = ((uint)(6)); this.HasSeparator = false; // Internal child Mono.Addins.Gui.AddinInstallerDialog.VBox Gtk.VBox w1 = this.VBox; w1.Name = "dialog1_VBox"; w1.Spacing = 6; w1.BorderWidth = ((uint)(2)); // Container child dialog1_VBox.Gtk.Box+BoxChild 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.label1 = new Gtk.Label(); this.label1.Name = "label1"; this.label1.Xalign = 0F; this.label1.LabelProp = Mono.Unix.Catalog.GetString("Additional extensions are required to perform this operation."); this.vbox2.Add(this.label1); Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.vbox2[this.label1])); w2.Position = 0; w2.Expand = false; w2.Fill = false; // Container child vbox2.Gtk.Box+BoxChild this.label2 = new Gtk.Label(); this.label2.Name = "label2"; this.label2.Xalign = 0F; this.label2.LabelProp = Mono.Unix.Catalog.GetString("The following extensions will be installed:"); this.vbox2.Add(this.label2); Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox2[this.label2])); w3.Position = 1; w3.Expand = false; w3.Fill = false; // Container child vbox2.Gtk.Box+BoxChild 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 Gtk.Viewport w4 = new Gtk.Viewport(); w4.ShadowType = ((Gtk.ShadowType)(0)); // Container child GtkViewport.Gtk.Container+ContainerChild this.addinList = new Gtk.Label(); this.addinList.Name = "addinList"; this.addinList.Xpad = 6; this.addinList.Ypad = 6; this.addinList.Xalign = 0F; this.addinList.Yalign = 0F; this.addinList.LabelProp = "label3"; w4.Add(this.addinList); this.scrolledwindow1.Add(w4); this.vbox2.Add(this.scrolledwindow1); Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(this.vbox2[this.scrolledwindow1])); w7.Position = 2; // Container child vbox2.Gtk.Box+BoxChild this.progressBar = new Gtk.ProgressBar(); this.progressBar.Name = "progressBar"; this.progressBar.Text = ""; this.vbox2.Add(this.progressBar); Gtk.Box.BoxChild w8 = ((Gtk.Box.BoxChild)(this.vbox2[this.progressBar])); w8.Position = 3; w8.Expand = false; w8.Fill = false; w1.Add(this.vbox2); Gtk.Box.BoxChild w9 = ((Gtk.Box.BoxChild)(w1[this.vbox2])); w9.Position = 0; // Internal child Mono.Addins.Gui.AddinInstallerDialog.ActionArea Gtk.HButtonBox w10 = this.ActionArea; w10.Name = "dialog1_ActionArea"; w10.Spacing = 10; w10.BorderWidth = ((uint)(6)); 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.CanDefault = true; this.buttonOk.CanFocus = true; this.buttonOk.Name = "buttonOk"; this.buttonOk.UseStock = true; this.buttonOk.UseUnderline = true; this.buttonOk.Label = "gtk-ok"; w10.Add(this.buttonOk); 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 = 593; this.DefaultHeight = 433; this.progressBar.Hide(); this.Show(); this.buttonOk.Clicked += new System.EventHandler(this.OnButtonOkClicked); }
protected virtual void Build() { Stetic.Gui.Initialize(); // Widget Monodoc.Editor.EditorWindow Gtk.UIManager w1 = new Gtk.UIManager(); Gtk.ActionGroup w2 = new Gtk.ActionGroup("Default"); this.File = new Gtk.Action("File", Mono.Unix.Catalog.GetString("_File"), null, null); this.File.ShortLabel = Mono.Unix.Catalog.GetString("_File"); w2.Add(this.File, null); this.Quit = new Gtk.Action("Quit", Mono.Unix.Catalog.GetString("_Quit"), null, "gtk-quit"); this.Quit.ShortLabel = Mono.Unix.Catalog.GetString("_Quit"); w2.Add(this.Quit, null); this.Open = new Gtk.Action("Open", Mono.Unix.Catalog.GetString("_Open"), Mono.Unix.Catalog.GetString("Open file"), "gtk-open"); this.Open.ShortLabel = Mono.Unix.Catalog.GetString("_Open"); w2.Add(this.Open, null); this.Save = new Gtk.Action("Save", Mono.Unix.Catalog.GetString("_Save"), Mono.Unix.Catalog.GetString("Save file"), "gtk-save"); this.Save.Sensitive = false; this.Save.ShortLabel = Mono.Unix.Catalog.GetString("_Save"); w2.Add(this.Save, null); this.SaveAs = new Gtk.Action("SaveAs", Mono.Unix.Catalog.GetString("Save _As"), null, "gtk-save-as"); this.SaveAs.Sensitive = false; this.SaveAs.ShortLabel = Mono.Unix.Catalog.GetString("Save _As"); w2.Add(this.SaveAs, null); this.CloseFile = new Gtk.Action("CloseFile", Mono.Unix.Catalog.GetString("_Close File"), null, "gtk-close"); this.CloseFile.ShortLabel = Mono.Unix.Catalog.GetString("_Close File"); w2.Add(this.CloseFile, null); this.Edit = new Gtk.Action("Edit", Mono.Unix.Catalog.GetString("_Edit"), null, null); this.Edit.ShortLabel = Mono.Unix.Catalog.GetString("_Edit"); w2.Add(this.Edit, null); this.Cut = new Gtk.Action("Cut", Mono.Unix.Catalog.GetString("Cu_t"), null, "gtk-cut"); this.Cut.Sensitive = false; this.Cut.ShortLabel = Mono.Unix.Catalog.GetString("Cu_t"); w2.Add(this.Cut, null); this.Copy = new Gtk.Action("Copy", Mono.Unix.Catalog.GetString("_Copy"), Mono.Unix.Catalog.GetString("Copy selection"), "gtk-copy"); this.Copy.ShortLabel = Mono.Unix.Catalog.GetString("_Copy"); w2.Add(this.Copy, null); this.Paste = new Gtk.Action("Paste", Mono.Unix.Catalog.GetString("_Paste"), null, "gtk-paste"); this.Paste.Sensitive = false; this.Paste.ShortLabel = Mono.Unix.Catalog.GetString("_Paste"); w2.Add(this.Paste, null); this.Help = new Gtk.Action("Help", Mono.Unix.Catalog.GetString("_Help"), null, null); this.Help.ShortLabel = Mono.Unix.Catalog.GetString("_Help"); w2.Add(this.Help, null); this.About = new Gtk.Action("About", Mono.Unix.Catalog.GetString("_About"), null, "gtk-about"); this.About.ShortLabel = Mono.Unix.Catalog.GetString("_About"); w2.Add(this.About, null); this.Undo = new Gtk.Action("Undo", Mono.Unix.Catalog.GetString("_Undo"), Mono.Unix.Catalog.GetString("Undo last action"), "gtk-undo"); this.Undo.Sensitive = false; this.Undo.ShortLabel = Mono.Unix.Catalog.GetString("_Undo"); w2.Add(this.Undo, "<Control>z"); this.Redo = new Gtk.Action("Redo", Mono.Unix.Catalog.GetString("_Redo"), Mono.Unix.Catalog.GetString("Redo last undone action"), "gtk-redo"); this.Redo.Sensitive = false; this.Redo.ShortLabel = Mono.Unix.Catalog.GetString("_Redo"); w2.Add(this.Redo, "<Control>x"); w1.InsertActionGroup(w2, 0); this.AddAccelGroup(w1.AccelGroup); this.Name = "Monodoc.Editor.EditorWindow"; this.Title = Mono.Unix.Catalog.GetString("Monodoc Documentation Editor"); this.Icon = Gdk.Pixbuf.LoadFromResource("monodoc.png"); this.WindowPosition = ((Gtk.WindowPosition)(1)); // Container child Monodoc.Editor.EditorWindow.Gtk.Container+ContainerChild this.vbox1 = new Gtk.VBox(); this.vbox1.Name = "vbox1"; // Container child vbox1.Gtk.Box+BoxChild w1.AddUiFromString("<ui><menubar name='menubar1'><menu action='File'><menuitem action='Open'/><separator/><menuitem action='Save'/><menuitem action='SaveAs'/><separator/><menuitem action='CloseFile'/><separator/><menuitem action='Quit'/></menu><menu action='Edit'><menuitem action='Undo'/><menuitem action='Redo'/><separator/><menuitem action='Cut'/><menuitem action='Copy'/><menuitem action='Paste'/></menu><menu action='Help'><menuitem action='About'/></menu></menubar></ui>"); this.menubar1 = ((Gtk.MenuBar)(w1.GetWidget("/menubar1"))); this.menubar1.Name = "menubar1"; this.vbox1.Add(this.menubar1); Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox1[this.menubar1])); w3.Position = 0; w3.Expand = false; w3.Fill = false; // Container child vbox1.Gtk.Box+BoxChild w1.AddUiFromString("<ui><toolbar name='toolbar1'><toolitem action='Open'/><toolitem action='Save'/><separator/><toolitem action='Undo'/><toolitem action='Redo'/><separator/><toolitem action='Cut'/><toolitem action='Copy'/><toolitem action='Paste'/></toolbar></ui>"); this.toolbar1 = ((Gtk.Toolbar)(w1.GetWidget("/toolbar1"))); this.toolbar1.Name = "toolbar1"; this.toolbar1.ShowArrow = false; this.toolbar1.ToolbarStyle = ((Gtk.ToolbarStyle)(0)); this.vbox1.Add(this.toolbar1); Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.vbox1[this.toolbar1])); w4.Position = 1; w4.Expand = false; w4.Fill = false; // Container child vbox1.Gtk.Box+BoxChild this.edit_container = new Gtk.VBox(); this.edit_container.Name = "edit_container"; this.edit_container.Spacing = 6; this.vbox1.Add(this.edit_container); Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.vbox1[this.edit_container])); w5.Position = 2; // Container child vbox1.Gtk.Box+BoxChild this.status_bar = new Gtk.Statusbar(); this.status_bar.Name = "status_bar"; this.status_bar.Spacing = 6; this.status_bar.HasResizeGrip = false; // Container child status_bar.Gtk.Box+BoxChild this.progress_bar = new Gtk.ProgressBar(); this.progress_bar.Name = "progress_bar"; this.status_bar.Add(this.progress_bar); Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(this.status_bar[this.progress_bar])); w6.Position = 1; this.vbox1.Add(this.status_bar); Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(this.vbox1[this.status_bar])); w7.Position = 3; w7.Expand = false; w7.Fill = false; this.Add(this.vbox1); if ((this.Child != null)) { this.Child.ShowAll(); } this.DefaultWidth = 740; this.DefaultHeight = 537; this.progress_bar.Hide(); this.Show(); this.DeleteEvent += new Gtk.DeleteEventHandler(this.OnDeleteEvent); this.Quit.Activated += new System.EventHandler(this.OnQuitActivated); this.Open.Activated += new System.EventHandler(this.OnOpenActivated); this.Save.Activated += new System.EventHandler(this.OnSaveActivated); this.SaveAs.Activated += new System.EventHandler(this.OnSaveAsActivated); this.CloseFile.Activated += new System.EventHandler(this.OnCloseFileActivated); this.Copy.Activated += new System.EventHandler(this.OnCopyActivated); this.About.Activated += new System.EventHandler(this.OnAboutActivated); this.Undo.Activated += new System.EventHandler(this.OnUndoActivated); this.Redo.Activated += new System.EventHandler(this.OnRedoActivated); }
private void CreateGui() { Gtk.FileChooserButton fc = new Gtk.FileChooserButton("Choose directory to put your splitted files", Gtk.FileChooserAction.SelectFolder); string fn = Banshee.Configuration.ConfigurationClient.Get <string>("cuesheets_todevice", ""); if (fn != "") { fc.SelectFilename(fn); } fc.FileSet += new EventHandler(delegate(Object sender, EventArgs args) { fn = fc.Filename; Banshee.Configuration.ConfigurationClient.Set <string>("cuesheets_todevice", fn); }); Gtk.Button btn = new Gtk.Button("Split CueSheet Audio File"); Gtk.Button csplit = new Gtk.Button("Cancel"); csplit.Clicked += delegate(object sender, EventArgs args) { _splt.CancelSplit(); }; Gtk.ProgressBar bar = new Gtk.ProgressBar(); Gtk.ProgressBar nr = new Gtk.ProgressBar(); Gtk.Button ok = (Gtk.Button)base.AddButton("OK", 1); Gtk.Label result = new Gtk.Label("-"); btn.Clicked += delegate(object sender, EventArgs args) { btn.Hide(); csplit.Show(); result.Markup = ""; ok.Sensitive = false; fc.Sensitive = false; btn.Sensitive = false; _splt.SplitWithPaths(); bool convert_to_latin1 = true; _splt.SplitToDir(fn, convert_to_latin1); GLib.Timeout.Add(50, delegate() { bar.Fraction = _splt.ProgressOfCurrentTrack; int n = _splt.ProgressNTracks; int i = _splt.ProgressCurrentTrack; double d = ((double)i) / ((double)n); nr.Fraction = d; if (_splt.SplitFinished) { ok.Sensitive = true; btn.Sensitive = true; fc.Sensitive = true; csplit.Hide(); btn.Show(); if (_splt.Cancelled) { result.Markup = "<b>Split Cancelled</b>"; } else { result.Markup = "<b>Finished</b>"; } } return(!_splt.SplitFinished); }); }; fc.Show(); nr.Show(); bar.Show(); btn.Show(); result.Show(); base.VBox.Add(fc); base.VBox.Add(hsep()); base.VBox.Add(nr); base.VBox.Add(bar); base.VBox.Add(hsep()); base.VBox.Add(result); base.VBox.Add(hsep()); base.VBox.Add(btn); base.VBox.Add(csplit); base.VBox.Show(); }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget Flickr.UploadDialog this.Name = "Flickr.UploadDialog"; this.Title = Mono.Addins.AddinManager.CurrentLocalizer.GetString("Flickr Upload"); this.Icon = Gdk.Pixbuf.LoadFromResource("flickr.png"); this.WindowPosition = ((Gtk.WindowPosition)(4)); this.Resizable = false; this.AllowGrow = false; this.SkipTaskbarHint = true; this.HasSeparator = false; // Internal child Flickr.UploadDialog.VBox Gtk.VBox w1 = this.VBox; w1.Name = "dialog1_VBox"; w1.BorderWidth = ((uint)(2)); // Container child dialog1_VBox.Gtk.Box+BoxChild this.alignment1 = new Gtk.Alignment(0.5F, 0.5F, 1F, 1F); this.alignment1.Name = "alignment1"; this.alignment1.LeftPadding = ((uint)(10)); this.alignment1.TopPadding = ((uint)(10)); this.alignment1.RightPadding = ((uint)(10)); this.alignment1.BottomPadding = ((uint)(10)); // Container child alignment1.Gtk.Container+ContainerChild this.hbox1 = new Gtk.HBox(); this.hbox1.Name = "hbox1"; this.hbox1.Spacing = 6; // Container child hbox1.Gtk.Box+BoxChild this.FlickrImage = new Gtk.Image(); this.FlickrImage.Name = "FlickrImage"; this.hbox1.Add(this.FlickrImage); Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.hbox1[this.FlickrImage])); w2.Position = 0; w2.Expand = false; w2.Fill = false; // Container child hbox1.Gtk.Box+BoxChild this.vbox2 = new Gtk.VBox(); this.vbox2.Name = "vbox2"; this.vbox2.Spacing = 6; // Container child vbox2.Gtk.Box+BoxChild this.TextLabel = new Gtk.Label(); this.TextLabel.Name = "TextLabel"; this.TextLabel.Justify = ((Gtk.Justification)(2)); this.TextLabel.Ellipsize = ((Pango.EllipsizeMode)(3)); this.TextLabel.WidthChars = 40; this.vbox2.Add(this.TextLabel); Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox2[this.TextLabel])); w3.Position = 0; w3.Expand = false; w3.Fill = false; // Container child vbox2.Gtk.Box+BoxChild this.uploadProgress = new Gtk.ProgressBar(); this.uploadProgress.Name = "uploadProgress"; this.vbox2.Add(this.uploadProgress); Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.vbox2[this.uploadProgress])); w4.Position = 1; w4.Expand = false; w4.Fill = false; this.hbox1.Add(this.vbox2); Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.hbox1[this.vbox2])); w5.Position = 1; this.alignment1.Add(this.hbox1); w1.Add(this.alignment1); Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(w1[this.alignment1])); w7.Position = 0; w7.Expand = false; w7.Fill = false; // Internal child Flickr.UploadDialog.ActionArea Gtk.HButtonBox w8 = this.ActionArea; w8.Name = "dialog1_ActionArea"; w8.Spacing = 6; w8.BorderWidth = ((uint)(5)); w8.LayoutStyle = ((Gtk.ButtonBoxStyle)(4)); // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild this.HideButton = new Gtk.Button(); this.HideButton.CanDefault = true; this.HideButton.CanFocus = true; this.HideButton.Name = "HideButton"; this.HideButton.UseUnderline = true; // Container child HideButton.Gtk.Container+ContainerChild Gtk.Alignment w9 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w10 = new Gtk.HBox(); w10.Spacing = 2; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w11 = new Gtk.Image(); w11.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-leave-fullscreen", Gtk.IconSize.LargeToolbar, 24); w10.Add(w11); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w13 = new Gtk.Label(); w13.LabelProp = Mono.Addins.AddinManager.CurrentLocalizer.GetString("_Hide"); w13.UseUnderline = true; w10.Add(w13); w9.Add(w10); this.HideButton.Add(w9); this.AddActionWidget(this.HideButton, 0); Gtk.ButtonBox.ButtonBoxChild w17 = ((Gtk.ButtonBox.ButtonBoxChild)(w8[this.HideButton])); w17.Expand = false; w17.Fill = false; // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild this.OKButton = new Gtk.Button(); this.OKButton.CanFocus = true; this.OKButton.Name = "OKButton"; this.OKButton.UseUnderline = true; // Container child OKButton.Gtk.Container+ContainerChild Gtk.Alignment w18 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); // Container child GtkAlignment1.Gtk.Container+ContainerChild Gtk.HBox w19 = new Gtk.HBox(); w19.Spacing = 2; // Container child GtkHBox1.Gtk.Container+ContainerChild Gtk.Image w20 = new Gtk.Image(); w20.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-ok", Gtk.IconSize.LargeToolbar, 24); w19.Add(w20); // Container child GtkHBox1.Gtk.Container+ContainerChild Gtk.Label w22 = new Gtk.Label(); w22.LabelProp = Mono.Addins.AddinManager.CurrentLocalizer.GetString("_OK"); w22.UseUnderline = true; w19.Add(w22); w18.Add(w19); this.OKButton.Add(w18); this.AddActionWidget(this.OKButton, 0); Gtk.ButtonBox.ButtonBoxChild w26 = ((Gtk.ButtonBox.ButtonBoxChild)(w8[this.OKButton])); w26.Position = 1; w26.Expand = false; w26.Fill = false; if ((this.Child != null)) { this.Child.ShowAll(); } this.DefaultWidth = 408; this.DefaultHeight = 147; this.Show(); }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget MainWindow this.UIManager = new Gtk.UIManager(); Gtk.ActionGroup w1 = new Gtk.ActionGroup("Default"); this.FileAction = new Gtk.Action("FileAction", Mono.Unix.Catalog.GetString("_File"), null, null); this.FileAction.ShortLabel = Mono.Unix.Catalog.GetString("_File"); w1.Add(this.FileAction, null); this.OpenAction = new Gtk.Action("OpenAction", Mono.Unix.Catalog.GetString("_Open..."), null, "gtk-open"); this.OpenAction.ShortLabel = Mono.Unix.Catalog.GetString("_Open..."); w1.Add(this.OpenAction, null); this.QuitAction = new Gtk.Action("QuitAction", Mono.Unix.Catalog.GetString("_Quit"), null, "gtk-quit"); this.QuitAction.ShortLabel = Mono.Unix.Catalog.GetString("_Quit"); w1.Add(this.QuitAction, 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.rootBox = new Gtk.VBox(); this.rootBox.Name = "rootBox"; this.rootBox.Spacing = 6; // Container child rootBox.Gtk.Box+BoxChild this.UIManager.AddUiFromString("<ui><menubar name='menubar'><menu name='FileAction' action='FileAction'><menuitem name='OpenAction' action='OpenAction'/><separator/><menuitem name='QuitAction' action='QuitAction'/></menu></menubar></ui>"); this.menubar = ((Gtk.MenuBar)(this.UIManager.GetWidget("/menubar"))); this.menubar.Name = "menubar"; this.rootBox.Add(this.menubar); Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.rootBox[this.menubar])); w2.Position = 0; w2.Expand = false; w2.Fill = false; // Container child rootBox.Gtk.Box+BoxChild this.scrolledwindow = new Gtk.ScrolledWindow(); this.scrolledwindow.CanFocus = true; this.scrolledwindow.Name = "scrolledwindow"; this.scrolledwindow.ShadowType = ((Gtk.ShadowType)(1)); this.rootBox.Add(this.scrolledwindow); Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.rootBox[this.scrolledwindow])); w3.Position = 1; // Container child rootBox.Gtk.Box+BoxChild this.statusbar = new Gtk.Statusbar(); this.statusbar.Name = "statusbar"; this.statusbar.Spacing = 6; // Container child statusbar.Gtk.Box+BoxChild this.progressbar = new Gtk.ProgressBar(); this.progressbar.Name = "progressbar"; this.statusbar.Add(this.progressbar); Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.statusbar[this.progressbar])); w4.Position = 1; w4.Expand = false; // Container child statusbar.Gtk.Box+BoxChild this.cancelButton = new Gtk.Button(); this.cancelButton.CanFocus = true; this.cancelButton.Name = "cancelButton"; this.cancelButton.UseStock = true; this.cancelButton.UseUnderline = true; this.cancelButton.Label = "gtk-cancel"; this.statusbar.Add(this.cancelButton); Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.statusbar[this.cancelButton])); w5.Position = 2; w5.Expand = false; w5.Fill = false; this.rootBox.Add(this.statusbar); Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(this.rootBox[this.statusbar])); w6.Position = 2; w6.Expand = false; w6.Fill = false; this.Add(this.rootBox); if ((this.Child != null)) { this.Child.ShowAll(); } this.DefaultWidth = 612; this.DefaultHeight = 333; this.progressbar.Hide(); this.cancelButton.Hide(); this.Show(); this.DeleteEvent += new Gtk.DeleteEventHandler(this.OnDeleteEvent); this.OpenAction.Activated += new System.EventHandler(this.OpenAction_Activated); this.QuitAction.Activated += new System.EventHandler(this.QuitAction_Activated); this.cancelButton.Clicked += new System.EventHandler(this.cancelButton_Clicked); }
public override void Initialize() { var progressBar = new Gtk.ProgressBar (); Widget = progressBar; Widget.Show (); }
protected virtual void Build() { Stetic.Gui.Initialize(); // Widget MainWindow Gtk.UIManager w1 = new Gtk.UIManager(); Gtk.ActionGroup w2 = new Gtk.ActionGroup("Default"); this.File = new Gtk.Action("File", Mono.Unix.Catalog.GetString("File"), null, null); this.File.ShortLabel = Mono.Unix.Catalog.GetString("File"); w2.Add(this.File, null); this.Edit = new Gtk.Action("Edit", Mono.Unix.Catalog.GetString("Edit"), null, null); this.Edit.ShortLabel = Mono.Unix.Catalog.GetString("Edit"); w2.Add(this.Edit, null); this.View = new Gtk.Action("View", Mono.Unix.Catalog.GetString("View"), null, null); this.View.ShortLabel = Mono.Unix.Catalog.GetString("View"); w2.Add(this.View, null); this.Help = new Gtk.Action("Help", Mono.Unix.Catalog.GetString("Help"), null, null); this.Help.ShortLabel = Mono.Unix.Catalog.GetString("Help"); w2.Add(this.Help, null); this.About = new Gtk.Action("About", Mono.Unix.Catalog.GetString("_About"), null, "gtk-about"); this.About.ShortLabel = Mono.Unix.Catalog.GetString("_About"); w2.Add(this.About, null); this.Quit = new Gtk.Action("Quit", Mono.Unix.Catalog.GetString("Quit"), null, "gtk-quit"); this.Quit.ShortLabel = Mono.Unix.Catalog.GetString("Quit"); w2.Add(this.Quit, null); this.Preferences = new Gtk.Action("Preferences", Mono.Unix.Catalog.GetString("_Preferences"), null, "gtk-preferences"); this.Preferences.ShortLabel = Mono.Unix.Catalog.GetString("_Preferences"); w2.Add(this.Preferences, null); this.@new = new Gtk.Action("new", null, null, "gtk-new"); w2.Add(this.@new, null); this.open = new Gtk.Action("open", null, null, "gtk-open"); w2.Add(this.open, null); this.startTorrentButton = new Gtk.Action("startTorrentButton", null, null, "gtk-media-play"); this.startTorrentButton.Sensitive = false; w2.Add(this.startTorrentButton, null); this.stopTorrentButton = new Gtk.Action("stopTorrentButton", null, null, "gtk-media-stop"); this.stopTorrentButton.Sensitive = false; w2.Add(this.stopTorrentButton, null); this.removeTorrentButton = new Gtk.Action("removeTorrentButton", null, null, "gtk-remove"); this.removeTorrentButton.Sensitive = false; w2.Add(this.removeTorrentButton, null); this.preferences = new Gtk.Action("preferences", null, null, "gtk-preferences"); w2.Add(this.preferences, null); this.deleteTorrentButton = new Gtk.Action("deleteTorrentButton", null, null, "gtk-delete"); this.deleteTorrentButton.Sensitive = false; w2.Add(this.deleteTorrentButton, null); this.Columns = new Gtk.Action("Columns", Mono.Unix.Catalog.GetString("Columns"), null, null); this.Columns.ShortLabel = Mono.Unix.Catalog.GetString("Columns"); w2.Add(this.Columns, null); w1.InsertActionGroup(w2, 0); this.AddAccelGroup(w1.AccelGroup); this.Name = "MainWindow"; this.Title = Mono.Unix.Catalog.GetString("MonoTorrent"); // Container child MainWindow.Gtk.Container+ContainerChild this.vbox1 = new Gtk.VBox(); this.vbox1.Name = "vbox1"; // Container child vbox1.Gtk.Box+BoxChild w1.AddUiFromString("<ui><menubar name='menubar1'><menu action='File'><menuitem action='Quit'/></menu><menu action='Edit'><menuitem action='Preferences'/></menu><menu action='View'><menuitem action='Columns'/></menu><menu action='Help'><menuitem action='About'/></menu></menubar></ui>"); this.menubar1 = ((Gtk.MenuBar)(w1.GetWidget("/menubar1"))); this.menubar1.Name = "menubar1"; this.vbox1.Add(this.menubar1); Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox1[this.menubar1])); w3.Position = 0; w3.Expand = false; w3.Fill = false; // Container child vbox1.Gtk.Box+BoxChild w1.AddUiFromString("<ui><toolbar name='toolbar1'><toolitem action='new'/><toolitem action='open'/><separator/><toolitem action='startTorrentButton'/><toolitem action='stopTorrentButton'/><toolitem action='removeTorrentButton'/><toolitem action='deleteTorrentButton'/><separator/><toolitem action='preferences'/></toolbar></ui>"); this.toolbar1 = ((Gtk.Toolbar)(w1.GetWidget("/toolbar1"))); this.toolbar1.Name = "toolbar1"; this.toolbar1.ShowArrow = false; this.toolbar1.ToolbarStyle = ((Gtk.ToolbarStyle)(0)); this.vbox1.Add(this.toolbar1); Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.vbox1[this.toolbar1])); w4.Position = 1; w4.Expand = false; w4.Fill = false; // Container child vbox1.Gtk.Box+BoxChild this.hPaned = new Gtk.HPaned(); this.hPaned.CanFocus = true; this.hPaned.Name = "hPaned"; this.hPaned.Position = 145; // Container child hPaned.Gtk.Paned+PanedChild this.labelViewScrolledWindow = new Gtk.ScrolledWindow(); this.labelViewScrolledWindow.CanFocus = true; this.labelViewScrolledWindow.Name = "labelViewScrolledWindow"; this.labelViewScrolledWindow.VscrollbarPolicy = ((Gtk.PolicyType)(1)); this.labelViewScrolledWindow.HscrollbarPolicy = ((Gtk.PolicyType)(1)); this.hPaned.Add(this.labelViewScrolledWindow); Gtk.Paned.PanedChild w5 = ((Gtk.Paned.PanedChild)(this.hPaned[this.labelViewScrolledWindow])); w5.Resize = false; // Container child hPaned.Gtk.Paned+PanedChild this.vPaned = new Gtk.VPaned(); this.vPaned.CanFocus = true; this.vPaned.Name = "vPaned"; this.vPaned.Position = 160; // Container child vPaned.Gtk.Paned+PanedChild this.torrentViewScrolledWindow = new Gtk.ScrolledWindow(); this.torrentViewScrolledWindow.CanFocus = true; this.torrentViewScrolledWindow.Name = "torrentViewScrolledWindow"; this.torrentViewScrolledWindow.VscrollbarPolicy = ((Gtk.PolicyType)(1)); this.torrentViewScrolledWindow.HscrollbarPolicy = ((Gtk.PolicyType)(1)); this.vPaned.Add(this.torrentViewScrolledWindow); Gtk.Paned.PanedChild w6 = ((Gtk.Paned.PanedChild)(this.vPaned[this.torrentViewScrolledWindow])); w6.Resize = false; // Container child vPaned.Gtk.Paned+PanedChild this.notebook1 = new Gtk.Notebook(); this.notebook1.CanFocus = true; this.notebook1.Name = "notebook1"; this.notebook1.CurrentPage = 3; // Container child notebook1.Gtk.Notebook+NotebookChild 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 Gtk.Viewport w7 = new Gtk.Viewport(); w7.Name = "GtkViewport2"; w7.ShadowType = ((Gtk.ShadowType)(0)); // Container child GtkViewport2.Gtk.Container+ContainerChild this.vbox4 = new Gtk.VBox(); this.vbox4.Name = "vbox4"; this.vbox4.Spacing = 6; this.vbox4.BorderWidth = ((uint)(5)); // Container child vbox4.Gtk.Box+BoxChild this.hbox3 = new Gtk.HBox(); this.hbox3.Name = "hbox3"; this.hbox3.Spacing = 6; // Container child hbox3.Gtk.Box+BoxChild this.downloadProgressBarLabel = new Gtk.Label(); this.downloadProgressBarLabel.Name = "downloadProgressBarLabel"; this.downloadProgressBarLabel.LabelProp = Mono.Unix.Catalog.GetString("Downloaded: "); this.hbox3.Add(this.downloadProgressBarLabel); Gtk.Box.BoxChild w8 = ((Gtk.Box.BoxChild)(this.hbox3[this.downloadProgressBarLabel])); w8.Position = 0; w8.Expand = false; w8.Fill = false; // Container child hbox3.Gtk.Box+BoxChild this.downloadedProgressBar = new Gtk.ProgressBar(); this.downloadedProgressBar.Name = "downloadedProgressBar"; this.hbox3.Add(this.downloadedProgressBar); Gtk.Box.BoxChild w9 = ((Gtk.Box.BoxChild)(this.hbox3[this.downloadedProgressBar])); w9.Position = 1; this.vbox4.Add(this.hbox3); Gtk.Box.BoxChild w10 = ((Gtk.Box.BoxChild)(this.vbox4[this.hbox3])); w10.Position = 0; w10.Expand = false; w10.Fill = false; // Container child vbox4.Gtk.Box+BoxChild this.hbox1 = new Gtk.HBox(); this.hbox1.Name = "hbox1"; this.hbox1.Spacing = 6; // Container child hbox1.Gtk.Box+BoxChild this.frame1 = new Gtk.Frame(); this.frame1.Name = "frame1"; this.frame1.ShadowType = ((Gtk.ShadowType)(0)); this.frame1.LabelXalign = 0F; // 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.vbox2 = new Gtk.VBox(); this.vbox2.Name = "vbox2"; this.vbox2.Spacing = 6; // Container child vbox2.Gtk.Box+BoxChild this.hbox12 = new Gtk.HBox(); this.hbox12.Name = "hbox12"; this.hbox12.Spacing = 6; // Container child hbox12.Gtk.Box+BoxChild this.elapsedTimeLabel = new Gtk.Label(); this.elapsedTimeLabel.Name = "elapsedTimeLabel"; this.elapsedTimeLabel.LabelProp = Mono.Unix.Catalog.GetString("Elapsed Time:"); this.hbox12.Add(this.elapsedTimeLabel); Gtk.Box.BoxChild w11 = ((Gtk.Box.BoxChild)(this.hbox12[this.elapsedTimeLabel])); w11.Position = 0; w11.Expand = false; w11.Fill = false; // Container child hbox12.Gtk.Box+BoxChild this.elapsedTimeValueLabel = new Gtk.Label(); this.elapsedTimeValueLabel.Name = "elapsedTimeValueLabel"; this.elapsedTimeValueLabel.LabelProp = ""; this.hbox12.Add(this.elapsedTimeValueLabel); Gtk.Box.BoxChild w12 = ((Gtk.Box.BoxChild)(this.hbox12[this.elapsedTimeValueLabel])); w12.Position = 1; w12.Expand = false; w12.Fill = false; this.vbox2.Add(this.hbox12); Gtk.Box.BoxChild w13 = ((Gtk.Box.BoxChild)(this.vbox2[this.hbox12])); w13.Position = 0; w13.Expand = false; w13.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.label3 = new Gtk.Label(); this.label3.Name = "label3"; this.label3.LabelProp = Mono.Unix.Catalog.GetString("Downloaded:"); this.hbox2.Add(this.label3); Gtk.Box.BoxChild w14 = ((Gtk.Box.BoxChild)(this.hbox2[this.label3])); w14.Position = 0; w14.Expand = false; w14.Fill = false; // Container child hbox2.Gtk.Box+BoxChild this.downloadedValueLabel = new Gtk.Label(); this.downloadedValueLabel.Name = "downloadedValueLabel"; this.downloadedValueLabel.LabelProp = ""; this.hbox2.Add(this.downloadedValueLabel); Gtk.Box.BoxChild w15 = ((Gtk.Box.BoxChild)(this.hbox2[this.downloadedValueLabel])); w15.Position = 1; w15.Expand = false; w15.Fill = false; this.vbox2.Add(this.hbox2); Gtk.Box.BoxChild w16 = ((Gtk.Box.BoxChild)(this.vbox2[this.hbox2])); w16.Position = 1; w16.Expand = false; w16.Fill = false; // Container child vbox2.Gtk.Box+BoxChild this.hbox5 = new Gtk.HBox(); this.hbox5.Name = "hbox5"; this.hbox5.Spacing = 6; // Container child hbox5.Gtk.Box+BoxChild this.label5 = new Gtk.Label(); this.label5.Name = "label5"; this.label5.LabelProp = Mono.Unix.Catalog.GetString("Uploaded:"); this.hbox5.Add(this.label5); Gtk.Box.BoxChild w17 = ((Gtk.Box.BoxChild)(this.hbox5[this.label5])); w17.Position = 0; w17.Expand = false; w17.Fill = false; // Container child hbox5.Gtk.Box+BoxChild this.uploadedValueLabel = new Gtk.Label(); this.uploadedValueLabel.Name = "uploadedValueLabel"; this.uploadedValueLabel.LabelProp = ""; this.hbox5.Add(this.uploadedValueLabel); Gtk.Box.BoxChild w18 = ((Gtk.Box.BoxChild)(this.hbox5[this.uploadedValueLabel])); w18.Position = 1; w18.Expand = false; w18.Fill = false; this.vbox2.Add(this.hbox5); Gtk.Box.BoxChild w19 = ((Gtk.Box.BoxChild)(this.vbox2[this.hbox5])); w19.Position = 2; w19.Expand = false; w19.Fill = false; this.GtkAlignment.Add(this.vbox2); this.frame1.Add(this.GtkAlignment); this.GtkLabel6 = new Gtk.Label(); this.GtkLabel6.Name = "GtkLabel6"; this.GtkLabel6.LabelProp = Mono.Unix.Catalog.GetString("<b>Transfer</b>"); this.GtkLabel6.UseMarkup = true; this.frame1.LabelWidget = this.GtkLabel6; this.hbox1.Add(this.frame1); Gtk.Box.BoxChild w22 = ((Gtk.Box.BoxChild)(this.hbox1[this.frame1])); w22.Position = 0; w22.Expand = false; w22.Fill = false; // Container child hbox1.Gtk.Box+BoxChild this.frame2 = new Gtk.Frame(); this.frame2.Name = "frame2"; this.frame2.ShadowType = ((Gtk.ShadowType)(0)); this.frame2.LabelXalign = 0F; // 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.vbox3 = new Gtk.VBox(); this.vbox3.Name = "vbox3"; this.vbox3.Spacing = 6; // Container child vbox3.Gtk.Box+BoxChild this.hbox6 = new Gtk.HBox(); this.hbox6.Name = "hbox6"; this.hbox6.Spacing = 6; // Container child hbox6.Gtk.Box+BoxChild this.label8 = new Gtk.Label(); this.label8.Name = "label8"; this.label8.LabelProp = Mono.Unix.Catalog.GetString("URL:"); this.hbox6.Add(this.label8); Gtk.Box.BoxChild w23 = ((Gtk.Box.BoxChild)(this.hbox6[this.label8])); w23.Position = 0; w23.Expand = false; w23.Fill = false; // Container child hbox6.Gtk.Box+BoxChild this.trackerUrlValueLabel = new Gtk.Label(); this.trackerUrlValueLabel.Name = "trackerUrlValueLabel"; this.trackerUrlValueLabel.LabelProp = ""; this.hbox6.Add(this.trackerUrlValueLabel); Gtk.Box.BoxChild w24 = ((Gtk.Box.BoxChild)(this.hbox6[this.trackerUrlValueLabel])); w24.Position = 1; w24.Expand = false; w24.Fill = false; this.vbox3.Add(this.hbox6); Gtk.Box.BoxChild w25 = ((Gtk.Box.BoxChild)(this.vbox3[this.hbox6])); w25.Position = 0; w25.Expand = false; w25.Fill = false; // Container child vbox3.Gtk.Box+BoxChild this.hbox7 = new Gtk.HBox(); this.hbox7.Name = "hbox7"; this.hbox7.Spacing = 6; // Container child hbox7.Gtk.Box+BoxChild this.label2 = new Gtk.Label(); this.label2.Name = "label2"; this.label2.LabelProp = Mono.Unix.Catalog.GetString("Status:"); this.hbox7.Add(this.label2); Gtk.Box.BoxChild w26 = ((Gtk.Box.BoxChild)(this.hbox7[this.label2])); w26.Position = 0; w26.Expand = false; w26.Fill = false; // Container child hbox7.Gtk.Box+BoxChild this.trackerStatusValueLabel = new Gtk.Label(); this.trackerStatusValueLabel.Name = "trackerStatusValueLabel"; this.trackerStatusValueLabel.LabelProp = ""; this.hbox7.Add(this.trackerStatusValueLabel); Gtk.Box.BoxChild w27 = ((Gtk.Box.BoxChild)(this.hbox7[this.trackerStatusValueLabel])); w27.Position = 1; w27.Expand = false; w27.Fill = false; this.vbox3.Add(this.hbox7); Gtk.Box.BoxChild w28 = ((Gtk.Box.BoxChild)(this.vbox3[this.hbox7])); w28.Position = 1; w28.Expand = false; w28.Fill = false; // Container child vbox3.Gtk.Box+BoxChild this.hbox8 = new Gtk.HBox(); this.hbox8.Name = "hbox8"; this.hbox8.Spacing = 6; // Container child hbox8.Gtk.Box+BoxChild this.label4 = new Gtk.Label(); this.label4.Name = "label4"; this.label4.LabelProp = Mono.Unix.Catalog.GetString("Last updated:"); this.hbox8.Add(this.label4); Gtk.Box.BoxChild w29 = ((Gtk.Box.BoxChild)(this.hbox8[this.label4])); w29.Position = 0; w29.Expand = false; w29.Fill = false; // Container child hbox8.Gtk.Box+BoxChild this.updateInValueLabel = new Gtk.Label(); this.updateInValueLabel.Name = "updateInValueLabel"; this.updateInValueLabel.LabelProp = ""; this.hbox8.Add(this.updateInValueLabel); Gtk.Box.BoxChild w30 = ((Gtk.Box.BoxChild)(this.hbox8[this.updateInValueLabel])); w30.Position = 1; w30.Expand = false; w30.Fill = false; this.vbox3.Add(this.hbox8); Gtk.Box.BoxChild w31 = ((Gtk.Box.BoxChild)(this.vbox3[this.hbox8])); w31.Position = 2; w31.Expand = false; w31.Fill = false; this.GtkAlignment1.Add(this.vbox3); this.frame2.Add(this.GtkAlignment1); this.GtkLabel7 = new Gtk.Label(); this.GtkLabel7.Name = "GtkLabel7"; this.GtkLabel7.LabelProp = Mono.Unix.Catalog.GetString("<b>Tracker</b>"); this.GtkLabel7.UseMarkup = true; this.frame2.LabelWidget = this.GtkLabel7; this.hbox1.Add(this.frame2); Gtk.Box.BoxChild w34 = ((Gtk.Box.BoxChild)(this.hbox1[this.frame2])); w34.Position = 1; w34.Expand = false; w34.Fill = false; this.vbox4.Add(this.hbox1); Gtk.Box.BoxChild w35 = ((Gtk.Box.BoxChild)(this.vbox4[this.hbox1])); w35.Position = 1; w35.Expand = false; w35.Fill = false; // Container child vbox4.Gtk.Box+BoxChild this.frame3 = new Gtk.Frame(); this.frame3.Name = "frame3"; this.frame3.ShadowType = ((Gtk.ShadowType)(0)); this.frame3.LabelXalign = 0F; // Container child frame3.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.vbox5 = new Gtk.VBox(); this.vbox5.Name = "vbox5"; this.vbox5.Spacing = 6; // Container child vbox5.Gtk.Box+BoxChild this.hbox4 = new Gtk.HBox(); this.hbox4.Name = "hbox4"; this.hbox4.Spacing = 6; // Container child hbox4.Gtk.Box+BoxChild this.label7 = new Gtk.Label(); this.label7.Name = "label7"; this.label7.LabelProp = Mono.Unix.Catalog.GetString("Save path:"); this.hbox4.Add(this.label7); Gtk.Box.BoxChild w36 = ((Gtk.Box.BoxChild)(this.hbox4[this.label7])); w36.Position = 0; w36.Expand = false; w36.Fill = false; // Container child hbox4.Gtk.Box+BoxChild this.savePathValueLabel = new Gtk.Label(); this.savePathValueLabel.Name = "savePathValueLabel"; this.savePathValueLabel.LabelProp = ""; this.hbox4.Add(this.savePathValueLabel); Gtk.Box.BoxChild w37 = ((Gtk.Box.BoxChild)(this.hbox4[this.savePathValueLabel])); w37.Position = 1; w37.Expand = false; w37.Fill = false; this.vbox5.Add(this.hbox4); Gtk.Box.BoxChild w38 = ((Gtk.Box.BoxChild)(this.vbox5[this.hbox4])); w38.Position = 0; w38.Expand = false; w38.Fill = false; // Container child vbox5.Gtk.Box+BoxChild this.hbox9 = new Gtk.HBox(); this.hbox9.Name = "hbox9"; this.hbox9.Spacing = 6; // Container child hbox9.Gtk.Box+BoxChild this.label10 = new Gtk.Label(); this.label10.Name = "label10"; this.label10.LabelProp = Mono.Unix.Catalog.GetString("Size:"); this.hbox9.Add(this.label10); Gtk.Box.BoxChild w39 = ((Gtk.Box.BoxChild)(this.hbox9[this.label10])); w39.Position = 0; w39.Expand = false; w39.Fill = false; // Container child hbox9.Gtk.Box+BoxChild this.sizeValueLabel = new Gtk.Label(); this.sizeValueLabel.Name = "sizeValueLabel"; this.sizeValueLabel.LabelProp = ""; this.hbox9.Add(this.sizeValueLabel); Gtk.Box.BoxChild w40 = ((Gtk.Box.BoxChild)(this.hbox9[this.sizeValueLabel])); w40.Position = 1; w40.Expand = false; w40.Fill = false; this.vbox5.Add(this.hbox9); Gtk.Box.BoxChild w41 = ((Gtk.Box.BoxChild)(this.vbox5[this.hbox9])); w41.Position = 1; w41.Expand = false; w41.Fill = false; // Container child vbox5.Gtk.Box+BoxChild this.hbox11 = new Gtk.HBox(); this.hbox11.Name = "hbox11"; this.hbox11.Spacing = 6; // Container child hbox11.Gtk.Box+BoxChild this.label11 = new Gtk.Label(); this.label11.Name = "label11"; this.label11.LabelProp = Mono.Unix.Catalog.GetString("Created on:"); this.hbox11.Add(this.label11); Gtk.Box.BoxChild w42 = ((Gtk.Box.BoxChild)(this.hbox11[this.label11])); w42.Position = 0; w42.Expand = false; w42.Fill = false; // Container child hbox11.Gtk.Box+BoxChild this.createdOnValueLabel = new Gtk.Label(); this.createdOnValueLabel.Name = "createdOnValueLabel"; this.createdOnValueLabel.LabelProp = ""; this.hbox11.Add(this.createdOnValueLabel); Gtk.Box.BoxChild w43 = ((Gtk.Box.BoxChild)(this.hbox11[this.createdOnValueLabel])); w43.Position = 1; w43.Expand = false; w43.Fill = false; this.vbox5.Add(this.hbox11); Gtk.Box.BoxChild w44 = ((Gtk.Box.BoxChild)(this.vbox5[this.hbox11])); w44.Position = 2; w44.Expand = false; w44.Fill = false; // Container child vbox5.Gtk.Box+BoxChild this.hbox10 = new Gtk.HBox(); this.hbox10.Name = "hbox10"; this.hbox10.Spacing = 6; // Container child hbox10.Gtk.Box+BoxChild this.label12 = new Gtk.Label(); this.label12.Name = "label12"; this.label12.LabelProp = Mono.Unix.Catalog.GetString("Comment:"); this.hbox10.Add(this.label12); Gtk.Box.BoxChild w45 = ((Gtk.Box.BoxChild)(this.hbox10[this.label12])); w45.Position = 0; w45.Expand = false; w45.Fill = false; // Container child hbox10.Gtk.Box+BoxChild this.commentValueLabel = new Gtk.Label(); this.commentValueLabel.Name = "commentValueLabel"; this.commentValueLabel.LabelProp = ""; this.hbox10.Add(this.commentValueLabel); Gtk.Box.BoxChild w46 = ((Gtk.Box.BoxChild)(this.hbox10[this.commentValueLabel])); w46.Position = 2; w46.Expand = false; w46.Fill = false; this.vbox5.Add(this.hbox10); Gtk.Box.BoxChild w47 = ((Gtk.Box.BoxChild)(this.vbox5[this.hbox10])); w47.Position = 3; w47.Expand = false; w47.Fill = false; this.GtkAlignment2.Add(this.vbox5); this.frame3.Add(this.GtkAlignment2); this.GtkLabel8 = new Gtk.Label(); this.GtkLabel8.Name = "GtkLabel8"; this.GtkLabel8.LabelProp = Mono.Unix.Catalog.GetString("<b>General</b>"); this.GtkLabel8.UseMarkup = true; this.frame3.LabelWidget = this.GtkLabel8; this.vbox4.Add(this.frame3); Gtk.Box.BoxChild w50 = ((Gtk.Box.BoxChild)(this.vbox4[this.frame3])); w50.Position = 2; w50.Expand = false; w50.Fill = false; w7.Add(this.vbox4); this.scrolledwindow1.Add(w7); this.notebook1.Add(this.scrolledwindow1); Gtk.Notebook.NotebookChild w53 = ((Gtk.Notebook.NotebookChild)(this.notebook1[this.scrolledwindow1])); w53.TabExpand = false; // Notebook tab this.label1 = new Gtk.Label(); this.label1.Name = "label1"; this.label1.LabelProp = Mono.Unix.Catalog.GetString("General"); this.notebook1.SetTabLabel(this.scrolledwindow1, this.label1); // Container child notebook1.Gtk.Notebook+NotebookChild this.filesScrolledWindow = new Gtk.ScrolledWindow(); this.filesScrolledWindow.CanFocus = true; this.filesScrolledWindow.Name = "filesScrolledWindow"; this.filesScrolledWindow.VscrollbarPolicy = ((Gtk.PolicyType)(1)); this.filesScrolledWindow.HscrollbarPolicy = ((Gtk.PolicyType)(1)); this.filesScrolledWindow.ShadowType = ((Gtk.ShadowType)(1)); this.notebook1.Add(this.filesScrolledWindow); Gtk.Notebook.NotebookChild w54 = ((Gtk.Notebook.NotebookChild)(this.notebook1[this.filesScrolledWindow])); w54.Position = 1; w54.TabExpand = false; // Notebook tab this.label9 = new Gtk.Label(); this.label9.Name = "label9"; this.label9.LabelProp = Mono.Unix.Catalog.GetString("Files"); this.notebook1.SetTabLabel(this.filesScrolledWindow, this.label9); // Container child notebook1.Gtk.Notebook+NotebookChild this.peersScrolledWindow = new Gtk.ScrolledWindow(); this.peersScrolledWindow.CanFocus = true; this.peersScrolledWindow.Name = "peersScrolledWindow"; this.peersScrolledWindow.VscrollbarPolicy = ((Gtk.PolicyType)(1)); this.peersScrolledWindow.HscrollbarPolicy = ((Gtk.PolicyType)(1)); this.peersScrolledWindow.ShadowType = ((Gtk.ShadowType)(1)); this.notebook1.Add(this.peersScrolledWindow); Gtk.Notebook.NotebookChild w55 = ((Gtk.Notebook.NotebookChild)(this.notebook1[this.peersScrolledWindow])); w55.Position = 2; w55.TabExpand = false; // Notebook tab this.label6 = new Gtk.Label(); this.label6.Name = "label6"; this.label6.LabelProp = Mono.Unix.Catalog.GetString("Peers"); this.notebook1.SetTabLabel(this.peersScrolledWindow, this.label6); // Container child notebook1.Gtk.Notebook+NotebookChild 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 Gtk.Viewport w56 = new Gtk.Viewport(); w56.Name = "GtkViewport5"; w56.ShadowType = ((Gtk.ShadowType)(0)); // Container child GtkViewport5.Gtk.Container+ContainerChild this.hbox13 = new Gtk.HBox(); this.hbox13.Name = "hbox13"; this.hbox13.Spacing = 6; // Container child hbox13.Gtk.Box+BoxChild this.frame4 = new Gtk.Frame(); this.frame4.Name = "frame4"; this.frame4.ShadowType = ((Gtk.ShadowType)(0)); this.frame4.LabelXalign = 0F; // Container child frame4.Gtk.Container+ContainerChild this.GtkAlignment3 = new Gtk.Alignment(0F, 0F, 1F, 1F); this.GtkAlignment3.WidthRequest = 250; this.GtkAlignment3.Name = "GtkAlignment3"; this.GtkAlignment3.LeftPadding = ((uint)(12)); // Container child GtkAlignment3.Gtk.Container+ContainerChild this.selectLabelScrolledWindow = new Gtk.ScrolledWindow(); this.selectLabelScrolledWindow.CanFocus = true; this.selectLabelScrolledWindow.Name = "selectLabelScrolledWindow"; this.selectLabelScrolledWindow.VscrollbarPolicy = ((Gtk.PolicyType)(1)); this.selectLabelScrolledWindow.HscrollbarPolicy = ((Gtk.PolicyType)(1)); this.selectLabelScrolledWindow.ShadowType = ((Gtk.ShadowType)(1)); this.GtkAlignment3.Add(this.selectLabelScrolledWindow); this.frame4.Add(this.GtkAlignment3); this.GtkLabel9 = new Gtk.Label(); this.GtkLabel9.Name = "GtkLabel9"; this.GtkLabel9.LabelProp = Mono.Unix.Catalog.GetString("<b>Set labels</b>"); this.GtkLabel9.UseMarkup = true; this.frame4.LabelWidget = this.GtkLabel9; this.hbox13.Add(this.frame4); Gtk.Box.BoxChild w59 = ((Gtk.Box.BoxChild)(this.hbox13[this.frame4])); w59.Position = 0; w59.Expand = false; w59.Fill = false; // Container child hbox13.Gtk.Box+BoxChild this.vbox6 = new Gtk.VBox(); this.vbox6.Name = "vbox6"; this.vbox6.Spacing = 6; // Container child vbox6.Gtk.Box+BoxChild this.frame5 = new Gtk.Frame(); this.frame5.Name = "frame5"; this.frame5.ShadowType = ((Gtk.ShadowType)(0)); this.frame5.LabelXalign = 0F; // Container child frame5.Gtk.Container+ContainerChild this.GtkAlignment4 = new Gtk.Alignment(0F, 0F, 1F, 1F); this.GtkAlignment4.Name = "GtkAlignment4"; this.GtkAlignment4.LeftPadding = ((uint)(12)); // Container child GtkAlignment4.Gtk.Container+ContainerChild this.vbox7 = new Gtk.VBox(); this.vbox7.Name = "vbox7"; this.vbox7.Spacing = 6; // Container child vbox7.Gtk.Box+BoxChild this.hbox14 = new Gtk.HBox(); this.hbox14.Name = "hbox14"; this.hbox14.Spacing = 6; // Container child hbox14.Gtk.Box+BoxChild this.label14 = new Gtk.Label(); this.label14.Name = "label14"; this.label14.LabelProp = Mono.Unix.Catalog.GetString("Maximum upload rate:"); this.hbox14.Add(this.label14); Gtk.Box.BoxChild w60 = ((Gtk.Box.BoxChild)(this.hbox14[this.label14])); w60.Position = 0; w60.Expand = false; w60.Fill = false; // Container child hbox14.Gtk.Box+BoxChild this.torrentUploadRateSpinButton = new Gtk.SpinButton(0, 100, 1); this.torrentUploadRateSpinButton.CanFocus = true; this.torrentUploadRateSpinButton.Name = "torrentUploadRateSpinButton"; this.torrentUploadRateSpinButton.Adjustment.PageIncrement = 10; this.torrentUploadRateSpinButton.ClimbRate = 1; this.torrentUploadRateSpinButton.Numeric = true; this.hbox14.Add(this.torrentUploadRateSpinButton); Gtk.Box.BoxChild w61 = ((Gtk.Box.BoxChild)(this.hbox14[this.torrentUploadRateSpinButton])); w61.Position = 1; w61.Expand = false; w61.Fill = false; this.vbox7.Add(this.hbox14); Gtk.Box.BoxChild w62 = ((Gtk.Box.BoxChild)(this.vbox7[this.hbox14])); w62.Position = 0; w62.Expand = false; w62.Fill = false; // Container child vbox7.Gtk.Box+BoxChild this.hbox15 = new Gtk.HBox(); this.hbox15.Name = "hbox15"; this.hbox15.Spacing = 6; // Container child hbox15.Gtk.Box+BoxChild this.label15 = new Gtk.Label(); this.label15.Name = "label15"; this.label15.LabelProp = Mono.Unix.Catalog.GetString("Maximum download rate:"); this.hbox15.Add(this.label15); Gtk.Box.BoxChild w63 = ((Gtk.Box.BoxChild)(this.hbox15[this.label15])); w63.Position = 0; w63.Expand = false; w63.Fill = false; // Container child hbox15.Gtk.Box+BoxChild this.torrentDownloadRateSpinButton = new Gtk.SpinButton(0, 100, 1); this.torrentDownloadRateSpinButton.CanFocus = true; this.torrentDownloadRateSpinButton.Name = "torrentDownloadRateSpinButton"; this.torrentDownloadRateSpinButton.Adjustment.PageIncrement = 10; this.torrentDownloadRateSpinButton.ClimbRate = 1; this.torrentDownloadRateSpinButton.Numeric = true; this.hbox15.Add(this.torrentDownloadRateSpinButton); Gtk.Box.BoxChild w64 = ((Gtk.Box.BoxChild)(this.hbox15[this.torrentDownloadRateSpinButton])); w64.Position = 1; w64.Expand = false; w64.Fill = false; this.vbox7.Add(this.hbox15); Gtk.Box.BoxChild w65 = ((Gtk.Box.BoxChild)(this.vbox7[this.hbox15])); w65.Position = 1; w65.Expand = false; w65.Fill = false; // Container child vbox7.Gtk.Box+BoxChild this.hbox16 = new Gtk.HBox(); this.hbox16.Name = "hbox16"; this.hbox16.Spacing = 6; // Container child hbox16.Gtk.Box+BoxChild this.label16 = new Gtk.Label(); this.label16.Name = "label16"; this.label16.LabelProp = Mono.Unix.Catalog.GetString("Maximum connections:"); this.hbox16.Add(this.label16); Gtk.Box.BoxChild w66 = ((Gtk.Box.BoxChild)(this.hbox16[this.label16])); w66.Position = 0; w66.Expand = false; w66.Fill = false; // Container child hbox16.Gtk.Box+BoxChild this.torrentMaxConnectionsSpinButton = new Gtk.SpinButton(0, 100, 1); this.torrentMaxConnectionsSpinButton.CanFocus = true; this.torrentMaxConnectionsSpinButton.Name = "torrentMaxConnectionsSpinButton"; this.torrentMaxConnectionsSpinButton.Adjustment.PageIncrement = 10; this.torrentMaxConnectionsSpinButton.ClimbRate = 1; this.torrentMaxConnectionsSpinButton.Numeric = true; this.hbox16.Add(this.torrentMaxConnectionsSpinButton); Gtk.Box.BoxChild w67 = ((Gtk.Box.BoxChild)(this.hbox16[this.torrentMaxConnectionsSpinButton])); w67.Position = 1; w67.Expand = false; w67.Fill = false; this.vbox7.Add(this.hbox16); Gtk.Box.BoxChild w68 = ((Gtk.Box.BoxChild)(this.vbox7[this.hbox16])); w68.Position = 2; w68.Expand = false; w68.Fill = false; // Container child vbox7.Gtk.Box+BoxChild this.hbox17 = new Gtk.HBox(); this.hbox17.Name = "hbox17"; this.hbox17.Spacing = 6; // Container child hbox17.Gtk.Box+BoxChild this.label17 = new Gtk.Label(); this.label17.Name = "label17"; this.label17.LabelProp = Mono.Unix.Catalog.GetString("Upload slots:"); this.hbox17.Add(this.label17); Gtk.Box.BoxChild w69 = ((Gtk.Box.BoxChild)(this.hbox17[this.label17])); w69.Position = 0; w69.Expand = false; w69.Fill = false; // Container child hbox17.Gtk.Box+BoxChild this.torrentUploadSlotSpinButton = new Gtk.SpinButton(0, 100, 1); this.torrentUploadSlotSpinButton.CanFocus = true; this.torrentUploadSlotSpinButton.Name = "torrentUploadSlotSpinButton"; this.torrentUploadSlotSpinButton.Adjustment.PageIncrement = 10; this.torrentUploadSlotSpinButton.ClimbRate = 1; this.torrentUploadSlotSpinButton.Numeric = true; this.hbox17.Add(this.torrentUploadSlotSpinButton); Gtk.Box.BoxChild w70 = ((Gtk.Box.BoxChild)(this.hbox17[this.torrentUploadSlotSpinButton])); w70.Position = 1; w70.Expand = false; w70.Fill = false; this.vbox7.Add(this.hbox17); Gtk.Box.BoxChild w71 = ((Gtk.Box.BoxChild)(this.vbox7[this.hbox17])); w71.Position = 3; w71.Expand = false; w71.Fill = false; this.GtkAlignment4.Add(this.vbox7); this.frame5.Add(this.GtkAlignment4); this.GtkLabel10 = new Gtk.Label(); this.GtkLabel10.Name = "GtkLabel10"; this.GtkLabel10.LabelProp = Mono.Unix.Catalog.GetString("<b>Bandwidth</b>"); this.GtkLabel10.UseMarkup = true; this.frame5.LabelWidget = this.GtkLabel10; this.vbox6.Add(this.frame5); Gtk.Box.BoxChild w74 = ((Gtk.Box.BoxChild)(this.vbox6[this.frame5])); w74.Position = 0; w74.Expand = false; w74.Fill = false; // Container child vbox6.Gtk.Box+BoxChild this.hbox18 = new Gtk.HBox(); this.hbox18.Name = "hbox18"; this.hbox18.Spacing = 6; // Container child hbox18.Gtk.Box+BoxChild this.saveTorrentSettingsButton = new Gtk.Button(); this.saveTorrentSettingsButton.CanFocus = true; this.saveTorrentSettingsButton.Name = "saveTorrentSettingsButton"; this.saveTorrentSettingsButton.UseUnderline = true; this.saveTorrentSettingsButton.Label = Mono.Unix.Catalog.GetString("Save"); this.hbox18.Add(this.saveTorrentSettingsButton); Gtk.Box.BoxChild w75 = ((Gtk.Box.BoxChild)(this.hbox18[this.saveTorrentSettingsButton])); w75.Position = 2; w75.Expand = false; w75.Fill = false; this.vbox6.Add(this.hbox18); Gtk.Box.BoxChild w76 = ((Gtk.Box.BoxChild)(this.vbox6[this.hbox18])); w76.Position = 1; w76.Expand = false; w76.Fill = false; this.hbox13.Add(this.vbox6); Gtk.Box.BoxChild w77 = ((Gtk.Box.BoxChild)(this.hbox13[this.vbox6])); w77.Position = 1; w77.Expand = false; w77.Fill = false; w56.Add(this.hbox13); this.scrolledwindow2.Add(w56); this.notebook1.Add(this.scrolledwindow2); Gtk.Notebook.NotebookChild w80 = ((Gtk.Notebook.NotebookChild)(this.notebook1[this.scrolledwindow2])); w80.Position = 3; w80.TabExpand = false; // Notebook tab this.label13 = new Gtk.Label(); this.label13.Name = "label13"; this.label13.LabelProp = Mono.Unix.Catalog.GetString("Options"); this.notebook1.SetTabLabel(this.scrolledwindow2, this.label13); this.vPaned.Add(this.notebook1); this.hPaned.Add(this.vPaned); this.vbox1.Add(this.hPaned); Gtk.Box.BoxChild w83 = ((Gtk.Box.BoxChild)(this.vbox1[this.hPaned])); w83.Position = 2; // Container child vbox1.Gtk.Box+BoxChild this.statusbar2 = new Gtk.Statusbar(); this.statusbar2.Name = "statusbar2"; this.statusbar2.Spacing = 6; // Container child statusbar2.Gtk.Box+BoxChild this.statusDownloadLabel = new Gtk.Label(); this.statusDownloadLabel.Name = "statusDownloadLabel"; this.statusDownloadLabel.LabelProp = Mono.Unix.Catalog.GetString("<small>D: 0.00 kB</small>"); this.statusDownloadLabel.UseMarkup = true; this.statusbar2.Add(this.statusDownloadLabel); Gtk.Box.BoxChild w84 = ((Gtk.Box.BoxChild)(this.statusbar2[this.statusDownloadLabel])); w84.Position = 1; w84.Expand = false; w84.Fill = false; // Container child statusbar2.Gtk.Box+BoxChild this.statusUploadLabel = new Gtk.Label(); this.statusUploadLabel.Name = "statusUploadLabel"; this.statusUploadLabel.LabelProp = Mono.Unix.Catalog.GetString("<small>U: 0.00 kB</small>"); this.statusUploadLabel.UseMarkup = true; this.statusbar2.Add(this.statusUploadLabel); Gtk.Box.BoxChild w85 = ((Gtk.Box.BoxChild)(this.statusbar2[this.statusUploadLabel])); w85.Position = 2; w85.Expand = false; w85.Fill = false; this.vbox1.Add(this.statusbar2); Gtk.Box.BoxChild w86 = ((Gtk.Box.BoxChild)(this.vbox1[this.statusbar2])); w86.Position = 3; w86.Expand = false; w86.Fill = false; this.Add(this.vbox1); if ((this.Child != null)) { this.Child.ShowAll(); } this.DefaultWidth = 762; this.DefaultHeight = 559; this.Hide(); this.DeleteEvent += new Gtk.DeleteEventHandler(this.OnDeleteEvent); this.About.Activated += new System.EventHandler(this.OnAboutActivated); this.Quit.Activated += new System.EventHandler(this.OnQuitActivated); this.Preferences.Activated += new System.EventHandler(this.OnPreferencesActivated); [email protected] += new System.EventHandler(this.OnNewActivated); this.open.Activated += new System.EventHandler(this.OnOpenActivated); this.startTorrentButton.Activated += new System.EventHandler(this.OnStartTorrentActivated); this.stopTorrentButton.Activated += new System.EventHandler(this.OnStopTorrentActivated); this.removeTorrentButton.Activated += new System.EventHandler(this.OnRemoveTorrentButtonActivated); this.preferences.Activated += new System.EventHandler(this.OnPreferencesActivated); this.deleteTorrentButton.Activated += new System.EventHandler(this.OnDeleteTorrentButtonActivated); this.Columns.Activated += new System.EventHandler(this.OnColumnsActivated); this.saveTorrentSettingsButton.Clicked += new System.EventHandler(this.OnSaveTorrentSettingsButtonClicked); }
private void Build() { global::Stetic.Gui.Initialize(this); this.menubar2 = new Gtk.MenuBar(); Gtk.AccelGroup agrp = new Gtk.AccelGroup ( ); this.AddAccelGroup (agrp); ////////////////////// FILE ////////////////////// FileAction = new Gtk.MenuItem(messages.Localize("[[window-menu-file]]")); FileAction.Submenu = this.FileMenu; OpenNewConnectionAction = new Gtk.ImageMenuItem(messages.Localize("[[window-menu-open]]")); OpenNewConnectionAction.AddAccelerator("activate", agrp, new Gtk.AccelKey(Gdk.Key.N, Gdk.ModifierType.ControlMask, Gtk.AccelFlags.Visible)); OpenNewConnectionAction.Image = new Gtk.Image(Gtk.Stock.Connect, Gtk.IconSize.Menu); FileAction.Submenu = this.FileMenu; FileMenu.Append(OpenNewConnectionAction); FileMenu.Append(new Gtk.SeparatorMenuItem()); FavoriteNetworksAction = new Gtk.ImageMenuItem(messages.Localize("[[window-menu-favorite]]")); FileMenu.Append(FavoriteNetworksAction); FileMenu.Append(new Gtk.SeparatorMenuItem()); PreferencesAction = new Gtk.ImageMenuItem(messages.Localize("[[window-menu-conf]]")); PreferencesAction.Image = new Gtk.Image(Gtk.Stock.Preferences, Gtk.IconSize.Menu); FileMenu.Append(PreferencesAction); FileMenu.Append(new Gtk.SeparatorMenuItem()); ShutDownAction = new Gtk.ImageMenuItem(messages.Localize("[[window-menu-quit]]")); FileMenu.Append(ShutDownAction); ////////////////////// TOOLS ////////////////////// ToolsAction = new Gtk.MenuItem(messages.Localize("[[window-menu-tools]]")); ToolsAction.Submenu = ToolsMenu; PacketViewerAction = new Gtk.MenuItem(messages.Localize("[[window-menu-viewer]]")); PacketViewerAction.AddAccelerator("activate", agrp, new Gtk.AccelKey(Gdk.Key.P, Gdk.ModifierType.ControlMask, Gtk.AccelFlags.Visible)); ToolsMenu.Append(PacketViewerAction); SmallChatAction = new Gtk.MenuItem(messages.Localize("[[window-menu-chat]]")); ToolsMenu.Append(SmallChatAction); ToolsMenu.Append(new Gtk.SeparatorMenuItem()); AttachToMicroChatAction = new Gtk.ImageMenuItem(messages.Localize("[[window-menu-chat1]]")); AttachToMicroChatAction.Image = new Gtk.Image(Gtk.Stock.Add, Gtk.IconSize.Menu); AttachToMicroChatAction.AddAccelerator("activate", agrp, new Gtk.AccelKey(Gdk.Key.M, Gdk.ModifierType.Mod1Mask, Gtk.AccelFlags.Visible)); ToolsMenu.Append(AttachToMicroChatAction); DetachFromMicroChatAction = new Gtk.ImageMenuItem(messages.Localize("[[window-menu-chat2]]")); DetachFromMicroChatAction.Image = new Gtk.Image(Gtk.Stock.Remove, Gtk.IconSize.Menu); DetachFromMicroChatAction.AddAccelerator("activate", agrp, new Gtk.AccelKey(Gdk.Key.D, Gdk.ModifierType.Mod1Mask, Gtk.AccelFlags.Visible)); ToolsMenu.Append(DetachFromMicroChatAction); ////////////////////// MISC ////////////////////// MiscAction = new Gtk.MenuItem(messages.Localize("[[window-menu-misc]]")); MiscAction.Submenu = MiscMenu; SearchAction = new Gtk.ImageMenuItem(messages.Localize("[[window-menu-search]]")); SearchAction.Image = new Gtk.Image(Gtk.Stock.Find, Gtk.IconSize.Menu); SearchAction.AddAccelerator("activate", agrp, new Gtk.AccelKey(Gdk.Key.F, Gdk.ModifierType.ControlMask, Gtk.AccelFlags.Visible)); MiscMenu.Append(SearchAction); LoadMoreToScrollbackAction = new Gtk.ImageMenuItem(messages.Localize("[[window-menu-more]]")); LoadMoreToScrollbackAction.AddAccelerator("activate", agrp, new Gtk.AccelKey(Gdk.Key.U, Gdk.ModifierType.Mod1Mask, Gtk.AccelFlags.Visible)); MiscMenu.Append(LoadMoreToScrollbackAction); MiscMenu.Append(new Gtk.SeparatorMenuItem()); ConfigurationFileAction = new Gtk.MenuItem(messages.Localize("[[window-menu-cf]]")); ////////////////////// SHOW ////////////////////// ShowAction = new Gtk.MenuItem(messages.Localize("[[window-menu-show]]")); ShowAction.Submenu = ShowMenu; RootAction = new Gtk.MenuItem(messages.Localize("[[window-menu-root]]")); ShowMenu.Append(RootAction); HelpAction = new Gtk.ImageMenuItem(messages.Localize("[[window-menu-help]]")); HelpAction.Submenu = HelpMenu; MiscMenu.Append(ConfigurationFileAction); AboutAction = new Gtk.ImageMenuItem(messages.Localize("[[window-menu-about]]")); AboutAction.Image = new Gtk.Image(Gtk.Stock.About, Gtk.IconSize.Menu); ContentsAction = new Gtk.MenuItem(messages.Localize("[[window-menu-contents]]")); HelpMenu.Append(AboutAction); FavoriteNetworksAction.Sensitive = false; ContentsAction.AddAccelerator("activate", agrp, new Gtk.AccelKey(Gdk.Key.F1, Gdk.ModifierType.None, Gtk.AccelFlags.Visible)); HelpMenu.Append(ContentsAction); menubar2.Add(this.FileAction); menubar2.Add(this.ToolsAction); menubar2.Add(this.MiscAction); this.menubar2.Add(this.ShowAction); this.menubar2.Add(this.HelpAction); this.Name = "Client.Forms.Main"; this.Title = "Pidgeon Client"; this.Icon = global::Gdk.Pixbuf.LoadFromResource("Client.Resources.pigeon_clip_art_hight.ico"); this.WindowPosition = ((global::Gtk.WindowPosition)(4)); // Container child Client.Forms.Main.Gtk.Container+ContainerChild this.vbox3 = new global::Gtk.VBox(); this.vbox3.Name = "vbox3"; this.vbox3.Spacing = 6; // Container child vbox3.Gtk.Box+BoxChild this.menubar2.Name = "menubar2"; this.vbox3.Add(this.menubar2); global::Gtk.Box.BoxChild w2 = ((global::Gtk.Box.BoxChild)(this.vbox3[this.menubar2])); w2.Position = 0; w2.Expand = false; w2.Fill = false; // Container child vbox3.Gtk.Box+BoxChild this.hpaned1 = new global::Gtk.HPaned(); this.hpaned1.CanFocus = true; this.hpaned1.Name = "hpaned1"; this.hpaned1.Position = 183; // Container child hpaned1.Gtk.Paned+PanedChild this.pidgeonlist1 = new global::Client.Graphics.PidgeonList(); this.pidgeonlist1.Events = ((global::Gdk.EventMask)(256)); this.pidgeonlist1.Name = "pidgeonlist1"; this.hpaned1.Add(this.pidgeonlist1); global::Gtk.Paned.PanedChild w3 = ((global::Gtk.Paned.PanedChild)(this.hpaned1[this.pidgeonlist1])); w3.Resize = false; this.vbox3.Add(this.hpaned1); global::Gtk.Box.BoxChild w4 = ((global::Gtk.Box.BoxChild)(this.vbox3[this.hpaned1])); w4.Position = 1; // Container child vbox3.Gtk.Box+BoxChild this.toolStrip = new global::Gtk.Statusbar(); this.toolStrip.Name = "toolStrip"; this.toolStrip.Spacing = 6; // Container child toolStrip.Gtk.Box+BoxChild this.toolStripStatusNetwork = new global::Gtk.Label(); this.toolStripStatusNetwork.Name = "toolStripStatusNetwork"; this.toolStrip.Add(this.toolStripStatusNetwork); global::Gtk.Box.BoxChild w5 = ((global::Gtk.Box.BoxChild)(this.toolStrip[this.toolStripStatusNetwork])); w5.Position = 0; w5.Expand = false; w5.Fill = false; // Container child toolStrip.Gtk.Box+BoxChild this.toolStripStatusChannel = new global::Gtk.Label(); this.toolStripStatusChannel.Name = "toolStripStatusChannel"; this.toolStrip.Add(this.toolStripStatusChannel); global::Gtk.Box.BoxChild w6 = ((global::Gtk.Box.BoxChild)(this.toolStrip[this.toolStripStatusChannel])); w6.Position = 1; w6.Expand = false; w6.Fill = false; // Container child toolStrip.Gtk.Box+BoxChild this.toolStripInfo = new global::Gtk.Label(); this.toolStripInfo.Name = "toolStripInfo"; this.toolStrip.Add(this.toolStripInfo); global::Gtk.Box.BoxChild w7 = ((global::Gtk.Box.BoxChild)(this.toolStrip[this.toolStripInfo])); w7.Position = 3; w7.Expand = false; w7.Fill = false; // Container child toolStrip.Gtk.Box+BoxChild this.toolStripProgressBar1 = new global::Gtk.ProgressBar(); this.toolStripProgressBar1.Name = "toolStripProgressBar1"; this.toolStrip.Add(this.toolStripProgressBar1); global::Gtk.Box.BoxChild w8 = ((global::Gtk.Box.BoxChild)(this.toolStrip[this.toolStripProgressBar1])); w8.Position = 4; this.vbox3.Add(this.toolStrip); global::Gtk.Box.BoxChild w9 = ((global::Gtk.Box.BoxChild)(this.vbox3[this.toolStrip])); w9.Position = 2; w9.Expand = false; w9.Fill = false; this.Add(this.vbox3); if ((this.Child != null)) { this.Child.ShowAll(); } this.DefaultWidth = 1018; this.DefaultHeight = 600; this.Show(); this.DeleteEvent += new global::Gtk.DeleteEventHandler(this.Unshow); this.ShutDownAction.Activated += new global::System.EventHandler(this.shutDownToolStripMenuItem_Click); this.AboutAction.Activated += new global::System.EventHandler(this.aboutToolStripMenuItem_Click); this.OpenNewConnectionAction.Activated += new global::System.EventHandler(this.newConnectionToolStripMenuItem_Click_1); this.PreferencesAction.Activated += new global::System.EventHandler(this.preferencesToolStripMenuItem_Click); this.PacketViewerAction.Activated += new global::System.EventHandler(this.toolStripMenuItem3_Click); this.SmallChatAction.Activated += new global::System.EventHandler(this.taskbarBoxToolStripMenuItem_Click); this.AttachToMicroChatAction.Activated += new global::System.EventHandler(this.attachToMicroChatToolStripMenuItem_Click); this.DetachFromMicroChatAction.Activated += new global::System.EventHandler(this.detachFromMicroChatToolStripMenuItem_Click); }
private Atk.Object GetAccessible(BasicWidgetType type, string text, object preWidget, bool real, bool embeddedImage) { Atk.Object accessible = null; Gtk.Widget widget = null; Gtk.Adjustment adj = new Gtk.Adjustment(50, 0, 100, 1, 10, 20); switch (type) { case BasicWidgetType.Label: widget = new Gtk.Label(); if (real) { widget = GailTestApp.MainClass.GiveMeARealLabel(); } ((Gtk.Label)widget).Text = text; break; case BasicWidgetType.NormalButton: widget = new Gtk.Button(); if (real) { widget = GailTestApp.MainClass.GiveMeARealButton(embeddedImage); } ((Gtk.Button)widget).Label = text; break; case BasicWidgetType.Window: widget = new Gtk.Window(text); if (real) { widget = GailTestApp.MainClass.GiveMeARealWindow(); } break; case BasicWidgetType.CheckBox: widget = new Gtk.CheckButton(); if (real) { widget = GailTestApp.MainClass.GiveMeARealCheckBox(embeddedImage); } ((Gtk.CheckButton)widget).Label = text; break; case BasicWidgetType.RadioButton: if (!real) { throw new NotSupportedException("We cannot use non-real radio buttons because of some wierd behaviour"); } widget = GailTestApp.MainClass.GiveMeARealRadioButton(embeddedImage); RunInGuiThread(delegate { ((Gtk.CheckButton)widget).Label = text; }); break; case BasicWidgetType.StatusBar: widget = new Gtk.Statusbar(); if (real) { widget = GailTestApp.MainClass.GiveMeARealStatusbar(); } ((Gtk.Statusbar)widget).Push(0, text); break; case BasicWidgetType.TextBoxEntry: if (!real) { throw new NotSupportedException(); } widget = GailTestApp.MainClass.GiveMeARealEntry(true); RunInGuiThread(delegate { ((Gtk.Entry)widget).Text = text; }); break; case BasicWidgetType.RichTextBox: case BasicWidgetType.TextBoxView: if (!real) { throw new NotSupportedException(); } widget = GailTestApp.MainClass.GiveMeARealTextView(); RunInGuiThread(delegate { ((Gtk.TextView)widget).Buffer.Text = text; }); break; case BasicWidgetType.PasswordCharTextBoxEntry: if (!real) { throw new NotSupportedException(); } widget = GailTestApp.MainClass.GiveMeARealEntry(false); RunInGuiThread(delegate { ((Gtk.Entry)widget).Text = text; }); break; case BasicWidgetType.HScrollBar: widget = new Gtk.HScrollbar(adj); if (real) { widget = GailTestApp.MainClass.GiveMeARealHScrollbar(); } break; case BasicWidgetType.VScrollBar: widget = new Gtk.VScrollbar(adj); if (real) { widget = GailTestApp.MainClass.GiveMeARealVScrollbar(); } break; case BasicWidgetType.ProgressBar: widget = new Gtk.ProgressBar(adj); if (real) { widget = GailTestApp.MainClass.GiveMeARealProgressBar(); } break; case BasicWidgetType.Spinner: widget = new Gtk.SpinButton(adj, 1, 2); if (real) { widget = GailTestApp.MainClass.GiveMeARealSpinButton(); } break; case BasicWidgetType.PictureBox: widget = new Gtk.Image(); if (real) { widget = GailTestApp.MainClass.GiveMeARealImage(embeddedImage); } break; case BasicWidgetType.ListView: case BasicWidgetType.TreeView: Gtk.TreeStore store = null; List <string> columnNames = new List <String> (); XmlDocument xml = new XmlDocument(); xml.LoadXml(text); foreach (XmlElement th in xml.GetElementsByTagName("th")) { foreach (XmlElement td in th.GetElementsByTagName("td")) { columnNames.Add(td.InnerText); } } if (columnNames.Count == 0) { columnNames.Add(string.Empty); } if (columnNames.Count == 1) { store = new Gtk.TreeStore(typeof(string)); } else if (columnNames.Count == 2) { store = new Gtk.TreeStore(typeof(string), typeof(string)); } else if (columnNames.Count == 3) { store = new Gtk.TreeStore(typeof(string), typeof(string), typeof(string)); } else { Assert.Fail("This test only supports 1-3 columns; got " + columnNames.Count); } Gtk.TreeIter[] iters = new Gtk.TreeIter [8]; XmlElement root = xml.DocumentElement; for (XmlNode node = root.FirstChild; node != null; node = node.NextSibling) { if (node.Name == "tr") { AddToTreeStore(store, iters, 0, node); } } widget = new Gtk.TreeView(store); if (real) { widget = GailTestApp.MainClass.GiveMeARealTreeView(); RunInGuiThread(delegate { ((Gtk.TreeView)widget).Model = store; }); } RunInGuiThread(delegate { Gtk.TreeView treeView = (Gtk.TreeView)widget; int i; for (i = treeView.Columns.Length - 1; i >= 0; i--) { treeView.RemoveColumn(treeView.Columns [i]); } i = 0; foreach (string columnName in columnNames) { Gtk.TreeViewColumn col = new Gtk.TreeViewColumn(); col.Title = columnName; treeView.AppendColumn(col); Gtk.CellRendererText cell = new Gtk.CellRendererText(); col.PackStart(cell, true); col.AddAttribute(cell, "text", i++); } ((Gtk.TreeView)widget).HeadersClickable = text.Contains("<th>"); ((Gtk.TreeView)widget).HeadersVisible = ((Gtk.TreeView)widget).HeadersClickable; }); break; case BasicWidgetType.ContainerPanel: widget = new Gtk.Frame(); if (real) { widget = GailTestApp.MainClass.GiveMeARealFrame(); } break; case BasicWidgetType.HSplitContainer: widget = new Gtk.HPaned(); if (real) { widget = GailTestApp.MainClass.GiveMeARealHPaned(); } break; case BasicWidgetType.VTrackBar: widget = new Gtk.VScale(adj); if (real) { widget = GailTestApp.MainClass.GiveMeARealVScale(); } break; case BasicWidgetType.ComboBoxDropDownEntry: case BasicWidgetType.ComboBoxDropDownList: case BasicWidgetType.ComboBoxSimple: throw new NotSupportedException("You have to use the GetObject overload that receives a name array"); default: throw new NotImplementedException("The widget finder backend still hasn't got support for " + type.ToString()); } accessible = widget.Accessible; mappings [accessible] = widget; return(accessible); }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget Monsoon.CreateTorrentProgressDialog this.Name = "Monsoon.CreateTorrentProgressDialog"; this.Title = Mono.Unix.Catalog.GetString("Creating Torrent"); this.WindowPosition = ((Gtk.WindowPosition)(4)); this.Modal = true; // Internal child Monsoon.CreateTorrentProgressDialog.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.label1 = new Gtk.Label(); this.label1.Name = "label1"; this.label1.Xalign = 0F; this.label1.LabelProp = Mono.Unix.Catalog.GetString("<big><b>Creating new torrent</b></big>"); this.label1.UseMarkup = true; this.vbox2.Add(this.label1); Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.vbox2[this.label1])); w2.Position = 0; w2.Expand = false; w2.Fill = false; // 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.label2 = new Gtk.Label(); this.label2.Name = "label2"; this.label2.LabelProp = Mono.Unix.Catalog.GetString("<b>Hashing file:</b>"); this.label2.UseMarkup = true; this.hbox1.Add(this.label2); Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.hbox1[this.label2])); w3.Position = 0; w3.Expand = false; w3.Fill = false; // Container child hbox1.Gtk.Box+BoxChild this.fileLabel = new Gtk.Label(); this.fileLabel.Name = "fileLabel"; this.hbox1.Add(this.fileLabel); Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.hbox1[this.fileLabel])); w4.Position = 1; w4.Expand = false; w4.Fill = false; this.vbox2.Add(this.hbox1); Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.vbox2[this.hbox1])); w5.Position = 1; w5.Expand = false; w5.Fill = false; // Container child vbox2.Gtk.Box+BoxChild this.createProgressBar = new Gtk.ProgressBar(); this.createProgressBar.Name = "createProgressBar"; this.vbox2.Add(this.createProgressBar); Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(this.vbox2[this.createProgressBar])); w6.Position = 2; w6.Expand = false; w6.Fill = false; w1.Add(this.vbox2); Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(w1[this.vbox2])); w7.Position = 0; w7.Expand = false; w7.Fill = false; // Internal child Monsoon.CreateTorrentProgressDialog.ActionArea Gtk.HButtonBox w8 = this.ActionArea; w8.Name = "GtkDialog_ActionArea"; w8.Spacing = 6; w8.BorderWidth = ((uint)(5)); w8.LayoutStyle = ((Gtk.ButtonBoxStyle)(4)); // Container child GtkDialog_ActionArea.Gtk.ButtonBox+ButtonBoxChild this.button283 = new Gtk.Button(); this.button283.CanDefault = true; this.button283.CanFocus = true; this.button283.Name = "button283"; this.button283.UseStock = true; this.button283.UseUnderline = true; this.button283.Label = "gtk-cancel"; this.AddActionWidget(this.button283, -6); Gtk.ButtonBox.ButtonBoxChild w9 = ((Gtk.ButtonBox.ButtonBoxChild)(w8[this.button283])); w9.Expand = false; w9.Fill = false; if ((this.Child != null)) { this.Child.ShowAll(); } this.DefaultWidth = 338; this.DefaultHeight = 149; this.Show(); }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget LinuxGUITest.BalanceBoardInformation Stetic.BinContainer w1 = Stetic.BinContainer.Attach(this); Gtk.UIManager w2 = new Gtk.UIManager(); Gtk.ActionGroup w3 = new Gtk.ActionGroup("Default"); this.BalanceBoardAction = new Gtk.Action("BalanceBoardAction", Mono.Unix.Catalog.GetString("BalanceBoard"), null, null); this.BalanceBoardAction.ShortLabel = Mono.Unix.Catalog.GetString("BalanceBoard"); w3.Add(this.BalanceBoardAction, null); this.DisconnectAction = new Gtk.Action("DisconnectAction", Mono.Unix.Catalog.GetString("Disconnect"), null, null); this.DisconnectAction.ShortLabel = Mono.Unix.Catalog.GetString("Disconnect"); w3.Add(this.DisconnectAction, null); w2.InsertActionGroup(w3, 0); this.Name = "LinuxGUITest.BalanceBoardInformation"; // Container child LinuxGUITest.BalanceBoardInformation.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='BalanceBoardAction'><menuitem action='DisconnectAction'/></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.hseparator2 = new Gtk.HSeparator(); this.hseparator2.Name = "hseparator2"; this.vbox1.Add(this.hseparator2); Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.vbox1[this.hseparator2])); w5.Position = 1; w5.Expand = false; w5.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.checkboxLed = new Gtk.CheckButton(); this.checkboxLed.CanFocus = true; this.checkboxLed.Name = "checkboxLed"; this.checkboxLed.Label = Mono.Unix.Catalog.GetString("Led"); this.checkboxLed.DrawIndicator = true; this.checkboxLed.UseUnderline = true; this.hbox4.Add(this.checkboxLed); Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(this.hbox4[this.checkboxLed])); w6.Position = 0; // Container child hbox4.Gtk.Box+BoxChild this.lblButton = new Gtk.Label(); this.lblButton.Name = "lblButton"; this.lblButton.LabelProp = Mono.Unix.Catalog.GetString("Button"); this.hbox4.Add(this.lblButton); Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(this.hbox4[this.lblButton])); w7.Position = 1; w7.Expand = false; w7.Fill = false; // Container child hbox4.Gtk.Box+BoxChild this.entryButton = new Gtk.Entry(); this.entryButton.CanFocus = true; this.entryButton.Name = "entryButton"; this.entryButton.IsEditable = false; this.entryButton.InvisibleChar = '●'; this.hbox4.Add(this.entryButton); Gtk.Box.BoxChild w8 = ((Gtk.Box.BoxChild)(this.hbox4[this.entryButton])); w8.Position = 2; this.vbox1.Add(this.hbox4); Gtk.Box.BoxChild w9 = ((Gtk.Box.BoxChild)(this.vbox1[this.hbox4])); w9.Position = 2; w9.Expand = false; w9.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.vbox3 = new Gtk.VBox(); this.vbox3.Name = "vbox3"; this.vbox3.Spacing = 6; // Container child vbox3.Gtk.Box+BoxChild this.table4 = new Gtk.Table(((uint)(2)), ((uint)(2)), false); this.table4.Name = "table4"; this.table4.RowSpacing = ((uint)(6)); this.table4.ColumnSpacing = ((uint)(6)); // Container child table4.Gtk.Table+TableChild this.entryBottomLeft = new Gtk.Entry(); this.entryBottomLeft.CanFocus = true; this.entryBottomLeft.Name = "entryBottomLeft"; this.entryBottomLeft.IsEditable = false; this.entryBottomLeft.InvisibleChar = '●'; this.table4.Add(this.entryBottomLeft); Gtk.Table.TableChild w10 = ((Gtk.Table.TableChild)(this.table4[this.entryBottomLeft])); w10.TopAttach = ((uint)(1)); w10.BottomAttach = ((uint)(2)); w10.YOptions = ((Gtk.AttachOptions)(4)); // Container child table4.Gtk.Table+TableChild this.entryBottomRight = new Gtk.Entry(); this.entryBottomRight.CanFocus = true; this.entryBottomRight.Name = "entryBottomRight"; this.entryBottomRight.IsEditable = false; this.entryBottomRight.InvisibleChar = '●'; this.table4.Add(this.entryBottomRight); Gtk.Table.TableChild w11 = ((Gtk.Table.TableChild)(this.table4[this.entryBottomRight])); w11.TopAttach = ((uint)(1)); w11.BottomAttach = ((uint)(2)); w11.LeftAttach = ((uint)(1)); w11.RightAttach = ((uint)(2)); w11.YOptions = ((Gtk.AttachOptions)(4)); // Container child table4.Gtk.Table+TableChild this.entryTopLeft = new Gtk.Entry(); this.entryTopLeft.CanFocus = true; this.entryTopLeft.Name = "entryTopLeft"; this.entryTopLeft.IsEditable = false; this.entryTopLeft.InvisibleChar = '●'; this.table4.Add(this.entryTopLeft); Gtk.Table.TableChild w12 = ((Gtk.Table.TableChild)(this.table4[this.entryTopLeft])); w12.YOptions = ((Gtk.AttachOptions)(4)); // Container child table4.Gtk.Table+TableChild this.entryTopRight = new Gtk.Entry(); this.entryTopRight.CanFocus = true; this.entryTopRight.Name = "entryTopRight"; this.entryTopRight.IsEditable = false; this.entryTopRight.InvisibleChar = '●'; this.table4.Add(this.entryTopRight); Gtk.Table.TableChild w13 = ((Gtk.Table.TableChild)(this.table4[this.entryTopRight])); w13.LeftAttach = ((uint)(1)); w13.RightAttach = ((uint)(2)); w13.YOptions = ((Gtk.AttachOptions)(4)); this.vbox3.Add(this.table4); Gtk.Box.BoxChild w14 = ((Gtk.Box.BoxChild)(this.vbox3[this.table4])); w14.Position = 0; w14.Expand = false; w14.Fill = false; // 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.lblTotalWeight = new Gtk.Label(); this.lblTotalWeight.Name = "lblTotalWeight"; this.lblTotalWeight.LabelProp = Mono.Unix.Catalog.GetString("Total Weight"); this.hbox3.Add(this.lblTotalWeight); Gtk.Box.BoxChild w15 = ((Gtk.Box.BoxChild)(this.hbox3[this.lblTotalWeight])); w15.Position = 0; w15.Expand = false; w15.Fill = false; // Container child hbox3.Gtk.Box+BoxChild this.entryTotalWeight = new Gtk.Entry(); this.entryTotalWeight.CanFocus = true; this.entryTotalWeight.Name = "entryTotalWeight"; this.entryTotalWeight.IsEditable = false; this.entryTotalWeight.InvisibleChar = '●'; this.hbox3.Add(this.entryTotalWeight); Gtk.Box.BoxChild w16 = ((Gtk.Box.BoxChild)(this.hbox3[this.entryTotalWeight])); w16.Position = 1; // Container child hbox3.Gtk.Box+BoxChild this.entryAverageWeight = new Gtk.Entry(); this.entryAverageWeight.CanFocus = true; this.entryAverageWeight.Name = "entryAverageWeight"; this.entryAverageWeight.IsEditable = false; this.entryAverageWeight.InvisibleChar = '●'; this.hbox3.Add(this.entryAverageWeight); Gtk.Box.BoxChild w17 = ((Gtk.Box.BoxChild)(this.hbox3[this.entryAverageWeight])); w17.PackType = ((Gtk.PackType)(1)); w17.Position = 2; // Container child hbox3.Gtk.Box+BoxChild this.labelAverageWeight = new Gtk.Label(); this.labelAverageWeight.Name = "labelAverageWeight"; this.labelAverageWeight.LabelProp = Mono.Unix.Catalog.GetString("Average"); this.hbox3.Add(this.labelAverageWeight); Gtk.Box.BoxChild w18 = ((Gtk.Box.BoxChild)(this.hbox3[this.labelAverageWeight])); w18.PackType = ((Gtk.PackType)(1)); w18.Position = 3; w18.Expand = false; w18.Fill = false; this.vbox3.Add(this.hbox3); Gtk.Box.BoxChild w19 = ((Gtk.Box.BoxChild)(this.vbox3[this.hbox3])); w19.Position = 1; w19.Expand = false; w19.Fill = false; this.GtkAlignment.Add(this.vbox3); this.frame1.Add(this.GtkAlignment); this.GtkLabel2 = new Gtk.Label(); this.GtkLabel2.Name = "GtkLabel2"; this.GtkLabel2.LabelProp = Mono.Unix.Catalog.GetString("<b>Weight Sensors</b>"); this.GtkLabel2.UseMarkup = true; this.frame1.LabelWidget = this.GtkLabel2; this.vbox1.Add(this.frame1); Gtk.Box.BoxChild w22 = ((Gtk.Box.BoxChild)(this.vbox1[this.frame1])); w22.Position = 3; w22.Expand = false; w22.Fill = false; // 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.drawingareaBalance = new Gtk.DrawingArea(); this.drawingareaBalance.Name = "drawingareaBalance"; this.GtkAlignment1.Add(this.drawingareaBalance); this.frame2.Add(this.GtkAlignment1); this.GtkLabel3 = new Gtk.Label(); this.GtkLabel3.Name = "GtkLabel3"; this.GtkLabel3.LabelProp = Mono.Unix.Catalog.GetString("<b>Balance</b>"); this.GtkLabel3.UseMarkup = true; this.frame2.LabelWidget = this.GtkLabel3; this.vbox1.Add(this.frame2); Gtk.Box.BoxChild w25 = ((Gtk.Box.BoxChild)(this.vbox1[this.frame2])); w25.Position = 4; // 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.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.hbox1.Add(this.btnUpdateBattery); Gtk.Box.BoxChild w26 = ((Gtk.Box.BoxChild)(this.hbox1[this.btnUpdateBattery])); w26.Position = 0; w26.Expand = false; w26.Fill = false; // Container child hbox1.Gtk.Box+BoxChild this.progressbar1 = new Gtk.ProgressBar(); this.progressbar1.Name = "progressbar1"; this.hbox1.Add(this.progressbar1); Gtk.Box.BoxChild w27 = ((Gtk.Box.BoxChild)(this.hbox1[this.progressbar1])); w27.Position = 1; this.vbox1.Add(this.hbox1); Gtk.Box.BoxChild w28 = ((Gtk.Box.BoxChild)(this.vbox1[this.hbox1])); w28.Position = 5; w28.Expand = false; w28.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.checkboxLed.Pressed += new System.EventHandler(this.OnCheckboxLedPressed); this.drawingareaBalance.ExposeEvent += new Gtk.ExposeEventHandler(this.OnDrawingareaBalanceExposeEvent); this.btnUpdateBattery.Pressed += new System.EventHandler(this.OnBtnUpdateBatteryPressed); }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget Mono.Addins.Gui.AddinInstallDialog this.Name = "Mono.Addins.Gui.AddinInstallDialog"; this.Title = Mono.Unix.Catalog.GetString("Extension Installation"); this.TypeHint = ((Gdk.WindowTypeHint)(1)); this.Modal = true; this.BorderWidth = ((uint)(6)); this.DefaultWidth = 725; this.DefaultHeight = 550; // Internal child Mono.Addins.Gui.AddinInstallDialog.VBox Gtk.VBox w1 = this.VBox; w1.Name = "dialog-vbox9"; w1.Spacing = 6; w1.BorderWidth = ((uint)(2)); // Container child dialog-vbox9.Gtk.Box+BoxChild this.wizardNotebook = new Gtk.Notebook(); this.wizardNotebook.CanFocus = true; this.wizardNotebook.Name = "wizardNotebook"; this.wizardNotebook.CurrentPage = 3; this.wizardNotebook.ShowBorder = false; this.wizardNotebook.BorderWidth = ((uint)(6)); // Container child wizardNotebook.Gtk.Notebook+NotebookChild this.vbox82 = new Gtk.VBox(); this.vbox82.Name = "vbox82"; this.vbox82.Spacing = 12; // Container child vbox82.Gtk.Box+BoxChild this.label113 = new Gtk.Label(); this.label113.Name = "label113"; this.label113.Xalign = 0F; this.label113.LabelProp = Mono.Unix.Catalog.GetString("<b>Select the extensions to install and click on Next</b>"); this.label113.UseMarkup = true; this.vbox82.Add(this.label113); Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.vbox82[this.label113])); w2.Position = 0; w2.Expand = false; w2.Fill = false; // Container child vbox82.Gtk.Box+BoxChild this.hbox66 = new Gtk.HBox(); this.hbox66.Name = "hbox66"; this.hbox66.Spacing = 6; // Container child hbox66.Gtk.Box+BoxChild this.label112 = new Gtk.Label(); this.label112.Name = "label112"; this.label112.LabelProp = Mono.Unix.Catalog.GetString("Install from:"); this.hbox66.Add(this.label112); Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.hbox66[this.label112])); w3.Position = 0; w3.Expand = false; w3.Fill = false; // Container child hbox66.Gtk.Box+BoxChild this.repoCombo = new Gtk.ComboBox(); this.repoCombo.Name = "repoCombo"; this.hbox66.Add(this.repoCombo); Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.hbox66[this.repoCombo])); w4.Position = 1; // Container child hbox66.Gtk.Box+BoxChild 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-refresh"; this.hbox66.Add(this.button1); Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.hbox66[this.button1])); w5.Position = 2; w5.Expand = false; w5.Fill = false; // Container child hbox66.Gtk.Box+BoxChild this.btnManageSites = new Gtk.Button(); this.btnManageSites.CanFocus = true; this.btnManageSites.Name = "btnManageSites"; this.btnManageSites.UseUnderline = true; this.btnManageSites.Label = Mono.Unix.Catalog.GetString("_Repositories..."); this.hbox66.Add(this.btnManageSites); Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(this.hbox66[this.btnManageSites])); w6.Position = 3; w6.Expand = false; w6.Fill = false; this.vbox82.Add(this.hbox66); Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(this.vbox82[this.hbox66])); w7.Position = 1; w7.Expand = false; w7.Fill = false; // Container child vbox82.Gtk.Box+BoxChild this.hbox70 = new Gtk.HBox(); this.hbox70.Name = "hbox70"; this.hbox70.Spacing = 12; // Container child hbox70.Gtk.Box+BoxChild this.vbox92 = new Gtk.VBox(); this.vbox92.Name = "vbox92"; this.vbox92.Spacing = 6; // Container child vbox92.Gtk.Box+BoxChild this.scrolledwindow18 = new Gtk.ScrolledWindow(); this.scrolledwindow18.CanFocus = true; this.scrolledwindow18.Name = "scrolledwindow18"; this.scrolledwindow18.VscrollbarPolicy = ((Gtk.PolicyType)(1)); this.scrolledwindow18.HscrollbarPolicy = ((Gtk.PolicyType)(1)); this.scrolledwindow18.ShadowType = ((Gtk.ShadowType)(1)); // Container child scrolledwindow18.Gtk.Container+ContainerChild this.addinTree = new Gtk.TreeView(); this.addinTree.CanFocus = true; this.addinTree.Name = "addinTree"; this.addinTree.HeadersClickable = true; this.scrolledwindow18.Add(this.addinTree); this.vbox92.Add(this.scrolledwindow18); Gtk.Box.BoxChild w9 = ((Gtk.Box.BoxChild)(this.vbox92[this.scrolledwindow18])); w9.Position = 0; // Container child vbox92.Gtk.Box+BoxChild this.hbox83 = new Gtk.HBox(); this.hbox83.Name = "hbox83"; this.hbox83.Spacing = 6; // Container child hbox83.Gtk.Box+BoxChild this.filterComboBox = Gtk.ComboBox.NewText(); this.filterComboBox.AppendText(Mono.Unix.Catalog.GetString("Show all packages")); this.filterComboBox.AppendText(Mono.Unix.Catalog.GetString("Show new versions only")); this.filterComboBox.AppendText(Mono.Unix.Catalog.GetString("Show updates only")); this.filterComboBox.Name = "filterComboBox"; this.hbox83.Add(this.filterComboBox); Gtk.Box.BoxChild w10 = ((Gtk.Box.BoxChild)(this.hbox83[this.filterComboBox])); w10.Position = 0; w10.Expand = false; w10.Fill = false; // Container child hbox83.Gtk.Box+BoxChild this.btnInfo = new Gtk.Button(); this.btnInfo.CanFocus = true; this.btnInfo.Name = "btnInfo"; this.btnInfo.UseStock = true; this.btnInfo.UseUnderline = true; this.btnInfo.Label = "gtk-dialog-info"; this.hbox83.Add(this.btnInfo); Gtk.Box.BoxChild w11 = ((Gtk.Box.BoxChild)(this.hbox83[this.btnInfo])); w11.PackType = ((Gtk.PackType)(1)); w11.Position = 1; w11.Expand = false; w11.Fill = false; // Container child hbox83.Gtk.Box+BoxChild this.btnUnselectAll = new Gtk.Button(); this.btnUnselectAll.CanFocus = true; this.btnUnselectAll.Name = "btnUnselectAll"; this.btnUnselectAll.UseUnderline = true; this.btnUnselectAll.Label = Mono.Unix.Catalog.GetString("_Unselect All"); this.hbox83.Add(this.btnUnselectAll); Gtk.Box.BoxChild w12 = ((Gtk.Box.BoxChild)(this.hbox83[this.btnUnselectAll])); w12.PackType = ((Gtk.PackType)(1)); w12.Position = 2; w12.Expand = false; w12.Fill = false; // Container child hbox83.Gtk.Box+BoxChild this.btnSelectAll = new Gtk.Button(); this.btnSelectAll.CanFocus = true; this.btnSelectAll.Name = "btnSelectAll"; this.btnSelectAll.UseUnderline = true; this.btnSelectAll.Label = Mono.Unix.Catalog.GetString("Select _All"); this.hbox83.Add(this.btnSelectAll); Gtk.Box.BoxChild w13 = ((Gtk.Box.BoxChild)(this.hbox83[this.btnSelectAll])); w13.PackType = ((Gtk.PackType)(1)); w13.Position = 3; w13.Expand = false; w13.Fill = false; this.vbox92.Add(this.hbox83); Gtk.Box.BoxChild w14 = ((Gtk.Box.BoxChild)(this.vbox92[this.hbox83])); w14.Position = 1; w14.Expand = false; w14.Fill = false; this.hbox70.Add(this.vbox92); Gtk.Box.BoxChild w15 = ((Gtk.Box.BoxChild)(this.hbox70[this.vbox92])); w15.Position = 0; this.vbox82.Add(this.hbox70); Gtk.Box.BoxChild w16 = ((Gtk.Box.BoxChild)(this.vbox82[this.hbox70])); w16.Position = 2; this.wizardNotebook.Add(this.vbox82); Gtk.Notebook.NotebookChild w17 = ((Gtk.Notebook.NotebookChild)(this.wizardNotebook[this.vbox82])); w17.TabExpand = false; // Notebook tab this.label108 = new Gtk.Label(); this.label108.Name = "label108"; this.label108.LabelProp = "label108"; this.wizardNotebook.SetTabLabel(this.vbox82, this.label108); this.label108.ShowAll(); // Container child wizardNotebook.Gtk.Notebook+NotebookChild this.scrolledwindow19 = new Gtk.ScrolledWindow(); this.scrolledwindow19.CanFocus = true; this.scrolledwindow19.Name = "scrolledwindow19"; this.scrolledwindow19.VscrollbarPolicy = ((Gtk.PolicyType)(1)); this.scrolledwindow19.HscrollbarPolicy = ((Gtk.PolicyType)(1)); // Container child scrolledwindow19.Gtk.Container+ContainerChild Gtk.Viewport w18 = new Gtk.Viewport(); // Container child viewport1.Gtk.Container+ContainerChild this.hbox82 = new Gtk.HBox(); this.hbox82.Name = "hbox82"; this.hbox82.Spacing = 12; this.hbox82.BorderWidth = ((uint)(12)); // Container child hbox82.Gtk.Box+BoxChild this.imageInstall = new Gtk.Image(); this.imageInstall.Name = "imageInstall"; this.imageInstall.Xalign = 0F; this.imageInstall.Yalign = 0F; this.imageInstall.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-dialog-warning", Gtk.IconSize.Dialog, 48); this.hbox82.Add(this.imageInstall); Gtk.Box.BoxChild w19 = ((Gtk.Box.BoxChild)(this.hbox82[this.imageInstall])); w19.Position = 0; w19.Expand = false; w19.Fill = false; // Container child hbox82.Gtk.Box+BoxChild this.labelSummary = new Gtk.Label(); this.labelSummary.Name = "labelSummary"; this.labelSummary.Xpad = 6; this.labelSummary.Ypad = 6; this.labelSummary.Xalign = 0F; this.labelSummary.Yalign = 0F; this.labelSummary.LabelProp = "<b>The following extensions will be installed:</b>\n\nC# language binding\nC# language IDE extension\n\n<b>The following extensions are required by the selected extensions</b>\n\nNUnit extension\nNAnt extension\n\nasd\nasd\na\nsd\nasd\nasd\na\nsda\nsd\nas\nda\nsd\nasd\n"; this.labelSummary.UseMarkup = true; this.labelSummary.Wrap = true; this.hbox82.Add(this.labelSummary); Gtk.Box.BoxChild w20 = ((Gtk.Box.BoxChild)(this.hbox82[this.labelSummary])); w20.Position = 1; w20.Expand = false; w20.Fill = false; w18.Add(this.hbox82); this.scrolledwindow19.Add(w18); this.wizardNotebook.Add(this.scrolledwindow19); Gtk.Notebook.NotebookChild w23 = ((Gtk.Notebook.NotebookChild)(this.wizardNotebook[this.scrolledwindow19])); w23.Position = 1; w23.TabExpand = false; // Notebook tab this.label124 = new Gtk.Label(); this.label124.Name = "label124"; this.label124.LabelProp = Mono.Unix.Catalog.GetString("label124"); this.wizardNotebook.SetTabLabel(this.scrolledwindow19, this.label124); this.label124.ShowAll(); // Container child wizardNotebook.Gtk.Notebook+NotebookChild this.vbox86 = new Gtk.VBox(); this.vbox86.Name = "vbox86"; this.vbox86.Spacing = 6; this.vbox86.BorderWidth = ((uint)(116)); // Container child vbox86.Gtk.Box+BoxChild this.label126 = new Gtk.Label(); this.label126.Name = "label126"; this.label126.Xalign = 0F; this.label126.LabelProp = Mono.Unix.Catalog.GetString("Overall Progress:"); this.vbox86.Add(this.label126); Gtk.Box.BoxChild w24 = ((Gtk.Box.BoxChild)(this.vbox86[this.label126])); w24.Position = 0; w24.Expand = false; w24.Fill = false; // Container child vbox86.Gtk.Box+BoxChild this.mainProgressBar = new Gtk.ProgressBar(); this.mainProgressBar.Name = "mainProgressBar"; this.mainProgressBar.PulseStep = 10000000149; this.vbox86.Add(this.mainProgressBar); Gtk.Box.BoxChild w25 = ((Gtk.Box.BoxChild)(this.vbox86[this.mainProgressBar])); w25.Position = 1; w25.Expand = false; w25.Fill = false; // Container child vbox86.Gtk.Box+BoxChild this.label129 = new Gtk.Label(); this.label129.Name = "label129"; this.label129.LabelProp = ""; this.vbox86.Add(this.label129); Gtk.Box.BoxChild w26 = ((Gtk.Box.BoxChild)(this.vbox86[this.label129])); w26.Position = 2; w26.Expand = false; w26.Fill = false; // Container child vbox86.Gtk.Box+BoxChild this.progressLabel = new Gtk.Label(); this.progressLabel.Name = "progressLabel"; this.progressLabel.Xalign = 0F; this.progressLabel.LabelProp = Mono.Unix.Catalog.GetString("Downloading extensions..."); this.vbox86.Add(this.progressLabel); Gtk.Box.BoxChild w27 = ((Gtk.Box.BoxChild)(this.vbox86[this.progressLabel])); w27.Position = 3; w27.Expand = false; w27.Fill = false; // Container child vbox86.Gtk.Box+BoxChild this.progressBar = new Gtk.ProgressBar(); this.progressBar.Name = "progressBar"; this.progressBar.PulseStep = 10000000149; this.vbox86.Add(this.progressBar); Gtk.Box.BoxChild w28 = ((Gtk.Box.BoxChild)(this.vbox86[this.progressBar])); w28.Position = 4; w28.Expand = false; w28.Fill = false; this.wizardNotebook.Add(this.vbox86); Gtk.Notebook.NotebookChild w29 = ((Gtk.Notebook.NotebookChild)(this.wizardNotebook[this.vbox86])); w29.Position = 2; w29.TabExpand = false; // Notebook tab this.label110 = new Gtk.Label(); this.label110.Name = "label110"; this.label110.LabelProp = "label110"; this.wizardNotebook.SetTabLabel(this.vbox86, this.label110); this.label110.ShowAll(); // Container child wizardNotebook.Gtk.Notebook+NotebookChild this.scrolledwindow20 = new Gtk.ScrolledWindow(); this.scrolledwindow20.CanFocus = true; this.scrolledwindow20.Name = "scrolledwindow20"; this.scrolledwindow20.VscrollbarPolicy = ((Gtk.PolicyType)(1)); this.scrolledwindow20.HscrollbarPolicy = ((Gtk.PolicyType)(1)); // Container child scrolledwindow20.Gtk.Container+ContainerChild Gtk.Viewport w30 = new Gtk.Viewport(); // Container child viewport3.Gtk.Container+ContainerChild this.vbox91 = new Gtk.VBox(); this.vbox91.Name = "vbox91"; // Container child vbox91.Gtk.Box+BoxChild this.label130 = new Gtk.Label(); this.label130.Name = "label130"; this.label130.LabelProp = ""; this.vbox91.Add(this.label130); Gtk.Box.BoxChild w31 = ((Gtk.Box.BoxChild)(this.vbox91[this.label130])); w31.Position = 0; // Container child vbox91.Gtk.Box+BoxChild this.imageError = new Gtk.Image(); this.imageError.Name = "imageError"; this.imageError.Yalign = 1F; this.imageError.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-dialog-error", Gtk.IconSize.Dialog, 48); this.vbox91.Add(this.imageError); Gtk.Box.BoxChild w32 = ((Gtk.Box.BoxChild)(this.vbox91[this.imageError])); w32.Position = 1; w32.Expand = false; w32.Fill = false; w32.Padding = ((uint)(5)); // Container child vbox91.Gtk.Box+BoxChild this.imageWarn = new Gtk.Image(); this.imageWarn.Name = "imageWarn"; this.imageWarn.Yalign = 1F; this.imageWarn.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-dialog-warning", Gtk.IconSize.Dialog, 48); this.vbox91.Add(this.imageWarn); Gtk.Box.BoxChild w33 = ((Gtk.Box.BoxChild)(this.vbox91[this.imageWarn])); w33.Position = 2; w33.Expand = false; w33.Fill = false; // Container child vbox91.Gtk.Box+BoxChild this.imageInfo = new Gtk.Image(); this.imageInfo.Name = "imageInfo"; this.imageInfo.Yalign = 1F; this.imageInfo.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-dialog-info", Gtk.IconSize.Dialog, 48); this.vbox91.Add(this.imageInfo); Gtk.Box.BoxChild w34 = ((Gtk.Box.BoxChild)(this.vbox91[this.imageInfo])); w34.Position = 3; w34.Expand = false; w34.Fill = false; // Container child vbox91.Gtk.Box+BoxChild this.hbox71 = new Gtk.HBox(); this.hbox71.Name = "hbox71"; // Container child hbox71.Gtk.Box+BoxChild this.labelResult = new Gtk.Label(); this.labelResult.WidthRequest = 450; this.labelResult.Name = "labelResult"; this.labelResult.Ypad = 9; this.labelResult.Yalign = 0F; this.labelResult.LabelProp = "Done"; this.labelResult.UseMarkup = true; this.labelResult.Wrap = true; this.labelResult.Justify = ((Gtk.Justification)(2)); this.hbox71.Add(this.labelResult); Gtk.Box.BoxChild w35 = ((Gtk.Box.BoxChild)(this.hbox71[this.labelResult])); w35.PackType = ((Gtk.PackType)(1)); w35.Position = 0; this.vbox91.Add(this.hbox71); Gtk.Box.BoxChild w36 = ((Gtk.Box.BoxChild)(this.vbox91[this.hbox71])); w36.Position = 4; w36.Expand = false; w36.Fill = false; // Container child vbox91.Gtk.Box+BoxChild this.label131 = new Gtk.Label(); this.label131.Name = "label131"; this.label131.LabelProp = ""; this.vbox91.Add(this.label131); Gtk.Box.BoxChild w37 = ((Gtk.Box.BoxChild)(this.vbox91[this.label131])); w37.Position = 5; w30.Add(this.vbox91); this.scrolledwindow20.Add(w30); this.wizardNotebook.Add(this.scrolledwindow20); Gtk.Notebook.NotebookChild w40 = ((Gtk.Notebook.NotebookChild)(this.wizardNotebook[this.scrolledwindow20])); w40.Position = 3; w40.TabExpand = false; // Notebook tab this.label111 = new Gtk.Label(); this.label111.Name = "label111"; this.label111.LabelProp = "label111"; this.wizardNotebook.SetTabLabel(this.scrolledwindow20, this.label111); this.label111.ShowAll(); w1.Add(this.wizardNotebook); Gtk.Box.BoxChild w41 = ((Gtk.Box.BoxChild)(w1[this.wizardNotebook])); w41.Position = 0; // Container child dialog-vbox9.Gtk.Box+BoxChild this.dialog_action_area9 = new Gtk.HButtonBox(); this.dialog_action_area9.Name = "dialog_action_area9"; this.dialog_action_area9.Spacing = 9; this.dialog_action_area9.BorderWidth = ((uint)(6)); this.dialog_action_area9.LayoutStyle = ((Gtk.ButtonBoxStyle)(4)); // Container child dialog_action_area9.Gtk.ButtonBox+ButtonBoxChild this.btnCancel = new Gtk.Button(); this.btnCancel.CanDefault = true; this.btnCancel.CanFocus = true; this.btnCancel.Name = "btnCancel"; this.btnCancel.UseStock = true; this.btnCancel.UseUnderline = true; this.btnCancel.Label = "gtk-cancel"; this.dialog_action_area9.Add(this.btnCancel); // Container child dialog_action_area9.Gtk.ButtonBox+ButtonBoxChild this.btnPrev = new Gtk.Button(); this.btnPrev.CanDefault = true; this.btnPrev.CanFocus = true; this.btnPrev.Name = "btnPrev"; this.btnPrev.UseStock = true; this.btnPrev.UseUnderline = true; this.btnPrev.Label = "gtk-go-back"; this.dialog_action_area9.Add(this.btnPrev); Gtk.ButtonBox.ButtonBoxChild w43 = ((Gtk.ButtonBox.ButtonBoxChild)(this.dialog_action_area9[this.btnPrev])); w43.Position = 1; // Container child dialog_action_area9.Gtk.ButtonBox+ButtonBoxChild this.btnNext = new Gtk.Button(); this.btnNext.CanDefault = true; this.btnNext.CanFocus = true; this.btnNext.Name = "btnNext"; this.btnNext.UseStock = true; this.btnNext.UseUnderline = true; this.btnNext.Label = "gtk-go-forward"; this.dialog_action_area9.Add(this.btnNext); Gtk.ButtonBox.ButtonBoxChild w44 = ((Gtk.ButtonBox.ButtonBoxChild)(this.dialog_action_area9[this.btnNext])); w44.Position = 2; // Container child dialog_action_area9.Gtk.ButtonBox+ButtonBoxChild this.btnOk = new Gtk.Button(); this.btnOk.CanDefault = true; this.btnOk.CanFocus = true; this.btnOk.Name = "btnOk"; this.btnOk.UseStock = true; this.btnOk.UseUnderline = true; this.btnOk.Label = "gtk-ok"; this.dialog_action_area9.Add(this.btnOk); Gtk.ButtonBox.ButtonBoxChild w45 = ((Gtk.ButtonBox.ButtonBoxChild)(this.dialog_action_area9[this.btnOk])); w45.Position = 3; w1.Add(this.dialog_action_area9); Gtk.Box.BoxChild w46 = ((Gtk.Box.BoxChild)(w1[this.dialog_action_area9])); w46.PackType = ((Gtk.PackType)(1)); w46.Position = 2; w46.Expand = false; w46.Fill = false; // Internal child Mono.Addins.Gui.AddinInstallDialog.ActionArea Gtk.HButtonBox w47 = this.ActionArea; w47.Name = "hbuttonbox1"; w47.Spacing = 10; w47.BorderWidth = ((uint)(5)); w47.LayoutStyle = ((Gtk.ButtonBoxStyle)(4)); if ((this.Child != null)) { this.Child.ShowAll(); } this.btnOk.Hide(); w47.Hide(); this.Show(); this.repoCombo.Changed += new System.EventHandler(this.OnRepoChanged); this.button1.Clicked += new System.EventHandler(this.OnUpdateRepo); this.btnManageSites.Clicked += new System.EventHandler(this.OnManageSites); this.addinTree.CursorChanged += new System.EventHandler(this.OnActiveAddinChanged); this.filterComboBox.Changed += new System.EventHandler(this.OnFilterChanged); this.btnSelectAll.Clicked += new System.EventHandler(this.OnSelectAll); this.btnUnselectAll.Clicked += new System.EventHandler(this.OnUnselectAll); this.btnInfo.Clicked += new System.EventHandler(this.OnShowInfo); this.btnCancel.Clicked += new System.EventHandler(this.OnCancel); this.btnPrev.Clicked += new System.EventHandler(this.OnPrevPage); this.btnNext.Clicked += new System.EventHandler(this.OnNextPage); this.btnOk.Clicked += new System.EventHandler(this.OnOk); }
protected virtual void Build() { dialog2 = new Gtk.Window("Copying files..."); // Widget copy.CopyWidget dialog2.Name = "copy.CopyWidget"; dialog2.Title = Mono.Unix.Catalog.GetString("CopyWidget"); dialog2.WindowPosition = ((Gtk.WindowPosition)(3)); // Container child copy.CopyWidget.Gtk.Container+ContainerChild 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)(2)); this.frame1.LabelXalign = 1F; this.frame1.BorderWidth = ((uint)(6)); // 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.GtkAlignment.TopPadding = ((uint)(6)); this.GtkAlignment.RightPadding = ((uint)(10)); this.GtkAlignment.BottomPadding = ((uint)(10)); // Container child GtkAlignment.Gtk.Container+ContainerChild 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.copyLabel = new Gtk.Label(); this.copyLabel.Name = "copyLabel"; this.copyLabel.LabelProp = Mono.Unix.Catalog.GetString("label2"); this.hbox1.Add(this.copyLabel); Gtk.Box.BoxChild w1 = ((Gtk.Box.BoxChild)(this.hbox1[this.copyLabel])); w1.Position = 0; w1.Expand = false; w1.Fill = false; this.vbox2.Add(this.hbox1); Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.vbox2[this.hbox1])); w2.Position = 0; w2.Expand = false; w2.Fill = false; // Container child vbox2.Gtk.Box+BoxChild this.progressbar1 = new Gtk.ProgressBar(); this.progressbar1.Name = "progressbar1"; this.vbox2.Add(this.progressbar1); Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox2[this.progressbar1])); w3.Position = 1; w3.Expand = false; w3.Fill = false; this.GtkAlignment.Add(this.vbox2); this.frame1.Add(this.GtkAlignment); this.frameLabel = new Gtk.Label(); this.frameLabel.Name = "frameLabel"; this.frameLabel.Xpad = 8; this.frameLabel.LabelProp = Mono.Unix.Catalog.GetString("<b>GtkFrame</b>"); this.frameLabel.UseMarkup = true; this.frame1.LabelWidget = this.frameLabel; this.vbox1.Add(this.frame1); Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(this.vbox1[this.frame1])); w6.Position = 0; w6.Expand = false; w6.Fill = false; dialog2.Add(this.vbox1); if ((dialog2.Child != null)) { dialog2.Child.ShowAll(); } dialog2.DefaultWidth = 400; dialog2.DefaultHeight = 100; // dialog2.Show(); }
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); }
public MainWindow() : base("Smuxi") { // restore window size / position int width, heigth; if (Frontend.FrontendConfig[Frontend.UIName + "/Interface/Width"] != null) { width = (int) Frontend.FrontendConfig[Frontend.UIName + "/Interface/Width"]; } else { width = 800; } if (Frontend.FrontendConfig[Frontend.UIName + "/Interface/Heigth"] != null) { heigth = (int) Frontend.FrontendConfig[Frontend.UIName + "/Interface/Heigth"]; } else { heigth = 600; } if (width < -1 || heigth < -1) { width = -1; heigth = -1; } if (width == -1 && heigth == -1) { SetDefaultSize(800, 600); Maximize(); } else if (width == 0 && heigth == 0) { // HACK: map 0/0 to default size as it crashes on Windows :/ SetDefaultSize(800, 600); } else { SetDefaultSize(width, heigth); } int x, y; if (Frontend.FrontendConfig[Frontend.UIName + "/Interface/XPosition"] != null) { x = (int) Frontend.FrontendConfig[Frontend.UIName + "/Interface/XPosition"]; } else { x = 0; } if (Frontend.FrontendConfig[Frontend.UIName + "/Interface/YPosition"] != null) { y = (int) Frontend.FrontendConfig[Frontend.UIName + "/Interface/YPosition"]; } else { y = 0; } if (x < 0 || y < 0) { x = 0; y = 0; } if (x == 0 && y == 0) { SetPosition(Gtk.WindowPosition.Center); } else { Move(x, y); } DeleteEvent += OnDeleteEvent; FocusInEvent += OnFocusInEvent; FocusOutEvent += OnFocusOutEvent; WindowStateEvent += OnWindowStateEvent; ChatTreeView = new ChatTreeView(); Notebook = new Notebook(); Notebook.SwitchPage += OnNotebookSwitchPage; Notebook.FocusInEvent += OnNotebookFocusInEvent; ChatViewManager = new ChatViewManager(Notebook, ChatTreeView); Assembly asm = Assembly.GetExecutingAssembly(); ChatViewManager.Load(asm); ChatViewManager.LoadAll(System.IO.Path.GetDirectoryName(asm.Location), "smuxi-frontend-gnome-*.dll"); ChatViewManager.ChatAdded += OnChatViewManagerChatAdded; ChatViewManager.ChatSynced += OnChatViewManagerChatSynced; ChatViewManager.ChatRemoved += OnChatViewManagerChatRemoved; #if GTK_SHARP_2_10 StatusIconManager = new StatusIconManager(this, ChatViewManager); #endif #if INDICATE_SHARP || MESSAGING_MENU_SHARP IndicateManager = new IndicateManager(this, ChatViewManager); #endif #if NOTIFY_SHARP NotifyManager = new NotifyManager(this, ChatViewManager); #endif #if IPC_DBUS NetworkManager = new NetworkManager(ChatViewManager); #endif UI = new GnomeUI(ChatViewManager); // HACK: Frontend.FrontendConfig out of scope EngineManager = new EngineManager(Frontend.FrontendConfig, UI); Entry = new Entry(ChatViewManager); var entryScrolledWindow = new Gtk.ScrolledWindow(); entryScrolledWindow.ShadowType = Gtk.ShadowType.EtchedIn; entryScrolledWindow.HscrollbarPolicy = Gtk.PolicyType.Never; entryScrolledWindow.SizeRequested += delegate(object o, Gtk.SizeRequestedArgs args) { // predict and set useful heigth int lineWidth, lineHeigth; using (var layout = Entry.CreatePangoLayout("Qp")) { layout.GetPixelSize(out lineHeigth, out lineHeigth); } var it = Entry.Buffer.StartIter; int newLines = 1; // move to end of next visual line while (Entry.ForwardDisplayLineEnd(ref it)) { newLines++; // calling ForwardDisplayLineEnd repeatedly stays on the same position // therefor we move one cursor position further it.ForwardCursorPosition(); } newLines = Math.Min(newLines, 3); // use text heigth + a bit extra var bestSize = new Gtk.Requisition() { Height = (lineHeigth * newLines) + 5 }; args.Requisition = bestSize; }; entryScrolledWindow.Add(Entry); ProgressBar = new Gtk.ProgressBar(); StatusHBox = new Gtk.HBox(); MenuWidget = new MenuWidget(this, ChatViewManager); var treeviewScrolledWindow = new Gtk.ScrolledWindow() { ShadowType = Gtk.ShadowType.EtchedIn, HscrollbarPolicy = Gtk.PolicyType.Never, VscrollbarPolicy = Gtk.PolicyType.Automatic }; treeviewScrolledWindow.Add(ChatTreeView); ChatViewManager.ChatAdded += (sender, e) => { treeviewScrolledWindow.CheckResize(); }; var notebookPaned = new Gtk.VPaned(); notebookPaned.Pack1(Notebook, true, false); notebookPaned.Pack2(entryScrolledWindow, false, false); var treeviewPaned = new Gtk.HPaned(); treeviewPaned.Pack1(treeviewScrolledWindow, false, false); treeviewPaned.Pack2(notebookPaned, true, false); TreeViewHPaned = treeviewPaned; var entryPaned = new Gtk.VPaned(); entryPaned.ButtonPressEvent += (sender, e) => { // reset entry size on double click if (e.Event.Type == Gdk.EventType.TwoButtonPress && e.Event.Button == 1) { GLib.Timeout.Add(100, delegate { entryPaned.Position = -1; return false; }); } }; entryPaned.Pack1(treeviewPaned, true, false); Gtk.VBox vbox = new Gtk.VBox(); vbox.PackStart(MenuWidget, false, false, 0); vbox.PackStart(entryPaned, true, true, 0); NetworkStatusbar = new Gtk.Statusbar(); NetworkStatusbar.WidthRequest = 300; NetworkStatusbar.HasResizeGrip = false; Statusbar = new Gtk.Statusbar(); Statusbar.HasResizeGrip = false; Gtk.HBox status_bar_hbox = new Gtk.HBox(); status_bar_hbox.Homogeneous = true; status_bar_hbox.PackStart(NetworkStatusbar, false, true, 0); status_bar_hbox.PackStart(Statusbar, true, true, 0); StatusHBox.PackStart(status_bar_hbox); StatusHBox.PackStart(ProgressBar, false, false, 0); StatusHBox.ShowAll(); StatusHBox.NoShowAll = true; StatusHBox.Visible = (bool) Frontend.FrontendConfig["ShowStatusBar"]; vbox.PackStart(StatusHBox, false, false, 0); Add(vbox); }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget MainWindow this.Name = "MainWindow"; this.Title = Mono.Unix.Catalog.GetString("(ymt5gui) mt5 to objf"); this.WindowPosition = ((Gtk.WindowPosition)(4)); this.BorderWidth = ((uint)(3)); // Container child MainWindow.Gtk.Container+ContainerChild this.vbox2 = new Gtk.VBox(); this.vbox2.Name = "vbox2"; this.vbox2.Spacing = 6; // Container child vbox2.Gtk.Box+BoxChild this.frame1 = new Gtk.Frame(); this.frame1.Name = "frame1"; // 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.vbox4 = new Gtk.VBox(); this.vbox4.Name = "vbox4"; this.vbox4.Spacing = 6; // Container child vbox4.Gtk.Box+BoxChild this.checkbutton2 = new Gtk.CheckButton(); this.checkbutton2.CanFocus = true; this.checkbutton2.Name = "checkbutton2"; this.checkbutton2.Label = Mono.Unix.Catalog.GetString("extract all mt5 from directory"); this.checkbutton2.DrawIndicator = true; this.checkbutton2.UseUnderline = true; this.vbox4.Add(this.checkbutton2); Gtk.Box.BoxChild w1 = ((Gtk.Box.BoxChild)(this.vbox4[this.checkbutton2])); w1.Position = 0; w1.Expand = false; w1.Fill = false; // Container child vbox4.Gtk.Box+BoxChild this.filechooserbutton1 = new Gtk.FileChooserButton(Mono.Unix.Catalog.GetString("Sélectionner un fichier"), ((Gtk.FileChooserAction)(0))); this.filechooserbutton1.Name = "filechooserbutton1"; this.vbox4.Add(this.filechooserbutton1); Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.vbox4[this.filechooserbutton1])); w2.Position = 1; w2.Expand = false; w2.Fill = false; this.GtkAlignment.Add(this.vbox4); this.frame1.Add(this.GtkAlignment); this.GtkLabel2 = new Gtk.Label(); this.GtkLabel2.Name = "GtkLabel2"; this.GtkLabel2.LabelProp = Mono.Unix.Catalog.GetString("<b>M</b>T5 path"); this.GtkLabel2.UseMarkup = true; this.frame1.LabelWidget = this.GtkLabel2; this.vbox2.Add(this.frame1); Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.vbox2[this.frame1])); w5.Position = 0; w5.Expand = false; w5.Fill = false; // Container child vbox2.Gtk.Box+BoxChild this.frame2 = new Gtk.Frame(); this.frame2.Name = "frame2"; // 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.vbox3 = new Gtk.VBox(); this.vbox3.Name = "vbox3"; this.vbox3.Spacing = 6; // Container child vbox3.Gtk.Box+BoxChild this.frame4 = new Gtk.Frame(); this.frame4.Name = "frame4"; this.frame4.ShadowType = ((Gtk.ShadowType)(0)); // Container child frame4.Gtk.Container+ContainerChild this.GtkAlignment3 = new Gtk.Alignment(0F, 0F, 1F, 1F); this.GtkAlignment3.Name = "GtkAlignment3"; this.GtkAlignment3.LeftPadding = ((uint)(12)); // Container child GtkAlignment3.Gtk.Container+ContainerChild this.filechooserbutton2 = new Gtk.FileChooserButton(Mono.Unix.Catalog.GetString("Sélectionner un fichier"), ((Gtk.FileChooserAction)(2))); this.filechooserbutton2.Name = "filechooserbutton2"; this.GtkAlignment3.Add(this.filechooserbutton2); this.frame4.Add(this.GtkAlignment3); this.GtkLabel6 = new Gtk.Label(); this.GtkLabel6.Name = "GtkLabel6"; this.GtkLabel6.LabelProp = Mono.Unix.Catalog.GetString("Output path to objf"); this.GtkLabel6.UseMarkup = true; this.frame4.LabelWidget = this.GtkLabel6; this.vbox3.Add(this.frame4); Gtk.Box.BoxChild w8 = ((Gtk.Box.BoxChild)(this.vbox3[this.frame4])); w8.Position = 0; w8.Expand = false; w8.Fill = false; // Container child vbox3.Gtk.Box+BoxChild this.checkbutton1 = new Gtk.CheckButton(); this.checkbutton1.CanFocus = true; this.checkbutton1.Name = "checkbutton1"; this.checkbutton1.Label = Mono.Unix.Catalog.GetString("do not use triangle strip (obj compatible)"); this.checkbutton1.Active = true; this.checkbutton1.DrawIndicator = true; this.checkbutton1.UseUnderline = true; this.vbox3.Add(this.checkbutton1); Gtk.Box.BoxChild w9 = ((Gtk.Box.BoxChild)(this.vbox3[this.checkbutton1])); w9.Position = 1; w9.Expand = false; w9.Fill = false; this.GtkAlignment1.Add(this.vbox3); this.frame2.Add(this.GtkAlignment1); this.GtkLabel5 = new Gtk.Label(); this.GtkLabel5.Name = "GtkLabel5"; this.GtkLabel5.LabelProp = Mono.Unix.Catalog.GetString("<b>O</b>bjf pathes"); this.GtkLabel5.UseMarkup = true; this.frame2.LabelWidget = this.GtkLabel5; this.vbox2.Add(this.frame2); Gtk.Box.BoxChild w12 = ((Gtk.Box.BoxChild)(this.vbox2[this.frame2])); w12.Position = 1; w12.Expand = false; w12.Fill = false; // Container child vbox2.Gtk.Box+BoxChild this.frame3 = new Gtk.Frame(); this.frame3.Name = "frame3"; // Container child frame3.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.hbox1 = new Gtk.HBox(); this.hbox1.Name = "hbox1"; this.hbox1.Spacing = 6; // Container child hbox1.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("Generate"); this.hbox1.Add(this.button2); Gtk.Box.BoxChild w13 = ((Gtk.Box.BoxChild)(this.hbox1[this.button2])); w13.Position = 0; w13.Expand = false; w13.Fill = false; // Container child hbox1.Gtk.Box+BoxChild this.vbox1 = new Gtk.VBox(); this.vbox1.Name = "vbox1"; this.vbox1.Spacing = 6; // Container child vbox1.Gtk.Box+BoxChild this.progressbar1 = new Gtk.ProgressBar(); this.progressbar1.Name = "progressbar1"; this.vbox1.Add(this.progressbar1); Gtk.Box.BoxChild w14 = ((Gtk.Box.BoxChild)(this.vbox1[this.progressbar1])); w14.Position = 0; w14.Expand = false; w14.Fill = false; this.hbox1.Add(this.vbox1); Gtk.Box.BoxChild w15 = ((Gtk.Box.BoxChild)(this.hbox1[this.vbox1])); w15.Position = 1; this.GtkAlignment2.Add(this.hbox1); this.frame3.Add(this.GtkAlignment2); this.GtkLabel10 = new Gtk.Label(); this.GtkLabel10.Name = "GtkLabel10"; this.GtkLabel10.LabelProp = Mono.Unix.Catalog.GetString("<b>M</b>t52objf"); this.GtkLabel10.UseMarkup = true; this.frame3.LabelWidget = this.GtkLabel10; this.vbox2.Add(this.frame3); Gtk.Box.BoxChild w18 = ((Gtk.Box.BoxChild)(this.vbox2[this.frame3])); w18.Position = 2; w18.Expand = false; w18.Fill = false; this.Add(this.vbox2); if ((this.Child != null)) { this.Child.ShowAll(); } this.DefaultWidth = 764; this.DefaultHeight = 218; this.Show(); this.DeleteEvent += new Gtk.DeleteEventHandler(this.OnDeleteEvent); this.checkbutton2.Toggled += new System.EventHandler(this.onMt5DirectoryToggle); this.button2.Clicked += new System.EventHandler(this.OnButton2Clicked); }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget omvviewerlight.LogoutDlg this.Name = "omvviewerlight.LogoutDlg"; this.Title = Mono.Unix.Catalog.GetString("Loging out"); this.WindowPosition = ((Gtk.WindowPosition)(4)); this.Modal = true; this.HasSeparator = false; // Internal child omvviewerlight.LogoutDlg.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.label1 = new Gtk.Label(); this.label1.Name = "label1"; this.label1.Ypad = 8; this.label1.LabelProp = Mono.Unix.Catalog.GetString("Please wait, the system is attemping\nto log you out now, this may take a\nfew seconds.\n\nTo abort waiting, press Cancel at any\ntime"); this.vbox2.Add(this.label1); Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.vbox2[this.label1])); w2.Position = 0; w2.Expand = false; w2.Fill = false; // Container child vbox2.Gtk.Box+BoxChild this.progressbar1 = new Gtk.ProgressBar(); this.progressbar1.Name = "progressbar1"; this.vbox2.Add(this.progressbar1); Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox2[this.progressbar1])); w3.Position = 1; w3.Expand = false; w3.Fill = false; w1.Add(this.vbox2); Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(w1[this.vbox2])); w4.Position = 0; w4.Expand = false; w4.Fill = false; // Internal child omvviewerlight.LogoutDlg.ActionArea Gtk.HButtonBox w5 = this.ActionArea; w5.Name = "dialog1_ActionArea"; w5.Spacing = 6; w5.BorderWidth = ((uint)(5)); w5.LayoutStyle = ((Gtk.ButtonBoxStyle)(4)); // 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-cancel"; this.AddActionWidget(this.buttonOk, -6); Gtk.ButtonBox.ButtonBoxChild w6 = ((Gtk.ButtonBox.ButtonBoxChild)(w5[this.buttonOk])); w6.Expand = false; w6.Fill = false; if ((this.Child != null)) { this.Child.ShowAll(); } this.DefaultWidth = 400; this.DefaultHeight = 205; this.Show(); this.buttonOk.Clicked += new System.EventHandler(this.OnButtonOkClicked); }
public static void Build(object obj, string id) { System.Collections.Hashtable bindings = new System.Collections.Hashtable(); if ((id == "Boxerp.Client.GtkSharp.Lib.QuestionDialog")) { Gtk.Dialog cobj = ((Gtk.Dialog)(obj)); // Widget Boxerp.Client.GtkSharp.Lib.QuestionDialog cobj.Title = "Question"; cobj.WindowPosition = ((Gtk.WindowPosition)(4)); cobj.Modal = true; cobj.HasSeparator = false; cobj.Events = ((Gdk.EventMask)(256)); cobj.Name = "Boxerp.Client.GtkSharp.Lib.QuestionDialog"; // Internal child Boxerp.Client.GtkSharp.Lib.QuestionDialog.VBox Gtk.VBox w1 = cobj.VBox; w1.BorderWidth = ((uint)(2)); w1.Events = ((Gdk.EventMask)(256)); w1.Name = "dialog_VBox"; // Container child dialog_VBox.Gtk.Box+BoxChild Gtk.HBox w2 = new Gtk.HBox(); w2.Events = ((Gdk.EventMask)(0)); w2.Name = "hbox1"; // Container child hbox1.Gtk.Box+BoxChild Gtk.Image w3 = new Gtk.Image(); w3.Pixbuf = Gtk.IconTheme.Default.LoadIcon("gtk-dialog-info", 16, 0); w3.Events = ((Gdk.EventMask)(0)); w3.Name = "image"; bindings["image"] = w3; w2.Add(w3); Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(w2[w3])); w4.Position = 0; w4.Expand = false; w4.Fill = false; w4.Padding = ((uint)(5)); // Container child hbox1.Gtk.Box+BoxChild Gtk.Label w5 = new Gtk.Label(); w5.LabelProp = "Info"; w5.Events = ((Gdk.EventMask)(0)); w5.Name = "label"; bindings["label"] = w5; w2.Add(w5); Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(w2[w5])); w6.Position = 1; bindings["hbox1"] = w2; w1.Add(w2); Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(w1[w2])); w7.Position = 0; w7.Expand = false; w7.Fill = false; w7.Padding = ((uint)(5)); bindings["dialog_VBox"] = w1; // Internal child Boxerp.Client.GtkSharp.Lib.QuestionDialog.ActionArea Gtk.HButtonBox w8 = cobj.ActionArea; w8.LayoutStyle = ((Gtk.ButtonBoxStyle)(4)); w8.Spacing = 10; w8.BorderWidth = ((uint)(5)); w8.Events = ((Gdk.EventMask)(256)); w8.Name = "Boxerp.Client.GtkSharp.Lib.QuestionDialog_ActionArea"; // Container child Boxerp.Client.GtkSharp.Lib.QuestionDialog_ActionArea.Gtk.ButtonBox+ButtonBoxChild Gtk.Button w9 = new Gtk.Button(); w9.CanFocus = true; w9.Events = ((Gdk.EventMask)(0)); w9.Name = "button22"; w9.CanDefault = true; // Container child button22.Gtk.Container+ContainerChild Gtk.Alignment w10 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); w10.Events = ((Gdk.EventMask)(0)); w10.Name = "GtkAlignment"; // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w11 = new Gtk.HBox(); w11.Spacing = 2; w11.Events = ((Gdk.EventMask)(0)); w11.Name = "GtkHBox"; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w12 = new Gtk.Image(); w12.Pixbuf = Gtk.IconTheme.Default.LoadIcon("gtk-no", 16, 0); w12.Events = ((Gdk.EventMask)(0)); w12.Name = "image2"; bindings["image2"] = w12; w11.Add(w12); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w14 = new Gtk.Label(); w14.LabelProp = "No"; w14.Events = ((Gdk.EventMask)(0)); w14.Name = "GtkLabel"; bindings["GtkLabel"] = w14; w11.Add(w14); bindings["GtkHBox"] = w11; w10.Add(w11); bindings["GtkAlignment"] = w10; w9.Add(w10); bindings["button22"] = w9; cobj.AddActionWidget(w9, -9); Gtk.ButtonBox.ButtonBoxChild w18 = ((Gtk.ButtonBox.ButtonBoxChild)(w8[w9])); w18.Expand = false; w18.Fill = false; // Container child Boxerp.Client.GtkSharp.Lib.QuestionDialog_ActionArea.Gtk.ButtonBox+ButtonBoxChild Gtk.Button w19 = new Gtk.Button(); w19.CanFocus = true; w19.Events = ((Gdk.EventMask)(0)); w19.Name = "button24"; w19.CanDefault = true; // Container child button24.Gtk.Container+ContainerChild Gtk.Alignment w20 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); w20.Events = ((Gdk.EventMask)(0)); w20.Name = "GtkAlignment1"; // Container child GtkAlignment1.Gtk.Container+ContainerChild Gtk.HBox w21 = new Gtk.HBox(); w21.Spacing = 2; w21.Events = ((Gdk.EventMask)(0)); w21.Name = "GtkHBox1"; // Container child GtkHBox1.Gtk.Container+ContainerChild Gtk.Image w22 = new Gtk.Image(); w22.Pixbuf = Gtk.IconTheme.Default.LoadIcon("gtk-yes", 16, 0); w22.Events = ((Gdk.EventMask)(0)); w22.Name = "image3"; bindings["image3"] = w22; w21.Add(w22); // Container child GtkHBox1.Gtk.Container+ContainerChild Gtk.Label w24 = new Gtk.Label(); w24.LabelProp = "Yes"; w24.Events = ((Gdk.EventMask)(0)); w24.Name = "GtkLabel1"; bindings["GtkLabel1"] = w24; w21.Add(w24); bindings["GtkHBox1"] = w21; w20.Add(w21); bindings["GtkAlignment1"] = w20; w19.Add(w20); bindings["button24"] = w19; cobj.AddActionWidget(w19, -8); Gtk.ButtonBox.ButtonBoxChild w28 = ((Gtk.ButtonBox.ButtonBoxChild)(w8[w19])); w28.Position = 1; w28.Expand = false; w28.Fill = false; bindings["Boxerp.Client.GtkSharp.Lib.QuestionDialog_ActionArea"] = w8; cobj.DefaultWidth = 400; cobj.DefaultHeight = 99; bindings["Boxerp.Client.GtkSharp.Lib.QuestionDialog"] = cobj; w3.Show(); w5.Show(); w2.Show(); w1.Show(); w12.Show(); w14.Show(); w11.Show(); w10.Show(); w9.Show(); w22.Show(); w24.Show(); w21.Show(); w20.Show(); w19.Show(); w8.Show(); cobj.Show(); w9.Clicked += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnNo"))); w19.Clicked += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnYes"))); } else { if ((id == "Boxerp.Client.GtkSharp.Lib.SimpleListView")) { Gtk.Bin cobj = ((Gtk.Bin)(obj)); // Widget Boxerp.Client.GtkSharp.Lib.SimpleListView BinContainer.Attach(cobj); cobj.Events = ((Gdk.EventMask)(256)); cobj.Name = "Boxerp.Client.GtkSharp.Lib.SimpleListView"; // Container child Boxerp.Client.GtkSharp.Lib.SimpleListView.Gtk.Container+ContainerChild Gtk.TreeView w1 = new Gtk.TreeView(); w1.CanFocus = true; w1.Events = ((Gdk.EventMask)(0)); w1.Name = "treeview"; bindings["treeview"] = w1; cobj.Add(w1); bindings["Boxerp.Client.GtkSharp.Lib.SimpleListView"] = cobj; w1.Show(); cobj.Show(); } else { if ((id == "Boxerp.Client.GtkSharp.Lib.WarningDialog")) { Gtk.Dialog cobj = ((Gtk.Dialog)(obj)); // Widget Boxerp.Client.GtkSharp.Lib.WarningDialog cobj.Title = "Warning"; cobj.Icon = Gtk.IconTheme.Default.LoadIcon("gtk-dialog-warning", 16, 0); cobj.WindowPosition = ((Gtk.WindowPosition)(4)); cobj.HasSeparator = false; cobj.Resizable = false; cobj.AllowGrow = false; cobj.DefaultWidth = 500; cobj.Events = ((Gdk.EventMask)(256)); cobj.Name = "Boxerp.Client.GtkSharp.Lib.WarningDialog"; // Internal child Boxerp.Client.GtkSharp.Lib.WarningDialog.VBox Gtk.VBox w1 = cobj.VBox; w1.BorderWidth = ((uint)(2)); w1.Events = ((Gdk.EventMask)(256)); w1.Name = "dialog_VBox"; // Container child dialog_VBox.Gtk.Box+BoxChild Gtk.HBox w2 = new Gtk.HBox(); w2.Spacing = 5; w2.BorderWidth = ((uint)(5)); w2.Events = ((Gdk.EventMask)(0)); w2.Name = "hbox1"; // Container child hbox1.Gtk.Box+BoxChild Gtk.Image w3 = new Gtk.Image(); w3.Pixbuf = Gtk.IconTheme.Default.LoadIcon("stock_dialog-warning", 16, 0); w3.Events = ((Gdk.EventMask)(0)); w3.Name = "image"; bindings["image"] = w3; w2.Add(w3); Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(w2[w3])); w4.Position = 0; w4.Expand = false; w4.Fill = false; // Container child hbox1.Gtk.Box+BoxChild Gtk.Label w5 = new Gtk.Label(); w5.LabelProp = "Warning"; w5.Events = ((Gdk.EventMask)(0)); w5.Name = "label"; bindings["label"] = w5; w2.Add(w5); Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(w2[w5])); w6.Position = 1; bindings["hbox1"] = w2; w1.Add(w2); Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(w1[w2])); w7.Position = 0; w7.Expand = false; w7.Fill = false; bindings["dialog_VBox"] = w1; // Internal child Boxerp.Client.GtkSharp.Lib.WarningDialog.ActionArea Gtk.HButtonBox w8 = cobj.ActionArea; w8.LayoutStyle = ((Gtk.ButtonBoxStyle)(4)); w8.Spacing = 10; w8.BorderWidth = ((uint)(5)); w8.Events = ((Gdk.EventMask)(256)); w8.Name = "Boxerp.Client.GtkSharp.Lib.WarningDialog_ActionArea"; // Container child Boxerp.Client.GtkSharp.Lib.WarningDialog_ActionArea.Gtk.ButtonBox+ButtonBoxChild Gtk.Button w9 = new Gtk.Button(); w9.CanFocus = true; w9.Events = ((Gdk.EventMask)(0)); w9.Name = "buttonOk"; w9.CanDefault = true; // Container child buttonOk.Gtk.Container+ContainerChild Gtk.Alignment w10 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); w10.Events = ((Gdk.EventMask)(0)); w10.Name = "GtkAlignment"; // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w11 = new Gtk.HBox(); w11.Spacing = 2; w11.Events = ((Gdk.EventMask)(0)); w11.Name = "GtkHBox"; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w12 = new Gtk.Image(); w12.Pixbuf = Gtk.IconTheme.Default.LoadIcon("gtk-ok", 16, 0); w12.Events = ((Gdk.EventMask)(0)); w12.Name = "image7"; bindings["image7"] = w12; w11.Add(w12); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w14 = new Gtk.Label(); w14.LabelProp = "Ok"; w14.Events = ((Gdk.EventMask)(0)); w14.Name = "GtkLabel"; bindings["GtkLabel"] = w14; w11.Add(w14); bindings["GtkHBox"] = w11; w10.Add(w11); bindings["GtkAlignment"] = w10; w9.Add(w10); bindings["buttonOk"] = w9; cobj.AddActionWidget(w9, 0); Gtk.ButtonBox.ButtonBoxChild w18 = ((Gtk.ButtonBox.ButtonBoxChild)(w8[w9])); w18.Expand = false; w18.Fill = false; bindings["Boxerp.Client.GtkSharp.Lib.WarningDialog_ActionArea"] = w8; cobj.DefaultHeight = 104; bindings["Boxerp.Client.GtkSharp.Lib.WarningDialog"] = cobj; w3.Show(); w5.Show(); w2.Show(); w1.Show(); w12.Show(); w14.Show(); w11.Show(); w10.Show(); w9.Show(); w8.Show(); cobj.Show(); w9.Clicked += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnOk"))); } else { if ((id == "Boxerp.Client.GtkSharp.Lib.WaitWindow")) { Gtk.Window cobj = ((Gtk.Window)(obj)); // Widget Boxerp.Client.GtkSharp.Lib.WaitWindow cobj.Title = "Operation in progress..."; cobj.WindowPosition = ((Gtk.WindowPosition)(1)); cobj.Events = ((Gdk.EventMask)(0)); cobj.Name = "Boxerp.Client.GtkSharp.Lib.WaitWindow"; // Container child Boxerp.Client.GtkSharp.Lib.WaitWindow.Gtk.Container+ContainerChild Gtk.VBox w1 = new Gtk.VBox(); w1.Spacing = 2; w1.BorderWidth = ((uint)(5)); w1.Events = ((Gdk.EventMask)(256)); w1.Name = "vbox"; // Container child vbox.Gtk.Box+BoxChild Gtk.Label w2 = new Gtk.Label(); w2.LabelProp = "Please wait"; w2.Events = ((Gdk.EventMask)(0)); w2.Name = "labelMsg"; bindings["labelMsg"] = w2; w1.Add(w2); Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(w1[w2])); w3.Position = 0; // Container child vbox.Gtk.Box+BoxChild Gtk.ProgressBar w4 = new Gtk.ProgressBar(); w4.Events = ((Gdk.EventMask)(0)); w4.Name = "progressbar"; bindings["progressbar"] = w4; w1.Add(w4); Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(w1[w4])); w5.Position = 1; w5.Expand = false; w5.Fill = false; // Container child vbox.Gtk.Box+BoxChild Gtk.HButtonBox w6 = new Gtk.HButtonBox(); w6.LayoutStyle = ((Gtk.ButtonBoxStyle)(2)); w6.Spacing = 10; w6.BorderWidth = ((uint)(5)); w6.Events = ((Gdk.EventMask)(256)); w6.Name = "actionArea"; // Container child actionArea.Gtk.ButtonBox+ButtonBoxChild Gtk.Button w7 = new Gtk.Button(); w7.CanFocus = true; w7.Events = ((Gdk.EventMask)(0)); w7.Name = "button"; w7.CanDefault = true; // Container child button.Gtk.Container+ContainerChild Gtk.Alignment w8 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); w8.Events = ((Gdk.EventMask)(0)); w8.Name = "GtkAlignment"; // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w9 = new Gtk.HBox(); w9.Spacing = 2; w9.Events = ((Gdk.EventMask)(0)); w9.Name = "GtkHBox"; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w10 = new Gtk.Image(); w10.Pixbuf = Gtk.IconTheme.Default.LoadIcon("gtk-cancel", 16, 0); w10.Events = ((Gdk.EventMask)(0)); w10.Name = "image1"; bindings["image1"] = w10; w9.Add(w10); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w12 = new Gtk.Label(); w12.LabelProp = "Cancel"; w12.Events = ((Gdk.EventMask)(0)); w12.Name = "GtkLabel"; bindings["GtkLabel"] = w12; w9.Add(w12); bindings["GtkHBox"] = w9; w8.Add(w9); bindings["GtkAlignment"] = w8; w7.Add(w8); bindings["button"] = w7; w6.Add(w7); Gtk.ButtonBox.ButtonBoxChild w16 = ((Gtk.ButtonBox.ButtonBoxChild)(w6[w7])); w16.Expand = false; w16.Fill = false; bindings["actionArea"] = w6; w1.Add(w6); Gtk.Box.BoxChild w17 = ((Gtk.Box.BoxChild)(w1[w6])); w17.Position = 2; w17.Expand = false; w17.Fill = false; bindings["vbox"] = w1; cobj.Add(w1); cobj.DefaultWidth = 400; cobj.DefaultHeight = 119; bindings["Boxerp.Client.GtkSharp.Lib.WaitWindow"] = cobj; w2.Show(); w4.Show(); w10.Show(); w12.Show(); w9.Show(); w8.Show(); w7.Show(); w6.Show(); w1.Show(); cobj.Show(); cobj.DeleteEvent += ((Gtk.DeleteEventHandler)(System.Delegate.CreateDelegate(typeof(Gtk.DeleteEventHandler), cobj, "OnDeleteEvent"))); w7.Clicked += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnCancel"))); } else { if ((id == "Boxerp.Client.GtkSharp.Lib.WaitDialog")) { Gtk.Dialog cobj = ((Gtk.Dialog)(obj)); // Widget Boxerp.Client.GtkSharp.Lib.WaitDialog cobj.Title = "Operation in progress..."; cobj.WindowPosition = ((Gtk.WindowPosition)(1)); cobj.HasSeparator = false; cobj.Events = ((Gdk.EventMask)(256)); cobj.Name = "Boxerp.Client.GtkSharp.Lib.WaitDialog"; // Internal child Boxerp.Client.GtkSharp.Lib.WaitDialog.VBox Gtk.VBox w1 = cobj.VBox; w1.Spacing = 2; w1.BorderWidth = ((uint)(2)); w1.Events = ((Gdk.EventMask)(256)); w1.Name = "dialog_VBox"; // Container child dialog_VBox.Gtk.Box+BoxChild Gtk.Label w2 = new Gtk.Label(); w2.LabelProp = "Please wait"; w2.Events = ((Gdk.EventMask)(0)); w2.Name = "labelMsg"; bindings["labelMsg"] = w2; w1.Add(w2); Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(w1[w2])); w3.Position = 0; // Container child dialog_VBox.Gtk.Box+BoxChild Gtk.ProgressBar w4 = new Gtk.ProgressBar(); w4.Events = ((Gdk.EventMask)(0)); w4.Name = "progressbar"; bindings["progressbar"] = w4; w1.Add(w4); Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(w1[w4])); w5.Position = 1; w5.Expand = false; w5.Fill = false; bindings["dialog_VBox"] = w1; // Internal child Boxerp.Client.GtkSharp.Lib.WaitDialog.ActionArea Gtk.HButtonBox w6 = cobj.ActionArea; w6.LayoutStyle = ((Gtk.ButtonBoxStyle)(2)); w6.Spacing = 10; w6.BorderWidth = ((uint)(5)); w6.Events = ((Gdk.EventMask)(256)); w6.Name = "actionArea"; // Container child actionArea.Gtk.ButtonBox+ButtonBoxChild Gtk.Button w7 = new Gtk.Button(); w7.CanFocus = true; w7.Events = ((Gdk.EventMask)(0)); w7.Name = "button"; w7.CanDefault = true; // Container child button.Gtk.Container+ContainerChild Gtk.Alignment w8 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); w8.Events = ((Gdk.EventMask)(0)); w8.Name = "GtkAlignment"; // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w9 = new Gtk.HBox(); w9.Spacing = 2; w9.Events = ((Gdk.EventMask)(0)); w9.Name = "GtkHBox"; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w10 = new Gtk.Image(); w10.Pixbuf = Gtk.IconTheme.Default.LoadIcon("gtk-cancel", 16, 0); w10.Events = ((Gdk.EventMask)(0)); w10.Name = "image8"; bindings["image8"] = w10; w9.Add(w10); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w12 = new Gtk.Label(); w12.LabelProp = "Cancel"; w12.Events = ((Gdk.EventMask)(0)); w12.Name = "GtkLabel"; bindings["GtkLabel"] = w12; w9.Add(w12); bindings["GtkHBox"] = w9; w8.Add(w9); bindings["GtkAlignment"] = w8; w7.Add(w8); bindings["button"] = w7; cobj.AddActionWidget(w7, -7); Gtk.ButtonBox.ButtonBoxChild w16 = ((Gtk.ButtonBox.ButtonBoxChild)(w6[w7])); w16.Expand = false; w16.Fill = false; bindings["actionArea"] = w6; cobj.DefaultWidth = 400; cobj.DefaultHeight = 113; bindings["Boxerp.Client.GtkSharp.Lib.WaitDialog"] = cobj; w2.Show(); w4.Show(); w1.Show(); w10.Show(); w12.Show(); w9.Show(); w8.Show(); w7.Show(); w6.Show(); cobj.Show(); cobj.Close += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnClose"))); cobj.DeleteEvent += ((Gtk.DeleteEventHandler)(System.Delegate.CreateDelegate(typeof(Gtk.DeleteEventHandler), cobj, "OnDeleteEvent"))); w7.Clicked += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnCancel"))); } else { if ((id == "Boxerp.Client.GtkSharp.Lib.DoubleListView")) { Gtk.Bin cobj = ((Gtk.Bin)(obj)); // Widget Boxerp.Client.GtkSharp.Lib.DoubleListView BinContainer.Attach(cobj); cobj.Events = ((Gdk.EventMask)(256)); cobj.Name = "Boxerp.Client.GtkSharp.Lib.DoubleListView"; // Container child Boxerp.Client.GtkSharp.Lib.DoubleListView.Gtk.Container+ContainerChild Gtk.VBox w1 = new Gtk.VBox(); w1.Events = ((Gdk.EventMask)(0)); w1.Name = "vbox2"; // Container child vbox2.Gtk.Box+BoxChild Gtk.HBox w2 = new Gtk.HBox(); w2.Events = ((Gdk.EventMask)(0)); w2.Name = "hbox2"; // Container child hbox2.Gtk.Box+BoxChild Gtk.Label w3 = new Gtk.Label(); w3.LabelProp = "label1"; w3.Events = ((Gdk.EventMask)(0)); w3.Name = "labelLeft"; bindings["labelLeft"] = w3; w2.Add(w3); Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(w2[w3])); w4.Position = 0; w4.Fill = false; // Container child hbox2.Gtk.Box+BoxChild Gtk.VSeparator w5 = new Gtk.VSeparator(); w5.Events = ((Gdk.EventMask)(0)); w5.Name = "vseparator1"; bindings["vseparator1"] = w5; w2.Add(w5); Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(w2[w5])); w6.Position = 1; w6.Expand = false; w6.Fill = false; // Container child hbox2.Gtk.Box+BoxChild Gtk.Label w7 = new Gtk.Label(); w7.LabelProp = "label2"; w7.Events = ((Gdk.EventMask)(0)); w7.Name = "labelRight"; bindings["labelRight"] = w7; w2.Add(w7); Gtk.Box.BoxChild w8 = ((Gtk.Box.BoxChild)(w2[w7])); w8.Position = 2; w8.Fill = false; bindings["hbox2"] = w2; w1.Add(w2); Gtk.Box.BoxChild w9 = ((Gtk.Box.BoxChild)(w1[w2])); w9.Position = 0; w9.Expand = false; // Container child vbox2.Gtk.Box+BoxChild Gtk.HBox w10 = new Gtk.HBox(); w10.Spacing = 5; w10.BorderWidth = ((uint)(5)); w10.Events = ((Gdk.EventMask)(0)); w10.Name = "hbox1"; // Container child hbox1.Gtk.Box+BoxChild Gtk.ScrolledWindow w11 = new Gtk.ScrolledWindow(); w11.VscrollbarPolicy = ((Gtk.PolicyType)(1)); w11.HscrollbarPolicy = ((Gtk.PolicyType)(1)); w11.CanFocus = true; w11.Events = ((Gdk.EventMask)(0)); w11.Name = "scrolledwindow1"; // Container child scrolledwindow1.Gtk.Container+ContainerChild Gtk.Viewport w12 = new Gtk.Viewport(); w12.ShadowType = ((Gtk.ShadowType)(0)); w12.Events = ((Gdk.EventMask)(0)); w12.Name = "GtkViewport"; // Container child GtkViewport.Gtk.Container+ContainerChild Boxerp.Client.GtkSharp.Lib.SimpleListView w13 = new Boxerp.Client.GtkSharp.Lib.SimpleListView(); w13.Events = ((Gdk.EventMask)(256)); w13.Name = "slistviewLeft"; bindings["slistviewLeft"] = w13; w12.Add(w13); bindings["GtkViewport"] = w12; w11.Add(w12); bindings["scrolledwindow1"] = w11; w10.Add(w11); Gtk.Box.BoxChild w16 = ((Gtk.Box.BoxChild)(w10[w11])); w16.Position = 0; // Container child hbox1.Gtk.Box+BoxChild Gtk.VBox w17 = new Gtk.VBox(); w17.Homogeneous = true; w17.Events = ((Gdk.EventMask)(0)); w17.Name = "vbox1"; // Container child vbox1.Gtk.Box+BoxChild Gtk.Button w18 = new Gtk.Button(); w18.CanFocus = true; w18.Events = ((Gdk.EventMask)(0)); w18.Name = "button5"; // Container child button5.Gtk.Container+ContainerChild Gtk.Alignment w19 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); w19.Events = ((Gdk.EventMask)(0)); w19.Name = "GtkAlignment"; // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w20 = new Gtk.HBox(); w20.Spacing = 2; w20.Events = ((Gdk.EventMask)(0)); w20.Name = "GtkHBox"; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w21 = new Gtk.Image(); w21.Pixbuf = Gtk.IconTheme.Default.LoadIcon("stock_left", 16, 0); w21.Events = ((Gdk.EventMask)(0)); w21.Name = "image5"; bindings["image5"] = w21; w20.Add(w21); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w23 = new Gtk.Label(); w23.LabelProp = ""; w23.Events = ((Gdk.EventMask)(0)); w23.Name = "GtkLabel"; bindings["GtkLabel"] = w23; w20.Add(w23); bindings["GtkHBox"] = w20; w19.Add(w20); bindings["GtkAlignment"] = w19; w18.Add(w19); bindings["button5"] = w18; w17.Add(w18); Gtk.Box.BoxChild w27 = ((Gtk.Box.BoxChild)(w17[w18])); w27.Position = 1; w27.Expand = false; w27.Fill = false; // Container child vbox1.Gtk.Box+BoxChild Gtk.Button w28 = new Gtk.Button(); w28.CanFocus = true; w28.Events = ((Gdk.EventMask)(0)); w28.Name = "button6"; // Container child button6.Gtk.Container+ContainerChild Gtk.Alignment w29 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); w29.Events = ((Gdk.EventMask)(0)); w29.Name = "GtkAlignment"; // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w30 = new Gtk.HBox(); w30.Spacing = 2; w30.Events = ((Gdk.EventMask)(0)); w30.Name = "GtkHBox"; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w31 = new Gtk.Image(); w31.Pixbuf = Gtk.IconTheme.Default.LoadIcon("stock_right", 16, 0); w31.Events = ((Gdk.EventMask)(0)); w31.Name = "image6"; bindings["image6"] = w31; w30.Add(w31); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w33 = new Gtk.Label(); w33.LabelProp = ""; w33.Events = ((Gdk.EventMask)(0)); w33.Name = "GtkLabel"; bindings["GtkLabel"] = w33; w30.Add(w33); bindings["GtkHBox"] = w30; w29.Add(w30); bindings["GtkAlignment"] = w29; w28.Add(w29); bindings["button6"] = w28; w17.Add(w28); Gtk.Box.BoxChild w37 = ((Gtk.Box.BoxChild)(w17[w28])); w37.Position = 2; w37.Expand = false; w37.Fill = false; bindings["vbox1"] = w17; w10.Add(w17); Gtk.Box.BoxChild w38 = ((Gtk.Box.BoxChild)(w10[w17])); w38.Position = 1; w38.Expand = false; w38.Fill = false; // Container child hbox1.Gtk.Box+BoxChild Gtk.ScrolledWindow w39 = new Gtk.ScrolledWindow(); w39.VscrollbarPolicy = ((Gtk.PolicyType)(1)); w39.HscrollbarPolicy = ((Gtk.PolicyType)(1)); w39.CanFocus = true; w39.Events = ((Gdk.EventMask)(0)); w39.Name = "scrolledwindow2"; // Container child scrolledwindow2.Gtk.Container+ContainerChild Gtk.Viewport w40 = new Gtk.Viewport(); w40.ShadowType = ((Gtk.ShadowType)(0)); w40.Events = ((Gdk.EventMask)(0)); w40.Name = "GtkViewport1"; // Container child GtkViewport1.Gtk.Container+ContainerChild Boxerp.Client.GtkSharp.Lib.SimpleListView w41 = new Boxerp.Client.GtkSharp.Lib.SimpleListView(); w41.Events = ((Gdk.EventMask)(256)); w41.Name = "slistviewRight"; bindings["slistviewRight"] = w41; w40.Add(w41); bindings["GtkViewport1"] = w40; w39.Add(w40); bindings["scrolledwindow2"] = w39; w10.Add(w39); Gtk.Box.BoxChild w44 = ((Gtk.Box.BoxChild)(w10[w39])); w44.PackType = ((Gtk.PackType)(1)); w44.Position = 2; bindings["hbox1"] = w10; w1.Add(w10); Gtk.Box.BoxChild w45 = ((Gtk.Box.BoxChild)(w1[w10])); w45.Position = 1; bindings["vbox2"] = w1; cobj.Add(w1); bindings["Boxerp.Client.GtkSharp.Lib.DoubleListView"] = cobj; w3.Show(); w5.Show(); w7.Show(); w2.Show(); w13.Show(); w12.Show(); w11.Show(); w21.Show(); w23.Show(); w20.Show(); w19.Show(); w18.Show(); w31.Show(); w33.Show(); w30.Show(); w29.Show(); w28.Show(); w17.Show(); w41.Show(); w40.Show(); w39.Show(); w10.Show(); w1.Show(); cobj.Show(); w18.Clicked += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnLeftClicked"))); w28.Clicked += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnRightClicked"))); } else { if ((id == "Boxerp.Client.GtkSharp.Lib.InfoDialog")) { Gtk.Dialog cobj = ((Gtk.Dialog)(obj)); // Widget Boxerp.Client.GtkSharp.Lib.InfoDialog cobj.Title = "Info"; cobj.WindowPosition = ((Gtk.WindowPosition)(4)); cobj.HasSeparator = false; cobj.Events = ((Gdk.EventMask)(256)); cobj.Name = "Boxerp.Client.GtkSharp.Lib.InfoDialog"; // Internal child Boxerp.Client.GtkSharp.Lib.InfoDialog.VBox Gtk.VBox w1 = cobj.VBox; w1.BorderWidth = ((uint)(2)); w1.Events = ((Gdk.EventMask)(256)); w1.Name = "dialog_VBox"; // Container child dialog_VBox.Gtk.Box+BoxChild Gtk.HBox w2 = new Gtk.HBox(); w2.Spacing = 5; w2.BorderWidth = ((uint)(5)); w2.Events = ((Gdk.EventMask)(0)); w2.Name = "hbox1"; // Container child hbox1.Gtk.Box+BoxChild Gtk.Image w3 = new Gtk.Image(); w3.Pixbuf = Gtk.IconTheme.Default.LoadIcon("gtk-dialog-info", 16, 0); w3.Events = ((Gdk.EventMask)(0)); w3.Name = "image"; bindings["image"] = w3; w2.Add(w3); Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(w2[w3])); w4.Position = 0; w4.Expand = false; w4.Fill = false; // Container child hbox1.Gtk.Box+BoxChild Gtk.Label w5 = new Gtk.Label(); w5.LabelProp = "Info"; w5.Events = ((Gdk.EventMask)(0)); w5.Name = "label"; bindings["label"] = w5; w2.Add(w5); Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(w2[w5])); w6.Position = 1; bindings["hbox1"] = w2; w1.Add(w2); Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(w1[w2])); w7.Position = 0; w7.Expand = false; w7.Fill = false; bindings["dialog_VBox"] = w1; // Internal child Boxerp.Client.GtkSharp.Lib.InfoDialog.ActionArea Gtk.HButtonBox w8 = cobj.ActionArea; w8.LayoutStyle = ((Gtk.ButtonBoxStyle)(4)); w8.Spacing = 10; w8.BorderWidth = ((uint)(5)); w8.Events = ((Gdk.EventMask)(256)); w8.Name = "Boxerp.Client.GtkSharp.Lib.InfoDialog_ActionArea"; // Container child Boxerp.Client.GtkSharp.Lib.InfoDialog_ActionArea.Gtk.ButtonBox+ButtonBoxChild Gtk.Button w9 = new Gtk.Button(); w9.CanFocus = true; w9.Events = ((Gdk.EventMask)(0)); w9.Name = "button35"; w9.CanDefault = true; // Container child button35.Gtk.Container+ContainerChild Gtk.Alignment w10 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); w10.Events = ((Gdk.EventMask)(0)); w10.Name = "GtkAlignment"; // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w11 = new Gtk.HBox(); w11.Spacing = 2; w11.Events = ((Gdk.EventMask)(0)); w11.Name = "GtkHBox"; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w12 = new Gtk.Image(); w12.Pixbuf = Gtk.IconTheme.Default.LoadIcon("gtk-ok", 16, 0); w12.Events = ((Gdk.EventMask)(0)); w12.Name = "image4"; bindings["image4"] = w12; w11.Add(w12); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w14 = new Gtk.Label(); w14.LabelProp = "Ok"; w14.Events = ((Gdk.EventMask)(0)); w14.Name = "GtkLabel"; bindings["GtkLabel"] = w14; w11.Add(w14); bindings["GtkHBox"] = w11; w10.Add(w11); bindings["GtkAlignment"] = w10; w9.Add(w10); bindings["button35"] = w9; cobj.AddActionWidget(w9, 0); Gtk.ButtonBox.ButtonBoxChild w18 = ((Gtk.ButtonBox.ButtonBoxChild)(w8[w9])); w18.Expand = false; w18.Fill = false; bindings["Boxerp.Client.GtkSharp.Lib.InfoDialog_ActionArea"] = w8; cobj.DefaultWidth = 400; cobj.DefaultHeight = 104; bindings["Boxerp.Client.GtkSharp.Lib.InfoDialog"] = cobj; w3.Show(); w5.Show(); w2.Show(); w1.Show(); w12.Show(); w14.Show(); w11.Show(); w10.Show(); w9.Show(); w8.Show(); cobj.Show(); w9.Clicked += ((System.EventHandler)(System.Delegate.CreateDelegate(typeof(System.EventHandler), cobj, "OnOkClicked"))); } else { if ((id == "button7")) { Gtk.Button cobj = ((Gtk.Button)(obj)); // Widget button7 cobj.CanFocus = true; cobj.Events = ((Gdk.EventMask)(0)); cobj.Name = "button7"; cobj.CanDefault = true; cobj.Label = "button7"; bindings["button7"] = cobj; cobj.Show(); } else { if ((id == "Boxerp.Client.GtkSharp.Lib.FilteredListView")) { Gtk.Bin cobj = ((Gtk.Bin)(obj)); // Widget Boxerp.Client.GtkSharp.Lib.FilteredListView BinContainer.Attach(cobj); cobj.Events = ((Gdk.EventMask)(256)); cobj.Name = "Boxerp.Client.GtkSharp.Lib.FilteredListView"; // Container child Boxerp.Client.GtkSharp.Lib.FilteredListView.Gtk.Container+ContainerChild Gtk.TreeView w1 = new Gtk.TreeView(); w1.CanFocus = true; w1.Events = ((Gdk.EventMask)(0)); w1.Name = "treeview"; bindings["treeview"] = w1; cobj.Add(w1); bindings["Boxerp.Client.GtkSharp.Lib.FilteredListView"] = cobj; w1.Show(); cobj.Show(); } else { if ((id == "Boxerp.Client.GtkSharp.Lib.SimpleTreeView")) { Gtk.Bin cobj = ((Gtk.Bin)(obj)); // Widget Boxerp.Client.GtkSharp.Lib.SimpleTreeView BinContainer.Attach(cobj); cobj.Events = ((Gdk.EventMask)(256)); cobj.Name = "Boxerp.Client.GtkSharp.Lib.SimpleTreeView"; // Container child Boxerp.Client.GtkSharp.Lib.SimpleTreeView.Gtk.Container+ContainerChild Gtk.TreeView w1 = new Gtk.TreeView(); w1.CanFocus = true; w1.Events = ((Gdk.EventMask)(0)); w1.Name = "treeview"; bindings["treeview"] = w1; cobj.Add(w1); bindings["Boxerp.Client.GtkSharp.Lib.SimpleTreeView"] = cobj; w1.Show(); cobj.Show(); } else { if ((id == "Boxerp.Client.GtkSharp.Lib.LoginWindow")) { Gtk.Window cobj = ((Gtk.Window)(obj)); // Widget Boxerp.Client.GtkSharp.Lib.LoginWindow cobj.Title = "LoginWindow"; cobj.WindowPosition = ((Gtk.WindowPosition)(4)); cobj.Events = ((Gdk.EventMask)(0)); cobj.Name = "Boxerp.Client.GtkSharp.Lib.LoginWindow"; cobj.DefaultWidth = 400; cobj.DefaultHeight = 300; bindings["Boxerp.Client.GtkSharp.Lib.LoginWindow"] = cobj; cobj.Show(); } else { if ((id == "MainWindow")) { Gtk.Window cobj = ((Gtk.Window)(obj)); // Widget MainWindow cobj.Title = "MainWindow"; cobj.WindowPosition = ((Gtk.WindowPosition)(4)); cobj.Events = ((Gdk.EventMask)(0)); cobj.Name = "MainWindow"; cobj.DefaultWidth = 400; cobj.DefaultHeight = 300; bindings["MainWindow"] = cobj; cobj.Show(); cobj.DeleteEvent += ((Gtk.DeleteEventHandler)(System.Delegate.CreateDelegate(typeof(Gtk.DeleteEventHandler), cobj, "OnDeleteEvent"))); } else { if ((id == "Boxerp.Client.GtkSharp.Lib.InfoExtendedDialog")) { Gtk.Dialog cobj = ((Gtk.Dialog)(obj)); // Widget Boxerp.Client.GtkSharp.Lib.InfoExtendedDialog cobj.Title = "InfoExtendedDialog"; cobj.WindowPosition = ((Gtk.WindowPosition)(4)); cobj.HasSeparator = false; cobj.Events = ((Gdk.EventMask)(256)); cobj.Name = "Boxerp.Client.GtkSharp.Lib.InfoExtendedDialog"; // Internal child Boxerp.Client.GtkSharp.Lib.InfoExtendedDialog.VBox Gtk.VBox w1 = cobj.VBox; w1.BorderWidth = ((uint)(2)); w1.Events = ((Gdk.EventMask)(256)); w1.Name = "dialog_VBox"; bindings["dialog_VBox"] = w1; // Internal child Boxerp.Client.GtkSharp.Lib.InfoExtendedDialog.ActionArea Gtk.HButtonBox w2 = cobj.ActionArea; w2.LayoutStyle = ((Gtk.ButtonBoxStyle)(4)); w2.Events = ((Gdk.EventMask)(256)); w2.Name = "Boxerp.Client.GtkSharp.Lib.InfoExtendedDialog_ActionArea"; // Container child Boxerp.Client.GtkSharp.Lib.InfoExtendedDialog_ActionArea.Gtk.ButtonBox+ButtonBoxChild Gtk.Button w3 = new Gtk.Button(); w3.CanFocus = true; w3.Events = ((Gdk.EventMask)(0)); w3.Name = "button6"; w3.CanDefault = true; w3.Label = "button6"; bindings["button6"] = w3; cobj.AddActionWidget(w3, 0); Gtk.ButtonBox.ButtonBoxChild w4 = ((Gtk.ButtonBox.ButtonBoxChild)(w2[w3])); w4.Expand = false; w4.Fill = false; bindings["Boxerp.Client.GtkSharp.Lib.InfoExtendedDialog_ActionArea"] = w2; cobj.DefaultWidth = 400; cobj.DefaultHeight = 300; bindings["Boxerp.Client.GtkSharp.Lib.InfoExtendedDialog"] = cobj; w1.Show(); w3.Show(); w2.Show(); cobj.Show(); } } } } } } } } } } } } } System.Reflection.FieldInfo[] fields = obj.GetType().GetFields(((System.Reflection.BindingFlags.Public | System.Reflection.BindingFlags.NonPublic) | System.Reflection.BindingFlags.Instance)); for (int n = 0; (n < fields.Length); n = (n + 1)) { System.Reflection.FieldInfo field = fields[n]; object widget = bindings[field.Name]; if (((widget != null) && field.FieldType.IsInstanceOfType(widget))) { field.SetValue(obj, widget); } } }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget MainWindow this.Name = "MainWindow"; this.Title = Mono.Unix.Catalog.GetString("Chaotic Pendulum"); this.WindowPosition = ((Gtk.WindowPosition)(4)); // Container child MainWindow.Gtk.Container+ContainerChild this.hbox5 = new Gtk.HBox(); this.hbox5.Name = "hbox5"; this.hbox5.Spacing = 6; // Container child hbox5.Gtk.Box+BoxChild this.vbox7 = new Gtk.VBox(); this.vbox7.Name = "vbox7"; this.vbox7.Spacing = 6; // Container child vbox7.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.GtkAlignment = new Gtk.Alignment(0F, 0F, 1F, 1F); this.GtkAlignment.Name = "GtkAlignment"; this.GtkAlignment.LeftPadding = ((uint)(12)); // Container child GtkAlignment.Gtk.Container+ContainerChild this.table3 = new Gtk.Table(((uint)(6)), ((uint)(2)), false); this.table3.Name = "table3"; this.table3.RowSpacing = ((uint)(6)); this.table3.ColumnSpacing = ((uint)(6)); // Container child table3.Gtk.Table+TableChild this.altitude1 = new Gtk.SpinButton(0.01, 10, 0.1); this.altitude1.CanFocus = true; this.altitude1.Name = "altitude1"; this.altitude1.Adjustment.PageIncrement = 1; this.altitude1.ClimbRate = 1; this.altitude1.Digits = ((uint)(2)); this.altitude1.Numeric = true; this.altitude1.Value = 0.2; this.table3.Add(this.altitude1); Gtk.Table.TableChild w1 = ((Gtk.Table.TableChild)(this.table3[this.altitude1])); w1.TopAttach = ((uint)(3)); w1.BottomAttach = ((uint)(4)); w1.LeftAttach = ((uint)(1)); w1.RightAttach = ((uint)(2)); w1.XOptions = ((Gtk.AttachOptions)(4)); w1.YOptions = ((Gtk.AttachOptions)(4)); // Container child table3.Gtk.Table+TableChild this.attractors = new Gtk.SpinButton(1, 23, 1); this.attractors.CanFocus = true; this.attractors.Name = "attractors"; this.attractors.Adjustment.PageIncrement = 5; this.attractors.ClimbRate = 1; this.attractors.Numeric = true; this.attractors.Value = 5; this.table3.Add(this.attractors); Gtk.Table.TableChild w2 = ((Gtk.Table.TableChild)(this.table3[this.attractors])); w2.LeftAttach = ((uint)(1)); w2.RightAttach = ((uint)(2)); w2.XOptions = ((Gtk.AttachOptions)(4)); w2.YOptions = ((Gtk.AttachOptions)(4)); // Container child table3.Gtk.Table+TableChild this.charge = new Gtk.SpinButton(0, 10, 0.1); this.charge.CanFocus = true; this.charge.Name = "charge"; this.charge.Adjustment.PageIncrement = 1; this.charge.ClimbRate = 1; this.charge.Digits = ((uint)(2)); this.charge.Numeric = true; this.charge.Value = 1; this.table3.Add(this.charge); Gtk.Table.TableChild w3 = ((Gtk.Table.TableChild)(this.table3[this.charge])); w3.TopAttach = ((uint)(1)); w3.BottomAttach = ((uint)(2)); w3.LeftAttach = ((uint)(1)); w3.RightAttach = ((uint)(2)); w3.XOptions = ((Gtk.AttachOptions)(4)); w3.YOptions = ((Gtk.AttachOptions)(4)); // Container child table3.Gtk.Table+TableChild this.drag = new Gtk.SpinButton(0, 10, 0.1); this.drag.CanFocus = true; this.drag.Name = "drag"; this.drag.Adjustment.PageIncrement = 1; this.drag.ClimbRate = 1; this.drag.Digits = ((uint)(2)); this.drag.Numeric = true; this.drag.Value = 0.5; this.table3.Add(this.drag); Gtk.Table.TableChild w4 = ((Gtk.Table.TableChild)(this.table3[this.drag])); w4.TopAttach = ((uint)(4)); w4.BottomAttach = ((uint)(5)); w4.LeftAttach = ((uint)(1)); w4.RightAttach = ((uint)(2)); w4.XOptions = ((Gtk.AttachOptions)(4)); w4.YOptions = ((Gtk.AttachOptions)(4)); // Container child table3.Gtk.Table+TableChild this.label10 = new Gtk.Label(); this.label10.Name = "label10"; this.label10.Xalign = 0F; this.label10.LabelProp = Mono.Unix.Catalog.GetString("Mass"); this.table3.Add(this.label10); Gtk.Table.TableChild w5 = ((Gtk.Table.TableChild)(this.table3[this.label10])); w5.TopAttach = ((uint)(2)); w5.BottomAttach = ((uint)(3)); w5.XOptions = ((Gtk.AttachOptions)(4)); w5.YOptions = ((Gtk.AttachOptions)(4)); // Container child table3.Gtk.Table+TableChild this.label11 = new Gtk.Label(); this.label11.Name = "label11"; this.label11.Xalign = 0F; this.label11.LabelProp = Mono.Unix.Catalog.GetString("Altitude"); this.table3.Add(this.label11); Gtk.Table.TableChild w6 = ((Gtk.Table.TableChild)(this.table3[this.label11])); w6.TopAttach = ((uint)(3)); w6.BottomAttach = ((uint)(4)); w6.XOptions = ((Gtk.AttachOptions)(4)); w6.YOptions = ((Gtk.AttachOptions)(4)); // Container child table3.Gtk.Table+TableChild this.label12 = new Gtk.Label(); this.label12.Name = "label12"; this.label12.Xalign = 0F; this.label12.LabelProp = Mono.Unix.Catalog.GetString("Drag"); this.table3.Add(this.label12); Gtk.Table.TableChild w7 = ((Gtk.Table.TableChild)(this.table3[this.label12])); w7.TopAttach = ((uint)(4)); w7.BottomAttach = ((uint)(5)); w7.XOptions = ((Gtk.AttachOptions)(4)); w7.YOptions = ((Gtk.AttachOptions)(4)); // Container child table3.Gtk.Table+TableChild this.label7 = new Gtk.Label(); this.label7.Name = "label7"; this.label7.Xalign = 0F; this.label7.LabelProp = Mono.Unix.Catalog.GetString("Attractors"); this.table3.Add(this.label7); Gtk.Table.TableChild w8 = ((Gtk.Table.TableChild)(this.table3[this.label7])); w8.XOptions = ((Gtk.AttachOptions)(4)); w8.YOptions = ((Gtk.AttachOptions)(4)); // Container child table3.Gtk.Table+TableChild this.label8 = new Gtk.Label(); this.label8.Name = "label8"; this.label8.Xalign = 0F; this.label8.LabelProp = Mono.Unix.Catalog.GetString("Step"); this.table3.Add(this.label8); Gtk.Table.TableChild w9 = ((Gtk.Table.TableChild)(this.table3[this.label8])); w9.TopAttach = ((uint)(5)); w9.BottomAttach = ((uint)(6)); w9.XOptions = ((Gtk.AttachOptions)(4)); w9.YOptions = ((Gtk.AttachOptions)(4)); // Container child table3.Gtk.Table+TableChild this.label9 = new Gtk.Label(); this.label9.Name = "label9"; this.label9.Xalign = 0F; this.label9.LabelProp = Mono.Unix.Catalog.GetString("Charge"); this.table3.Add(this.label9); Gtk.Table.TableChild w10 = ((Gtk.Table.TableChild)(this.table3[this.label9])); w10.TopAttach = ((uint)(1)); w10.BottomAttach = ((uint)(2)); w10.XOptions = ((Gtk.AttachOptions)(4)); w10.YOptions = ((Gtk.AttachOptions)(4)); // Container child table3.Gtk.Table+TableChild this.mass = new Gtk.SpinButton(0.01, 10, 0.1); this.mass.CanFocus = true; this.mass.Name = "mass"; this.mass.Adjustment.PageIncrement = 1; this.mass.ClimbRate = 1; this.mass.Digits = ((uint)(2)); this.mass.Numeric = true; this.mass.Value = 2; this.table3.Add(this.mass); Gtk.Table.TableChild w11 = ((Gtk.Table.TableChild)(this.table3[this.mass])); w11.TopAttach = ((uint)(2)); w11.BottomAttach = ((uint)(3)); w11.LeftAttach = ((uint)(1)); w11.RightAttach = ((uint)(2)); w11.XOptions = ((Gtk.AttachOptions)(4)); w11.YOptions = ((Gtk.AttachOptions)(4)); // Container child table3.Gtk.Table+TableChild this.step = new Gtk.SpinButton(0.01, 10, 0.01); this.step.CanFocus = true; this.step.Name = "step"; this.step.Adjustment.PageIncrement = 0.1; this.step.ClimbRate = 1; this.step.Digits = ((uint)(2)); this.step.Numeric = true; this.step.Value = 0.1; this.table3.Add(this.step); Gtk.Table.TableChild w12 = ((Gtk.Table.TableChild)(this.table3[this.step])); w12.TopAttach = ((uint)(5)); w12.BottomAttach = ((uint)(6)); w12.LeftAttach = ((uint)(1)); w12.RightAttach = ((uint)(2)); w12.XOptions = ((Gtk.AttachOptions)(4)); w12.YOptions = ((Gtk.AttachOptions)(4)); this.GtkAlignment.Add(this.table3); this.frame2.Add(this.GtkAlignment); this.GtkLabel1 = new Gtk.Label(); this.GtkLabel1.Name = "GtkLabel1"; this.GtkLabel1.LabelProp = Mono.Unix.Catalog.GetString("<b>Parameters</b>"); this.GtkLabel1.UseMarkup = true; this.frame2.LabelWidget = this.GtkLabel1; this.vbox7.Add(this.frame2); Gtk.Box.BoxChild w15 = ((Gtk.Box.BoxChild)(this.vbox7[this.frame2])); w15.Position = 0; w15.Expand = false; w15.Fill = false; w15.Padding = ((uint)(5)); // Container child vbox7.Gtk.Box+BoxChild this.hbuttonbox2 = new Gtk.HButtonBox(); this.hbuttonbox2.Name = "hbuttonbox2"; this.vbox7.Add(this.hbuttonbox2); Gtk.Box.BoxChild w16 = ((Gtk.Box.BoxChild)(this.vbox7[this.hbuttonbox2])); w16.Position = 1; w16.Expand = false; w16.Fill = false; // Container child vbox7.Gtk.Box+BoxChild this.hbox3 = new Gtk.HBox(); this.hbox3.Name = "hbox3"; this.hbox3.Homogeneous = true; this.hbox3.Spacing = 6; // Container child hbox3.Gtk.Box+BoxChild this.stop = new Gtk.Button(); this.stop.CanFocus = true; this.stop.Name = "stop"; this.stop.UseUnderline = true; // Container child stop.Gtk.Container+ContainerChild Gtk.Alignment w17 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w18 = new Gtk.HBox(); w18.Spacing = 2; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w19 = new Gtk.Image(); w19.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-stop", Gtk.IconSize.Menu, 16); w18.Add(w19); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w21 = new Gtk.Label(); w21.LabelProp = Mono.Unix.Catalog.GetString("Stop"); w21.UseUnderline = true; w18.Add(w21); w17.Add(w18); this.stop.Add(w17); this.hbox3.Add(this.stop); Gtk.Box.BoxChild w25 = ((Gtk.Box.BoxChild)(this.hbox3[this.stop])); w25.Position = 0; // Container child hbox3.Gtk.Box+BoxChild this.clear1 = new Gtk.Button(); this.clear1.CanFocus = true; this.clear1.Name = "clear1"; this.clear1.UseUnderline = true; // Container child clear1.Gtk.Container+ContainerChild Gtk.Alignment w26 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w27 = new Gtk.HBox(); w27.Spacing = 2; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w28 = new Gtk.Image(); w28.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-clear", Gtk.IconSize.Menu, 16); w27.Add(w28); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w30 = new Gtk.Label(); w30.LabelProp = Mono.Unix.Catalog.GetString("Clear"); w30.UseUnderline = true; w27.Add(w30); w26.Add(w27); this.clear1.Add(w26); this.hbox3.Add(this.clear1); Gtk.Box.BoxChild w34 = ((Gtk.Box.BoxChild)(this.hbox3[this.clear1])); w34.Position = 1; this.vbox7.Add(this.hbox3); Gtk.Box.BoxChild w35 = ((Gtk.Box.BoxChild)(this.vbox7[this.hbox3])); w35.Position = 2; w35.Expand = false; w35.Fill = false; // Container child vbox7.Gtk.Box+BoxChild this.hbox2 = new Gtk.HBox(); this.hbox2.Name = "hbox2"; this.hbox2.Spacing = 6; // Container child hbox2.Gtk.Box+BoxChild this.simulateAll = new Gtk.Button(); this.simulateAll.CanFocus = true; this.simulateAll.Name = "simulateAll"; this.simulateAll.UseUnderline = true; // Container child simulateAll.Gtk.Container+ContainerChild Gtk.Alignment w36 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w37 = new Gtk.HBox(); w37.Spacing = 2; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w38 = new Gtk.Image(); w38.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-execute", Gtk.IconSize.Menu, 16); w37.Add(w38); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w40 = new Gtk.Label(); w40.LabelProp = Mono.Unix.Catalog.GetString("Simulate All"); w40.UseUnderline = true; w37.Add(w40); w36.Add(w37); this.simulateAll.Add(w36); this.hbox2.Add(this.simulateAll); Gtk.Box.BoxChild w44 = ((Gtk.Box.BoxChild)(this.hbox2[this.simulateAll])); w44.Position = 0; w44.Expand = false; w44.Fill = false; // Container child hbox2.Gtk.Box+BoxChild this.progressbar2 = new Gtk.ProgressBar(); this.progressbar2.WidthRequest = 30; this.progressbar2.Name = "progressbar2"; this.progressbar2.Text = ""; this.hbox2.Add(this.progressbar2); Gtk.Box.BoxChild w45 = ((Gtk.Box.BoxChild)(this.hbox2[this.progressbar2])); w45.Position = 1; this.vbox7.Add(this.hbox2); Gtk.Box.BoxChild w46 = ((Gtk.Box.BoxChild)(this.vbox7[this.hbox2])); w46.Position = 3; w46.Expand = false; w46.Fill = false; this.hbox5.Add(this.vbox7); Gtk.Box.BoxChild w47 = ((Gtk.Box.BoxChild)(this.hbox5[this.vbox7])); w47.Position = 0; w47.Expand = false; w47.Fill = false; // Container child hbox5.Gtk.Box+BoxChild this.eventBox = new Gtk.EventBox(); this.eventBox.Name = "eventBox"; // Container child eventBox.Gtk.Container+ContainerChild this.drawingArea = new Gtk.DrawingArea(); this.drawingArea.WidthRequest = 300; this.drawingArea.HeightRequest = 300; this.drawingArea.Name = "drawingArea"; this.eventBox.Add(this.drawingArea); this.hbox5.Add(this.eventBox); Gtk.Box.BoxChild w49 = ((Gtk.Box.BoxChild)(this.hbox5[this.eventBox])); w49.Position = 1; this.Add(this.hbox5); if ((this.Child != null)) { this.Child.ShowAll(); } this.DefaultWidth = 456; this.DefaultHeight = 308; this.Show(); this.DeleteEvent += new Gtk.DeleteEventHandler(this.OnDeleteEvent); this.step.ValueChanged += new System.EventHandler(this.OnParameterValueChanged); this.mass.ValueChanged += new System.EventHandler(this.OnParameterValueChanged); this.drag.ValueChanged += new System.EventHandler(this.OnParameterValueChanged); this.charge.ValueChanged += new System.EventHandler(this.OnParameterValueChanged); this.attractors.ValueChanged += new System.EventHandler(this.OnAttractorsValueChanged); this.altitude1.ValueChanged += new System.EventHandler(this.OnParameterValueChanged); this.stop.Clicked += new System.EventHandler(this.OnStopClicked); this.clear1.Clicked += new System.EventHandler(this.OnClearClicked); this.eventBox.ButtonReleaseEvent += new Gtk.ButtonReleaseEventHandler(this.OnEventBoxButtonReleaseEvent); this.drawingArea.ExposeEvent += new Gtk.ExposeEventHandler(this.OnDrawingAreaExposeEvent); this.drawingArea.ConfigureEvent += new Gtk.ConfigureEventHandler(this.OnDrawingAreaConfigureEvent); }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget SimpleDownloader.TestDownloadWindow this.UIManager = new Gtk.UIManager(); Gtk.ActionGroup w1 = new Gtk.ActionGroup("Default"); this.FileAction = new Gtk.Action("FileAction", Mono.Unix.Catalog.GetString("File"), null, null); this.FileAction.ShortLabel = Mono.Unix.Catalog.GetString("File"); w1.Add(this.FileAction, null); this.quitAction = new Gtk.Action("quitAction", Mono.Unix.Catalog.GetString("Quit"), null, "gtk-quit"); this.quitAction.ShortLabel = Mono.Unix.Catalog.GetString("Quit"); w1.Add(this.quitAction, null); this.UIManager.InsertActionGroup(w1, 0); this.AddAccelGroup(this.UIManager.AccelGroup); this.Name = "SimpleDownloader.TestDownloadWindow"; this.Title = Mono.Unix.Catalog.GetString("TestDownloadWindow"); this.WindowPosition = ((Gtk.WindowPosition)(4)); // Container child SimpleDownloader.TestDownloadWindow.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='FileAction' action='FileAction'><menuitem name='quitAction' action='quitAction'/></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.hpaned1 = new Gtk.HPaned(); this.hpaned1.CanFocus = true; this.hpaned1.Name = "hpaned1"; this.hpaned1.Position = 141; this.hpaned1.BorderWidth = ((uint)(5)); // Container child hpaned1.Gtk.Paned+PanedChild this.vbox2 = new Gtk.VBox(); this.vbox2.Name = "vbox2"; this.vbox2.Spacing = 6; // Container child vbox2.Gtk.Box+BoxChild this.expander1 = new Gtk.Expander(null); this.expander1.CanFocus = true; this.expander1.Name = "expander1"; this.expander1.Expanded = true; // Container child expander1.Gtk.Container+ContainerChild this.vbuttonbox2 = new Gtk.VButtonBox(); this.vbuttonbox2.Name = "vbuttonbox2"; this.vbuttonbox2.Homogeneous = true; this.vbuttonbox2.Spacing = 5; this.vbuttonbox2.BorderWidth = ((uint)(5)); // Container child vbuttonbox2.Gtk.ButtonBox+ButtonBoxChild 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-add"; this.vbuttonbox2.Add(this.button1); Gtk.ButtonBox.ButtonBoxChild w3 = ((Gtk.ButtonBox.ButtonBoxChild)(this.vbuttonbox2[this.button1])); w3.Expand = false; w3.Fill = false; // Container child vbuttonbox2.Gtk.ButtonBox+ButtonBoxChild this.button2 = new Gtk.Button(); this.button2.CanFocus = true; this.button2.Name = "button2"; this.button2.UseStock = true; this.button2.UseUnderline = true; this.button2.Label = "gtk-delete"; this.vbuttonbox2.Add(this.button2); Gtk.ButtonBox.ButtonBoxChild w4 = ((Gtk.ButtonBox.ButtonBoxChild)(this.vbuttonbox2[this.button2])); w4.Position = 1; w4.Expand = false; w4.Fill = false; this.expander1.Add(this.vbuttonbox2); this.GtkLabel3 = new Gtk.Label(); this.GtkLabel3.Name = "GtkLabel3"; this.GtkLabel3.LabelProp = Mono.Unix.Catalog.GetString("Download"); this.GtkLabel3.UseUnderline = true; this.expander1.LabelWidget = this.GtkLabel3; this.vbox2.Add(this.expander1); Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(this.vbox2[this.expander1])); w6.Position = 0; w6.Expand = false; // 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.label3 = new Gtk.Label(); this.label3.Name = "label3"; this.label3.Xalign = 1F; this.label3.LabelProp = Mono.Unix.Catalog.GetString("Links:"); this.table1.Add(this.label3); Gtk.Table.TableChild w7 = ((Gtk.Table.TableChild)(this.table1[this.label3])); w7.XOptions = ((Gtk.AttachOptions)(4)); w7.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.label4 = new Gtk.Label(); this.label4.Name = "label4"; this.label4.Xalign = 1F; this.label4.LabelProp = Mono.Unix.Catalog.GetString("In progress:"); this.table1.Add(this.label4); Gtk.Table.TableChild w8 = ((Gtk.Table.TableChild)(this.table1[this.label4])); w8.TopAttach = ((uint)(1)); w8.BottomAttach = ((uint)(2)); w8.XOptions = ((Gtk.AttachOptions)(4)); w8.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.label5 = new Gtk.Label(); this.label5.Name = "label5"; this.label5.LabelProp = Mono.Unix.Catalog.GetString("27"); this.table1.Add(this.label5); Gtk.Table.TableChild w9 = ((Gtk.Table.TableChild)(this.table1[this.label5])); 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.label6 = new Gtk.Label(); this.label6.Name = "label6"; this.label6.LabelProp = Mono.Unix.Catalog.GetString("13"); this.table1.Add(this.label6); Gtk.Table.TableChild w10 = ((Gtk.Table.TableChild)(this.table1[this.label6])); 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.label7 = new Gtk.Label(); this.label7.Name = "label7"; this.label7.Xalign = 1F; this.label7.LabelProp = Mono.Unix.Catalog.GetString("Done:"); this.table1.Add(this.label7); Gtk.Table.TableChild w11 = ((Gtk.Table.TableChild)(this.table1[this.label7])); w11.TopAttach = ((uint)(2)); w11.BottomAttach = ((uint)(3)); w11.XOptions = ((Gtk.AttachOptions)(4)); w11.YOptions = ((Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.label8 = new Gtk.Label(); this.label8.Name = "label8"; this.label8.LabelProp = Mono.Unix.Catalog.GetString("14"); this.table1.Add(this.label8); Gtk.Table.TableChild w12 = ((Gtk.Table.TableChild)(this.table1[this.label8])); w12.TopAttach = ((uint)(2)); w12.BottomAttach = ((uint)(3)); w12.LeftAttach = ((uint)(1)); w12.RightAttach = ((uint)(2)); w12.XOptions = ((Gtk.AttachOptions)(4)); w12.YOptions = ((Gtk.AttachOptions)(4)); this.vbox2.Add(this.table1); Gtk.Box.BoxChild w13 = ((Gtk.Box.BoxChild)(this.vbox2[this.table1])); w13.Position = 1; // Container child vbox2.Gtk.Box+BoxChild this.vbox3 = new Gtk.VBox(); this.vbox3.Name = "vbox3"; this.vbox3.Spacing = 6; // Container child vbox3.Gtk.Box+BoxChild this.label1 = new Gtk.Label(); this.label1.Name = "label1"; this.label1.Xalign = 0F; this.label1.LabelProp = Mono.Unix.Catalog.GetString("Current:"); this.vbox3.Add(this.label1); Gtk.Box.BoxChild w14 = ((Gtk.Box.BoxChild)(this.vbox3[this.label1])); w14.Position = 0; w14.Expand = false; w14.Fill = false; // Container child vbox3.Gtk.Box+BoxChild this.progressCurrent = new Gtk.ProgressBar(); this.progressCurrent.Name = "progressCurrent"; this.progressCurrent.Text = ""; this.vbox3.Add(this.progressCurrent); Gtk.Box.BoxChild w15 = ((Gtk.Box.BoxChild)(this.vbox3[this.progressCurrent])); w15.Position = 1; w15.Expand = false; w15.Fill = false; // Container child vbox3.Gtk.Box+BoxChild this.label2 = new Gtk.Label(); this.label2.Name = "label2"; this.label2.Xalign = 0F; this.label2.LabelProp = Mono.Unix.Catalog.GetString("Overall:"); this.vbox3.Add(this.label2); Gtk.Box.BoxChild w16 = ((Gtk.Box.BoxChild)(this.vbox3[this.label2])); w16.Position = 2; w16.Expand = false; w16.Fill = false; // Container child vbox3.Gtk.Box+BoxChild this.progressbar2 = new Gtk.ProgressBar(); this.progressbar2.Name = "progressbar2"; this.progressbar2.Text = ""; this.vbox3.Add(this.progressbar2); Gtk.Box.BoxChild w17 = ((Gtk.Box.BoxChild)(this.vbox3[this.progressbar2])); w17.Position = 3; w17.Expand = false; w17.Fill = false; this.vbox2.Add(this.vbox3); Gtk.Box.BoxChild w18 = ((Gtk.Box.BoxChild)(this.vbox2[this.vbox3])); w18.Position = 2; w18.Expand = false; w18.Fill = false; this.hpaned1.Add(this.vbox2); Gtk.Paned.PanedChild w19 = ((Gtk.Paned.PanedChild)(this.hpaned1[this.vbox2])); w19.Resize = false; // Container child hpaned1.Gtk.Paned+PanedChild 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 this.downloadTree = new Gtk.TreeView(); this.downloadTree.CanFocus = true; this.downloadTree.Name = "downloadTree"; this.scrolledwindow1.Add(this.downloadTree); this.hpaned1.Add(this.scrolledwindow1); this.vbox1.Add(this.hpaned1); Gtk.Box.BoxChild w22 = ((Gtk.Box.BoxChild)(this.vbox1[this.hpaned1])); w22.Position = 1; this.Add(this.vbox1); if ((this.Child != null)) { this.Child.ShowAll(); } this.DefaultWidth = 609; this.DefaultHeight = 413; this.Show(); this.quitAction.Activated += new System.EventHandler(this.OnQuitActionActivated); this.button1.Clicked += new System.EventHandler(this.OnButton1Clicked); this.downloadTree.RowActivated += new Gtk.RowActivatedHandler(this.OnDownloadTreeRowActivated); }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget omvviewerlight.LoginControl Stetic.BinContainer.Attach(this); this.Name = "omvviewerlight.LoginControl"; // Container child omvviewerlight.LoginControl.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.vbox2 = new Gtk.VBox(); this.vbox2.Name = "vbox2"; this.vbox2.Homogeneous = true; this.vbox2.Spacing = 6; // Container child vbox2.Gtk.Box+BoxChild this.label1 = new Gtk.Label(); this.label1.Name = "label1"; this.label1.LabelProp = Mono.Unix.Catalog.GetString("First name"); this.vbox2.Add(this.label1); Gtk.Box.BoxChild w1 = ((Gtk.Box.BoxChild)(this.vbox2[this.label1])); w1.Position = 0; w1.Expand = false; w1.Fill = false; // Container child vbox2.Gtk.Box+BoxChild this.label2 = new Gtk.Label(); this.label2.Name = "label2"; this.label2.LabelProp = Mono.Unix.Catalog.GetString("Last Name"); this.vbox2.Add(this.label2); Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.vbox2[this.label2])); w2.Position = 1; w2.Expand = false; w2.Fill = false; // Container child vbox2.Gtk.Box+BoxChild this.label3 = new Gtk.Label(); this.label3.Name = "label3"; this.label3.LabelProp = Mono.Unix.Catalog.GetString("Password"); this.vbox2.Add(this.label3); Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox2[this.label3])); w3.Position = 2; w3.Expand = false; w3.Fill = false; this.hbox1.Add(this.vbox2); Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.hbox1[this.vbox2])); w4.Position = 0; w4.Expand = false; w4.Fill = false; // Container child hbox1.Gtk.Box+BoxChild this.vbox3 = new Gtk.VBox(); this.vbox3.Name = "vbox3"; this.vbox3.Spacing = 6; // Container child vbox3.Gtk.Box+BoxChild this.entry_first = new Gtk.Entry(); this.entry_first.CanFocus = true; this.entry_first.Name = "entry_first"; this.entry_first.IsEditable = true; this.entry_first.InvisibleChar = '●'; this.vbox3.Add(this.entry_first); Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.vbox3[this.entry_first])); w5.Position = 0; w5.Expand = false; w5.Fill = false; // Container child vbox3.Gtk.Box+BoxChild this.entry_last = new Gtk.Entry(); this.entry_last.CanFocus = true; this.entry_last.Name = "entry_last"; this.entry_last.IsEditable = true; this.entry_last.InvisibleChar = '●'; this.vbox3.Add(this.entry_last); Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(this.vbox3[this.entry_last])); w6.Position = 1; w6.Expand = false; w6.Fill = false; // Container child vbox3.Gtk.Box+BoxChild this.entry_pass = new Gtk.Entry(); this.entry_pass.CanFocus = true; this.entry_pass.Name = "entry_pass"; this.entry_pass.IsEditable = true; this.entry_pass.InvisibleChar = '●'; this.vbox3.Add(this.entry_pass); Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(this.vbox3[this.entry_pass])); w7.Position = 2; w7.Expand = false; w7.Fill = false; this.hbox1.Add(this.vbox3); Gtk.Box.BoxChild w8 = ((Gtk.Box.BoxChild)(this.hbox1[this.vbox3])); w8.Position = 1; // Container child hbox1.Gtk.Box+BoxChild this.button_login = new Gtk.Button(); this.button_login.WidthRequest = 100; this.button_login.HeightRequest = 50; this.button_login.CanFocus = true; this.button_login.Name = "button_login"; this.button_login.UseUnderline = true; // Container child button_login.Gtk.Container+ContainerChild Gtk.Alignment w9 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w10 = new Gtk.HBox(); w10.Spacing = 2; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w11 = new Gtk.Image(); w11.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-connect", Gtk.IconSize.Menu, 16); w10.Add(w11); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w13 = new Gtk.Label(); w13.LabelProp = Mono.Unix.Catalog.GetString("Login"); w13.UseUnderline = true; w10.Add(w13); w9.Add(w10); this.button_login.Add(w9); this.hbox1.Add(this.button_login); Gtk.Box.BoxChild w17 = ((Gtk.Box.BoxChild)(this.hbox1[this.button_login])); w17.Position = 2; w17.Expand = false; w17.Fill = false; this.vbox1.Add(this.hbox1); Gtk.Box.BoxChild w18 = ((Gtk.Box.BoxChild)(this.vbox1[this.hbox1])); w18.Position = 0; w18.Expand = false; w18.Fill = false; // Container child vbox1.Gtk.Box+BoxChild this.vbox5 = new Gtk.VBox(); this.vbox5.Name = "vbox5"; this.vbox5.Spacing = 6; // Container child vbox5.Gtk.Box+BoxChild this.hbox2 = new Gtk.HBox(); this.hbox2.Name = "hbox2"; this.hbox2.Spacing = 6; // Container child hbox2.Gtk.Box+BoxChild this.checkbutton_rememberpass = new Gtk.CheckButton(); this.checkbutton_rememberpass.CanFocus = true; this.checkbutton_rememberpass.Name = "checkbutton_rememberpass"; this.checkbutton_rememberpass.Label = Mono.Unix.Catalog.GetString("Remember password"); this.checkbutton_rememberpass.DrawIndicator = true; this.checkbutton_rememberpass.UseUnderline = true; this.hbox2.Add(this.checkbutton_rememberpass); Gtk.Box.BoxChild w19 = ((Gtk.Box.BoxChild)(this.hbox2[this.checkbutton_rememberpass])); w19.Position = 0; this.vbox5.Add(this.hbox2); Gtk.Box.BoxChild w20 = ((Gtk.Box.BoxChild)(this.vbox5[this.hbox2])); w20.Position = 0; w20.Expand = false; w20.Fill = false; // Container child vbox5.Gtk.Box+BoxChild this.hbox5 = new Gtk.HBox(); this.hbox5.Name = "hbox5"; this.hbox5.Spacing = 6; // Container child hbox5.Gtk.Box+BoxChild this.label6 = new Gtk.Label(); this.label6.Name = "label6"; this.label6.LabelProp = Mono.Unix.Catalog.GetString("Login to"); this.hbox5.Add(this.label6); Gtk.Box.BoxChild w21 = ((Gtk.Box.BoxChild)(this.hbox5[this.label6])); w21.Position = 0; w21.Expand = false; w21.Fill = false; // Container child hbox5.Gtk.Box+BoxChild this.hbox4 = new Gtk.HBox(); this.hbox4.Name = "hbox4"; this.hbox4.Spacing = 5; // Container child hbox4.Gtk.Box+BoxChild this.radiobutton1 = new Gtk.RadioButton(Mono.Unix.Catalog.GetString("Home")); 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.hbox4.Add(this.radiobutton1); Gtk.Box.BoxChild w22 = ((Gtk.Box.BoxChild)(this.hbox4[this.radiobutton1])); w22.Position = 0; // Container child hbox4.Gtk.Box+BoxChild this.radiobutton2 = new Gtk.RadioButton(Mono.Unix.Catalog.GetString("Last")); this.radiobutton2.CanFocus = true; this.radiobutton2.Name = "radiobutton2"; this.radiobutton2.DrawIndicator = true; this.radiobutton2.UseUnderline = true; this.radiobutton2.Group = this.radiobutton1.Group; this.hbox4.Add(this.radiobutton2); Gtk.Box.BoxChild w23 = ((Gtk.Box.BoxChild)(this.hbox4[this.radiobutton2])); w23.Position = 1; // Container child hbox4.Gtk.Box+BoxChild this.radiobutton3 = new Gtk.RadioButton(Mono.Unix.Catalog.GetString("Location")); this.radiobutton3.CanFocus = true; this.radiobutton3.Name = "radiobutton3"; this.radiobutton3.DrawIndicator = true; this.radiobutton3.UseUnderline = true; this.radiobutton3.Group = this.radiobutton1.Group; this.hbox4.Add(this.radiobutton3); Gtk.Box.BoxChild w24 = ((Gtk.Box.BoxChild)(this.hbox4[this.radiobutton3])); w24.Position = 2; // Container child hbox4.Gtk.Box+BoxChild this.entry_location = new Gtk.Entry(); this.entry_location.CanFocus = true; this.entry_location.Name = "entry_location"; this.entry_location.IsEditable = true; this.entry_location.InvisibleChar = '●'; this.hbox4.Add(this.entry_location); Gtk.Box.BoxChild w25 = ((Gtk.Box.BoxChild)(this.hbox4[this.entry_location])); w25.Position = 3; this.hbox5.Add(this.hbox4); Gtk.Box.BoxChild w26 = ((Gtk.Box.BoxChild)(this.hbox5[this.hbox4])); w26.Position = 1; w26.Expand = false; w26.Fill = false; // Container child hbox5.Gtk.Box+BoxChild this.progressbar2 = new Gtk.ProgressBar(); this.progressbar2.Name = "progressbar2"; this.hbox5.Add(this.progressbar2); Gtk.Box.BoxChild w27 = ((Gtk.Box.BoxChild)(this.hbox5[this.progressbar2])); w27.PackType = ((Gtk.PackType)(1)); w27.Position = 2; this.vbox5.Add(this.hbox5); Gtk.Box.BoxChild w28 = ((Gtk.Box.BoxChild)(this.vbox5[this.hbox5])); w28.Position = 1; w28.Expand = false; w28.Fill = false; // Container child vbox5.Gtk.Box+BoxChild this.hbox6 = new Gtk.HBox(); this.hbox6.Name = "hbox6"; this.hbox6.Spacing = 6; // Container child hbox6.Gtk.Box+BoxChild this.label4 = new Gtk.Label(); this.label4.Name = "label4"; this.label4.LabelProp = Mono.Unix.Catalog.GetString("Connect to grid "); this.hbox6.Add(this.label4); Gtk.Box.BoxChild w29 = ((Gtk.Box.BoxChild)(this.hbox6[this.label4])); w29.Position = 0; w29.Expand = false; w29.Fill = false; // Container child hbox6.Gtk.Box+BoxChild this.combobox_grid = Gtk.ComboBox.NewText(); this.combobox_grid.WidthRequest = 140; this.combobox_grid.Name = "combobox_grid"; this.hbox6.Add(this.combobox_grid); Gtk.Box.BoxChild w30 = ((Gtk.Box.BoxChild)(this.hbox6[this.combobox_grid])); w30.Position = 1; w30.Expand = false; w30.Fill = false; // Container child hbox6.Gtk.Box+BoxChild this.label5 = new Gtk.Label(); this.label5.Name = "label5"; this.label5.LabelProp = Mono.Unix.Catalog.GetString("URI"); this.hbox6.Add(this.label5); Gtk.Box.BoxChild w31 = ((Gtk.Box.BoxChild)(this.hbox6[this.label5])); w31.Position = 2; w31.Expand = false; w31.Fill = false; // Container child hbox6.Gtk.Box+BoxChild this.entry_loginuri = new Gtk.Entry(); this.entry_loginuri.CanFocus = true; this.entry_loginuri.Name = "entry_loginuri"; this.entry_loginuri.IsEditable = true; this.entry_loginuri.InvisibleChar = '●'; this.hbox6.Add(this.entry_loginuri); Gtk.Box.BoxChild w32 = ((Gtk.Box.BoxChild)(this.hbox6[this.entry_loginuri])); w32.Position = 3; this.vbox5.Add(this.hbox6); Gtk.Box.BoxChild w33 = ((Gtk.Box.BoxChild)(this.vbox5[this.hbox6])); w33.Position = 2; w33.Expand = false; w33.Fill = false; // Container child vbox5.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.GtkAlignment1 = new Gtk.Alignment(0F, 0F, 1F, 1F); this.GtkAlignment1.Name = "GtkAlignment1"; this.GtkAlignment1.LeftPadding = ((uint)(12)); // Container child GtkAlignment1.Gtk.Container+ContainerChild this.textview_loginmsg = new Gtk.TextView(); this.textview_loginmsg.HeightRequest = 35; this.textview_loginmsg.CanFocus = true; this.textview_loginmsg.Name = "textview_loginmsg"; this.textview_loginmsg.Editable = false; this.textview_loginmsg.WrapMode = ((Gtk.WrapMode)(2)); this.GtkAlignment1.Add(this.textview_loginmsg); this.frame1.Add(this.GtkAlignment1); this.GtkLabel5 = new Gtk.Label(); this.GtkLabel5.Name = "GtkLabel5"; this.GtkLabel5.LabelProp = Mono.Unix.Catalog.GetString("<b>Login message</b>"); this.GtkLabel5.UseMarkup = true; this.frame1.LabelWidget = this.GtkLabel5; this.vbox5.Add(this.frame1); Gtk.Box.BoxChild w36 = ((Gtk.Box.BoxChild)(this.vbox5[this.frame1])); w36.Position = 3; // Container child vbox5.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.GtkAlignment2 = new Gtk.Alignment(0F, 0F, 1F, 1F); this.GtkAlignment2.Name = "GtkAlignment2"; this.GtkAlignment2.LeftPadding = ((uint)(12)); // Container child GtkAlignment2.Gtk.Container+ContainerChild this.GtkScrolledWindow1 = new Gtk.ScrolledWindow(); this.GtkScrolledWindow1.Name = "GtkScrolledWindow1"; this.GtkScrolledWindow1.ShadowType = ((Gtk.ShadowType)(1)); // Container child GtkScrolledWindow1.Gtk.Container+ContainerChild this.textview_log = new Gtk.TextView(); this.textview_log.CanFocus = true; this.textview_log.Name = "textview_log"; this.textview_log.Editable = false; this.textview_log.WrapMode = ((Gtk.WrapMode)(2)); this.GtkScrolledWindow1.Add(this.textview_log); this.GtkAlignment2.Add(this.GtkScrolledWindow1); this.frame2.Add(this.GtkAlignment2); this.GtkLabel6 = new Gtk.Label(); this.GtkLabel6.Name = "GtkLabel6"; this.GtkLabel6.LabelProp = Mono.Unix.Catalog.GetString("<b>Debug log</b>"); this.GtkLabel6.UseMarkup = true; this.frame2.LabelWidget = this.GtkLabel6; this.vbox5.Add(this.frame2); Gtk.Box.BoxChild w40 = ((Gtk.Box.BoxChild)(this.vbox5[this.frame2])); w40.Position = 4; this.vbox1.Add(this.vbox5); Gtk.Box.BoxChild w41 = ((Gtk.Box.BoxChild)(this.vbox1[this.vbox5])); w41.Position = 1; this.Add(this.vbox1); if ((this.Child != null)) { this.Child.ShowAll(); } this.Show(); this.button_login.Clicked += new System.EventHandler(this.OnButton1Clicked); this.checkbutton_rememberpass.Clicked += new System.EventHandler(this.OnCheckbuttonRememberpassClicked); this.combobox_grid.Changed += new System.EventHandler(this.OnComboboxGridChanged); }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget ocmgtk.CopyingProgress this.WidthRequest = 450; this.Name = "ocmgtk.CopyingProgress"; this.Title = Mono.Unix.Catalog.GetString("Copy Geocaches..."); 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.CopyingProgress.VBox Gtk.VBox w1 = this.VBox; w1.Name = "dialog1_VBox"; w1.Spacing = 6; w1.BorderWidth = ((uint)(2)); // Container child dialog1_VBox.Gtk.Box+BoxChild this.copyLabel = new Gtk.Label(); this.copyLabel.Name = "copyLabel"; this.copyLabel.Xalign = 0F; this.copyLabel.LabelProp = Mono.Unix.Catalog.GetString("<big><b>Copying Geocaches</b></big>"); this.copyLabel.UseMarkup = true; w1.Add(this.copyLabel); Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(w1[this.copyLabel])); w2.Position = 0; // 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.hbox2 = new Gtk.HBox(); this.hbox2.Name = "hbox2"; this.hbox2.Spacing = 6; // Container child hbox2.Gtk.Box+BoxChild this.TargetLabel = new Gtk.Label(); this.TargetLabel.Name = "TargetLabel"; this.TargetLabel.LabelProp = Mono.Unix.Catalog.GetString("<b>Target:</b>"); this.TargetLabel.UseMarkup = true; this.hbox2.Add(this.TargetLabel); Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.hbox2[this.TargetLabel])); w3.Position = 0; w3.Expand = false; w3.Fill = false; // Container child hbox2.Gtk.Box+BoxChild this.targetDBLabel = new Gtk.Label(); this.targetDBLabel.Name = "targetDBLabel"; this.targetDBLabel.LabelProp = "<target>"; this.hbox2.Add(this.targetDBLabel); Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.hbox2[this.targetDBLabel])); w4.Position = 1; w4.Expand = false; w4.Fill = false; this.vbox2.Add(this.hbox2); Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.vbox2[this.hbox2])); w5.Position = 0; w5.Expand = false; w5.Fill = false; // Container child vbox2.Gtk.Box+BoxChild this.progressBar = new Gtk.ProgressBar(); this.progressBar.Name = "progressBar"; this.progressBar.Text = Mono.Unix.Catalog.GetString("0%"); this.vbox2.Add(this.progressBar); Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(this.vbox2[this.progressBar])); w6.Position = 1; w6.Expand = false; w6.Fill = false; // Container child vbox2.Gtk.Box+BoxChild this.statusLabel = new Gtk.Label(); this.statusLabel.Name = "statusLabel"; this.statusLabel.Xalign = 0F; this.statusLabel.LabelProp = "<i>status</i>"; this.statusLabel.UseMarkup = true; this.vbox2.Add(this.statusLabel); Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(this.vbox2[this.statusLabel])); w7.Position = 2; w7.Expand = false; w7.Fill = false; w1.Add(this.vbox2); Gtk.Box.BoxChild w8 = ((Gtk.Box.BoxChild)(w1[this.vbox2])); w8.Position = 1; w8.Expand = false; w8.Fill = false; // Internal child ocmgtk.CopyingProgress.ActionArea Gtk.HButtonBox w9 = this.ActionArea; w9.Name = "dialog1_ActionArea"; w9.Spacing = 10; w9.BorderWidth = ((uint)(5)); w9.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 w10 = ((Gtk.ButtonBox.ButtonBoxChild)(w9[this.buttonCancel])); w10.Expand = false; w10.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-close"; this.AddActionWidget(this.buttonOk, -7); Gtk.ButtonBox.ButtonBoxChild w11 = ((Gtk.ButtonBox.ButtonBoxChild)(w9[this.buttonOk])); w11.Position = 1; w11.Expand = false; w11.Fill = false; if ((this.Child != null)) { this.Child.ShowAll(); } this.DefaultWidth = 462; this.DefaultHeight = 205; this.Show(); this.DeleteEvent += new Gtk.DeleteEventHandler(this.OnDeleteEvent); this.buttonCancel.Clicked += new System.EventHandler(this.OnCancelClick); this.buttonOk.Clicked += new System.EventHandler(this.OnButtonOkClicked); }
protected virtual void Build() { Stetic.Gui.Initialize(); // Widget MainWindow Gtk.UIManager w1 = new Gtk.UIManager(); Gtk.ActionGroup w2 = new Gtk.ActionGroup("Default"); this.Options = new Gtk.Action("Options", Mono.Unix.Catalog.GetString("Options"), null, "gtk-preferences"); this.Options.ShortLabel = Mono.Unix.Catalog.GetString("File"); w2.Add(this.Options, null); this.AddFolder = new Gtk.Action("AddFolder", Mono.Unix.Catalog.GetString("Add Folder"), null, "gtk-open"); this.AddFolder.ShortLabel = Mono.Unix.Catalog.GetString("Add Folder"); w2.Add(this.AddFolder, null); this.NewCollection = new Gtk.Action("NewCollection", Mono.Unix.Catalog.GetString("New Collection"), null, "gtk-new"); this.NewCollection.ShortLabel = Mono.Unix.Catalog.GetString("New Collection"); w2.Add(this.NewCollection, null); this.Preferences = new Gtk.Action("Preferences", Mono.Unix.Catalog.GetString("Preferences"), null, "gtk-preferences"); this.Preferences.ShortLabel = Mono.Unix.Catalog.GetString("Options"); w2.Add(this.Preferences, null); this.Exit1 = new Gtk.Action("Exit1", Mono.Unix.Catalog.GetString("Exit"), null, "gtk-quit"); this.Exit1.ShortLabel = Mono.Unix.Catalog.GetString("Exit"); w2.Add(this.Exit1, null); this.Update = new Gtk.Action("Update", Mono.Unix.Catalog.GetString("Update"), null, "gtk-dialog-warning"); this.Update.ShortLabel = Mono.Unix.Catalog.GetString("Update"); w2.Add(this.Update, null); this.Exit2 = new Gtk.ToggleAction("Exit2", Mono.Unix.Catalog.GetString("Exit"), null, "gtk-quit"); this.Exit2.ShortLabel = Mono.Unix.Catalog.GetString("Exit"); w2.Add(this.Exit2, null); this.AddFile = new Gtk.Action("AddFile", Mono.Unix.Catalog.GetString("Add File"), null, "gtk-add"); this.AddFile.ShortLabel = Mono.Unix.Catalog.GetString("Add File"); w2.Add(this.AddFile, null); this.About = new Gtk.Action("About", Mono.Unix.Catalog.GetString("About"), null, "gtk-about"); this.About.ShortLabel = Mono.Unix.Catalog.GetString("About"); w2.Add(this.About, null); this.About3 = new Gtk.Action("About3", Mono.Unix.Catalog.GetString("_About"), null, "gtk-about"); this.About3.ShortLabel = Mono.Unix.Catalog.GetString("_About"); w2.Add(this.About3, null); w1.InsertActionGroup(w2, 0); this.AddAccelGroup(w1.AccelGroup); this.WidthRequest = 360; this.Name = "MainWindow"; this.Title = Mono.Unix.Catalog.GetString("Mp3 Player"); this.Icon = Stetic.IconLoader.LoadIcon("stock_headphones", 16); this.WindowPosition = ((Gtk.WindowPosition)(4)); this.Resizable = false; this.AllowGrow = false; // Container child MainWindow.Gtk.Container+ContainerChild this.MainFixedWindow = new Gtk.Fixed(); this.MainFixedWindow.WidthRequest = 0; this.MainFixedWindow.HeightRequest = 640; this.MainFixedWindow.Name = "MainFixedWindow"; this.MainFixedWindow.HasWindow = false; // Container child MainFixedWindow.Gtk.Fixed+FixedChild this.bottomStatusBar = new Gtk.Statusbar(); this.bottomStatusBar.WidthRequest = 363; this.bottomStatusBar.HeightRequest = 17; this.bottomStatusBar.Name = "bottomStatusBar"; this.bottomStatusBar.Spacing = 6; this.MainFixedWindow.Add(this.bottomStatusBar); Gtk.Fixed.FixedChild w3 = ((Gtk.Fixed.FixedChild)(this.MainFixedWindow[this.bottomStatusBar])); w3.X = 1; w3.Y = 624; // Container child MainFixedWindow.Gtk.Fixed+FixedChild w1.AddUiFromString("<ui><menubar name='menubar'><menu action='Options'><menuitem action='NewCollection'/><menuitem action='AddFolder'/><menuitem action='AddFile'/><menuitem action='Preferences'/><menuitem action='Exit1'/></menu><menu action='About'><menuitem action='About3'/></menu></menubar></ui>"); this.menubar = ((Gtk.MenuBar)(w1.GetWidget("/menubar"))); this.menubar.WidthRequest = 370; this.menubar.HasDefault = true; this.menubar.CanFocus = true; this.menubar.Name = "menubar"; this.MainFixedWindow.Add(this.menubar); // Container child MainFixedWindow.Gtk.Fixed+FixedChild this.musicButtonBox = new Gtk.HBox(); this.musicButtonBox.Name = "musicButtonBox"; this.musicButtonBox.Spacing = 6; // Container child musicButtonBox.Gtk.Box+BoxChild this.playButton = new Gtk.Button(); this.playButton.CanFocus = true; this.playButton.Name = "playButton"; this.playButton.UseUnderline = true; // Container child playButton.Gtk.Container+ContainerChild Gtk.Alignment w5 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); w5.Name = "GtkAlignment"; // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w6 = new Gtk.HBox(); w6.Name = "GtkHBox"; w6.Spacing = 2; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w7 = new Gtk.Image(); w7.Name = "image35"; w7.Pixbuf = Stetic.IconLoader.LoadIcon("stock_media-play", 16); w6.Add(w7); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w9 = new Gtk.Label(); w9.Name = "GtkLabel"; w9.LabelProp = ""; w6.Add(w9); w5.Add(w6); this.playButton.Add(w5); this.musicButtonBox.Add(this.playButton); Gtk.Box.BoxChild w13 = ((Gtk.Box.BoxChild)(this.musicButtonBox[this.playButton])); w13.Position = 0; w13.Expand = false; w13.Fill = false; // Container child musicButtonBox.Gtk.Box+BoxChild this.stopButton = new Gtk.Button(); this.stopButton.CanFocus = true; this.stopButton.Name = "stopButton"; this.stopButton.UseUnderline = true; // Container child stopButton.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 = "image36"; w16.Pixbuf = Stetic.IconLoader.LoadIcon("stock_media-stop", 16); w15.Add(w16); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w18 = new Gtk.Label(); w18.Name = "GtkLabel"; w18.LabelProp = ""; w15.Add(w18); w14.Add(w15); this.stopButton.Add(w14); this.musicButtonBox.Add(this.stopButton); Gtk.Box.BoxChild w22 = ((Gtk.Box.BoxChild)(this.musicButtonBox[this.stopButton])); w22.Position = 1; w22.Expand = false; w22.Fill = false; // Container child musicButtonBox.Gtk.Box+BoxChild this.previousButton = new Gtk.Button(); this.previousButton.CanFocus = true; this.previousButton.Name = "previousButton"; this.previousButton.UseUnderline = true; // Container child previousButton.Gtk.Container+ContainerChild Gtk.Alignment w23 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); w23.Name = "GtkAlignment"; // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w24 = new Gtk.HBox(); w24.Name = "GtkHBox"; w24.Spacing = 2; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w25 = new Gtk.Image(); w25.Name = "image37"; w25.Pixbuf = Stetic.IconLoader.LoadIcon("stock_media-prev", 16); w24.Add(w25); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w27 = new Gtk.Label(); w27.Name = "GtkLabel"; w27.LabelProp = ""; w24.Add(w27); w23.Add(w24); this.previousButton.Add(w23); this.musicButtonBox.Add(this.previousButton); Gtk.Box.BoxChild w31 = ((Gtk.Box.BoxChild)(this.musicButtonBox[this.previousButton])); w31.Position = 2; w31.Expand = false; w31.Fill = false; // Container child musicButtonBox.Gtk.Box+BoxChild this.nextButton = new Gtk.Button(); this.nextButton.CanFocus = true; this.nextButton.Name = "nextButton"; this.nextButton.UseUnderline = true; // Container child nextButton.Gtk.Container+ContainerChild Gtk.Alignment w32 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); w32.Name = "GtkAlignment"; // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w33 = new Gtk.HBox(); w33.Name = "GtkHBox"; w33.Spacing = 2; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w34 = new Gtk.Image(); w34.Name = "image38"; w34.Pixbuf = Stetic.IconLoader.LoadIcon("stock_media-next", 16); w33.Add(w34); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w36 = new Gtk.Label(); w36.Name = "GtkLabel"; w36.LabelProp = ""; w33.Add(w36); w32.Add(w33); this.nextButton.Add(w32); this.musicButtonBox.Add(this.nextButton); Gtk.Box.BoxChild w40 = ((Gtk.Box.BoxChild)(this.musicButtonBox[this.nextButton])); w40.Position = 3; w40.Expand = false; w40.Fill = false; // Container child musicButtonBox.Gtk.Box+BoxChild this.rewindButton = new Gtk.Button(); this.rewindButton.CanFocus = true; this.rewindButton.Name = "rewindButton"; this.rewindButton.UseUnderline = true; // Container child rewindButton.Gtk.Container+ContainerChild Gtk.Alignment w41 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); w41.Name = "GtkAlignment"; // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w42 = new Gtk.HBox(); w42.Name = "GtkHBox"; w42.Spacing = 2; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w43 = new Gtk.Image(); w43.Name = "image39"; w43.Pixbuf = Stetic.IconLoader.LoadIcon("stock_media-rew", 16); w42.Add(w43); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w45 = new Gtk.Label(); w45.Name = "GtkLabel"; w45.LabelProp = ""; w42.Add(w45); w41.Add(w42); this.rewindButton.Add(w41); this.musicButtonBox.Add(this.rewindButton); Gtk.Box.BoxChild w49 = ((Gtk.Box.BoxChild)(this.musicButtonBox[this.rewindButton])); w49.Position = 4; w49.Expand = false; w49.Fill = false; // Container child musicButtonBox.Gtk.Box+BoxChild this.fastfoward = new Gtk.Button(); this.fastfoward.CanFocus = true; this.fastfoward.Name = "fastfoward"; this.fastfoward.UseUnderline = true; // Container child fastfoward.Gtk.Container+ContainerChild Gtk.Alignment w50 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); w50.Name = "GtkAlignment"; // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w51 = new Gtk.HBox(); w51.Name = "GtkHBox"; w51.Spacing = 2; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w52 = new Gtk.Image(); w52.Name = "image40"; w52.Pixbuf = Stetic.IconLoader.LoadIcon("stock_media-fwd", 16); w51.Add(w52); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w54 = new Gtk.Label(); w54.Name = "GtkLabel"; w54.LabelProp = ""; w51.Add(w54); w50.Add(w51); this.fastfoward.Add(w50); this.musicButtonBox.Add(this.fastfoward); Gtk.Box.BoxChild w58 = ((Gtk.Box.BoxChild)(this.musicButtonBox[this.fastfoward])); w58.Position = 5; w58.Expand = false; w58.Fill = false; this.MainFixedWindow.Add(this.musicButtonBox); Gtk.Fixed.FixedChild w59 = ((Gtk.Fixed.FixedChild)(this.MainFixedWindow[this.musicButtonBox])); w59.X = 127; w59.Y = 120; // Container child MainFixedWindow.Gtk.Fixed+FixedChild this.songProgressBar = new Gtk.ProgressBar(); this.songProgressBar.WidthRequest = 199; this.songProgressBar.Name = "songProgressBar"; this.songProgressBar.Text = Mono.Unix.Catalog.GetString("00:00 / 00:00"); this.MainFixedWindow.Add(this.songProgressBar); Gtk.Fixed.FixedChild w60 = ((Gtk.Fixed.FixedChild)(this.MainFixedWindow[this.songProgressBar])); w60.X = 132; w60.Y = 90; // Container child MainFixedWindow.Gtk.Fixed+FixedChild this.volumeScale = new Gtk.HScale(null); this.volumeScale.WidthRequest = 80; this.volumeScale.CanFocus = true; this.volumeScale.Name = "volumeScale"; this.volumeScale.Adjustment.Upper = 1; this.volumeScale.Adjustment.PageIncrement = 0.5; this.volumeScale.Adjustment.StepIncrement = 0.1; this.volumeScale.Adjustment.Value = 1; this.volumeScale.DrawValue = false; this.volumeScale.Digits = 0; this.volumeScale.ValuePos = ((Gtk.PositionType)(2)); this.MainFixedWindow.Add(this.volumeScale); Gtk.Fixed.FixedChild w61 = ((Gtk.Fixed.FixedChild)(this.MainFixedWindow[this.volumeScale])); w61.X = 3; w61.Y = 126; // Container child MainFixedWindow.Gtk.Fixed+FixedChild this.muteButton = new Gtk.Button(); this.muteButton.CanFocus = true; this.muteButton.Name = "muteButton"; this.muteButton.UseUnderline = true; // Container child muteButton.Gtk.Container+ContainerChild Gtk.Alignment w62 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); w62.Name = "GtkAlignment"; // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w63 = new Gtk.HBox(); w63.Name = "GtkHBox"; w63.Spacing = 2; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w64 = new Gtk.Image(); w64.Name = "image41"; w64.Pixbuf = Stetic.IconLoader.LoadIcon("gtk-cancel", 16); w63.Add(w64); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w66 = new Gtk.Label(); w66.Name = "GtkLabel"; w66.LabelProp = ""; w63.Add(w66); w62.Add(w63); this.muteButton.Add(w62); this.MainFixedWindow.Add(this.muteButton); Gtk.Fixed.FixedChild w70 = ((Gtk.Fixed.FixedChild)(this.MainFixedWindow[this.muteButton])); w70.X = 90; w70.Y = 120; // Container child MainFixedWindow.Gtk.Fixed+FixedChild this.volumeButton = new Gtk.Button(); this.volumeButton.CanFocus = true; this.volumeButton.Name = "volumeButton"; this.volumeButton.UseUnderline = true; // Container child volumeButton.Gtk.Container+ContainerChild Gtk.Alignment w71 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); w71.Name = "GtkAlignment"; // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w72 = new Gtk.HBox(); w72.Name = "GtkHBox"; w72.Spacing = 2; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w73 = new Gtk.Image(); w73.Name = "image42"; w73.Pixbuf = Stetic.IconLoader.LoadIcon("stock_volume", 16); w72.Add(w73); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w75 = new Gtk.Label(); w75.Name = "GtkLabel"; w75.LabelProp = ""; w72.Add(w75); w71.Add(w72); this.volumeButton.Add(w71); this.MainFixedWindow.Add(this.volumeButton); Gtk.Fixed.FixedChild w79 = ((Gtk.Fixed.FixedChild)(this.MainFixedWindow[this.volumeButton])); w79.X = 90; w79.Y = 120; // Container child MainFixedWindow.Gtk.Fixed+FixedChild this.npSong = new Gtk.Label(); this.npSong.Name = "npSong"; this.npSong.LabelProp = Mono.Unix.Catalog.GetString("Stopped"); this.npSong.UseMarkup = true; this.MainFixedWindow.Add(this.npSong); Gtk.Fixed.FixedChild w80 = ((Gtk.Fixed.FixedChild)(this.MainFixedWindow[this.npSong])); w80.X = 115; w80.Y = 35; // Container child MainFixedWindow.Gtk.Fixed+FixedChild this.npByFrom = new Gtk.Label(); this.npByFrom.WidthRequest = 231; this.npByFrom.Name = "npByFrom"; this.npByFrom.LabelProp = Mono.Unix.Catalog.GetString(" "); this.npByFrom.UseMarkup = true; this.npByFrom.Wrap = true; this.MainFixedWindow.Add(this.npByFrom); Gtk.Fixed.FixedChild w81 = ((Gtk.Fixed.FixedChild)(this.MainFixedWindow[this.npByFrom])); w81.X = 121; w81.Y = 49; // Container child MainFixedWindow.Gtk.Fixed+FixedChild this.albumCoverImage = new Gtk.Image(); this.albumCoverImage.Name = "albumCoverImage"; this.albumCoverImage.Pixbuf = Stetic.IconLoader.LoadIcon("gtk-cdrom", 48); this.MainFixedWindow.Add(this.albumCoverImage); Gtk.Fixed.FixedChild w82 = ((Gtk.Fixed.FixedChild)(this.MainFixedWindow[this.albumCoverImage])); w82.X = 24; w82.Y = 62; // Container child MainFixedWindow.Gtk.Fixed+FixedChild this.tabbedNotebook = new Gtk.Notebook(); this.tabbedNotebook.CanFocus = true; this.tabbedNotebook.Name = "tabbedNotebook"; this.tabbedNotebook.CurrentPage = 1; this.tabbedNotebook.Scrollable = true; // Container child tabbedNotebook.Gtk.Notebook+NotebookChild this.searchVertBox = new Gtk.VBox(); this.searchVertBox.Name = "searchVertBox"; this.searchVertBox.Spacing = 6; // Container child searchVertBox.Gtk.Box+BoxChild this.searchTopHorBox = new Gtk.HBox(); this.searchTopHorBox.Name = "searchTopHorBox"; this.searchTopHorBox.Spacing = 6; this.searchTopHorBox.BorderWidth = ((uint)(4)); // Container child searchTopHorBox.Gtk.Box+BoxChild this.searchSelectionType = Gtk.ComboBox.NewText(); this.searchSelectionType.AppendText(Mono.Unix.Catalog.GetString("Song")); this.searchSelectionType.AppendText(Mono.Unix.Catalog.GetString("Artist")); this.searchSelectionType.AppendText(Mono.Unix.Catalog.GetString("Album")); this.searchSelectionType.AppendText(Mono.Unix.Catalog.GetString("Track #")); this.searchSelectionType.AppendText(Mono.Unix.Catalog.GetString("Year")); this.searchSelectionType.AppendText(Mono.Unix.Catalog.GetString("Genre")); this.searchSelectionType.AppendText(Mono.Unix.Catalog.GetString("Filename")); this.searchSelectionType.AppendText(Mono.Unix.Catalog.GetString("All Fields")); this.searchSelectionType.WidthRequest = 75; this.searchSelectionType.Name = "searchSelectionType"; this.searchSelectionType.Active = 7; this.searchTopHorBox.Add(this.searchSelectionType); Gtk.Box.BoxChild w83 = ((Gtk.Box.BoxChild)(this.searchTopHorBox[this.searchSelectionType])); w83.Position = 0; w83.Expand = false; w83.Fill = false; // Container child searchTopHorBox.Gtk.Box+BoxChild this.searchEntry = new Gtk.Entry(); this.searchEntry.WidthRequest = 246; this.searchEntry.HeightRequest = 23; this.searchEntry.HasDefault = true; this.searchEntry.CanFocus = true; this.searchEntry.Name = "searchEntry"; this.searchEntry.IsEditable = true; this.searchEntry.InvisibleChar = '●'; this.searchTopHorBox.Add(this.searchEntry); Gtk.Box.BoxChild w84 = ((Gtk.Box.BoxChild)(this.searchTopHorBox[this.searchEntry])); w84.Position = 1; this.searchVertBox.Add(this.searchTopHorBox); Gtk.Box.BoxChild w85 = ((Gtk.Box.BoxChild)(this.searchVertBox[this.searchTopHorBox])); w85.Position = 0; w85.Expand = false; w85.Fill = false; // Container child searchVertBox.Gtk.Box+BoxChild this.searchList = new Gtk.ScrolledWindow(); this.searchList.WidthRequest = 329; this.searchList.HeightRequest = 358; this.searchList.CanFocus = true; this.searchList.Name = "searchList"; this.searchList.HscrollbarPolicy = ((Gtk.PolicyType)(2)); this.searchList.ShadowType = ((Gtk.ShadowType)(1)); // Container child searchList.Gtk.Container+ContainerChild this.songListTree = new Gtk.TreeView(); this.songListTree.CanFocus = true; this.songListTree.Name = "songListTree"; this.songListTree.Reorderable = true; this.searchList.Add(this.songListTree); this.searchVertBox.Add(this.searchList); Gtk.Box.BoxChild w87 = ((Gtk.Box.BoxChild)(this.searchVertBox[this.searchList])); w87.Position = 1; // Container child searchVertBox.Gtk.Box+BoxChild this.searchBottomHorizonalBox = new Gtk.HBox(); this.searchBottomHorizonalBox.Name = "searchBottomHorizonalBox"; this.searchBottomHorizonalBox.Spacing = 6; this.searchBottomHorizonalBox.BorderWidth = ((uint)(2)); // Container child searchBottomHorizonalBox.Gtk.Box+BoxChild this.searchAddButton = new Gtk.Button(); this.searchAddButton.CanFocus = true; this.searchAddButton.Name = "searchAddButton"; this.searchAddButton.UseUnderline = true; // Container child searchAddButton.Gtk.Container+ContainerChild Gtk.Alignment w88 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); w88.Name = "GtkAlignment"; // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w89 = new Gtk.HBox(); w89.Name = "GtkHBox"; w89.Spacing = 2; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w90 = new Gtk.Image(); w90.Name = "image43"; w90.Pixbuf = Stetic.IconLoader.LoadIcon("gtk-add", 16); w89.Add(w90); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w92 = new Gtk.Label(); w92.Name = "GtkLabel"; w92.LabelProp = Mono.Unix.Catalog.GetString("Add"); w92.UseUnderline = true; w89.Add(w92); w88.Add(w89); this.searchAddButton.Add(w88); this.searchBottomHorizonalBox.Add(this.searchAddButton); Gtk.Box.BoxChild w96 = ((Gtk.Box.BoxChild)(this.searchBottomHorizonalBox[this.searchAddButton])); w96.Position = 2; w96.Expand = false; w96.Fill = false; this.searchVertBox.Add(this.searchBottomHorizonalBox); Gtk.Box.BoxChild w97 = ((Gtk.Box.BoxChild)(this.searchVertBox[this.searchBottomHorizonalBox])); w97.Position = 2; w97.Expand = false; w97.Fill = false; this.tabbedNotebook.Add(this.searchVertBox); Gtk.Notebook.NotebookChild w98 = ((Gtk.Notebook.NotebookChild)(this.tabbedNotebook[this.searchVertBox])); w98.TabExpand = false; // Notebook tab this.searchMainLabel = new Gtk.Label(); this.searchMainLabel.WidthRequest = 100; this.searchMainLabel.Name = "searchMainLabel"; this.searchMainLabel.LabelProp = Mono.Unix.Catalog.GetString("Collection"); this.tabbedNotebook.SetTabLabel(this.searchVertBox, this.searchMainLabel); // Container child tabbedNotebook.Gtk.Notebook+NotebookChild this.queueVertBox = new Gtk.VBox(); this.queueVertBox.Name = "queueVertBox"; this.queueVertBox.Spacing = 9; this.queueVertBox.BorderWidth = ((uint)(3)); // Container child queueVertBox.Gtk.Box+BoxChild this.queueScrolledList = new Gtk.ScrolledWindow(); this.queueScrolledList.CanFocus = true; this.queueScrolledList.Name = "queueScrolledList"; this.queueScrolledList.VscrollbarPolicy = ((Gtk.PolicyType)(1)); this.queueScrolledList.HscrollbarPolicy = ((Gtk.PolicyType)(1)); this.queueScrolledList.ShadowType = ((Gtk.ShadowType)(1)); // Container child queueScrolledList.Gtk.Container+ContainerChild this.queueTreeView = new Gtk.TreeView(); this.queueTreeView.CanFocus = true; this.queueTreeView.Name = "queueTreeView"; this.queueScrolledList.Add(this.queueTreeView); this.queueVertBox.Add(this.queueScrolledList); Gtk.Box.BoxChild w100 = ((Gtk.Box.BoxChild)(this.queueVertBox[this.queueScrolledList])); w100.Position = 0; // Container child queueVertBox.Gtk.Box+BoxChild this.queueBottomHorBox = new Gtk.HBox(); this.queueBottomHorBox.Name = "queueBottomHorBox"; this.queueBottomHorBox.Spacing = 6; // Container child queueBottomHorBox.Gtk.Box+BoxChild this.queueNewPlaylist = new Gtk.Button(); this.queueNewPlaylist.CanFocus = true; this.queueNewPlaylist.Name = "queueNewPlaylist"; // Container child queueNewPlaylist.Gtk.Container+ContainerChild Gtk.Alignment w101 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); w101.Name = "GtkAlignment"; // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w102 = new Gtk.HBox(); w102.Name = "GtkHBox"; w102.Spacing = 2; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w103 = new Gtk.Image(); w103.Name = "image44"; w103.Pixbuf = Stetic.IconLoader.LoadIcon("gtk-file", 16); w102.Add(w103); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w105 = new Gtk.Label(); w105.Name = "GtkLabel"; w105.LabelProp = ""; w102.Add(w105); w101.Add(w102); this.queueNewPlaylist.Add(w101); this.queueBottomHorBox.Add(this.queueNewPlaylist); Gtk.Box.BoxChild w109 = ((Gtk.Box.BoxChild)(this.queueBottomHorBox[this.queueNewPlaylist])); w109.Position = 0; w109.Expand = false; w109.Fill = false; // Container child queueBottomHorBox.Gtk.Box+BoxChild this.queueDeleteButton = new Gtk.Button(); this.queueDeleteButton.CanFocus = true; this.queueDeleteButton.Name = "queueDeleteButton"; this.queueDeleteButton.UseUnderline = true; // Container child queueDeleteButton.Gtk.Container+ContainerChild Gtk.Alignment w110 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); w110.Name = "GtkAlignment"; // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w111 = new Gtk.HBox(); w111.Name = "GtkHBox"; w111.Spacing = 2; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w112 = new Gtk.Image(); w112.Name = "image45"; w112.Pixbuf = Stetic.IconLoader.LoadIcon("gtk-delete", 16); w111.Add(w112); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w114 = new Gtk.Label(); w114.Name = "GtkLabel"; w114.LabelProp = ""; w111.Add(w114); w110.Add(w111); this.queueDeleteButton.Add(w110); this.queueBottomHorBox.Add(this.queueDeleteButton); Gtk.Box.BoxChild w118 = ((Gtk.Box.BoxChild)(this.queueBottomHorBox[this.queueDeleteButton])); w118.Position = 1; w118.Expand = false; w118.Fill = false; // Container child queueBottomHorBox.Gtk.Box+BoxChild this.label4 = new Gtk.Label(); this.label4.Name = "label4"; this.label4.LabelProp = Mono.Unix.Catalog.GetString("Playlist Name"); this.queueBottomHorBox.Add(this.label4); Gtk.Box.BoxChild w119 = ((Gtk.Box.BoxChild)(this.queueBottomHorBox[this.label4])); w119.Position = 2; w119.Expand = false; w119.Fill = false; // Container child queueBottomHorBox.Gtk.Box+BoxChild this.queueEntryBox = new Gtk.Entry(); this.queueEntryBox.WidthRequest = 3; this.queueEntryBox.CanFocus = true; this.queueEntryBox.Name = "queueEntryBox"; this.queueEntryBox.IsEditable = true; this.queueEntryBox.InvisibleChar = '●'; this.queueBottomHorBox.Add(this.queueEntryBox); Gtk.Box.BoxChild w120 = ((Gtk.Box.BoxChild)(this.queueBottomHorBox[this.queueEntryBox])); w120.Position = 3; // Container child queueBottomHorBox.Gtk.Box+BoxChild this.queueSaveButton = new Gtk.Button(); this.queueSaveButton.CanFocus = true; this.queueSaveButton.Name = "queueSaveButton"; this.queueSaveButton.UseUnderline = true; this.queueSaveButton.Label = Mono.Unix.Catalog.GetString("Save"); this.queueBottomHorBox.Add(this.queueSaveButton); Gtk.Box.BoxChild w121 = ((Gtk.Box.BoxChild)(this.queueBottomHorBox[this.queueSaveButton])); w121.Position = 4; w121.Expand = false; w121.Fill = false; this.queueVertBox.Add(this.queueBottomHorBox); Gtk.Box.BoxChild w122 = ((Gtk.Box.BoxChild)(this.queueVertBox[this.queueBottomHorBox])); w122.Position = 1; w122.Expand = false; w122.Fill = false; this.tabbedNotebook.Add(this.queueVertBox); Gtk.Notebook.NotebookChild w123 = ((Gtk.Notebook.NotebookChild)(this.tabbedNotebook[this.queueVertBox])); w123.Position = 1; w123.TabExpand = false; // Notebook tab this.queueMainLabel = new Gtk.Label(); this.queueMainLabel.WidthRequest = 100; this.queueMainLabel.Name = "queueMainLabel"; this.queueMainLabel.LabelProp = Mono.Unix.Catalog.GetString("Current Songs"); this.tabbedNotebook.SetTabLabel(this.queueVertBox, this.queueMainLabel); // Container child tabbedNotebook.Gtk.Notebook+NotebookChild this.playlistVertBox = new Gtk.VBox(); this.playlistVertBox.Name = "playlistVertBox"; this.playlistVertBox.Spacing = 6; this.playlistVertBox.BorderWidth = ((uint)(3)); // Container child playlistVertBox.Gtk.Box+BoxChild this.playListScrolledWindow = new Gtk.ScrolledWindow(); this.playListScrolledWindow.CanFocus = true; this.playListScrolledWindow.Name = "playListScrolledWindow"; this.playListScrolledWindow.VscrollbarPolicy = ((Gtk.PolicyType)(1)); this.playListScrolledWindow.HscrollbarPolicy = ((Gtk.PolicyType)(1)); this.playListScrolledWindow.ShadowType = ((Gtk.ShadowType)(1)); // Container child playListScrolledWindow.Gtk.Container+ContainerChild this.playListTreeView = new Gtk.TreeView(); this.playListTreeView.CanFocus = true; this.playListTreeView.Name = "playListTreeView"; this.playListScrolledWindow.Add(this.playListTreeView); this.playlistVertBox.Add(this.playListScrolledWindow); Gtk.Box.BoxChild w125 = ((Gtk.Box.BoxChild)(this.playlistVertBox[this.playListScrolledWindow])); w125.Position = 0; // Container child playlistVertBox.Gtk.Box+BoxChild this.playListBottomBox = new Gtk.HBox(); this.playListBottomBox.Name = "playListBottomBox"; this.playListBottomBox.Spacing = 6; // Container child playListBottomBox.Gtk.Box+BoxChild this.playListNewButton = new Gtk.Button(); this.playListNewButton.CanFocus = true; this.playListNewButton.Name = "playListNewButton"; this.playListNewButton.UseUnderline = true; // Container child playListNewButton.Gtk.Container+ContainerChild Gtk.Alignment w126 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); w126.Name = "GtkAlignment"; // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w127 = new Gtk.HBox(); w127.Name = "GtkHBox"; w127.Spacing = 2; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w128 = new Gtk.Image(); w128.Name = "image46"; w128.Pixbuf = Stetic.IconLoader.LoadIcon("gtk-file", 16); w127.Add(w128); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w130 = new Gtk.Label(); w130.Name = "GtkLabel"; w130.LabelProp = Mono.Unix.Catalog.GetString("New"); w130.UseUnderline = true; w127.Add(w130); w126.Add(w127); this.playListNewButton.Add(w126); this.playListBottomBox.Add(this.playListNewButton); Gtk.Box.BoxChild w134 = ((Gtk.Box.BoxChild)(this.playListBottomBox[this.playListNewButton])); w134.Position = 0; w134.Expand = false; w134.Fill = false; // Container child playListBottomBox.Gtk.Box+BoxChild this.playListLoadButton = new Gtk.Button(); this.playListLoadButton.CanFocus = true; this.playListLoadButton.Name = "playListLoadButton"; this.playListLoadButton.UseUnderline = true; // Container child playListLoadButton.Gtk.Container+ContainerChild Gtk.Alignment w135 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); w135.Name = "GtkAlignment"; // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w136 = new Gtk.HBox(); w136.Name = "GtkHBox"; w136.Spacing = 2; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w137 = new Gtk.Image(); w137.Name = "image47"; w137.Pixbuf = Stetic.IconLoader.LoadIcon("gtk-directory", 16); w136.Add(w137); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w139 = new Gtk.Label(); w139.Name = "GtkLabel"; w139.LabelProp = Mono.Unix.Catalog.GetString("Load"); w139.UseUnderline = true; w136.Add(w139); w135.Add(w136); this.playListLoadButton.Add(w135); this.playListBottomBox.Add(this.playListLoadButton); Gtk.Box.BoxChild w143 = ((Gtk.Box.BoxChild)(this.playListBottomBox[this.playListLoadButton])); w143.Position = 1; w143.Expand = false; w143.Fill = false; // Container child playListBottomBox.Gtk.Box+BoxChild this.playlistRenameButton = new Gtk.Button(); this.playlistRenameButton.CanFocus = true; this.playlistRenameButton.Name = "playlistRenameButton"; this.playlistRenameButton.UseUnderline = true; // Container child playlistRenameButton.Gtk.Container+ContainerChild Gtk.Alignment w144 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); w144.Name = "GtkAlignment"; // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w145 = new Gtk.HBox(); w145.Name = "GtkHBox"; w145.Spacing = 2; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w146 = new Gtk.Image(); w146.Name = "image48"; w146.Pixbuf = Stetic.IconLoader.LoadIcon("gtk-edit", 16); w145.Add(w146); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w148 = new Gtk.Label(); w148.Name = "GtkLabel"; w148.LabelProp = Mono.Unix.Catalog.GetString("Edit"); w148.UseUnderline = true; w145.Add(w148); w144.Add(w145); this.playlistRenameButton.Add(w144); this.playListBottomBox.Add(this.playlistRenameButton); Gtk.Box.BoxChild w152 = ((Gtk.Box.BoxChild)(this.playListBottomBox[this.playlistRenameButton])); w152.Position = 2; w152.Expand = false; w152.Fill = false; // Container child playListBottomBox.Gtk.Box+BoxChild this.playListDeleteButton = new Gtk.Button(); this.playListDeleteButton.CanFocus = true; this.playListDeleteButton.Name = "playListDeleteButton"; this.playListDeleteButton.UseUnderline = true; // Container child playListDeleteButton.Gtk.Container+ContainerChild Gtk.Alignment w153 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); w153.Name = "GtkAlignment"; // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w154 = new Gtk.HBox(); w154.Name = "GtkHBox"; w154.Spacing = 2; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w155 = new Gtk.Image(); w155.Name = "image49"; w155.Pixbuf = Stetic.IconLoader.LoadIcon("gtk-delete", 16); w154.Add(w155); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w157 = new Gtk.Label(); w157.Name = "GtkLabel"; w157.LabelProp = Mono.Unix.Catalog.GetString("Delete"); w157.UseUnderline = true; w154.Add(w157); w153.Add(w154); this.playListDeleteButton.Add(w153); this.playListBottomBox.Add(this.playListDeleteButton); Gtk.Box.BoxChild w161 = ((Gtk.Box.BoxChild)(this.playListBottomBox[this.playListDeleteButton])); w161.Position = 3; w161.Expand = false; w161.Fill = false; this.playlistVertBox.Add(this.playListBottomBox); Gtk.Box.BoxChild w162 = ((Gtk.Box.BoxChild)(this.playlistVertBox[this.playListBottomBox])); w162.PackType = ((Gtk.PackType)(1)); w162.Position = 1; w162.Expand = false; w162.Fill = false; this.tabbedNotebook.Add(this.playlistVertBox); Gtk.Notebook.NotebookChild w163 = ((Gtk.Notebook.NotebookChild)(this.tabbedNotebook[this.playlistVertBox])); w163.Position = 2; w163.TabExpand = false; // Notebook tab this.playListMainLabel = new Gtk.Label(); this.playListMainLabel.WidthRequest = 100; this.playListMainLabel.Name = "playListMainLabel"; this.playListMainLabel.LabelProp = Mono.Unix.Catalog.GetString("Playlists"); this.tabbedNotebook.SetTabLabel(this.playlistVertBox, this.playListMainLabel); this.MainFixedWindow.Add(this.tabbedNotebook); Gtk.Fixed.FixedChild w164 = ((Gtk.Fixed.FixedChild)(this.MainFixedWindow[this.tabbedNotebook])); w164.X = 10; w164.Y = 159; this.Add(this.MainFixedWindow); if ((this.Child != null)) { this.Child.ShowAll(); } this.DefaultWidth = 562; this.DefaultHeight = 662; this.muteButton.Hide(); this.Show(); this.DeleteEvent += new Gtk.DeleteEventHandler(this.OnDeleteEvent); this.AddFolder.Activated += new System.EventHandler(this.OnAddFolderActivated); this.NewCollection.Activated += new System.EventHandler(this.OnNewCollectionActivated); this.Preferences.Activated += new System.EventHandler(this.OnPreferencesActivated); this.Exit1.Activated += new System.EventHandler(this.OnExit1Activated); this.AddFile.Activated += new System.EventHandler(this.OnAddFileActivated); this.About3.Activated += new System.EventHandler(this.OnAbout3Activated); this.playButton.Clicked += new System.EventHandler(this.OnPlayButtonClicked); this.stopButton.Clicked += new System.EventHandler(this.OnStopButtonClicked); this.previousButton.Clicked += new System.EventHandler(this.OnPreviousButtonClicked); this.nextButton.Clicked += new System.EventHandler(this.OnNextButtonClicked); this.rewindButton.Clicked += new System.EventHandler(this.OnRewindClicked); this.fastfoward.Clicked += new System.EventHandler(this.OnFastfowardClicked); this.volumeScale.ValueChanged += new System.EventHandler(this.OnVolumeScaleValueChanged); this.muteButton.Clicked += new System.EventHandler(this.OnMuteButtonClicked); this.volumeButton.Clicked += new System.EventHandler(this.OnVolumeButtonClicked); this.searchAddButton.Clicked += new System.EventHandler(this.OnSearchAddButtonClicked); this.queueNewPlaylist.Clicked += new System.EventHandler(this.OnQueueNewPlaylistClicked); this.queueDeleteButton.Clicked += new System.EventHandler(this.OnQueueDeleteButtonClicked); this.queueSaveButton.Clicked += new System.EventHandler(this.OnQueueSaveButtonClicked); this.playListNewButton.Clicked += new System.EventHandler(this.OnPlayListNewButtonClicked); this.playListLoadButton.Clicked += new System.EventHandler(this.OnPlayListLoadButtonClicked); this.playListDeleteButton.Clicked += new System.EventHandler(this.OnPlayListDeleteButtonClicked); }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget ocmgtk.ExportProgressDialog this.WidthRequest = 400; this.Name = "ocmgtk.ExportProgressDialog"; this.Title = Mono.Unix.Catalog.GetString("Saving File..."); this.WindowPosition = ((Gtk.WindowPosition)(4)); this.Modal = true; this.BorderWidth = ((uint)(6)); this.Resizable = false; this.AllowGrow = false; this.SkipPagerHint = true; // Internal child ocmgtk.ExportProgressDialog.VBox Gtk.VBox w1 = this.VBox; w1.Name = "dialog1_VBox"; w1.Spacing = 6; w1.BorderWidth = ((uint)(6)); // Container child dialog1_VBox.Gtk.Box+BoxChild this.label1 = new Gtk.Label(); this.label1.Name = "label1"; this.label1.Xalign = 0F; this.label1.LabelProp = Mono.Unix.Catalog.GetString("<big><b>Generating GPX File</b></big>"); this.label1.UseMarkup = true; w1.Add(this.label1); Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(w1[this.label1])); w2.Position = 0; w2.Expand = false; w2.Fill = false; w2.Padding = ((uint)(6)); // Container child dialog1_VBox.Gtk.Box+BoxChild this.fileLabel = new Gtk.Label(); this.fileLabel.Name = "fileLabel"; this.fileLabel.Xalign = 0F; this.fileLabel.LabelProp = Mono.Unix.Catalog.GetString("<b>File:</b>"); this.fileLabel.UseMarkup = true; w1.Add(this.fileLabel); Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(w1[this.fileLabel])); w3.Position = 1; w3.Expand = false; w3.Fill = false; // Container child dialog1_VBox.Gtk.Box+BoxChild this.writeProgress = new Gtk.ProgressBar(); this.writeProgress.Name = "writeProgress"; this.writeProgress.Text = "0%"; w1.Add(this.writeProgress); Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(w1[this.writeProgress])); w4.Position = 2; w4.Expand = false; w4.Fill = false; // Container child dialog1_VBox.Gtk.Box+BoxChild this.infoLabel = new Gtk.Label(); this.infoLabel.Name = "infoLabel"; this.infoLabel.Xalign = 0F; this.infoLabel.LabelProp = Mono.Unix.Catalog.GetString("<i>Intializing</i>"); this.infoLabel.UseMarkup = true; w1.Add(this.infoLabel); Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(w1[this.infoLabel])); w5.Position = 3; w5.Expand = false; w5.Fill = false; // Internal child ocmgtk.ExportProgressDialog.ActionArea Gtk.HButtonBox w6 = this.ActionArea; w6.Name = "dialog1_ActionArea"; w6.Spacing = 10; w6.BorderWidth = ((uint)(5)); w6.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 w7 = ((Gtk.ButtonBox.ButtonBoxChild)(w6[this.buttonCancel])); w7.Expand = false; w7.Fill = false; // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild this.okButton = new Gtk.Button(); this.okButton.Sensitive = false; this.okButton.CanDefault = true; this.okButton.CanFocus = true; this.okButton.Name = "okButton"; this.okButton.UseStock = true; this.okButton.UseUnderline = true; this.okButton.Label = "gtk-ok"; this.AddActionWidget(this.okButton, -5); Gtk.ButtonBox.ButtonBoxChild w8 = ((Gtk.ButtonBox.ButtonBoxChild)(w6[this.okButton])); w8.Position = 1; w8.Expand = false; w8.Fill = false; if ((this.Child != null)) { this.Child.ShowAll(); } this.DefaultWidth = 412; this.DefaultHeight = 225; this.okButton.Hide(); this.Show(); this.DeleteEvent += new Gtk.DeleteEventHandler(this.OnDeleteEvent); this.buttonCancel.Clicked += new System.EventHandler(this.OnCancel); this.okButton.Clicked += new System.EventHandler(this.OnOKClicked); }
public MainWindow() : base("Smuxi") { // restore window size / position int width, heigth; if (Frontend.FrontendConfig[Frontend.UIName + "/Interface/Width"] != null) { width = (int) Frontend.FrontendConfig[Frontend.UIName + "/Interface/Width"]; } else { width = 800; } if (Frontend.FrontendConfig[Frontend.UIName + "/Interface/Heigth"] != null) { heigth = (int) Frontend.FrontendConfig[Frontend.UIName + "/Interface/Heigth"]; } else { heigth = 600; } if (width < -1 || heigth < -1) { width = -1; heigth = -1; } if (width == -1 && heigth == -1) { SetDefaultSize(800, 600); Maximize(); } else if (width == 0 && heigth == 0) { // HACK: map 0/0 to default size as it crashes on Windows :/ SetDefaultSize(800, 600); } else { SetDefaultSize(width, heigth); } int x, y; if (Frontend.FrontendConfig[Frontend.UIName + "/Interface/XPosition"] != null) { x = (int) Frontend.FrontendConfig[Frontend.UIName + "/Interface/XPosition"]; } else { x = 0; } if (Frontend.FrontendConfig[Frontend.UIName + "/Interface/YPosition"] != null) { y = (int) Frontend.FrontendConfig[Frontend.UIName + "/Interface/YPosition"]; } else { y = 0; } if (x < 0 || y < 0) { x = 0; y = 0; } if (x == 0 && y == 0) { SetPosition(Gtk.WindowPosition.Center); } else { Move(x, y); } DeleteEvent += OnDeleteEvent; FocusInEvent += OnFocusInEvent; FocusOutEvent += OnFocusOutEvent; WindowStateEvent += OnWindowStateEvent; // TODO: network treeview Notebook = new Notebook(); Notebook.SwitchPage += OnNotebookSwitchPage; Notebook.FocusInEvent += OnNotebookFocusInEvent; ChatViewManager = new ChatViewManager(Notebook, null); Assembly asm = Assembly.GetExecutingAssembly(); ChatViewManager.Load(asm); ChatViewManager.LoadAll(System.IO.Path.GetDirectoryName(asm.Location), "smuxi-frontend-gnome-*.dll"); ChatViewManager.ChatAdded += OnChatViewManagerChatAdded; ChatViewManager.ChatSynced += OnChatViewManagerChatSynced; ChatViewManager.ChatRemoved += OnChatViewManagerChatRemoved; #if GTK_SHARP_2_10 StatusIconManager = new StatusIconManager(this, ChatViewManager); #endif #if INDICATE_SHARP IndicateManager = new IndicateManager(this, ChatViewManager); #endif #if NOTIFY_SHARP NotifyManager = new NotifyManager(this, ChatViewManager); #endif #if IPC_DBUS NetworkManager = new NetworkManager(ChatViewManager); #endif UI = new GnomeUI(ChatViewManager); // HACK: Frontend.FrontendConfig out of scope EngineManager = new EngineManager(Frontend.FrontendConfig, UI); Entry = new Entry(ChatViewManager); var entryScrolledWindow = new Gtk.ScrolledWindow(); entryScrolledWindow.ShadowType = Gtk.ShadowType.EtchedIn; entryScrolledWindow.HscrollbarPolicy = Gtk.PolicyType.Never; entryScrolledWindow.SizeRequested += delegate(object o, Gtk.SizeRequestedArgs args) { // predict and set useful heigth var layout = Entry.CreatePangoLayout("Qp"); int lineWidth, lineHeigth; layout.GetPixelSize(out lineWidth, out lineHeigth); var text = Entry.Text; var newLines = text.Count(f => f == '\n'); // cap to 1-3 lines if (text.Length > 0) { newLines++; newLines = Math.Max(newLines, 1); newLines = Math.Min(newLines, 3); } else { newLines = 1; } // use text heigth + a bit extra var bestSize = new Gtk.Requisition() { Height = (lineHeigth * newLines) + 5 }; args.Requisition = bestSize; }; entryScrolledWindow.Add(Entry); ProgressBar = new Gtk.ProgressBar(); StatusHBox = new Gtk.HBox(); MenuWidget = new MenuWidget(this, ChatViewManager); Gtk.VBox vbox = new Gtk.VBox(); vbox.PackStart(MenuWidget, false, false, 0); vbox.PackStart(Notebook, true, true, 0); vbox.PackStart(entryScrolledWindow, false, false, 0); NetworkStatusbar = new Gtk.Statusbar(); NetworkStatusbar.WidthRequest = 300; NetworkStatusbar.HasResizeGrip = false; Statusbar = new Gtk.Statusbar(); Statusbar.HasResizeGrip = false; Gtk.HBox status_bar_hbox = new Gtk.HBox(); status_bar_hbox.Homogeneous = true; status_bar_hbox.PackStart(NetworkStatusbar, false, true, 0); status_bar_hbox.PackStart(Statusbar, true, true, 0); StatusHBox.PackStart(status_bar_hbox); StatusHBox.PackStart(ProgressBar, false, false, 0); StatusHBox.ShowAll(); StatusHBox.NoShowAll = true; StatusHBox.Visible = (bool) Frontend.FrontendConfig["ShowStatusBar"]; vbox.PackStart(StatusHBox, false, false, 0); Add(vbox); if (Frontend.IsMacOSX) { IgeMacMenu.GlobalKeyHandlerEnabled = true; IgeMacMenu.MenuBar = MenuWidget.MenuBar; ShowMenuBar = false; var appGroup = IgeMacMenu.AddAppMenuGroup(); appGroup.AddMenuItem( (Gtk.MenuItem) MenuWidget.PreferencesAction.CreateMenuItem(), _("Preferences") ); IgeMacMenu.QuitMenuItem = (Gtk.MenuItem) MenuWidget.QuitAction.CreateMenuItem(); } }
protected virtual void Build() { Stetic.Gui.Initialize(this); // Widget Boxerp.Client.GtkSharp.WaitDialog this.Name = "Boxerp.Client.GtkSharp.WaitDialog"; this.Title = Mono.Unix.Catalog.GetString("Operation in Progress"); this.WindowPosition = ((Gtk.WindowPosition)(4)); this.HasSeparator = false; // Internal child Boxerp.Client.GtkSharp.WaitDialog.VBox Gtk.VBox w1 = this.VBox; w1.Name = "dialog1_VBox"; w1.BorderWidth = ((uint)(2)); // Container child dialog1_VBox.Gtk.Box+BoxChild this.labelMsg = new Gtk.Label(); this.labelMsg.Name = "labelMsg"; this.labelMsg.LabelProp = "Please wait"; w1.Add(this.labelMsg); Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(w1[this.labelMsg])); w2.Position = 0; w2.Expand = false; w2.Fill = false; // Container child dialog1_VBox.Gtk.Box+BoxChild this.progressbar = new Gtk.ProgressBar(); this.progressbar.Name = "progressbar"; w1.Add(this.progressbar); Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(w1[this.progressbar])); w3.Position = 1; w3.Expand = false; w3.Fill = false; // Internal child Boxerp.Client.GtkSharp.WaitDialog.ActionArea Gtk.HButtonBox w4 = this.ActionArea; w4.Name = "GtkDialog_ActionArea"; w4.Spacing = 6; w4.BorderWidth = ((uint)(5)); w4.LayoutStyle = ((Gtk.ButtonBoxStyle)(1)); // Container child GtkDialog_ActionArea.Gtk.ButtonBox+ButtonBoxChild this.button140 = new Gtk.Button(); this.button140.CanFocus = true; this.button140.Name = "button140"; this.button140.UseUnderline = true; // Container child button140.Gtk.Container+ContainerChild Gtk.Alignment w5 = new Gtk.Alignment(0.5F, 0.5F, 0F, 0F); // Container child GtkAlignment.Gtk.Container+ContainerChild Gtk.HBox w6 = new Gtk.HBox(); w6.Spacing = 2; // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Image w7 = new Gtk.Image(); w7.Pixbuf = Stetic.IconLoader.LoadIcon(this, "gtk-cancel", Gtk.IconSize.Menu, 16); w6.Add(w7); // Container child GtkHBox.Gtk.Container+ContainerChild Gtk.Label w9 = new Gtk.Label(); w9.LabelProp = Mono.Unix.Catalog.GetString("Cancel"); w9.UseUnderline = true; w6.Add(w9); w5.Add(w6); this.button140.Add(w5); this.AddActionWidget(this.button140, 0); Gtk.ButtonBox.ButtonBoxChild w13 = ((Gtk.ButtonBox.ButtonBoxChild)(w4[this.button140])); w13.Expand = false; w13.Fill = false; if ((this.Child != null)) { this.Child.ShowAll(); } this.DefaultWidth = 400; this.DefaultHeight = 114; this.Show(); this.Shown += new System.EventHandler(this.OnShown); this.DefaultActivated += new System.EventHandler(this.OnShown); this.button140.Clicked += new System.EventHandler(this.OnCancel); }