From: <nor...@us...> - 2007-08-20 08:53:12
|
Revision: 848 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=848&view=rev Author: northern_sky Date: 2007-08-20 01:53:11 -0700 (Mon, 20 Aug 2007) Log Message: ----------- fixed some validate stuff Modified Paths: -------------- trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppFilesView.cs trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppSettingsDirCache.cs trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppSettingsGamebase.cs trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppSettingsMame.cs trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/SettingsBase.cs trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/SetupForm.Designer.cs trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/SetupForm.cs trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Imports/DirectoryImport.cs trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Imports/MameImport.cs trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Items/ApplicationItemDirectoryCache.cs trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Items/ApplicationItemGameBase.cs trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Items/ApplicationItemMame.cs trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Items/FileItem.cs trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Items/FilelinkItem.cs Modified: trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppFilesView.cs =================================================================== --- trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppFilesView.cs 2007-08-19 23:23:20 UTC (rev 847) +++ trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppFilesView.cs 2007-08-20 08:53:11 UTC (rev 848) @@ -145,6 +145,7 @@ { fileListView.EndUpdate(); } + SetupFileView(); SyncListViewButtons(); SyncFilePath(); } @@ -661,7 +662,7 @@ private void AppFilesView_Load(object sender, EventArgs e) { - toolTip.SetToolTip(fileDirTextBox, "Directorys to display in MediaPortal,seperate with ; \r\n(mandatory)"); + toolTip.SetToolTip(fileDirTextBox, "Directorys where to look for files ,seperate with ; \r\n(mandatory)"); toolTip.SetToolTip(fileExtensionsTextBox, "Only files with matching extensions will be displayed. \r\nSeparate several extension" + "s by a ; (.zip;.txt)\r\n(mandatory)"); toolTip.SetToolTip(imageDirsTextBox, "Optional directory where MediaPortal searches for matching images. \r\n MediaPort" + Modified: trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppSettingsDirCache.cs =================================================================== --- trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppSettingsDirCache.cs 2007-08-19 23:23:20 UTC (rev 847) +++ trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppSettingsDirCache.cs 2007-08-20 08:53:11 UTC (rev 848) @@ -81,7 +81,7 @@ } - public override bool EntriesOK(ApplicationItem curApp) + public override bool ValidateEntries(ApplicationItem curApp) { conditionChecker.Clear(); conditionChecker.DoCheck(titleTextBox.Text != "", "No title entered!"); Modified: trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppSettingsGamebase.cs =================================================================== --- trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppSettingsGamebase.cs 2007-08-19 23:23:20 UTC (rev 847) +++ trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppSettingsGamebase.cs 2007-08-20 08:53:11 UTC (rev 848) @@ -80,13 +80,15 @@ } - public override bool EntriesOK(ApplicationItem curApp) + public override bool ValidateEntries(ApplicationItem curApp) { conditionChecker.Clear(); - conditionChecker.DoCheck(this.titleTextBox.Text != "", "No title entered!"); + + conditionChecker.DoCheck(titleTextBox.Text != "", "No title entered!"); + if (this.applicationExeTextBox.Text == "") { - conditionChecker.DoCheck(this.shellexecuteCheckBox.Checked, "No launching filename entered!"); + conditionChecker.DoCheck(shellexecuteCheckBox.Checked, "No launching filename entered!"); } if (!conditionChecker.IsOk) Modified: trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppSettingsMame.cs =================================================================== --- trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppSettingsMame.cs 2007-08-19 23:23:20 UTC (rev 847) +++ trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppSettingsMame.cs 2007-08-20 08:53:11 UTC (rev 848) @@ -59,7 +59,28 @@ curApp.RefreshGUIAllowed = true; } + public override bool ValidateEntries(ApplicationItem curApp) + { + conditionChecker.Clear(); + conditionChecker.DoCheck(titleTextBox.Text != "", "No title entered!"); + + if (this.applicationExeTextBox.Text == "") + { + conditionChecker.DoCheck(shellexecuteCheckBox.Checked, "No launching filename entered!"); + } + + if (!conditionChecker.IsOk) + { + string strHeader = "The following entries are invalid: \r\n\r\n"; + string strFooter = "\r\n\r\n(Click DELETE to remove this item)"; + MessageBox.Show(strHeader + conditionChecker.Problems + strFooter, "Invalid Entries"); + } + else + { } + return conditionChecker.IsOk; + } + void catverLink_LinkClicked(object sender, System.Windows.Forms.LinkLabelLinkClickedEventArgs e) { LaunchLink(catverLink.Text); Modified: trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/SettingsBase.cs =================================================================== --- trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/SettingsBase.cs 2007-08-19 23:23:20 UTC (rev 847) +++ trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/SettingsBase.cs 2007-08-20 08:53:11 UTC (rev 848) @@ -63,9 +63,9 @@ //Log.Debug("{0}: SaveSettings()", this.ToString()); } - public virtual bool EntriesOK(ApplicationItem curApp) + public virtual bool ValidateEntries(ApplicationItem curApp) { - //Log.Debug("{0}: EntriesOK()", this.ToString()); + //Log.Debug("{0}: ValidateEntries()", this.ToString()); return true; } Modified: trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/SetupForm.Designer.cs =================================================================== --- trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/SetupForm.Designer.cs 2007-08-19 23:23:20 UTC (rev 847) +++ trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/SetupForm.Designer.cs 2007-08-20 08:53:11 UTC (rev 848) @@ -28,441 +28,443 @@ /// </summary> private void InitializeComponent() { - System.Windows.Forms.TreeNode treeNode1 = new System.Windows.Forms.TreeNode( "Applications" ); - this.menuStrip = new System.Windows.Forms.MenuStrip(); - this.addDeleteApplicationsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.addApplicationToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.applicationWithFiledirectoryToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.addGroupnodeToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.extendedApplicationItemToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.mameImportToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.importGamebaseItemToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.deleteApplicationToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.toolsStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.premadeConfigurationsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.emulatorSetupToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.treeView = new System.Windows.Forms.TreeView(); - this.tabControl = new System.Windows.Forms.TabControl(); - this.detailsTabPage = new System.Windows.Forms.TabPage(); - this.directoryTabPage = new System.Windows.Forms.TabPage(); - this.viewTabPage = new System.Windows.Forms.TabPage(); - this.dbOptionsTabPage = new System.Windows.Forms.TabPage(); - this.generalFileItemOptionsGroupBox = new System.Windows.Forms.GroupBox(); - this.removePlatformComboBox = new System.Windows.Forms.ComboBox(); - this.removePlatformLabel = new System.Windows.Forms.Label(); - this.removePlatformButton = new System.Windows.Forms.Button(); - this.addPlatformLabel = new System.Windows.Forms.Label(); - this.addPlatformTextBox = new System.Windows.Forms.TextBox(); - this.addPlatformButton = new System.Windows.Forms.Button(); - this.removeManufacturerComboBox = new System.Windows.Forms.ComboBox(); - this.removeManufacturerLabel = new System.Windows.Forms.Label(); - this.removeManufacturerButton = new System.Windows.Forms.Button(); - this.addManufacturerLabel = new System.Windows.Forms.Label(); - this.addManufacturerTextBox = new System.Windows.Forms.TextBox(); - this.addManufacturerButton = new System.Windows.Forms.Button(); - this.removeGenreComboBox = new System.Windows.Forms.ComboBox(); - this.removeGenreLabel = new System.Windows.Forms.Label(); - this.removeGenreButton = new System.Windows.Forms.Button(); - this.addGenreLabel = new System.Windows.Forms.Label(); - this.addGenreTextBox = new System.Windows.Forms.TextBox(); - this.addGenreButton = new System.Windows.Forms.Button(); - this.menuStrip.SuspendLayout(); - this.tabControl.SuspendLayout(); - this.dbOptionsTabPage.SuspendLayout(); - this.generalFileItemOptionsGroupBox.SuspendLayout(); - this.SuspendLayout(); - // - // menuStrip - // - this.menuStrip.Items.AddRange( new System.Windows.Forms.ToolStripItem[] { + System.Windows.Forms.TreeNode treeNode4 = new System.Windows.Forms.TreeNode("Applications"); + this.menuStrip = new System.Windows.Forms.MenuStrip(); + this.addDeleteApplicationsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.addApplicationToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.applicationWithFiledirectoryToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.addGroupnodeToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.extendedApplicationItemToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.mameImportToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.importGamebaseItemToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.deleteApplicationToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.toolsStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.premadeConfigurationsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.emulatorSetupToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.treeView = new System.Windows.Forms.TreeView(); + this.tabControl = new System.Windows.Forms.TabControl(); + this.detailsTabPage = new System.Windows.Forms.TabPage(); + this.directoryTabPage = new System.Windows.Forms.TabPage(); + this.viewTabPage = new System.Windows.Forms.TabPage(); + this.dbOptionsTabPage = new System.Windows.Forms.TabPage(); + this.generalFileItemOptionsGroupBox = new System.Windows.Forms.GroupBox(); + this.removePlatformComboBox = new System.Windows.Forms.ComboBox(); + this.removePlatformLabel = new System.Windows.Forms.Label(); + this.removePlatformButton = new System.Windows.Forms.Button(); + this.addPlatformLabel = new System.Windows.Forms.Label(); + this.addPlatformTextBox = new System.Windows.Forms.TextBox(); + this.addPlatformButton = new System.Windows.Forms.Button(); + this.removeManufacturerComboBox = new System.Windows.Forms.ComboBox(); + this.removeManufacturerLabel = new System.Windows.Forms.Label(); + this.removeManufacturerButton = new System.Windows.Forms.Button(); + this.addManufacturerLabel = new System.Windows.Forms.Label(); + this.addManufacturerTextBox = new System.Windows.Forms.TextBox(); + this.addManufacturerButton = new System.Windows.Forms.Button(); + this.removeGenreComboBox = new System.Windows.Forms.ComboBox(); + this.removeGenreLabel = new System.Windows.Forms.Label(); + this.removeGenreButton = new System.Windows.Forms.Button(); + this.addGenreLabel = new System.Windows.Forms.Label(); + this.addGenreTextBox = new System.Windows.Forms.TextBox(); + this.addGenreButton = new System.Windows.Forms.Button(); + this.menuStrip.SuspendLayout(); + this.tabControl.SuspendLayout(); + this.dbOptionsTabPage.SuspendLayout(); + this.generalFileItemOptionsGroupBox.SuspendLayout(); + this.SuspendLayout(); + // + // menuStrip + // + this.menuStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.addDeleteApplicationsToolStripMenuItem, - this.toolsStripMenuItem} ); - this.menuStrip.Location = new System.Drawing.Point( 0, 0 ); - this.menuStrip.Name = "menuStrip"; - this.menuStrip.RenderMode = System.Windows.Forms.ToolStripRenderMode.System; - this.menuStrip.Size = new System.Drawing.Size( 747, 24 ); - this.menuStrip.TabIndex = 0; - this.menuStrip.Text = "menuStrip"; - // - // addDeleteApplicationsToolStripMenuItem - // - this.addDeleteApplicationsToolStripMenuItem.DropDownItems.AddRange( new System.Windows.Forms.ToolStripItem[] { + this.toolsStripMenuItem}); + this.menuStrip.Location = new System.Drawing.Point(0, 0); + this.menuStrip.Name = "menuStrip"; + this.menuStrip.RenderMode = System.Windows.Forms.ToolStripRenderMode.System; + this.menuStrip.Size = new System.Drawing.Size(747, 24); + this.menuStrip.TabIndex = 0; + this.menuStrip.Text = "menuStrip"; + // + // addDeleteApplicationsToolStripMenuItem + // + this.addDeleteApplicationsToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.addApplicationToolStripMenuItem, - this.deleteApplicationToolStripMenuItem} ); - this.addDeleteApplicationsToolStripMenuItem.Name = "addDeleteApplicationsToolStripMenuItem"; - this.addDeleteApplicationsToolStripMenuItem.Size = new System.Drawing.Size( 132, 20 ); - this.addDeleteApplicationsToolStripMenuItem.Text = "Add/Delete applications"; - // - // addApplicationToolStripMenuItem - // - this.addApplicationToolStripMenuItem.DropDownItems.AddRange( new System.Windows.Forms.ToolStripItem[] { + this.deleteApplicationToolStripMenuItem}); + this.addDeleteApplicationsToolStripMenuItem.Name = "addDeleteApplicationsToolStripMenuItem"; + this.addDeleteApplicationsToolStripMenuItem.Size = new System.Drawing.Size(146, 20); + this.addDeleteApplicationsToolStripMenuItem.Text = "Add/Delete applications"; + // + // addApplicationToolStripMenuItem + // + this.addApplicationToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.applicationWithFiledirectoryToolStripMenuItem, this.addGroupnodeToolStripMenuItem, - this.extendedApplicationItemToolStripMenuItem} ); - this.addApplicationToolStripMenuItem.Name = "addApplicationToolStripMenuItem"; - this.addApplicationToolStripMenuItem.Size = new System.Drawing.Size( 170, 22 ); - this.addApplicationToolStripMenuItem.Text = "Add application"; - // - // applicationWithFiledirectoryToolStripMenuItem - // - this.applicationWithFiledirectoryToolStripMenuItem.Name = "applicationWithFiledirectoryToolStripMenuItem"; - this.applicationWithFiledirectoryToolStripMenuItem.Size = new System.Drawing.Size( 207, 22 ); - this.applicationWithFiledirectoryToolStripMenuItem.Text = "Applicationitem"; - this.applicationWithFiledirectoryToolStripMenuItem.Click += new System.EventHandler( this.applicationWithFiledirectoryToolStripMenuItem_Click ); - // - // addGroupnodeToolStripMenuItem - // - this.addGroupnodeToolStripMenuItem.Name = "addGroupnodeToolStripMenuItem"; - this.addGroupnodeToolStripMenuItem.Size = new System.Drawing.Size( 207, 22 ); - this.addGroupnodeToolStripMenuItem.Text = "Groupingtem"; - this.addGroupnodeToolStripMenuItem.Click += new System.EventHandler( this.addGroupnodeToolStripMenuItem_Click ); - // - // extendedApplicationItemToolStripMenuItem - // - this.extendedApplicationItemToolStripMenuItem.DropDownItems.AddRange( new System.Windows.Forms.ToolStripItem[] { + this.extendedApplicationItemToolStripMenuItem}); + this.addApplicationToolStripMenuItem.Name = "addApplicationToolStripMenuItem"; + this.addApplicationToolStripMenuItem.Size = new System.Drawing.Size(169, 22); + this.addApplicationToolStripMenuItem.Text = "Add application"; + // + // applicationWithFiledirectoryToolStripMenuItem + // + this.applicationWithFiledirectoryToolStripMenuItem.Name = "applicationWithFiledirectoryToolStripMenuItem"; + this.applicationWithFiledirectoryToolStripMenuItem.Size = new System.Drawing.Size(208, 22); + this.applicationWithFiledirectoryToolStripMenuItem.Text = "Applicationitem"; + this.applicationWithFiledirectoryToolStripMenuItem.Click += new System.EventHandler(this.applicationWithFiledirectoryToolStripMenuItem_Click); + // + // addGroupnodeToolStripMenuItem + // + this.addGroupnodeToolStripMenuItem.Name = "addGroupnodeToolStripMenuItem"; + this.addGroupnodeToolStripMenuItem.Size = new System.Drawing.Size(208, 22); + this.addGroupnodeToolStripMenuItem.Text = "Groupingtem"; + this.addGroupnodeToolStripMenuItem.Click += new System.EventHandler(this.addGroupnodeToolStripMenuItem_Click); + // + // extendedApplicationItemToolStripMenuItem + // + this.extendedApplicationItemToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.mameImportToolStripMenuItem, - this.importGamebaseItemToolStripMenuItem} ); - this.extendedApplicationItemToolStripMenuItem.Name = "extendedApplicationItemToolStripMenuItem"; - this.extendedApplicationItemToolStripMenuItem.Size = new System.Drawing.Size( 207, 22 ); - this.extendedApplicationItemToolStripMenuItem.Text = "Extended applicationItem"; - // - // mameImportToolStripMenuItem - // - this.mameImportToolStripMenuItem.Name = "mameImportToolStripMenuItem"; - this.mameImportToolStripMenuItem.Size = new System.Drawing.Size( 170, 22 ); - this.mameImportToolStripMenuItem.Text = "Import Mame"; - this.mameImportToolStripMenuItem.Click += new System.EventHandler( this.mameImportToolStripMenuItem_Click ); - // - // importGamebaseItemToolStripMenuItem - // - this.importGamebaseItemToolStripMenuItem.Name = "importGamebaseItemToolStripMenuItem"; - this.importGamebaseItemToolStripMenuItem.Size = new System.Drawing.Size( 170, 22 ); - this.importGamebaseItemToolStripMenuItem.Text = "Import Gamebase"; - this.importGamebaseItemToolStripMenuItem.Click += new System.EventHandler( this.importGamebaseItemToolStripMenuItem_Click ); - // - // deleteApplicationToolStripMenuItem - // - this.deleteApplicationToolStripMenuItem.Image = global::GUIPrograms.Properties.Resources.deleteButton_Image; - this.deleteApplicationToolStripMenuItem.Name = "deleteApplicationToolStripMenuItem"; - this.deleteApplicationToolStripMenuItem.Size = new System.Drawing.Size( 170, 22 ); - this.deleteApplicationToolStripMenuItem.Text = "Delete application"; - this.deleteApplicationToolStripMenuItem.Click += new System.EventHandler( this.deleteApplicationToolStripMenuItem_Click ); - // - // toolsStripMenuItem - // - this.toolsStripMenuItem.DropDownItems.AddRange( new System.Windows.Forms.ToolStripItem[] { - this.premadeConfigurationsToolStripMenuItem} ); - this.toolsStripMenuItem.Name = "toolsStripMenuItem"; - this.toolsStripMenuItem.Size = new System.Drawing.Size( 44, 20 ); - this.toolsStripMenuItem.Text = "Tools"; - // - // premadeConfigurationsToolStripMenuItem - // - this.premadeConfigurationsToolStripMenuItem.DropDownItems.AddRange( new System.Windows.Forms.ToolStripItem[] { - this.emulatorSetupToolStripMenuItem} ); - this.premadeConfigurationsToolStripMenuItem.Name = "premadeConfigurationsToolStripMenuItem"; - this.premadeConfigurationsToolStripMenuItem.Size = new System.Drawing.Size( 155, 22 ); - this.premadeConfigurationsToolStripMenuItem.Text = "Configurations"; - // - // emulatorSetupToolStripMenuItem - // - this.emulatorSetupToolStripMenuItem.Name = "emulatorSetupToolStripMenuItem"; - this.emulatorSetupToolStripMenuItem.Size = new System.Drawing.Size( 158, 22 ); - this.emulatorSetupToolStripMenuItem.Text = "Emulator Setup"; - // - // treeView - // - this.treeView.AllowDrop = true; - this.treeView.HideSelection = false; - this.treeView.HotTracking = true; - this.treeView.LabelEdit = true; - this.treeView.Location = new System.Drawing.Point( 0, 27 ); - this.treeView.Name = "treeView"; - treeNode1.Name = "applicationNode"; - treeNode1.Text = "Applications"; - this.treeView.Nodes.AddRange( new System.Windows.Forms.TreeNode[] { - treeNode1} ); - this.treeView.Size = new System.Drawing.Size( 224, 576 ); - this.treeView.TabIndex = 8; - this.treeView.DragDrop += new System.Windows.Forms.DragEventHandler( this.treeView_DragDrop ); - this.treeView.DragOver += new System.Windows.Forms.DragEventHandler( this.treeView_DragOver ); - this.treeView.AfterLabelEdit += new System.Windows.Forms.NodeLabelEditEventHandler( this.treeView_AfterLabelEdit ); - this.treeView.AfterSelect += new System.Windows.Forms.TreeViewEventHandler( this.treeView_AfterSelect ); - this.treeView.NodeMouseClick += new System.Windows.Forms.TreeNodeMouseClickEventHandler( this.treeView_NodeMouseClick ); - this.treeView.DragEnter += new System.Windows.Forms.DragEventHandler( this.treeView_DragEnter ); - this.treeView.BeforeLabelEdit += new System.Windows.Forms.NodeLabelEditEventHandler( this.treeView_BeforeLabelEdit ); - this.treeView.BeforeSelect += new System.Windows.Forms.TreeViewCancelEventHandler( this.treeView_BeforeSelect ); - this.treeView.ItemDrag += new System.Windows.Forms.ItemDragEventHandler( this.treeView_ItemDrag ); - // - // tabControl - // - this.tabControl.Controls.Add( this.detailsTabPage ); - this.tabControl.Controls.Add( this.directoryTabPage ); - this.tabControl.Controls.Add( this.viewTabPage ); - this.tabControl.Controls.Add( this.dbOptionsTabPage ); - this.tabControl.Location = new System.Drawing.Point( 230, 27 ); - this.tabControl.Name = "tabControl"; - this.tabControl.SelectedIndex = 0; - this.tabControl.ShowToolTips = true; - this.tabControl.Size = new System.Drawing.Size( 505, 577 ); - this.tabControl.TabIndex = 2; - this.tabControl.Click += new System.EventHandler( this.dbOptionsTabPage_Click ); - this.tabControl.SelectedIndexChanged += new System.EventHandler( this.tabControl_SelectedIndexChanged ); - // - // detailsTabPage - // - this.detailsTabPage.BackColor = System.Drawing.SystemColors.Control; - this.detailsTabPage.Location = new System.Drawing.Point( 4, 22 ); - this.detailsTabPage.Name = "detailsTabPage"; - this.detailsTabPage.Padding = new System.Windows.Forms.Padding( 3 ); - this.detailsTabPage.Size = new System.Drawing.Size( 497, 551 ); - this.detailsTabPage.TabIndex = 0; - this.detailsTabPage.Text = "Details"; - // - // directoryTabPage - // - this.directoryTabPage.BackColor = System.Drawing.SystemColors.Control; - this.directoryTabPage.Location = new System.Drawing.Point( 4, 22 ); - this.directoryTabPage.Name = "directoryTabPage"; - this.directoryTabPage.Padding = new System.Windows.Forms.Padding( 3 ); - this.directoryTabPage.Size = new System.Drawing.Size( 497, 551 ); - this.directoryTabPage.TabIndex = 1; - this.directoryTabPage.Text = "Files"; - // - // viewTabPage - // - this.viewTabPage.BackColor = System.Drawing.SystemColors.Control; - this.viewTabPage.Location = new System.Drawing.Point( 4, 22 ); - this.viewTabPage.Name = "viewTabPage"; - this.viewTabPage.Padding = new System.Windows.Forms.Padding( 3 ); - this.viewTabPage.Size = new System.Drawing.Size( 497, 551 ); - this.viewTabPage.TabIndex = 2; - this.viewTabPage.Text = "Views"; - // - // dbOptionsTabPage - // - this.dbOptionsTabPage.Controls.Add( this.generalFileItemOptionsGroupBox ); - this.dbOptionsTabPage.Location = new System.Drawing.Point( 4, 22 ); - this.dbOptionsTabPage.Name = "dbOptionsTabPage"; - this.dbOptionsTabPage.Padding = new System.Windows.Forms.Padding( 3 ); - this.dbOptionsTabPage.Size = new System.Drawing.Size( 497, 551 ); - this.dbOptionsTabPage.TabIndex = 3; - this.dbOptionsTabPage.Text = "DB options"; - this.dbOptionsTabPage.UseVisualStyleBackColor = true; - this.dbOptionsTabPage.Click += new System.EventHandler( this.dbOptionsTabPage_Click ); - // - // generalFileItemOptionsGroupBox - // - this.generalFileItemOptionsGroupBox.Controls.Add( this.removePlatformComboBox ); - this.generalFileItemOptionsGroupBox.Controls.Add( this.removePlatformLabel ); - this.generalFileItemOptionsGroupBox.Controls.Add( this.removePlatformButton ); - this.generalFileItemOptionsGroupBox.Controls.Add( this.addPlatformLabel ); - this.generalFileItemOptionsGroupBox.Controls.Add( this.addPlatformTextBox ); - this.generalFileItemOptionsGroupBox.Controls.Add( this.addPlatformButton ); - this.generalFileItemOptionsGroupBox.Controls.Add( this.removeManufacturerComboBox ); - this.generalFileItemOptionsGroupBox.Controls.Add( this.removeManufacturerLabel ); - this.generalFileItemOptionsGroupBox.Controls.Add( this.removeManufacturerButton ); - this.generalFileItemOptionsGroupBox.Controls.Add( this.addManufacturerLabel ); - this.generalFileItemOptionsGroupBox.Controls.Add( this.addManufacturerTextBox ); - this.generalFileItemOptionsGroupBox.Controls.Add( this.addManufacturerButton ); - this.generalFileItemOptionsGroupBox.Controls.Add( this.removeGenreComboBox ); - this.generalFileItemOptionsGroupBox.Controls.Add( this.removeGenreLabel ); - this.generalFileItemOptionsGroupBox.Controls.Add( this.removeGenreButton ); - this.generalFileItemOptionsGroupBox.Controls.Add( this.addGenreLabel ); - this.generalFileItemOptionsGroupBox.Controls.Add( this.addGenreTextBox ); - this.generalFileItemOptionsGroupBox.Controls.Add( this.addGenreButton ); - this.generalFileItemOptionsGroupBox.Location = new System.Drawing.Point( 3, 6 ); - this.generalFileItemOptionsGroupBox.Name = "generalFileItemOptionsGroupBox"; - this.generalFileItemOptionsGroupBox.Size = new System.Drawing.Size( 488, 496 ); - this.generalFileItemOptionsGroupBox.TabIndex = 79; - this.generalFileItemOptionsGroupBox.TabStop = false; - // - // removePlatformComboBox - // - this.removePlatformComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; - this.removePlatformComboBox.FormattingEnabled = true; - this.removePlatformComboBox.Location = new System.Drawing.Point( 99, 249 ); - this.removePlatformComboBox.Name = "removePlatformComboBox"; - this.removePlatformComboBox.Size = new System.Drawing.Size( 306, 21 ); - this.removePlatformComboBox.TabIndex = 92; - // - // removePlatformLabel - // - this.removePlatformLabel.AutoSize = true; - this.removePlatformLabel.Location = new System.Drawing.Point( 6, 252 ); - this.removePlatformLabel.Name = "removePlatformLabel"; - this.removePlatformLabel.Size = new System.Drawing.Size( 87, 13 ); - this.removePlatformLabel.TabIndex = 91; - this.removePlatformLabel.Text = "Remove platform"; - // - // removePlatformButton - // - this.removePlatformButton.Location = new System.Drawing.Point( 411, 249 ); - this.removePlatformButton.Name = "removePlatformButton"; - this.removePlatformButton.Size = new System.Drawing.Size( 62, 23 ); - this.removePlatformButton.TabIndex = 90; - this.removePlatformButton.Text = "Remove.."; - this.removePlatformButton.UseVisualStyleBackColor = true; - this.removePlatformButton.Click += new System.EventHandler( this.removePlatformButton_Click ); - // - // addPlatformLabel - // - this.addPlatformLabel.AutoSize = true; - this.addPlatformLabel.Location = new System.Drawing.Point( 6, 216 ); - this.addPlatformLabel.Name = "addPlatformLabel"; - this.addPlatformLabel.Size = new System.Drawing.Size( 72, 13 ); - this.addPlatformLabel.TabIndex = 87; - this.addPlatformLabel.Text = "Add platform.."; - // - // addPlatformTextBox - // - this.addPlatformTextBox.Location = new System.Drawing.Point( 99, 213 ); - this.addPlatformTextBox.Name = "addPlatformTextBox"; - this.addPlatformTextBox.Size = new System.Drawing.Size( 306, 20 ); - this.addPlatformTextBox.TabIndex = 88; - // - // addPlatformButton - // - this.addPlatformButton.Location = new System.Drawing.Point( 411, 213 ); - this.addPlatformButton.Name = "addPlatformButton"; - this.addPlatformButton.Size = new System.Drawing.Size( 62, 23 ); - this.addPlatformButton.TabIndex = 89; - this.addPlatformButton.Text = "Add.."; - this.addPlatformButton.UseVisualStyleBackColor = true; - this.addPlatformButton.Click += new System.EventHandler( this.addPlatformButton_Click ); - // - // removeManufacturerComboBox - // - this.removeManufacturerComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; - this.removeManufacturerComboBox.FormattingEnabled = true; - this.removeManufacturerComboBox.Location = new System.Drawing.Point( 99, 165 ); - this.removeManufacturerComboBox.Name = "removeManufacturerComboBox"; - this.removeManufacturerComboBox.Size = new System.Drawing.Size( 306, 21 ); - this.removeManufacturerComboBox.TabIndex = 86; - // - // removeManufacturerLabel - // - this.removeManufacturerLabel.Location = new System.Drawing.Point( 6, 157 ); - this.removeManufacturerLabel.Name = "removeManufacturerLabel"; - this.removeManufacturerLabel.Size = new System.Drawing.Size( 82, 29 ); - this.removeManufacturerLabel.TabIndex = 85; - this.removeManufacturerLabel.Text = "Remove Manufacturer"; - // - // removeManufacturerButton - // - this.removeManufacturerButton.Location = new System.Drawing.Point( 411, 165 ); - this.removeManufacturerButton.Name = "removeManufacturerButton"; - this.removeManufacturerButton.Size = new System.Drawing.Size( 62, 23 ); - this.removeManufacturerButton.TabIndex = 84; - this.removeManufacturerButton.Text = "Remove.."; - this.removeManufacturerButton.UseVisualStyleBackColor = true; - this.removeManufacturerButton.Click += new System.EventHandler( this.removeManufacturerButton_Click ); - // - // addManufacturerLabel - // - this.addManufacturerLabel.Location = new System.Drawing.Point( 6, 121 ); - this.addManufacturerLabel.Name = "addManufacturerLabel"; - this.addManufacturerLabel.Size = new System.Drawing.Size( 82, 36 ); - this.addManufacturerLabel.TabIndex = 81; - this.addManufacturerLabel.Text = "Add Manufacturer.."; - // - // addManufacturerTextBox - // - this.addManufacturerTextBox.Location = new System.Drawing.Point( 99, 129 ); - this.addManufacturerTextBox.Name = "addManufacturerTextBox"; - this.addManufacturerTextBox.Size = new System.Drawing.Size( 306, 20 ); - this.addManufacturerTextBox.TabIndex = 82; - // - // addManufacturerButton - // - this.addManufacturerButton.Location = new System.Drawing.Point( 411, 129 ); - this.addManufacturerButton.Name = "addManufacturerButton"; - this.addManufacturerButton.Size = new System.Drawing.Size( 62, 23 ); - this.addManufacturerButton.TabIndex = 83; - this.addManufacturerButton.Text = "Add.."; - this.addManufacturerButton.UseVisualStyleBackColor = true; - this.addManufacturerButton.Click += new System.EventHandler( this.addManufacturerButton_Click ); - // - // removeGenreComboBox - // - this.removeGenreComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; - this.removeGenreComboBox.FormattingEnabled = true; - this.removeGenreComboBox.Location = new System.Drawing.Point( 99, 70 ); - this.removeGenreComboBox.Name = "removeGenreComboBox"; - this.removeGenreComboBox.Size = new System.Drawing.Size( 306, 21 ); - this.removeGenreComboBox.TabIndex = 80; - // - // removeGenreLabel - // - this.removeGenreLabel.AutoSize = true; - this.removeGenreLabel.Location = new System.Drawing.Point( 6, 73 ); - this.removeGenreLabel.Name = "removeGenreLabel"; - this.removeGenreLabel.Size = new System.Drawing.Size( 77, 13 ); - this.removeGenreLabel.TabIndex = 79; - this.removeGenreLabel.Text = "Remove genre"; - // - // removeGenreButton - // - this.removeGenreButton.Location = new System.Drawing.Point( 411, 70 ); - this.removeGenreButton.Name = "removeGenreButton"; - this.removeGenreButton.Size = new System.Drawing.Size( 62, 23 ); - this.removeGenreButton.TabIndex = 78; - this.removeGenreButton.Text = "Remove.."; - this.removeGenreButton.UseVisualStyleBackColor = true; - this.removeGenreButton.Click += new System.EventHandler( this.removeGenreButton_Click ); - // - // addGenreLabel - // - this.addGenreLabel.AutoSize = true; - this.addGenreLabel.Location = new System.Drawing.Point( 6, 37 ); - this.addGenreLabel.Name = "addGenreLabel"; - this.addGenreLabel.Size = new System.Drawing.Size( 62, 13 ); - this.addGenreLabel.TabIndex = 74; - this.addGenreLabel.Text = "Add genre.."; - // - // addGenreTextBox - // - this.addGenreTextBox.Location = new System.Drawing.Point( 99, 34 ); - this.addGenreTextBox.Name = "addGenreTextBox"; - this.addGenreTextBox.Size = new System.Drawing.Size( 306, 20 ); - this.addGenreTextBox.TabIndex = 75; - // - // addGenreButton - // - this.addGenreButton.Location = new System.Drawing.Point( 411, 34 ); - this.addGenreButton.Name = "addGenreButton"; - this.addGenreButton.Size = new System.Drawing.Size( 62, 23 ); - this.addGenreButton.TabIndex = 76; - this.addGenreButton.Text = "Add.."; - this.addGenreButton.UseVisualStyleBackColor = true; - this.addGenreButton.Click += new System.EventHandler( this.addGenreButton_Click ); - // - // SetupForm - // - this.AutoScaleDimensions = new System.Drawing.SizeF( 6F, 13F ); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size( 747, 609 ); - this.Controls.Add( this.tabControl ); - this.Controls.Add( this.treeView ); - this.Controls.Add( this.menuStrip ); - this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow; - 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.Load += new System.EventHandler( this.SetupForm_Load ); - this.menuStrip.ResumeLayout( false ); - this.menuStrip.PerformLayout(); - this.tabControl.ResumeLayout( false ); - this.dbOptionsTabPage.ResumeLayout( false ); - this.generalFileItemOptionsGroupBox.ResumeLayout( false ); - this.generalFileItemOptionsGroupBox.PerformLayout(); - this.ResumeLayout( false ); - this.PerformLayout(); + this.importGamebaseItemToolStripMenuItem}); + this.extendedApplicationItemToolStripMenuItem.Name = "extendedApplicationItemToolStripMenuItem"; + this.extendedApplicationItemToolStripMenuItem.Size = new System.Drawing.Size(208, 22); + this.extendedApplicationItemToolStripMenuItem.Text = "Extended applicationItem"; + // + // mameImportToolStripMenuItem + // + this.mameImportToolStripMenuItem.Name = "mameImportToolStripMenuItem"; + this.mameImportToolStripMenuItem.Size = new System.Drawing.Size(168, 22); + this.mameImportToolStripMenuItem.Text = "Import Mame"; + this.mameImportToolStripMenuItem.Click += new System.EventHandler(this.mameImportToolStripMenuItem_Click); + // + // importGamebaseItemToolStripMenuItem + // + this.importGamebaseItemToolStripMenuItem.Name = "importGamebaseItemToolStripMenuItem"; + this.importGamebaseItemToolStripMenuItem.Size = new System.Drawing.Size(168, 22); + this.importGamebaseItemToolStripMenuItem.Text = "Import Gamebase"; + this.importGamebaseItemToolStripMenuItem.Click += new System.EventHandler(this.importGamebaseItemToolStripMenuItem_Click); + // + // deleteApplicationToolStripMenuItem + // + this.deleteApplicationToolStripMenuItem.Image = global::GUIPrograms.Properties.Resources.deleteButton_Image; + this.deleteApplicationToolStripMenuItem.Name = "deleteApplicationToolStripMenuItem"; + this.deleteApplicationToolStripMenuItem.Size = new System.Drawing.Size(169, 22); + this.deleteApplicationToolStripMenuItem.Text = "Delete application"; + this.deleteApplicationToolStripMenuItem.Click += new System.EventHandler(this.deleteApplicationToolStripMenuItem_Click); + // + // toolsStripMenuItem + // + this.toolsStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { + this.premadeConfigurationsToolStripMenuItem}); + this.toolsStripMenuItem.Name = "toolsStripMenuItem"; + this.toolsStripMenuItem.Size = new System.Drawing.Size(48, 20); + this.toolsStripMenuItem.Text = "Tools"; + // + // premadeConfigurationsToolStripMenuItem + // + this.premadeConfigurationsToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { + this.emulatorSetupToolStripMenuItem}); + this.premadeConfigurationsToolStripMenuItem.Name = "premadeConfigurationsToolStripMenuItem"; + this.premadeConfigurationsToolStripMenuItem.Size = new System.Drawing.Size(153, 22); + this.premadeConfigurationsToolStripMenuItem.Text = "Configurations"; + // + // emulatorSetupToolStripMenuItem + // + this.emulatorSetupToolStripMenuItem.Name = "emulatorSetupToolStripMenuItem"; + this.emulatorSetupToolStripMenuItem.Size = new System.Drawing.Size(155, 22); + this.emulatorSetupToolStripMenuItem.Text = "Emulator Setup"; + // + // treeView + // + this.treeView.AllowDrop = true; + this.treeView.HideSelection = false; + this.treeView.HotTracking = true; + this.treeView.LabelEdit = true; + this.treeView.Location = new System.Drawing.Point(0, 27); + this.treeView.Name = "treeView"; + treeNode4.Name = "applicationNode"; + treeNode4.Text = "Applications"; + this.treeView.Nodes.AddRange(new System.Windows.Forms.TreeNode[] { + treeNode4}); + this.treeView.Size = new System.Drawing.Size(224, 576); + this.treeView.TabIndex = 8; + this.treeView.DragDrop += new System.Windows.Forms.DragEventHandler(this.treeView_DragDrop); + this.treeView.DragOver += new System.Windows.Forms.DragEventHandler(this.treeView_DragOver); + this.treeView.AfterLabelEdit += new System.Windows.Forms.NodeLabelEditEventHandler(this.treeView_AfterLabelEdit); + this.treeView.AfterSelect += new System.Windows.Forms.TreeViewEventHandler(this.treeView_AfterSelect); + this.treeView.NodeMouseClick += new System.Windows.Forms.TreeNodeMouseClickEventHandler(this.treeView_NodeMouseClick); + this.treeView.DragEnter += new System.Windows.Forms.DragEventHandler(this.treeView_DragEnter); + this.treeView.BeforeLabelEdit += new System.Windows.Forms.NodeLabelEditEventHandler(this.treeView_BeforeLabelEdit); + this.treeView.BeforeSelect += new System.Windows.Forms.TreeViewCancelEventHandler(this.treeView_BeforeSelect); + this.treeView.ItemDrag += new System.Windows.Forms.ItemDragEventHandler(this.treeView_ItemDrag); + // + // tabControl + // + this.tabControl.Controls.Add(this.detailsTabPage); + this.tabControl.Controls.Add(this.directoryTabPage); + this.tabControl.Controls.Add(this.viewTabPage); + this.tabControl.Controls.Add(this.dbOptionsTabPage); + this.tabControl.Location = new System.Drawing.Point(230, 27); + this.tabControl.Name = "tabControl"; + this.tabControl.SelectedIndex = 0; + this.tabControl.ShowToolTips = true; + this.tabControl.Size = new System.Drawing.Size(505, 577); + this.tabControl.TabIndex = 2; + this.tabControl.Click += new System.EventHandler(this.dbOptionsTabPage_Click); + this.tabControl.Deselecting += new System.Windows.Forms.TabControlCancelEventHandler(this.tabControl_Deselecting); + + // + // detailsTabPage + // + this.detailsTabPage.BackColor = System.Drawing.SystemColors.Control; + this.detailsTabPage.Location = new System.Drawing.Point(4, 22); + this.detailsTabPage.Name = "detailsTabPage"; + this.detailsTabPage.Padding = new System.Windows.Forms.Padding(3); + this.detailsTabPage.Size = new System.Drawing.Size(497, 551); + this.detailsTabPage.TabIndex = 0; + this.detailsTabPage.Text = "Details"; + // + // directoryTabPage + // + this.directoryTabPage.BackColor = System.Drawing.SystemColors.Control; + this.directoryTabPage.Location = new System.Drawing.Point(4, 22); + this.directoryTabPage.Name = "directoryTabPage"; + this.directoryTabPage.Padding = new System.Windows.Forms.Padding(3); + this.directoryTabPage.Size = new System.Drawing.Size(497, 551); + this.directoryTabPage.TabIndex = 1; + this.directoryTabPage.Text = "Files"; + // + // viewTabPage + // + this.viewTabPage.BackColor = System.Drawing.SystemColors.Control; + this.viewTabPage.Location = new System.Drawing.Point(4, 22); + this.viewTabPage.Name = "viewTabPage"; + this.viewTabPage.Padding = new System.Windows.Forms.Padding(3); + this.viewTabPage.Size = new System.Drawing.Size(497, 551); + this.viewTabPage.TabIndex = 2; + this.viewTabPage.Text = "Views"; + // + // dbOptionsTabPage + // + this.dbOptionsTabPage.Controls.Add(this.generalFileItemOptionsGroupBox); + this.dbOptionsTabPage.Location = new System.Drawing.Point(4, 22); + this.dbOptionsTabPage.Name = "dbOptionsTabPage"; + this.dbOptionsTabPage.Padding = new System.Windows.Forms.Padding(3); + this.dbOptionsTabPage.Size = new System.Drawing.Size(497, 551); + this.dbOptionsTabPage.TabIndex = 3; + this.dbOptionsTabPage.Text = "DB options"; + this.dbOptionsTabPage.UseVisualStyleBackColor = true; + this.dbOptionsTabPage.Click += new System.EventHandler(this.dbOptionsTabPage_Click); + // + // generalFileItemOptionsGroupBox + // + this.generalFileItemOptionsGroupBox.Controls.Add(this.removePlatformComboBox); + this.generalFileItemOptionsGroupBox.Controls.Add(this.removePlatformLabel); + this.generalFileItemOptionsGroupBox.Controls.Add(this.removePlatformButton); + this.generalFileItemOptionsGroupBox.Controls.Add(this.addPlatformLabel); + this.generalFileItemOptionsGroupBox.Controls.Add(this.addPlatformTextBox); + this.generalFileItemOptionsGroupBox.Controls.Add(this.addPlatformButton); + this.generalFileItemOptionsGroupBox.Controls.Add(this.removeManufacturerComboBox); + this.generalFileItemOptionsGroupBox.Controls.Add(this.removeManufacturerLabel); + this.generalFileItemOptionsGroupBox.Controls.Add(this.removeManufacturerButton); + this.generalFileItemOptionsGroupBox.Controls.Add(this.addManufacturerLabel); + this.generalFileItemOptionsGroupBox.Controls.Add(this.addManufacturerTextBox); + this.generalFileItemOptionsGroupBox.Controls.Add(this.addManufacturerButton); + this.generalFileItemOptionsGroupBox.Controls.Add(this.removeGenreComboBox); + this.generalFileItemOptionsGroupBox.Controls.Add(this.removeGenreLabel); + this.generalFileItemOptionsGroupBox.Controls.Add(this.removeGenreButton); + this.generalFileItemOptionsGroupBox.Controls.Add(this.addGenreLabel); + this.generalFileItemOptionsGroupBox.Controls.Add(this.addGenreTextBox); + this.generalFileItemOptionsGroupBox.Controls.Add(this.addGenreButton); + this.generalFileItemOptionsGroupBox.Location = new System.Drawing.Point(3, 6); + this.generalFileItemOptionsGroupBox.Name = "generalFileItemOptionsGroupBox"; + this.generalFileItemOptionsGroupBox.Size = new System.Drawing.Size(488, 496); + this.generalFileItemOptionsGroupBox.TabIndex = 79; + this.generalFileItemOptionsGroupBox.TabStop = false; + // + // removePlatformComboBox + // + this.removePlatformComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + this.removePlatformComboBox.FormattingEnabled = true; + this.removePlatformComboBox.Location = new System.Drawing.Point(99, 249); + this.removePlatformComboBox.Name = "removePlatformComboBox"; + this.removePlatformComboBox.Size = new System.Drawing.Size(306, 21); + this.removePlatformComboBox.TabIndex = 92; + // + // removePlatformLabel + // + this.removePlatformLabel.AutoSize = true; + this.removePlatformLabel.Location = new System.Drawing.Point(6, 252); + this.removePlatformLabel.Name = "removePlatformLabel"; + this.removePlatformLabel.Size = new System.Drawing.Size(87, 13); + this.removePlatformLabel.TabIndex = 91; + this.removePlatformLabel.Text = "Remove platform"; + // + // removePlatformButton + // + this.removePlatformButton.Location = new System.Drawing.Point(411, 249); + this.removePlatformButton.Name = "removePlatformButton"; + this.removePlatformButton.Size = new System.Drawing.Size(62, 23); + this.removePlatformButton.TabIndex = 90; + this.removePlatformButton.Text = "Remove.."; + this.removePlatformButton.UseVisualStyleBackColor = true; + this.removePlatformButton.Click += new System.EventHandler(this.removePlatformButton_Click); + // + // addPlatformLabel + // + this.addPlatformLabel.AutoSize = true; + this.addPlatformLabel.Location = new System.Drawing.Point(6, 216); + this.addPlatformLabel.Name = "addPlatformLabel"; + this.addPlatformLabel.Size = new System.Drawing.Size(72, 13); + this.addPlatformLabel.TabIndex = 87; + this.addPlatformLabel.Text = "Add platform.."; + // + // addPlatformTextBox + // + this.addPlatformTextBox.Location = new System.Drawing.Point(99, 213); + this.addPlatformTextBox.Name = "addPlatformTextBox"; + this.addPlatformTextBox.Size = new System.Drawing.Size(306, 20); + this.addPlatformTextBox.TabIndex = 88; + // + // addPlatformButton + // + this.addPlatformButton.Location = new System.Drawing.Point(411, 213); + this.addPlatformButton.Name = "addPlatformButton"; + this.addPlatformButton.Size = new System.Drawing.Size(62, 23); + this.addPlatformButton.TabIndex = 89; + this.addPlatformButton.Text = "Add.."; + this.addPlatformButton.UseVisualStyleBackColor = true; + this.addPlatformButton.Click += new System.EventHandler(this.addPlatformButton_Click); + // + // removeManufacturerComboBox + // + this.removeManufacturerComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + this.removeManufacturerComboBox.FormattingEnabled = true; + this.removeManufacturerComboBox.Location = new System.Drawing.Point(99, 165); + this.removeManufacturerComboBox.Name = "removeManufacturerComboBox"; + this.removeManufacturerComboBox.Size = new System.Drawing.Size(306, 21); + this.removeManufacturerComboBox.TabIndex = 86; + // + // removeManufacturerLabel + // + this.removeManufacturerLabel.Location = new System.Drawing.Point(6, 157); + this.removeManufacturerLabel.Name = "removeManufacturerLabel"; + this.removeManufacturerLabel.Size = new System.Drawing.Size(82, 29); + this.removeManufacturerLabel.TabIndex = 85; + this.removeManufacturerLabel.Text = "Remove Manufacturer"; + // + // removeManufacturerButton + // + this.removeManufacturerButton.Location = new System.Drawing.Point(411, 165); + this.removeManufacturerButton.Name = "removeManufacturerButton"; + this.removeManufacturerButton.Size = new System.Drawing.Size(62, 23); + this.removeManufacturerButton.TabIndex = 84; + this.removeManufacturerButton.Text = "Remove.."; + this.removeManufacturerButton.UseVisualStyleBackColor = true; + this.removeManufacturerButton.Click += new System.EventHandler(this.removeManufacturerButton_Click); + // + // addManufacturerLabel + // + this.addManufacturerLabel.Location = new System.Drawing.Point(6, 121); + this.addManufacturerLabel.Name = "addManufacturerLabel"; + this.addManufacturerLabel.Size = new System.Drawing.Size(82, 36); + this.addManufacturerLabel.TabIndex = 81; + this.addManufacturerLabel.Text = "Add Manufacturer.."; + // + // addManufacturerTextBox + // + this.addManufacturerTextBox.Location = new System.Drawing.Point(99, 129); + this.addManufacturerTextBox.Name = "addManufacturerTextBox"; + this.addManufacturerTextBox.Size = new System.Drawing.Size(306, 20); + this.addManufacturerTextBox.TabIndex = 82; + // + // addManufacturerButton + // + this.addManufacturerButton.Location = new System.Drawing.Point(411, 129); + this.addManufacturerButton.Name = "addManufacturerButton"; + this.addManufacturerButton.Size = new System.Drawing.Size(62, 23); + this.addManufacturerButton.TabIndex = 83; + this.addManufacturerButton.Text = "Add.."; + this.addManufacturerButton.UseVisualStyleBackColor = true; + this.addManufacturerButton.Click += new System.EventHandler(this.addManufacturerButton_Click); + // + // removeGenreComboBox + // + this.removeGenreComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + this.removeGenreComboBox.FormattingEnabled = true; + this.removeGenreComboBox.Location = new System.Drawing.Point(99, 70); + this.removeGenreComboBox.Name = "removeGenreComboBox"; + this.removeGenreComboBox.Size = new System.Drawing.Size(306, 21); + this.removeGenreComboBox.TabIndex = 80; + // + // removeGenreLabel + // + this.removeGenreLabel.AutoSize = true; + this.removeGenreLabel.Location = new System.Drawing.Point(6, 73); + this.removeGenreLabel.Name = "removeGenreLabel"; + this.removeGenreLabel.Size = new System.Drawing.Size(77, 13); + this.removeGenreLabel.TabIndex = 79; + this.removeGenreLabel.Text = "Remove genre"; + // + // removeGenreButton + // + this.removeGenreButton.Location = new System.Drawing.Point(411, 70); + this.removeGenreButton.Name = "removeGenreButton"; + this.removeGenreButton.Size = new System.Drawing.Size(62, 23); + this.removeGenreButton.TabIndex = 78; + this.removeGenreButton.Text = "Remove.."; + this.removeGenreButton.UseVisualStyleBackColor = true; + this.removeGenreButton.Click += new System.EventHandler(this.removeGenreButton_Click); + // + // addGenreLabel + // + this.addGenreLabel.AutoSize = true; + this.addGenreLabel.Location = new System.Drawing.Point(6, 37); + this.addGenreLabel.Name = "addGenreLabel"; + this.addGenreLabel.Size = new System.Drawing.Size(62, 13); + this.addGenreLabel.TabIndex = 74; + this.addGenreLabel.Text = "Add genre.."; + // + // addGenreTextBox + // + this.addGenreTextBox.Location = new System.Drawing.Point(99, 34); + this.addGenreTextBox.Name = "addGenreTextBox"; + this.addGenreTextBox.Size = new System.Drawing.Size(306, 20); + this.addGenreTextBox.TabIndex = 75; + // + // addGenreButton + // + this.addGenreButton.Location = new System.Drawing.Point(411, 34); + this.addGenreButton.Name = "addGenreButton"; + this.addGenreButton.Size = new System.Drawing.Size(62, 23); + this.addGenreButton.TabIndex = 76; + this.addGenreButton.Text = "Add.."; + this.addGenreButton.UseVisualStyleBackColor = true; + this.addGenreButton.Click += new System.EventHandler(this.addGenreButton_Click); + // + // SetupForm + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(747, 609); + this.Controls.Add(this.tabControl); + this.Controls.Add(this.treeView); + this.Controls.Add(this.menuStrip); + this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow; + 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.Load += new System.EventHandler(this.SetupForm_Load); + this.menuStrip.ResumeLayout(false); + this.menuStrip.PerformLayout(); + this.tabControl.ResumeLayout(false); + this.dbOptionsTabPage.ResumeLayout(false); + this.generalFileItemOptionsGroupBox.ResumeLayout(false); + this.generalFileItemOptionsGroupBox.PerformLayout(); + this.ResumeLayout(false); + this.PerformLayout(); + } #endregion Modified: trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/SetupForm.cs =================================================================== --- trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/SetupForm.cs 2007-08-19 23:23:20 UTC (rev 847) +++ trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/SetupForm.cs 2007-08-20 08:53:11 UTC (rev 848) @@ -43,6 +43,7 @@ private bool profilesIsLoaded = false; private const string ROOTNODENAME = "Applications"; private const int POSITIONHOLDER = 10; + private int previousSelectedTabIndex = 0; #endregion @@ -470,7 +471,7 @@ return false; } - if (pageCurrentSettings.EntriesOK(currentApplication)) + if (pageCurrentSettings.ValidateEntries(currentApplication)) { if (appSettingsFileEditView.EntriesOK()) { @@ -696,8 +697,6 @@ private void SetupForm_Load(object sender, EventArgs e) { - - AttachFilesView(); AttachProgramsView(); UpdateTree(); @@ -893,24 +892,7 @@ treeView.SelectedNode = treeView.GetNodeAt(targetPoint); } - private void tabControl_SelectedIndexChanged(object sender, EventArgs e) - { - // save current applicationItem if switching to file-tab - if (tabControl.SelectedIndex == 1) - { - appSettingsFileEditView.SetupFileView(); - if (!SaveAppItem()) - { - tabControl.SelectedIndex = 0; - } - } - // save current applicationItem if switching from filesview to file-tab - if (tabControl.SelectedIndex == 0) - { - SaveAppItem(); - } - } private void SetupForm_FormClosed(object sender, FormClosedEventArgs e) { @@ -918,7 +900,7 @@ pageCurrentSettings = GetCurrentSettingsPage(); if (pageCurrentSettings != null) { - if (pageCurrentSettings.EntriesOK(currentApplication)) + if (pageCurrentSettings.ValidateEntries(currentApplication)) { pageCurrentSettings.SaveSettings(currentApplication); if (currentApplication != null) @@ -1161,6 +1143,18 @@ UpdateComboBoxes(); } - + + + private void tabControl_Deselecting(object sender, TabControlCancelEventArgs e) + { + // validate when leaving + if (tabControl.SelectedIndex == 0) + { + if (!SaveAppItem()) + { + e.Cancel = true; + } + } + } } } \ No newline at end of file Modified: trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Imports/DirectoryImport.cs =================================================================== --- trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Imports/DirectoryImport.cs 2007-08-19 23:23:20 UTC (rev 847) +++ trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Imports/DirectoryImport.cs 2007-08-20 08:53:11 UTC (rev 848) @@ -30,7 +30,6 @@ OnReadNewFile -= new MyEventHandler(applicationItem.ReadNewFile); } - private void ImportFileItem(FileInfo fileInfo) { Modified: trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Imports/MameImport.cs =================================================================== --- trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Imports/MameImport.cs 2007-08-19 23:23:20 UTC (rev 847) +++ trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Imports/MameImport.cs 2007-08-20 08:53:11 UTC (rev 848) @@ -72,7 +72,6 @@ public MameImport(ApplicationItem applicationItem) { - currentApplication = applicationItem; OnReadNewFile += new MyEventHandler(currentApplication.ReadNewFile); } @@ -324,8 +323,6 @@ int LexiconId = DatabaseHandler.DBHandlerInstance.LexiconDataExists("tblManufacturer", "manufacturer", match.Groups["manufacturer"].Value); curFile.ManufacturerId = LexiconId; - - } mameHistoryNode = null; Modified: trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Items/ApplicationItemDirectoryCache.cs =================================================================== --- trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Items/ApplicationItemDirectoryCache.cs 2007-08-19 23:23:20 UTC (rev 847) +++ trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Items/ApplicationItemDirectoryCache.cs 2007-08-20 08:53:11 UTC (rev 848) @@ -68,7 +68,6 @@ public override void Refresh(bool mpGuiMode) { - base.Refresh(mpGuiMode); Import(mpGuiMode); FixFileLinks(); LoadFiles(); Modified: trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Items/ApplicationItemGameBase.cs =================================================================== --- trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Items/ApplicationItemGameBase.cs 2007-08-19 23:23:20 UTC (rev 847) +++ trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Items/ApplicationItemGameBase.cs 2007-08-20 08:53:11 UTC (rev 848) @@ -77,7 +77,6 @@ public override void Refresh(bool bGUIMode) { - base.Refresh(bGUIMode); DeleteFiles(); Import(bGUIMode); FixFileLinks(); Modified: trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Items/ApplicationItemMame.cs =================================================================== --- trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Items/ApplicationItemMame.cs 2007-08-19 23:23:20 UTC (rev 847) +++ trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Items/ApplicationItemMame.cs 2007-08-20 08:53:11 UTC (rev 848) @@ -88,9 +88,9 @@ } + public override void Refresh(bool bGUIMode) { - base.Refresh(bGUIMode); DeleteFiles(); Import(bGUIMode); FixFileLinks(); Modified: trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Items/FileItem.cs =================================================================== --- trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Items/FileItem.cs 2007-08-19 23:23:20 UTC (rev 847) +++ trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Items/FileItem.cs 2007-08-20 08:53:11 UTC (rev 848) @@ -78,36 +78,30 @@ public FileItem() { - SetDefaultValues(); + fileID = -1; + appID = -1; + title = ""; + filename = ""; + imagefile = ""; + genreId = 1; + genreStyleId = 1; + country = ""; + manufacturer = ""; + manufacturerId = 1; + year = 1900; + rating = 5; + overview = ""; + platform = ""; + platformId = 1; + //isFolder = false; + lastT... [truncated message content] |