[Nasa-exp-checkins] SF.net SVN: nasa-exp: [3728] trunk/WorldWind/DstilePlugin/DstileFE.cs
Brought to you by:
baker99-bull,
vigilant
From: <ti...@us...> - 2007-03-24 12:44:22
|
Revision: 3728 http://svn.sourceforge.net/nasa-exp/?rev=3728&view=rev Author: tish_mp Date: 2007-03-24 05:44:18 -0700 (Sat, 24 Mar 2007) Log Message: ----------- ADD-80: Added various fixes. Modified Paths: -------------- trunk/WorldWind/DstilePlugin/DstileFE.cs Modified: trunk/WorldWind/DstilePlugin/DstileFE.cs =================================================================== --- trunk/WorldWind/DstilePlugin/DstileFE.cs 2007-03-24 02:19:33 UTC (rev 3727) +++ trunk/WorldWind/DstilePlugin/DstileFE.cs 2007-03-24 12:44:18 UTC (rev 3728) @@ -185,9 +185,9 @@ this.eastlab = new System.Windows.Forms.Label(); this.timer1 = new System.Windows.Forms.Timer(this.components); this.statusStrip1 = new System.Windows.Forms.StatusStrip(); + this.toolStripStatusLabel1 = new System.Windows.Forms.ToolStripStatusLabel(); this.currentStatusLabel = new System.Windows.Forms.ToolStripStatusLabel(); this.progressBar1 = new System.Windows.Forms.ToolStripProgressBar(); - this.toolStripStatusLabel1 = new System.Windows.Forms.ToolStripStatusLabel(); this.statusStrip1.SuspendLayout(); this.SuspendLayout(); // @@ -303,6 +303,7 @@ this.tileListBox.Name = "tileListBox"; this.tileListBox.Size = new System.Drawing.Size(75, 19); this.tileListBox.TabIndex = 20; + this.tileListBox.SelectedIndexChanged += new System.EventHandler(this.tileListBox_SelectedIndexChanged); // // srcProjLabel // @@ -421,6 +422,12 @@ this.statusStrip1.TabIndex = 32; this.statusStrip1.Text = "statusStrip1"; // + // toolStripStatusLabel1 + // + this.toolStripStatusLabel1.Name = "toolStripStatusLabel1"; + this.toolStripStatusLabel1.Size = new System.Drawing.Size(42, 17); + this.toolStripStatusLabel1.Text = "Status:"; + // // currentStatusLabel // this.currentStatusLabel.Name = "currentStatusLabel"; @@ -433,12 +440,6 @@ this.progressBar1.Name = "progressBar1"; this.progressBar1.Size = new System.Drawing.Size(100, 16); // - // toolStripStatusLabel1 - // - this.toolStripStatusLabel1.Name = "toolStripStatusLabel1"; - this.toolStripStatusLabel1.Size = new System.Drawing.Size(42, 17); - this.toolStripStatusLabel1.Text = "Status:"; - // // DstileFrontEnd // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); @@ -615,6 +616,12 @@ this.progressBar1.Value = 100; String fileName = inputFileTextBox.Text; String layerName = layerNameTextBox.Text; + string lztsdString = tileListBox.SelectedItem.ToString(); + if (lztsdString == null) + //no lztsd selected making a guess + //TODO: Make this an educated guess based on image extent + //and resolution + tileListBox.SelectedIndex = 8; decimal lztsd = Convert.ToDecimal(tileListBox.SelectedItem.ToString()); // check if source projection is required, and if so, one has been entered Boolean cont = true; @@ -761,16 +768,16 @@ // Get the limits of the image, insert into XML nlist = doc.GetElementsByTagName("North"); foreach (XmlNode northLine in nlist) - northLine.FirstChild.InnerText = Convert.ToString(upperLeft[1]); + northLine.FirstChild.InnerText = Convert.ToString(northlab.Text); nlist = doc.GetElementsByTagName("South"); foreach (XmlNode southLine in nlist) - southLine.FirstChild.InnerText = Convert.ToString(lowerRight[1]); + southLine.FirstChild.InnerText = Convert.ToString(southlab.Text); nlist = doc.GetElementsByTagName("West"); foreach (XmlNode westLine in nlist) - westLine.FirstChild.InnerText = Convert.ToString(upperLeft[0]); + westLine.FirstChild.InnerText = Convert.ToString(westlab.Text); nlist = doc.GetElementsByTagName("East"); foreach (XmlNode eastLine in nlist) - eastLine.FirstChild.InnerText = Convert.ToString(lowerRight[0]); + eastLine.FirstChild.InnerText = Convert.ToString(eastlab.Text); nlist = doc.GetElementsByTagName("LevelZeroTileSizeDegrees"); foreach (XmlNode lztsd in nlist) { @@ -894,7 +901,7 @@ srcplugin.ParentApplication.WorldWindow.CurrentWorld, srcplugin.ParentApplication.WorldWindow.Cache); srcplugin.ParentApplication.WorldWindow.CurrentWorld.RenderableObjects.Add(layers); - this.processButton.Text = "Process"; + //this.processButton.Text = "Process"; } //currentStatusLabel.Text = "Finished successfully"; else @@ -941,5 +948,10 @@ this.processButton.Text = "Process"; } } + + private void tileListBox_SelectedIndexChanged(object sender, EventArgs e) + { + + } } } \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |