[Mp-plugins-svn] SF.net SVN: mp-plugins: [500]
trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt /Design
From: <che...@us...> - 2007-06-10 07:32:22
|
Revision: 500 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=500&view=rev Author: chef_koch Date: 2007-06-10 00:32:21 -0700 (Sun, 10 Jun 2007) Log Message: ----------- minor formatting changes (fixed tabs with 4 spaces to 2) Modified Paths: -------------- trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppFilesImportProgress.Designer.cs trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppFilesView.Designer.cs trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppSettingsBase.Designer.cs trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppSettingsDirCache.Designer.cs trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppSettingsGamebase.Designer.cs trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppSettingsGrouper.Designer.cs trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppSettingsMame.Designer.cs trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppSettingsRoot.Designer.cs trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/SetupForm.Designer.cs Modified: trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppFilesImportProgress.Designer.cs =================================================================== --- trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppFilesImportProgress.Designer.cs 2007-06-09 21:00:05 UTC (rev 499) +++ trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppFilesImportProgress.Designer.cs 2007-06-10 07:32:21 UTC (rev 500) @@ -1,140 +1,140 @@ namespace GUIPrograms.Design { - partial class AppFilesImportProgress + partial class AppFilesImportProgress + { + /// <summary> + /// Required designer variable. + /// </summary> + private System.ComponentModel.IContainer components = null; + + /// <summary> + /// Clean up any resources being used. + /// </summary> + /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> + protected override void Dispose(bool disposing) { - /// <summary> - /// Required designer variable. - /// </summary> - private System.ComponentModel.IContainer components = null; + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } - /// <summary> - /// Clean up any resources being used. - /// </summary> - /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> - protected override void Dispose(bool disposing) - { - if (disposing && (components != null)) - { - components.Dispose(); - } - base.Dispose(disposing); - } + #region Component Designer generated code - #region Component Designer generated code + /// <summary> + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// </summary> + private void InitializeComponent() + { + this.progressBar = new System.Windows.Forms.ProgressBar(); + this.progressTextBox = new System.Windows.Forms.TextBox(); + this.SuspendLayout(); + // + // enabledCheckbox + // + this.toolTip.SetToolTip(this.enabledCheckbox, "Only enabled items will appear in MediaPortal"); + // + // titleTextBox + // + this.toolTip.SetToolTip(this.titleTextBox, "This text will appear in the listitem of MediaPortal\r\n(mandatory)"); + // + // shellexecuteCheckBox + // + this.toolTip.SetToolTip(this.shellexecuteCheckBox, "Enable this if you want to run a program that is associated with a specific file-" + + "extension.\r\nYou can omit the \"Launching Application\" in this case."); + // + // applicationArgumentsLabel + // + this.toolTip.SetToolTip(this.applicationArgumentsLabel, "Optional arguments that are needed to launch the program \r\n\r\n(advanced hint: Use " + + "%FILE% if the filename needs to be placed in some specific place between several" + + " arguments)"); + // + // applicationImageTextBox + // + this.toolTip.SetToolTip(this.applicationImageTextBox, "Optional filename for an image to display in MediaPortal"); + // + // winStyleComboBox + // + this.toolTip.SetToolTip(this.winStyleComboBox, "Appearance of the launched program. \r\nTry HIDDEN or MINIMIZED for a seamless inte" + + "gration in MediaPortal"); + // + // startupDirTextBox + // + this.toolTip.SetToolTip(this.startupDirTextBox, "Optional path that is passed as the launch-directory \r\n\r\n(advanced hint: Use %FIL" + + "EDIR% if you want to use the directory where the launched file is stored)"); + // + // quoteCheckBox + // + this.toolTip.SetToolTip(this.quoteCheckBox, "Quotes are usually needed to handle filenames with spaces correctly. \r\nAvoid doub" + + "le quotes though!"); + // + // allowRefreshCheckBox + // + this.toolTip.SetToolTip(this.allowRefreshCheckBox, "Check this if users can run the import through the REFRESH button in MediaPortal." + + ""); + // + // progressBar + // + this.progressBar.Location = new System.Drawing.Point(0, 97); + this.progressBar.Name = "progressBar"; + this.progressBar.Size = new System.Drawing.Size(350, 31); + this.progressBar.Style = System.Windows.Forms.ProgressBarStyle.Continuous; + this.progressBar.TabIndex = 35; + // + // progressTextBox + // + this.progressTextBox.Location = new System.Drawing.Point(3, 43); + this.progressTextBox.Multiline = true; + this.progressTextBox.Name = "progressTextBox"; + this.progressTextBox.ReadOnly = true; + this.progressTextBox.Size = new System.Drawing.Size(347, 47); + this.progressTextBox.TabIndex = 34; + // + // AppFilesImportProgress + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.Controls.Add(this.progressTextBox); + this.Controls.Add(this.progressBar); + this.Name = "AppFilesImportProgress"; + this.Size = new System.Drawing.Size(497, 550); + this.Load += new System.EventHandler(this.AppFilesImportProgress_Load); + this.Controls.SetChildIndex(this.prePostButton, 0); + this.Controls.SetChildIndex(this.progressBar, 0); + this.Controls.SetChildIndex(this.progressTextBox, 0); + this.Controls.SetChildIndex(this.winTypeLabel, 0); + this.Controls.SetChildIndex(this.enabledCheckbox, 0); + this.Controls.SetChildIndex(this.titleLabel, 0); + this.Controls.SetChildIndex(this.applicationExeLabel, 0); + this.Controls.SetChildIndex(this.titleTextBox, 0); + this.Controls.SetChildIndex(this.applicationExeButton, 0); + this.Controls.SetChildIndex(this.shellexecuteCheckBox, 0); + this.Controls.SetChildIndex(this.waitExitCheckBox, 0); + this.Controls.SetChildIndex(this.applicationImageLabel, 0); + this.Controls.SetChildIndex(this.applicationArgumentsLabel, 0); + this.Controls.SetChildIndex(this.applicationImageTextBox, 0); + this.Controls.SetChildIndex(this.applicationArgumentsTextBox, 0); + this.Controls.SetChildIndex(this.winStyleLabel, 0); + this.Controls.SetChildIndex(this.winStyleComboBox, 0); + this.Controls.SetChildIndex(this.startupDirTextBox, 0); + this.Controls.SetChildIndex(this.startupDirLabel, 0); + this.Controls.SetChildIndex(this.quoteCheckBox, 0); + this.Controls.SetChildIndex(this.applicationImageButton, 0); + this.Controls.SetChildIndex(this.startupDirButton, 0); + this.Controls.SetChildIndex(this.allowRefreshCheckBox, 0); + this.Controls.SetChildIndex(this.informationLabel, 0); + this.Controls.SetChildIndex(this.applicationExeTextBox, 0); + this.ResumeLayout(false); + this.PerformLayout(); - /// <summary> - /// Required method for Designer support - do not modify - /// the contents of this method with the code editor. - /// </summary> - private void InitializeComponent() - { - this.progressBar = new System.Windows.Forms.ProgressBar(); - this.progressTextBox = new System.Windows.Forms.TextBox(); - this.SuspendLayout(); - // - // enabledCheckbox - // - this.toolTip.SetToolTip(this.enabledCheckbox, "Only enabled items will appear in MediaPortal"); - // - // titleTextBox - // - this.toolTip.SetToolTip(this.titleTextBox, "This text will appear in the listitem of MediaPortal\r\n(mandatory)"); - // - // shellexecuteCheckBox - // - this.toolTip.SetToolTip(this.shellexecuteCheckBox, "Enable this if you want to run a program that is associated with a specific file-" + - "extension.\r\nYou can omit the \"Launching Application\" in this case."); - // - // applicationArgumentsLabel - // - this.toolTip.SetToolTip(this.applicationArgumentsLabel, "Optional arguments that are needed to launch the program \r\n\r\n(advanced hint: Use " + - "%FILE% if the filename needs to be placed in some specific place between several" + - " arguments)"); - // - // applicationImageTextBox - // - this.toolTip.SetToolTip(this.applicationImageTextBox, "Optional filename for an image to display in MediaPortal"); - // - // winStyleComboBox - // - this.toolTip.SetToolTip(this.winStyleComboBox, "Appearance of the launched program. \r\nTry HIDDEN or MINIMIZED for a seamless inte" + - "gration in MediaPortal"); - // - // startupDirTextBox - // - this.toolTip.SetToolTip(this.startupDirTextBox, "Optional path that is passed as the launch-directory \r\n\r\n(advanced hint: Use %FIL" + - "EDIR% if you want to use the directory where the launched file is stored)"); - // - // quoteCheckBox - // - this.toolTip.SetToolTip(this.quoteCheckBox, "Quotes are usually needed to handle filenames with spaces correctly. \r\nAvoid doub" + - "le quotes though!"); - // - // allowRefreshCheckBox - // - this.toolTip.SetToolTip(this.allowRefreshCheckBox, "Check this if users can run the import through the REFRESH button in MediaPortal." + - ""); - // - // progressBar - // - this.progressBar.Location = new System.Drawing.Point(0, 97); - this.progressBar.Name = "progressBar"; - this.progressBar.Size = new System.Drawing.Size(350, 31); - this.progressBar.Style = System.Windows.Forms.ProgressBarStyle.Continuous; - this.progressBar.TabIndex = 35; - // - // progressTextBox - // - this.progressTextBox.Location = new System.Drawing.Point(3, 43); - this.progressTextBox.Multiline = true; - this.progressTextBox.Name = "progressTextBox"; - this.progressTextBox.ReadOnly = true; - this.progressTextBox.Size = new System.Drawing.Size(347, 47); - this.progressTextBox.TabIndex = 34; - // - // AppFilesImportProgress - // - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.Controls.Add(this.progressTextBox); - this.Controls.Add(this.progressBar); - this.Name = "AppFilesImportProgress"; - this.Size = new System.Drawing.Size(497, 550); - this.Load += new System.EventHandler(this.AppFilesImportProgress_Load); - this.Controls.SetChildIndex(this.prePostButton, 0); - this.Controls.SetChildIndex(this.progressBar, 0); - this.Controls.SetChildIndex(this.progressTextBox, 0); - this.Controls.SetChildIndex(this.winTypeLabel, 0); - this.Controls.SetChildIndex(this.enabledCheckbox, 0); - this.Controls.SetChildIndex(this.titleLabel, 0); - this.Controls.SetChildIndex(this.applicationExeLabel, 0); - this.Controls.SetChildIndex(this.titleTextBox, 0); - this.Controls.SetChildIndex(this.applicationExeButton, 0); - this.Controls.SetChildIndex(this.shellexecuteCheckBox, 0); - this.Controls.SetChildIndex(this.waitExitCheckBox, 0); - this.Controls.SetChildIndex(this.applicationImageLabel, 0); - this.Controls.SetChildIndex(this.applicationArgumentsLabel, 0); - this.Controls.SetChildIndex(this.applicationImageTextBox, 0); - this.Controls.SetChildIndex(this.applicationArgumentsTextBox, 0); - this.Controls.SetChildIndex(this.winStyleLabel, 0); - this.Controls.SetChildIndex(this.winStyleComboBox, 0); - this.Controls.SetChildIndex(this.startupDirTextBox, 0); - this.Controls.SetChildIndex(this.startupDirLabel, 0); - this.Controls.SetChildIndex(this.quoteCheckBox, 0); - this.Controls.SetChildIndex(this.applicationImageButton, 0); - this.Controls.SetChildIndex(this.startupDirButton, 0); - this.Controls.SetChildIndex(this.allowRefreshCheckBox, 0); - this.Controls.SetChildIndex(this.informationLabel, 0); - this.Controls.SetChildIndex(this.applicationExeTextBox, 0); - this.ResumeLayout(false); - this.PerformLayout(); + } - } + #endregion - #endregion + private System.Windows.Forms.ProgressBar progressBar; + private System.Windows.Forms.TextBox progressTextBox; - private System.Windows.Forms.ProgressBar progressBar; - private System.Windows.Forms.TextBox progressTextBox; - - } -} + } +} \ No newline at end of file Modified: trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppFilesView.Designer.cs =================================================================== --- trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppFilesView.Designer.cs 2007-06-09 21:00:05 UTC (rev 499) +++ trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppFilesView.Designer.cs 2007-06-10 07:32:21 UTC (rev 500) @@ -1,448 +1,448 @@ -namespace GUIPrograms.Design +namespace GUIPrograms.Design { - partial class AppFilesView + partial class AppFilesView + { + /// <summary> + /// Required designer variable. + /// </summary> + private System.ComponentModel.IContainer components = null; + + /// <summary> + /// Clean up any resources being used. + /// </summary> + /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> + protected override void Dispose(bool disposing) { - /// <summary> - /// Required designer variable. - /// </summary> - private System.ComponentModel.IContainer components = null; + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } - /// <summary> - /// Clean up any resources being used. - /// </summary> - /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> - protected override void Dispose(bool disposing) - { - if (disposing && (components != null)) - { - components.Dispose(); - } - base.Dispose(disposing); - } + #region Component Designer generated code - #region Component Designer generated code - - /// <summary> - /// Required method for Designer support - do not modify - /// the contents of this method with the code editor. - /// </summary> - private void InitializeComponent() - { - this.components = new System.ComponentModel.Container(); - System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(AppFilesView)); - this.fileListView = new System.Windows.Forms.ListView(); - this.fileTitle = new System.Windows.Forms.ColumnHeader(); - this.smallImageList = new System.Windows.Forms.ImageList(this.components); - this.newButton = new System.Windows.Forms.Button(); - this.editButton = new System.Windows.Forms.Button(); - this.deleteButton = new System.Windows.Forms.Button(); - this.launchButton = new System.Windows.Forms.Button(); - this.scanImageDirsButton = new System.Windows.Forms.Button(); - this.addFavouriteButton = new System.Windows.Forms.Button(); - this.internetSearchButton = new System.Windows.Forms.Button(); - this.updateDatabaseButton = new System.Windows.Forms.Button(); - this.contextFavouritesMenuStrip = new System.Windows.Forms.ContextMenuStrip(this.components); - this.grouperToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.fileExtensionsTextBox = new System.Windows.Forms.TextBox(); - this.imageDirsTextBox = new System.Windows.Forms.TextBox(); - this.fileDirTextBox = new System.Windows.Forms.TextBox(); - this.fileDirButton = new System.Windows.Forms.Button(); - this.fileExtensionsbutton = new System.Windows.Forms.Button(); - this.imageDirButton = new System.Windows.Forms.Button(); - this.fileExtensionsLabel = new System.Windows.Forms.Label(); - this.imageDirsLabel = new System.Windows.Forms.Label(); - this.fileDirLabel = new System.Windows.Forms.Label(); - this.filesGroupBox = new System.Windows.Forms.GroupBox(); - this.importPlaychoiceCheckBox = new System.Windows.Forms.CheckBox(); - this.importMahjongCheckBox = new System.Windows.Forms.CheckBox(); - this.validImagesCheckBox = new System.Windows.Forms.CheckBox(); - this.importOriginalsCheckBox = new System.Windows.Forms.CheckBox(); - this.FileSettingsGroupBox = new System.Windows.Forms.GroupBox(); - this.gamebaseDBTextBox = new System.Windows.Forms.TextBox(); - this.gamebaseLabel = new System.Windows.Forms.Label(); - this.gamebaseDBButton = new System.Windows.Forms.Button(); - this.toolTip = new System.Windows.Forms.ToolTip(this.components); - this.folderBrowserDialog = new System.Windows.Forms.FolderBrowserDialog(); - this.openFileDialog = new System.Windows.Forms.OpenFileDialog(); - this.contextFavouritesMenuStrip.SuspendLayout(); - this.filesGroupBox.SuspendLayout(); - this.FileSettingsGroupBox.SuspendLayout(); - this.SuspendLayout(); - // - // fileListView - // - this.fileListView.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] { + /// <summary> + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// </summary> + private void InitializeComponent() + { + this.components = new System.ComponentModel.Container(); + System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(AppFilesView)); + this.fileListView = new System.Windows.Forms.ListView(); + this.fileTitle = new System.Windows.Forms.ColumnHeader(); + this.smallImageList = new System.Windows.Forms.ImageList(this.components); + this.newButton = new System.Windows.Forms.Button(); + this.editButton = new System.Windows.Forms.Button(); + this.deleteButton = new System.Windows.Forms.Button(); + this.launchButton = new System.Windows.Forms.Button(); + this.scanImageDirsButton = new System.Windows.Forms.Button(); + this.addFavouriteButton = new System.Windows.Forms.Button(); + this.internetSearchButton = new System.Windows.Forms.Button(); + this.updateDatabaseButton = new System.Windows.Forms.Button(); + this.contextFavouritesMenuStrip = new System.Windows.Forms.ContextMenuStrip(this.components); + this.grouperToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.fileExtensionsTextBox = new System.Windows.Forms.TextBox(); + this.imageDirsTextBox = new System.Windows.Forms.TextBox(); + this.fileDirTextBox = new System.Windows.Forms.TextBox(); + this.fileDirButton = new System.Windows.Forms.Button(); + this.fileExtensionsbutton = new System.Windows.Forms.Button(); + this.imageDirButton = new System.Windows.Forms.Button(); + this.fileExtensionsLabel = new System.Windows.Forms.Label(); + this.imageDirsLabel = new System.Windows.Forms.Label(); + this.fileDirLabel = new System.Windows.Forms.Label(); + this.filesGroupBox = new System.Windows.Forms.GroupBox(); + this.importPlaychoiceCheckBox = new System.Windows.Forms.CheckBox(); + this.importMahjongCheckBox = new System.Windows.Forms.CheckBox(); + this.validImagesCheckBox = new System.Windows.Forms.CheckBox(); + this.importOriginalsCheckBox = new System.Windows.Forms.CheckBox(); + this.FileSettingsGroupBox = new System.Windows.Forms.GroupBox(); + this.gamebaseDBTextBox = new System.Windows.Forms.TextBox(); + this.gamebaseLabel = new System.Windows.Forms.Label(); + this.gamebaseDBButton = new System.Windows.Forms.Button(); + this.toolTip = new System.Windows.Forms.ToolTip(this.components); + this.folderBrowserDialog = new System.Windows.Forms.FolderBrowserDialog(); + this.openFileDialog = new System.Windows.Forms.OpenFileDialog(); + this.contextFavouritesMenuStrip.SuspendLayout(); + this.filesGroupBox.SuspendLayout(); + this.FileSettingsGroupBox.SuspendLayout(); + this.SuspendLayout(); + // + // fileListView + // + this.fileListView.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] { this.fileTitle}); - this.fileListView.FullRowSelect = true; - this.fileListView.HideSelection = false; - this.fileListView.Location = new System.Drawing.Point(8, 19); - this.fileListView.Name = "fileListView"; - this.fileListView.Size = new System.Drawing.Size(276, 343); - this.fileListView.SmallImageList = this.smallImageList; - this.fileListView.TabIndex = 1; - this.fileListView.UseCompatibleStateImageBehavior = false; - this.fileListView.View = System.Windows.Forms.View.Details; - this.fileListView.DoubleClick += new System.EventHandler(this.fileListView_DoubleClick); - this.fileListView.SelectedIndexChanged += new System.EventHandler(this.fileListView_SelectedIndexChanged); - // - // fileTitle - // - this.fileTitle.Text = "Title"; - this.fileTitle.Width = 239; - // - // smallImageList - // - this.smallImageList.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("smallImageList.ImageStream"))); - this.smallImageList.TransparentColor = System.Drawing.Color.Transparent; - this.smallImageList.Images.SetKeyName(0, "folder.ico"); - this.smallImageList.Images.SetKeyName(1, "file.ico"); - this.smallImageList.Images.SetKeyName(2, "shortcut.ico"); - // - // newButton - // - this.newButton.Location = new System.Drawing.Point(299, 19); - this.newButton.Name = "newButton"; - this.newButton.Size = new System.Drawing.Size(81, 23); - this.newButton.TabIndex = 2; - this.newButton.Text = "New"; - this.newButton.UseVisualStyleBackColor = true; - this.newButton.Click += new System.EventHandler(this.newButton_Click); - // - // editButton - // - this.editButton.Location = new System.Drawing.Point(299, 48); - this.editButton.Name = "editButton"; - this.editButton.Size = new System.Drawing.Size(81, 23); - this.editButton.TabIndex = 3; - this.editButton.Text = "Edit"; - this.editButton.UseVisualStyleBackColor = true; - this.editButton.Click += new System.EventHandler(this.editButton_Click); - // - // deleteButton - // - this.deleteButton.Location = new System.Drawing.Point(299, 77); - this.deleteButton.Name = "deleteButton"; - this.deleteButton.Size = new System.Drawing.Size(81, 23); - this.deleteButton.TabIndex = 4; - this.deleteButton.Text = "Delete"; - this.deleteButton.UseVisualStyleBackColor = true; - this.deleteButton.Click += new System.EventHandler(this.deleteButton_Click); - // - // launchButton - // - this.launchButton.Location = new System.Drawing.Point(299, 148); - this.launchButton.Name = "launchButton"; - this.launchButton.Size = new System.Drawing.Size(81, 23); - this.launchButton.TabIndex = 5; - this.launchButton.Text = "Launch"; - this.launchButton.UseVisualStyleBackColor = true; - this.launchButton.Click += new System.EventHandler(this.launchButton_Click); - // - // scanImageDirsButton - // - this.scanImageDirsButton.Location = new System.Drawing.Point(394, 64); - this.scanImageDirsButton.Name = "scanImageDirsButton"; - this.scanImageDirsButton.Size = new System.Drawing.Size(81, 36); - this.scanImageDirsButton.TabIndex = 6; - this.scanImageDirsButton.Text = "(Re)Scan Imagefolders"; - this.scanImageDirsButton.UseVisualStyleBackColor = true; - this.scanImageDirsButton.Click += new System.EventHandler(this.scanImageDirsButton_Click); - // - // addFavouriteButton - // - this.addFavouriteButton.Location = new System.Drawing.Point(299, 106); - this.addFavouriteButton.Name = "addFavouriteButton"; - this.addFavouriteButton.Size = new System.Drawing.Size(81, 36); - this.addFavouriteButton.TabIndex = 7; - this.addFavouriteButton.Text = "Add to favourites"; - this.addFavouriteButton.UseVisualStyleBackColor = true; - this.addFavouriteButton.Click += new System.EventHandler(this.addFavoriteButton_Click); - // - // internetSearchButton - // - this.internetSearchButton.Location = new System.Drawing.Point(394, 106); - this.internetSearchButton.Name = "internetSearchButton"; - this.internetSearchButton.Size = new System.Drawing.Size(81, 36); - this.internetSearchButton.TabIndex = 8; - this.internetSearchButton.Text = "Internet search"; - this.internetSearchButton.UseVisualStyleBackColor = true; - this.internetSearchButton.Click += new System.EventHandler(this.internetSearchButton_Click); - // - // updateDatabaseButton - // - this.updateDatabaseButton.Location = new System.Drawing.Point(394, 19); - this.updateDatabaseButton.Name = "updateDatabaseButton"; - this.updateDatabaseButton.Size = new System.Drawing.Size(81, 35); - this.updateDatabaseButton.TabIndex = 9; - this.updateDatabaseButton.Text = "Update database"; - this.updateDatabaseButton.UseVisualStyleBackColor = true; - this.updateDatabaseButton.Click += new System.EventHandler(this.updateDatabaseButton_Click); - // - // contextFavouritesMenuStrip - // - this.contextFavouritesMenuStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { + this.fileListView.FullRowSelect = true; + this.fileListView.HideSelection = false; + this.fileListView.Location = new System.Drawing.Point(8, 19); + this.fileListView.Name = "fileListView"; + this.fileListView.Size = new System.Drawing.Size(276, 343); + this.fileListView.SmallImageList = this.smallImageList; + this.fileListView.TabIndex = 1; + this.fileListView.UseCompatibleStateImageBehavior = false; + this.fileListView.View = System.Windows.Forms.View.Details; + this.fileListView.DoubleClick += new System.EventHandler(this.fileListView_DoubleClick); + this.fileListView.SelectedIndexChanged += new System.EventHandler(this.fileListView_SelectedIndexChanged); + // + // fileTitle + // + this.fileTitle.Text = "Title"; + this.fileTitle.Width = 239; + // + // smallImageList + // + this.smallImageList.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("smallImageList.ImageStream"))); + this.smallImageList.TransparentColor = System.Drawing.Color.Transparent; + this.smallImageList.Images.SetKeyName(0, "folder.ico"); + this.smallImageList.Images.SetKeyName(1, "file.ico"); + this.smallImageList.Images.SetKeyName(2, "shortcut.ico"); + // + // newButton + // + this.newButton.Location = new System.Drawing.Point(299, 19); + this.newButton.Name = "newButton"; + this.newButton.Size = new System.Drawing.Size(81, 23); + this.newButton.TabIndex = 2; + this.newButton.Text = "New"; + this.newButton.UseVisualStyleBackColor = true; + this.newButton.Click += new System.EventHandler(this.newButton_Click); + // + // editButton + // + this.editButton.Location = new System.Drawing.Point(299, 48); + this.editButton.Name = "editButton"; + this.editButton.Size = new System.Drawing.Size(81, 23); + this.editButton.TabIndex = 3; + this.editButton.Text = "Edit"; + this.editButton.UseVisualStyleBackColor = true; + this.editButton.Click += new System.EventHandler(this.editButton_Click); + // + // deleteButton + // + this.deleteButton.Location = new System.Drawing.Point(299, 77); + this.deleteButton.Name = "deleteButton"; + this.deleteButton.Size = new System.Drawing.Size(81, 23); + this.deleteButton.TabIndex = 4; + this.deleteButton.Text = "Delete"; + this.deleteButton.UseVisualStyleBackColor = true; + this.deleteButton.Click += new System.EventHandler(this.deleteButton_Click); + // + // launchButton + // + this.launchButton.Location = new System.Drawing.Point(299, 148); + this.launchButton.Name = "launchButton"; + this.launchButton.Size = new System.Drawing.Size(81, 23); + this.launchButton.TabIndex = 5; + this.launchButton.Text = "Launch"; + this.launchButton.UseVisualStyleBackColor = true; + this.launchButton.Click += new System.EventHandler(this.launchButton_Click); + // + // scanImageDirsButton + // + this.scanImageDirsButton.Location = new System.Drawing.Point(394, 64); + this.scanImageDirsButton.Name = "scanImageDirsButton"; + this.scanImageDirsButton.Size = new System.Drawing.Size(81, 36); + this.scanImageDirsButton.TabIndex = 6; + this.scanImageDirsButton.Text = "(Re)Scan Imagefolders"; + this.scanImageDirsButton.UseVisualStyleBackColor = true; + this.scanImageDirsButton.Click += new System.EventHandler(this.scanImageDirsButton_Click); + // + // addFavouriteButton + // + this.addFavouriteButton.Location = new System.Drawing.Point(299, 106); + this.addFavouriteButton.Name = "addFavouriteButton"; + this.addFavouriteButton.Size = new System.Drawing.Size(81, 36); + this.addFavouriteButton.TabIndex = 7; + this.addFavouriteButton.Text = "Add to favourites"; + this.addFavouriteButton.UseVisualStyleBackColor = true; + this.addFavouriteButton.Click += new System.EventHandler(this.addFavoriteButton_Click); + // + // internetSearchButton + // + this.internetSearchButton.Location = new System.Drawing.Point(394, 106); + this.internetSearchButton.Name = "internetSearchButton"; + this.internetSearchButton.Size = new System.Drawing.Size(81, 36); + this.internetSearchButton.TabIndex = 8; + this.internetSearchButton.Text = "Internet search"; + this.internetSearchButton.UseVisualStyleBackColor = true; + this.internetSearchButton.Click += new System.EventHandler(this.internetSearchButton_Click); + // + // updateDatabaseButton + // + this.updateDatabaseButton.Location = new System.Drawing.Point(394, 19); + this.updateDatabaseButton.Name = "updateDatabaseButton"; + this.updateDatabaseButton.Size = new System.Drawing.Size(81, 35); + this.updateDatabaseButton.TabIndex = 9; + this.updateDatabaseButton.Text = "Update database"; + this.updateDatabaseButton.UseVisualStyleBackColor = true; + this.updateDatabaseButton.Click += new System.EventHandler(this.updateDatabaseButton_Click); + // + // contextFavouritesMenuStrip + // + this.contextFavouritesMenuStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.grouperToolStripMenuItem}); - this.contextFavouritesMenuStrip.Name = "contextFavouritesMenuStrip"; - this.contextFavouritesMenuStrip.Size = new System.Drawing.Size(118, 26); - this.contextFavouritesMenuStrip.Opening += new System.ComponentModel.CancelEventHandler(this.contextFavouritesMenuStrip_Opening); - // - // grouperToolStripMenuItem - // - this.grouperToolStripMenuItem.Name = "grouperToolStripMenuItem"; - this.grouperToolStripMenuItem.Size = new System.Drawing.Size(117, 22); - this.grouperToolStripMenuItem.Text = "Grouper"; - // - // fileExtensionsTextBox - // - this.fileExtensionsTextBox.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.fileExtensionsTextBox.Location = new System.Drawing.Point(85, 71); - this.fileExtensionsTextBox.Name = "fileExtensionsTextBox"; - this.fileExtensionsTextBox.Size = new System.Drawing.Size(330, 20); - this.fileExtensionsTextBox.TabIndex = 28; - // - // imageDirsTextBox - // - this.imageDirsTextBox.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.imageDirsTextBox.Location = new System.Drawing.Point(85, 45); - this.imageDirsTextBox.Name = "imageDirsTextBox"; - this.imageDirsTextBox.Size = new System.Drawing.Size(330, 20); - this.imageDirsTextBox.TabIndex = 27; - // - // fileDirTextBox - // - this.fileDirTextBox.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.fileDirTextBox.Location = new System.Drawing.Point(85, 19); - this.fileDirTextBox.Name = "fileDirTextBox"; - this.fileDirTextBox.Size = new System.Drawing.Size(330, 20); - this.fileDirTextBox.TabIndex = 26; - // - // fileDirButton - // - this.fileDirButton.Image = ((System.Drawing.Image)(resources.GetObject("fileDirButton.Image"))); - this.fileDirButton.Location = new System.Drawing.Point(426, 16); - this.fileDirButton.Name = "fileDirButton"; - this.fileDirButton.Size = new System.Drawing.Size(31, 23); - this.fileDirButton.TabIndex = 39; - this.fileDirButton.UseVisualStyleBackColor = true; - this.fileDirButton.Click += new System.EventHandler(this.fileDirButton_Click); - // - // fileExtensionsbutton - // - this.fileExtensionsbutton.Image = ((System.Drawing.Image)(resources.GetObject("fileExtensionsbutton.Image"))); - this.fileExtensionsbutton.Location = new System.Drawing.Point(426, 68); - this.fileExtensionsbutton.Name = "fileExtensionsbutton"; - this.fileExtensionsbutton.Size = new System.Drawing.Size(31, 23); - this.fileExtensionsbutton.TabIndex = 38; - this.fileExtensionsbutton.UseVisualStyleBackColor = true; - this.fileExtensionsbutton.Click += new System.EventHandler(this.fileExtensionsbutton_Click); - // - // imageDirButton - // - this.imageDirButton.Image = ((System.Drawing.Image)(resources.GetObject("imageDirButton.Image"))); - this.imageDirButton.Location = new System.Drawing.Point(426, 42); - this.imageDirButton.Name = "imageDirButton"; - this.imageDirButton.Size = new System.Drawing.Size(31, 23); - this.imageDirButton.TabIndex = 37; - this.imageDirButton.UseVisualStyleBackColor = true; - this.imageDirButton.Click += new System.EventHandler(this.imageDirButton_Click); - // - // fileExtensionsLabel - // - this.fileExtensionsLabel.Location = new System.Drawing.Point(2, 71); - this.fileExtensionsLabel.Name = "fileExtensionsLabel"; - this.fileExtensionsLabel.Size = new System.Drawing.Size(93, 20); - this.fileExtensionsLabel.TabIndex = 36; - this.fileExtensionsLabel.Text = "Fileextensions:"; - this.fileExtensionsLabel.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; - // - // imageDirsLabel - // - this.imageDirsLabel.Location = new System.Drawing.Point(2, 43); - this.imageDirsLabel.Name = "imageDirsLabel"; - this.imageDirsLabel.Size = new System.Drawing.Size(93, 20); - this.imageDirsLabel.TabIndex = 35; - this.imageDirsLabel.Text = "Image Dir:"; - this.imageDirsLabel.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; - // - // fileDirLabel - // - this.fileDirLabel.Location = new System.Drawing.Point(2, 19); - this.fileDirLabel.Name = "fileDirLabel"; - this.fileDirLabel.Size = new System.Drawing.Size(93, 20); - this.fileDirLabel.TabIndex = 34; - this.fileDirLabel.Text = "File Directory(s):"; - this.fileDirLabel.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; - // - // filesGroupBox - // - this.filesGroupBox.BackColor = System.Drawing.SystemColors.Control; - this.filesGroupBox.Controls.Add(this.importPlaychoiceCheckBox); - this.filesGroupBox.Controls.Add(this.importMahjongCheckBox); - this.filesGroupBox.Controls.Add(this.validImagesCheckBox); - this.filesGroupBox.Controls.Add(this.importOriginalsCheckBox); - this.filesGroupBox.Controls.Add(this.fileListView); - this.filesGroupBox.Controls.Add(this.newButton); - this.filesGroupBox.Controls.Add(this.editButton); - this.filesGroupBox.Controls.Add(this.deleteButton); - this.filesGroupBox.Controls.Add(this.launchButton); - this.filesGroupBox.Controls.Add(this.updateDatabaseButton); - this.filesGroupBox.Controls.Add(this.scanImageDirsButton); - this.filesGroupBox.Controls.Add(this.addFavouriteButton); - this.filesGroupBox.Controls.Add(this.internetSearchButton); - this.filesGroupBox.FlatStyle = System.Windows.Forms.FlatStyle.System; - this.filesGroupBox.Location = new System.Drawing.Point(3, 4); - this.filesGroupBox.Name = "filesGroupBox"; - this.filesGroupBox.Size = new System.Drawing.Size(481, 387); - this.filesGroupBox.TabIndex = 40; - this.filesGroupBox.TabStop = false; - this.filesGroupBox.Text = "Files"; - // - // importPlaychoiceCheckBox - // - this.importPlaychoiceCheckBox.AutoSize = true; - this.importPlaychoiceCheckBox.Location = new System.Drawing.Point(299, 345); - this.importPlaychoiceCheckBox.Name = "importPlaychoiceCheckBox"; - this.importPlaychoiceCheckBox.Size = new System.Drawing.Size(161, 17); - this.importPlaychoiceCheckBox.TabIndex = 87; - this.importPlaychoiceCheckBox.Text = "Import Playchoice/Vs games"; - this.importPlaychoiceCheckBox.UseVisualStyleBackColor = true; - // - // importMahjongCheckBox - // - this.importMahjongCheckBox.AutoSize = true; - this.importMahjongCheckBox.Location = new System.Drawing.Point(299, 321); - this.importMahjongCheckBox.Name = "importMahjongCheckBox"; - this.importMahjongCheckBox.Size = new System.Drawing.Size(133, 17); - this.importMahjongCheckBox.TabIndex = 86; - this.importMahjongCheckBox.Text = "Import Mahjong games"; - this.importMahjongCheckBox.UseVisualStyleBackColor = true; - // - // validImagesCheckBox - // - this.validImagesCheckBox.AutoSize = true; - this.validImagesCheckBox.Location = new System.Drawing.Point(299, 275); - this.validImagesCheckBox.Name = "validImagesCheckBox"; - this.validImagesCheckBox.Size = new System.Drawing.Size(151, 17); - this.validImagesCheckBox.TabIndex = 84; - this.validImagesCheckBox.Text = "Only files with valid images"; - this.validImagesCheckBox.UseVisualStyleBackColor = true; - // - // importOriginalsCheckBox - // - this.importOriginalsCheckBox.AutoSize = true; - this.importOriginalsCheckBox.Location = new System.Drawing.Point(299, 298); - this.importOriginalsCheckBox.Name = "importOriginalsCheckBox"; - this.importOriginalsCheckBox.Size = new System.Drawing.Size(119, 17); - this.importOriginalsCheckBox.TabIndex = 85; - this.importOriginalsCheckBox.Text = "Only import originals"; - this.importOriginalsCheckBox.UseVisualStyleBackColor = true; - // - // FileSettingsGroupBox - // - this.FileSettingsGroupBox.BackColor = System.Drawing.SystemColors.Control; - this.FileSettingsGroupBox.Controls.Add(this.fileDirTextBox); - this.FileSettingsGroupBox.Controls.Add(this.gamebaseDBTextBox); - this.FileSettingsGroupBox.Controls.Add(this.gamebaseLabel); - this.FileSettingsGroupBox.Controls.Add(this.fileDirLabel); - this.FileSettingsGroupBox.Controls.Add(this.gamebaseDBButton); - this.FileSettingsGroupBox.Controls.Add(this.fileDirButton); - this.FileSettingsGroupBox.Controls.Add(this.fileExtensionsbutton); - this.FileSettingsGroupBox.Controls.Add(this.imageDirsTextBox); - this.FileSettingsGroupBox.Controls.Add(this.imageDirButton); - this.FileSettingsGroupBox.Controls.Add(this.fileExtensionsTextBox); - this.FileSettingsGroupBox.Controls.Add(this.fileExtensionsLabel); - this.FileSettingsGroupBox.Controls.Add(this.imageDirsLabel); - this.FileSettingsGroupBox.FlatStyle = System.Windows.Forms.FlatStyle.System; - this.FileSettingsGroupBox.Location = new System.Drawing.Point(6, 397); - this.FileSettingsGroupBox.Name = "FileSettingsGroupBox"; - this.FileSettingsGroupBox.Size = new System.Drawing.Size(478, 150); - this.FileSettingsGroupBox.TabIndex = 41; - this.FileSettingsGroupBox.TabStop = false; - this.FileSettingsGroupBox.Text = "Filesettings"; - // - // gamebaseDBTextBox - // - this.gamebaseDBTextBox.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.gamebaseDBTextBox.Location = new System.Drawing.Point(85, 96); - this.gamebaseDBTextBox.Name = "gamebaseDBTextBox"; - this.gamebaseDBTextBox.Size = new System.Drawing.Size(330, 20); - this.gamebaseDBTextBox.TabIndex = 89; - this.toolTip.SetToolTip(this.gamebaseDBTextBox, "Select a gamebase (*.mdb) file to import\r\n"); - // - // gamebaseLabel - // - this.gamebaseLabel.Location = new System.Drawing.Point(2, 96); - this.gamebaseLabel.Name = "gamebaseLabel"; - this.gamebaseLabel.Size = new System.Drawing.Size(93, 20); - this.gamebaseLabel.TabIndex = 88; - this.gamebaseLabel.Text = "Gamebase DB"; - // - // gamebaseDBButton - // - this.gamebaseDBButton.Location = new System.Drawing.Point(426, 93); - this.gamebaseDBButton.Name = "gamebaseDBButton"; - this.gamebaseDBButton.Size = new System.Drawing.Size(31, 23); - this.gamebaseDBButton.TabIndex = 90; - this.gamebaseDBButton.UseVisualStyleBackColor = true; - this.gamebaseDBButton.Click += new System.EventHandler(this.gamebaseDBButton_Click); - // - // openFileDialog - // - this.openFileDialog.FileName = "openFileDialog1"; - // - // AppFilesView - // - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.Controls.Add(this.FileSettingsGroupBox); - this.Controls.Add(this.filesGroupBox); - this.Name = "AppFilesView"; - this.Size = new System.Drawing.Size(521, 574); - this.Load += new System.EventHandler(this.AppFilesView_Load); - this.contextFavouritesMenuStrip.ResumeLayout(false); - this.filesGroupBox.ResumeLayout(false); - this.filesGroupBox.PerformLayout(); - this.FileSettingsGroupBox.ResumeLayout(false); - this.FileSettingsGroupBox.PerformLayout(); - this.ResumeLayout(false); + this.contextFavouritesMenuStrip.Name = "contextFavouritesMenuStrip"; + this.contextFavouritesMenuStrip.Size = new System.Drawing.Size(118, 26); + this.contextFavouritesMenuStrip.Opening += new System.ComponentModel.CancelEventHandler(this.contextFavouritesMenuStrip_Opening); + // + // grouperToolStripMenuItem + // + this.grouperToolStripMenuItem.Name = "grouperToolStripMenuItem"; + this.grouperToolStripMenuItem.Size = new System.Drawing.Size(117, 22); + this.grouperToolStripMenuItem.Text = "Grouper"; + // + // fileExtensionsTextBox + // + this.fileExtensionsTextBox.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.fileExtensionsTextBox.Location = new System.Drawing.Point(85, 71); + this.fileExtensionsTextBox.Name = "fileExtensionsTextBox"; + this.fileExtensionsTextBox.Size = new System.Drawing.Size(330, 20); + this.fileExtensionsTextBox.TabIndex = 28; + // + // imageDirsTextBox + // + this.imageDirsTextBox.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.imageDirsTextBox.Location = new System.Drawing.Point(85, 45); + this.imageDirsTextBox.Name = "imageDirsTextBox"; + this.imageDirsTextBox.Size = new System.Drawing.Size(330, 20); + this.imageDirsTextBox.TabIndex = 27; + // + // fileDirTextBox + // + this.fileDirTextBox.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.fileDirTextBox.Location = new System.Drawing.Point(85, 19); + this.fileDirTextBox.Name = "fileDirTextBox"; + this.fileDirTextBox.Size = new System.Drawing.Size(330, 20); + this.fileDirTextBox.TabIndex = 26; + // + // fileDirButton + // + this.fileDirButton.Image = ((System.Drawing.Image)(resources.GetObject("fileDirButton.Image"))); + this.fileDirButton.Location = new System.Drawing.Point(426, 16); + this.fileDirButton.Name = "fileDirButton"; + this.fileDirButton.Size = new System.Drawing.Size(31, 23); + this.fileDirButton.TabIndex = 39; + this.fileDirButton.UseVisualStyleBackColor = true; + this.fileDirButton.Click += new System.EventHandler(this.fileDirButton_Click); + // + // fileExtensionsbutton + // + this.fileExtensionsbutton.Image = ((System.Drawing.Image)(resources.GetObject("fileExtensionsbutton.Image"))); + this.fileExtensionsbutton.Location = new System.Drawing.Point(426, 68); + this.fileExtensionsbutton.Name = "fileExtensionsbutton"; + this.fileExtensionsbutton.Size = new System.Drawing.Size(31, 23); + this.fileExtensionsbutton.TabIndex = 38; + this.fileExtensionsbutton.UseVisualStyleBackColor = true; + this.fileExtensionsbutton.Click += new System.EventHandler(this.fileExtensionsbutton_Click); + // + // imageDirButton + // + this.imageDirButton.Image = ((System.Drawing.Image)(resources.GetObject("imageDirButton.Image"))); + this.imageDirButton.Location = new System.Drawing.Point(426, 42); + this.imageDirButton.Name = "imageDirButton"; + this.imageDirButton.Size = new System.Drawing.Size(31, 23); + this.imageDirButton.TabIndex = 37; + this.imageDirButton.UseVisualStyleBackColor = true; + this.imageDirButton.Click += new System.EventHandler(this.imageDirButton_Click); + // + // fileExtensionsLabel + // + this.fileExtensionsLabel.Location = new System.Drawing.Point(2, 71); + this.fileExtensionsLabel.Name = "fileExtensionsLabel"; + this.fileExtensionsLabel.Size = new System.Drawing.Size(93, 20); + this.fileExtensionsLabel.TabIndex = 36; + this.fileExtensionsLabel.Text = "Fileextensions:"; + this.fileExtensionsLabel.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; + // + // imageDirsLabel + // + this.imageDirsLabel.Location = new System.Drawing.Point(2, 43); + this.imageDirsLabel.Name = "imageDirsLabel"; + this.imageDirsLabel.Size = new System.Drawing.Size(93, 20); + this.imageDirsLabel.TabIndex = 35; + this.imageDirsLabel.Text = "Image Dir:"; + this.imageDirsLabel.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; + // + // fileDirLabel + // + this.fileDirLabel.Location = new System.Drawing.Point(2, 19); + this.fileDirLabel.Name = "fileDirLabel"; + this.fileDirLabel.Size = new System.Drawing.Size(93, 20); + this.fileDirLabel.TabIndex = 34; + this.fileDirLabel.Text = "File Directory(s):"; + this.fileDirLabel.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; + // + // filesGroupBox + // + this.filesGroupBox.BackColor = System.Drawing.SystemColors.Control; + this.filesGroupBox.Controls.Add(this.importPlaychoiceCheckBox); + this.filesGroupBox.Controls.Add(this.importMahjongCheckBox); + this.filesGroupBox.Controls.Add(this.validImagesCheckBox); + this.filesGroupBox.Controls.Add(this.importOriginalsCheckBox); + this.filesGroupBox.Controls.Add(this.fileListView); + this.filesGroupBox.Controls.Add(this.newButton); + this.filesGroupBox.Controls.Add(this.editButton); + this.filesGroupBox.Controls.Add(this.deleteButton); + this.filesGroupBox.Controls.Add(this.launchButton); + this.filesGroupBox.Controls.Add(this.updateDatabaseButton); + this.filesGroupBox.Controls.Add(this.scanImageDirsButton); + this.filesGroupBox.Controls.Add(this.addFavouriteButton); + this.filesGroupBox.Controls.Add(this.internetSearchButton); + this.filesGroupBox.FlatStyle = System.Windows.Forms.FlatStyle.System; + this.filesGroupBox.Location = new System.Drawing.Point(3, 4); + this.filesGroupBox.Name = "filesGroupBox"; + this.filesGroupBox.Size = new System.Drawing.Size(481, 387); + this.filesGroupBox.TabIndex = 40; + this.filesGroupBox.TabStop = false; + this.filesGroupBox.Text = "Files"; + // + // importPlaychoiceCheckBox + // + this.importPlaychoiceCheckBox.AutoSize = true; + this.importPlaychoiceCheckBox.Location = new System.Drawing.Point(299, 345); + this.importPlaychoiceCheckBox.Name = "importPlaychoiceCheckBox"; + this.importPlaychoiceCheckBox.Size = new System.Drawing.Size(161, 17); + this.importPlaychoiceCheckBox.TabIndex = 87; + this.importPlaychoiceCheckBox.Text = "Import Playchoice/Vs games"; + this.importPlaychoiceCheckBox.UseVisualStyleBackColor = true; + // + // importMahjongCheckBox + // + this.importMahjongCheckBox.AutoSize = true; + this.importMahjongCheckBox.Location = new System.Drawing.Point(299, 321); + this.importMahjongCheckBox.Name = "importMahjongCheckBox"; + this.importMahjongCheckBox.Size = new System.Drawing.Size(133, 17); + this.importMahjongCheckBox.TabIndex = 86; + this.importMahjongCheckBox.Text = "Import Mahjong games"; + this.importMahjongCheckBox.UseVisualStyleBackColor = true; + // + // validImagesCheckBox + // + this.validImagesCheckBox.AutoSize = true; + this.validImagesCheckBox.Location = new System.Drawing.Point(299, 275); + this.validImagesCheckBox.Name = "validImagesCheckBox"; + this.validImagesCheckBox.Size = new System.Drawing.Size(151, 17); + this.validImagesCheckBox.TabIndex = 84; + this.validImagesCheckBox.Text = "Only files with valid images"; + this.validImagesCheckBox.UseVisualStyleBackColor = true; + // + // importOriginalsCheckBox + // + this.importOriginalsCheckBox.AutoSize = true; + this.importOriginalsCheckBox.Location = new System.Drawing.Point(299, 298); + this.importOriginalsCheckBox.Name = "importOriginalsCheckBox"; + this.importOriginalsCheckBox.Size = new System.Drawing.Size(119, 17); + this.importOriginalsCheckBox.TabIndex = 85; + this.importOriginalsCheckBox.Text = "Only import originals"; + this.importOriginalsCheckBox.UseVisualStyleBackColor = true; + // + // FileSettingsGroupBox + // + this.FileSettingsGroupBox.BackColor = System.Drawing.SystemColors.Control; + this.FileSettingsGroupBox.Controls.Add(this.fileDirTextBox); + this.FileSettingsGroupBox.Controls.Add(this.gamebaseDBTextBox); + this.FileSettingsGroupBox.Controls.Add(this.gamebaseLabel); + this.FileSettingsGroupBox.Controls.Add(this.fileDirLabel); + this.FileSettingsGroupBox.Controls.Add(this.gamebaseDBButton); + this.FileSettingsGroupBox.Controls.Add(this.fileDirButton); + this.FileSettingsGroupBox.Controls.Add(this.fileExtensionsbutton); + this.FileSettingsGroupBox.Controls.Add(this.imageDirsTextBox); + this.FileSettingsGroupBox.Controls.Add(this.imageDirButton); + this.FileSettingsGroupBox.Controls.Add(this.fileExtensionsTextBox); + this.FileSettingsGroupBox.Controls.Add(this.fileExtensionsLabel); + this.FileSettingsGroupBox.Controls.Add(this.imageDirsLabel); + this.FileSettingsGroupBox.FlatStyle = System.Windows.Forms.FlatStyle.System; + this.FileSettingsGroupBox.Location = new System.Drawing.Point(6, 397); + this.FileSettingsGroupBox.Name = "FileSettingsGroupBox"; + this.FileSettingsGroupBox.Size = new System.Drawing.Size(478, 150); + this.FileSettingsGroupBox.TabIndex = 41; + this.FileSettingsGroupBox.TabStop = false; + this.FileSettingsGroupBox.Text = "Filesettings"; + // + // gamebaseDBTextBox + // + this.gamebaseDBTextBox.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.gamebaseDBTextBox.Location = new System.Drawing.Point(85, 96); + this.gamebaseDBTextBox.Name = "gamebaseDBTextBox"; + this.gamebaseDBTextBox.Size = new System.Drawing.Size(330, 20); + this.gamebaseDBTextBox.TabIndex = 89; + this.toolTip.SetToolTip(this.gamebaseDBTextBox, "Select a gamebase (*.mdb) file to import\r\n"); + // + // gamebaseLabel + // + this.gamebaseLabel.Location = new System.Drawing.Point(2, 96); + this.gamebaseLabel.Name = "gamebaseLabel"; + this.gamebaseLabel.Size = new System.Drawing.Size(93, 20); + this.gamebaseLabel.TabIndex = 88; + this.gamebaseLabel.Text = "Gamebase DB"; + // + // gamebaseDBButton + // + this.gamebaseDBButton.Location = new System.Drawing.Point(426, 93); + this.gamebaseDBButton.Name = "gamebaseDBButton"; + this.gamebaseDBButton.Size = new System.Drawing.Size(31, 23); + this.gamebaseDBButton.TabIndex = 90; + this.gamebaseDBButton.UseVisualStyleBackColor = true; + this.gamebaseDBButton.Click += new System.EventHandler(this.gamebaseDBButton_Click); + // + // openFileDialog + // + this.openFileDialog.FileName = "openFileDialog1"; + // + // AppFilesView + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.Controls.Add(this.FileSettingsGroupBox); + this.Controls.Add(this.filesGroupBox); + this.Name = "AppFilesView"; + this.Size = new System.Drawing.Size(521, 574); + this.Load += new System.EventHandler(this.AppFilesView_Load); + this.contextFavouritesMenuStrip.ResumeLayout(false); + this.filesGroupBox.ResumeLayout(false); + this.filesGroupBox.PerformLayout(); + this.FileSettingsGroupBox.ResumeLayout(false); + this.FileSettingsGroupBox.PerformLayout(); + this.ResumeLayout(false); - } + } - #endregion + #endregion - private System.Windows.Forms.ListView fileListView; - private System.Windows.Forms.Button newButton; - private System.Windows.Forms.Button editButton; - private System.Windows.Forms.Button deleteButton; - private System.Windows.Forms.Button launchButton; - private System.Windows.Forms.Button scanImageDirsButton; - private System.Windows.Forms.Button addFavouriteButton; - private System.Windows.Forms.Button internetSearchButton; - private System.Windows.Forms.Button updateDatabaseButton; - private System.Windows.Forms.ColumnHeader fileTitle; - private System.Windows.Forms.ContextMenuStrip contextFavouritesMenuStrip; - private System.Windows.Forms.ToolStripMenuItem grouperToolStripMenuItem; - private System.Windows.Forms.ImageList smallImageList; - protected System.Windows.Forms.TextBox fileExtensionsTextBox; - protected System.Windows.Forms.TextBox imageDirsTextBox; - protected System.Windows.Forms.TextBox fileDirTextBox; - protected System.Windows.Forms.Button fileDirButton; - protected System.Windows.Forms.Button fileExtensionsbutton; - protected System.Windows.Forms.Button imageDirButton; - protected System.Windows.Forms.Label fileExtensionsLabel; - protected System.Windows.Forms.Label imageDirsLabel; - protected System.Windows.Forms.Label fileDirLabel; - private System.Windows.Forms.GroupBox filesGroupBox; - private System.Windows.Forms.GroupBox FileSettingsGroupBox; - private System.Windows.Forms.ToolTip toolTip; - private System.Windows.Forms.FolderBrowserDialog folderBrowserDialog; - private System.Windows.Forms.CheckBox importPlaychoiceCheckBox; - private System.Windows.Forms.CheckBox importMahjongCheckBox; - private System.Windows.Forms.CheckBox validImagesCheckBox; - private System.Windows.Forms.CheckBox importOriginalsCheckBox; - private System.Windows.Forms.TextBox gamebaseDBTextBox; - private System.Windows.Forms.Label gamebaseLabel; - private System.Windows.Forms.Button gamebaseDBButton... [truncated message content] |
[Mp-plugins-svn] SF.net SVN: mp-plugins: [510]
trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt /Design
From: <che...@us...> - 2007-06-10 20:58:26
|
Revision: 510 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=510&view=rev Author: chef_koch Date: 2007-06-10 13:58:23 -0700 (Sun, 10 Jun 2007) Log Message: ----------- merged first layout redesign - revert this pls, if you don't like it should be the last merge from old plugin, so all future code changes i'll made will be exclusive for new-MyPrograms Modified Paths: -------------- trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/FileInfoScraperForm.cs trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/FileInfoScraperForm.resx Modified: trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/FileInfoScraperForm.cs =================================================================== --- trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/FileInfoScraperForm.cs 2007-06-10 20:11:31 UTC (rev 509) +++ trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/FileInfoScraperForm.cs 2007-06-10 20:58:23 UTC (rev 510) @@ -28,13 +28,14 @@ using System.Diagnostics; using System.Drawing; using System.Windows.Forms; +using System.Threading; -using GUIPrograms; -using GUIPrograms.Database; +using MediaPortal.GUI.Library; + using GUIPrograms.ApplicationItems; using GUIPrograms.FileItems; +using GUIPrograms.Imports; - namespace GUIPrograms.Design { /// <summary> @@ -42,52 +43,60 @@ /// </summary> public class FileInfoScraperForm : Form { + #region InitControls + private ApplicationItem m_CurApp; - private Panel leftPanel; - private Panel rightPanel; - private Splitter splitterVert; - private ListView FileList; + private MediaPortal.UserInterface.Controls.MPListView listViewFileList; private ColumnHeader FileTitle; - private ColumnHeader columnHeader1; private ColumnHeader status; - private ColumnHeader columnHeader2; - private ListView MatchList; - private Label lblFiles; - private Label lblMatches; - private Button btnStartSearch; - private Button btnSaveSearch; - private Button btnCancel; - private LinkLabel allGameLink; - private Button checkAllButton; + private MediaPortal.UserInterface.Controls.MPButton buttonStartSearch; + private MediaPortal.UserInterface.Controls.MPButton buttonSaveSearch; + private MediaPortal.UserInterface.Controls.MPButton buttonClose; + private LinkLabel linkLabelAllGame; private ToolTip toolTip1; - private Button uncheckAllButton; - private Button buttonSelectBestMatch; - private Label filterLabel; - private ComboBox filterComboBox; - private Button ResetFilterButton; + private MediaPortal.UserInterface.Controls.MPComboBox filterComboBox; + private MediaPortal.UserInterface.Controls.MPButton ResetFilterButton; private NumericUpDown MinRelevanceNum; - private Label label1; - private Button LaunchURLButton; + private MediaPortal.UserInterface.Controls.MPLabel label1; private Panel bottomPanel; private ContextMenu menuFileList; private MenuItem mnuCheckWithoutImages; private MenuItem mnuCheckWithoutOverview; - private ProgressBar progressBar; - private Panel progressPanel; - private Label progressStatusLabel; - private Button cancelButton; private IContainer components; - - int mStartTime = 0; // timer stuff private ContextMenu menuSaveDetails; private MenuItem menuItem4; private MenuItem menuDataAndImages; private MenuItem menuData; private MenuItem menuImages; + private MediaPortal.UserInterface.Controls.MPGroupBox groupBoxMatchList; + private MediaPortal.UserInterface.Controls.MPListView listViewMatchList; + private ColumnHeader columnHeader1; + private ColumnHeader columnHeader2; + private MediaPortal.UserInterface.Controls.MPGroupBox groupBoxFileList; + private MediaPortal.UserInterface.Controls.MPCheckBox checkboxFileList; private MediaPortal.UserInterface.Controls.MPLabel label2; + private MediaPortal.UserInterface.Controls.MPLabel labelLaunchUrlInfo; + + #endregion + + #region Variables / Init + + int mStartTime = 0; + private SplitContainer splitContainer1; + private MediaPortal.UserInterface.Controls.MPGroupBox groupBoxFilter; + private StatusStrip statusStrip; + private ToolStripStatusLabel toolStripStatusLabel; + private ToolStripProgressBar toolStripProgressBar; + private MediaPortal.UserInterface.Controls.MPLabel labelPlatform; + private ToolStripDropDownButton toolStripDropDownButton1; + private ToolStripMenuItem cancelSearchToolStripMenuItem; // timer stuff + + bool isSearching = false; bool stopSearching = false; + ScraperSaveType saveType = ScraperSaveType.DataAndImages; + public ApplicationItem CurApp { get @@ -136,549 +145,207 @@ base.Dispose(disposing); } - #region Windows Form Designer generated code - /// <summary> - /// Required method for Designer support - do not modify - /// the contents of this method with the code editor. - /// </summary> - private void InitializeComponent() + public void Setup() { - this.components = new System.ComponentModel.Container(); - System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(FileInfoScraperForm)); - this.bottomPanel = new System.Windows.Forms.Panel(); - this.label2 = new MediaPortal.UserInterface.Controls.MPLabel(); - this.progressPanel = new System.Windows.Forms.Panel(); - this.cancelButton = new MediaPortal.UserInterface.Controls.MPButton(); - this.progressStatusLabel = new MediaPortal.UserInterface.Controls.MPLabel(); - this.progressBar = new System.Windows.Forms.ProgressBar(); - this.label1 = new MediaPortal.UserInterface.Controls.MPLabel(); - this.MinRelevanceNum = new System.Windows.Forms.NumericUpDown(); - this.ResetFilterButton = new MediaPortal.UserInterface.Controls.MPButton(); - this.filterComboBox = new MediaPortal.UserInterface.Controls.MPComboBox(); - this.filterLabel = new MediaPortal.UserInterface.Controls.MPLabel(); - this.buttonSelectBestMatch = new MediaPortal.UserInterface.Controls.MPButton(); - this.allGameLink = new System.Windows.Forms.LinkLabel(); - this.btnCancel = new MediaPortal.UserInterface.Controls.MPButton(); - this.btnSaveSearch = new MediaPortal.UserInterface.Controls.MPButton(); - this.btnStartSearch = new MediaPortal.UserInterface.Controls.MPButton(); - this.leftPanel = new System.Windows.Forms.Panel(); - this.uncheckAllButton = new MediaPortal.UserInterface.Controls.MPButton(); - this.checkAllButton = new MediaPortal.UserInterface.Controls.MPButton(); - this.lblFiles = new MediaPortal.UserInterface.Controls.MPLabel(); - this.FileList = new System.Windows.Forms.ListView(); - this.FileTitle = new System.Windows.Forms.ColumnHeader(); - this.status = new System.Windows.Forms.ColumnHeader(); - this.menuFileList = new System.Windows.Forms.ContextMenu(); - this.mnuCheckWithoutImages = new System.Windows.Forms.MenuItem(); - this.mnuCheckWithoutOverview = new System.Windows.Forms.MenuItem(); - this.splitterVert = new System.Windows.Forms.Splitter(); - this.rightPanel = new System.Windows.Forms.Panel(); - this.LaunchURLButton = new MediaPortal.UserInterface.Controls.MPButton(); - this.lblMatches = new MediaPortal.UserInterface.Controls.MPLabel(); - this.MatchList = new System.Windows.Forms.ListView(); - this.columnHeader1 = new System.Windows.Forms.ColumnHeader(); - this.columnHeader2 = new System.Windows.Forms.ColumnHeader(); - this.toolTip1 = new System.Windows.Forms.ToolTip(this.components); - this.menuSaveDetails = new System.Windows.Forms.ContextMenu(); - this.menuDataAndImages = new System.Windows.Forms.MenuItem(); - this.menuItem4 = new System.Windows.Forms.MenuItem(); - this.menuData = new System.Windows.Forms.MenuItem(); - this.menuImages = new System.Windows.Forms.MenuItem(); - this.bottomPanel.SuspendLayout(); - this.progressPanel.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.MinRelevanceNum)).BeginInit(); - this.leftPanel.SuspendLayout(); - this.rightPanel.SuspendLayout(); - this.SuspendLayout(); - // - // bottomPanel - // - this.bottomPanel.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; - this.bottomPanel.Controls.Add(this.label2); - this.bottomPanel.Controls.Add(this.progressPanel); - this.bottomPanel.Controls.Add(this.label1); - this.bottomPanel.Controls.Add(this.MinRelevanceNum); - this.bottomPanel.Controls.Add(this.ResetFilterButton); - this.bottomPanel.Controls.Add(this.filterComboBox); - this.bottomPanel.Controls.Add(this.filterLabel); - this.bottomPanel.Controls.Add(this.buttonSelectBestMatch); - this.bottomPanel.Controls.Add(this.allGameLink); - this.bottomPanel.Controls.Add(this.btnCancel); - this.bottomPanel.Controls.Add(this.btnSaveSearch); - this.bottomPanel.Controls.Add(this.btnStartSearch); - this.bottomPanel.Dock = System.Windows.Forms.DockStyle.Bottom; - this.bottomPanel.Location = new System.Drawing.Point(0, 422); - this.bottomPanel.Name = "bottomPanel"; - this.bottomPanel.Size = new System.Drawing.Size(752, 112); - this.bottomPanel.TabIndex = 0; - // - // label2 - // - this.label2.Location = new System.Drawing.Point(520, 8); - this.label2.Name = "label2"; - this.label2.Size = new System.Drawing.Size(224, 40); - this.label2.TabIndex = 28; - this.label2.Text = "Warning: Don\'t overuse the allgame scraper! Do lookups with small sets of games (" + - "max. 20 games)."; - this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // progressPanel - // - this.progressPanel.Controls.Add(this.cancelButton); - this.progressPanel.Controls.Add(this.progressStatusLabel); - this.progressPanel.Controls.Add(this.progressBar); - this.progressPanel.Enabled = false; - this.progressPanel.Location = new System.Drawing.Point(8, 69); - this.progressPanel.Name = "progressPanel"; - this.progressPanel.Size = new System.Drawing.Size(480, 40); - this.progressPanel.TabIndex = 27; - // - // cancelButton - // - this.cancelButton.Location = new System.Drawing.Point(392, 16); - this.cancelButton.Name = "cancelButton"; - this.cancelButton.Size = new System.Drawing.Size(88, 23); - this.cancelButton.TabIndex = 29; - this.cancelButton.Text = "Cancel Search"; - this.cancelButton.Click += new System.EventHandler(this.cancelButton_Click); - // - // progressStatusLabel - // - this.progressStatusLabel.Location = new System.Drawing.Point(0, 20); - this.progressStatusLabel.Name = "progressStatusLabel"; - this.progressStatusLabel.Size = new System.Drawing.Size(392, 16); - this.progressStatusLabel.TabIndex = 28; - this.progressStatusLabel.Text = "Progress status"; - // - // progressBar - // - this.progressBar.Location = new System.Drawing.Point(0, 0); - this.progressBar.Name = "progressBar"; - this.progressBar.Size = new System.Drawing.Size(480, 16); - this.progressBar.TabIndex = 27; - // - // label1 - // - this.label1.Location = new System.Drawing.Point(344, 6); - this.label1.Name = "label1"; - this.label1.Size = new System.Drawing.Size(88, 14); - this.label1.TabIndex = 25; - this.label1.Text = "Min. Relevance"; - // - // MinRelevanceNum - // - this.MinRelevanceNum.Increment = new System.Decimal(new int[] { - 10, - 0, - 0, - 0}); - this.MinRelevanceNum.Location = new System.Drawing.Point(432, 3); - this.MinRelevanceNum.Name = "MinRelevanceNum"; - this.MinRelevanceNum.Size = new System.Drawing.Size(56, 20); - this.MinRelevanceNum.TabIndex = 24; - this.toolTip1.SetToolTip(this.MinRelevanceNum, "This is the minimal RELEVANCE value to autoselect a match"); - this.MinRelevanceNum.Value = new System.Decimal(new int[] { - 70, - 0, - 0, - 0}); - this.MinRelevanceNum.ValueChanged += new System.EventHandler(this.MinRelevanceNum_ValueChanged); - // - // ResetFilterButton - // - this.ResetFilterButton.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0))); - this.ResetFilterButton.Location = new System.Drawing.Point(282, 3); - this.ResetFilterButton.Name = "ResetFilterButton"; - this.ResetFilterButton.Size = new System.Drawing.Size(40, 21); - this.ResetFilterButton.TabIndex = 23; - this.ResetFilterButton.Text = "Clear"; - this.toolTip1.SetToolTip(this.ResetFilterButton, "Reset Filter"); - this.ResetFilterButton.Click += new System.EventHandler(this.ResetFilterButton_Click); - // - // filterComboBox - // - this.filterComboBox.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0))); - this.filterComboBox.Items.AddRange(new object[] { - "Arcade", - "Atari 5200", - "Atari 7800", - "Atari Lynx", - "Atari ST", - "Atari Video Computer System", - "Commodore 64/128", - "Commodore Amiga", - "Game Boy", - "Game Boy Advance", - "Game Boy Color", - "Neo Geo", - "Nintendo 64", - "Nintendo Entertainment System", - "PlayStation", - "Sega Dreamcast", - "Sega Game Gear", - "Sega Genesis", - "Sega Master System", - "Super NES", - "TurboGrafx-16"}); - this.filterComboBox.Location = new System.Drawing.Point(72, 3); - this.filterComboBox.Name = "filterComboBox"; - this.filterComboBox.Size = new System.Drawing.Size(208, 21); - this.filterComboBox.TabIndex = 22; - this.toolTip1.SetToolTip(this.filterComboBox, "Enter platform to filter results"); - this.filterComboBox.KeyUp += new System.Windows.Forms.KeyEventHandler(this.filterComboBox_KeyUp); - this.filterComboBox.SelectedIndexChanged += new System.EventHandler(this.filterComboBox_SelectedIndexChanged); - // - // filterLabel - // - this.filterLabel.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0))); - this.filterLabel.Location = new System.Drawing.Point(8, 5); - this.filterLabel.Name = "filterLabel"; - this.filterLabel.Size = new System.Drawing.Size(80, 16); - this.filterLabel.TabIndex = 21; - this.filterLabel.Text = "Platform:"; - // - // buttonSelectBestMatch - // - this.buttonSelectBestMatch.Enabled = false; - this.buttonSelectBestMatch.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0))); - this.buttonSelectBestMatch.Location = new System.Drawing.Point(168, 32); - this.buttonSelectBestMatch.Name = "buttonSelectBestMatch"; - this.buttonSelectBestMatch.Size = new System.Drawing.Size(160, 32); - this.buttonSelectBestMatch.TabIndex = 20; - this.buttonSelectBestMatch.Text = "2) Select Best Match"; - this.toolTip1.SetToolTip(this.buttonSelectBestMatch, "Select the best match for all checked files ("); - this.buttonSelectBestMatch.Click += new System.EventHandler(this.buttonSelectBestMatch_Click); - // - // allGameLink - // - this.allGameLink.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.allGameLink.Location = new System.Drawing.Point(616, 56); - this.allGameLink.Name = "allGameLink"; - this.allGameLink.Size = new System.Drawing.Size(128, 16); - this.allGameLink.TabIndex = 3; - this.allGameLink.TabStop = true; - this.allGameLink.Text = "http://www.allgame.com"; - this.allGameLink.TextAlign = System.Drawing.ContentAlignment.TopRight; - this.allGameLink.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.allGameLink_LinkClicked); - // - // btnCancel - // - this.btnCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.btnCancel.Location = new System.Drawing.Point(668, 76); - this.btnCancel.Name = "btnCancel"; - this.btnCancel.TabIndex = 2; - this.btnCancel.Text = "Close"; - this.btnCancel.Click += new System.EventHandler(this.button3_Click); - // - // btnSaveSearch - // - this.btnSaveSearch.Enabled = false; - this.btnSaveSearch.Location = new System.Drawing.Point(328, 32); - this.btnSaveSearch.Name = "btnSaveSearch"; - this.btnSaveSearch.Size = new System.Drawing.Size(160, 32); - this.btnSaveSearch.TabIndex = 1; - this.btnSaveSearch.Text = "3) Download && Save Details"; - this.toolTip1.SetToolTip(this.btnSaveSearch, "Download selected matches and save results to MediaPortal!"); - this.btnSaveSearch.Click += new System.EventHandler(this.btnSaveSearch_Click); - // - // btnStartSearch - // - this.btnStartSearch.Enabled = false; - this.btnStartSearch.Location = new System.Drawing.Point(8, 32); - this.btnStartSearch.Name = "btnStartSearch"; - this.btnStartSearch.Size = new System.Drawing.Size(160, 32); - this.btnStartSearch.TabIndex = 0; - this.btnStartSearch.Text = "1) Start Search"; - this.toolTip1.SetToolTip(this.btnStartSearch, "Search Details for all the checked files"); - this.btnStartSearch.Click += new System.EventHandler(this.btnStartSearch_Click); - // - // leftPanel - // - this.leftPanel.Controls.Add(this.uncheckAllButton); - this.leftPanel.Controls.Add(this.checkAllButton); - this.leftPanel.Controls.Add(this.lblFiles); - this.leftPanel.Controls.Add(this.FileList); - this.leftPanel.Dock = System.Windows.Forms.DockStyle.Left; - this.leftPanel.Location = new System.Drawing.Point(0, 0); - this.leftPanel.Name = "leftPanel"; - this.leftPanel.Size = new System.Drawing.Size(360, 422); - this.leftPanel.TabIndex = 5; - // - // uncheckAllButton - // - this.uncheckAllButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.uncheckAllButton.Image = ((System.Drawing.Image)(resources.GetObject("uncheckAllButton.Image"))); - this.uncheckAllButton.Location = new System.Drawing.Point(320, 8); - this.uncheckAllButton.Name = "uncheckAllButton"; - this.uncheckAllButton.Size = new System.Drawing.Size(32, 32); - this.uncheckAllButton.TabIndex = 16; - this.toolTip1.SetToolTip(this.uncheckAllButton, "Uncheck all"); - this.uncheckAllButton.Click += new System.EventHandler(this.uncheckAllButton_Click); - // - // checkAllButton - // - this.checkAllButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.checkAllButton.Image = ((System.Drawing.Image)(resources.GetObject("checkAllButton.Image"))); - this.checkAllButton.Location = new System.Drawing.Point(288, 8); - this.checkAllButton.Name = "checkAllButton"; - this.checkAllButton.Size = new System.Drawing.Size(32, 32); - this.checkAllButton.TabIndex = 15; - this.toolTip1.SetToolTip(this.checkAllButton, "Check all"); - this.checkAllButton.Click += new System.EventHandler(this.checkAllButton_Click); - // - // lblFiles - // - this.lblFiles.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0))); - this.lblFiles.Location = new System.Drawing.Point(8, 16); - this.lblFiles.Name = "lblFiles"; - this.lblFiles.Size = new System.Drawing.Size(200, 16); - this.lblFiles.TabIndex = 14; - this.lblFiles.Text = "Files"; - // - // FileList - // - this.FileList.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) - | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); - this.FileList.CheckBoxes = true; - this.FileList.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] { - this.FileTitle, - this.status}); - this.FileList.ContextMenu = this.menuFileList; - this.FileList.FullRowSelect = true; - this.FileList.HideSelection = false; - this.FileList.LabelEdit = true; - this.FileList.Location = new System.Drawing.Point(8, 40); - this.FileList.Name = "FileList"; - this.FileList.Size = new System.Drawing.Size(344, 368); - this.FileList.TabIndex = 13; - this.FileList.View = System.Windows.Forms.View.Details; - this.FileList.MouseUp += new System.Windows.Forms.MouseEventHandler(this.FileList_MouseUp); - this.FileList.AfterLabelEdit += new System.Windows.Forms.LabelEditEventHandler(this.FileList_AfterLabelEdit); - this.FileList.SelectedIndexChanged += new System.EventHandler(this.FileList_SelectedIndexChanged); - // - // FileTitle - // - this.FileTitle.Text = "Title"; - this.FileTitle.Width = 218; - // - // status - // - this.status.Text = "Status"; - this.status.Width = 102; - // - // menuFileList - // - this.menuFileList.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { - this.mnuCheckWithoutImages, - this.mnuCheckWithoutOverview}); - // - // mnuCheckWithoutImages - // - this.mnuCheckWithoutImages.Index = 0; - this.mnuCheckWithoutImages.Text = "Check all files without images"; - this.mnuCheckWithoutImages.Click += new System.EventHandler(this.mnuCheckWithoutImages_Click); - // - // mnuCheckWithoutOverview - // - this.mnuCheckWithoutOverview.Index = 1; - this.mnuCheckWithoutOverview.Text = "Check all files without an overview"; - this.mnuCheckWithoutOverview.Click += new System.EventHandler(this.mnuCheckWithoutOverview_Click); - // - // splitterVert - // - this.splitterVert.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; - this.splitterVert.Location = new System.Drawing.Point(360, 0); - this.splitterVert.Name = "splitterVert"; - this.splitterVert.Size = new System.Drawing.Size(5, 422); - this.splitterVert.TabIndex = 6; - this.splitterVert.TabStop = false; - // - // rightPanel - // - this.rightPanel.Controls.Add(this.LaunchURLButton); - this.rightPanel.Controls.Add(this.lblMatches); - this.rightPanel.Controls.Add(this.MatchList); - this.rightPanel.Dock = System.Windows.Forms.DockStyle.Fill; - this.rightPanel.Location = new System.Drawing.Point(365, 0); - this.rightPanel.Name = "rightPanel"; - this.rightPanel.Size = new System.Drawing.Size(387, 422); - this.rightPanel.TabIndex = 7; - // - // LaunchURLButton - // - this.LaunchURLButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.LaunchURLButton.Enabled = false; - this.LaunchURLButton.Location = new System.Drawing.Point(272, 12); - this.LaunchURLButton.Name = "LaunchURLButton"; - this.LaunchURLButton.Size = new System.Drawing.Size(104, 24); - this.LaunchURLButton.TabIndex = 16; - this.LaunchURLButton.Text = "Launch URL"; - this.toolTip1.SetToolTip(this.LaunchURLButton, "Show allgame-page in your browser"); - this.LaunchURLButton.Click += new System.EventHandler(this.LaunchURLButton_Click); - // - // lblMatches - // - this.lblMatches.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0))); - this.lblMatches.Location = new System.Drawing.Point(16, 18); - this.lblMatches.Name = "lblMatches"; - this.lblMatches.Size = new System.Drawing.Size(56, 16); - this.lblMatches.TabIndex = 15; - this.lblMatches.Text = "Matches:"; - // - // MatchList - // - this.MatchList.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) - | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); - this.MatchList.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] { - this.columnHeader1, - this.columnHeader2}); - this.MatchList.FullRowSelect = true; - this.MatchList.HideSelection = false; - this.MatchList.Location = new System.Drawing.Point(16, 40); - this.MatchList.MultiSelect = false; - this.MatchList.Name = "MatchList"; - this.MatchList.Size = new System.Drawing.Size(358, 368); - this.MatchList.TabIndex = 14; - this.MatchList.View = System.Windows.Forms.View.Details; - this.MatchList.DoubleClick += new System.EventHandler(this.MatchList_DoubleClick); - this.MatchList.SelectedIndexChanged += new System.EventHandler(this.MatchList_SelectedIndexChanged); - // - // columnHeader1 - // - this.columnHeader1.Text = "Title (Platform)"; - this.columnHeader1.Width = 247; - // - // columnHeader2 - // - this.columnHeader2.Text = "Relevance"; - this.columnHeader2.Width = 80; - // - // menuSaveDetails - // - this.menuSaveDetails.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { - this.menuDataAndImages, - this.menuItem4, - this.menuData, - this.menuImages}); - // - // menuDataAndImages - // - this.menuDataAndImages.Index = 0; - this.menuDataAndImages.Text = "Save Data and download images"; - this.menuDataAndImages.Click += new System.EventHandler(this.menuDataAndImages_Click); - // - // menuItem4 - // - this.menuItem4.Index = 1; - this.menuItem4.Text = "-"; - // - // menuData - // - this.menuData.Index = 2; - this.menuData.Text = "Save Data only"; - this.menuData.Click += new System.EventHandler(this.menuData_Click); - // - // menuImages - // - this.menuImages.Index = 3; - this.menuImages.Text = "Download images only"; - this.menuImages.Click += new System.EventHandler(this.menuImages_Click); - // - // FileInfoScraperForm - // - this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); - this.ClientSize = new System.Drawing.Size(752, 534); - this.Controls.Add(this.rightPanel); - this.Controls.Add(this.splitterVert); - this.Controls.Add(this.leftPanel); - this.Controls.Add(this.bottomPanel); - this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); - this.Name = "FileInfoScraperForm"; - this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; - this.Text = "Search fileinfo"; - this.bottomPanel.ResumeLayout(false); - this.progressPanel.ResumeLayout(false); - ((System.ComponentModel.ISupportInitialize)(this.MinRelevanceNum)).EndInit(); - this.leftPanel.ResumeLayout(false); - this.rightPanel.ResumeLayout(false); - this.ResumeLayout(false); + SyncFileList(); + UpdateButtonStates(); + } + #endregion + + #region Properties / Helper Routines + + private FileItem GetSelectedFileItem() + { + if (listViewFileList.FocusedItem == null) return null; + if (listViewFileList.FocusedItem.Tag == null) return null; + + return listViewFileList.FocusedItem.Tag as FileItem; } + + private FileItemInfo GetSelectedMatchItem() + { + if (listViewMatchList.CheckedItems == null) return null; + if (listViewMatchList.CheckedItems[0] == null) return null; + if (listViewMatchList.CheckedItems[0].Tag == null) return null; + + return listViewMatchList.CheckedItems[0].Tag as FileItemInfo; + } + + private bool IsGoodMatch(FileItemInfo info) + { + bool result = (filterComboBox.Text == "") || (info.Platform.ToLower().IndexOf(filterComboBox.Text.ToLower()) == 0); + if (result) + { + result = (info.RelevanceNorm >= MinRelevanceNum.Value); + } + return result; + } + + private void SelectBestMatch(ListViewItem curItem) + { + if (curItem.Tag == null) return; + + FileItem file = curItem.Tag as FileItem; + if (file == null) return; + if (file.FileInfoList == null) return; + + foreach (FileItemInfo info in file.FileInfoList) + { + // check if + // - info is from platform, which is set in combobox + // - has minimum relevance + if (!IsGoodMatch(info)) continue; + + // if file has no favourite yet + if (file.FileInfoFavourite == null) + { + file.FileInfoFavourite = info; + continue; + } + + /* this needs adding the gameurl to database + // prevously selected infoitem + if (file.GameURL == info.GameURL) + { + file.FileInfoFavourite = info; + continue; + } + */ + + // file has already a favourite + // is info's relevance better than current favourite's relevance + if (info.RelevanceNorm > file.FileInfoFavourite.RelevanceNorm) + file.FileInfoFavourite = info; + } + + if (file.FileInfoFavourite != null) + { + curItem.SubItems[1].Text = String.Format("best: {0}%", file.FileInfoFavourite.RelevanceNorm); + } + else + { + curItem.SubItems[1].Text = "no match"; + } + } + #endregion + #region Display - public void Setup() + private void UpdateButtonStates() { - SyncListView(); - SyncFileLabel(); + // labels to update + groupBoxFileList.Text = String.Format("Files ({0} of {1} selected)", listViewFileList.CheckedItems.Count, listViewFileList.Items.Count); + + // button states to update + buttonStartSearch.Enabled = (listViewFileList.CheckedItems.Count > 0); + + if (!buttonStartSearch.Enabled) + buttonSaveSearch.Enabled = false; + + // when search is active, only cancel button should be enabled + groupBoxFileList.Enabled = (!isSearching); + groupBoxMatchList.Enabled = (!isSearching); + groupBoxFilter.Enabled = (!isSearching); + buttonStartSearch.Enabled = (!isSearching); + buttonSaveSearch.Enabled = (!isSearching); + buttonClose.Enabled = (!isSearching); + toolStripDropDownButton1.Enabled = isSearching; } - private void SyncListView() + private void ChangeFileSelection() { - if (m_CurApp == null) - return; + SyncMatchList(GetSelectedFileItem()); + } - FileList.BeginUpdate(); + private void SyncFileList() + { + if (m_CurApp == null) return; + + listViewFileList.BeginUpdate(); try { - FileList.Items.Clear(); + listViewFileList.Items.Clear(); // add all files foreach (FileItem file in m_CurApp.Files) { ListViewItem curItem = new ListViewItem(file.Title); + file.ToFileInfoFavourite(); curItem.Tag = file; if (!file.IsFolder) { - ListViewItem newItem = FileList.Items.Add(curItem); + ListViewItem newItem = listViewFileList.Items.Add(curItem); newItem.SubItems.Add("<unknown>"); } } } finally { - FileList.EndUpdate(); + listViewFileList.EndUpdate(); } } - private void button3_Click(object sender, EventArgs e) + private void SyncMatchList(FileItem file) { - if ((m_CurApp != null) && (filterComboBox.Text != "")) + listViewMatchList.BeginUpdate(); + try { - m_CurApp.SystemDefault = filterComboBox.Text; - m_CurApp.InsertOrUpdateSettings(); + listViewMatchList.Items.Clear(); + + if (file == null) return; + if (file.FileInfoList == null) return; + + foreach (FileItemInfo item in file.FileInfoList) + { + if (!IsGoodMatch(item)) continue; + + ListViewItem curItem = new ListViewItem(String.Format("{0} ({1})", item.Title, item.Platform)); + curItem.SubItems.Add(String.Format("{0}%", item.RelevanceNorm)); + curItem.Tag = item; + + // selected item? + if (file.FileInfoFavourite != null) + if (file.FileInfoFavourite == item) + { + curItem.Checked = true; + } + + listViewMatchList.Items.Add(curItem); + } } - this.Close(); + finally + { + listViewMatchList.EndUpdate(); + } } - void InitProgressBar(string msg) + private void InitProgressBar(string msg) { - progressPanel.Enabled = true; - progressBar.Value = 0; - if (FileList.CheckedItems.Count - 1 > 0) + toolStripProgressBar.Value = 0; + if (listViewFileList.CheckedItems.Count - 1 > 0) { - progressBar.Maximum = FileList.CheckedItems.Count - 1; + toolStripProgressBar.Maximum = listViewFileList.CheckedItems.Count - 1; } else { - progressBar.Maximum = 1; + toolStripProgressBar.Maximum = 1; } - progressBar.Step = 1; - progressStatusLabel.Text = msg; + toolStripProgressBar.Step = 1; + toolStripStatusLabel.Text = msg; mStartTime = (int)(DateTime.Now.Ticks / 10000); // reset timer! } - void StepProgressBar() + private void StepProgressBar() { string strTimeRemaining = ""; - progressBar.PerformStep(); - if (progressBar.Value > 1) + toolStripProgressBar.PerformStep(); + if (toolStripProgressBar.Value > 1) { int nTimeElapsed = ((int)(DateTime.Now.Ticks / 10000)) - mStartTime; - double TimePerItem = nTimeElapsed / progressBar.Value - 1; - int nTotalTime = (int)(progressBar.Maximum * TimePerItem); + double TimePerItem = nTimeElapsed / toolStripProgressBar.Value - 1; + int nTotalTime = (int)(toolStripProgressBar.Maximum * TimePerItem); int nTimeRemaining = nTotalTime - nTimeElapsed; int nSecondsRemaining = nTimeRemaining / 1000; int nMinutesRemaining = nSecondsRemaining / 60; @@ -686,292 +353,124 @@ strTimeRemaining = String.Format(" ({0}m {1}s remaining)", nMinutesRemaining, nSecondsRemaining); } - progressStatusLabel.Text = String.Format("Searching file {0} of {1} ", progressBar.Value, progressBar.Maximum + 1) + strTimeRemaining; + toolStripStatusLabel.Text = String.Format("Searching file {0} of {1} ", toolStripProgressBar.Value, toolStripProgressBar.Maximum + 1) + strTimeRemaining; } - void DeInitProgressBar(string msg) + private void DeInitProgressBar(string msg) { - progressPanel.Enabled = false; - progressStatusLabel.Text = msg; + toolStripStatusLabel.Text = msg; } - private void btnStartSearch_Click(object sender, EventArgs e) - { - int numberOfSearches = 0; - bool bSuccess = true; - InitProgressBar("Starting search"); - foreach (ListViewItem curItem in FileList.CheckedItems) - { - if (stopSearching) - break; - ListViewItem nextItem = null; - FileItem file = (FileItem)curItem.Tag; - if (file != null) - { - if (curItem.Index < FileList.Items.Count - 1) - { - nextItem = FileList.Items[curItem.Index + 1]; - } - else - { - nextItem = curItem; - } - nextItem.EnsureVisible(); - // if (!bSuccess) - // { - // curItem.SubItems[1].Text = String.Format("waiting for reconnection..."); - // System.Threading.Thread.Sleep(5126); - // } - numberOfSearches = numberOfSearches + 1; - if (numberOfSearches > 20) - { - curItem.SubItems[1].Text = String.Format("waiting..."); - System.Threading.Thread.Sleep(20000); - System.Windows.Forms.Application.DoEvents(); - numberOfSearches = 0; - } - curItem.SubItems[1].Text = String.Format("searching..."); - curItem.Font = new Font(curItem.Font, curItem.Font.Style | FontStyle.Bold); - System.Windows.Forms.Application.DoEvents(); - bSuccess = file.FindFileInfo(curItem.Text, ScraperType.ALLGAME); - curItem.SubItems[1].Text = String.Format("{0} matches", file.FileInfoList.Count); - StepProgressBar(); - buttonSelectBestMatch.Enabled = true; - System.Windows.Forms.Application.DoEvents(); - } - } - ChangeFileSelection(); - if (stopSearching) - { - DeInitProgressBar("Search aborted"); - } - else - { - DeInitProgressBar("Search finished"); - } - stopSearching = false; - } + #endregion + #region ControlEvents - private FileItem GetSelectedFileItem() + #region Lists + + private void listViewFileList_SelectedIndexChanged(object sender, EventArgs e) { - FileItem res = null; - if (FileList.FocusedItem != null) - { - if (FileList.FocusedItem.Tag != null) - { - res = (FileItem)FileList.FocusedItem.Tag; - } - } - return res; + ChangeFileSelection(); } - private FileItemInfo GetSelectedMatchItem() + private void listViewFileList_ItemChecked(object sender, ItemCheckedEventArgs e) { - FileItemInfo res = null; - if (MatchList.SelectedItems != null) - { - if (MatchList.SelectedItems[0] != null) - { - if (MatchList.SelectedItems[0].Tag != null) - { - res = (FileItemInfo)MatchList.SelectedItems[0].Tag; - } - } - } - return res; + UpdateButtonStates(); } - - private bool IsGoodMatch(FileItemInfo info) + private void listViewMatchList_ItemCheck(object sender, ItemCheckEventArgs e) { - bool result = (filterComboBox.Text == "") || (info.Platform.ToLower().IndexOf(filterComboBox.Text.ToLower()) == 0); - if (result) + if (e.NewValue == CheckState.Checked) { - result = (info.RelevanceNorm >= MinRelevanceNum.Value); + if (listViewMatchList.CheckedItems == null) return; + foreach (ListViewItem item in listViewMatchList.CheckedItems) + if (item.Index != e.Index) + item.Checked = false; } - return result; } - private void SyncMatchesList(FileItem file) + private void listViewMatchList_ItemChecked(object sender, ItemCheckedEventArgs e) { - LaunchURLButton.Enabled = false; - MatchList.BeginUpdate(); - try - { - MatchList.Items.Clear(); - if (file != null) - { - if (file.FileInfoList != null) - { - foreach (FileItemInfo item in file.FileInfoList) - { - if (IsGoodMatch(item)) - { - ListViewItem curItem = new ListViewItem(String.Format("{0} ({1})", item.Title, item.Platform)); - curItem.SubItems.Add(String.Format("{0}%", item.RelevanceNorm)); - // curItem.SubItems[1].Text = String.Format("{0}%", item.Relevance); - curItem.Tag = item; - curItem = MatchList.Items.Add(curItem); - // selected item? - if ((file.FileInfoFavourite != null) && (file.FileInfoFavourite == item)) - { - curItem.Selected = true; - LaunchURLButton.Enabled = true; - } - } - } - } - } - } - finally - { - MatchList.EndUpdate(); - } + if (e.Item.Checked == false) return; - } + FileItem file = GetSelectedFileItem(); + if (file == null) return; + if (e.Item.Tag == null) return; + FileItemInfo info = e.Item.Tag as FileItemInfo; + if (info == null) return; - private void ChangeFileSelection() - { - FileItem file = GetSelectedFileItem(); - SyncMatchesList(file); + file.FileInfoFavourite = info; + buttonSaveSearch.Enabled = true; + listViewFileList.FocusedItem.SubItems[1].Text = String.Format("best: {0}%", file.FileInfoFavourite.RelevanceNorm); } - private void FileList_SelectedIndexChanged(object sender, EventArgs e) + private void listViewMatchList_SelectedIndexChanged(object sender, EventArgs e) { - ChangeFileSelection(); + if (listViewMatchList.SelectedItems.Count == 0) return; + if (listViewMatchList.SelectedItems[0].Tag == null) return; + FileItemInfo info = listViewMatchList.SelectedItems[0].Tag as FileItemInfo; + if (info == null) return; + + info.LaunchURL(); } - private void allGameLink_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) + private void checkboxFileList_CheckedChanged(object sender, EventArgs e) { - if (allGameLink.Text == null) - return; - if (allGameLink.Text.Length > 0) + if (checkboxFileList.Checked) { - ProcessStartInfo sInfo = new ProcessStartInfo(allGameLink.Text); - Process.Start(sInfo); + foreach (ListViewItem curItem in listViewFileList.Items) + curItem.Checked = true; } + else + { + foreach (ListViewItem curItem in listViewFileList.Items) + curItem.Checked = false; + } + UpdateButtonStates(); } - private void LaunchSelectedMatchURL() - { - FileItemInfo info = GetSelectedMatchItem(); - if (info == null) - return; - info.LaunchURL(); - } + #endregion + #region Buttons - private void MatchList_DoubleClick(object sender, EventArgs e) + private void btnStartSearch_Click(object sender, EventArgs e) { - LaunchSelectedMatchURL(); + SearchStart(); } - private void checkAllButton_Click(object sender, EventArgs e) + private void btnSaveSearch_Click(object sender, EventArgs e) { - foreach (ListViewItem curItem in FileList.Items) - { - curItem.Checked = true; - } - btnStartSearch.Enabled = (FileList.CheckedItems.Count > 0); - SyncFileLabel(); + menuSaveDetails.Show(buttonSaveSearch, new Point(0, buttonSaveSearch.Height)); } - private void uncheckAllButton_Click(object sender, EventArgs e) + private void cancelSearchToolStripMenuItem_Click(object sender, EventArgs e) { - foreach (ListViewItem curItem in FileList.Items) - { - curItem.Checked = false; - } - btnStartSearch.Enabled = false; - buttonSelectBestMatch.Enabled = false; - btnSaveSearch.Enabled = false; - SyncFileLabel(); + stopSearching = true; } - private void MatchList_SelectedIndexChanged(object sender, EventArgs e) + private void buttonClose_Click(object sender, EventArgs e) { - FileItem file = GetSelectedFileItem(); - if (file == null) - return; - - if (MatchList.SelectedIndices.Count > 0) + if ((m_CurApp != null) && (filterComboBox.Text != "")) { - FileItemInfo info = GetSelectedMatchItem(); - file.FileInfoFavourite = info; - LaunchURLButton.Enabled = true; - btnSaveSearch.Enabled = true; - FileList.FocusedItem.SubItems[1].Text = String.Format("best: {0}%", file.FileInfoFavourite.RelevanceNorm); + m_CurApp.SystemDefault = filterComboBox.Text; + //m_CurApp.Write(); } - else - { - file.FileInfoFavourite = null; - LaunchURLButton.Enabled = false; - } + this.Close(); } - private void btnSaveSearch_Click(object sender, EventArgs e) + private void allGameLink_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { - menuSaveDetails.Show(btnSaveSearch, new Point(0, btnSaveSearch.Height)); - } + if (linkLabelAllGame.Text == null) return; - void SaveSearch(ScraperSaveType saveType) - { - int numberOfSearches = 0; - InitProgressBar("Starting search"); - ListViewItem nextItem = null; - foreach (ListViewItem curItem in FileList.CheckedItems) + if (linkLabelAllGame.Text.Length > 0) { - if (stopSearching) - break; - FileItem file = (FileItem)curItem.Tag; - if (file != null) - { - if (curItem.Index < FileList.Items.Count - 1) - { - nextItem = FileList.Items[curItem.Index + 1]; - } - else - { - nextItem = curItem; - } - nextItem.EnsureVisible(); - StepProgressBar(); - if (file.FileInfoFavourite != null) - { - numberOfSearches++; - numberOfSearches = numberOfSearches + 1; - if (numberOfSearches > 20) - { - curItem.SubItems[1].Text = String.Format("waiting..."); - System.Windows.Forms.Application.DoEvents(); - System.Threading.Thread.Sleep(20000); - numberOfSearches = 0; - } - curItem.SubItems[1].Text = String.Format("<searching...>"); - System.Windows.Forms.Application.DoEvents(); - file.FindFileInfoDetail(m_CurApp, file.FileInfoFavourite, ScraperType.ALLGAME, saveType); - if ((saveType == ScraperSaveType.DataAndImages) || (saveType == ScraperSaveType.Data)) - { - file.SaveFromFileInfoFavourite(); - } - curItem.SubItems[1].Text = String.Format("<saved>"); - System.Windows.Forms.Application.DoEvents(); - } - } + ProcessStartInfo sInfo = new ProcessStartInfo(linkLabelAllGame.Text); + Process.Start(sInfo); } - if (stopSearching) - { - DeInitProgressBar("Search aborted"); - } - else - { - DeInitProgressBar("Search finished"); - } - stopSearching = false; } + #endregion + private void filterComboBox_SelectedIndexChanged(object sender, EventArgs e) { ChangeFileSelection(); @@ -991,69 +490,17 @@ ChangeFileSelection(); } - private void buttonSelectBestMatch_Click(object sender, EventArgs e) - { - foreach (ListViewItem curItem in FileList.CheckedItems) - { - FileItem file = (FileItem)curItem.Tag; - if (file != null) - { - if (file.FileInfoList != null) - { - file.FileInfoFavourite = null; - foreach (FileItemInfo item in file.FileInfoList) - { - if (IsGoodMatch(item)) - { - btnSaveSearch.Enabled = true; - file.FileInfoFavourite = item; - break; - } - } - if (file.FileInfoFavourite != null) - { - curItem.SubItems[1].Text = String.Format("best: {0}%", file.FileInfoFavourite.RelevanceNorm); - } - else - { - curItem.SubItems[1].Text = "no match"; - } - } - } - } - ChangeFileSelection(); - } - private void MinRelevanceNum_ValueChanged(object sender, EventArgs e) { ChangeFileSelection(); } - private void LaunchURLButton_Click(object sender, EventArgs e) - { - LaunchSelectedMatchURL(); - } + #region Menus - private void FileList_MouseUp(object sender, MouseEventArgs e) - { - SyncButtons(); - } - - void SyncButtons() - { - btnStartSearch.Enabled = (FileList.CheckedItems.Count > 0); - if (!btnStartSearch.Enabled) - { - buttonSelectBestMatch.Enabled = false; - btnSaveSearch.Enabled = false; - } - SyncFileLabel(); - } - private void mnuCheckWithoutImages_Click(object sender, EventArgs e) { FileItem curFile; - foreach (ListViewItem curItem in FileList.Items) + foreach (ListViewItem curItem in listViewFileList.Items) { curFile = (FileItem)curItem.Tag; if (curFile != null) @@ -1065,14 +512,13 @@ curItem.Checked = false; } } - btnStartSearch.Enabled = (FileList.CheckedItems.Count > 0); - SyncFileLabel(); + buttonStartSearch.Enabled = (listViewFileList.CheckedItems.Count > 0); + UpdateButtonStates(); } - private void mnuCheckWithoutOverview_Click(object sender, EventArgs e) { FileItem curFile; - foreach (ListViewItem curItem in FileList.Items) + foreach (ListViewItem curItem in listViewFileList.Items) { curFile = (FileItem)curItem.Tag; if (curFile != null) @@ -1084,42 +530,672 @@ curItem.Checked = false; } } - btnStartSearch.Enabled = (FileList.CheckedItems.Count > 0); - SyncFileLabel(); + buttonStartSearch.Enabled = (listViewFileList.CheckedItems.Count > 0); + UpdateButtonStates(); } - - private void SyncFileLabel() + + private void menuDataAndImages_Click(object sender, EventArgs e) { - lblFiles.Text = String.Format("Files: ({0} of {1} selected)", FileList.CheckedItems.Count, FileList.Items.Count); + saveType = ScraperSaveType.DataAndImages; + SearchSave(); } + private void menuData_Click(object sender, EventArgs e) + { + saveType = ScraperSaveType.Data; + SearchSave(); + } + private void menuImages_Click(object sender, EventArgs e) + { + saveType = ScraperSaveType.Images; + SearchSave(); + } - private void FileList_AfterLabelEdit(object sender, LabelEditEventArgs e) + #endregion + + #endregion + + #region Threads + + private void SearchStart() { - FileItem curItem = GetSelectedFileItem(); - if (curItem == null) - return; - curItem.TitleOptimized = e.Label; + Thread thread = new Thread(new ThreadStart(SearchStartThread)); + thread.Priority = ThreadPriority.BelowNormal; + thread.Name = "MyPrograms SearchStart"; + thread.Start(); } - private void cancelButton_Click(object sender, EventArgs e) + private void SearchStartThread() { - stopSearching = true; + isSearching = true; + UpdateButtonStates(); + + int numberOfSearches = 0; + bool bSuccess = true; + InitProgressBar("Starting search"); + foreach (ListViewItem curItem in listViewFileList.CheckedItems) + { + if (stopSearching) break; + if (curItem.Tag == null) continue; + + FileItem file = curItem.Tag as FileItem; + if (file == null) continue; + + ListViewItem nextItem = null; + + if (curItem.Index < listViewFileList.Items.Count - 1) + { + nextItem = listViewFileList.Items[curItem.Index + 1]; + } + else + { + nextItem = curItem; + } + nextItem.EnsureVisible(); + // if (!bSuccess) + // { + // curItem.SubItems[1].Text = String.Format("waiting for reconnection..."); + // System.Threading.Thread.Sleep(5126); + // } + numberOfSearches = numberOfSearches + 1; + if (numberOfSearches > 20) + { + curItem.SubItems[1].Text = String.Format("waiting..."); + System.Threading.Thread.Sleep(20000); + System.Windows.Forms.Application.DoEvents(); + numberOfSearches = 0; + } + curItem.SubItems[1].Text = String.Format("searching..."); + curItem.Font = new Font(curItem.Font, curItem.Font.Style | FontStyle.Bold); + System.Windows.Forms.Application.DoEvents(); + bSuccess = file.FindFileInfo(file.Title, ScraperType.ALLGAME); + + SelectBestMatch(curItem); + + StepProgressBar(); + System.Windows.Forms.Application.DoEvents(); + } + ChangeFileSelection(); + if (stopSearching) + { + DeInitProgressBar("Search aborted"); + } + else + { + DeInitProgressBar("Search finished"); + } + + stopSearching = false; + isSearching = false; + UpdateButtonStates(); } - private void menuDataAndImages_Click(object sender, EventArgs e) + private void SearchSave() { - SaveSearch(ScraperSaveType.DataAndImages); + Thread thread = new Thread(new ThreadStart(SearchSaveThread)); + thread.Priority = ThreadPriority.BelowNormal; + thread.Name = "MyPrograms SearchSave"; + thread.Start(); } - private void menuData_Click(object sender, EventArgs e) + private void SearchSaveThread() { - SaveSearch(ScraperSaveType.Data); + isSearching = true; + UpdateButtonStates(); + + int numberOfSearches = 0; + InitProgressBar("Starting search"); + ListViewItem nextItem = null; + + foreach (ListViewItem curItem in listViewFileList.CheckedItems) + { + if (stopSearching) + break; + FileItem file = (FileItem)curItem.Tag; + + if (file == null) + continue; + + if (curItem.Index < listViewFileList.Items.Count - 1) + { + nextItem = listViewFileList.Items[curItem.Index + 1]; + } + else + { + nextItem = curItem; + } + nextItem.EnsureVisible(); + StepProgressBar(); + if (file.FileInfoFavourite != null) + { + numberOfSearches++; + numberOfSearches = numberOfSearches + 1; + if (numberOfSearches > 20) + { + curItem.SubItems[1].Text = String.Format("waiting..."); + System.Windows.Forms.Application.DoEvents(); + System.Threading.Thread.Sleep(20000); + numberOfSearches = 0; + } + curItem.SubItems[1].Text = String.Format("<searching...>"); + System.Windows.Forms.Application.DoEvents(); + file.FindFileInfoDetail(m_CurApp, file.FileInfoFavourite, ScraperType.ALLGAME, saveType); + if ((saveType == ScraperSaveType.DataAndImages) || (saveType == ScraperSaveType.Data)) + { + file.SaveFromFileInfoFavourite(); + } + curItem.SubItems[1].Text = String.Format("<saved>"); + System.Windows.Forms.Application.DoEvents(); + } + } + if (stopSearching) + { + DeInitProgressBar("Search aborted"); + } + else + { + DeInitProgressBar("Search finished"); + } + + stopSearching = false; + isSearching = false; + UpdateButtonStates(); } - private void menuImages_Click(object sender, EventArgs e) + #endregion + + #region Windows Form Designer generated code + /// <summary> + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// </summary> + private void InitializeComponent() { - SaveSearch(ScraperSaveType.Images); + this.components = new System.ComponentModel.Container(); + this.bottomPanel = new System.Windows.Forms.Panel(); + this.label2 = new MediaPortal.UserInterface.Controls.MPLabel(); + this.groupBoxFilter = new MediaPortal.UserInterface.Controls.MPGroupBox(); + this.labelPlatform = new MediaPortal.UserInterface.Controls.MPLabel(); + this.filterComboBox = new MediaPortal.UserInterface.Controls.MPComboBox(); + this.ResetFilterButton = new MediaPortal.UserInterface.Controls.MPButton(); + this.MinRelevanceNum = new System.Windows.Forms.NumericUpDown(); + this.label1 = new MediaPortal.UserInterface.Controls.MPLabel(); + this.linkLabelAllGame = new System.Windows.Forms.LinkLabel(); + this.buttonClose = new MediaPortal.UserInterface.Controls.MPButton(); + this.buttonSaveSearch = new MediaPortal.UserInterface.Controls.MPButton(); + this.buttonStartSearch = new MediaPortal.UserInterface.Controls.MPButton(); + this.listViewFileList = new MediaPortal.UserInterface.Controls.MPListView(); + this.FileTitle = new System.Windows.Forms.ColumnHeader(); + this.status = new System.Windows.Forms.ColumnHeader(); + this.menuFileList = new System.Windows.Forms.ContextMenu(); + this.mnuCheckWithoutImages = new System.Windows.Forms.MenuItem(); + this.mnuCheckWithoutOverview = new System.Windows.Forms.MenuItem(); + this.toolTip1 = new System.Windows.Forms.ToolTip(this.components); + this.menuSaveDetails = new System.Windows.Forms.ContextMenu(); + this.menuDataAndImages = new System.Windows.Forms.MenuItem(); + this.menuItem4 = new System.Windows.Forms.MenuItem(); + this.menuData = new System.Windows.Forms.MenuItem(); + this.menuImages = new System.Windows.Forms.MenuItem(); + this.groupBoxMatchList = new MediaPortal.UserInterface.Controls.MPGroupBox(); + this.labelLaunchUrlInfo = new MediaPortal.UserInterface.Controls.MPLabel(); + this.listViewMatchList = new MediaPortal.UserInterface.Controls.MPListView(); + this.columnHeader1 = new System.Windows.Forms.ColumnHeader(); + this.columnHeader2 = new System.Windows.Forms.ColumnHeader(); + this.groupBoxFileList = new MediaPortal.UserInterface.Controls.MPGroupBox(); + this.checkboxFileList = new MediaPortal.UserInterface.Controls.MPCheckBox(); + this.splitContainer1 = new System.Windows.Forms.SplitCo... [truncated message content] |
[Mp-plugins-svn] SF.net SVN: mp-plugins: [516]
trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt /Design
From: <che...@us...> - 2007-06-12 12:35:25
|
Revision: 516 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=516&view=rev Author: chef_koch Date: 2007-06-12 05:35:18 -0700 (Tue, 12 Jun 2007) Log Message: ----------- reverted changes, sorry for the problems :( Modified Paths: -------------- trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/FileInfoScraperForm.cs trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/FileInfoScraperForm.resx Modified: trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/FileInfoScraperForm.cs =================================================================== --- trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/FileInfoScraperForm.cs 2007-06-11 19:57:40 UTC (rev 515) +++ trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/FileInfoScraperForm.cs 2007-06-12 12:35:18 UTC (rev 516) @@ -28,14 +28,13 @@ using System.Diagnostics; using System.Drawing; using System.Windows.Forms; -using System.Threading; -using MediaPortal.GUI.Library; - +using GUIPrograms; +using GUIPrograms.Database; using GUIPrograms.ApplicationItems; using GUIPrograms.FileItems; -using GUIPrograms.Imports; + namespace GUIPrograms.Design { /// <summary> @@ -43,60 +42,52 @@ /// </summary> public class FileInfoScraperForm : Form { - #region InitControls - private ApplicationItem m_CurApp; - private MediaPortal.UserInterface.Controls.MPListView listViewFileList; + private Panel leftPanel; + private Panel rightPanel; + private Splitter splitterVert; + private ListView FileList; private ColumnHeader FileTitle; + private ColumnHeader columnHeader1; private ColumnHeader status; - private MediaPortal.UserInterface.Controls.MPButton buttonStartSearch; - private MediaPortal.UserInterface.Controls.MPButton buttonSaveSearch; - private MediaPortal.UserInterface.Controls.MPButton buttonClose; - private LinkLabel linkLabelAllGame; + private ColumnHeader columnHeader2; + private ListView MatchList; + private Label lblFiles; + private Label lblMatches; + private Button btnStartSearch; + private Button btnSaveSearch; + private Button btnCancel; + private LinkLabel allGameLink; + private Button checkAllButton; private ToolTip toolTip1; - private MediaPortal.UserInterface.Controls.MPComboBox filterComboBox; - private MediaPortal.UserInterface.Controls.MPButton ResetFilterButton; + private Button uncheckAllButton; + private Button buttonSelectBestMatch; + private Label filterLabel; + private ComboBox filterComboBox; + private Button ResetFilterButton; private NumericUpDown MinRelevanceNum; - private MediaPortal.UserInterface.Controls.MPLabel label1; + private Label label1; + private Button LaunchURLButton; private Panel bottomPanel; private ContextMenu menuFileList; private MenuItem mnuCheckWithoutImages; private MenuItem mnuCheckWithoutOverview; + private ProgressBar progressBar; + private Panel progressPanel; + private Label progressStatusLabel; + private Button cancelButton; private IContainer components; + + int mStartTime = 0; // timer stuff private ContextMenu menuSaveDetails; private MenuItem menuItem4; private MenuItem menuDataAndImages; private MenuItem menuData; private MenuItem menuImages; - private MediaPortal.UserInterface.Controls.MPGroupBox groupBoxMatchList; - private MediaPortal.UserInterface.Controls.MPListView listViewMatchList; - private ColumnHeader columnHeader1; - private ColumnHeader columnHeader2; - private MediaPortal.UserInterface.Controls.MPGroupBox groupBoxFileList; - private MediaPortal.UserInterface.Controls.MPCheckBox checkboxFileList; private MediaPortal.UserInterface.Controls.MPLabel label2; - private MediaPortal.UserInterface.Controls.MPLabel labelLaunchUrlInfo; - - #endregion - - #region Variables / Init - - int mStartTime = 0; - private SplitContainer splitContainer1; - private MediaPortal.UserInterface.Controls.MPGroupBox groupBoxFilter; - private StatusStrip statusStrip; - private ToolStripStatusLabel toolStripStatusLabel; - private ToolStripProgressBar toolStripProgressBar; - private MediaPortal.UserInterface.Controls.MPLabel labelPlatform; - private ToolStripDropDownButton toolStripDropDownButton1; - private ToolStripMenuItem cancelSearchToolStripMenuItem; // timer stuff - - bool isSearching = false; bool stopSearching = false; - ScraperSaveType saveType = ScraperSaveType.DataAndImages; - public ApplicationItem CurApp { get @@ -145,207 +136,549 @@ base.Dispose(disposing); } - public void Setup() + #region Windows Form Designer generated code + /// <summary> + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// </summary> + private void InitializeComponent() { - SyncFileList(); - UpdateButtonStates(); - } + this.components = new System.ComponentModel.Container(); + System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(FileInfoScraperForm)); + this.bottomPanel = new System.Windows.Forms.Panel(); + this.label2 = new MediaPortal.UserInterface.Controls.MPLabel(); + this.progressPanel = new System.Windows.Forms.Panel(); + this.cancelButton = new MediaPortal.UserInterface.Controls.MPButton(); + this.progressStatusLabel = new MediaPortal.UserInterface.Controls.MPLabel(); + this.progressBar = new System.Windows.Forms.ProgressBar(); + this.label1 = new MediaPortal.UserInterface.Controls.MPLabel(); + this.MinRelevanceNum = new System.Windows.Forms.NumericUpDown(); + this.ResetFilterButton = new MediaPortal.UserInterface.Controls.MPButton(); + this.filterComboBox = new MediaPortal.UserInterface.Controls.MPComboBox(); + this.filterLabel = new MediaPortal.UserInterface.Controls.MPLabel(); + this.buttonSelectBestMatch = new MediaPortal.UserInterface.Controls.MPButton(); + this.allGameLink = new System.Windows.Forms.LinkLabel(); + this.btnCancel = new MediaPortal.UserInterface.Controls.MPButton(); + this.btnSaveSearch = new MediaPortal.UserInterface.Controls.MPButton(); + this.btnStartSearch = new MediaPortal.UserInterface.Controls.MPButton(); + this.leftPanel = new System.Windows.Forms.Panel(); + this.uncheckAllButton = new MediaPortal.UserInterface.Controls.MPButton(); + this.checkAllButton = new MediaPortal.UserInterface.Controls.MPButton(); + this.lblFiles = new MediaPortal.UserInterface.Controls.MPLabel(); + this.FileList = new System.Windows.Forms.ListView(); + this.FileTitle = new System.Windows.Forms.ColumnHeader(); + this.status = new System.Windows.Forms.ColumnHeader(); + this.menuFileList = new System.Windows.Forms.ContextMenu(); + this.mnuCheckWithoutImages = new System.Windows.Forms.MenuItem(); + this.mnuCheckWithoutOverview = new System.Windows.Forms.MenuItem(); + this.splitterVert = new System.Windows.Forms.Splitter(); + this.rightPanel = new System.Windows.Forms.Panel(); + this.LaunchURLButton = new MediaPortal.UserInterface.Controls.MPButton(); + this.lblMatches = new MediaPortal.UserInterface.Controls.MPLabel(); + this.MatchList = new System.Windows.Forms.ListView(); + this.columnHeader1 = new System.Windows.Forms.ColumnHeader(); + this.columnHeader2 = new System.Windows.Forms.ColumnHeader(); + this.toolTip1 = new System.Windows.Forms.ToolTip(this.components); + this.menuSaveDetails = new System.Windows.Forms.ContextMenu(); + this.menuDataAndImages = new System.Windows.Forms.MenuItem(); + this.menuItem4 = new System.Windows.Forms.MenuItem(); + this.menuData = new System.Windows.Forms.MenuItem(); + this.menuImages = new System.Windows.Forms.MenuItem(); + this.bottomPanel.SuspendLayout(); + this.progressPanel.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.MinRelevanceNum)).BeginInit(); + this.leftPanel.SuspendLayout(); + this.rightPanel.SuspendLayout(); + this.SuspendLayout(); + // + // bottomPanel + // + this.bottomPanel.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; + this.bottomPanel.Controls.Add(this.label2); + this.bottomPanel.Controls.Add(this.progressPanel); + this.bottomPanel.Controls.Add(this.label1); + this.bottomPanel.Controls.Add(this.MinRelevanceNum); + this.bottomPanel.Controls.Add(this.ResetFilterButton); + this.bottomPanel.Controls.Add(this.filterComboBox); + this.bottomPanel.Controls.Add(this.filterLabel); + this.bottomPanel.Controls.Add(this.buttonSelectBestMatch); + this.bottomPanel.Controls.Add(this.allGameLink); + this.bottomPanel.Controls.Add(this.btnCancel); + this.bottomPanel.Controls.Add(this.btnSaveSearch); + this.bottomPanel.Controls.Add(this.btnStartSearch); + this.bottomPanel.Dock = System.Windows.Forms.DockStyle.Bottom; + this.bottomPanel.Location = new System.Drawing.Point(0, 422); + this.bottomPanel.Name = "bottomPanel"; + this.bottomPanel.Size = new System.Drawing.Size(752, 112); + this.bottomPanel.TabIndex = 0; + // + // label2 + // + this.label2.Location = new System.Drawing.Point(520, 8); + this.label2.Name = "label2"; + this.label2.Size = new System.Drawing.Size(224, 40); + this.label2.TabIndex = 28; + this.label2.Text = "Warning: Don\'t overuse the allgame scraper! Do lookups with small sets of games (" + + "max. 20 games)."; + this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // progressPanel + // + this.progressPanel.Controls.Add(this.cancelButton); + this.progressPanel.Controls.Add(this.progressStatusLabel); + this.progressPanel.Controls.Add(this.progressBar); + this.progressPanel.Enabled = false; + this.progressPanel.Location = new System.Drawing.Point(8, 69); + this.progressPanel.Name = "progressPanel"; + this.progressPanel.Size = new System.Drawing.Size(480, 40); + this.progressPanel.TabIndex = 27; + // + // cancelButton + // + this.cancelButton.Location = new System.Drawing.Point(392, 16); + this.cancelButton.Name = "cancelButton"; + this.cancelButton.Size = new System.Drawing.Size(88, 23); + this.cancelButton.TabIndex = 29; + this.cancelButton.Text = "Cancel Search"; + this.cancelButton.Click += new System.EventHandler(this.cancelButton_Click); + // + // progressStatusLabel + // + this.progressStatusLabel.Location = new System.Drawing.Point(0, 20); + this.progressStatusLabel.Name = "progressStatusLabel"; + this.progressStatusLabel.Size = new System.Drawing.Size(392, 16); + this.progressStatusLabel.TabIndex = 28; + this.progressStatusLabel.Text = "Progress status"; + // + // progressBar + // + this.progressBar.Location = new System.Drawing.Point(0, 0); + this.progressBar.Name = "progressBar"; + this.progressBar.Size = new System.Drawing.Size(480, 16); + this.progressBar.TabIndex = 27; + // + // label1 + // + this.label1.Location = new System.Drawing.Point(344, 6); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(88, 14); + this.label1.TabIndex = 25; + this.label1.Text = "Min. Relevance"; + // + // MinRelevanceNum + // + this.MinRelevanceNum.Increment = new System.Decimal(new int[] { + 10, + 0, + 0, + 0}); + this.MinRelevanceNum.Location = new System.Drawing.Point(432, 3); + this.MinRelevanceNum.Name = "MinRelevanceNum"; + this.MinRelevanceNum.Size = new System.Drawing.Size(56, 20); + this.MinRelevanceNum.TabIndex = 24; + this.toolTip1.SetToolTip(this.MinRelevanceNum, "This is the minimal RELEVANCE value to autoselect a match"); + this.MinRelevanceNum.Value = new System.Decimal(new int[] { + 70, + 0, + 0, + 0}); + this.MinRelevanceNum.ValueChanged += new System.EventHandler(this.MinRelevanceNum_ValueChanged); + // + // ResetFilterButton + // + this.ResetFilterButton.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0))); + this.ResetFilterButton.Location = new System.Drawing.Point(282, 3); + this.ResetFilterButton.Name = "ResetFilterButton"; + this.ResetFilterButton.Size = new System.Drawing.Size(40, 21); + this.ResetFilterButton.TabIndex = 23; + this.ResetFilterButton.Text = "Clear"; + this.toolTip1.SetToolTip(this.ResetFilterButton, "Reset Filter"); + this.ResetFilterButton.Click += new System.EventHandler(this.ResetFilterButton_Click); + // + // filterComboBox + // + this.filterComboBox.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0))); + this.filterComboBox.Items.AddRange(new object[] { + "Arcade", + "Atari 5200", + "Atari 7800", + "Atari Lynx", + "Atari ST", + "Atari Video Computer System", + "Commodore 64/128", + "Commodore Amiga", + "Game Boy", + "Game Boy Advance", + "Game Boy Color", + "Neo Geo", + "Nintendo 64", + "Nintendo Entertainment System", + "PlayStation", + "Sega Dreamcast", + "Sega Game Gear", + "Sega Genesis", + "Sega Master System", + "Super NES", + "TurboGrafx-16"}); + this.filterComboBox.Location = new System.Drawing.Point(72, 3); + this.filterComboBox.Name = "filterComboBox"; + this.filterComboBox.Size = new System.Drawing.Size(208, 21); + this.filterComboBox.TabIndex = 22; + this.toolTip1.SetToolTip(this.filterComboBox, "Enter platform to filter results"); + this.filterComboBox.KeyUp += new System.Windows.Forms.KeyEventHandler(this.filterComboBox_KeyUp); + this.filterComboBox.SelectedIndexChanged += new System.EventHandler(this.filterComboBox_SelectedIndexChanged); + // + // filterLabel + // + this.filterLabel.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0))); + this.filterLabel.Location = new System.Drawing.Point(8, 5); + this.filterLabel.Name = "filterLabel"; + this.filterLabel.Size = new System.Drawing.Size(80, 16); + this.filterLabel.TabIndex = 21; + this.filterLabel.Text = "Platform:"; + // + // buttonSelectBestMatch + // + this.buttonSelectBestMatch.Enabled = false; + this.buttonSelectBestMatch.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0))); + this.buttonSelectBestMatch.Location = new System.Drawing.Point(168, 32); + this.buttonSelectBestMatch.Name = "buttonSelectBestMatch"; + this.buttonSelectBestMatch.Size = new System.Drawing.Size(160, 32); + this.buttonSelectBestMatch.TabIndex = 20; + this.buttonSelectBestMatch.Text = "2) Select Best Match"; + this.toolTip1.SetToolTip(this.buttonSelectBestMatch, "Select the best match for all checked files ("); + this.buttonSelectBestMatch.Click += new System.EventHandler(this.buttonSelectBestMatch_Click); + // + // allGameLink + // + this.allGameLink.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.allGameLink.Location = new System.Drawing.Point(616, 56); + this.allGameLink.Name = "allGameLink"; + this.allGameLink.Size = new System.Drawing.Size(128, 16); + this.allGameLink.TabIndex = 3; + this.allGameLink.TabStop = true; + this.allGameLink.Text = "http://www.allgame.com"; + this.allGameLink.TextAlign = System.Drawing.ContentAlignment.TopRight; + this.allGameLink.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.allGameLink_LinkClicked); + // + // btnCancel + // + this.btnCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); + this.btnCancel.Location = new System.Drawing.Point(668, 76); + this.btnCancel.Name = "btnCancel"; + this.btnCancel.TabIndex = 2; + this.btnCancel.Text = "Close"; + this.btnCancel.Click += new System.EventHandler(this.button3_Click); + // + // btnSaveSearch + // + this.btnSaveSearch.Enabled = false; + this.btnSaveSearch.Location = new System.Drawing.Point(328, 32); + this.btnSaveSearch.Name = "btnSaveSearch"; + this.btnSaveSearch.Size = new System.Drawing.Size(160, 32); + this.btnSaveSearch.TabIndex = 1; + this.btnSaveSearch.Text = "3) Download && Save Details"; + this.toolTip1.SetToolTip(this.btnSaveSearch, "Download selected matches and save results to MediaPortal!"); + this.btnSaveSearch.Click += new System.EventHandler(this.btnSaveSearch_Click); + // + // btnStartSearch + // + this.btnStartSearch.Enabled = false; + this.btnStartSearch.Location = new System.Drawing.Point(8, 32); + this.btnStartSearch.Name = "btnStartSearch"; + this.btnStartSearch.Size = new System.Drawing.Size(160, 32); + this.btnStartSearch.TabIndex = 0; + this.btnStartSearch.Text = "1) Start Search"; + this.toolTip1.SetToolTip(this.btnStartSearch, "Search Details for all the checked files"); + this.btnStartSearch.Click += new System.EventHandler(this.btnStartSearch_Click); + // + // leftPanel + // + this.leftPanel.Controls.Add(this.uncheckAllButton); + this.leftPanel.Controls.Add(this.checkAllButton); + this.leftPanel.Controls.Add(this.lblFiles); + this.leftPanel.Controls.Add(this.FileList); + this.leftPanel.Dock = System.Windows.Forms.DockStyle.Left; + this.leftPanel.Location = new System.Drawing.Point(0, 0); + this.leftPanel.Name = "leftPanel"; + this.leftPanel.Size = new System.Drawing.Size(360, 422); + this.leftPanel.TabIndex = 5; + // + // uncheckAllButton + // + this.uncheckAllButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.uncheckAllButton.Image = ((System.Drawing.Image)(resources.GetObject("uncheckAllButton.Image"))); + this.uncheckAllButton.Location = new System.Drawing.Point(320, 8); + this.uncheckAllButton.Name = "uncheckAllButton"; + this.uncheckAllButton.Size = new System.Drawing.Size(32, 32); + this.uncheckAllButton.TabIndex = 16; + this.toolTip1.SetToolTip(this.uncheckAllButton, "Uncheck all"); + this.uncheckAllButton.Click += new System.EventHandler(this.uncheckAllButton_Click); + // + // checkAllButton + // + this.checkAllButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.checkAllButton.Image = ((System.Drawing.Image)(resources.GetObject("checkAllButton.Image"))); + this.checkAllButton.Location = new System.Drawing.Point(288, 8); + this.checkAllButton.Name = "checkAllButton"; + this.checkAllButton.Size = new System.Drawing.Size(32, 32); + this.checkAllButton.TabIndex = 15; + this.toolTip1.SetToolTip(this.checkAllButton, "Check all"); + this.checkAllButton.Click += new System.EventHandler(this.checkAllButton_Click); + // + // lblFiles + // + this.lblFiles.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0))); + this.lblFiles.Location = new System.Drawing.Point(8, 16); + this.lblFiles.Name = "lblFiles"; + this.lblFiles.Size = new System.Drawing.Size(200, 16); + this.lblFiles.TabIndex = 14; + this.lblFiles.Text = "Files"; + // + // FileList + // + this.FileList.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.FileList.CheckBoxes = true; + this.FileList.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] { + this.FileTitle, + this.status}); + this.FileList.ContextMenu = this.menuFileList; + this.FileList.FullRowSelect = true; + this.FileList.HideSelection = false; + this.FileList.LabelEdit = true; + this.FileList.Location = new System.Drawing.Point(8, 40); + this.FileList.Name = "FileList"; + this.FileList.Size = new System.Drawing.Size(344, 368); + this.FileList.TabIndex = 13; + this.FileList.View = System.Windows.Forms.View.Details; + this.FileList.MouseUp += new System.Windows.Forms.MouseEventHandler(this.FileList_MouseUp); + this.FileList.AfterLabelEdit += new System.Windows.Forms.LabelEditEventHandler(this.FileList_AfterLabelEdit); + this.FileList.SelectedIndexChanged += new System.EventHandler(this.FileList_SelectedIndexChanged); + // + // FileTitle + // + this.FileTitle.Text = "Title"; + this.FileTitle.Width = 218; + // + // status + // + this.status.Text = "Status"; + this.status.Width = 102; + // + // menuFileList + // + this.menuFileList.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { + this.mnuCheckWithoutImages, + this.mnuCheckWithoutOverview}); + // + // mnuCheckWithoutImages + // + this.mnuCheckWithoutImages.Index = 0; + this.mnuCheckWithoutImages.Text = "Check all files without images"; + this.mnuCheckWithoutImages.Click += new System.EventHandler(this.mnuCheckWithoutImages_Click); + // + // mnuCheckWithoutOverview + // + this.mnuCheckWithoutOverview.Index = 1; + this.mnuCheckWithoutOverview.Text = "Check all files without an overview"; + this.mnuCheckWithoutOverview.Click += new System.EventHandler(this.mnuCheckWithoutOverview_Click); + // + // splitterVert + // + this.splitterVert.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; + this.splitterVert.Location = new System.Drawing.Point(360, 0); + this.splitterVert.Name = "splitterVert"; + this.splitterVert.Size = new System.Drawing.Size(5, 422); + this.splitterVert.TabIndex = 6; + this.splitterVert.TabStop = false; + // + // rightPanel + // + this.rightPanel.Controls.Add(this.LaunchURLButton); + this.rightPanel.Controls.Add(this.lblMatches); + this.rightPanel.Controls.Add(this.MatchList); + this.rightPanel.Dock = System.Windows.Forms.DockStyle.Fill; + this.rightPanel.Location = new System.Drawing.Point(365, 0); + this.rightPanel.Name = "rightPanel"; + this.rightPanel.Size = new System.Drawing.Size(387, 422); + this.rightPanel.TabIndex = 7; + // + // LaunchURLButton + // + this.LaunchURLButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.LaunchURLButton.Enabled = false; + this.LaunchURLButton.Location = new System.Drawing.Point(272, 12); + this.LaunchURLButton.Name = "LaunchURLButton"; + this.LaunchURLButton.Size = new System.Drawing.Size(104, 24); + this.LaunchURLButton.TabIndex = 16; + this.LaunchURLButton.Text = "Launch URL"; + this.toolTip1.SetToolTip(this.LaunchURLButton, "Show allgame-page in your browser"); + this.LaunchURLButton.Click += new System.EventHandler(this.LaunchURLButton_Click); + // + // lblMatches + // + this.lblMatches.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0))); + this.lblMatches.Location = new System.Drawing.Point(16, 18); + this.lblMatches.Name = "lblMatches"; + this.lblMatches.Size = new System.Drawing.Size(56, 16); + this.lblMatches.TabIndex = 15; + this.lblMatches.Text = "Matches:"; + // + // MatchList + // + this.MatchList.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.MatchList.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] { + this.columnHeader1, + this.columnHeader2}); + this.MatchList.FullRowSelect = true; + this.MatchList.HideSelection = false; + this.MatchList.Location = new System.Drawing.Point(16, 40); + this.MatchList.MultiSelect = false; + this.MatchList.Name = "MatchList"; + this.MatchList.Size = new System.Drawing.Size(358, 368); + this.MatchList.TabIndex = 14; + this.MatchList.View = System.Windows.Forms.View.Details; + this.MatchList.DoubleClick += new System.EventHandler(this.MatchList_DoubleClick); + this.MatchList.SelectedIndexChanged += new System.EventHandler(this.MatchList_SelectedIndexChanged); + // + // columnHeader1 + // + this.columnHeader1.Text = "Title (Platform)"; + this.columnHeader1.Width = 247; + // + // columnHeader2 + // + this.columnHeader2.Text = "Relevance"; + this.columnHeader2.Width = 80; + // + // menuSaveDetails + // + this.menuSaveDetails.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { + this.menuDataAndImages, + this.menuItem4, + this.menuData, + this.menuImages}); + // + // menuDataAndImages + // + this.menuDataAndImages.Index = 0; + this.menuDataAndImages.Text = "Save Data and download images"; + this.menuDataAndImages.Click += new System.EventHandler(this.menuDataAndImages_Click); + // + // menuItem4 + // + this.menuItem4.Index = 1; + this.menuItem4.Text = "-"; + // + // menuData + // + this.menuData.Index = 2; + this.menuData.Text = "Save Data only"; + this.menuData.Click += new System.EventHandler(this.menuData_Click); + // + // menuImages + // + this.menuImages.Index = 3; + this.menuImages.Text = "Download images only"; + this.menuImages.Click += new System.EventHandler(this.menuImages_Click); + // + // FileInfoScraperForm + // + this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); + this.ClientSize = new System.Drawing.Size(752, 534); + this.Controls.Add(this.rightPanel); + this.Controls.Add(this.splitterVert); + this.Controls.Add(this.leftPanel); + this.Controls.Add(this.bottomPanel); + this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); + this.Name = "FileInfoScraperForm"; + this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; + this.Text = "Search fileinfo"; + this.bottomPanel.ResumeLayout(false); + this.progressPanel.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.MinRelevanceNum)).EndInit(); + this.leftPanel.ResumeLayout(false); + this.rightPanel.ResumeLayout(false); + this.ResumeLayout(false); - #endregion - - #region Properties / Helper Routines - - private FileItem GetSelectedFileItem() - { - if (listViewFileList.FocusedItem == null) return null; - if (listViewFileList.FocusedItem.Tag == null) return null; - - return listViewFileList.FocusedItem.Tag as FileItem; } - - private FileItemInfo GetSelectedMatchItem() - { - if (listViewMatchList.CheckedItems == null) return null; - if (listViewMatchList.CheckedItems[0] == null) return null; - if (listViewMatchList.CheckedItems[0].Tag == null) return null; - - return listViewMatchList.CheckedItems[0].Tag as FileItemInfo; - } - - private bool IsGoodMatch(FileItemInfo info) - { - bool result = (filterComboBox.Text == "") || (info.Platform.ToLower().IndexOf(filterComboBox.Text.ToLower()) == 0); - if (result) - { - result = (info.RelevanceNorm >= MinRelevanceNum.Value); - } - return result; - } - - private void SelectBestMatch(ListViewItem curItem) - { - if (curItem.Tag == null) return; - - FileItem file = curItem.Tag as FileItem; - if (file == null) return; - if (file.FileInfoList == null) return; - - foreach (FileItemInfo info in file.FileInfoList) - { - // check if - // - info is from platform, which is set in combobox - // - has minimum relevance - if (!IsGoodMatch(info)) continue; - - // if file has no favourite yet - if (file.FileInfoFavourite == null) - { - file.FileInfoFavourite = info; - continue; - } - - /* this needs adding the gameurl to database - // prevously selected infoitem - if (file.GameURL == info.GameURL) - { - file.FileInfoFavourite = info; - continue; - } - */ - - // file has already a favourite - // is info's relevance better than current favourite's relevance - if (info.RelevanceNorm > file.FileInfoFavourite.RelevanceNorm) - file.FileInfoFavourite = info; - } - - if (file.FileInfoFavourite != null) - { - curItem.SubItems[1].Text = String.Format("best: {0}%", file.FileInfoFavourite.RelevanceNorm); - } - else - { - curItem.SubItems[1].Text = "no match"; - } - } - #endregion - #region Display - private void UpdateButtonStates() + public void Setup() { - // labels to update - groupBoxFileList.Text = String.Format("Files ({0} of {1} selected)", listViewFileList.CheckedItems.Count, listViewFileList.Items.Count); - - // button states to update - buttonStartSearch.Enabled = (listViewFileList.CheckedItems.Count > 0); - - if (!buttonStartSearch.Enabled) - buttonSaveSearch.Enabled = false; - - // when search is active, only cancel button should be enabled - groupBoxFileList.Enabled = (!isSearching); - groupBoxMatchList.Enabled = (!isSearching); - groupBoxFilter.Enabled = (!isSearching); - buttonStartSearch.Enabled = (!isSearching); - buttonSaveSearch.Enabled = (!isSearching); - buttonClose.Enabled = (!isSearching); - toolStripDropDownButton1.Enabled = isSearching; + SyncListView(); + SyncFileLabel(); } - private void ChangeFileSelection() + private void SyncListView() { - SyncMatchList(GetSelectedFileItem()); - } + if (m_CurApp == null) + return; - private void SyncFileList() - { - if (m_CurApp == null) return; - - listViewFileList.BeginUpdate(); + FileList.BeginUpdate(); try { - listViewFileList.Items.Clear(); + FileList.Items.Clear(); // add all files foreach (FileItem file in m_CurApp.Files) { ListViewItem curItem = new ListViewItem(file.Title); - file.ToFileInfoFavourite(); curItem.Tag = file; if (!file.IsFolder) { - ListViewItem newItem = listViewFileList.Items.Add(curItem); + ListViewItem newItem = FileList.Items.Add(curItem); newItem.SubItems.Add("<unknown>"); } } } finally { - listViewFileList.EndUpdate(); + FileList.EndUpdate(); } } - private void SyncMatchList(FileItem file) + private void button3_Click(object sender, EventArgs e) { - listViewMatchList.BeginUpdate(); - try + if ((m_CurApp != null) && (filterComboBox.Text != "")) { - listViewMatchList.Items.Clear(); - - if (file == null) return; - if (file.FileInfoList == null) return; - - foreach (FileItemInfo item in file.FileInfoList) - { - if (!IsGoodMatch(item)) continue; - - ListViewItem curItem = new ListViewItem(String.Format("{0} ({1})", item.Title, item.Platform)); - curItem.SubItems.Add(String.Format("{0}%", item.RelevanceNorm)); - curItem.Tag = item; - - // selected item? - if (file.FileInfoFavourite != null) - if (file.FileInfoFavourite == item) - { - curItem.Checked = true; - } - - listViewMatchList.Items.Add(curItem); - } + m_CurApp.SystemDefault = filterComboBox.Text; + m_CurApp.InsertOrUpdateSettings(); } - finally - { - listViewMatchList.EndUpdate(); - } + this.Close(); } - private void InitProgressBar(string msg) + void InitProgressBar(string msg) { - toolStripProgressBar.Value = 0; - if (listViewFileList.CheckedItems.Count - 1 > 0) + progressPanel.Enabled = true; + progressBar.Value = 0; + if (FileList.CheckedItems.Count - 1 > 0) { - toolStripProgressBar.Maximum = listViewFileList.CheckedItems.Count - 1; + progressBar.Maximum = FileList.CheckedItems.Count - 1; } else { - toolStripProgressBar.Maximum = 1; + progressBar.Maximum = 1; } - toolStripProgressBar.Step = 1; - toolStripStatusLabel.Text = msg; + progressBar.Step = 1; + progressStatusLabel.Text = msg; mStartTime = (int)(DateTime.Now.Ticks / 10000); // reset timer! } - private void StepProgressBar() + void StepProgressBar() { string strTimeRemaining = ""; - toolStripProgressBar.PerformStep(); - if (toolStripProgressBar.Value > 1) + progressBar.PerformStep(); + if (progressBar.Value > 1) { int nTimeElapsed = ((int)(DateTime.Now.Ticks / 10000)) - mStartTime; - double TimePerItem = nTimeElapsed / toolStripProgressBar.Value - 1; - int nTotalTime = (int)(toolStripProgressBar.Maximum * TimePerItem); + double TimePerItem = nTimeElapsed / progressBar.Value - 1; + int nTotalTime = (int)(progressBar.Maximum * TimePerItem); int nTimeRemaining = nTotalTime - nTimeElapsed; int nSecondsRemaining = nTimeRemaining / 1000; int nMinutesRemaining = nSecondsRemaining / 60; @@ -353,124 +686,292 @@ strTimeRemaining = String.Format(" ({0}m {1}s remaining)", nMinutesRemaining, nSecondsRemaining); } - toolStripStatusLabel.Text = String.Format("Searching file {0} of {1} ", toolStripProgressBar.Value, toolStripProgressBar.Maximum + 1) + strTimeRemaining; + progressStatusLabel.Text = String.Format("Searching file {0} of {1} ", progressBar.Value, progressBar.Maximum + 1) + strTimeRemaining; } - private void DeInitProgressBar(string msg) + void DeInitProgressBar(string msg) { - toolStripStatusLabel.Text = msg; + progressPanel.Enabled = false; + progressStatusLabel.Text = msg; } - #endregion + private void btnStartSearch_Click(object sender, EventArgs e) + { + int numberOfSearches = 0; + bool bSuccess = true; + InitProgressBar("Starting search"); + foreach (ListViewItem curItem in FileList.CheckedItems) + { + if (stopSearching) + break; + ListViewItem nextItem = null; + FileItem file = (FileItem)curItem.Tag; + if (file != null) + { + if (curItem.Index < FileList.Items.Count - 1) + { + nextItem = FileList.Items[curItem.Index + 1]; + } + else + { + nextItem = curItem; + } + nextItem.EnsureVisible(); + // if (!bSuccess) + // { + // curItem.SubItems[1].Text = String.Format("waiting for reconnection..."); + // System.Threading.Thread.Sleep(5126); + // } + numberOfSearches = numberOfSearches + 1; + if (numberOfSearches > 20) + { + curItem.SubItems[1].Text = String.Format("waiting..."); + System.Threading.Thread.Sleep(20000); + System.Windows.Forms.Application.DoEvents(); + numberOfSearches = 0; + } + curItem.SubItems[1].Text = String.Format("searching..."); + curItem.Font = new Font(curItem.Font, curItem.Font.Style | FontStyle.Bold); + System.Windows.Forms.Application.DoEvents(); + bSuccess = file.FindFileInfo(curItem.Text, ScraperType.ALLGAME); + curItem.SubItems[1].Text = String.Format("{0} matches", file.FileInfoList.Count); + StepProgressBar(); + buttonSelectBestMatch.Enabled = true; + System.Windows.Forms.Application.DoEvents(); + } + } + ChangeFileSelection(); + if (stopSearching) + { + DeInitProgressBar("Search aborted"); + } + else + { + DeInitProgressBar("Search finished"); + } + stopSearching = false; + } - #region ControlEvents - #region Lists - - private void listViewFileList_SelectedIndexChanged(object sender, EventArgs e) + private FileItem GetSelectedFileItem() { - ChangeFileSelection(); + FileItem res = null; + if (FileList.FocusedItem != null) + { + if (FileList.FocusedItem.Tag != null) + { + res = (FileItem)FileList.FocusedItem.Tag; + } + } + return res; } - private void listViewFileList_ItemChecked(object sender, ItemCheckedEventArgs e) + private FileItemInfo GetSelectedMatchItem() { - UpdateButtonStates(); + FileItemInfo res = null; + if (MatchList.SelectedItems != null) + { + if (MatchList.SelectedItems[0] != null) + { + if (MatchList.SelectedItems[0].Tag != null) + { + res = (FileItemInfo)MatchList.SelectedItems[0].Tag; + } + } + } + return res; } - private void listViewMatchList_ItemCheck(object sender, ItemCheckEventArgs e) + + private bool IsGoodMatch(FileItemInfo info) { - if (e.NewValue == CheckState.Checked) + bool result = (filterComboBox.Text == "") || (info.Platform.ToLower().IndexOf(filterComboBox.Text.ToLower()) == 0); + if (result) { - if (listViewMatchList.CheckedItems == null) return; - foreach (ListViewItem item in listViewMatchList.CheckedItems) - if (item.Index != e.Index) - item.Checked = false; + result = (info.RelevanceNorm >= MinRelevanceNum.Value); } + return result; } - private void listViewMatchList_ItemChecked(object sender, ItemCheckedEventArgs e) + private void SyncMatchesList(FileItem file) { - if (e.Item.Checked == false) return; + LaunchURLButton.Enabled = false; + MatchList.BeginUpdate(); + try + { + MatchList.Items.Clear(); + if (file != null) + { + if (file.FileInfoList != null) + { + foreach (FileItemInfo item in file.FileInfoList) + { + if (IsGoodMatch(item)) + { + ListViewItem curItem = new ListViewItem(String.Format("{0} ({1})", item.Title, item.Platform)); + curItem.SubItems.Add(String.Format("{0}%", item.RelevanceNorm)); + // curItem.SubItems[1].Text = String.Format("{0}%", item.Relevance); + curItem.Tag = item; + curItem = MatchList.Items.Add(curItem); + // selected item? + if ((file.FileInfoFavourite != null) && (file.FileInfoFavourite == item)) + { + curItem.Selected = true; + LaunchURLButton.Enabled = true; + } + } + } + } + } + } + finally + { + MatchList.EndUpdate(); + } - FileItem file = GetSelectedFileItem(); - if (file == null) return; + } - if (e.Item.Tag == null) return; - FileItemInfo info = e.Item.Tag as FileItemInfo; - if (info == null) return; - file.FileInfoFavourite = info; - buttonSaveSearch.Enabled = true; - listViewFileList.FocusedItem.SubItems[1].Text = String.Format("best: {0}%", file.FileInfoFavourite.RelevanceNorm); + private void ChangeFileSelection() + { + FileItem file = GetSelectedFileItem(); + SyncMatchesList(file); } - private void listViewMatchList_SelectedIndexChanged(object sender, EventArgs e) + private void FileList_SelectedIndexChanged(object sender, EventArgs e) { - if (listViewMatchList.SelectedItems.Count == 0) return; - if (listViewMatchList.SelectedItems[0].Tag == null) return; - FileItemInfo info = listViewMatchList.SelectedItems[0].Tag as FileItemInfo; - if (info == null) return; - - info.LaunchURL(); + ChangeFileSelection(); } - private void checkboxFileList_CheckedChanged(object sender, EventArgs e) + private void allGameLink_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { - if (checkboxFileList.Checked) + if (allGameLink.Text == null) + return; + if (allGameLink.Text.Length > 0) { - foreach (ListViewItem curItem in listViewFileList.Items) - curItem.Checked = true; + ProcessStartInfo sInfo = new ProcessStartInfo(allGameLink.Text); + Process.Start(sInfo); } - else - { - foreach (ListViewItem curItem in listViewFileList.Items) - curItem.Checked = false; - } - UpdateButtonStates(); } - #endregion + private void LaunchSelectedMatchURL() + { + FileItemInfo info = GetSelectedMatchItem(); + if (info == null) + return; + info.LaunchURL(); + } - #region Buttons - private void btnStartSearch_Click(object sender, EventArgs e) + private void MatchList_DoubleClick(object sender, EventArgs e) { - SearchStart(); + LaunchSelectedMatchURL(); } - private void btnSaveSearch_Click(object sender, EventArgs e) + private void checkAllButton_Click(object sender, EventArgs e) { - menuSaveDetails.Show(buttonSaveSearch, new Point(0, buttonSaveSearch.Height)); + foreach (ListViewItem curItem in FileList.Items) + { + curItem.Checked = true; + } + btnStartSearch.Enabled = (FileList.CheckedItems.Count > 0); + SyncFileLabel(); } - private void cancelSearchToolStripMenuItem_Click(object sender, EventArgs e) + private void uncheckAllButton_Click(object sender, EventArgs e) { - stopSearching = true; + foreach (ListViewItem curItem in FileList.Items) + { + curItem.Checked = false; + } + btnStartSearch.Enabled = false; + buttonSelectBestMatch.Enabled = false; + btnSaveSearch.Enabled = false; + SyncFileLabel(); } - private void buttonClose_Click(object sender, EventArgs e) + private void MatchList_SelectedIndexChanged(object sender, EventArgs e) { - if ((m_CurApp != null) && (filterComboBox.Text != "")) + FileItem file = GetSelectedFileItem(); + if (file == null) + return; + + if (MatchList.SelectedIndices.Count > 0) { - m_CurApp.SystemDefault = filterComboBox.Text; - //m_CurApp.Write(); + FileItemInfo info = GetSelectedMatchItem(); + file.FileInfoFavourite = info; + LaunchURLButton.Enabled = true; + btnSaveSearch.Enabled = true; + FileList.FocusedItem.SubItems[1].Text = String.Format("best: {0}%", file.FileInfoFavourite.RelevanceNorm); } - this.Close(); + else + { + file.FileInfoFavourite = null; + LaunchURLButton.Enabled = false; + } } - private void allGameLink_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) + private void btnSaveSearch_Click(object sender, EventArgs e) { - if (linkLabelAllGame.Text == null) return; + menuSaveDetails.Show(btnSaveSearch, new Point(0, btnSaveSearch.Height)); + } - if (linkLabelAllGame.Text.Length > 0) + void SaveSearch(ScraperSaveType saveType) + { + int numberOfSearches = 0; + InitProgressBar("Starting search"); + ListViewItem nextItem = null; + foreach (ListViewItem curItem in FileList.CheckedItems) { - ProcessStartInfo sInfo = new ProcessStartInfo(linkLabelAllGame.Text); - Process.Start(sInfo); + if (stopSearching) + break; + FileItem file = (FileItem)curItem.Tag; + if (file != null) + { + if (curItem.Index < FileList.Items.Count - 1) + { + nextItem = FileList.Items[curItem.Index + 1]; + } + else + { + nextItem = curItem; + } + nextItem.EnsureVisible(); + StepProgressBar(); + if (file.FileInfoFavourite != null) + { + numberOfSearches++; + numberOfSearches = numberOfSearches + 1; + if (numberOfSearches > 20) + { + curItem.SubItems[1].Text = String.Format("waiting..."); + System.Windows.Forms.Application.DoEvents(); + System.Threading.Thread.Sleep(20000); + numberOfSearches = 0; + } + curItem.SubItems[1].Text = String.Format("<searching...>"); + System.Windows.Forms.Application.DoEvents(); + file.FindFileInfoDetail(m_CurApp, file.FileInfoFavourite, ScraperType.ALLGAME, saveType); + if ((saveType == ScraperSaveType.DataAndImages) || (saveType == ScraperSaveType.Data)) + { + file.SaveFromFileInfoFavourite(); + } + curItem.SubItems[1].Text = String.Format("<saved>"); + System.Windows.Forms.Application.DoEvents(); + } + } } + if (stopSearching) + { + DeInitProgressBar("Search aborted"); + } + else + { + DeInitProgressBar("Search finished"); + } + stopSearching = false; } - #endregion - private void filterComboBox_SelectedIndexChanged(object sender, EventArgs e) { ChangeFileSelection(); @@ -490,17 +991,69 @@ ChangeFileSelection(); } + private void buttonSelectBestMatch_Click(object sender, EventArgs e) + { + foreach (ListViewItem curItem in FileList.CheckedItems) + { + FileItem file = (FileItem)curItem.Tag; + if (file != null) + { + if (file.FileInfoList != null) + { + file.FileInfoFavourite = null; + foreach (FileItemInfo item in file.FileInfoList) + { + if (IsGoodMatch(item)) + { + btnSaveSearch.Enabled = true; + file.FileInfoFavourite = item; + break; + } + } + if (file.FileInfoFavourite != null) + { + curItem.SubItems[1].Text = String.Format("best: {0}%", file.FileInfoFavourite.RelevanceNorm); + } + else + { + curItem.SubItems[1].Text = "no match"; + } + } + } + } + ChangeFileSelection(); + } + private void MinRelevanceNum_ValueChanged(object sender, EventArgs e) { ChangeFileSelection(); } - #region Menus + private void LaunchURLButton_Click(object sender, EventArgs e) + { + LaunchSelectedMatchURL(); + } + private void FileList_MouseUp(object sender, MouseEventArgs e) + { + SyncButtons(); + } + + void SyncButtons() + { + btnStartSearch.Enabled = (FileList.CheckedItems.Count > 0); + if (!btnStartSearch.Enabled) + { + buttonSelectBestMatch.Enabled = false; + btnSaveSearch.Enabled = false; + } + SyncFileLabel(); + } + private void mnuCheckWithoutImages_Click(object sender, EventArgs e) { FileItem curFile; - foreach (ListViewItem curItem in listViewFileList.Items) + foreach (ListViewItem curItem in FileList.Items) { curFile = (FileItem)curItem.Tag; if (curFile != null) @@ -512,13 +1065,14 @@ curItem.Checked = false; } } - buttonStartSearch.Enabled = (listViewFileList.CheckedItems.Count > 0); - UpdateButtonStates(); + btnStartSearch.Enabled = (FileList.CheckedItems.Count > 0); + SyncFileLabel(); } + private void mnuCheckWithoutOverview_Click(object sender, EventArgs e) { FileItem curFile; - foreach (ListViewItem curItem in listViewFileList.Items) + foreach (ListViewItem curItem in FileList.Items) { curFile = (FileItem)curItem.Tag; if (curFile != null) @@ -530,672 +1084,42 @@ curItem.Checked = false; } } - buttonStartSearch.Enabled = (listViewFileList.CheckedItems.Count > 0); - UpdateButtonStates(); + btnStartSearch.Enabled = (FileList.CheckedItems.Count > 0); + SyncFileLabel(); } - - private void menuDataAndImages_Click(object sender, EventArgs e) + + private void SyncFileLabel() { - saveType = ScraperSaveType.DataAndImages; - SearchSave(); + lblFiles.Text = String.Format("Files: ({0} of {1} selected)", FileList.CheckedItems.Count, FileList.Items.Count); } - private void menuData_Click(object sender, EventArgs e) - { - saveType = ScraperSaveType.Data; - SearchSave(); - } - private void menuImages_Click(object sender, EventArgs e) - { - saveType = ScraperSaveType.Images; - SearchSave(); - } - #endregion - - #endregion - - #region Threads - - private void SearchStart() + private void FileList_AfterLabelEdit(object sender, LabelEditEventArgs e) { - Thread thread = new Thread(new ThreadStart(SearchStartThread)); - thread.Priority = ThreadPriority.BelowNormal; - thread.Name = "MyPrograms SearchStart"; - thread.Start(); + FileItem curItem = GetSelectedFileItem(); + if (curItem == null) + return; + curItem.TitleOptimized = e.Label; } - private void SearchStartThread() + private void cancelButton_Click(object sender, EventArgs e) { - isSearching = true; - UpdateButtonStates(); - - int numberOfSearches = 0; - bool bSuccess = true; - InitProgressBar("Starting search"); - foreach (ListViewItem curItem in listViewFileList.CheckedItems) - { - if (stopSearching) break; - if (curItem.Tag == null) continue; - - FileItem file = curItem.Tag as FileItem; - if (file == null) continue; - - ListViewItem nextItem = null; - - if (curItem.Index < listViewFileList.Items.Count - 1) - { - nextItem = listViewFileList.Items[curItem.Index + 1]; - } - else - { - nextItem = curItem; - } - nextItem.EnsureVisible(); - // if (!bSuccess) - // { - // curItem.SubItems[1].Text = String.Format("waiting for reconnection..."); - // System.Threading.Thread.Sleep(5126); - // } - numberOfSearches = numberOfSearches + 1; - if (numberOfSearches > 20) - { - curItem.SubItems[1].Text = String.Format("waiting..."); - System.Threading.Thread.Sleep(20000); - System.Windows.Forms.Application.DoEvents(); - numberOfSearches = 0; - } - curItem.SubItems[1].Text = String.Format("searching..."); - curItem.Font = new Font(curItem.Font, curItem.Font.Style | FontStyle.Bold); - System.Windows.Forms.Application.DoEvents(); - bSuccess = file.FindFileInfo(file.Title, ScraperType.ALLGAME); - - SelectBestMatch(curItem); - - StepProgressBar(); - System.Windows.Forms.Application.DoEvents(); - } - ChangeFileSelection(); - if (stopSearching) - { - DeInitProgressBar("Search aborted"); - } - else - { - DeInitProgressBar("Search finished"); - } - - stopSearching = false; - isSearching = false; - UpdateButtonStates(); + stopSearching = true; } - private void SearchSave() + private void menuDataAndImages_Click(object sender, EventArgs e) { - Thread thread = new Thread(new ThreadStart(SearchSaveThread)); - thread.Priority = ThreadPriority.BelowNormal; - thread.Name = "MyPrograms SearchSave"; - thread.Start(); + SaveSearch(ScraperSaveType.DataAndImages); } - private void SearchSaveThread() + private void menuData_Click(object sender, EventArgs e) { - isSearching = true; - UpdateButtonStates(); - - int numberOfSearches = 0; - InitProgressBar("Starting search"); - ListViewItem nextItem = null; - - foreach (ListViewItem curItem in listViewFileList.CheckedItems) - { - if (stopSearching) - break; - FileItem file = (FileItem)curItem.Tag; - - if (file == null) - continue; - - if (curItem.Index < listViewFileList.Items.Count - 1) - { - nextItem = listViewFileList.Items[curItem.Index + 1]; - } - else - { - nextItem = curItem; - } - nextItem.EnsureVisible(); - StepProgressBar(); - if (file.FileInfoFavourite != null) - { - numberOfSearches++; - numberOfSearches = numberOfSearches + 1; - if (numberOfSearches > 20) - { - curItem.SubItems[1].Text = String.Format("waiting..."); - System.Windows.Forms.Application.DoEvents(); - System.Threading.Thread.Sleep(20000); - numberOfSearches = 0; - } - curItem.SubItems[1].Text = String.Format("<searching...>"); - System.Windows.Forms.Application.DoEvents(); - file.FindFileInfoDetail(m_CurApp, file.FileInfoFavourite, ScraperType.ALLGAME, saveType); - if ((saveType == ScraperSaveType.DataAndImages) || (saveType == ScraperSaveType.Data)) - { - file.SaveFromFileInfoFavourite(); - } - curItem.SubItems[1].Text = String.Format("<saved>"); - System.Windows.Forms.Application.DoEvents(); - } - } - if (stopSearching) - { - DeInitProgressBar("Search aborted"); - } - else - { - DeInitProgressBar("Search finished"); - } - - stopSearching = false; - isSearching = false; - UpdateButtonStates(); + SaveSearch(ScraperSaveType.Data); } - #endregion - - #region Windows Form Designer generated code - /// <summary> - /// Required method for Designer support - do not modify - /// the contents of this method with the code editor. - /// </summary> - private void InitializeComponent() + private void menuImages_Click(object sender, EventArgs e) { - this.components = new System.ComponentModel.Container(); - this.bottomPanel = new System.Windows.Forms.Panel(); - this.label2 = new MediaPortal.UserInterface.Controls.MPLabel(); - this.groupBoxFilter = new MediaPortal.UserInterface.Controls.MPGroupBox(); - this.labelPlatform = new MediaPortal.UserInterface.Controls.MPLabel(); - this.filterComboBox = new MediaPortal.UserInterface.Controls.MPComboBox(); - this.ResetFilterButton = new MediaPortal.UserInterface.Controls.MPButton(); - this.MinRelevanceNum = new System.Windows.Forms.NumericUpDown(); - this.label1 = new MediaPortal.UserInterface.Controls.MPLabel(); - this.linkLabelAllGame = new System.Windows.Forms.LinkLabel(); - this.buttonClose = new MediaPortal.UserInterface.Controls.MPButton(); - this.buttonSaveSearch = new MediaPortal.UserInterface.Controls.MPButton(); - this.buttonStartSearch = new MediaPortal.UserInterface.Controls.MPButton(); - this.listViewFileList = new MediaPortal.UserInterface.Controls.MPListView(); - this.FileTitle = new System.Windows.Forms.ColumnHeader(); - this.status = new System.Windows.Forms.ColumnHeader(); - this.menuFileList = new System.Windows.Forms.ContextMenu(); - this.mnuCheckWithoutImages = new System.Windows.Forms.MenuItem(); - this.mnuCheckWithoutOverview = new System.Windows.Forms.MenuItem(); - this.toolTip1 = new System.Windows.Forms.ToolTip(this.components); - this.menuSaveDetails = new System.Windows.Forms.ContextMenu(); - this.menuDataAndImages = new System.Windows.Forms.MenuItem(); - this.menuItem4 = new System.Windows.Forms.MenuItem(); - this.menuData = new System.Windows.Forms.MenuItem(); - this.menuImages = new System.Windows.Forms.MenuItem(); - this.groupBoxMatchList = new MediaPortal.UserInterface.Controls.MPGroupBox(); - this.labelLaunchUrlInfo = new MediaPortal.UserInterface.Controls.MPLabel(); - this.listViewMatchList = new MediaPortal.UserInterface.Controls.MPListView(); - this.columnHeader1 = new System.Windows.Forms.ColumnHeader(); - this.columnHeader2 = new System.Windows.Forms.ColumnHeader(); - this.groupBoxFileList = new MediaPortal.UserInterface.Controls.MPGroupBox(); - this.checkboxFileList = new MediaPortal.UserInterface.Controls.MPCheckBox(); - this.splitContainer1 = new System.Windows.Forms.SplitContainer(); - this.statusStrip = new System.Windows.Forms.StatusStrip(); - this.toolStripStatusLabel = new System.Windows.Forms.ToolStripStatusLabel(); - this.toolStripPro... [truncated message content] |
[Mp-plugins-svn] SF.net SVN: mp-plugins: [526]
trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt /Design
From: <nor...@us...> - 2007-06-12 22:59:19
|
Revision: 526 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=526&view=rev Author: northern_sky Date: 2007-06-12 15:59:18 -0700 (Tue, 12 Jun 2007) Log Message: ----------- added gameinfourl Modified Paths: -------------- trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/FileDetailsForm.cs trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/FileDetailsForm.resx Modified: trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/FileDetailsForm.cs =================================================================== --- trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/FileDetailsForm.cs 2007-06-12 22:58:41 UTC (rev 525) +++ trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/FileDetailsForm.cs 2007-06-12 22:59:18 UTC (rev 526) @@ -49,42 +49,44 @@ private ConditionChecker conditionChecker; private OpenFileDialog openFileDialog1; private ToolTip toolTip1; - private Button btnOk; - private Button btnCancel; - private TabPage tabPage1; - private TabPage tabPage2; - private TabControl tcFileItemData; - private GroupBox gbFileDetails; - private Button buttonViewImg; - private TextBox txtFilepath; - private Label label1; - private ComboBox cbRating; - private TextBox txtOverview; - private Label lblOverview; - private TextBox txtSystem; - private Label lblSystem; - private TextBox txtCountry; - private Label lblCountry; - private Label lblRating; - private TextBox txtYear; - private Label lblYear; - private TextBox txtManufacturer; - private Label lblManufacturer; - private TextBox txtGenre; - private Label lblGenre; - private Label lblImageFile; - private Button btnImageFile; - private TextBox txtFilename; - private TextBox txtImageFile; - private TextBox txtTitle; - private Label lblTitle; - private Label lblFilename; - private Button btnFilename; - private GroupBox gbExtended; - private Label lblTagData; - private Label lblCategoryData; - private TextBox txtTagData; - private TextBox txtCategoryData; + private MediaPortal.UserInterface.Controls.MPButton btnOk; + private MediaPortal.UserInterface.Controls.MPButton btnCancel; + private MediaPortal.UserInterface.Controls.MPTabPage tabPage1; + private MediaPortal.UserInterface.Controls.MPTabPage tabPage2; + private MediaPortal.UserInterface.Controls.MPTabControl tcFileItemData; + private MediaPortal.UserInterface.Controls.MPGroupBox gbFileDetails; + private MediaPortal.UserInterface.Controls.MPButton buttonViewImg; + private MediaPortal.UserInterface.Controls.MPTextBox txtFilepath; + private MediaPortal.UserInterface.Controls.MPLabel label1; + private MediaPortal.UserInterface.Controls.MPComboBox cbRating; + private MediaPortal.UserInterface.Controls.MPTextBox txtOverview; + private MediaPortal.UserInterface.Controls.MPLabel lblOverview; + private MediaPortal.UserInterface.Controls.MPTextBox txtSystem; + private MediaPortal.UserInterface.Controls.MPLabel lblSystem; + private MediaPortal.UserInterface.Controls.MPTextBox txtCountry; + private MediaPortal.UserInterface.Controls.MPLabel lblCountry; + private MediaPortal.UserInterface.Controls.MPLabel lblRating; + private MediaPortal.UserInterface.Controls.MPTextBox txtYear; + private MediaPortal.UserInterface.Controls.MPLabel lblYear; + private MediaPortal.UserInterface.Controls.MPTextBox txtManufacturer; + private MediaPortal.UserInterface.Controls.MPLabel lblManufacturer; + private MediaPortal.UserInterface.Controls.MPTextBox txtGenre; + private MediaPortal.UserInterface.Controls.MPLabel lblGenre; + private MediaPortal.UserInterface.Controls.MPLabel lblImageFile; + private MediaPortal.UserInterface.Controls.MPButton btnImageFile; + private MediaPortal.UserInterface.Controls.MPTextBox txtFilename; + private MediaPortal.UserInterface.Controls.MPTextBox txtImageFile; + private MediaPortal.UserInterface.Controls.MPTextBox txtTitle; + private MediaPortal.UserInterface.Controls.MPLabel lblTitle; + private MediaPortal.UserInterface.Controls.MPLabel lblFilename; + private MediaPortal.UserInterface.Controls.MPButton btnFilename; + private MediaPortal.UserInterface.Controls.MPGroupBox gbExtended; + private MediaPortal.UserInterface.Controls.MPLabel lblTagData; + private MediaPortal.UserInterface.Controls.MPLabel lblCategoryData; + private MediaPortal.UserInterface.Controls.MPTextBox txtTagData; + private MediaPortal.UserInterface.Controls.MPTextBox txtCategoryData; + private TextBox gameinfoURLTextBox; + private Label gameInfoURLLabel; private IContainer components; public ApplicationItem CurApp @@ -144,7 +146,7 @@ private void InitializeComponent() { this.components = new System.ComponentModel.Container(); - System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(FileDetailsForm)); + System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FileDetailsForm)); this.btnOk = new MediaPortal.UserInterface.Controls.MPButton(); this.btnCancel = new MediaPortal.UserInterface.Controls.MPButton(); this.openFileDialog1 = new System.Windows.Forms.OpenFileDialog(); @@ -153,6 +155,8 @@ this.tcFileItemData = new MediaPortal.UserInterface.Controls.MPTabControl(); this.tabPage1 = new MediaPortal.UserInterface.Controls.MPTabPage(); this.gbFileDetails = new MediaPortal.UserInterface.Controls.MPGroupBox(); + this.gameinfoURLTextBox = new System.Windows.Forms.TextBox(); + this.gameInfoURLLabel = new System.Windows.Forms.Label(); this.txtFilepath = new MediaPortal.UserInterface.Controls.MPTextBox(); this.label1 = new MediaPortal.UserInterface.Controls.MPLabel(); this.cbRating = new MediaPortal.UserInterface.Controls.MPComboBox(); @@ -193,44 +197,48 @@ // btnOk // this.btnOk.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.btnOk.Location = new System.Drawing.Point(312, 472); + this.btnOk.Location = new System.Drawing.Point(353, 521); this.btnOk.Name = "btnOk"; this.btnOk.Size = new System.Drawing.Size(80, 23); this.btnOk.TabIndex = 1; this.btnOk.Text = "OK"; + this.btnOk.UseVisualStyleBackColor = true; this.btnOk.Click += new System.EventHandler(this.btnOk_Click); // // btnCancel // this.btnCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.btnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel; - this.btnCancel.Location = new System.Drawing.Point(400, 472); + this.btnCancel.Location = new System.Drawing.Point(441, 521); this.btnCancel.Name = "btnCancel"; + this.btnCancel.Size = new System.Drawing.Size(75, 23); this.btnCancel.TabIndex = 2; this.btnCancel.Text = "Cancel"; + this.btnCancel.UseVisualStyleBackColor = true; // // buttonViewImg // this.buttonViewImg.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.buttonViewImg.Image = ((System.Drawing.Image)(resources.GetObject("buttonViewImg.Image"))); - this.buttonViewImg.Location = new System.Drawing.Point(399, 96); + this.buttonViewImg.Location = new System.Drawing.Point(440, 96); this.buttonViewImg.Name = "buttonViewImg"; this.buttonViewImg.Size = new System.Drawing.Size(20, 20); 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); // // tcFileItemData // this.tcFileItemData.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) - | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); + | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); this.tcFileItemData.Controls.Add(this.tabPage1); this.tcFileItemData.Controls.Add(this.tabPage2); this.tcFileItemData.Location = new System.Drawing.Point(8, 8); this.tcFileItemData.Name = "tcFileItemData"; this.tcFileItemData.SelectedIndex = 0; - this.tcFileItemData.Size = new System.Drawing.Size(488, 448); + this.tcFileItemData.Size = new System.Drawing.Size(529, 497); this.tcFileItemData.TabIndex = 3; // // tabPage1 @@ -238,15 +246,18 @@ this.tabPage1.Controls.Add(this.gbFileDetails); this.tabPage1.Location = new System.Drawing.Point(4, 22); this.tabPage1.Name = "tabPage1"; - this.tabPage1.Size = new System.Drawing.Size(480, 422); + this.tabPage1.Size = new System.Drawing.Size(521, 471); this.tabPage1.TabIndex = 0; this.tabPage1.Text = "Properties"; + this.tabPage1.UseVisualStyleBackColor = true; // // gbFileDetails // this.gbFileDetails.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) - | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); + | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + 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); @@ -272,22 +283,38 @@ this.gbFileDetails.Controls.Add(this.lblTitle); this.gbFileDetails.Controls.Add(this.lblFilename); this.gbFileDetails.Controls.Add(this.btnFilename); + this.gbFileDetails.FlatStyle = System.Windows.Forms.FlatStyle.Popup; this.gbFileDetails.Location = new System.Drawing.Point(8, 8); this.gbFileDetails.Name = "gbFileDetails"; - this.gbFileDetails.Size = new System.Drawing.Size(464, 408); + this.gbFileDetails.Size = new System.Drawing.Size(505, 457); this.gbFileDetails.TabIndex = 1; this.gbFileDetails.TabStop = false; // + // gameinfoURLTextBox + // + this.gameinfoURLTextBox.Location = new System.Drawing.Point(96, 274); + this.gameinfoURLTextBox.Name = "gameinfoURLTextBox"; + this.gameinfoURLTextBox.Size = new System.Drawing.Size(372, 20); + this.gameinfoURLTextBox.TabIndex = 66; + // + // gameInfoURLLabel + // + this.gameInfoURLLabel.Location = new System.Drawing.Point(8, 274); + this.gameInfoURLLabel.Name = "gameInfoURLLabel"; + this.gameInfoURLLabel.Size = new System.Drawing.Size(82, 20); + this.gameInfoURLLabel.TabIndex = 65; + this.gameInfoURLLabel.Text = "Gameinfo URL:"; + // // 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.Location = new System.Drawing.Point(88, 72); + | System.Windows.Forms.AnchorStyles.Right))); + this.txtFilepath.BorderColor = System.Drawing.Color.Empty; + this.txtFilepath.Location = new System.Drawing.Point(96, 72); this.txtFilepath.Name = "txtFilepath"; this.txtFilepath.ReadOnly = true; - this.txtFilepath.Size = new System.Drawing.Size(332, 20); + this.txtFilepath.Size = new System.Drawing.Size(373, 20); this.txtFilepath.TabIndex = 62; - this.txtFilepath.Text = ""; // // label1 // @@ -299,20 +326,21 @@ // // cbRating // + this.cbRating.BorderColor = System.Drawing.Color.Empty; this.cbRating.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.cbRating.Items.AddRange(new object[] { - "0 - poor", - "1", - "2", - "3", - "4", - "5 - average", - "6", - "7", - "8", - "9", - "10 - perfect"}); - this.cbRating.Location = new System.Drawing.Point(230, 194); + "0 - poor", + "1", + "2", + "3", + "4", + "5 - average", + "6", + "7", + "8", + "9", + "10 - perfect"}); + this.cbRating.Location = new System.Drawing.Point(276, 191); this.cbRating.Name = "cbRating"; this.cbRating.Size = new System.Drawing.Size(192, 21); this.cbRating.TabIndex = 8; @@ -320,19 +348,20 @@ // txtOverview // this.txtOverview.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) - | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); - this.txtOverview.Location = new System.Drawing.Point(8, 288); + | 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, 315); this.txtOverview.Multiline = true; this.txtOverview.Name = "txtOverview"; this.txtOverview.ScrollBars = System.Windows.Forms.ScrollBars.Both; - this.txtOverview.Size = new System.Drawing.Size(448, 110); + this.txtOverview.Size = new System.Drawing.Size(489, 132); this.txtOverview.TabIndex = 11; this.txtOverview.Text = "txtOverview"; // // lblOverview // - this.lblOverview.Location = new System.Drawing.Point(8, 272); + this.lblOverview.Location = new System.Drawing.Point(8, 296); this.lblOverview.Name = "lblOverview"; this.lblOverview.Size = new System.Drawing.Size(100, 16); this.lblOverview.TabIndex = 61; @@ -341,12 +370,12 @@ // txtSystem // this.txtSystem.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); - this.txtSystem.Location = new System.Drawing.Point(88, 242); + | System.Windows.Forms.AnchorStyles.Right))); + this.txtSystem.BorderColor = System.Drawing.Color.Empty; + this.txtSystem.Location = new System.Drawing.Point(96, 242); this.txtSystem.Name = "txtSystem"; - this.txtSystem.Size = new System.Drawing.Size(332, 20); + this.txtSystem.Size = new System.Drawing.Size(373, 20); this.txtSystem.TabIndex = 10; - this.txtSystem.Text = ""; // // lblSystem // @@ -359,12 +388,12 @@ // txtCountry // this.txtCountry.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); - this.txtCountry.Location = new System.Drawing.Point(88, 218); + | System.Windows.Forms.AnchorStyles.Right))); + this.txtCountry.BorderColor = System.Drawing.Color.Empty; + this.txtCountry.Location = new System.Drawing.Point(96, 218); this.txtCountry.Name = "txtCountry"; - this.txtCountry.Size = new System.Drawing.Size(332, 20); + this.txtCountry.Size = new System.Drawing.Size(373, 20); this.txtCountry.TabIndex = 9; - this.txtCountry.Text = ""; // // lblCountry // @@ -376,7 +405,7 @@ // // lblRating // - this.lblRating.Location = new System.Drawing.Point(177, 197); + this.lblRating.Location = new System.Drawing.Point(223, 194); this.lblRating.Name = "lblRating"; this.lblRating.Size = new System.Drawing.Size(47, 16); this.lblRating.TabIndex = 55; @@ -384,12 +413,12 @@ // // txtYear // - this.txtYear.Location = new System.Drawing.Point(88, 194); + this.txtYear.BorderColor = System.Drawing.Color.Empty; + this.txtYear.Location = new System.Drawing.Point(96, 194); this.txtYear.MaxLength = 4; this.txtYear.Name = "txtYear"; this.txtYear.Size = new System.Drawing.Size(48, 20); this.txtYear.TabIndex = 7; - this.txtYear.Text = ""; // // lblYear // @@ -402,12 +431,12 @@ // txtManufacturer // this.txtManufacturer.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); - this.txtManufacturer.Location = new System.Drawing.Point(88, 170); + | System.Windows.Forms.AnchorStyles.Right))); + this.txtManufacturer.BorderColor = System.Drawing.Color.Empty; + this.txtManufacturer.Location = new System.Drawing.Point(96, 170); this.txtManufacturer.Name = "txtManufacturer"; - this.txtManufacturer.Size = new System.Drawing.Size(332, 20); + this.txtManufacturer.Size = new System.Drawing.Size(373, 20); this.txtManufacturer.TabIndex = 6; - this.txtManufacturer.Text = ""; // // lblManufacturer // @@ -420,14 +449,14 @@ // txtGenre // this.txtGenre.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); - this.txtGenre.Location = new System.Drawing.Point(88, 120); + | System.Windows.Forms.AnchorStyles.Right))); + this.txtGenre.BorderColor = System.Drawing.Color.Empty; + this.txtGenre.Location = new System.Drawing.Point(96, 120); this.txtGenre.Multiline = true; this.txtGenre.Name = "txtGenre"; this.txtGenre.ScrollBars = System.Windows.Forms.ScrollBars.Vertical; - this.txtGenre.Size = new System.Drawing.Size(332, 48); + this.txtGenre.Size = new System.Drawing.Size(373, 48); this.txtGenre.TabIndex = 5; - this.txtGenre.Text = ""; // // lblGenre // @@ -449,41 +478,42 @@ // this.btnImageFile.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.btnImageFile.Image = ((System.Drawing.Image)(resources.GetObject("btnImageFile.Image"))); - this.btnImageFile.Location = new System.Drawing.Point(432, 96); + this.btnImageFile.Location = new System.Drawing.Point(476, 96); this.btnImageFile.Name = "btnImageFile"; this.btnImageFile.Size = new System.Drawing.Size(20, 20); this.btnImageFile.TabIndex = 4; + this.btnImageFile.UseVisualStyleBackColor = true; this.btnImageFile.Click += new System.EventHandler(this.btnImageFile_Click); // // txtFilename // this.txtFilename.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); - this.txtFilename.Location = new System.Drawing.Point(88, 48); + | System.Windows.Forms.AnchorStyles.Right))); + this.txtFilename.BorderColor = System.Drawing.Color.Empty; + this.txtFilename.Location = new System.Drawing.Point(96, 48); this.txtFilename.Name = "txtFilename"; - this.txtFilename.Size = new System.Drawing.Size(332, 20); + this.txtFilename.Size = new System.Drawing.Size(373, 20); this.txtFilename.TabIndex = 1; - this.txtFilename.Text = ""; // // txtImageFile // this.txtImageFile.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); - this.txtImageFile.Location = new System.Drawing.Point(88, 96); + | System.Windows.Forms.AnchorStyles.Right))); + this.txtImageFile.BorderColor = System.Drawing.Color.Empty; + this.txtImageFile.Location = new System.Drawing.Point(96, 96); this.txtImageFile.Name = "txtImageFile"; - this.txtImageFile.Size = new System.Drawing.Size(310, 20); + this.txtImageFile.Size = new System.Drawing.Size(351, 20); this.txtImageFile.TabIndex = 3; - this.txtImageFile.Text = ""; // // txtTitle // this.txtTitle.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); - this.txtTitle.Location = new System.Drawing.Point(88, 24); + | System.Windows.Forms.AnchorStyles.Right))); + this.txtTitle.BorderColor = System.Drawing.Color.Empty; + this.txtTitle.Location = new System.Drawing.Point(96, 24); this.txtTitle.Name = "txtTitle"; - this.txtTitle.Size = new System.Drawing.Size(332, 20); + this.txtTitle.Size = new System.Drawing.Size(373, 20); this.txtTitle.TabIndex = 0; - this.txtTitle.Text = ""; // // lblTitle // @@ -505,10 +535,11 @@ // this.btnFilename.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.btnFilename.Image = ((System.Drawing.Image)(resources.GetObject("btnFilename.Image"))); - this.btnFilename.Location = new System.Drawing.Point(432, 48); + this.btnFilename.Location = new System.Drawing.Point(476, 48); this.btnFilename.Name = "btnFilename"; this.btnFilename.Size = new System.Drawing.Size(20, 20); this.btnFilename.TabIndex = 2; + this.btnFilename.UseVisualStyleBackColor = true; this.btnFilename.Click += new System.EventHandler(this.btnFilename_Click); // // tabPage2 @@ -516,37 +547,39 @@ this.tabPage2.Controls.Add(this.gbExtended); this.tabPage2.Location = new System.Drawing.Point(4, 22); this.tabPage2.Name = "tabPage2"; - this.tabPage2.Size = new System.Drawing.Size(480, 422); + this.tabPage2.Size = new System.Drawing.Size(521, 471); this.tabPage2.TabIndex = 1; this.tabPage2.Text = "Extended"; + this.tabPage2.UseVisualStyleBackColor = true; // // gbExtended // this.gbExtended.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) - | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); + | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); this.gbExtended.Controls.Add(this.txtCategoryData); this.gbExtended.Controls.Add(this.lblCategoryData); this.gbExtended.Controls.Add(this.txtTagData); this.gbExtended.Controls.Add(this.lblTagData); + this.gbExtended.FlatStyle = System.Windows.Forms.FlatStyle.Popup; this.gbExtended.Location = new System.Drawing.Point(8, 8); this.gbExtended.Name = "gbExtended"; - this.gbExtended.Size = new System.Drawing.Size(464, 408); + this.gbExtended.Size = new System.Drawing.Size(505, 457); this.gbExtended.TabIndex = 0; this.gbExtended.TabStop = false; // // txtCategoryData // this.txtCategoryData.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) - | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); + | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.txtCategoryData.BorderColor = System.Drawing.Color.Empty; this.txtCategoryData.Location = new System.Drawing.Point(8, 224); this.txtCategoryData.Multiline = true; this.txtCategoryData.Name = "txtCategoryData"; this.txtCategoryData.ScrollBars = System.Windows.Forms.ScrollBars.Both; - this.txtCategoryData.Size = new System.Drawing.Size(448, 176); + this.txtCategoryData.Size = new System.Drawing.Size(489, 225); this.txtCategoryData.TabIndex = 64; - this.txtCategoryData.Text = ""; // // lblCategoryData // @@ -559,14 +592,14 @@ // txtTagData // this.txtTagData.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); + | System.Windows.Forms.AnchorStyles.Right))); + this.txtTagData.BorderColor = System.Drawing.Color.Empty; this.txtTagData.Location = new System.Drawing.Point(8, 32); this.txtTagData.Multiline = true; this.txtTagData.Name = "txtTagData"; this.txtTagData.ScrollBars = System.Windows.Forms.ScrollBars.Both; - this.txtTagData.Size = new System.Drawing.Size(448, 144); + this.txtTagData.Size = new System.Drawing.Size(489, 144); this.txtTagData.TabIndex = 62; - this.txtTagData.Text = ""; // // lblTagData // @@ -581,7 +614,7 @@ this.AcceptButton = this.btnOk; this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.CancelButton = this.btnCancel; - this.ClientSize = new System.Drawing.Size(498, 504); + this.ClientSize = new System.Drawing.Size(539, 553); this.Controls.Add(this.tcFileItemData); this.Controls.Add(this.btnOk); this.Controls.Add(this.btnCancel); @@ -592,8 +625,10 @@ this.tcFileItemData.ResumeLayout(false); this.tabPage1.ResumeLayout(false); this.gbFileDetails.ResumeLayout(false); + this.gbFileDetails.PerformLayout(); this.tabPage2.ResumeLayout(false); this.gbExtended.ResumeLayout(false); + this.gbExtended.PerformLayout(); this.ResumeLayout(false); } @@ -622,6 +657,7 @@ txtOverview.Text = m_CurFile.Overview; txtTagData.Text = m_CurFile.TagData; txtCategoryData.Text = m_CurFile.CategoryData; + gameinfoURLTextBox.Text = m_CurFile.GameInfoURL; } private void FileDetailsForm_Load(object sender, EventArgs e) @@ -712,6 +748,7 @@ CurFile.Overview = txtOverview.Text; CurFile.TagData = txtTagData.Text; CurFile.CategoryData = txtCategoryData.Text; + CurFile.GameInfoURL = this.gameinfoURLTextBox.Text; if (EntriesOK()) { this.DialogResult = DialogResult.OK; Modified: trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/FileDetailsForm.resx =================================================================== --- trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/FileDetailsForm.resx 2007-06-12 22:58:41 UTC (rev 525) +++ trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/FileDetailsForm.resx 2007-06-12 22:59:18 UTC (rev 526) @@ -3,7 +3,7 @@ <!-- Microsoft ResX Schema - Version 1.3 + Version 2.0 The primary goals of this format is to allow a simple XML format that is mostly human readable. The generation and parsing of the @@ -14,16 +14,17 @@ ... ado.net/XML headers & schema ... <resheader name="resmimetype">text/microsoft-resx</resheader> - <resheader name="version">1.3</resheader> + <resheader name="version">2.0</resheader> <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> - <data name="Name1">this is my long string</data> + <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data> <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> - [base64 mime encoded serialized .NET Framework object] + <value>[base64 mime encoded serialized .NET Framework object]</value> </data> <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> - [base64 mime encoded string representing a byte array form of the .NET Framework object] + <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> + <comment>This is a comment</comment> </data> There are any number of "resheader" rows that contain simple @@ -35,7 +36,7 @@ Classes that don't support this are serialized and stored with the mimetype set. - The mimetype is used forserialized objects, and tells the + The mimetype is used for serialized objects, and tells the ResXResourceReader how to depersist the object. This is currently not extensible. For a given mimetype the value must be set accordingly: @@ -45,7 +46,7 @@ mimetype: application/x-microsoft.net.object.binary.base64 value : The object must be serialized with - : System.Serialization.Formatters.Binary.BinaryFormatter + : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter : and then encoded with base64 encoding. mimetype: application/x-microsoft.net.object.soap.base64 @@ -59,18 +60,37 @@ : and then encoded with base64 encoding. --> <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> + <xsd:import namespace="http://www.w3.org/XML/1998/namespace" /> <xsd:element name="root" msdata:IsDataSet="true"> <xsd:complexType> <xsd:choice maxOccurs="unbounded"> + <xsd:element name="metadata"> + <xsd:complexType> + <xsd:sequence> + <xsd:element name="value" type="xsd:string" minOccurs="0" /> + </xsd:sequence> + <xsd:attribute name="name" use="required" type="xsd:string" /> + <xsd:attribute name="type" type="xsd:string" /> + <xsd:attribute name="mimetype" type="xsd:string" /> + <xsd:attribute ref="xml:space" /> + </xsd:complexType> + </xsd:element> + <xsd:element name="assembly"> + <xsd:complexType> + <xsd:attribute name="alias" type="xsd:string" /> + <xsd:attribute name="name" type="xsd:string" /> + </xsd:complexType> + </xsd:element> <xsd:element name="data"> <xsd:complexType> <xsd:sequence> <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> </xsd:sequence> - <xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" /> + <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" /> <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> + <xsd:attribute ref="xml:space" /> </xsd:complexType> </xsd:element> <xsd:element name="resheader"> @@ -89,296 +109,42 @@ <value>text/microsoft-resx</value> </resheader> <resheader name="version"> - <value>1.3</value> + <value>2.0</value> </resheader> <resheader name="reader"> - <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> + <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> </resheader> <resheader name="writer"> - <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> + <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> </resheader> - <data name="btnOk.Locked" type="System.Boolean, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> - <value>False</value> - </data> - <data name="btnOk.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> - <value>Private</value> - </data> - <data name="btnOk.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> - <value>Private</value> - </data> - <data name="btnCancel.Locked" type="System.Boolean, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> - <value>False</value> - </data> - <data name="btnCancel.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> - <value>Private</value> - </data> - <data name="btnCancel.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> - <value>Private</value> - </data> - <data name="openFileDialog1.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> - <value>Private</value> - </data> - <data name="openFileDialog1.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> - <value>Private</value> - </data> - <data name="openFileDialog1.Location" type="System.Drawing.Point, System.Drawing, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> + <metadata name="openFileDialog1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> <value>17, 17</value> - </data> - <data name="toolTip1.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> - <value>Private</value> - </data> - <data name="toolTip1.Location" type="System.Drawing.Point, System.Drawing, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> + </metadata> + <metadata name="toolTip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> <value>147, 17</value> - </data> - <data name="toolTip1.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> - <value>Private</value> - </data> - <data name="buttonViewImg.Locked" type="System.Boolean, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> - <value>False</value> - </data> - <data name="buttonViewImg.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> - <value>Private</value> - </data> - <data name="buttonViewImg.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> - <value>Private</value> - </data> - <data name="buttonViewImg.Image" type="System.Drawing.Bitmap, System.Drawing, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" mimetype="application/x-microsoft.net.object.bytearray.base64"> + </metadata> + <assembly alias="System.Drawing" name="System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> + <data name="buttonViewImg.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> <value> Qk2qAwAAAAAAADYAAAAoAAAAEQAAABEAAAABABgAAAAAAAAAAADEDgAAxA4AAAAAAAAAAAAA2Ons2Ons - 2Ons2Ons2Ons2Ons2Ons2Ons2Ons2Ons2Ons2Ons2Ons2Ons2Ons2Ons2Onsgdjp7ICAgAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAANjp7IHY6eyAgIAA//8AgAAAgAAA//8AAAAA - //8AgAAAAAAAgAAA//8AAAD//wAA//8AAADY6eyB2OnsgICAAAAAAP////8AAAAAAP//AIAAAAAA//8A - AP//AAAAAIAAAP//AAAAAAAA2Onsgdjp7ICAgP//AAAAAAD//wCAAP//AACAAAD//wCAgAAAAACAAAD/ - /wAAAP//AAAAANjp7IHY6eyAgID//////wAAAAAA//8A//8AAAAAgAAAAAAA//8AgAAAAAD//wD///8A - AADY6eyB2OnsgICA//8A//////8AAAAA//8AAP//AAAA////AAAAAAAA//8A//////8AAAAA2Onsgdjp - 7ICAgP//////AP//////AAAAAAAAAP//////AP//////AP//////AP///wAAANjp7IHY6eyAgID//wD/ - /////wD//////wD//////wD//////wD//////wD//////wAAAADY6eyB2OnsgICA//////8A//////8A - //////8A//////8A////AAAAAAAA//8A////AAAA2Onsgdjp7ICAgP//AP//////AP//////AP////// - AP///wAAAP///wD//wAAAP//AAAAANjp7IHY6eyAgID//////wD//////wD//////wD//////wAAAAAA - //////8AAAD///8AAADY6eyB2OnsgICA//8A//////8A//////8A//////8A//////8AAAAAAAAA//// - //8AAAAA2Onsgdjp7ICAgP//////AP//////AP//////AP//////AP//////AP//////AP///wAAANjp - 7IHY6eyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDY6eyB2Ons2Ons - 2Ons2Ons2Ons2Ons2Ons2Ons2Ons2Ons2Ons2Ons2Ons2Ons2Ons2Ons2Onsgdjp7Njp7Njp7Njp7Njp - 7Njp7Njp7Njp7Njp7Njp7Njp7Njp7Njp7Njp7Njp7Njp7Njp7IE= + 2Ons2Ons2Ons2Ons2Ons2Ons2Ons2Ons2Ons2Ons2Ons2Ons2Ons2Ons2OnsANjp7ICAgAAAAAAAAAAA + AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAANjp7ADY6eyAgIAA//8AgAAAgAAA//8AAAAA + //8AgAAAAAAAgAAA//8AAAD//wAA//8AAADY6ewA2OnsgICAAAAAAP////8AAAAAAP//AIAAAAAA//8A + AP//AAAAAIAAAP//AAAAAAAA2OnsANjp7ICAgP//AAAAAAD//wCAAP//AACAAAD//wCAgAAAAACAAAD/ + /wAAAP//AAAAANjp7ADY6eyAgID//////wAAAAAA//8A//8AAAAAgAAAAAAA//8AgAAAAAD//wD///8A + AADY6ewA2OnsgICA//8A//////8AAAAA//8AAP//AAAA////AAAAAAAA//8A//////8AAAAA2OnsANjp + 7ICAgP//////AP//////AAAAAAAAAP//////AP//////AP//////AP///wAAANjp7ADY6eyAgID//wD/ + /////wD//////wD//////wD//////wD//////wD//////wAAAADY6ewA2OnsgICA//////8A//////8A + //////8A//////8A////AAAAAAAA//8A////AAAA2OnsANjp7ICAgP//AP//////AP//////AP////// + AP///wAAAP///wD//wAAAP//AAAAANjp7ADY6eyAgID//////wD//////wD//////wD//////wAAAAAA + //////8AAAD///8AAADY6ewA2OnsgICA//8A//////8A//////8A//////8A//////8AAAAAAAAA//// + //8AAAAA2OnsANjp7ICAgP//////AP//////AP//////AP//////AP//////AP//////AP///wAAANjp + 7ADY6eyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDY6ewA2Ons2Ons + 2Ons2Ons2Ons2Ons2Ons2Ons2Ons2Ons2Ons2Ons2Ons2Ons2Ons2Ons2OnsANjp7Njp7Njp7Njp7Njp + 7Njp7Njp7Njp7Njp7Njp7Njp7Njp7Njp7Njp7Njp7Njp7Njp7AA= </value> </data> - <data name="tcFileItemData.SnapToGrid" type="System.Boolean, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> - <value>True</value> - </data> - <data name="tcFileItemData.Locked" type="System.Boolean, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> - <value>False</value> - </data> - <data name="tcFileItemData.DrawGrid" type="System.Boolean, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> - <value>True</value> - </data> - <data name="tcFileItemData.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> - <value>Private</value> - </data> - <data name="tcFileItemData.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> - <value>Private</value> - </data> - <data name="tcFileItemData.GridSize" type="System.Drawing.Size, System.Drawing, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> - <value>8, 8</value> - </data> - <data name="tabPage1.Locked" type="System.Boolean, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> - <value>False</value> - </data> - <data name="tabPage1.SnapToGrid" type="System.Boolean, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> - <value>True</value> - </data> - <data name="tabPage1.DrawGrid" type="System.Boolean, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> - <value>True</value> - </data> - <data name="tabPage1.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> - <value>Private</value> - </data> - <data name="tabPage1.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> - <value>Private</value> - </data> - <data name="tabPage1.GridSize" type="System.Drawing.Size, System.Drawing, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> - <value>8, 8</value> - </data> - <data name="gbFileDetails.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> - <value>Private</value> - </data> - <data name="gbFileDetails.GridSize" type="System.Drawing.Size, System.Drawing, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> - <value>8, 8</value> - </data> - <data name="gbFileDetails.SnapToGrid" type="System.Boolean, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> - <value>True</value> - </data> - <data name="gbFileDetails.Locked" type="System.Boolean, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> - <value>False</value> - </data> - <data name="gbFileDetails.DrawGrid" type="System.Boolean, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> - <value>True</value> - </data> - <data name="gbFileDetails.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> - <value>Private</value> - </data> - <data name="txtFilepath.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> - <value>Private</value> - </data> - <data name="txtFilepath.Locked" type="System.Boolean, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> - <value>False</value> - </data> - <data name="txtFilepath.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> - <value>Private</value> - </data> - <data name="label1.Locked" type="System.Boolean, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> - <value>False</value> - </data> - <data name="label1.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> - <value>Private</value> - </data> - <data name="label1.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> - <value>Private</value> - </data> - <data name="cbRating.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> - <value>Private</value> - </data> - <data name="cbRating.Locked" type="System.Boolean, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> - <value>False</value> - </data> - <data name="cbRating.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> - <value>Private</value> - </data> - <data name="txtOverview.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> - <value>Private</value> - </data> - <data name="txtOverview.Locked" type="System.Boolean, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> - <value>False</value> - </data> - <data name="txtOverview.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> - <value>Private</value> - </data> - <data name="lblOverview.Locked" type="System.Boolean, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> - <value>False</value> - </data> - <data name="lblOverview.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> - <value>Private</value> - </data> - <data name="lblOverview.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> - <value>Private</value> - </data> - <data name="txtSystem.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> - <value>Private</value> - </data> - <data name="txtSystem.Locked" type="System.Boolean, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> - <value>False</value> - </data> - <data name="txtSystem.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> - <value>Private</value> - </data> - <data name="lblSystem.Locked" type="System.Boolean, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> - <value>False</value> - </data> - <data name="lblSystem.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> - <value>Private</value> - </data> - <data name="lblSystem.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> - <value>Private</value> - </data> - <data name="txtCountry.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> - <value>Private</value> - </data> - <data name="txtCountry.Locked" type="System.Boolean, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> - <value>False</value> - </data> - <data name="txtCountry.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> - <value>Private</value> - </data> - <data name="lblCountry.Locked" type="System.Boolean, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> - <value>False</value> - </data> - <data name="lblCountry.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> - <value>Private</value> - </data> - <data name="lblCountry.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> - <value>Private</value> - </data> - <data name="lblRating.Locked" type="System.Boolean, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> - <value>False</value> - </data> - <data name="lblRating.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> - <value>Private</value> - </data> - <data name="lblRating.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> - <value>Private</value> - </data> - <data name="txtYear.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> - <value>Private</value> - </data> - <data name="txtYear.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> - <value>Private</value> - </data> - <data name="txtYear.Locked" type="System.Boolean, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> - <value>False</value> - </data> - <data name="lblYear.Locked" type="System.Boolean, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> - <value>False</value> - </data> - <data name="lblYear.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> - <value>Private</value> - </data> - <data name="lblYear.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> - <value>Private</value> - </data> - <data name="txtManufacturer.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> - <value>Private</value> - </data> - <data name="txtManufacturer.Locked" type="System.Boolean, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> - <value>False</value> - </data> - <data name="txtManufacturer.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> - <value>Private</value> - </data> - <data name="lblManufacturer.Locked" type="System.Boolean, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> - <value>False</value> - </data> - <data name="lblManufacturer.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> - <value>Private</value> - </data> - <data name="lblManufacturer.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> - <value>Private</value> - </data> - <data name="txtGenre.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> - <value>Private</value> - </data> - <data name="txtGenre.Locked" type="System.Boolean, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> - <value>False</value> - </data> - <data name="txtGenre.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> - <value>Private</value> - </data> - <data name="lblGenre.Locked" type="System.Boolean, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> - <value>False</value> - </data> - <data name="lblGenre.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> - <value>Private</value> - </data> - <data name="lblGenre.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> - <value>Private</value> - </data> - <data name="lblImageFile.Locked" type="System.Boolean, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> - <value>False</value> - </data> - <data name="lblImageFile.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> - <value>Private</value> - </data> - <data name="lblImageFile.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> - <value>Private</value> - </data> - <data name="btnImageFile.Locked" type="System.Boolean, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> - <value>False</value> - </data> - <data name="btnImageFile.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> - <value>Private</value> - </data> - <data name="btnImageFile.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> - <value>Private</value> - </data> - <data name="btnImageFile.Image" type="System.Drawing.Bitmap, System.Drawing, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" mimetype="application/x-microsoft.net.object.bytearray.base64"> + <data name="btnImageFile.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> <value> Qk2mAgAAAAAAADYAAAAoAAAADwAAAA0AAAABABgAAAAAAAAAAADEDgAAxA4AAAAAAAAAAAAA////AAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAICAQMDAQMDAQMDAQMDAQMDA @@ -394,61 +160,7 @@ ////////////////////AAAA </value> </data> - <data name="txtFilename.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> - <value>Private</value> - </data> - <data name="txtFilename.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> - <value>Private</value> - </data> - <data name="txtFilename.Locked" type="System.Boolean, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> - <value>False</value> - </data> - <data name="txtImageFile.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> - <value>Private</value> - </data> - <data name="txtImageFile.Locked" type="System.Boolean, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> - <value>False</value> - </data> - <data name="txtImageFile.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> - <value>Private</value> - </data> - <data name="txtTitle.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> - <value>Private</value> - </data> - <data name="txtTitle.Locked" type="System.Boolean, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> - <value>False</value> - </data> - <data name="txtTitle.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> - <value>Private</value> - </data> - <data name="lblTitle.Locked" type="System.Boolean, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> - <value>False</value> - </data> - <data name="lblTitle.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> - <value>Private</value> - </data> - <data name="lblTitle.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> - <value>Private</value> - </data> - <data name="lblFilename.Locked" type="System.Boolean, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> - <value>False</value> - </data> - <data name="lblFilename.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> - <value>Private</value> - </data> - <data name="lblFilename.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> - <value>Private</value> - </data> - <data name="btnFilename.Locked" type="System.Boolean, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> - <value>False</value> - </data> - <data name="btnFilename.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> - <value>Private</value> - </data> - <data name="btnFilename.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> - <value>Private</value> - </data> - <data name="btnFilename.Image" type="System.Drawing.Bitmap, System.Drawing, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" mimetype="application/x-microsoft.net.object.bytearray.base64"> + <data name="btnFilename.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> <value> Qk2mAgAAAAAAADYAAAAoAAAADwAAAA0AAAABABgAAAAAAAAAAADEDgAAxA4AAAAAAAAAAAAA////AAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAICAQMDAQMDAQMDAQMDAQMDA @@ -464,106 +176,7 @@ ////////////////////AAAA </value> </data> - <data name="tabPage2.Locked" type="System.Boolean, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> - <value>False</value> - </data> - <data name="tabPage2.SnapToGrid" type="System.Boolean, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> - <value>True</value> - </data> - <data name="tabPage2.DrawGrid" type="System.Boolean, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> - <value>True</value> - </data> - <data name="tabPage2.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> - <value>Private</value> - </data> - <data name="tabPage2.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> - <value>Private</value> - </data> - <data name="tabPage2.GridSize" type="System.Drawing.Size, System.Drawing, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> - <value>8, 8</value> - </data> - <data name="gbExtended.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> - <value>Private</value> - </data> - <data name="gbExtended.GridSize" type="System.Drawing.Size, System.Drawing, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> - <value>8, 8</value> - </data> - <data name="gbExtended.SnapToGrid" type="System.Boolean, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> - <value>True</value> - </data> - <data name="gbExtended.Locked" type="System.Boolean, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> - <value>False</value> - </data> - <data name="gbExtended.DrawGrid" type="System.Boolean, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> - <value>True</value> - </data> - <data name="gbExtended.Modifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> - <value>Private</value> - </data> - <data name="txtCategoryData.DefaultModifiers" type="System.CodeDom.MemberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> - <value>Private</value> - </data> - <data name="txtCategoryData.Locked" type="System.Boolean, mscorlib, ... [truncated message content] |
[Mp-plugins-svn] SF.net SVN: mp-plugins: [539]
trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt /Design
From: <che...@us...> - 2007-06-13 22:57:58
|
Revision: 539 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=539&view=rev Author: chef_koch Date: 2007-06-13 15:57:56 -0700 (Wed, 13 Jun 2007) Log Message: ----------- changed startupDirTextBox to startupDirComboBox containing - %FILEDIR% - DirectoryName of applicationExeTextBox Modified Paths: -------------- trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppFilesImportProgress.Designer.cs trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppFilesImportProgress.cs trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppSettingsBase.Designer.cs trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppSettingsBase.cs trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppSettingsDirCache.Designer.cs trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppSettingsDirCache.cs trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppSettingsGamebase.Designer.cs trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppSettingsGamebase.cs trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppSettingsGrouper.Designer.cs trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppSettingsGrouper.cs trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppSettingsMame.Designer.cs trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppSettingsMame.cs trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppSettingsRoot.Designer.cs trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppSettingsRoot.cs Modified: trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppFilesImportProgress.Designer.cs =================================================================== --- trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppFilesImportProgress.Designer.cs 2007-06-13 22:08:24 UTC (rev 538) +++ trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppFilesImportProgress.Designer.cs 2007-06-13 22:57:56 UTC (rev 539) @@ -68,7 +68,7 @@ // // startupDirTextBox // - this.toolTip.SetToolTip(this.startupDirTextBox, "Optional path that is passed as the launch-directory \r\n\r\n(advanced hint: Use %FIL" + + this.toolTip.SetToolTip(this.startupDirComboBox, "Optional path that is passed as the launch-directory \r\n\r\n(advanced hint: Use %FIL" + "EDIR% if you want to use the directory where the launched file is stored)"); // // quoteCheckBox @@ -121,7 +121,7 @@ this.Controls.SetChildIndex(this.applicationArgumentsTextBox, 0); this.Controls.SetChildIndex(this.winStyleLabel, 0); this.Controls.SetChildIndex(this.winStyleComboBox, 0); - this.Controls.SetChildIndex(this.startupDirTextBox, 0); + this.Controls.SetChildIndex(this.startupDirComboBox, 0); this.Controls.SetChildIndex(this.startupDirLabel, 0); this.Controls.SetChildIndex(this.quoteCheckBox, 0); this.Controls.SetChildIndex(this.applicationImageButton, 0); Modified: trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppFilesImportProgress.cs =================================================================== --- trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppFilesImportProgress.cs 2007-06-13 22:08:24 UTC (rev 538) +++ trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppFilesImportProgress.cs 2007-06-13 22:57:56 UTC (rev 539) @@ -43,7 +43,7 @@ winStyleComboBox.Visible = false; startupDirButton.Visible = false; startupDirLabel.Visible = false; - startupDirTextBox.Visible = false; + startupDirComboBox.Visible = false; quoteCheckBox.Visible = false; Modified: trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppSettingsBase.Designer.cs =================================================================== --- trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppSettingsBase.Designer.cs 2007-06-13 22:08:24 UTC (rev 538) +++ trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppSettingsBase.Designer.cs 2007-06-13 22:57:56 UTC (rev 539) @@ -44,7 +44,6 @@ this.applicationArgumentsTextBox = new System.Windows.Forms.TextBox(); this.winStyleLabel = new System.Windows.Forms.Label(); this.winStyleComboBox = new System.Windows.Forms.ComboBox(); - this.startupDirTextBox = new System.Windows.Forms.TextBox(); this.startupDirLabel = new System.Windows.Forms.Label(); this.quoteCheckBox = new System.Windows.Forms.CheckBox(); this.applicationImageButton = new System.Windows.Forms.Button(); @@ -56,6 +55,7 @@ this.folderBrowserDialog = new System.Windows.Forms.FolderBrowserDialog(); this.applicationExeTextBox = new System.Windows.Forms.TextBox(); this.prePostButton = new System.Windows.Forms.Button(); + this.startupDirComboBox = new System.Windows.Forms.ComboBox(); this.SuspendLayout(); // // winTypeLabel @@ -73,7 +73,7 @@ this.enabledCheckbox.AutoSize = true; this.enabledCheckbox.Location = new System.Drawing.Point(427, 17); this.enabledCheckbox.Name = "enabledCheckbox"; - this.enabledCheckbox.Size = new System.Drawing.Size(65, 17); + this.enabledCheckbox.Size = new System.Drawing.Size(64, 17); this.enabledCheckbox.TabIndex = 1; this.enabledCheckbox.Text = "Enabled"; this.enabledCheckbox.UseVisualStyleBackColor = true; @@ -101,7 +101,7 @@ this.titleTextBox.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.titleTextBox.Location = new System.Drawing.Point(94, 44); this.titleTextBox.Name = "titleTextBox"; - this.titleTextBox.Size = new System.Drawing.Size(325, 20); + this.titleTextBox.Size = new System.Drawing.Size(325, 21); this.titleTextBox.TabIndex = 4; // // applicationExeButton @@ -119,7 +119,7 @@ this.shellexecuteCheckBox.AutoSize = true; this.shellexecuteCheckBox.Location = new System.Drawing.Point(7, 322); this.shellexecuteCheckBox.Name = "shellexecuteCheckBox"; - this.shellexecuteCheckBox.Size = new System.Drawing.Size(88, 17); + this.shellexecuteCheckBox.Size = new System.Drawing.Size(87, 17); this.shellexecuteCheckBox.TabIndex = 7; this.shellexecuteCheckBox.Text = "ShellExecute"; this.shellexecuteCheckBox.UseVisualStyleBackColor = true; @@ -130,7 +130,7 @@ this.waitExitCheckBox.AutoSize = true; this.waitExitCheckBox.Location = new System.Drawing.Point(7, 368); this.waitExitCheckBox.Name = "waitExitCheckBox"; - this.waitExitCheckBox.Size = new System.Drawing.Size(82, 17); + this.waitExitCheckBox.Size = new System.Drawing.Size(86, 17); this.waitExitCheckBox.TabIndex = 8; this.waitExitCheckBox.Text = "Wait for exit"; this.waitExitCheckBox.UseVisualStyleBackColor = true; @@ -158,7 +158,7 @@ this.applicationImageTextBox.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.applicationImageTextBox.Location = new System.Drawing.Point(94, 97); this.applicationImageTextBox.Name = "applicationImageTextBox"; - this.applicationImageTextBox.Size = new System.Drawing.Size(325, 20); + this.applicationImageTextBox.Size = new System.Drawing.Size(325, 21); this.applicationImageTextBox.TabIndex = 13; // // applicationArgumentsTextBox @@ -166,7 +166,7 @@ this.applicationArgumentsTextBox.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.applicationArgumentsTextBox.Location = new System.Drawing.Point(94, 123); this.applicationArgumentsTextBox.Name = "applicationArgumentsTextBox"; - this.applicationArgumentsTextBox.Size = new System.Drawing.Size(325, 20); + this.applicationArgumentsTextBox.Size = new System.Drawing.Size(325, 21); this.applicationArgumentsTextBox.TabIndex = 14; // // winStyleLabel @@ -193,14 +193,6 @@ this.winStyleComboBox.Size = new System.Drawing.Size(325, 21); this.winStyleComboBox.TabIndex = 16; // - // startupDirTextBox - // - this.startupDirTextBox.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.startupDirTextBox.Location = new System.Drawing.Point(94, 177); - this.startupDirTextBox.Name = "startupDirTextBox"; - this.startupDirTextBox.Size = new System.Drawing.Size(325, 20); - this.startupDirTextBox.TabIndex = 17; - // // startupDirLabel // this.startupDirLabel.Location = new System.Drawing.Point(3, 177); @@ -215,7 +207,7 @@ this.quoteCheckBox.AutoSize = true; this.quoteCheckBox.Location = new System.Drawing.Point(7, 299); this.quoteCheckBox.Name = "quoteCheckBox"; - this.quoteCheckBox.Size = new System.Drawing.Size(102, 17); + this.quoteCheckBox.Size = new System.Drawing.Size(104, 17); this.quoteCheckBox.TabIndex = 19; this.quoteCheckBox.Text = "Quote filenames"; this.quoteCheckBox.UseVisualStyleBackColor = true; @@ -245,7 +237,7 @@ this.allowRefreshCheckBox.AutoSize = true; this.allowRefreshCheckBox.Location = new System.Drawing.Point(7, 345); this.allowRefreshCheckBox.Name = "allowRefreshCheckBox"; - this.allowRefreshCheckBox.Size = new System.Drawing.Size(154, 17); + this.allowRefreshCheckBox.Size = new System.Drawing.Size(159, 17); this.allowRefreshCheckBox.TabIndex = 30; this.allowRefreshCheckBox.Text = "Allow refresh in mediaportal"; this.allowRefreshCheckBox.UseVisualStyleBackColor = true; @@ -266,8 +258,9 @@ this.applicationExeTextBox.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.applicationExeTextBox.Location = new System.Drawing.Point(94, 71); this.applicationExeTextBox.Name = "applicationExeTextBox"; - this.applicationExeTextBox.Size = new System.Drawing.Size(325, 20); + this.applicationExeTextBox.Size = new System.Drawing.Size(325, 21); this.applicationExeTextBox.TabIndex = 32; + this.applicationExeTextBox.TextChanged += new System.EventHandler(this.applicationExeTextBox_TextChanged); // // prePostButton // @@ -279,10 +272,19 @@ this.prePostButton.UseVisualStyleBackColor = true; this.prePostButton.Click += new System.EventHandler(this.prePostButton_Click); // + // startupDirComboBox + // + this.startupDirComboBox.FormattingEnabled = true; + this.startupDirComboBox.Location = new System.Drawing.Point(94, 177); + this.startupDirComboBox.Name = "startupDirComboBox"; + this.startupDirComboBox.Size = new System.Drawing.Size(325, 21); + this.startupDirComboBox.TabIndex = 36; + // // AppSettingsBase // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.Controls.Add(this.startupDirComboBox); this.Controls.Add(this.prePostButton); this.Controls.Add(this.applicationExeTextBox); this.Controls.Add(this.informationLabel); @@ -291,7 +293,6 @@ this.Controls.Add(this.applicationImageButton); this.Controls.Add(this.quoteCheckBox); this.Controls.Add(this.startupDirLabel); - this.Controls.Add(this.startupDirTextBox); this.Controls.Add(this.winStyleComboBox); this.Controls.Add(this.winStyleLabel); this.Controls.Add(this.applicationArgumentsTextBox); @@ -329,7 +330,6 @@ protected System.Windows.Forms.TextBox applicationArgumentsTextBox; protected System.Windows.Forms.Label winStyleLabel; protected System.Windows.Forms.ComboBox winStyleComboBox; - protected System.Windows.Forms.TextBox startupDirTextBox; protected System.Windows.Forms.Label startupDirLabel; protected System.Windows.Forms.CheckBox quoteCheckBox; protected System.Windows.Forms.Button applicationImageButton; @@ -341,5 +341,6 @@ protected System.Windows.Forms.OpenFileDialog openFileDialog; protected System.Windows.Forms.TextBox applicationExeTextBox; protected System.Windows.Forms.Button prePostButton; + protected System.Windows.Forms.ComboBox startupDirComboBox; } } \ No newline at end of file Modified: trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppSettingsBase.cs =================================================================== --- trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppSettingsBase.cs 2007-06-13 22:08:24 UTC (rev 538) +++ trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppSettingsBase.cs 2007-06-13 22:57:56 UTC (rev 539) @@ -1,21 +1,22 @@ using System; using System.Collections.Generic; using System.ComponentModel; +using System.Data; +using System.Diagnostics; using System.Drawing; -using System.Data; +using System.IO; using System.Text; -using System.Diagnostics; using System.Windows.Forms; using Core.Util; -using GUIPrograms.Database; + using GUIPrograms; using GUIPrograms.ApplicationItems; +using GUIPrograms.Database; namespace GUIPrograms.Design { - public partial class AppSettingsBase : UserControl { string preLaunch = string.Empty; @@ -115,7 +116,7 @@ toolTip.SetToolTip(shellexecuteCheckBox, "Enable this if you want to run a program that is associated with a specific file-" + "extension.\r\n Omit the \"Launching Application\" in this case."); toolTip.SetToolTip(quoteCheckBox, "Quotes are usually needed to handle filenames with spaces correctly. \r\nAvoid double" + " quotes though!"); - toolTip.SetToolTip(startupDirTextBox, "Optional path that is passed as the launch-directory \r\n\r\n(advanced hint: Use %FILEDIR" + + toolTip.SetToolTip(startupDirComboBox, "Optional path that is passed as the launch-directory \r\n\r\n(advanced hint: Use %FILEDIR" + "% if you want to use the directory where the launched file is stored)"); toolTip.SetToolTip(winStyleComboBox, "Appearance of the launched program. \r\nTry HIDDEN or MINIMIZED for a seamless integr" + "ation in MediaPortal"); toolTip.SetToolTip(applicationArgumentsTextBox, "Optional arguments that are needed to launch the program \r\n\r\n(advanced hint: Use %FIL" + @@ -150,10 +151,10 @@ protected void startupDirButton_Click(object sender, EventArgs e) { - folderBrowserDialog.SelectedPath = startupDirTextBox.Text; + folderBrowserDialog.SelectedPath = startupDirComboBox.Text; if (folderBrowserDialog.ShowDialog(null) == DialogResult.OK) { - startupDirTextBox.Text = folderBrowserDialog.SelectedPath; + startupDirComboBox.Text = folderBrowserDialog.SelectedPath; } } @@ -192,5 +193,13 @@ this.applicationExeButton.Enabled = true; } } + + private void applicationExeTextBox_TextChanged(object sender, EventArgs e) + { + startupDirComboBox.Items.Clear(); + startupDirComboBox.Items.Add("%FILEDIR%"); + if (File.Exists(applicationExeTextBox.Text)) + startupDirComboBox.Items.Add(Path.GetDirectoryName(applicationExeTextBox.Text)); + } } } Modified: trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppSettingsDirCache.Designer.cs =================================================================== --- trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppSettingsDirCache.Designer.cs 2007-06-13 22:08:24 UTC (rev 538) +++ trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppSettingsDirCache.Designer.cs 2007-06-13 22:57:56 UTC (rev 539) @@ -60,7 +60,7 @@ // // startupDirTextBox // - this.toolTip.SetToolTip(this.startupDirTextBox, "Optional path that is passed as the launch-directory \r\n\r\n(advanced hint: Use %FIL" + + this.toolTip.SetToolTip(this.startupDirComboBox, "Optional path that is passed as the launch-directory \r\n\r\n(advanced hint: Use %FIL" + "EDIR% if you want to use the directory where the launched file is stored)"); // // quoteCheckBox Modified: trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppSettingsDirCache.cs =================================================================== --- trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppSettingsDirCache.cs 2007-06-13 22:08:24 UTC (rev 538) +++ trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppSettingsDirCache.cs 2007-06-13 22:57:56 UTC (rev 539) @@ -29,7 +29,7 @@ applicationExeTextBox.Text = curApp.Filename; applicationArgumentsTextBox.Text = curApp.Arguments; SetWindowStyle(curApp.WindowStyle); - startupDirTextBox.Text = curApp.Startupdir; + startupDirComboBox.Text = curApp.Startupdir; shellexecuteCheckBox.Checked = (curApp.UseShellExecute); quoteCheckBox.Checked = (curApp.UseQuotes); waitExitCheckBox.Checked = (curApp.WaitForExit); @@ -47,7 +47,7 @@ curApp.Filename = applicationExeTextBox.Text; curApp.Arguments = applicationArgumentsTextBox.Text; curApp.WindowStyle = GetSelectedWindowStyle(); - curApp.Startupdir = startupDirTextBox.Text; + curApp.Startupdir = startupDirComboBox.Text; curApp.UseShellExecute = (shellexecuteCheckBox.Checked); curApp.UseQuotes = (quoteCheckBox.Checked); curApp.WaitForExit = (waitExitCheckBox.Checked); @@ -84,7 +84,7 @@ applicationArgumentsTextBox.Text = applicationItem.Arguments; SetWindowStyle(applicationItem.WindowStyle); - startupDirTextBox.Text = applicationItem.Startupdir; + startupDirComboBox.Text = applicationItem.Startupdir; shellexecuteCheckBox.Checked = applicationItem.UseShellExecute; quoteCheckBox.Checked = applicationItem.UseQuotes; waitExitCheckBox.Checked = applicationItem.WaitForExit; Modified: trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppSettingsGamebase.Designer.cs =================================================================== --- trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppSettingsGamebase.Designer.cs 2007-06-13 22:08:24 UTC (rev 538) +++ trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppSettingsGamebase.Designer.cs 2007-06-13 22:57:56 UTC (rev 539) @@ -66,7 +66,7 @@ // // startupDirTextBox // - this.toolTip.SetToolTip(this.startupDirTextBox, "Optional path that is passed as the launch-directory \r\n\r\n(advanced hint: Use %FIL" + + this.toolTip.SetToolTip(this.startupDirComboBox, "Optional path that is passed as the launch-directory \r\n\r\n(advanced hint: Use %FIL" + "EDIR% if you want to use the directory where the launched file is stored)"); // // quoteCheckBox Modified: trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppSettingsGamebase.cs =================================================================== --- trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppSettingsGamebase.cs 2007-06-13 22:08:24 UTC (rev 538) +++ trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppSettingsGamebase.cs 2007-06-13 22:57:56 UTC (rev 539) @@ -42,7 +42,7 @@ this.titleTextBox.Text = curApp.Title; this.applicationExeTextBox.Text = curApp.Filename; this.applicationArgumentsTextBox.Text = curApp.Arguments; - this.startupDirTextBox.Text = curApp.Startupdir; + this.startupDirComboBox.Text = curApp.Startupdir; this.quoteCheckBox.Checked = true; //(curApp.UseQuotes); this.waitExitCheckBox.Checked = (curApp.WaitForExit); @@ -63,7 +63,7 @@ curApp.Filename = this.applicationExeTextBox.Text; curApp.Arguments = this.applicationArgumentsTextBox.Text; curApp.WindowStyle = GetSelectedWindowStyle(); - curApp.Startupdir = this.startupDirTextBox.Text; + curApp.Startupdir = this.startupDirComboBox.Text; curApp.UseShellExecute = (this.shellexecuteCheckBox.Checked); curApp.UseQuotes = (this.quoteCheckBox.Checked); curApp.WaitForExit = (this.waitExitCheckBox.Checked); Modified: trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppSettingsGrouper.Designer.cs =================================================================== --- trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppSettingsGrouper.Designer.cs 2007-06-13 22:08:24 UTC (rev 538) +++ trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppSettingsGrouper.Designer.cs 2007-06-13 22:57:56 UTC (rev 539) @@ -60,7 +60,7 @@ // // startupDirTextBox // - this.toolTip.SetToolTip(this.startupDirTextBox, "Optional path that is passed as the launch-directory \r\n\r\n(advanced hint: Use %FIL" + + this.toolTip.SetToolTip(this.startupDirComboBox, "Optional path that is passed as the launch-directory \r\n\r\n(advanced hint: Use %FIL" + "EDIR% if you want to use the directory where the launched file is stored)"); // // quoteCheckBox Modified: trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppSettingsGrouper.cs =================================================================== --- trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppSettingsGrouper.cs 2007-06-13 22:08:24 UTC (rev 538) +++ trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppSettingsGrouper.cs 2007-06-13 22:57:56 UTC (rev 539) @@ -35,7 +35,7 @@ winStyleComboBox.Visible = false; startupDirButton.Visible = false; startupDirLabel.Visible = false; - startupDirTextBox.Visible = false; + startupDirComboBox.Visible = false; quoteCheckBox.Visible = false; allowRefreshCheckBox.Visible = false; Modified: trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppSettingsMame.Designer.cs =================================================================== --- trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppSettingsMame.Designer.cs 2007-06-13 22:08:24 UTC (rev 538) +++ trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppSettingsMame.Designer.cs 2007-06-13 22:57:56 UTC (rev 539) @@ -66,7 +66,7 @@ // // startupDirTextBox // - this.toolTip.SetToolTip(this.startupDirTextBox, "Optional path that is passed as the launch-directory \r\n\r\n(advanced hint: Use %FIL" + + this.toolTip.SetToolTip(this.startupDirComboBox, "Optional path that is passed as the launch-directory \r\n\r\n(advanced hint: Use %FIL" + "EDIR% if you want to use the directory where the launched file is stored)"); // // quoteCheckBox @@ -161,7 +161,7 @@ this.Controls.SetChildIndex(this.applicationArgumentsTextBox, 0); this.Controls.SetChildIndex(this.winStyleLabel, 0); this.Controls.SetChildIndex(this.winStyleComboBox, 0); - this.Controls.SetChildIndex(this.startupDirTextBox, 0); + this.Controls.SetChildIndex(this.startupDirComboBox, 0); this.Controls.SetChildIndex(this.startupDirLabel, 0); this.Controls.SetChildIndex(this.quoteCheckBox, 0); this.Controls.SetChildIndex(this.applicationImageButton, 0); Modified: trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppSettingsMame.cs =================================================================== --- trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppSettingsMame.cs 2007-06-13 22:08:24 UTC (rev 538) +++ trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppSettingsMame.cs 2007-06-13 22:57:56 UTC (rev 539) @@ -83,7 +83,7 @@ { this.startupDirButton.Visible = false; this.startupDirLabel.Visible = false; - this.startupDirTextBox.Visible = false; + this.startupDirComboBox.Visible = false; quoteCheckBox.Visible = false; waitExitCheckBox.Visible = false; Modified: trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppSettingsRoot.Designer.cs =================================================================== --- trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppSettingsRoot.Designer.cs 2007-06-13 22:08:24 UTC (rev 538) +++ trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppSettingsRoot.Designer.cs 2007-06-13 22:57:56 UTC (rev 539) @@ -69,7 +69,7 @@ // // startupDirTextBox // - this.toolTip.SetToolTip(this.startupDirTextBox, "Optional path that is passed as the launch-directory \r\n\r\n(advanced hint: Use %FIL" + + this.toolTip.SetToolTip(this.startupDirComboBox, "Optional path that is passed as the launch-directory \r\n\r\n(advanced hint: Use %FIL" + "EDIR% if you want to use the directory where the launched file is stored)"); // // quoteCheckBox @@ -120,7 +120,7 @@ this.Controls.SetChildIndex(this.applicationArgumentsTextBox, 0); this.Controls.SetChildIndex(this.winStyleLabel, 0); this.Controls.SetChildIndex(this.winStyleComboBox, 0); - this.Controls.SetChildIndex(this.startupDirTextBox, 0); + this.Controls.SetChildIndex(this.startupDirComboBox, 0); this.Controls.SetChildIndex(this.startupDirLabel, 0); this.Controls.SetChildIndex(this.quoteCheckBox, 0); this.Controls.SetChildIndex(this.startupDirButton, 0); Modified: trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppSettingsRoot.cs =================================================================== --- trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppSettingsRoot.cs 2007-06-13 22:08:24 UTC (rev 538) +++ trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppSettingsRoot.cs 2007-06-13 22:57:56 UTC (rev 539) @@ -49,7 +49,7 @@ startupDirButton.Visible = false; startupDirLabel.Visible = false; - startupDirTextBox.Visible = false; + startupDirComboBox.Visible = false; quoteCheckBox.Visible = false; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
[Mp-plugins-svn] SF.net SVN: mp-plugins: [544]
trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt /Design
From: <che...@us...> - 2007-06-14 11:48:49
|
Revision: 544 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=544&view=rev Author: chef_koch Date: 2007-06-14 04:48:46 -0700 (Thu, 14 Jun 2007) Log Message: ----------- small formatting changes Modified Paths: -------------- trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppFilesImportProgress.cs trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppFilesView.cs trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppSettingsBase.cs trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppSettingsDirCache.cs trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppSettingsGamebase.cs trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppSettingsGrouper.cs trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppSettingsMame.cs trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppSettingsRoot.cs Modified: trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppFilesImportProgress.cs =================================================================== --- trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppFilesImportProgress.cs 2007-06-14 11:34:48 UTC (rev 543) +++ trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppFilesImportProgress.cs 2007-06-14 11:48:46 UTC (rev 544) @@ -1,19 +1,43 @@ +#region Copyright (C) 2005-2007 Team MediaPortal + +/* + * Copyright (C) 2005-2007 Team MediaPortal + * http://www.team-mediaportal.com + * + * This Program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This Program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with GNU Make; see the file COPYING. If not, write to + * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. + * http://www.gnu.org/copyleft/gpl.html + * + */ + +#endregion + using System; using System.Collections.Generic; using System.ComponentModel; +using System.Data; using System.Drawing; -using System.Data; using System.Text; using System.Windows.Forms; -using GUIPrograms.Database; using GUIPrograms.ApplicationItems; +using GUIPrograms.Database; namespace GUIPrograms.Design { public partial class AppFilesImportProgress : AppSettingsBase { - private bool isImportRunning; private ApplicationItem curApp; const string importStartedText = "=== import started..."; @@ -54,7 +78,6 @@ prePostButton.Visible = false; } - public void RunImport() { // RunImport(); @@ -113,6 +136,5 @@ isImportRunning = value; } } - } -} +} \ No newline at end of file Modified: trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppFilesView.cs =================================================================== --- trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppFilesView.cs 2007-06-14 11:34:48 UTC (rev 543) +++ trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppFilesView.cs 2007-06-14 11:48:46 UTC (rev 544) @@ -1,16 +1,41 @@ +#region Copyright (C) 2005-2007 Team MediaPortal + +/* + * Copyright (C) 2005-2007 Team MediaPortal + * http://www.team-mediaportal.com + * + * This Program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This Program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with GNU Make; see the file COPYING. If not, write to + * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. + * http://www.gnu.org/copyleft/gpl.html + * + */ + +#endregion + using System; using System.Collections.Generic; using System.ComponentModel; +using System.Data; using System.Drawing; -using System.Data; using System.IO; using System.Text; using System.Windows.Forms; using GUIPrograms; +using GUIPrograms.ApplicationItems; using GUIPrograms.Database; using GUIPrograms.FileItems; -using GUIPrograms.ApplicationItems; namespace GUIPrograms.Design { @@ -150,7 +175,6 @@ // filePathsLabel.Text = currentApplication.CurrentFilePath().Replace("&", "&&"); } - public string FileExtensionsText { @@ -261,7 +285,6 @@ } } - private void DeleteItems() { if (fileListView.SelectedItems.Count >= 1) @@ -439,7 +462,6 @@ } } - private void addFavoriteButton_Click(object sender, EventArgs e) { this.contextFavouritesMenuStrip.Show(addFavouriteButton, new Point(0, addFavouriteButton.Height)); @@ -449,6 +471,7 @@ { ShowFileScraper(); } + void ShowFileScraper() { if (FirstImageDirectoryValid()) @@ -588,7 +611,6 @@ } } - private void AppFilesView_Load(object sender, EventArgs e) { @@ -687,7 +709,6 @@ } - protected void fileDirButton_Click(object sender, EventArgs e) { folderBrowserDialog.SelectedPath = this.fileDirTextBox.Text; @@ -705,7 +726,6 @@ } } - /* void FillMameDirs() { string mameExe = this.applicationExeTextBox.Text; @@ -848,7 +868,5 @@ SetSourceDirectories(); } - - } -} +} \ No newline at end of file Modified: trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppSettingsBase.cs =================================================================== --- trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppSettingsBase.cs 2007-06-14 11:34:48 UTC (rev 543) +++ trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppSettingsBase.cs 2007-06-14 11:48:46 UTC (rev 544) @@ -1,3 +1,28 @@ +#region Copyright (C) 2005-2007 Team MediaPortal + +/* + * Copyright (C) 2005-2007 Team MediaPortal + * http://www.team-mediaportal.com + * + * This Program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This Program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with GNU Make; see the file COPYING. If not, write to + * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. + * http://www.gnu.org/copyleft/gpl.html + * + */ + +#endregion + using System; using System.Collections.Generic; using System.ComponentModel; @@ -13,16 +38,13 @@ using GUIPrograms.ApplicationItems; using GUIPrograms.Database; - namespace GUIPrograms.Design { - public partial class AppSettingsBase : UserControl { string preLaunch = string.Empty; string postLaunch = string.Empty; - protected ConditionChecker conditionChecker = new ConditionChecker(); public AppSettingsBase() @@ -31,7 +53,6 @@ InitDefault(); } - public virtual bool AppItemToForm(ApplicationItem curApp) { if (curApp != null) @@ -48,7 +69,6 @@ return true; } - public virtual void FormToAppItem(ApplicationItem curApp) { if (curApp != null) @@ -158,7 +178,6 @@ } } - private void prePostButton_Click(object sender, EventArgs e) { using (AppSettingsPrePost prePostForm = new AppSettingsPrePost()) @@ -202,4 +221,4 @@ startupDirComboBox.Items.Add(Path.GetDirectoryName(applicationExeTextBox.Text)); } } -} +} \ No newline at end of file Modified: trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppSettingsDirCache.cs =================================================================== --- trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppSettingsDirCache.cs 2007-06-14 11:34:48 UTC (rev 543) +++ trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppSettingsDirCache.cs 2007-06-14 11:48:46 UTC (rev 544) @@ -1,17 +1,41 @@ +#region Copyright (C) 2005-2007 Team MediaPortal + +/* + * Copyright (C) 2005-2007 Team MediaPortal + * http://www.team-mediaportal.com + * + * This Program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This Program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with GNU Make; see the file COPYING. If not, write to + * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. + * http://www.gnu.org/copyleft/gpl.html + * + */ + +#endregion + using System; using System.Collections.Generic; using System.ComponentModel; +using System.Data; +using System.Diagnostics; using System.Drawing; -using System.Diagnostics; -using System.Data; using System.Text; using System.Windows.Forms; + using GUIPrograms; +using GUIPrograms.ApplicationItems; using GUIPrograms.Database; -using GUIPrograms.ApplicationItems; - - namespace GUIPrograms.Design { public partial class AppSettingsDirCache : AppSettingsBase @@ -38,7 +62,6 @@ return true; } - public override void FormToAppItem(ApplicationItem curApp) { base.FormToAppItem(curApp); @@ -100,4 +123,4 @@ allowRefreshCheckBox.Visible = false; } } -} +} \ No newline at end of file Modified: trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppSettingsGamebase.cs =================================================================== --- trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppSettingsGamebase.cs 2007-06-14 11:34:48 UTC (rev 543) +++ trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppSettingsGamebase.cs 2007-06-14 11:48:46 UTC (rev 544) @@ -1,19 +1,42 @@ +#region Copyright (C) 2005-2007 Team MediaPortal + +/* + * Copyright (C) 2005-2007 Team MediaPortal + * http://www.team-mediaportal.com + * + * This Program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This Program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with GNU Make; see the file COPYING. If not, write to + * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. + * http://www.gnu.org/copyleft/gpl.html + * + */ + +#endregion + using System; using System.Collections.Generic; using System.ComponentModel; +using System.Data; +using System.Diagnostics; using System.Drawing; -using System.Data; +using System.IO; using System.Text; using System.Windows.Forms; -using System.Diagnostics; -using System.IO; -using GUIPrograms.Database; using GUIPrograms; - using GUIPrograms.ApplicationItems; +using GUIPrograms.Database; - namespace GUIPrograms.Design { public partial class AppSettingsGamebase : AppSettingsBase @@ -54,7 +77,6 @@ return true; } - public override void FormToAppItem(ApplicationItem curApp) { base.FormToAppItem(curApp); @@ -72,6 +94,7 @@ curApp.EnableGUIRefresh = this.allowRefreshCheckBox.Checked; } + public override bool EntriesOK(ApplicationItem curApp) { conditionChecker.Clear(); @@ -92,9 +115,6 @@ return conditionChecker.IsOk; } - - - private void informationLabel_Click(object sender, EventArgs e) { ProcessStartInfo startInfo = new ProcessStartInfo(@"http://www.bu22.com/"); @@ -113,4 +133,4 @@ this.Cursor = Cursors.Default; } } -} +} \ No newline at end of file Modified: trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppSettingsGrouper.cs =================================================================== --- trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppSettingsGrouper.cs 2007-06-14 11:34:48 UTC (rev 543) +++ trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppSettingsGrouper.cs 2007-06-14 11:48:46 UTC (rev 544) @@ -1,14 +1,39 @@ +#region Copyright (C) 2005-2007 Team MediaPortal + +/* + * Copyright (C) 2005-2007 Team MediaPortal + * http://www.team-mediaportal.com + * + * This Program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This Program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with GNU Make; see the file COPYING. If not, write to + * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. + * http://www.gnu.org/copyleft/gpl.html + * + */ + +#endregion + using System; using System.Collections.Generic; using System.ComponentModel; +using System.Data; using System.Drawing; -using System.Data; using System.Text; using System.Windows.Forms; -using GUIPrograms.Database; + using GUIPrograms; - using GUIPrograms.ApplicationItems; +using GUIPrograms.Database; namespace GUIPrograms.Design { @@ -56,7 +81,6 @@ } - public override bool AppItemToForm(ApplicationItem curApp) { base.AppItemToForm(curApp); @@ -66,7 +90,5 @@ return true; } - - } -} +} \ No newline at end of file Modified: trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppSettingsMame.cs =================================================================== --- trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppSettingsMame.cs 2007-06-14 11:34:48 UTC (rev 543) +++ trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppSettingsMame.cs 2007-06-14 11:48:46 UTC (rev 544) @@ -1,19 +1,42 @@ +#region Copyright (C) 2005-2007 Team MediaPortal + +/* + * Copyright (C) 2005-2007 Team MediaPortal + * http://www.team-mediaportal.com + * + * This Program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This Program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with GNU Make; see the file COPYING. If not, write to + * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. + * http://www.gnu.org/copyleft/gpl.html + * + */ + +#endregion + using System; using System.Collections.Generic; using System.ComponentModel; +using System.Data; +using System.Diagnostics; using System.Drawing; -using System.Data; +using System.IO; using System.Text; using System.Windows.Forms; -using System.Diagnostics; -using GUIPrograms.Database; + using GUIPrograms; -using System.IO; - - using GUIPrograms.ApplicationItems; +using GUIPrograms.Database; - namespace GUIPrograms.Design { public partial class AppSettingsMame : AppSettingsBase @@ -23,7 +46,6 @@ InitializeComponent(); } - public override bool AppItemToForm(ApplicationItem curApp) { base.AppItemToForm(curApp); @@ -37,8 +59,6 @@ return true; } - - public override void FormToAppItem(ApplicationItem curApp) { @@ -77,8 +97,6 @@ } } - - private void AppSettingsMameDirect_Load(object sender, EventArgs e) { this.startupDirButton.Visible = false; @@ -111,7 +129,5 @@ { this.Cursor = Cursors.Default; } - - } -} +} \ No newline at end of file Modified: trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppSettingsRoot.cs =================================================================== --- trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppSettingsRoot.cs 2007-06-14 11:34:48 UTC (rev 543) +++ trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppSettingsRoot.cs 2007-06-14 11:48:46 UTC (rev 544) @@ -1,21 +1,44 @@ +#region Copyright (C) 2005-2007 Team MediaPortal + +/* + * Copyright (C) 2005-2007 Team MediaPortal + * http://www.team-mediaportal.com + * + * This Program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This Program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with GNU Make; see the file COPYING. If not, write to + * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. + * http://www.gnu.org/copyleft/gpl.html + * + */ + +#endregion + using System; using System.Collections.Generic; using System.ComponentModel; +using System.Data; using System.Drawing; -using System.Data; using System.Text; using System.Windows.Forms; + using GUIPrograms; +using GUIPrograms.ApplicationItems; using GUIPrograms.Database; -using GUIPrograms.ApplicationItems; - - namespace GUIPrograms.Design { public partial class AppSettingsRoot : AppSettingsBase { - bool Loaded = false; public AppSettingsRoot() @@ -62,7 +85,6 @@ } - public override bool AppItemToForm(ApplicationItem curApp) { base.AppItemToForm(curApp); @@ -75,7 +97,6 @@ return true; } - public override void FormToAppItem(ApplicationItem curApp) { // currentApplication is null! @@ -92,12 +113,9 @@ } } - private void button1_Click(object sender, EventArgs e) { titleTextBox.Text = "My Programs Alt."; } - - } -} +} \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
[Mp-plugins-svn] SF.net SVN: mp-plugins: [548]
trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt /Design
From: <che...@us...> - 2007-06-14 13:04:09
|
Revision: 548 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=548&view=rev Author: chef_koch Date: 2007-06-14 06:04:07 -0700 (Thu, 14 Jun 2007) Log Message: ----------- cleaned up the from Modified Paths: -------------- trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppSettingsPrePost.Designer.cs trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppSettingsPrePost.resx Modified: trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppSettingsPrePost.Designer.cs =================================================================== --- trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppSettingsPrePost.Designer.cs 2007-06-14 12:46:12 UTC (rev 547) +++ trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppSettingsPrePost.Designer.cs 2007-06-14 13:04:07 UTC (rev 548) @@ -33,27 +33,33 @@ this.btnOk = new MediaPortal.UserInterface.Controls.MPButton(); this.label1 = new MediaPortal.UserInterface.Controls.MPLabel(); this.gbData = new MediaPortal.UserInterface.Controls.MPGroupBox(); + this.splitContainer1 = new System.Windows.Forms.SplitContainer(); + this.tbPre = new MediaPortal.UserInterface.Controls.MPTextBox(); this.tbPost = new MediaPortal.UserInterface.Controls.MPTextBox(); - this.tbPre = new MediaPortal.UserInterface.Controls.MPTextBox(); this.btnCancel = new MediaPortal.UserInterface.Controls.MPButton(); this.lblTitleData = new MediaPortal.UserInterface.Controls.MPLabel(); this.gbData.SuspendLayout(); + this.splitContainer1.Panel1.SuspendLayout(); + this.splitContainer1.Panel2.SuspendLayout(); + this.splitContainer1.SuspendLayout(); this.SuspendLayout(); // // lblPre // - this.lblPre.Location = new System.Drawing.Point(8, 26); + this.lblPre.AutoSize = true; + this.lblPre.Location = new System.Drawing.Point(5, 5); this.lblPre.Name = "lblPre"; - this.lblPre.Size = new System.Drawing.Size(100, 17); + this.lblPre.Size = new System.Drawing.Size(66, 13); this.lblPre.TabIndex = 2; this.lblPre.Text = "Pre-Execute"; // // lblTitle // + this.lblTitle.AutoSize = true; this.lblTitle.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.lblTitle.Location = new System.Drawing.Point(16, 12); + this.lblTitle.Location = new System.Drawing.Point(12, 9); this.lblTitle.Name = "lblTitle"; - this.lblTitle.Size = new System.Drawing.Size(72, 26); + this.lblTitle.Size = new System.Drawing.Size(78, 13); this.lblTitle.TabIndex = 11; this.lblTitle.Text = "Application: "; // @@ -61,7 +67,7 @@ // this.btnOk.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.btnOk.DialogResult = System.Windows.Forms.DialogResult.OK; - this.btnOk.Location = new System.Drawing.Point(248, 369); + this.btnOk.Location = new System.Drawing.Point(251, 369); this.btnOk.Name = "btnOk"; this.btnOk.Size = new System.Drawing.Size(80, 25); this.btnOk.TabIndex = 9; @@ -70,11 +76,10 @@ // // label1 // - this.label1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); - this.label1.Location = new System.Drawing.Point(8, 151); + this.label1.AutoSize = true; + this.label1.Location = new System.Drawing.Point(5, 5); this.label1.Name = "label1"; - this.label1.Size = new System.Drawing.Size(112, 17); + this.label1.Size = new System.Drawing.Size(71, 13); this.label1.TabIndex = 3; this.label1.Text = "Post-Execute"; // @@ -83,32 +88,35 @@ this.gbData.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); - this.gbData.Controls.Add(this.label1); - this.gbData.Controls.Add(this.lblPre); - this.gbData.Controls.Add(this.tbPost); - this.gbData.Controls.Add(this.tbPre); + this.gbData.Controls.Add(this.splitContainer1); this.gbData.FlatStyle = System.Windows.Forms.FlatStyle.Popup; - this.gbData.Location = new System.Drawing.Point(8, 47); + this.gbData.Location = new System.Drawing.Point(12, 31); this.gbData.Name = "gbData"; - this.gbData.Size = new System.Drawing.Size(408, 305); + this.gbData.Size = new System.Drawing.Size(400, 338); this.gbData.TabIndex = 8; this.gbData.TabStop = false; this.gbData.Text = "Commands to execute before / after launching"; // - // tbPost + // splitContainer1 // - this.tbPost.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); - this.tbPost.BorderColor = System.Drawing.Color.Empty; - this.tbPost.Font = new System.Drawing.Font("Courier New", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.tbPost.Location = new System.Drawing.Point(8, 176); - this.tbPost.Multiline = true; - this.tbPost.Name = "tbPost"; - this.tbPost.ScrollBars = System.Windows.Forms.ScrollBars.Vertical; - this.tbPost.Size = new System.Drawing.Size(392, 120); - this.tbPost.TabIndex = 1; - this.tbPost.Text = "tbPost"; + this.splitContainer1.Dock = System.Windows.Forms.DockStyle.Fill; + this.splitContainer1.Location = new System.Drawing.Point(3, 17); + this.splitContainer1.Name = "splitContainer1"; + this.splitContainer1.Orientation = System.Windows.Forms.Orientation.Horizontal; // + // splitContainer1.Panel1 + // + this.splitContainer1.Panel1.Controls.Add(this.tbPre); + this.splitContainer1.Panel1.Controls.Add(this.lblPre); + // + // splitContainer1.Panel2 + // + this.splitContainer1.Panel2.Controls.Add(this.tbPost); + this.splitContainer1.Panel2.Controls.Add(this.label1); + this.splitContainer1.Size = new System.Drawing.Size(394, 318); + this.splitContainer1.SplitterDistance = 157; + this.splitContainer1.TabIndex = 13; + // // tbPre // this.tbPre.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) @@ -116,19 +124,34 @@ | System.Windows.Forms.AnchorStyles.Right))); this.tbPre.BorderColor = System.Drawing.Color.Empty; this.tbPre.Font = new System.Drawing.Font("Courier New", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.tbPre.Location = new System.Drawing.Point(8, 52); + this.tbPre.Location = new System.Drawing.Point(3, 23); this.tbPre.Multiline = true; this.tbPre.Name = "tbPre"; this.tbPre.ScrollBars = System.Windows.Forms.ScrollBars.Vertical; - this.tbPre.Size = new System.Drawing.Size(392, 81); + this.tbPre.Size = new System.Drawing.Size(388, 133); this.tbPre.TabIndex = 0; this.tbPre.Text = "tbPre"; // + // tbPost + // + this.tbPost.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.tbPost.BorderColor = System.Drawing.Color.Empty; + this.tbPost.Font = new System.Drawing.Font("Courier New", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.tbPost.Location = new System.Drawing.Point(3, 23); + this.tbPost.Multiline = true; + this.tbPost.Name = "tbPost"; + this.tbPost.ScrollBars = System.Windows.Forms.ScrollBars.Vertical; + this.tbPost.Size = new System.Drawing.Size(388, 133); + this.tbPost.TabIndex = 1; + this.tbPost.Text = "tbPost"; + // // btnCancel // this.btnCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.btnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel; - this.btnCancel.Location = new System.Drawing.Point(336, 369); + this.btnCancel.Location = new System.Drawing.Point(337, 369); this.btnCancel.Name = "btnCancel"; this.btnCancel.Size = new System.Drawing.Size(75, 25); this.btnCancel.TabIndex = 10; @@ -139,13 +162,14 @@ // this.lblTitleData.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); - this.lblTitleData.Location = new System.Drawing.Point(91, 12); + this.lblTitleData.AutoSize = true; + this.lblTitleData.Location = new System.Drawing.Point(96, 9); this.lblTitleData.Name = "lblTitleData"; - this.lblTitleData.Size = new System.Drawing.Size(309, 17); + this.lblTitleData.Size = new System.Drawing.Size(27, 13); this.lblTitleData.TabIndex = 12; this.lblTitleData.Text = "Title"; // - // Form1 + // AppSettingsPrePost // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; @@ -156,13 +180,18 @@ this.Controls.Add(this.gbData); this.Controls.Add(this.btnCancel); this.Controls.Add(this.lblTitleData); - this.Name = "Form1"; + this.Name = "AppSettingsPrePost"; this.ShowIcon = false; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; this.Text = "Pre-Launch / Post-Launch Options"; this.gbData.ResumeLayout(false); - this.gbData.PerformLayout(); + this.splitContainer1.Panel1.ResumeLayout(false); + this.splitContainer1.Panel1.PerformLayout(); + this.splitContainer1.Panel2.ResumeLayout(false); + this.splitContainer1.Panel2.PerformLayout(); + this.splitContainer1.ResumeLayout(false); this.ResumeLayout(false); + this.PerformLayout(); } @@ -177,5 +206,6 @@ private MediaPortal.UserInterface.Controls.MPTextBox tbPre; private MediaPortal.UserInterface.Controls.MPButton btnCancel; private MediaPortal.UserInterface.Controls.MPLabel lblTitleData; + private System.Windows.Forms.SplitContainer splitContainer1; } } \ No newline at end of file Modified: trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppSettingsPrePost.resx =================================================================== --- trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppSettingsPrePost.resx 2007-06-14 12:46:12 UTC (rev 547) +++ trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppSettingsPrePost.resx 2007-06-14 13:04:07 UTC (rev 548) @@ -117,4 +117,37 @@ <resheader name="writer"> <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> </resheader> + <metadata name="lblPre.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>True</value> + </metadata> + <metadata name="lblTitle.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>True</value> + </metadata> + <metadata name="btnOk.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>True</value> + </metadata> + <metadata name="label1.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>True</value> + </metadata> + <metadata name="gbData.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>True</value> + </metadata> + <metadata name="splitContainer1.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>True</value> + </metadata> + <metadata name="tbPre.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>True</value> + </metadata> + <metadata name="tbPost.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>True</value> + </metadata> + <metadata name="btnCancel.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>True</value> + </metadata> + <metadata name="lblTitleData.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>True</value> + </metadata> + <metadata name="$this.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>True</value> + </metadata> </root> \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
[Mp-plugins-svn] SF.net SVN: mp-plugins: [586]
trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt /Design
From: <che...@us...> - 2007-06-21 22:04:35
|
Revision: 586 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=586&view=rev Author: chef_koch Date: 2007-06-21 15:04:32 -0700 (Thu, 21 Jun 2007) Log Message: ----------- set the property show in taskbar to false, no need for showing up to 3 entries in taskbar, because all forms are topMost Modified Paths: -------------- trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppSettingsPrePost.Designer.cs trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/FileDetailsForm.Designer.cs trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/FileDetailsForm.resx trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/FileInfoScraperForm.Designer.cs trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/SetupForm.Designer.cs Modified: trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppSettingsPrePost.Designer.cs =================================================================== --- trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppSettingsPrePost.Designer.cs 2007-06-21 16:51:17 UTC (rev 585) +++ trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppSettingsPrePost.Designer.cs 2007-06-21 22:04:32 UTC (rev 586) @@ -182,6 +182,7 @@ this.Controls.Add(this.lblTitleData); this.Name = "AppSettingsPrePost"; this.ShowIcon = false; + this.ShowInTaskbar = false; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; this.Text = "Pre-Launch / Post-Launch Options"; this.gbData.ResumeLayout(false); Modified: trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/FileDetailsForm.Designer.cs =================================================================== --- trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/FileDetailsForm.Designer.cs 2007-06-21 16:51:17 UTC (rev 585) +++ trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/FileDetailsForm.Designer.cs 2007-06-21 22:04:32 UTC (rev 586) @@ -492,7 +492,7 @@ this.btnCancel.Text = "Cancel"; this.btnCancel.UseVisualStyleBackColor = true; // - // Form1 + // FileDetailsForm // this.AcceptButton = this.btnOk; this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); @@ -502,8 +502,9 @@ this.Controls.Add(this.btnOk); this.Controls.Add(this.tcFileItemData); this.Controls.Add(this.btnCancel); - this.Name = "Form1"; + this.Name = "FileDetailsForm"; this.ShowIcon = false; + this.ShowInTaskbar = false; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; this.Text = "File-Details"; this.Load += new System.EventHandler(this.FileDetailsForm_Load); Modified: trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/FileDetailsForm.resx =================================================================== --- trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/FileDetailsForm.resx 2007-06-21 16:51:17 UTC (rev 585) +++ trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/FileDetailsForm.resx 2007-06-21 22:04:32 UTC (rev 586) @@ -121,21 +121,21 @@ <data name="buttonViewImg.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> <value> Qk2qAwAAAAAAADYAAAAoAAAAEQAAABEAAAABABgAAAAAAAAAAADEDgAAxA4AAAAAAAAAAAAA2Ons2Ons - 2Ons2Ons2Ons2Ons2Ons2Ons2Ons2Ons2Ons2Ons2Ons2Ons2Ons2Ons2Onsgdjp7ICAgAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAANjp7IHY6eyAgIAA//8AgAAAgAAA//8AAAAA - //8AgAAAAAAAgAAA//8AAAD//wAA//8AAADY6eyB2OnsgICAAAAAAP////8AAAAAAP//AIAAAAAA//8A - AP//AAAAAIAAAP//AAAAAAAA2Onsgdjp7ICAgP//AAAAAAD//wCAAP//AACAAAD//wCAgAAAAACAAAD/ - /wAAAP//AAAAANjp7IHY6eyAgID//////wAAAAAA//8A//8AAAAAgAAAAAAA//8AgAAAAAD//wD///8A - AADY6eyB2OnsgICA//8A//////8AAAAA//8AAP//AAAA////AAAAAAAA//8A//////8AAAAA2Onsgdjp - 7ICAgP//////AP//////AAAAAAAAAP//////AP//////AP//////AP///wAAANjp7IHY6eyAgID//wD/ - /////wD//////wD//////wD//////wD//////wD//////wAAAADY6eyB2OnsgICA//////8A//////8A - //////8A//////8A////AAAAAAAA//8A////AAAA2Onsgdjp7ICAgP//AP//////AP//////AP////// - AP///wAAAP///wD//wAAAP//AAAAANjp7IHY6eyAgID//////wD//////wD//////wD//////wAAAAAA - //////8AAAD///8AAADY6eyB2OnsgICA//8A//////8A//////8A//////8A//////8AAAAAAAAA//// - //8AAAAA2Onsgdjp7ICAgP//////AP//////AP//////AP//////AP//////AP//////AP///wAAANjp - 7IHY6eyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDY6eyB2Ons2Ons - 2Ons2Ons2Ons2Ons2Ons2Ons2Ons2Ons2Ons2Ons2Ons2Ons2Ons2Ons2Onsgdjp7Njp7Njp7Njp7Njp - 7Njp7Njp7Njp7Njp7Njp7Njp7Njp7Njp7Njp7Njp7Njp7Njp7IE= + 2Ons2Ons2Ons2Ons2Ons2Ons2Ons2Ons2Ons2Ons2Ons2Ons2Ons2Ons2OnsB9jp7ICAgAAAAAAAAAAA + AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAANjp7AfY6eyAgIAA//8AgAAAgAAA//8AAAAA + //8AgAAAAAAAgAAA//8AAAD//wAA//8AAADY6ewH2OnsgICAAAAAAP////8AAAAAAP//AIAAAAAA//8A + AP//AAAAAIAAAP//AAAAAAAA2OnsB9jp7ICAgP//AAAAAAD//wCAAP//AACAAAD//wCAgAAAAACAAAD/ + /wAAAP//AAAAANjp7AfY6eyAgID//////wAAAAAA//8A//8AAAAAgAAAAAAA//8AgAAAAAD//wD///8A + AADY6ewH2OnsgICA//8A//////8AAAAA//8AAP//AAAA////AAAAAAAA//8A//////8AAAAA2OnsB9jp + 7ICAgP//////AP//////AAAAAAAAAP//////AP//////AP//////AP///wAAANjp7AfY6eyAgID//wD/ + /////wD//////wD//////wD//////wD//////wD//////wAAAADY6ewH2OnsgICA//////8A//////8A + //////8A//////8A////AAAAAAAA//8A////AAAA2OnsB9jp7ICAgP//AP//////AP//////AP////// + AP///wAAAP///wD//wAAAP//AAAAANjp7AfY6eyAgID//////wD//////wD//////wD//////wAAAAAA + //////8AAAD///8AAADY6ewH2OnsgICA//8A//////8A//////8A//////8A//////8AAAAAAAAA//// + //8AAAAA2OnsB9jp7ICAgP//////AP//////AP//////AP//////AP//////AP//////AP///wAAANjp + 7AfY6eyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDY6ewH2Ons2Ons + 2Ons2Ons2Ons2Ons2Ons2Ons2Ons2Ons2Ons2Ons2Ons2Ons2Ons2Ons2OnsB9jp7Njp7Njp7Njp7Njp + 7Njp7Njp7Njp7Njp7Njp7Njp7Njp7Njp7Njp7Njp7Njp7Njp7D8= </value> </data> <metadata name="toolTip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> Modified: trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/FileInfoScraperForm.Designer.cs =================================================================== --- trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/FileInfoScraperForm.Designer.cs 2007-06-21 16:51:17 UTC (rev 585) +++ trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/FileInfoScraperForm.Designer.cs 2007-06-21 22:04:32 UTC (rev 586) @@ -461,6 +461,7 @@ this.Controls.Add(this.statusStrip); this.Name = "FileInfoScraperForm"; this.ShowIcon = false; + this.ShowInTaskbar = false; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; this.Text = "Import Info"; this.statusStrip.ResumeLayout(false); Modified: trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/SetupForm.Designer.cs =================================================================== --- trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/SetupForm.Designer.cs 2007-06-21 16:51:17 UTC (rev 585) +++ trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/SetupForm.Designer.cs 2007-06-21 22:04:32 UTC (rev 586) @@ -227,6 +227,7 @@ this.MainMenuStrip = this.menuStrip; this.Name = "SetupForm"; this.ShowIcon = false; + this.ShowInTaskbar = false; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.Text = "SetupForm"; this.FormClosed += new System.Windows.Forms.FormClosedEventHandler(this.SetupForm_FormClosed); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
[Mp-plugins-svn] SF.net SVN: mp-plugins: [590]
trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt /Design
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. |
[Mp-plugins-svn] SF.net SVN: mp-plugins: [796]
trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt /Design
From: <che...@us...> - 2007-08-06 09:46:48
|
Revision: 796 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=796&view=rev Author: chef_koch Date: 2007-08-06 02:46:45 -0700 (Mon, 06 Aug 2007) Log Message: ----------- moved duplicated code to AppSettingsBase Modified Paths: -------------- trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppSettingsBase.Designer.cs trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppSettingsBase.cs trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppSettingsDirCache.cs trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppSettingsGamebase.cs trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppSettingsGrouper.cs trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppSettingsMame.cs Modified: trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppSettingsBase.Designer.cs =================================================================== --- trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppSettingsBase.Designer.cs 2007-08-05 22:21:57 UTC (rev 795) +++ trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppSettingsBase.Designer.cs 2007-08-06 09:46:45 UTC (rev 796) @@ -189,9 +189,9 @@ this.winStyleComboBox.FormattingEnabled = true; this.winStyleComboBox.Items.AddRange(new object[] { "Normal", + "Hidden", "Minimized", - "Maximized", - "Hidden"}); + "Maximized"}); this.winStyleComboBox.Location = new System.Drawing.Point(94, 150); this.winStyleComboBox.Name = "winStyleComboBox"; this.winStyleComboBox.Size = new System.Drawing.Size(325, 21); Modified: trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppSettingsBase.cs =================================================================== --- trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppSettingsBase.cs 2007-08-05 22:21:57 UTC (rev 795) +++ trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppSettingsBase.cs 2007-08-06 09:46:45 UTC (rev 796) @@ -56,94 +56,53 @@ { base.LoadSettings(curApp); - AppItemToForm(curApp); - } + enabledCheckbox.Checked = curApp.Enabled; + titleTextBox.Text = curApp.Title; - public override void SaveSettings(ApplicationItem curApp) - { - base.SaveSettings(curApp); + applicationExeTextBox.Text = curApp.Filename; + applicationArgumentsTextBox.Text = curApp.Arguments; + // Pre-Post-Launch + preLaunch = curApp.PreLaunch; + postLaunch = curApp.PostLaunch; + // ProcessWindowStyle + // The enumerator ProcessWindowStyle has these items: + //Normal = 0, + //Hidden = 1, + //Minimized = 2, + //Maximized = 3, + // In our comboBox we use now the same order, so we only need to use the integer of the enum. + winStyleComboBox.SelectedIndex = (int)curApp.WindowStyle; - FormToAppItem(curApp); - } - - - - - - - - - public virtual bool AppItemToForm(ApplicationItem curApp) - { - if (curApp != null) - { - preLaunch = curApp.PreLaunch; - postLaunch = curApp.PostLaunch; - } - + // Image settings if (ProgramUtils.UseThumbsDir()) - applicationImageTextBox.Text = MediaPortal.Util.Utils.GetCoverArtName( - Config.GetSubFolder(Config.Dir.Thumbs, @"MyProgramsAlt"), - titleTextBox.Text); + applicationImageTextBox.Text = ProgramUtils.GetApplicationImage(curApp); else applicationImageTextBox.Text = curApp.Imagefile; applicationImageTextBox.ReadOnly = ProgramUtils.UseThumbsDir(); applicationImageButton.Visible = !ProgramUtils.UseThumbsDir(); - - return true; } - public virtual void FormToAppItem(ApplicationItem curApp) + public override void SaveSettings(ApplicationItem curApp) { - if (curApp != null) - { - curApp.PreLaunch = preLaunch; - curApp.PostLaunch = postLaunch; - } + base.SaveSettings(curApp); + curApp.Enabled = enabledCheckbox.Checked; + curApp.Title = titleTextBox.Text; + + curApp.Filename = applicationExeTextBox.Text; + curApp.Arguments = applicationArgumentsTextBox.Text; + // Pre-Post-Launch + curApp.PreLaunch = preLaunch; + curApp.PostLaunch = postLaunch; + // ProcessWindowStyle + curApp.WindowStyle = (ProcessWindowStyle)winStyleComboBox.SelectedIndex; + + // Image settings if (!ProgramUtils.UseThumbsDir()) curApp.Imagefile = applicationImageTextBox.Text; } - protected void SetWindowStyle(ProcessWindowStyle val) - { - switch (val) - { - case ProcessWindowStyle.Normal: - winStyleComboBox.SelectedIndex = 0; - break; - case ProcessWindowStyle.Minimized: - winStyleComboBox.SelectedIndex = 1; - break; - case ProcessWindowStyle.Maximized: - winStyleComboBox.SelectedIndex = 2; - break; - case ProcessWindowStyle.Hidden: - winStyleComboBox.SelectedIndex = 3; - break; - } - } - - protected ProcessWindowStyle GetSelectedWindowStyle() - { - if (winStyleComboBox.SelectedIndex == 1) - { - return ProcessWindowStyle.Minimized; - } - else if (winStyleComboBox.SelectedIndex == 2) - { - return ProcessWindowStyle.Maximized; - } - else if (winStyleComboBox.SelectedIndex == 3) - { - return ProcessWindowStyle.Hidden; - } - else - return ProcessWindowStyle.Normal; - - } - private void InitDefault() { //{ Modified: trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppSettingsDirCache.cs =================================================================== --- trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppSettingsDirCache.cs 2007-08-05 22:21:57 UTC (rev 795) +++ trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppSettingsDirCache.cs 2007-08-06 09:46:45 UTC (rev 796) @@ -45,15 +45,11 @@ InitializeComponent(); } - public override bool AppItemToForm(ApplicationItem curApp) + public override void LoadSettings(ApplicationItem curApp) { ProgramUtils.FillComboBox("tblPlatform", "platform", platformComboBox); - base.AppItemToForm(curApp); - enabledCheckbox.Checked = curApp.Enabled; - titleTextBox.Text = curApp.Title; - applicationExeTextBox.Text = curApp.Filename; - applicationArgumentsTextBox.Text = curApp.Arguments; - SetWindowStyle(curApp.WindowStyle); + base.LoadSettings(curApp); + startupDirComboBox.Text = curApp.StartupDir; shellexecuteCheckBox.Checked = curApp.UseShellExecute; quoteCheckBox.Checked = curApp.UseQuotes; @@ -63,27 +59,22 @@ { platformComboBox.SelectedValue = curApp.PlatformId; } - - return true; } - public override void FormToAppItem(ApplicationItem curApp) + public override void SaveSettings(ApplicationItem curApp) { - base.FormToAppItem(curApp); - curApp.Enabled = this.enabledCheckbox.Checked; - curApp.Title = titleTextBox.Text; - curApp.Filename = applicationExeTextBox.Text; - curApp.Arguments = applicationArgumentsTextBox.Text; - curApp.WindowStyle = GetSelectedWindowStyle(); + base.SaveSettings(curApp); + curApp.StartupDir = startupDirComboBox.Text; curApp.UseShellExecute = shellexecuteCheckBox.Checked; curApp.UseQuotes = quoteCheckBox.Checked; curApp.WaitForExit = waitExitCheckBox.Checked; curApp.SourceType = ItemType.DIRCACHE; - curApp.RefreshGUIAllowed = (allowRefreshCheckBox.Checked); - curApp.PlatformId =(int) platformComboBox.SelectedValue; + curApp.RefreshGUIAllowed = allowRefreshCheckBox.Checked; + curApp.PlatformId = (int)platformComboBox.SelectedValue; } + public override bool EntriesOK(ApplicationItem curApp) { conditionChecker.Clear(); @@ -104,13 +95,13 @@ return conditionChecker.IsOk; } + public override void LoadFromAppItem(ApplicationItem applicationItem) { titleTextBox.Text = applicationItem.Title; applicationExeTextBox.Text = applicationItem.Filename; applicationArgumentsTextBox.Text = applicationItem.Arguments; - SetWindowStyle(applicationItem.WindowStyle); startupDirComboBox.Text = applicationItem.StartupDir; shellexecuteCheckBox.Checked = applicationItem.UseShellExecute; quoteCheckBox.Checked = applicationItem.UseQuotes; Modified: trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppSettingsGamebase.cs =================================================================== --- trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppSettingsGamebase.cs 2007-08-05 22:21:57 UTC (rev 795) +++ trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppSettingsGamebase.cs 2007-08-06 09:46:45 UTC (rev 796) @@ -46,53 +46,41 @@ InitializeComponent(); } - private void AppSettingsGamebase_Load(object sender, EventArgs e) + public override void LoadSettings(ApplicationItem curApp) { - // this.validImagesCheckBox.Checked = true; - this.enabledCheckbox.Checked = true; - this.titleTextBox.Text = "GameBase ..."; - this.winTypeLabel.Text = "GameBase direct importer"; - this.applicationExeTextBox.Text = "<yourpath>gamebase database"; - this.quoteCheckBox.Visible = false; - this.shellexecuteCheckBox.Visible = false; - } + base.LoadSettings(curApp); - public override bool AppItemToForm(ApplicationItem curApp) - { - - base.AppItemToForm(curApp); - this.enabledCheckbox.Checked = curApp.Enabled; - this.titleTextBox.Text = curApp.Title; - this.applicationExeTextBox.Text = curApp.Filename; - this.applicationArgumentsTextBox.Text = curApp.Arguments; this.startupDirComboBox.Text = curApp.StartupDir; - this.quoteCheckBox.Checked = true; //(curApp.UseQuotes); this.waitExitCheckBox.Checked = (curApp.WaitForExit); - SetWindowStyle(curApp.WindowStyle); - this.allowRefreshCheckBox.Checked = curApp.RefreshGUIAllowed; - - return true; } - public override void FormToAppItem(ApplicationItem curApp) + public override void SaveSettings(ApplicationItem curApp) { - base.FormToAppItem(curApp); - curApp.Enabled = this.enabledCheckbox.Checked; - curApp.Title = this.titleTextBox.Text; - curApp.Filename = this.applicationExeTextBox.Text; - curApp.Arguments = this.applicationArgumentsTextBox.Text; - curApp.WindowStyle = GetSelectedWindowStyle(); + base.SaveSettings(curApp); + curApp.StartupDir = this.startupDirComboBox.Text; curApp.UseShellExecute = this.shellexecuteCheckBox.Checked; curApp.UseQuotes = this.quoteCheckBox.Checked; curApp.WaitForExit = this.waitExitCheckBox.Checked; curApp.SourceType = ItemType.GAMEBASE; - curApp.RefreshGUIAllowed = this.allowRefreshCheckBox.Checked; } + + private void AppSettingsGamebase_Load(object sender, EventArgs e) + { + // this.validImagesCheckBox.Checked = true; + this.enabledCheckbox.Checked = true; + this.titleTextBox.Text = "GameBase ..."; + this.winTypeLabel.Text = "GameBase direct importer"; + this.applicationExeTextBox.Text = "<yourpath>gamebase database"; + this.quoteCheckBox.Visible = false; + this.shellexecuteCheckBox.Visible = false; + } + + public override bool EntriesOK(ApplicationItem curApp) { conditionChecker.Clear(); @@ -113,6 +101,7 @@ return conditionChecker.IsOk; } + private void informationLabel_Click(object sender, EventArgs e) { ProcessStartInfo startInfo = new ProcessStartInfo(@"http://www.bu22.com/"); Modified: trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppSettingsGrouper.cs =================================================================== --- trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppSettingsGrouper.cs 2007-08-05 22:21:57 UTC (rev 795) +++ trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppSettingsGrouper.cs 2007-08-06 09:46:45 UTC (rev 796) @@ -44,6 +44,19 @@ InitializeComponent(); } + public override void LoadSettings(ApplicationItem curApp) + { + base.LoadSettings(curApp); + } + + public override void SaveSettings(ApplicationItem curApp) + { + base.SaveSettings(curApp); + + curApp.SourceType = ItemType.GROUPER; + } + + private void AppSettingsGrouper_Load(object sender, EventArgs e) { winTypeLabel.Text = "Grouper."; @@ -68,25 +81,7 @@ shellexecuteCheckBox.Visible = false; informationLabel.Visible = false; - this.prePostButton.Visible = false; + prePostButton.Visible = false; } - - public override void FormToAppItem(ApplicationItem curApp) - { - base.FormToAppItem(curApp); - curApp.Enabled = enabledCheckbox.Checked; - curApp.Title = titleTextBox.Text; - curApp.SourceType = ItemType.GROUPER; - - } - - public override bool AppItemToForm(ApplicationItem curApp) - { - base.AppItemToForm(curApp); - this.enabledCheckbox.Checked = curApp.Enabled; - titleTextBox.Text = curApp.Title; - - return true; - } } } \ No newline at end of file Modified: trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppSettingsMame.cs =================================================================== --- trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppSettingsMame.cs 2007-08-05 22:21:57 UTC (rev 795) +++ trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppSettingsMame.cs 2007-08-06 09:46:45 UTC (rev 796) @@ -46,34 +46,20 @@ InitializeComponent(); } - public override bool AppItemToForm(ApplicationItem curApp) + public override void LoadSettings(ApplicationItem curApp) { - base.AppItemToForm(curApp); - this.enabledCheckbox.Checked = curApp.Enabled; - this.titleTextBox.Text = curApp.Title; - this.applicationExeTextBox.Text = curApp.Filename; - this.applicationArgumentsTextBox.Text = curApp.Arguments; - SetWindowStyle(curApp.WindowStyle); - - return true; + base.LoadSettings(curApp); } - public override void FormToAppItem(ApplicationItem curApp) + public override void SaveSettings(ApplicationItem curApp) { + base.SaveSettings(curApp); - base.FormToAppItem(curApp); - curApp.Enabled = this.enabledCheckbox.Checked; - curApp.Title = this.titleTextBox.Text; - curApp.Filename = this.applicationExeTextBox.Text; - curApp.Arguments = this.applicationArgumentsTextBox.Text; - curApp.WindowStyle = GetSelectedWindowStyle(); curApp.SourceType = ItemType.MAMEDIRECT; - - curApp.RefreshGUIAllowed = true; - } + void catverLink_LinkClicked(object sender, System.Windows.Forms.LinkLabelLinkClickedEventArgs e) { LaunchLink(catverLink.Text); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
[Mp-plugins-svn] SF.net SVN: mp-plugins: [798]
trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt /Design
From: <che...@us...> - 2007-08-06 17:51:49
|
Revision: 798 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=798&view=rev Author: chef_koch Date: 2007-08-06 10:51:45 -0700 (Mon, 06 Aug 2007) Log Message: ----------- Added Paths: ----------- trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/SettingsRoot.Designer.cs trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/SettingsRoot.cs trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/SettingsRoot.resx Removed Paths: ------------- trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppSettingsRoot.Designer.cs trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppSettingsRoot.cs trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppSettingsRoot.resx Deleted: trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppSettingsRoot.Designer.cs =================================================================== --- trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppSettingsRoot.Designer.cs 2007-08-06 10:06:44 UTC (rev 797) +++ trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppSettingsRoot.Designer.cs 2007-08-06 17:51:45 UTC (rev 798) @@ -1,139 +0,0 @@ -namespace GUIPrograms.Design -{ - partial class AppSettingsRoot - { - /// <summary> - /// Required designer variable. - /// </summary> - private System.ComponentModel.IContainer components = null; - - /// <summary> - /// Clean up any resources being used. - /// </summary> - /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> - protected override void Dispose(bool disposing) - { - if (disposing && (components != null)) - { - components.Dispose(); - } - base.Dispose(disposing); - } - - #region Component Designer generated code - - /// <summary> - /// Required method for Designer support - do not modify - /// the contents of this method with the code editor. - /// </summary> - private void InitializeComponent() - { - this.button1 = new System.Windows.Forms.Button(); - this.SuspendLayout(); - // - // enabledCheckbox - // - this.toolTip.SetToolTip(this.enabledCheckbox, "Only enabled items will appear in MediaPortal"); - // - // titleLabel - // - this.titleLabel.Size = new System.Drawing.Size(92, 20); - // - // titleTextBox - // - this.toolTip.SetToolTip(this.titleTextBox, "This text will appear in the listitem of MediaPortal\r\n(mandatory)"); - // - // applicationExeButton - // - this.applicationExeButton.Location = new System.Drawing.Point(359, 70); - // - // shellexecuteCheckBox - // - this.toolTip.SetToolTip(this.shellexecuteCheckBox, "Enable this if you want to run a program that is associated with a specific file-" + - "extension.\r\nYou can omit the \"Launching Application\" in this case."); - // - // applicationArgumentsLabel - // - this.toolTip.SetToolTip(this.applicationArgumentsLabel, "Optional arguments that are needed to launch the program \r\n\r\n(advanced hint: Use " + - "%FILE% if the filename needs to be placed in some specific place between several" + - " arguments)"); - // - // applicationImageTextBox - // - this.toolTip.SetToolTip(this.applicationImageTextBox, "Optional filename for an image to display in MediaPortal"); - // - // winStyleComboBox - // - this.toolTip.SetToolTip(this.winStyleComboBox, "Appearance of the launched program. \r\nTry HIDDEN or MINIMIZED for a seamless inte" + - "gration in MediaPortal"); - // - // startupDirTextBox - // - this.toolTip.SetToolTip(this.startupDirComboBox, "Optional path that is passed as the launch-directory \r\n\r\n(advanced hint: Use %FIL" + - "EDIR% if you want to use the directory where the launched file is stored)"); - // - // quoteCheckBox - // - this.toolTip.SetToolTip(this.quoteCheckBox, "Quotes are usually needed to handle filenames with spaces correctly. \r\nAvoid doub" + - "le quotes though!"); - // - // applicationImageButton - // - this.applicationImageButton.Location = new System.Drawing.Point(356, 97); - // - // allowRefreshCheckBox - // - this.toolTip.SetToolTip(this.allowRefreshCheckBox, "Check this if users can run the import through the REFRESH button in MediaPortal." + - ""); - // - // button1 - // - this.button1.Location = new System.Drawing.Point(427, 43); - this.button1.Name = "button1"; - this.button1.Size = new System.Drawing.Size(44, 23); - this.button1.TabIndex = 32; - this.button1.Text = "Reset"; - this.button1.UseVisualStyleBackColor = true; - this.button1.Click += new System.EventHandler(this.button1_Click); - // - // AppSettingsRoot - // - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.Controls.Add(this.button1); - this.Name = "AppSettingsRoot"; - this.Load += new System.EventHandler(this.AppSettingsRoot_Load); - this.Controls.SetChildIndex(this.button1, 0); - this.Controls.SetChildIndex(this.prePostButton, 0); - this.Controls.SetChildIndex(this.applicationImageButton, 0); - this.Controls.SetChildIndex(this.applicationExeButton, 0); - this.Controls.SetChildIndex(this.winTypeLabel, 0); - this.Controls.SetChildIndex(this.enabledCheckbox, 0); - this.Controls.SetChildIndex(this.titleLabel, 0); - this.Controls.SetChildIndex(this.applicationExeLabel, 0); - this.Controls.SetChildIndex(this.shellexecuteCheckBox, 0); - this.Controls.SetChildIndex(this.waitExitCheckBox, 0); - this.Controls.SetChildIndex(this.applicationExeTextBox, 0); - this.Controls.SetChildIndex(this.applicationImageLabel, 0); - this.Controls.SetChildIndex(this.applicationArgumentsLabel, 0); - this.Controls.SetChildIndex(this.applicationImageTextBox, 0); - this.Controls.SetChildIndex(this.applicationArgumentsTextBox, 0); - this.Controls.SetChildIndex(this.winStyleLabel, 0); - this.Controls.SetChildIndex(this.winStyleComboBox, 0); - this.Controls.SetChildIndex(this.startupDirComboBox, 0); - this.Controls.SetChildIndex(this.startupDirLabel, 0); - this.Controls.SetChildIndex(this.quoteCheckBox, 0); - this.Controls.SetChildIndex(this.startupDirButton, 0); - this.Controls.SetChildIndex(this.allowRefreshCheckBox, 0); - this.Controls.SetChildIndex(this.informationLabel, 0); - this.Controls.SetChildIndex(this.titleTextBox, 0); - this.ResumeLayout(false); - this.PerformLayout(); - - } - - #endregion - - private System.Windows.Forms.Button button1; - } -} \ No newline at end of file Deleted: trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppSettingsRoot.cs =================================================================== --- trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppSettingsRoot.cs 2007-08-06 10:06:44 UTC (rev 797) +++ trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppSettingsRoot.cs 2007-08-06 17:51:45 UTC (rev 798) @@ -1,121 +0,0 @@ -#region Copyright (C) 2005-2007 Team MediaPortal - -/* - * Copyright (C) 2005-2007 Team MediaPortal - * http://www.team-mediaportal.com - * - * This Program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2, or (at your option) - * any later version. - * - * This Program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with GNU Make; see the file COPYING. If not, write to - * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. - * http://www.gnu.org/copyleft/gpl.html - * - */ - -#endregion - -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Data; -using System.Drawing; -using System.Text; -using System.Windows.Forms; - -using GUIPrograms; -using GUIPrograms.Items; -using GUIPrograms.Database; - -namespace GUIPrograms.Design -{ - public partial class AppSettingsRoot : AppSettingsBase - { - bool Loaded = false; - - public AppSettingsRoot() - { - InitializeComponent(); - } - - private void AppSettingsRoot_Load(object sender, EventArgs e) - { - AppItemToForm(null); - Loaded = true; - - enabledCheckbox.Visible = false; - winTypeLabel.Text = "my Programs Alt."; - titleLabel.Text = "Plugin title"; - titleTextBox.Text = " My Programs Alt."; - - applicationExeLabel.Visible = false; - applicationExeTextBox.Visible = false; - applicationExeButton.Visible = false; - - applicationImageLabel.Visible = false; - applicationImageTextBox.Visible = false; - applicationImageButton.Visible = false; - - applicationArgumentsTextBox.Visible = false; - applicationArgumentsLabel.Visible = false; - - winStyleLabel.Visible = false; - winStyleComboBox.Visible = false; - - startupDirButton.Visible = false; - startupDirLabel.Visible = false; - startupDirComboBox.Visible = false; - - - quoteCheckBox.Visible = false; - allowRefreshCheckBox.Visible = false; - waitExitCheckBox.Visible = false; - shellexecuteCheckBox.Visible = false; - informationLabel.Visible = false; - - this.prePostButton.Visible = false; - - } - - public override bool AppItemToForm(ApplicationItem curApp) - { - base.AppItemToForm(curApp); - titleTextBox.Text = DatabaseHandler.ReadSetting(ProgramUtils.cPLUGINTITLE); - if (titleTextBox.Text == "") - { - // PluginTitle.Text = GUILocalizeStrings.Get(0); - titleTextBox.Text = "My Programs Alt."; - } - return true; - } - - public override void FormToAppItem(ApplicationItem curApp) - { - // currentApplication is null! - if (Loaded) - { - if ((titleTextBox.Text != "")) - { - DatabaseHandler.WriteSetting(ProgramUtils.cPLUGINTITLE, titleTextBox.Text); - } - else - { - DatabaseHandler.DeleteSetting(ProgramUtils.cPLUGINTITLE); - } - } - } - - private void button1_Click(object sender, EventArgs e) - { - titleTextBox.Text = "My Programs Alt."; - } - } -} \ No newline at end of file Deleted: trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppSettingsRoot.resx =================================================================== --- trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppSettingsRoot.resx 2007-08-06 10:06:44 UTC (rev 797) +++ trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppSettingsRoot.resx 2007-08-06 17:51:45 UTC (rev 798) @@ -1,129 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<root> - <!-- - Microsoft ResX Schema - - Version 2.0 - - The primary goals of this format is to allow a simple XML format - that is mostly human readable. The generation and parsing of the - various data types are done through the TypeConverter classes - associated with the data types. - - Example: - - ... ado.net/XML headers & schema ... - <resheader name="resmimetype">text/microsoft-resx</resheader> - <resheader name="version">2.0</resheader> - <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> - <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> - <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data> - <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> - <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> - <value>[base64 mime encoded serialized .NET Framework object]</value> - </data> - <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> - <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> - <comment>This is a comment</comment> - </data> - - There are any number of "resheader" rows that contain simple - name/value pairs. - - Each data row contains a name, and value. The row also contains a - type or mimetype. Type corresponds to a .NET class that support - text/value conversion through the TypeConverter architecture. - Classes that don't support this are serialized and stored with the - mimetype set. - - The mimetype is used for serialized objects, and tells the - ResXResourceReader how to depersist the object. This is currently not - extensible. For a given mimetype the value must be set accordingly: - - Note - application/x-microsoft.net.object.binary.base64 is the format - that the ResXResourceWriter will generate, however the reader can - read any of the formats listed below. - - mimetype: application/x-microsoft.net.object.binary.base64 - value : The object must be serialized with - : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter - : and then encoded with base64 encoding. - - mimetype: application/x-microsoft.net.object.soap.base64 - value : The object must be serialized with - : System.Runtime.Serialization.Formatters.Soap.SoapFormatter - : and then encoded with base64 encoding. - - mimetype: application/x-microsoft.net.object.bytearray.base64 - value : The object must be serialized into a byte array - : using a System.ComponentModel.TypeConverter - : and then encoded with base64 encoding. - --> - <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> - <xsd:import namespace="http://www.w3.org/XML/1998/namespace" /> - <xsd:element name="root" msdata:IsDataSet="true"> - <xsd:complexType> - <xsd:choice maxOccurs="unbounded"> - <xsd:element name="metadata"> - <xsd:complexType> - <xsd:sequence> - <xsd:element name="value" type="xsd:string" minOccurs="0" /> - </xsd:sequence> - <xsd:attribute name="name" use="required" type="xsd:string" /> - <xsd:attribute name="type" type="xsd:string" /> - <xsd:attribute name="mimetype" type="xsd:string" /> - <xsd:attribute ref="xml:space" /> - </xsd:complexType> - </xsd:element> - <xsd:element name="assembly"> - <xsd:complexType> - <xsd:attribute name="alias" type="xsd:string" /> - <xsd:attribute name="name" type="xsd:string" /> - </xsd:complexType> - </xsd:element> - <xsd:element name="data"> - <xsd:complexType> - <xsd:sequence> - <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> - <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> - </xsd:sequence> - <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" /> - <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> - <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> - <xsd:attribute ref="xml:space" /> - </xsd:complexType> - </xsd:element> - <xsd:element name="resheader"> - <xsd:complexType> - <xsd:sequence> - <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> - </xsd:sequence> - <xsd:attribute name="name" type="xsd:string" use="required" /> - </xsd:complexType> - </xsd:element> - </xsd:choice> - </xsd:complexType> - </xsd:element> - </xsd:schema> - <resheader name="resmimetype"> - <value>text/microsoft-resx</value> - </resheader> - <resheader name="version"> - <value>2.0</value> - </resheader> - <resheader name="reader"> - <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> - </resheader> - <resheader name="writer"> - <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> - </resheader> - <metadata name="toolTip.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> - <value>313, 17</value> - </metadata> - <metadata name="folderBrowserDialog.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> - <value>150, 17</value> - </metadata> - <metadata name="openFileDialog.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> - <value>17, 17</value> - </metadata> -</root> \ No newline at end of file Copied: trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/SettingsRoot.Designer.cs (from rev 797, trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppSettingsRoot.Designer.cs) =================================================================== --- trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/SettingsRoot.Designer.cs (rev 0) +++ trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/SettingsRoot.Designer.cs 2007-08-06 17:51:45 UTC (rev 798) @@ -0,0 +1,139 @@ +namespace GUIPrograms.Design +{ + partial class AppSettingsRoot + { + /// <summary> + /// Required designer variable. + /// </summary> + private System.ComponentModel.IContainer components = null; + + /// <summary> + /// Clean up any resources being used. + /// </summary> + /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Component Designer generated code + + /// <summary> + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// </summary> + private void InitializeComponent() + { + this.button1 = new System.Windows.Forms.Button(); + this.SuspendLayout(); + // + // enabledCheckbox + // + this.toolTip.SetToolTip(this.enabledCheckbox, "Only enabled items will appear in MediaPortal"); + // + // titleLabel + // + this.titleLabel.Size = new System.Drawing.Size(92, 20); + // + // titleTextBox + // + this.toolTip.SetToolTip(this.titleTextBox, "This text will appear in the listitem of MediaPortal\r\n(mandatory)"); + // + // applicationExeButton + // + this.applicationExeButton.Location = new System.Drawing.Point(359, 70); + // + // shellexecuteCheckBox + // + this.toolTip.SetToolTip(this.shellexecuteCheckBox, "Enable this if you want to run a program that is associated with a specific file-" + + "extension.\r\nYou can omit the \"Launching Application\" in this case."); + // + // applicationArgumentsLabel + // + this.toolTip.SetToolTip(this.applicationArgumentsLabel, "Optional arguments that are needed to launch the program \r\n\r\n(advanced hint: Use " + + "%FILE% if the filename needs to be placed in some specific place between several" + + " arguments)"); + // + // applicationImageTextBox + // + this.toolTip.SetToolTip(this.applicationImageTextBox, "Optional filename for an image to display in MediaPortal"); + // + // winStyleComboBox + // + this.toolTip.SetToolTip(this.winStyleComboBox, "Appearance of the launched program. \r\nTry HIDDEN or MINIMIZED for a seamless inte" + + "gration in MediaPortal"); + // + // startupDirTextBox + // + this.toolTip.SetToolTip(this.startupDirComboBox, "Optional path that is passed as the launch-directory \r\n\r\n(advanced hint: Use %FIL" + + "EDIR% if you want to use the directory where the launched file is stored)"); + // + // quoteCheckBox + // + this.toolTip.SetToolTip(this.quoteCheckBox, "Quotes are usually needed to handle filenames with spaces correctly. \r\nAvoid doub" + + "le quotes though!"); + // + // applicationImageButton + // + this.applicationImageButton.Location = new System.Drawing.Point(356, 97); + // + // allowRefreshCheckBox + // + this.toolTip.SetToolTip(this.allowRefreshCheckBox, "Check this if users can run the import through the REFRESH button in MediaPortal." + + ""); + // + // button1 + // + this.button1.Location = new System.Drawing.Point(427, 43); + this.button1.Name = "button1"; + this.button1.Size = new System.Drawing.Size(44, 23); + this.button1.TabIndex = 32; + this.button1.Text = "Reset"; + this.button1.UseVisualStyleBackColor = true; + this.button1.Click += new System.EventHandler(this.button1_Click); + // + // AppSettingsRoot + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.Controls.Add(this.button1); + this.Name = "AppSettingsRoot"; + this.Load += new System.EventHandler(this.AppSettingsRoot_Load); + this.Controls.SetChildIndex(this.button1, 0); + this.Controls.SetChildIndex(this.prePostButton, 0); + this.Controls.SetChildIndex(this.applicationImageButton, 0); + this.Controls.SetChildIndex(this.applicationExeButton, 0); + this.Controls.SetChildIndex(this.winTypeLabel, 0); + this.Controls.SetChildIndex(this.enabledCheckbox, 0); + this.Controls.SetChildIndex(this.titleLabel, 0); + this.Controls.SetChildIndex(this.applicationExeLabel, 0); + this.Controls.SetChildIndex(this.shellexecuteCheckBox, 0); + this.Controls.SetChildIndex(this.waitExitCheckBox, 0); + this.Controls.SetChildIndex(this.applicationExeTextBox, 0); + this.Controls.SetChildIndex(this.applicationImageLabel, 0); + this.Controls.SetChildIndex(this.applicationArgumentsLabel, 0); + this.Controls.SetChildIndex(this.applicationImageTextBox, 0); + this.Controls.SetChildIndex(this.applicationArgumentsTextBox, 0); + this.Controls.SetChildIndex(this.winStyleLabel, 0); + this.Controls.SetChildIndex(this.winStyleComboBox, 0); + this.Controls.SetChildIndex(this.startupDirComboBox, 0); + this.Controls.SetChildIndex(this.startupDirLabel, 0); + this.Controls.SetChildIndex(this.quoteCheckBox, 0); + this.Controls.SetChildIndex(this.startupDirButton, 0); + this.Controls.SetChildIndex(this.allowRefreshCheckBox, 0); + this.Controls.SetChildIndex(this.informationLabel, 0); + this.Controls.SetChildIndex(this.titleTextBox, 0); + this.ResumeLayout(false); + this.PerformLayout(); + + } + + #endregion + + private System.Windows.Forms.Button button1; + } +} \ No newline at end of file Copied: trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/SettingsRoot.cs (from rev 797, trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppSettingsRoot.cs) =================================================================== --- trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/SettingsRoot.cs (rev 0) +++ trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/SettingsRoot.cs 2007-08-06 17:51:45 UTC (rev 798) @@ -0,0 +1,121 @@ +#region Copyright (C) 2005-2007 Team MediaPortal + +/* + * Copyright (C) 2005-2007 Team MediaPortal + * http://www.team-mediaportal.com + * + * This Program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This Program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with GNU Make; see the file COPYING. If not, write to + * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. + * http://www.gnu.org/copyleft/gpl.html + * + */ + +#endregion + +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Text; +using System.Windows.Forms; + +using GUIPrograms; +using GUIPrograms.Items; +using GUIPrograms.Database; + +namespace GUIPrograms.Design +{ + public partial class AppSettingsRoot : AppSettingsBase + { + bool Loaded = false; + + public AppSettingsRoot() + { + InitializeComponent(); + } + + private void AppSettingsRoot_Load(object sender, EventArgs e) + { + AppItemToForm(null); + Loaded = true; + + enabledCheckbox.Visible = false; + winTypeLabel.Text = "my Programs Alt."; + titleLabel.Text = "Plugin title"; + titleTextBox.Text = " My Programs Alt."; + + applicationExeLabel.Visible = false; + applicationExeTextBox.Visible = false; + applicationExeButton.Visible = false; + + applicationImageLabel.Visible = false; + applicationImageTextBox.Visible = false; + applicationImageButton.Visible = false; + + applicationArgumentsTextBox.Visible = false; + applicationArgumentsLabel.Visible = false; + + winStyleLabel.Visible = false; + winStyleComboBox.Visible = false; + + startupDirButton.Visible = false; + startupDirLabel.Visible = false; + startupDirComboBox.Visible = false; + + + quoteCheckBox.Visible = false; + allowRefreshCheckBox.Visible = false; + waitExitCheckBox.Visible = false; + shellexecuteCheckBox.Visible = false; + informationLabel.Visible = false; + + this.prePostButton.Visible = false; + + } + + public override bool AppItemToForm(ApplicationItem curApp) + { + base.AppItemToForm(curApp); + titleTextBox.Text = DatabaseHandler.ReadSetting(ProgramUtils.cPLUGINTITLE); + if (titleTextBox.Text == "") + { + // PluginTitle.Text = GUILocalizeStrings.Get(0); + titleTextBox.Text = "My Programs Alt."; + } + return true; + } + + public override void FormToAppItem(ApplicationItem curApp) + { + // currentApplication is null! + if (Loaded) + { + if ((titleTextBox.Text != "")) + { + DatabaseHandler.WriteSetting(ProgramUtils.cPLUGINTITLE, titleTextBox.Text); + } + else + { + DatabaseHandler.DeleteSetting(ProgramUtils.cPLUGINTITLE); + } + } + } + + private void button1_Click(object sender, EventArgs e) + { + titleTextBox.Text = "My Programs Alt."; + } + } +} \ No newline at end of file Copied: trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/SettingsRoot.resx (from rev 797, trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppSettingsRoot.resx) =================================================================== --- trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/SettingsRoot.resx (rev 0) +++ trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/SettingsRoot.resx 2007-08-06 17:51:45 UTC (rev 798) @@ -0,0 +1,129 @@ +<?xml version="1.0" encoding="utf-8"?> +<root> + <!-- + Microsoft ResX Schema + + Version 2.0 + + The primary goals of this format is to allow a simple XML format + that is mostly human readable. The generation and parsing of the + various data types are done through the TypeConverter classes + associated with the data types. + + Example: + + ... ado.net/XML headers & schema ... + <resheader name="resmimetype">text/microsoft-resx</resheader> + <resheader name="version">2.0</resheader> + <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> + <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> + <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data> + <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> + <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> + <value>[base64 mime encoded serialized .NET Framework object]</value> + </data> + <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> + <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> + <comment>This is a comment</comment> + </data> + + There are any number of "resheader" rows that contain simple + name/value pairs. + + Each data row contains a name, and value. The row also contains a + type or mimetype. Type corresponds to a .NET class that support + text/value conversion through the TypeConverter architecture. + Classes that don't support this are serialized and stored with the + mimetype set. + + The mimetype is used for serialized objects, and tells the + ResXResourceReader how to depersist the object. This is currently not + extensible. For a given mimetype the value must be set accordingly: + + Note - application/x-microsoft.net.object.binary.base64 is the format + that the ResXResourceWriter will generate, however the reader can + read any of the formats listed below. + + mimetype: application/x-microsoft.net.object.binary.base64 + value : The object must be serialized with + : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter + : and then encoded with base64 encoding. + + mimetype: application/x-microsoft.net.object.soap.base64 + value : The object must be serialized with + : System.Runtime.Serialization.Formatters.Soap.SoapFormatter + : and then encoded with base64 encoding. + + mimetype: application/x-microsoft.net.object.bytearray.base64 + value : The object must be serialized into a byte array + : using a System.ComponentModel.TypeConverter + : and then encoded with base64 encoding. + --> + <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> + <xsd:import namespace="http://www.w3.org/XML/1998/namespace" /> + <xsd:element name="root" msdata:IsDataSet="true"> + <xsd:complexType> + <xsd:choice maxOccurs="unbounded"> + <xsd:element name="metadata"> + <xsd:complexType> + <xsd:sequence> + <xsd:element name="value" type="xsd:string" minOccurs="0" /> + </xsd:sequence> + <xsd:attribute name="name" use="required" type="xsd:string" /> + <xsd:attribute name="type" type="xsd:string" /> + <xsd:attribute name="mimetype" type="xsd:string" /> + <xsd:attribute ref="xml:space" /> + </xsd:complexType> + </xsd:element> + <xsd:element name="assembly"> + <xsd:complexType> + <xsd:attribute name="alias" type="xsd:string" /> + <xsd:attribute name="name" type="xsd:string" /> + </xsd:complexType> + </xsd:element> + <xsd:element name="data"> + <xsd:complexType> + <xsd:sequence> + <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> + <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> + </xsd:sequence> + <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" /> + <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> + <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> + <xsd:attribute ref="xml:space" /> + </xsd:complexType> + </xsd:element> + <xsd:element name="resheader"> + <xsd:complexType> + <xsd:sequence> + <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> + </xsd:sequence> + <xsd:attribute name="name" type="xsd:string" use="required" /> + </xsd:complexType> + </xsd:element> + </xsd:choice> + </xsd:complexType> + </xsd:element> + </xsd:schema> + <resheader name="resmimetype"> + <value>text/microsoft-resx</value> + </resheader> + <resheader name="version"> + <value>2.0</value> + </resheader> + <resheader name="reader"> + <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> + </resheader> + <resheader name="writer"> + <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> + </resheader> + <metadata name="toolTip.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> + <value>313, 17</value> + </metadata> + <metadata name="folderBrowserDialog.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> + <value>150, 17</value> + </metadata> + <metadata name="openFileDialog.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> + <value>17, 17</value> + </metadata> +</root> \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
[Mp-plugins-svn] SF.net SVN: mp-plugins: [799]
trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt /Design
From: <che...@us...> - 2007-08-06 17:52:41
|
Revision: 799 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=799&view=rev Author: chef_koch Date: 2007-08-06 10:52:37 -0700 (Mon, 06 Aug 2007) Log Message: ----------- i forgot to upload a few files, sorry Modified Paths: -------------- trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppSettingsBase.cs trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/SettingsRoot.Designer.cs trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/SettingsRoot.cs trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/SettingsRoot.resx trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/SetupForm.cs Added Paths: ----------- trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/SettingsBase.Designer.cs trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/SettingsBase.cs trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/SettingsBase.resx Modified: trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppSettingsBase.cs =================================================================== --- trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppSettingsBase.cs 2007-08-06 17:51:45 UTC (rev 798) +++ trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppSettingsBase.cs 2007-08-06 17:52:37 UTC (rev 799) @@ -103,6 +103,12 @@ } + public virtual void LoadFromAppItem(ApplicationItem tempApp) + { + //Log.Debug("{0}: LoadFromAppItem()", this.ToString()); + } + + private void InitDefault() { //{ Added: trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/SettingsBase.Designer.cs =================================================================== --- trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/SettingsBase.Designer.cs (rev 0) +++ trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/SettingsBase.Designer.cs 2007-08-06 17:52:37 UTC (rev 799) @@ -0,0 +1,46 @@ +namespace GUIPrograms.Design +{ + partial class SettingsBase + { + /// <summary> + /// Required designer variable. + /// </summary> + private System.ComponentModel.IContainer components = null; + + /// <summary> + /// Clean up any resources being used. + /// </summary> + /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Component Designer generated code + + /// <summary> + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// </summary> + private void InitializeComponent() + { + this.SuspendLayout(); + // + // SettingsBase + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.Name = "SettingsBase"; + this.Size = new System.Drawing.Size(497, 550); + this.ResumeLayout(false); + + } + + #endregion + + } +} \ No newline at end of file Added: trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/SettingsBase.cs =================================================================== --- trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/SettingsBase.cs (rev 0) +++ trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/SettingsBase.cs 2007-08-06 17:52:37 UTC (rev 799) @@ -0,0 +1,71 @@ +#region Copyright (C) 2005-2007 Team MediaPortal + +/* + * Copyright (C) 2005-2007 Team MediaPortal + * http://www.team-mediaportal.com + * + * This Program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This Program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with GNU Make; see the file COPYING. If not, write to + * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. + * http://www.gnu.org/copyleft/gpl.html + * + */ + +#endregion + +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Diagnostics; +using System.Drawing; +using System.IO; +using System.Text; +using System.Windows.Forms; +using Core.Util; + +using GUIPrograms; +using GUIPrograms.Items; +using GUIPrograms.Database; +using MediaPortal.GUI.Library; + +namespace GUIPrograms.Design +{ + public partial class SettingsBase : UserControl + { + protected ConditionChecker conditionChecker = new ConditionChecker(); + + + public SettingsBase() + { + InitializeComponent(); + } + + + public virtual void LoadSettings(ApplicationItem curApp) + { + //Log.Debug("{0}: LoadSettings()", this.ToString()); + } + + public virtual void SaveSettings(ApplicationItem curApp) + { + //Log.Debug("{0}: SaveSettings()", this.ToString()); + } + + public virtual bool EntriesOK(ApplicationItem curApp) + { + //Log.Debug("{0}: EntriesOK()", this.ToString()); + return true; + } + } +} \ No newline at end of file Added: trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/SettingsBase.resx =================================================================== --- trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/SettingsBase.resx (rev 0) +++ trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/SettingsBase.resx 2007-08-06 17:52:37 UTC (rev 799) @@ -0,0 +1,120 @@ +<?xml version="1.0" encoding="utf-8"?> +<root> + <!-- + Microsoft ResX Schema + + Version 2.0 + + The primary goals of this format is to allow a simple XML format + that is mostly human readable. The generation and parsing of the + various data types are done through the TypeConverter classes + associated with the data types. + + Example: + + ... ado.net/XML headers & schema ... + <resheader name="resmimetype">text/microsoft-resx</resheader> + <resheader name="version">2.0</resheader> + <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> + <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> + <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data> + <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> + <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> + <value>[base64 mime encoded serialized .NET Framework object]</value> + </data> + <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> + <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> + <comment>This is a comment</comment> + </data> + + There are any number of "resheader" rows that contain simple + name/value pairs. + + Each data row contains a name, and value. The row also contains a + type or mimetype. Type corresponds to a .NET class that support + text/value conversion through the TypeConverter architecture. + Classes that don't support this are serialized and stored with the + mimetype set. + + The mimetype is used for serialized objects, and tells the + ResXResourceReader how to depersist the object. This is currently not + extensible. For a given mimetype the value must be set accordingly: + + Note - application/x-microsoft.net.object.binary.base64 is the format + that the ResXResourceWriter will generate, however the reader can + read any of the formats listed below. + + mimetype: application/x-microsoft.net.object.binary.base64 + value : The object must be serialized with + : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter + : and then encoded with base64 encoding. + + mimetype: application/x-microsoft.net.object.soap.base64 + value : The object must be serialized with + : System.Runtime.Serialization.Formatters.Soap.SoapFormatter + : and then encoded with base64 encoding. + + mimetype: application/x-microsoft.net.object.bytearray.base64 + value : The object must be serialized into a byte array + : using a System.ComponentModel.TypeConverter + : and then encoded with base64 encoding. + --> + <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> + <xsd:import namespace="http://www.w3.org/XML/1998/namespace" /> + <xsd:element name="root" msdata:IsDataSet="true"> + <xsd:complexType> + <xsd:choice maxOccurs="unbounded"> + <xsd:element name="metadata"> + <xsd:complexType> + <xsd:sequence> + <xsd:element name="value" type="xsd:string" minOccurs="0" /> + </xsd:sequence> + <xsd:attribute name="name" use="required" type="xsd:string" /> + <xsd:attribute name="type" type="xsd:string" /> + <xsd:attribute name="mimetype" type="xsd:string" /> + <xsd:attribute ref="xml:space" /> + </xsd:complexType> + </xsd:element> + <xsd:element name="assembly"> + <xsd:complexType> + <xsd:attribute name="alias" type="xsd:string" /> + <xsd:attribute name="name" type="xsd:string" /> + </xsd:complexType> + </xsd:element> + <xsd:element name="data"> + <xsd:complexType> + <xsd:sequence> + <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> + <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> + </xsd:sequence> + <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" /> + <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> + <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> + <xsd:attribute ref="xml:space" /> + </xsd:complexType> + </xsd:element> + <xsd:element name="resheader"> + <xsd:complexType> + <xsd:sequence> + <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> + </xsd:sequence> + <xsd:attribute name="name" type="xsd:string" use="required" /> + </xsd:complexType> + </xsd:element> + </xsd:choice> + </xsd:complexType> + </xsd:element> + </xsd:schema> + <resheader name="resmimetype"> + <value>text/microsoft-resx</value> + </resheader> + <resheader name="version"> + <value>2.0</value> + </resheader> + <resheader name="reader"> + <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> + </resheader> + <resheader name="writer"> + <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> + </resheader> +</root> \ No newline at end of file Modified: trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/SettingsRoot.Designer.cs =================================================================== --- trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/SettingsRoot.Designer.cs 2007-08-06 17:51:45 UTC (rev 798) +++ trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/SettingsRoot.Designer.cs 2007-08-06 17:52:37 UTC (rev 799) @@ -1,6 +1,6 @@ namespace GUIPrograms.Design { - partial class AppSettingsRoot + partial class SettingsRoot { /// <summary> /// Required designer variable. @@ -28,112 +28,176 @@ /// </summary> private void InitializeComponent() { - this.button1 = new System.Windows.Forms.Button(); + this.titleTextBox = new System.Windows.Forms.TextBox(); + this.titleLabel = new System.Windows.Forms.Label(); + this.checkBoxUseThumbsDir = new System.Windows.Forms.CheckBox(); + this.titleGroupBox = new System.Windows.Forms.GroupBox(); + this.titleResetButton = new System.Windows.Forms.Button(); + this.groupBoxThumbs = new System.Windows.Forms.GroupBox(); + this.sleepTimeGroupBox = new System.Windows.Forms.GroupBox(); + this.sleepTimeLabel = new System.Windows.Forms.Label(); + this.sleepTimeResetButton = new System.Windows.Forms.Button(); + this.sleepTimeNumericUpDown = new System.Windows.Forms.NumericUpDown(); + this.titleGroupBox.SuspendLayout(); + this.groupBoxThumbs.SuspendLayout(); + this.sleepTimeGroupBox.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.sleepTimeNumericUpDown)).BeginInit(); this.SuspendLayout(); // - // enabledCheckbox + // titleTextBox // - this.toolTip.SetToolTip(this.enabledCheckbox, "Only enabled items will appear in MediaPortal"); + this.titleTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.titleTextBox.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.titleTextBox.Location = new System.Drawing.Point(88, 23); + this.titleTextBox.Name = "titleTextBox"; + this.titleTextBox.Size = new System.Drawing.Size(316, 21); + this.titleTextBox.TabIndex = 46; // // titleLabel // - this.titleLabel.Size = new System.Drawing.Size(92, 20); + this.titleLabel.AutoSize = true; + this.titleLabel.Location = new System.Drawing.Point(6, 28); + this.titleLabel.Name = "titleLabel"; + this.titleLabel.Size = new System.Drawing.Size(31, 13); + this.titleLabel.TabIndex = 45; + this.titleLabel.Text = "Title:"; + this.titleLabel.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // - // titleTextBox + // checkBoxUseThumbsDir // - this.toolTip.SetToolTip(this.titleTextBox, "This text will appear in the listitem of MediaPortal\r\n(mandatory)"); + this.checkBoxUseThumbsDir.AutoSize = true; + this.checkBoxUseThumbsDir.Location = new System.Drawing.Point(9, 20); + this.checkBoxUseThumbsDir.Name = "checkBoxUseThumbsDir"; + this.checkBoxUseThumbsDir.Size = new System.Drawing.Size(129, 17); + this.checkBoxUseThumbsDir.TabIndex = 44; + this.checkBoxUseThumbsDir.Text = "usw thumbs directory"; + this.checkBoxUseThumbsDir.UseVisualStyleBackColor = true; // - // applicationExeButton + // titleGroupBox // - this.applicationExeButton.Location = new System.Drawing.Point(359, 70); + this.titleGroupBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.titleGroupBox.Controls.Add(this.titleResetButton); + this.titleGroupBox.Controls.Add(this.titleTextBox); + this.titleGroupBox.Controls.Add(this.titleLabel); + this.titleGroupBox.Location = new System.Drawing.Point(3, 3); + this.titleGroupBox.Name = "titleGroupBox"; + this.titleGroupBox.Size = new System.Drawing.Size(491, 62); + this.titleGroupBox.TabIndex = 47; + this.titleGroupBox.TabStop = false; + this.titleGroupBox.Text = "Plugin Title"; // - // shellexecuteCheckBox + // titleResetButton // - this.toolTip.SetToolTip(this.shellexecuteCheckBox, "Enable this if you want to run a program that is associated with a specific file-" + - "extension.\r\nYou can omit the \"Launching Application\" in this case."); + this.titleResetButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.titleResetButton.Location = new System.Drawing.Point(410, 23); + this.titleResetButton.Name = "titleResetButton"; + this.titleResetButton.Size = new System.Drawing.Size(75, 23); + this.titleResetButton.TabIndex = 47; + this.titleResetButton.Text = "Reset"; + this.titleResetButton.UseVisualStyleBackColor = true; + this.titleResetButton.Click += new System.EventHandler(this.titleResetButton_Click); // - // applicationArgumentsLabel + // groupBoxThumbs // - this.toolTip.SetToolTip(this.applicationArgumentsLabel, "Optional arguments that are needed to launch the program \r\n\r\n(advanced hint: Use " + - "%FILE% if the filename needs to be placed in some specific place between several" + - " arguments)"); + this.groupBoxThumbs.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.groupBoxThumbs.Controls.Add(this.checkBoxUseThumbsDir); + this.groupBoxThumbs.Location = new System.Drawing.Point(3, 131); + this.groupBoxThumbs.Name = "groupBoxThumbs"; + this.groupBoxThumbs.Size = new System.Drawing.Size(491, 61); + this.groupBoxThumbs.TabIndex = 48; + this.groupBoxThumbs.TabStop = false; + this.groupBoxThumbs.Text = "Thumb Settings"; // - // applicationImageTextBox + // sleepTimeGroupBox // - this.toolTip.SetToolTip(this.applicationImageTextBox, "Optional filename for an image to display in MediaPortal"); + this.sleepTimeGroupBox.Controls.Add(this.sleepTimeLabel); + this.sleepTimeGroupBox.Controls.Add(this.sleepTimeResetButton); + this.sleepTimeGroupBox.Controls.Add(this.sleepTimeNumericUpDown); + this.sleepTimeGroupBox.Location = new System.Drawing.Point(3, 71); + this.sleepTimeGroupBox.Name = "sleepTimeGroupBox"; + this.sleepTimeGroupBox.Size = new System.Drawing.Size(491, 54); + this.sleepTimeGroupBox.TabIndex = 49; + this.sleepTimeGroupBox.TabStop = false; + this.sleepTimeGroupBox.Text = "Sleep time until switch to next Thumb"; // - // winStyleComboBox + // sleepTimeLabel // - this.toolTip.SetToolTip(this.winStyleComboBox, "Appearance of the launched program. \r\nTry HIDDEN or MINIMIZED for a seamless inte" + - "gration in MediaPortal"); + this.sleepTimeLabel.AutoSize = true; + this.sleepTimeLabel.Location = new System.Drawing.Point(6, 25); + this.sleepTimeLabel.Name = "sleepTimeLabel"; + this.sleepTimeLabel.Size = new System.Drawing.Size(68, 13); + this.sleepTimeLabel.TabIndex = 2; + this.sleepTimeLabel.Text = "Time (in ms):"; // - // startupDirTextBox + // sleepTimeResetButton // - this.toolTip.SetToolTip(this.startupDirComboBox, "Optional path that is passed as the launch-directory \r\n\r\n(advanced hint: Use %FIL" + - "EDIR% if you want to use the directory where the launched file is stored)"); + this.sleepTimeResetButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.sleepTimeResetButton.Location = new System.Drawing.Point(410, 20); + this.sleepTimeResetButton.Name = "sleepTimeResetButton"; + this.sleepTimeResetButton.Size = new System.Drawing.Size(75, 23); + this.sleepTimeResetButton.TabIndex = 1; + this.sleepTimeResetButton.Text = "Reset"; + this.sleepTimeResetButton.UseVisualStyleBackColor = true; + this.sleepTimeResetButton.Click += new System.EventHandler(this.sleepTimeResetButton_Click); // - // quoteCheckBox + // sleepTimeNumericUpDown // - this.toolTip.SetToolTip(this.quoteCheckBox, "Quotes are usually needed to handle filenames with spaces correctly. \r\nAvoid doub" + - "le quotes though!"); + this.sleepTimeNumericUpDown.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.sleepTimeNumericUpDown.Location = new System.Drawing.Point(88, 20); + this.sleepTimeNumericUpDown.Maximum = new decimal(new int[] { + 30000, + 0, + 0, + 0}); + this.sleepTimeNumericUpDown.Minimum = new decimal(new int[] { + 300, + 0, + 0, + 0}); + this.sleepTimeNumericUpDown.Name = "sleepTimeNumericUpDown"; + this.sleepTimeNumericUpDown.Size = new System.Drawing.Size(316, 21); + this.sleepTimeNumericUpDown.TabIndex = 0; + this.sleepTimeNumericUpDown.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; + this.sleepTimeNumericUpDown.Value = new decimal(new int[] { + 3000, + 0, + 0, + 0}); // - // applicationImageButton + // SettingsRoot // - this.applicationImageButton.Location = new System.Drawing.Point(356, 97); - // - // allowRefreshCheckBox - // - this.toolTip.SetToolTip(this.allowRefreshCheckBox, "Check this if users can run the import through the REFRESH button in MediaPortal." + - ""); - // - // button1 - // - this.button1.Location = new System.Drawing.Point(427, 43); - this.button1.Name = "button1"; - this.button1.Size = new System.Drawing.Size(44, 23); - this.button1.TabIndex = 32; - this.button1.Text = "Reset"; - this.button1.UseVisualStyleBackColor = true; - this.button1.Click += new System.EventHandler(this.button1_Click); - // - // AppSettingsRoot - // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.Controls.Add(this.button1); - this.Name = "AppSettingsRoot"; - this.Load += new System.EventHandler(this.AppSettingsRoot_Load); - this.Controls.SetChildIndex(this.button1, 0); - this.Controls.SetChildIndex(this.prePostButton, 0); - this.Controls.SetChildIndex(this.applicationImageButton, 0); - this.Controls.SetChildIndex(this.applicationExeButton, 0); - this.Controls.SetChildIndex(this.winTypeLabel, 0); - this.Controls.SetChildIndex(this.enabledCheckbox, 0); - this.Controls.SetChildIndex(this.titleLabel, 0); - this.Controls.SetChildIndex(this.applicationExeLabel, 0); - this.Controls.SetChildIndex(this.shellexecuteCheckBox, 0); - this.Controls.SetChildIndex(this.waitExitCheckBox, 0); - this.Controls.SetChildIndex(this.applicationExeTextBox, 0); - this.Controls.SetChildIndex(this.applicationImageLabel, 0); - this.Controls.SetChildIndex(this.applicationArgumentsLabel, 0); - this.Controls.SetChildIndex(this.applicationImageTextBox, 0); - this.Controls.SetChildIndex(this.applicationArgumentsTextBox, 0); - this.Controls.SetChildIndex(this.winStyleLabel, 0); - this.Controls.SetChildIndex(this.winStyleComboBox, 0); - this.Controls.SetChildIndex(this.startupDirComboBox, 0); - this.Controls.SetChildIndex(this.startupDirLabel, 0); - this.Controls.SetChildIndex(this.quoteCheckBox, 0); - this.Controls.SetChildIndex(this.startupDirButton, 0); - this.Controls.SetChildIndex(this.allowRefreshCheckBox, 0); - this.Controls.SetChildIndex(this.informationLabel, 0); - this.Controls.SetChildIndex(this.titleTextBox, 0); + this.Controls.Add(this.sleepTimeGroupBox); + this.Controls.Add(this.groupBoxThumbs); + this.Controls.Add(this.titleGroupBox); + this.Name = "SettingsRoot"; + this.titleGroupBox.ResumeLayout(false); + this.titleGroupBox.PerformLayout(); + this.groupBoxThumbs.ResumeLayout(false); + this.groupBoxThumbs.PerformLayout(); + this.sleepTimeGroupBox.ResumeLayout(false); + this.sleepTimeGroupBox.PerformLayout(); + ((System.ComponentModel.ISupportInitialize)(this.sleepTimeNumericUpDown)).EndInit(); this.ResumeLayout(false); - this.PerformLayout(); } #endregion - private System.Windows.Forms.Button button1; + private System.Windows.Forms.CheckBox checkBoxUseThumbsDir; + private System.Windows.Forms.GroupBox titleGroupBox; + private System.Windows.Forms.GroupBox groupBoxThumbs; + private System.Windows.Forms.TextBox titleTextBox; + private System.Windows.Forms.Label titleLabel; + private System.Windows.Forms.GroupBox sleepTimeGroupBox; + private System.Windows.Forms.Label sleepTimeLabel; + private System.Windows.Forms.Button sleepTimeResetButton; + private System.Windows.Forms.NumericUpDown sleepTimeNumericUpDown; + private System.Windows.Forms.Button titleResetButton; } } \ No newline at end of file Modified: trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/SettingsRoot.cs =================================================================== --- trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/SettingsRoot.cs 2007-08-06 17:51:45 UTC (rev 798) +++ trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/SettingsRoot.cs 2007-08-06 17:52:37 UTC (rev 799) @@ -37,85 +37,66 @@ namespace GUIPrograms.Design { - public partial class AppSettingsRoot : AppSettingsBase + public partial class SettingsRoot : SettingsBase { - bool Loaded = false; + bool loaded = false; - public AppSettingsRoot() + + public SettingsRoot() { InitializeComponent(); } - private void AppSettingsRoot_Load(object sender, EventArgs e) + + public override void LoadSettings(ApplicationItem curApp) { - AppItemToForm(null); - Loaded = true; + base.LoadSettings(curApp); - enabledCheckbox.Visible = false; - winTypeLabel.Text = "my Programs Alt."; - titleLabel.Text = "Plugin title"; - titleTextBox.Text = " My Programs Alt."; + // plugin title + titleTextBox.Text = DatabaseHandler.ReadSetting(ProgramUtils.cPLUGINTITLE); + if (titleTextBox.Text == "") + { + // PluginTitle.Text = GUILocalizeStrings.Get(0); + titleTextBox.Text = ProgramUtils.cDefaultPluginTitle; + } - applicationExeLabel.Visible = false; - applicationExeTextBox.Visible = false; - applicationExeButton.Visible = false; + // sleep time + sleepTimeNumericUpDown.Value = ProgramUtils.GetSleepTime(); - applicationImageLabel.Visible = false; - applicationImageTextBox.Visible = false; - applicationImageButton.Visible = false; + // use mp thumbs dir + checkBoxUseThumbsDir.Checked = ProgramUtils.UseThumbsDir(); - applicationArgumentsTextBox.Visible = false; - applicationArgumentsLabel.Visible = false; + loaded = true; + } - winStyleLabel.Visible = false; - winStyleComboBox.Visible = false; + public override void SaveSettings(ApplicationItem curApp) + { + if (!loaded) return; - startupDirButton.Visible = false; - startupDirLabel.Visible = false; - startupDirComboBox.Visible = false; + base.SaveSettings(curApp); + // plugin title + if (titleTextBox.Text == ProgramUtils.cDefaultPluginTitle || titleTextBox.Text == "") + DatabaseHandler.DeleteSetting(ProgramUtils.cPLUGINTITLE); + else + DatabaseHandler.WriteSetting(ProgramUtils.cPLUGINTITLE, titleTextBox.Text); - quoteCheckBox.Visible = false; - allowRefreshCheckBox.Visible = false; - waitExitCheckBox.Visible = false; - shellexecuteCheckBox.Visible = false; - informationLabel.Visible = false; + // sleep time + DatabaseHandler.WriteSetting(ProgramUtils.cSLIDESPEED, sleepTimeNumericUpDown.Value.ToString()); - this.prePostButton.Visible = false; - + // use mp thumbs dir + DatabaseHandler.WriteSetting(ProgramUtils.cUSE_MP_THUMBS_DIR, checkBoxUseThumbsDir.Checked.ToString()); } - public override bool AppItemToForm(ApplicationItem curApp) - { - base.AppItemToForm(curApp); - titleTextBox.Text = DatabaseHandler.ReadSetting(ProgramUtils.cPLUGINTITLE); - if (titleTextBox.Text == "") - { - // PluginTitle.Text = GUILocalizeStrings.Get(0); - titleTextBox.Text = "My Programs Alt."; - } - return true; - } - public override void FormToAppItem(ApplicationItem curApp) + private void titleResetButton_Click(object sender, EventArgs e) { - // currentApplication is null! - if (Loaded) - { - if ((titleTextBox.Text != "")) - { - DatabaseHandler.WriteSetting(ProgramUtils.cPLUGINTITLE, titleTextBox.Text); - } - else - { - DatabaseHandler.DeleteSetting(ProgramUtils.cPLUGINTITLE); - } - } + titleTextBox.Text = ProgramUtils.cDefaultPluginTitle; } - private void button1_Click(object sender, EventArgs e) + private void sleepTimeResetButton_Click(object sender, EventArgs e) { - titleTextBox.Text = "My Programs Alt."; + sleepTimeNumericUpDown.Value = ProgramUtils.cDefaultSleepTime; } } } \ No newline at end of file Modified: trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/SettingsRoot.resx =================================================================== --- trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/SettingsRoot.resx 2007-08-06 17:51:45 UTC (rev 798) +++ trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/SettingsRoot.resx 2007-08-06 17:52:37 UTC (rev 799) @@ -117,13 +117,4 @@ <resheader name="writer"> <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> </resheader> - <metadata name="toolTip.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> - <value>313, 17</value> - </metadata> - <metadata name="folderBrowserDialog.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> - <value>150, 17</value> - </metadata> - <metadata name="openFileDialog.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> - <value>17, 17</value> - </metadata> </root> \ No newline at end of file Modified: trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/SetupForm.cs =================================================================== --- trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/SetupForm.cs 2007-08-06 17:51:45 UTC (rev 798) +++ trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/SetupForm.cs 2007-08-06 17:52:37 UTC (rev 799) @@ -625,12 +625,13 @@ pageCurrentSettings = GetCurrentSettingsPage(); - if (pageCurrentSettings != null) + if (pageCurrentSettings is AppSettingsBase) { + AppSettingsBase appSettingsPage = pageCurrentSettings as AppSettingsBase; // create a pseudo-appitem and read the values from the xml node ApplicationItem tempApp = new ApplicationItem(); tempApp.LoadFromXmlProfile(node); - pageCurrentSettings.LoadFromAppItem(tempApp); + appSettingsPage.LoadFromAppItem(tempApp); appSettingsFileEditView.FileExtensionsText = tempApp.ValidExtensions; } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |