From: <che...@us...> - 2007-06-21 23:20:32
|
Revision: 590 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=590&view=rev Author: chef_koch Date: 2007-06-21 16:20:23 -0700 (Thu, 21 Jun 2007) Log Message: ----------- cleanup and redesign of the form, do we need the txtbox for filepath? -> do we still need it in database? we don't need it, we can parse the path out of the filename Modified Paths: -------------- trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/FileDetailsForm.Designer.cs trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/FileDetailsForm.cs trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/FileDetailsForm.resx Modified: trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/FileDetailsForm.Designer.cs =================================================================== --- trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/FileDetailsForm.Designer.cs 2007-06-21 22:58:44 UTC (rev 589) +++ trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/FileDetailsForm.Designer.cs 2007-06-21 23:20:23 UTC (rev 590) @@ -32,8 +32,6 @@ this.gameinfoURLTextBox = new System.Windows.Forms.TextBox(); this.gameInfoURLLabel = new System.Windows.Forms.Label(); this.buttonViewImg = new MediaPortal.UserInterface.Controls.MPButton(); - this.txtFilepath = new MediaPortal.UserInterface.Controls.MPTextBox(); - this.label1 = new MediaPortal.UserInterface.Controls.MPLabel(); this.btnOk = new MediaPortal.UserInterface.Controls.MPButton(); this.cbRating = new MediaPortal.UserInterface.Controls.MPComboBox(); this.txtOverview = new MediaPortal.UserInterface.Controls.MPTextBox(); @@ -78,16 +76,19 @@ // // gameinfoURLTextBox // - this.gameinfoURLTextBox.Location = new System.Drawing.Point(96, 295); + this.gameinfoURLTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.gameinfoURLTextBox.Location = new System.Drawing.Point(97, 267); this.gameinfoURLTextBox.Name = "gameinfoURLTextBox"; - this.gameinfoURLTextBox.Size = new System.Drawing.Size(372, 21); + this.gameinfoURLTextBox.Size = new System.Drawing.Size(365, 21); this.gameinfoURLTextBox.TabIndex = 66; // // gameInfoURLLabel // - this.gameInfoURLLabel.Location = new System.Drawing.Point(8, 295); + this.gameInfoURLLabel.AutoSize = true; + this.gameInfoURLLabel.Location = new System.Drawing.Point(8, 270); this.gameInfoURLLabel.Name = "gameInfoURLLabel"; - this.gameInfoURLLabel.Size = new System.Drawing.Size(82, 22); + this.gameInfoURLLabel.Size = new System.Drawing.Size(78, 13); this.gameInfoURLLabel.TabIndex = 65; this.gameInfoURLLabel.Text = "Gameinfo URL:"; // @@ -95,33 +96,14 @@ // this.buttonViewImg.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.buttonViewImg.Image = global::GUIPrograms.Properties.Resources.previewButton_Image; - this.buttonViewImg.Location = new System.Drawing.Point(440, 103); + this.buttonViewImg.Location = new System.Drawing.Point(431, 72); this.buttonViewImg.Name = "buttonViewImg"; - this.buttonViewImg.Size = new System.Drawing.Size(20, 22); + this.buttonViewImg.Size = new System.Drawing.Size(31, 23); this.buttonViewImg.TabIndex = 64; this.toolTip1.SetToolTip(this.buttonViewImg, "View the default image for this file"); this.buttonViewImg.UseVisualStyleBackColor = true; this.buttonViewImg.Click += new System.EventHandler(this.buttonViewImg_Click); // - // txtFilepath - // - this.txtFilepath.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); - this.txtFilepath.BorderColor = System.Drawing.Color.Empty; - this.txtFilepath.Location = new System.Drawing.Point(96, 78); - this.txtFilepath.Name = "txtFilepath"; - this.txtFilepath.ReadOnly = true; - this.txtFilepath.Size = new System.Drawing.Size(373, 21); - this.txtFilepath.TabIndex = 62; - // - // label1 - // - this.label1.Location = new System.Drawing.Point(8, 80); - this.label1.Name = "label1"; - this.label1.Size = new System.Drawing.Size(64, 17); - this.label1.TabIndex = 63; - this.label1.Text = "Filepath:"; - // // btnOk // this.btnOk.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); @@ -135,6 +117,7 @@ // // cbRating // + this.cbRating.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.cbRating.BorderColor = System.Drawing.Color.Empty; this.cbRating.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.cbRating.Items.AddRange(new object[] { @@ -149,9 +132,9 @@ "8", "9", "10 - perfect"}); - this.cbRating.Location = new System.Drawing.Point(276, 206); + this.cbRating.Location = new System.Drawing.Point(277, 186); this.cbRating.Name = "cbRating"; - this.cbRating.Size = new System.Drawing.Size(192, 21); + this.cbRating.Size = new System.Drawing.Size(185, 21); this.cbRating.TabIndex = 8; // // txtOverview @@ -160,19 +143,20 @@ | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.txtOverview.BorderColor = System.Drawing.Color.Empty; - this.txtOverview.Location = new System.Drawing.Point(8, 339); + this.txtOverview.Location = new System.Drawing.Point(6, 310); this.txtOverview.Multiline = true; this.txtOverview.Name = "txtOverview"; this.txtOverview.ScrollBars = System.Windows.Forms.ScrollBars.Both; - this.txtOverview.Size = new System.Drawing.Size(489, 99); + this.txtOverview.Size = new System.Drawing.Size(493, 133); this.txtOverview.TabIndex = 11; this.txtOverview.Text = "txtOverview"; // // lblOverview // - this.lblOverview.Location = new System.Drawing.Point(8, 319); + this.lblOverview.AutoSize = true; + this.lblOverview.Location = new System.Drawing.Point(8, 294); this.lblOverview.Name = "lblOverview"; - this.lblOverview.Size = new System.Drawing.Size(100, 17); + this.lblOverview.Size = new System.Drawing.Size(57, 13); this.lblOverview.TabIndex = 61; this.lblOverview.Text = "Overview:"; // @@ -181,16 +165,17 @@ this.txtSystem.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.txtSystem.BorderColor = System.Drawing.Color.Empty; - this.txtSystem.Location = new System.Drawing.Point(96, 261); + this.txtSystem.Location = new System.Drawing.Point(97, 240); this.txtSystem.Name = "txtSystem"; - this.txtSystem.Size = new System.Drawing.Size(373, 21); + this.txtSystem.Size = new System.Drawing.Size(365, 21); this.txtSystem.TabIndex = 10; // // lblSystem // - this.lblSystem.Location = new System.Drawing.Point(8, 265); + this.lblSystem.AutoSize = true; + this.lblSystem.Location = new System.Drawing.Point(8, 243); this.lblSystem.Name = "lblSystem"; - this.lblSystem.Size = new System.Drawing.Size(64, 17); + this.lblSystem.Size = new System.Drawing.Size(46, 13); this.lblSystem.TabIndex = 59; this.lblSystem.Text = "System:"; // @@ -199,16 +184,17 @@ this.txtCountry.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.txtCountry.BorderColor = System.Drawing.Color.Empty; - this.txtCountry.Location = new System.Drawing.Point(96, 235); + this.txtCountry.Location = new System.Drawing.Point(97, 213); this.txtCountry.Name = "txtCountry"; - this.txtCountry.Size = new System.Drawing.Size(373, 21); + this.txtCountry.Size = new System.Drawing.Size(365, 21); this.txtCountry.TabIndex = 9; // // lblCountry // - this.lblCountry.Location = new System.Drawing.Point(8, 239); + this.lblCountry.AutoSize = true; + this.lblCountry.Location = new System.Drawing.Point(8, 216); this.lblCountry.Name = "lblCountry"; - this.lblCountry.Size = new System.Drawing.Size(72, 17); + this.lblCountry.Size = new System.Drawing.Size(50, 13); this.lblCountry.TabIndex = 57; this.lblCountry.Text = "Country:"; // @@ -281,9 +267,11 @@ // // lblRating // - this.lblRating.Location = new System.Drawing.Point(223, 209); + this.lblRating.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.lblRating.AutoSize = true; + this.lblRating.Location = new System.Drawing.Point(229, 189); this.lblRating.Name = "lblRating"; - this.lblRating.Size = new System.Drawing.Size(47, 17); + this.lblRating.Size = new System.Drawing.Size(42, 13); this.lblRating.TabIndex = 55; this.lblRating.Text = "Rating:"; // @@ -295,8 +283,6 @@ this.gbFileDetails.Controls.Add(this.gameinfoURLTextBox); this.gbFileDetails.Controls.Add(this.gameInfoURLLabel); this.gbFileDetails.Controls.Add(this.buttonViewImg); - this.gbFileDetails.Controls.Add(this.txtFilepath); - this.gbFileDetails.Controls.Add(this.label1); this.gbFileDetails.Controls.Add(this.cbRating); this.gbFileDetails.Controls.Add(this.txtOverview); this.gbFileDetails.Controls.Add(this.lblOverview); @@ -329,17 +315,18 @@ // txtYear // this.txtYear.BorderColor = System.Drawing.Color.Empty; - this.txtYear.Location = new System.Drawing.Point(96, 209); + this.txtYear.Location = new System.Drawing.Point(97, 186); this.txtYear.MaxLength = 4; this.txtYear.Name = "txtYear"; - this.txtYear.Size = new System.Drawing.Size(48, 21); + this.txtYear.Size = new System.Drawing.Size(60, 21); this.txtYear.TabIndex = 7; // // lblYear // - this.lblYear.Location = new System.Drawing.Point(8, 209); + this.lblYear.AutoSize = true; + this.lblYear.Location = new System.Drawing.Point(8, 189); this.lblYear.Name = "lblYear"; - this.lblYear.Size = new System.Drawing.Size(64, 17); + this.lblYear.Size = new System.Drawing.Size(33, 13); this.lblYear.TabIndex = 53; this.lblYear.Text = "Year:"; // @@ -348,16 +335,17 @@ this.txtManufacturer.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.txtManufacturer.BorderColor = System.Drawing.Color.Empty; - this.txtManufacturer.Location = new System.Drawing.Point(96, 183); + this.txtManufacturer.Location = new System.Drawing.Point(97, 159); this.txtManufacturer.Name = "txtManufacturer"; - this.txtManufacturer.Size = new System.Drawing.Size(373, 21); + this.txtManufacturer.Size = new System.Drawing.Size(365, 21); this.txtManufacturer.TabIndex = 6; // // lblManufacturer // - this.lblManufacturer.Location = new System.Drawing.Point(8, 183); + this.lblManufacturer.AutoSize = true; + this.lblManufacturer.Location = new System.Drawing.Point(8, 162); this.lblManufacturer.Name = "lblManufacturer"; - this.lblManufacturer.Size = new System.Drawing.Size(80, 17); + this.lblManufacturer.Size = new System.Drawing.Size(76, 13); this.lblManufacturer.TabIndex = 51; this.lblManufacturer.Text = "Manufacturer:"; // @@ -366,26 +354,28 @@ this.txtGenre.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.txtGenre.BorderColor = System.Drawing.Color.Empty; - this.txtGenre.Location = new System.Drawing.Point(96, 129); + this.txtGenre.Location = new System.Drawing.Point(97, 101); this.txtGenre.Multiline = true; this.txtGenre.Name = "txtGenre"; this.txtGenre.ScrollBars = System.Windows.Forms.ScrollBars.Vertical; - this.txtGenre.Size = new System.Drawing.Size(373, 52); + this.txtGenre.Size = new System.Drawing.Size(365, 52); this.txtGenre.TabIndex = 5; // // lblGenre // - this.lblGenre.Location = new System.Drawing.Point(8, 134); + this.lblGenre.AutoSize = true; + this.lblGenre.Location = new System.Drawing.Point(8, 104); this.lblGenre.Name = "lblGenre"; - this.lblGenre.Size = new System.Drawing.Size(64, 17); + this.lblGenre.Size = new System.Drawing.Size(40, 13); this.lblGenre.TabIndex = 49; this.lblGenre.Text = "Genre:"; // // lblImageFile // - this.lblImageFile.Location = new System.Drawing.Point(8, 108); + this.lblImageFile.AutoSize = true; + this.lblImageFile.Location = new System.Drawing.Point(8, 77); this.lblImageFile.Name = "lblImageFile"; - this.lblImageFile.Size = new System.Drawing.Size(64, 17); + this.lblImageFile.Size = new System.Drawing.Size(55, 13); this.lblImageFile.TabIndex = 47; this.lblImageFile.Text = "Imagefile:"; // @@ -393,9 +383,9 @@ // this.btnImageFile.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.btnImageFile.Image = global::GUIPrograms.Properties.Resources.browseButton_Image; - this.btnImageFile.Location = new System.Drawing.Point(476, 103); + this.btnImageFile.Location = new System.Drawing.Point(468, 72); this.btnImageFile.Name = "btnImageFile"; - this.btnImageFile.Size = new System.Drawing.Size(20, 22); + this.btnImageFile.Size = new System.Drawing.Size(31, 23); this.btnImageFile.TabIndex = 4; this.btnImageFile.UseVisualStyleBackColor = true; this.btnImageFile.Click += new System.EventHandler(this.btnImageFile_Click); @@ -405,9 +395,9 @@ this.txtFilename.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.txtFilename.BorderColor = System.Drawing.Color.Empty; - this.txtFilename.Location = new System.Drawing.Point(96, 52); + this.txtFilename.Location = new System.Drawing.Point(97, 47); this.txtFilename.Name = "txtFilename"; - this.txtFilename.Size = new System.Drawing.Size(373, 21); + this.txtFilename.Size = new System.Drawing.Size(365, 21); this.txtFilename.TabIndex = 1; // // txtImageFile @@ -415,9 +405,9 @@ this.txtImageFile.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.txtImageFile.BorderColor = System.Drawing.Color.Empty; - this.txtImageFile.Location = new System.Drawing.Point(96, 103); + this.txtImageFile.Location = new System.Drawing.Point(97, 74); this.txtImageFile.Name = "txtImageFile"; - this.txtImageFile.Size = new System.Drawing.Size(351, 21); + this.txtImageFile.Size = new System.Drawing.Size(328, 21); this.txtImageFile.TabIndex = 3; // // txtTitle @@ -425,24 +415,26 @@ this.txtTitle.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.txtTitle.BorderColor = System.Drawing.Color.Empty; - this.txtTitle.Location = new System.Drawing.Point(96, 26); + this.txtTitle.Location = new System.Drawing.Point(97, 20); this.txtTitle.Name = "txtTitle"; - this.txtTitle.Size = new System.Drawing.Size(373, 21); + this.txtTitle.Size = new System.Drawing.Size(365, 21); this.txtTitle.TabIndex = 0; // // lblTitle // - this.lblTitle.Location = new System.Drawing.Point(8, 30); + this.lblTitle.AutoSize = true; + this.lblTitle.Location = new System.Drawing.Point(8, 23); this.lblTitle.Name = "lblTitle"; - this.lblTitle.Size = new System.Drawing.Size(56, 17); + this.lblTitle.Size = new System.Drawing.Size(31, 13); this.lblTitle.TabIndex = 46; this.lblTitle.Text = "Title:"; // // lblFilename // - this.lblFilename.Location = new System.Drawing.Point(8, 54); + this.lblFilename.AutoSize = true; + this.lblFilename.Location = new System.Drawing.Point(8, 50); this.lblFilename.Name = "lblFilename"; - this.lblFilename.Size = new System.Drawing.Size(64, 17); + this.lblFilename.Size = new System.Drawing.Size(53, 13); this.lblFilename.TabIndex = 45; this.lblFilename.Text = "Filename:"; // @@ -450,9 +442,9 @@ // this.btnFilename.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.btnFilename.Image = global::GUIPrograms.Properties.Resources.browseButton_Image; - this.btnFilename.Location = new System.Drawing.Point(476, 52); + this.btnFilename.Location = new System.Drawing.Point(468, 45); this.btnFilename.Name = "btnFilename"; - this.btnFilename.Size = new System.Drawing.Size(20, 21); + this.btnFilename.Size = new System.Drawing.Size(31, 23); this.btnFilename.TabIndex = 2; this.btnFilename.UseVisualStyleBackColor = true; this.btnFilename.Click += new System.EventHandler(this.btnFilename_Click); @@ -524,8 +516,6 @@ private System.Windows.Forms.Label gameInfoURLLabel; private MediaPortal.UserInterface.Controls.MPButton buttonViewImg; private System.Windows.Forms.ToolTip toolTip1; - private MediaPortal.UserInterface.Controls.MPTextBox txtFilepath; - private MediaPortal.UserInterface.Controls.MPLabel label1; private MediaPortal.UserInterface.Controls.MPButton btnOk; private MediaPortal.UserInterface.Controls.MPComboBox cbRating; private MediaPortal.UserInterface.Controls.MPTextBox txtOverview; Modified: trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/FileDetailsForm.cs =================================================================== --- trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/FileDetailsForm.cs 2007-06-21 22:58:44 UTC (rev 589) +++ trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/FileDetailsForm.cs 2007-06-21 23:20:23 UTC (rev 590) @@ -80,7 +80,6 @@ gbFileDetails.Text = CurApp.Title + ": " + CurFile.Title; txtTitle.Text = m_CurFile.Title; txtFilename.Text = m_CurFile.Filename; - txtFilepath.Text = m_CurFile.Filepath; txtImageFile.Text = m_CurFile.Imagefile; FileItemToGenre(); txtManufacturer.Text = m_CurFile.Manufacturer; @@ -177,7 +176,6 @@ { CurFile.Title = txtTitle.Text; CurFile.Filename = txtFilename.Text; - CurFile.Filepath = txtFilepath.Text; CurFile.Imagefile = txtImageFile.Text; GenreToFileItem(); CurFile.Manufacturer = txtManufacturer.Text; Modified: trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/FileDetailsForm.resx =================================================================== --- trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/FileDetailsForm.resx 2007-06-21 22:58:44 UTC (rev 589) +++ trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/FileDetailsForm.resx 2007-06-21 23:20:23 UTC (rev 590) @@ -120,6 +120,9 @@ <metadata name="toolTip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> <value>17, 17</value> </metadata> + <metadata name="toolTip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> + <value>17, 17</value> + </metadata> <metadata name="openFileDialog1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> <value>109, 17</value> </metadata> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |