From: <nor...@us...> - 2007-07-15 16:20:55
|
Revision: 692 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=692&view=rev Author: northern_sky Date: 2007-07-15 09:20:48 -0700 (Sun, 15 Jul 2007) Log Message: ----------- fixed view bug,some minor infoupdate,some redundant dbstuff rem.. Modified Paths: -------------- trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/ApplicationItems/ApplicationItem.cs trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/ApplicationItems/ApplicationItemDirectoryCache.cs trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/ApplicationItems/ApplicationItemGameBase.cs trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/ApplicationItems/ApplicationItemList.cs trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/ApplicationItems/ApplicationItemMame.cs trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Database/DatabaseHandler.cs 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/FileItems/FileItem.cs trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/FileItems/FileItemList.cs trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/GUIPrograms.cs trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/skin/BlueTwo/myProgramsAltFileInfo.xml Modified: trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/ApplicationItems/ApplicationItem.cs =================================================================== --- trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/ApplicationItems/ApplicationItem.cs 2007-07-14 10:39:11 UTC (rev 691) +++ trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/ApplicationItems/ApplicationItem.cs 2007-07-15 16:20:48 UTC (rev 692) @@ -64,7 +64,6 @@ string postLaunch; bool enabled; - bool enableGUIRefresh; int appPosition; string currentView = ""; @@ -76,8 +75,11 @@ bool importMamePlaychoice10 = false; bool importMameMahjong = false; + bool refreshGUIAllowed = false; + + // more variables, maybe need some renaming or anything else Process proc; ApplicationType sourceType; @@ -193,15 +195,13 @@ get { return enabled; } set { enabled = value; } } - public bool EnableGUIRefresh + + public virtual bool RefreshGUIAllowed { - get { return enableGUIRefresh; } - set { enableGUIRefresh = value; } + get { return refreshGUIAllowed; } + set { refreshGUIAllowed = value; } } - public bool GUIRefreshPossible - { - get { return RefreshButtonVisible(); } - } + public int Position { get { return appPosition; } @@ -362,7 +362,6 @@ validExtensions = ""; appPosition = 0; importValidImagesOnly = false; - enableGUIRefresh = false; systemDefault = ""; waitForExit = true; filesAreLoaded = false; @@ -727,11 +726,6 @@ } - public virtual bool RefreshButtonVisible() - { - return false; // otherwise, override this in child class - } - public virtual bool FileEditorAllowed() { return true; // otherwise, override this in child class @@ -824,8 +818,7 @@ importValidImagesOnly, iposition, enabled, - enableGUIRefresh, - GUIRefreshPossible, + refreshGUIAllowed, systemDefault, waitForExit, preLaunch, @@ -851,8 +844,7 @@ '"+ ProgramUtils.BooleanToStr(importValidImagesOnly)+@"', '"+ Position+@"', '"+ ProgramUtils.BooleanToStr(Enabled)+@"', - '"+ ProgramUtils.BooleanToStr(EnableGUIRefresh) +@"', - '" + ProgramUtils.BooleanToStr(GUIRefreshPossible)+@"', + '" + ProgramUtils.BooleanToStr(RefreshGUIAllowed)+@"', '"+ ProgramUtils.Encode(SystemDefault)+@"', '"+ ProgramUtils.BooleanToStr(WaitForExit) +@"', '"+ ProgramUtils.Encode(PreLaunch)+@"', @@ -898,8 +890,7 @@ iposition = " + Position + @", enabled = '" + ProgramUtils.BooleanToStr(Enabled) + @"', fatherNodeId = '" + FatherID + @"', - enableGUIRefresh = '" + ProgramUtils.BooleanToStr(EnableGUIRefresh) + @"', - GUIRefreshPossible = '" + ProgramUtils.BooleanToStr(GUIRefreshPossible) +@"', + refreshGUIAllowed = '" + ProgramUtils.BooleanToStr(RefreshGUIAllowed) +@"', systemDefault = '" + ProgramUtils.Encode(SystemDefault) + @"', waitForExit = '" + ProgramUtils.BooleanToStr(WaitForExit) + @"', preLaunch = '" + ProgramUtils.Encode(PreLaunch) + @"', @@ -1070,7 +1061,6 @@ this.ValidExtensions = sourceApp.ValidExtensions; this.ImportValidImagesOnly = sourceApp.ImportValidImagesOnly; this.Position = sourceApp.Position; - this.EnableGUIRefresh = sourceApp.EnableGUIRefresh; this.WaitForExit = sourceApp.WaitForExit; this.PreLaunch = sourceApp.PreLaunch; this.PostLaunch = sourceApp.PostLaunch; Modified: trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/ApplicationItems/ApplicationItemDirectoryCache.cs =================================================================== --- trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/ApplicationItems/ApplicationItemDirectoryCache.cs 2007-07-14 10:39:11 UTC (rev 691) +++ trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/ApplicationItems/ApplicationItemDirectoryCache.cs 2007-07-15 16:20:48 UTC (rev 692) @@ -201,35 +201,38 @@ { FileInfo fileInDir = null; - DirectoryInfo directoryInfo = new DirectoryInfo(dirPath); - FileSystemInfo[] allUnderLyingFiles = directoryInfo.GetFileSystemInfos(); - - for (int i = 0; i < allUnderLyingFiles.Length; i++) + if (Directory.Exists(dirPath)) { - if (allUnderLyingFiles[i] is FileInfo) + DirectoryInfo directoryInfo = new DirectoryInfo(dirPath); + FileSystemInfo[] allUnderLyingFiles = directoryInfo.GetFileSystemInfos(); + + for (int i = 0; i < allUnderLyingFiles.Length; i++) { - Boolean FileExists = false; + if (allUnderLyingFiles[i] is FileInfo) + { + Boolean FileExists = false; - fileInDir = (FileInfo)allUnderLyingFiles[i]; + fileInDir = (FileInfo)allUnderLyingFiles[i]; - foreach (FileItem DBfile in this.Files) - { - if (DBfile.Filename == fileInDir.FullName) + foreach (FileItem DBfile in this.Files) { - FileExists = true; - break;//ugly + if (DBfile.Filename == fileInDir.FullName) + { + FileExists = true; + break;//ugly + } } - } - if (!FileExists) + if (!FileExists) + { + ImportFileItem(fileInDir); + UpdateProgressDialog(fileInDir, mpGuiMode); + } + }//if dir found,, recurse + else if (allUnderLyingFiles[i] is DirectoryInfo) { - ImportFileItem(fileInDir); - UpdateProgressDialog(fileInDir, mpGuiMode); + DirectoryInfo directory = (DirectoryInfo)allUnderLyingFiles[i]; + ImportFile(directory.FullName, mpGuiMode); } - }//if dir found,, recurse - else if (allUnderLyingFiles[i] is DirectoryInfo) - { - DirectoryInfo directory = (DirectoryInfo)allUnderLyingFiles[i]; - ImportFile(directory.FullName, mpGuiMode); } } } @@ -291,12 +294,6 @@ return this.FileDirectory; } - override public bool RefreshButtonVisible() - { - return true; - } - - override public bool FileBrowseAllowed() { return true; Modified: trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/ApplicationItems/ApplicationItemGameBase.cs =================================================================== --- trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/ApplicationItems/ApplicationItemGameBase.cs 2007-07-14 10:39:11 UTC (rev 691) +++ trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/ApplicationItems/ApplicationItemGameBase.cs 2007-07-15 16:20:48 UTC (rev 692) @@ -117,11 +117,6 @@ } - override public bool RefreshButtonVisible() - { - return true; - } - override public bool ProfileLoadingAllowed() { return true; Modified: trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/ApplicationItems/ApplicationItemList.cs =================================================================== --- trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/ApplicationItems/ApplicationItemList.cs 2007-07-14 10:39:11 UTC (rev 691) +++ trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/ApplicationItems/ApplicationItemList.cs 2007-07-15 16:20:48 UTC (rev 692) @@ -75,7 +75,7 @@ newApp.ValidExtensions = ProgramUtils.Get(results, recordIndex, "validextensions"); newApp.ImportValidImagesOnly = ProgramUtils.GetBool(results, recordIndex, "importvalidimagesonly"); newApp.Position = ProgramUtils.GetIntDef(results, recordIndex, "iposition", 0); - newApp.EnableGUIRefresh = ProgramUtils.GetBool(results, recordIndex, "enableGUIRefresh"); + newApp.RefreshGUIAllowed = ProgramUtils.GetBool(results, recordIndex, "refreshGUIAllowed"); newApp.SystemDefault = ProgramUtils.Get(results, recordIndex, "systemdefault"); newApp.WaitForExit = ProgramUtils.GetBool(results, recordIndex, "waitforexit"); newApp.PreLaunch = ProgramUtils.Get(results, recordIndex, "preLaunch"); Modified: trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/ApplicationItems/ApplicationItemMame.cs =================================================================== --- trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/ApplicationItems/ApplicationItemMame.cs 2007-07-14 10:39:11 UTC (rev 691) +++ trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/ApplicationItems/ApplicationItemMame.cs 2007-07-15 16:20:48 UTC (rev 692) @@ -65,11 +65,6 @@ } - override public bool RefreshButtonVisible() - { - return true; - } - override public bool ProfileLoadingAllowed() { return true; Modified: trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Database/DatabaseHandler.cs =================================================================== --- trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Database/DatabaseHandler.cs 2007-07-14 10:39:11 UTC (rev 691) +++ trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Database/DatabaseHandler.cs 2007-07-15 16:20:48 UTC (rev 692) @@ -128,15 +128,14 @@ enabled TEXT, importValidImagesOnly TEXT, iposition INTEGER, - enableGUIRefresh TEXT, - GUIRefreshPossible TEXT, + refreshGUIAllowed TEXT, systemdefault TEXT, waitForExit TEXT, preLaunch TEXT, postLaunch TEXT )"); - DatabaseUtility.AddTable(sqlDB, "tblFileItem", "CREATE TABLE tblFileItem (fileid INTEGER PRIMARY KEY, applicationId INTEGER, title TEXT, filename TEXT, imagefile TEXT, mainGenreId INTEGER, subGenreId INTEGER, country TEXT, manufacturerId INTEGER, year INTEGER, rating INTEGER, overview TEXT, platformId INTEGER, import_flag INTEGER, lastTimeLaunched TEXT, launchcount INTEGER, isfolder TEXT, uppertitle TEXT, tagdata TEXT, categorydata TEXT, gameInfoUrl TEXT)"); + DatabaseUtility.AddTable(sqlDB, "tblFileItem", "CREATE TABLE tblFileItem (fileid INTEGER PRIMARY KEY, applicationId INTEGER, title TEXT, filename TEXT, imagefile TEXT, mainGenreId INTEGER, subGenreId INTEGER, country TEXT, manufacturerId INTEGER, year INTEGER, rating INTEGER, overview TEXT, platformId INTEGER, import_flag INTEGER, lastTimeLaunched TEXT, launchcount INTEGER, isfolder TEXT, uppertitle TEXT,categorydata TEXT, gameInfoUrl TEXT)"); DatabaseUtility.AddTable(sqlDB, "tblFilterItem", "CREATE TABLE tblFilterItem (applicationId INTEGER, grouperAppID INTEGER, fileID INTEGER, filename TEXT, tag INTEGER)"); DatabaseUtility.AddTable(sqlDB, "tblSetting", "CREATE TABLE tblSetting (settingid INTEGER PRIMARY KEY, key TEXT, value TEXT)"); Modified: trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppFilesView.cs =================================================================== --- trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppFilesView.cs 2007-07-14 10:39:11 UTC (rev 691) +++ trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppFilesView.cs 2007-07-15 16:20:48 UTC (rev 692) @@ -165,7 +165,6 @@ { newButton.Enabled = currentApplication.FileAddAllowed(); addFavouriteButton.Enabled = currentApplication.FilesCanBeFavourites() && (fileListView.SelectedItems.Count > 0); - updateDatabaseButton.Visible = currentApplication.RefreshButtonVisible(); } } Modified: trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppSettingsDirCache.cs =================================================================== --- trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppSettingsDirCache.cs 2007-07-14 10:39:11 UTC (rev 691) +++ trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppSettingsDirCache.cs 2007-07-15 16:20:48 UTC (rev 692) @@ -58,7 +58,7 @@ quoteCheckBox.Checked = curApp.UseQuotes; waitExitCheckBox.Checked = (curApp.WaitForExit); applicationImageTextBox.Text = curApp.Imagefile; - allowRefreshCheckBox.Checked = curApp.EnableGUIRefresh; + allowRefreshCheckBox.Checked = curApp.RefreshGUIAllowed; return true; } @@ -76,7 +76,7 @@ curApp.WaitForExit = waitExitCheckBox.Checked; curApp.SourceType = ApplicationType.DIRCACHE; curApp.Imagefile = applicationImageTextBox.Text; - curApp.EnableGUIRefresh = (allowRefreshCheckBox.Checked); + curApp.RefreshGUIAllowed = (allowRefreshCheckBox.Checked); } @@ -120,7 +120,6 @@ //untiil we really do something with this option in appdircache.. allowRefreshCheckBox.Checked = false; - 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-07-14 10:39:11 UTC (rev 691) +++ trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppSettingsGamebase.cs 2007-07-15 16:20:48 UTC (rev 692) @@ -72,7 +72,7 @@ SetWindowStyle(curApp.WindowStyle); this.applicationImageTextBox.Text = curApp.Imagefile; - this.allowRefreshCheckBox.Checked = curApp.EnableGUIRefresh; + this.allowRefreshCheckBox.Checked = curApp.RefreshGUIAllowed; return true; } @@ -92,7 +92,7 @@ curApp.SourceType = ApplicationType.GAMEBASE; curApp.Imagefile = this.applicationImageTextBox.Text; - curApp.EnableGUIRefresh = this.allowRefreshCheckBox.Checked; + curApp.RefreshGUIAllowed = this.allowRefreshCheckBox.Checked; } public override bool EntriesOK(ApplicationItem curApp) Modified: trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppSettingsMame.cs =================================================================== --- trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppSettingsMame.cs 2007-07-14 10:39:11 UTC (rev 691) +++ trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppSettingsMame.cs 2007-07-15 16:20:48 UTC (rev 692) @@ -72,7 +72,7 @@ curApp.Imagefile = this.applicationImageTextBox.Text; - curApp.EnableGUIRefresh = true; + curApp.RefreshGUIAllowed = true; } @@ -109,7 +109,6 @@ this.enabledCheckbox.Checked = true; this.prePostButton.Visible = false; - this.allowRefreshCheckBox.Visible = false; } private void informationLabel_Click(object sender, EventArgs e) Modified: trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/FileItems/FileItem.cs =================================================================== --- trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/FileItems/FileItem.cs 2007-07-14 10:39:11 UTC (rev 691) +++ trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/FileItems/FileItem.cs 2007-07-15 16:20:48 UTC (rev 692) @@ -69,8 +69,6 @@ DateTime lastTimeLaunched; int launchCount; - - string tagData; string categoryData; bool isFolder; string gameInfoURL; @@ -114,7 +112,6 @@ isFolder = false; lastTimeLaunched = DateTime.MinValue; launchCount = 0; - tagData = ""; categoryData = ""; gameInfoURL = string.Empty; } @@ -375,18 +372,6 @@ } } - - public string TagData - { - get - { - return tagData; - } - set - { - tagData = value; - } - } public string CategoryData { get @@ -481,8 +466,8 @@ //((GUIPropertyManager.SetProperty("#director", Director); GUIPropertyManager.SetProperty("#maingenre", MainGenre); GUIPropertyManager.SetProperty("#subgenre", SubGenre); - //GUIPropertyManager.SetProperty("#cast", Cast); - // GUIPropertyManager.SetProperty("#dvdlabel", DVDLabel); + GUIPropertyManager.SetProperty("#manufacturer", Manufacturer); + GUIPropertyManager.SetProperty("#fname", Filename); // GUIPropertyManager.SetProperty("#imdbnumber", IMDBNumber); // GUIPropertyManager.SetProperty("#file", File); GUIPropertyManager.SetProperty("#plot", Overview); @@ -528,7 +513,6 @@ launchcount, isfolder, uppertitle, - tagdata, categorydata, gameInfoUrl ) @@ -552,7 +536,6 @@ '" + LaunchCount.ToString() + @"', '" + ProgramUtils.BooleanToStr(IsFolder) + @"', '" + ProgramUtils.Encode(Title.ToUpper()) + @"', - '" + ProgramUtils.Encode(TagData) + @"', '" + ProgramUtils.Encode(CategoryData)) + @"', '" + ProgramUtils.Encode(GameInfoURL) + @"' )"; @@ -585,7 +568,7 @@ try { string strSQL = String.Format( - "UPDATE tblFileItem SET title = '{1}', filename = '{2}', imagefile = '{3}', mainGenreId = '{4}', subGenreId = '{5}', country = '{6}', manufacturerId = '{7}', year = '{8}', rating = '{9}', overview = '{10}', platformId = '{11}', uppertitle = '{12}', tagdata = '{13}', categorydata = '{14}', gameInfoURL = '" + ProgramUtils.Encode(GameInfoURL) + "' where fileid = {0}", FileID, ProgramUtils.Encode(Title), ProgramUtils.Encode(Filename), ProgramUtils.Encode(Imagefile), MainGenreId, SubGenreId, ProgramUtils.Encode(Country), ManufacturerId, strYear, Rating, ProgramUtils.Encode(Overview), PlatformId, ProgramUtils.Encode(Title.ToUpper()), ProgramUtils.Encode(TagData), ProgramUtils.Encode(CategoryData)); + "UPDATE tblFileItem SET title = '{1}', filename = '{2}', imagefile = '{3}', mainGenreId = '{4}', subGenreId = '{5}', country = '{6}', manufacturerId = '{7}', year = '{8}', rating = '{9}', overview = '{10}', platformId = '{11}', uppertitle = '{12}', categorydata = '{13}', gameInfoURL = '" + ProgramUtils.Encode(GameInfoURL) + "' where fileid = {0}", FileID, ProgramUtils.Encode(Title), ProgramUtils.Encode(Filename), ProgramUtils.Encode(Imagefile), MainGenreId, SubGenreId, ProgramUtils.Encode(Country), ManufacturerId, strYear, Rating, ProgramUtils.Encode(Overview), PlatformId, ProgramUtils.Encode(Title.ToUpper()),ProgramUtils.Encode(CategoryData)); sqlDB.Execute(strSQL); } catch (SQLiteException ex) Modified: trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/FileItems/FileItemList.cs =================================================================== --- trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/FileItems/FileItemList.cs 2007-07-14 10:39:11 UTC (rev 691) +++ trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/FileItems/FileItemList.cs 2007-07-15 16:20:48 UTC (rev 692) @@ -75,7 +75,7 @@ newFile.Title = ProgramUtils.Get(results, iRecord, "title"); newFile.Filename = ProgramUtils.Get(results, iRecord, "filename"); newFile.Imagefile = ProgramUtils.Get(results, iRecord, "imagefile"); - newFile.MainGenre = ProgramUtils.Get(results, iRecord, "mainGenreId"); + newFile.MainGenre = ProgramUtils.Get(results, iRecord, "mainGenre"); newFile.MainGenreId = ProgramUtils.GetIntDef(results, iRecord, "mainGenreId", 1); newFile.SubGenre = ProgramUtils.Get(results, iRecord, "subGenre"); newFile.SubGenreId = ProgramUtils.GetIntDef(results, iRecord, "subGenreId", 1); @@ -90,7 +90,6 @@ newFile.LastTimeLaunched = ProgramUtils.GetDateDef(results, iRecord, "lastTimeLaunched", DateTime.MinValue); newFile.LaunchCount = ProgramUtils.GetIntDef(results, iRecord, "launchcount", 0); newFile.IsFolder = ProgramUtils.GetBool(results, iRecord, "isfolder"); - newFile.TagData = ProgramUtils.Get(results, iRecord, "tagdata"); newFile.CategoryData = ProgramUtils.Get(results, iRecord, "categorydata"); newFile.GameInfoURL= ProgramUtils.Get(results, iRecord, "gameInfoUrl"); string fieldtype2 = ProgramUtils.Get(results, iRecord, "fieldtype2"); Modified: trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/GUIPrograms.cs =================================================================== --- trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/GUIPrograms.cs 2007-07-14 10:39:11 UTC (rev 691) +++ trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/GUIPrograms.cs 2007-07-15 16:20:48 UTC (rev 692) @@ -555,17 +555,6 @@ } } - bool RefreshButtonVisible() - { - if (lastApp == null) - { - return false; - } - else - { - return (lastApp.RefreshButtonVisible() && lastApp.GUIRefreshPossible && lastApp.EnableGUIRefresh); - } - } bool ThereAreAppsToDisplay() { @@ -800,7 +789,17 @@ string sortBy = string.Empty; GUIPropertyManager.SetProperty("#view", DatabaseHandler.ViewHandler.LocalizedCurrentView); - btnRefresh.IsVisible = RefreshButtonVisible(); + + if (lastApp == null) + { + btnRefresh.IsVisible = false; + } + else + { + btnRefresh.IsVisible = lastApp.RefreshGUIAllowed; + } + + facadeView.IsVisible = true; GUIControl.FocusControl(GetID, facadeView.GetID); @@ -1516,7 +1515,8 @@ int nNewWindow = (int)Window.WINDOW_FILES; StartWindow = nNewWindow; CurrentLayout = Layout.List; - DatabaseHandler.ViewHandler.CurrentView = null; + CurrentView = GUILocalizeStrings.Get(100000 + GetID);//my files + DatabaseHandler.ViewHandler.CurrentView = GUILocalizeStrings.Get(100000 + GetID);//my files if (nNewWindow != GetID) { GUIWindowManager.ReplaceWindow(nNewWindow); Modified: trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/skin/BlueTwo/myProgramsAltFileInfo.xml =================================================================== --- trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/skin/BlueTwo/myProgramsAltFileInfo.xml 2007-07-14 10:39:11 UTC (rev 691) +++ trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/skin/BlueTwo/myProgramsAltFileInfo.xml 2007-07-15 16:20:48 UTC (rev 692) @@ -34,13 +34,13 @@ <animation effect="fade" time="200">WindowClose</animation> </control> <control> - <description>MPAA Rating</description> + <description>Filename</description> <type>fadelabel</type> <id>1</id> <posX>200</posX> <posY>70</posY> - <width>400</width> - <label>(#mpaarating)</label> + <width>1000</width> + <label>(#filename)</label> <font>font12</font> <textcolor>FFFFFFFF</textcolor> <animation effect="fade" time="200">WindowOpen</animation> @@ -192,24 +192,24 @@ <animation effect="fade" time="200">WindowClose</animation> </control> <control> - <description>Runtime txt</description> + <description>Manufacturer txt</description> <type>label</type> <id>1</id> <posX>400</posX> <posY>295</posY> - <label>299</label> + <label>Manufacturer</label> <font>font13</font> <textcolor>FFB2D4F5</textcolor> <animation effect="fade" time="200">WindowOpen</animation> <animation effect="fade" time="200">WindowClose</animation> </control> <control> - <description>Runtime value</description> + <description>Manufacturer value</description> <type>label</type> <id>1</id> <posX>400</posX> <posY>310</posY> - <label>#runtime</label> + <label>#manufacturer</label> <font>font13</font> <textcolor>FFFFFFFF</textcolor> <animation effect="fade" time="200">WindowOpen</animation> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |