From: <ze...@us...> - 2007-06-15 22:21:25
|
Revision: 555 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=555&view=rev Author: zebons Date: 2007-06-15 15:21:16 -0700 (Fri, 15 Jun 2007) Log Message: ----------- Corrected bug for hierarchy structure Modified Paths: -------------- trunk/plugins/MyFilms/MesFilms.cs trunk/plugins/MyFilms/MesFilmsDetail.cs trunk/plugins/MyFilms/MesFilmsSetup.cs Modified: trunk/plugins/MyFilms/MesFilms.cs =================================================================== --- trunk/plugins/MyFilms/MesFilms.cs 2007-06-15 00:25:15 UTC (rev 554) +++ trunk/plugins/MyFilms/MesFilms.cs 2007-06-15 22:21:16 UTC (rev 555) @@ -149,6 +149,7 @@ string CurrentSortMethod = null; decimal w_rating = 0; int l_index = 0; + string l_title = ""; string FileImage = "9999"; AntMovieCatalog mydivx =new AntMovieCatalog(); private string StrPluginName = "Films"; @@ -560,7 +561,7 @@ // New Window for detailed selected item information { //l_index = facadeView.SelectedListItemIndex; - save_config_values(); + //save_config_values(); mydivx.Clear(); GUIWindowManager.ActivateWindow(ID_MesFilmsDetail); } @@ -784,7 +785,14 @@ } if (iSelItem >= 0) //-1 = ignore, >=0 = itemID to locate (test every item in case item is from within a folder) { - if ((int)(r["Number"]) == iSelItem) l_index = facadeView.Count - 1; //test if this item is one to select + if (!(l_title.Length > 0)) + { + if (((int)(r["Number"]) == iSelItem)) l_index = facadeView.Count - 1; //test if this item is one to select + } + else + { + if (((int)(r["Number"]) == iSelItem) && ((string)(r[StrTitle1]) == l_title)) l_index = facadeView.Count - 1; //test if this item is one to select + } } sPrevTitle = sTitle; fin: ; @@ -795,6 +803,8 @@ GUIControl.SelectItemControl(GetID, (int)Controls.CTRL_List, (int)l_index); GUIPropertyManager.SetProperty("#nbobjects", facadeView.Count.ToString() + " " + GUILocalizeStrings.Get(127)); + if (facadeView.Count == 1 && item.IsFolder) + wselectedlabel = item.Label; return !(facadeView.Count == 1 && item.IsFolder); //ret false if single folder found } @@ -1204,6 +1214,7 @@ xmlwriter.SetValue(CurrentConfig, "StrSortSens", StrSortSens.ToString()); xmlwriter.SetValue(CurrentConfig, "Selection", StrTxtSelect); xmlwriter.SetValue(CurrentConfig, "IndexItem", (facadeView.SelectedListItemIndex > -1) ? ((boolselect) ? facadeView.SelectedListItemIndex.ToString() : facadeView.SelectedListItem.ItemId.ToString()) : "-1"); //may need to check if there is no item selected and so save -1 + xmlwriter.SetValue(CurrentConfig, "TitleItem", (facadeView.SelectedListItemIndex > -1) ? ((boolselect) ? facadeView.SelectedListItemIndex.ToString() : facadeView.SelectedListItem.Label.ToString()) : ""); //may need to check if there is no item selected and so save "" xmlwriter.SetValueAsBool(CurrentConfig, "boolselect", boolselect); xmlwriter.SetValueAsBool(CurrentConfig, "boolreturn", boolreturn); xmlwriter.SetValue(CurrentConfig, "WSelectedLabel", wselectedlabel); @@ -1286,6 +1297,7 @@ StrSortSens = xmlreader.GetValueAsString(CurrentConfig, "StrSortSens", ""); StrTxtSelect = xmlreader.GetValueAsString(CurrentConfig, "Selection", ""); l_index = xmlreader.GetValueAsInt(CurrentConfig, "IndexItem", -1); + l_title = xmlreader.GetValueAsString(CurrentConfig, "TitleItem", ""); boolselect = xmlreader.GetValueAsBool(CurrentConfig, "boolselect", false); boolreturn = xmlreader.GetValueAsBool(CurrentConfig, "boolreturn", false); WStrSort = xmlreader.GetValueAsString(CurrentConfig, "WStrSort", ""); Modified: trunk/plugins/MyFilms/MesFilmsDetail.cs =================================================================== --- trunk/plugins/MyFilms/MesFilmsDetail.cs 2007-06-15 00:25:15 UTC (rev 554) +++ trunk/plugins/MyFilms/MesFilmsDetail.cs 2007-06-15 22:21:16 UTC (rev 555) @@ -103,6 +103,7 @@ bool SearchFile = false; string CurrentConfig = null; string wzone = null; + string StrTIndex = null; int StrIndex = 0; int StrMax = 0; public SQLiteClient m_db; @@ -198,7 +199,8 @@ StrSort = xmlreader.GetValueAsString(CurrentConfig, "StrSort", ""); CurrentSortMethod = xmlreader.GetValueAsString(CurrentConfig, "CurrentSortMethod", ""); StrSortSens = xmlreader.GetValueAsString(CurrentConfig, "StrSortSens", ""); - StrIndex = (int)xmlreader.GetValueAsInt(CurrentConfig, "IndexItem", 0); + StrIndex = xmlreader.GetValueAsInt(CurrentConfig, "IndexItem", 0); + StrTIndex = xmlreader.GetValueAsString(CurrentConfig, "TitleItem", ""); Strlabel1 = xmlreader.GetValueAsString(CurrentConfig, "AntLabel1", ""); Strlabel2 = xmlreader.GetValueAsString(CurrentConfig, "AntLabel2", ""); Stritem1 = xmlreader.GetValueAsString(CurrentConfig, "AntItem1", ""); @@ -556,12 +558,25 @@ StrIndex = -1; foreach (DataRow enr in r) { - if ((int)(enr["Number"]) == ItemId) + if ((StrTIndex != "") && (StrTIndex != null)) { - StrIndex = cnt; - break; + string wtitle = enr[StrTitle1].ToString(); + if (((int)(enr["Number"]) == ItemId) && (StrTIndex.Substring(StrTIndex.LastIndexOf(TitleDelim) + 1) == StrTIndex.Substring(StrTIndex.LastIndexOf(TitleDelim) + 1))) + { + StrIndex = cnt; + break; + } + cnt++; } - cnt++; + else + { + if ((int)(enr["Number"]) == ItemId) + { + StrIndex = cnt; + break; + } + cnt++; + } } } } @@ -776,6 +791,7 @@ using (MediaPortal.Profile.Settings xmlwriter = new MediaPortal.Profile.Settings(Config.GetFile(Config.Dir.Config, "MyFilms.xml"))) { xmlwriter.SetValue(CurrentConfig, "IndexItem", r[StrIndex]["Number"]); + xmlwriter.SetValue(CurrentConfig, "TitleItem", r[StrIndex][StrTitle1]); if (ID != -1) xmlwriter.SetValue(CurrentConfig, "LastID", ID); } } Modified: trunk/plugins/MyFilms/MesFilmsSetup.cs =================================================================== --- trunk/plugins/MyFilms/MesFilmsSetup.cs 2007-06-15 00:25:15 UTC (rev 554) +++ trunk/plugins/MyFilms/MesFilmsSetup.cs 2007-06-15 22:21:16 UTC (rev 555) @@ -319,6 +319,8 @@ StrDfltSelect = "(" + StrDfltSelect + "(" + AntFilterItem2.Text + " " + wAntFilterSign + " #" + Convert.ToDateTime(AntFilterText2.Text) + "# or " + AntFilterItem2.Text + " is null)) AND "; else StrDfltSelect = "(" + StrDfltSelect + "(" + AntFilterItem2.Text + " " + wAntFilterSign + " '" + AntFilterText2.Text + "' or " + AntFilterItem2.Text + " is null)) AND "; + if (View_Dflt_Item.Text.Length == 0) + View_Dflt_Item.Text = "(none)"; Verify_Config(); //string currentLanguage = String.Empty; //using (MediaPortal.Profile.Settings xmlreader = new MediaPortal.Profile.Settings(Config.GetFile(Config.Dir.Config, "MediaPortal.xml"))) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ze...@us...> - 2007-06-17 10:51:28
|
Revision: 563 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=563&view=rev Author: zebons Date: 2007-06-17 03:51:25 -0700 (Sun, 17 Jun 2007) Log Message: ----------- Add an setup option for always display the Configuration Menu when entering in the plugin Modified Paths: -------------- trunk/plugins/MyFilms/MesFilms.cs trunk/plugins/MyFilms/MesFilmsSetup.Designer.cs trunk/plugins/MyFilms/MesFilmsSetup.cs Modified: trunk/plugins/MyFilms/MesFilms.cs =================================================================== --- trunk/plugins/MyFilms/MesFilms.cs 2007-06-17 10:43:10 UTC (rev 562) +++ trunk/plugins/MyFilms/MesFilms.cs 2007-06-17 10:51:25 UTC (rev 563) @@ -325,9 +325,13 @@ GUIWindowManager.ShowPreviousWindow(); } bool boolchoice = true; - CurrentConfig = xmlreader.GetValueAsString("MyFilms", "Default_Config", ""); if (CurrentConfig == "") CurrentConfig = xmlreader.GetValueAsString("MyFilms", "Current_Config", ""); + + if (xmlreader.GetValueAsBool("MyFilms", "Menu_Config", false)) + CurrentConfig = xmlreader.GetValueAsString("MyFilms", "Default_Config", ""); + else + CurrentConfig = ""; if (CurrentConfig == "") { boolchoice = false; @@ -1204,6 +1208,7 @@ { using (MediaPortal.Profile.Settings xmlwriter = new MediaPortal.Profile.Settings(Config.GetFile(Config.Dir.Config, "MyFilms.xml"))) { + xmlwriter.SetValue("MyFilms", "Current_Config", CurrentConfig); xmlwriter.SetValue(CurrentConfig, "StrSelect", StrSelect.ToString()); xmlwriter.SetValue(CurrentConfig, "StrActors", StrActors.ToString()); xmlwriter.SetValue(CurrentConfig, "StrTitleSelect", StrTitleSelect.ToString()); @@ -1237,10 +1242,10 @@ //----------------------------------------------------------------------------------------------- // Load Config Parameters in MyFilms.xml file (section CurrentConfig) //----------------------------------------------------------------------------------------------- - using (MediaPortal.Profile.Settings xmlwriter = new MediaPortal.Profile.Settings(Config.GetFile(Config.Dir.Config, "MyFilms.xml"))) - { - xmlwriter.SetValue("MyFilms", "Current_Config", CurrentConfig); - } + //using (MediaPortal.Profile.Settings xmlwriter = new MediaPortal.Profile.Settings(Config.GetFile(Config.Dir.Config, "MyFilms.xml"))) + //{ + // xmlwriter.SetValue("MyFilms", "Current_Config", CurrentConfig); + //} using (MediaPortal.Profile.Settings xmlreader = new MediaPortal.Profile.Settings(Config.GetFile(Config.Dir.Config, "MyFilms.xml"))) { StrStorage = xmlreader.GetValueAsString(CurrentConfig, "AntStorage", ""); @@ -1307,6 +1312,7 @@ StrViewDfltItem = xmlreader.GetValueAsString(CurrentConfig, "ViewDfltItem", ""); StrViewDfltText = xmlreader.GetValueAsString(CurrentConfig, "ViewDfltText", ""); TitleDelim = xmlreader.GetValueAsString(CurrentConfig, "TitleDelim", "."); + } if ((boolreturn) && (wselectedlabel == "")) { Modified: trunk/plugins/MyFilms/MesFilmsSetup.Designer.cs =================================================================== --- trunk/plugins/MyFilms/MesFilmsSetup.Designer.cs 2007-06-17 10:43:10 UTC (rev 562) +++ trunk/plugins/MyFilms/MesFilmsSetup.Designer.cs 2007-06-17 10:51:25 UTC (rev 563) @@ -183,6 +183,7 @@ this.ButDelet = new System.Windows.Forms.Button(); this.ButSave = new System.Windows.Forms.Button(); this.Config_Dflt = new System.Windows.Forms.CheckBox(); + this.Config_Menu = new System.Windows.Forms.CheckBox(); this.General.SuspendLayout(); this.tabPage1.SuspendLayout(); this.groupBox11.SuspendLayout(); @@ -1049,11 +1050,22 @@ this.Config_Dflt.Text = "Default Configuration"; this.Config_Dflt.UseVisualStyleBackColor = true; // + // Config_Menu + // + this.Config_Menu.AutoSize = true; + this.Config_Menu.Location = new System.Drawing.Point(351, 43); + this.Config_Menu.Name = "Config_Menu"; + this.Config_Menu.Size = new System.Drawing.Size(297, 17); + this.Config_Menu.TabIndex = 74; + this.Config_Menu.Text = "Display Always Configuration\'s Menu (if no Default Config)"; + this.Config_Menu.UseVisualStyleBackColor = true; + // // MesFilmsSetup // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(780, 476); + this.Controls.Add(this.Config_Menu); this.Controls.Add(this.ButSave); this.Controls.Add(this.Config_Dflt); this.Controls.Add(this.ButDelet); @@ -1188,6 +1200,7 @@ private CheckBox SortTitle; private CheckBox radioButton2; private CheckBox radioButton1; + private CheckBox Config_Menu; } } \ No newline at end of file Modified: trunk/plugins/MyFilms/MesFilmsSetup.cs =================================================================== --- trunk/plugins/MyFilms/MesFilmsSetup.cs 2007-06-17 10:43:10 UTC (rev 562) +++ trunk/plugins/MyFilms/MesFilmsSetup.cs 2007-06-17 10:51:25 UTC (rev 563) @@ -38,6 +38,7 @@ ToolTip1.AutoPopDelay = 15000; ToolTip1.SetToolTip(this.Config_Name, "Enter here a config Name." + "\n" + "You can define many configuration on many (or on the same) database with differents selections." + "\n" + "Some configurations can be protected by a password usefull for children protection " + "\n" + "if you don't want they watch some movies..."); ToolTip1.SetToolTip(this.Config_Dflt, "If you select this, that configuration will be loaded each time you enter in the plugin." + "\n" + "If no default config defined and many configs, the configuration to load will be asked the first time." + "\n" + "After, the plugin load the last configuration used if no default defined"); + ToolTip1.SetToolTip(this.Config_Menu, "If you select this, the Configuration's Menu will be displayed each time you enter in the plugin. You cann't select that option if a Default Configuration is defined" + "\n" + "If no default config defined and many configs, the configuration to load will be asked the first time." + "\n" + "After, the plugin load the last configuration used if no default defined"); ToolTip1.SetToolTip(this.Dwp, "Enter a password here if you want to protect that configuration." + "\n" + "Usefull for children protection if you don't want they watch some movies." + "\n" + "You have to repeat your password"); ToolTip1.SetToolTip(this.textBox1, "Name of the plugin displayed in MP." + "\n" + "By default Films, but you can choose a better name"); ToolTip1.SetToolTip(this.MesFilmsCat, "Enter here the complete Filename + Path to your AMC XML Database." + "\n" + "You can use the search button to help you"); @@ -59,6 +60,8 @@ ToolTip1.SetToolTip(this.ButSave, "Save the Configuration. Controls are made at this time." + "\n" + "For DVDP database type, the temporary is built here" + "\n" + "and after each time the DVDP XML update date will be newer than the generated file one"); ToolTip1.SetToolTip(this.ButDelet, "Delete all informations for that configuration." + "\n" + "If that config was the default one, No default config'll be define."); ToolTip1.SetToolTip(this.ButQuit, "No comments..."); + ToolTip1.SetToolTip(this.groupBox9, "With those options, you can use specifics Tags DVDP's Fields" + "\n" + "and store either with Genre field either in another field" + "\n" + "of the generated DB."); + ToolTip1.SetToolTip(this.groupBox10, "With that option, you can store either the DVDP's Sorted field" + "\n" + "either the Original Title of the generated DB."); textBox1.Text = MyFilms_xmlreader.GetValueAsString("MyFilms", "PluginName", "Films"); MesFilms_nb_config = MyFilms_xmlreader.GetValueAsInt("MyFilms", "NbConfig", -1); for (int i = 0; i < (int)MesFilms_nb_config; i++) @@ -66,7 +69,14 @@ Config_Name.Items.Add(MyFilms_xmlreader.GetValueAsString("MyFilms", "ConfigName" + i, "")); MyFilms_xmlwriter.RemoveEntry("MyFilms", "ConfigName" + i); } - AntMovieCatalog ds = new AntMovieCatalog(); + if (MesFilms_nb_config > 0) + { + if (MyFilms_xmlreader.GetValueAsBool("MyFilms", "Menu_Config", false)) + Config_Menu.Checked = true; + else + Config_Menu.Checked = false; + } + AntMovieCatalog ds = new AntMovieCatalog(); AntStorage.Items.Add("(none)"); AntTitle2.Items.Add("(none)"); AntSort.Items.Add("(none)"); @@ -141,8 +151,14 @@ Config_Name.Focus(); return; } - if (textBox1.Text.Length == 0) + if ((Config_Dflt.Checked) && (Config_Menu.Checked)) { + System.Windows.Forms.MessageBox.Show("Option 'Always Display Configuration Menu' not possible with a Default Configuration defined !", "Configuration", MessageBoxButtons.OK, MessageBoxIcon.Stop); + Config_Menu.Focus(); + return; + } + if (textBox1.Text.Length == 0) + { System.Windows.Forms.MessageBox.Show("The Plugin's Name is Mandatory !", "Configuration", MessageBoxButtons.OK, MessageBoxIcon.Stop); textBox1.Focus(); return; @@ -344,6 +360,10 @@ if (MyFilms_xmlreader.GetValueAsString("MyFilms", "Default_Config", "") == Config_Name.Text) MyFilms_xmlwriter.RemoveEntry("MyFilms", "Default_Config"); } + if (Config_Menu.Checked) + { + MyFilms_xmlwriter.SetValueAsBool("MyFilms", "Menu_Config", Config_Menu.Checked); + } MyFilms_xmlwriter.SetValue(Config_Name.Text.ToString(), "CatalogType", CatalogType.SelectedIndex.ToString()); MyFilms_xmlwriter.SetValue(Config_Name.Text.ToString(), "AntCatalog", MesFilmsCat.Text.ToString()); MyFilms_xmlwriter.SetValue(Config_Name.Text.ToString(), "AntPicture", MesFilmsImg.Text.ToString()); @@ -498,12 +518,13 @@ ItemSearchFileName.Text = MyFilms_xmlreader.GetValueAsString(Config_Name.Text.ToString(), "ItemSearchFileName", ""); View_Dflt_Item.Items.Remove(View_Dflt_Item.Text); View_Dflt_Item.Items.Add(View_Dflt_Item.Text); - View_Dflt_Item.Text = MyFilms_xmlreader.GetValueAsString(Config_Name.Text.ToString(), "ViewDfltItem", ""); + View_Dflt_Item.Text = MyFilms_xmlreader.GetValueAsString(Config_Name.Text.ToString(), "ViewDfltItem", "(none)"); View_Dflt_Text.Text = MyFilms_xmlreader.GetValueAsString(Config_Name.Text.ToString(), "ViewDfltText", ""); if((Config_Name.Text) == MyFilms_xmlreader.GetValueAsString("MyFilms", "Default_Config", "")) Config_Dflt.Checked = true; else Config_Dflt.Checked = false; + if (!(AntViewItem1.Text == "Country") & !(AntViewItem1.Text == "Category") & !(AntViewItem1.Text == "Year") & !(AntViewItem1.Text == "(none)")) View_Dflt_Item.Items.Add(AntViewItem1.Text); if (!(AntViewItem2.Text == "Country") & !(AntViewItem2.Text == "Category") & !(AntViewItem2.Text == "Year") & !(AntViewItem2.Text == "(none)")) @@ -668,6 +689,8 @@ MyFilms_xmlwriter.SetValue("MyFilms", "NbConfig", Config_Name.Items.Count); MyFilms_xmlwriter.SetValue("MyFilms", "PluginName", textBox1.Text.ToString()); MyFilms_xmlwriter.SetValue("MyFilms", "Default_Config", ""); + MyFilms_xmlwriter.Dispose(); + mydivx.Dispose(); Close(); } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ze...@us...> - 2007-06-20 19:56:51
|
Revision: 581 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=581&view=rev Author: zebons Date: 2007-06-20 12:56:40 -0700 (Wed, 20 Jun 2007) Log Message: ----------- add the result of the select line corrected bug for launching Movies add separators lines in skins Modified Paths: -------------- trunk/plugins/MyFilms/MesFilms.cs trunk/plugins/MyFilms/MesFilmsDetail.cs trunk/plugins/MyFilms/MesFilmsSetup.Designer.cs trunk/plugins/MyFilms/MesFilmsSetup.cs trunk/plugins/MyFilms/skin/BlackMyst/MesFilms.xml trunk/plugins/MyFilms/skin/BlackMyst/MesFilmsDetail.xml trunk/plugins/MyFilms/skin/BlueTwo/MesFilms.xml trunk/plugins/MyFilms/skin/BlueTwo/MesFilmsDetail.xml trunk/plugins/MyFilms/skin/BlueTwo wide/MesFilms.xml trunk/plugins/MyFilms/skin/BlueTwo wide/MesFilmsDetail.xml trunk/plugins/MyFilms/skin/Project Mayhem 3/MesFilms.xml trunk/plugins/MyFilms/skin/Project Mayhem 3/MesFilmsDetail.xml Modified: trunk/plugins/MyFilms/MesFilms.cs =================================================================== --- trunk/plugins/MyFilms/MesFilms.cs 2007-06-20 19:13:06 UTC (rev 580) +++ trunk/plugins/MyFilms/MesFilms.cs 2007-06-20 19:56:40 UTC (rev 581) @@ -280,7 +280,8 @@ return; } if (actionType.wID == Action.ActionType.ACTION_PREVIOUS_MENU) - if (GetPrevFilmList()) return; + if (GetPrevFilmList()) + return; base.OnAction(actionType); } //--------------------------------------------------------------------------------------- Modified: trunk/plugins/MyFilms/MesFilmsDetail.cs =================================================================== --- trunk/plugins/MyFilms/MesFilmsDetail.cs 2007-06-20 19:13:06 UTC (rev 580) +++ trunk/plugins/MyFilms/MesFilmsDetail.cs 2007-06-20 19:56:40 UTC (rev 581) @@ -1085,10 +1085,10 @@ if (!multifile) { //case monofile search files belonging same movie (extension cdx or diskx) string folder = file.Substring(0, file.LastIndexOf(@"\")); - if ((folder.Length == 2) && (folder.Substring(1,1) == ":")) + //if ((folder.Length == 2) && (folder.Substring(1,1) == ":")) + // file = folder +file.Substring(file.LastIndexOf(@"\") + 1); + //else file = folder + "\\" + file.Substring(file.LastIndexOf(@"\") + 1); - else - file = folder + file.Substring(file.LastIndexOf(@"\") + 1); ArrayList items = m_directory.GetDirectory(folder.ToString()); for (int i = 0; i < items.Count; ++i) @@ -1395,38 +1395,43 @@ oRegex = new System.Text.RegularExpressions.Regex(file); foreach (string path in SearchDir) { - DirectoryInfo dirsInf = new DirectoryInfo(path); - //On retourne une liste d'informations sur les fichiers contenus dans le r\xE9pertoire - FileSystemInfo[] filesInf = dirsInf.GetFileSystemInfos(); + if (System.IO.Directory.Exists(path)) + { + DirectoryInfo dirsInf = new DirectoryInfo(path); + //On retourne une liste d'informations sur les fichiers contenus dans le r\xE9pertoire + FileSystemInfo[] filesInf = dirsInf.GetFileSystemInfos(); - //Si le nom d'un fichier correspond avec le nom du fichier recherch\xE9 - //on place son path dans la variable globale result. - foreach (FileSystemInfo fi in filesInf) - { - System.Text.RegularExpressions.MatchCollection oMatches = oRegex.Matches(fi.Name.ToLower()); - foreach (System.Text.RegularExpressions.Match oMatch in oMatches) + //Si le nom d'un fichier correspond avec le nom du fichier recherch\xE9 + //on place son path dans la variable globale result. + foreach (FileSystemInfo fi in filesInf) { - if (MediaPortal.Util.Utils.IsVideo(fi.Name) || VirtualDirectory.IsImageFile(System.IO.Path.GetExtension(fi.Name))) - - result.Add(path + "\\" + fi.Name); - else + System.Text.RegularExpressions.MatchCollection oMatches = oRegex.Matches(fi.Name.ToLower()); + foreach (System.Text.RegularExpressions.Match oMatch in oMatches) { - if (fi.Attributes.ToString() == "Directory") - if (System.IO.File.Exists(path + fi.Name + "\\VIDEO_TS\\VIDEO_TS.IFO")) - result.Add(path + fi.Name + "\\VIDEO_TS\\VIDEO_TS.IFO"); - + if (MediaPortal.Util.Utils.IsVideo(fi.Name) || VirtualDirectory.IsImageFile(System.IO.Path.GetExtension(fi.Name))) + if (path.LastIndexOf(@"\") + 1 == path.Length) + result.Add(path + fi.Name); + else + result.Add(path + "\\" + fi.Name); + else + { + if (fi.Attributes.ToString() == "Directory") + if (System.IO.File.Exists(path + fi.Name + "\\VIDEO_TS\\VIDEO_TS.IFO")) + result.Add(path + fi.Name + "\\VIDEO_TS\\VIDEO_TS.IFO"); + + } } } - } - //Si le parametre recur vaut true on r\xE9alise une - //recherche r\xE9cursive sur tous les sous-r\xE9pertoires - if (recur) - { - foreach (DirectoryInfo dir in dirsInf.GetDirectories()) + //Si le parametre recur vaut true on r\xE9alise une + //recherche r\xE9cursive sur tous les sous-r\xE9pertoires + if (recur) { - //On rappelle la m\xE9thode SearchFiles pour tous les sous-r\xE9pertoires + foreach (DirectoryInfo dir in dirsInf.GetDirectories()) + { + //On rappelle la m\xE9thode SearchFiles pour tous les sous-r\xE9pertoires - SearchFiles(fileName, dir.FullName, recur); + SearchFiles(fileName, dir.FullName, recur); + } } } } Modified: trunk/plugins/MyFilms/MesFilmsSetup.Designer.cs =================================================================== --- trunk/plugins/MyFilms/MesFilmsSetup.Designer.cs 2007-06-20 19:13:06 UTC (rev 580) +++ trunk/plugins/MyFilms/MesFilmsSetup.Designer.cs 2007-06-20 19:56:40 UTC (rev 581) @@ -147,6 +147,8 @@ this.AntUpdItem1 = new System.Windows.Forms.ComboBox(); this.AntUpdText1 = new System.Windows.Forms.TextBox(); this.groupBox2 = new System.Windows.Forms.GroupBox(); + this.label18 = new System.Windows.Forms.Label(); + this.Selected_Enreg = new System.Windows.Forms.TextBox(); this.AntFilterComb = new System.Windows.Forms.ComboBox(); this.AntFilterSign2 = new System.Windows.Forms.ComboBox(); this.AntFilterSign1 = new System.Windows.Forms.ComboBox(); @@ -627,7 +629,7 @@ this.groupBox4.Controls.Add(this.AntUpdText2); this.groupBox4.Controls.Add(this.AntUpdItem1); this.groupBox4.Controls.Add(this.AntUpdText1); - this.groupBox4.Location = new System.Drawing.Point(369, 208); + this.groupBox4.Location = new System.Drawing.Point(369, 229); this.groupBox4.Name = "groupBox4"; this.groupBox4.Size = new System.Drawing.Size(372, 70); this.groupBox4.TabIndex = 28; @@ -680,6 +682,8 @@ // // groupBox2 // + this.groupBox2.Controls.Add(this.label18); + this.groupBox2.Controls.Add(this.Selected_Enreg); this.groupBox2.Controls.Add(this.AntFilterComb); this.groupBox2.Controls.Add(this.AntFilterSign2); this.groupBox2.Controls.Add(this.AntFilterSign1); @@ -687,13 +691,37 @@ this.groupBox2.Controls.Add(this.AntFilterText2); this.groupBox2.Controls.Add(this.AntFilterItem1); this.groupBox2.Controls.Add(this.AntFilterText1); - this.groupBox2.Location = new System.Drawing.Point(371, 96); + this.groupBox2.Location = new System.Drawing.Point(371, 82); this.groupBox2.Name = "groupBox2"; - this.groupBox2.Size = new System.Drawing.Size(370, 81); + this.groupBox2.Size = new System.Drawing.Size(370, 141); this.groupBox2.TabIndex = 27; this.groupBox2.TabStop = false; this.groupBox2.Text = "Ant Selected Enreg."; + this.groupBox2.Leave += new System.EventHandler(this.Selected_Enreg_Changed); // + // label18 + // + this.label18.AutoSize = true; + this.label18.Location = new System.Drawing.Point(7, 70); + this.label18.Name = "label18"; + this.label18.Size = new System.Drawing.Size(85, 13); + this.label18.TabIndex = 29; + this.label18.Text = "Selected enreg :"; + // + // Selected_Enreg + // + this.Selected_Enreg.BackColor = System.Drawing.SystemColors.ButtonFace; + this.Selected_Enreg.BorderStyle = System.Windows.Forms.BorderStyle.None; + this.Selected_Enreg.Enabled = false; + this.Selected_Enreg.Location = new System.Drawing.Point(6, 86); + this.Selected_Enreg.Multiline = true; + this.Selected_Enreg.Name = "Selected_Enreg"; + this.Selected_Enreg.ReadOnly = true; + this.Selected_Enreg.ScrollBars = System.Windows.Forms.ScrollBars.Horizontal; + this.Selected_Enreg.Size = new System.Drawing.Size(355, 49); + this.Selected_Enreg.TabIndex = 28; + this.Selected_Enreg.TabStop = false; + // // AntFilterComb // this.AntFilterComb.DisplayMember = "or"; @@ -1201,6 +1229,8 @@ private CheckBox radioButton2; private CheckBox radioButton1; private CheckBox Config_Menu; + private Label label18; + private TextBox Selected_Enreg; } } \ No newline at end of file Modified: trunk/plugins/MyFilms/MesFilmsSetup.cs =================================================================== --- trunk/plugins/MyFilms/MesFilmsSetup.cs 2007-06-20 19:13:06 UTC (rev 580) +++ trunk/plugins/MyFilms/MesFilmsSetup.cs 2007-06-20 19:56:40 UTC (rev 581) @@ -310,31 +310,36 @@ DVDPTagField.Focus(); return; } - StrDfltSelect = ""; - string wAntFilterSign; - if (AntFilterSign1.Text == "#") - wAntFilterSign = "<>"; - else - wAntFilterSign = AntFilterSign1.Text; - if ((AntFilterItem1.Text.Length > 0) && !(AntFilterItem1.Text == "(none)")) - if (AntFilterItem1.Text == "DateAdded") - StrDfltSelect = "(" + AntFilterItem1.Text + " " + wAntFilterSign + " #" + Convert.ToDateTime(AntFilterText1.Text) + "# or " + AntFilterItem1.Text + " is null) "; - else - StrDfltSelect = "(" + AntFilterItem1.Text + " " + wAntFilterSign + " '" + AntFilterText1.Text + "' or " + AntFilterItem1.Text + " is null) "; - if ((AntFilterComb.Text == "or") && (StrDfltSelect.Length > 0)) - StrDfltSelect = StrDfltSelect + " OR "; - else - if (StrDfltSelect.Length > 0) - StrDfltSelect = StrDfltSelect + " AND "; - if (AntFilterSign2.Text == "#") - wAntFilterSign = "<>"; - else - wAntFilterSign = AntFilterSign2.Text; - if ((AntFilterItem2.Text.Length > 0) && !(AntFilterItem2.Text == "(none)")) - if (AntFilterItem2.Text == "DateAdded") - StrDfltSelect = "(" + StrDfltSelect + "(" + AntFilterItem2.Text + " " + wAntFilterSign + " #" + Convert.ToDateTime(AntFilterText2.Text) + "# or " + AntFilterItem2.Text + " is null)) AND "; - else - StrDfltSelect = "(" + StrDfltSelect + "(" + AntFilterItem2.Text + " " + wAntFilterSign + " '" + AntFilterText2.Text + "' or " + AntFilterItem2.Text + " is null)) AND "; + Selected_Enreg_TextChanged(); +// StrDfltSelect = ""; +// string wAntFilterSign; +// if (AntFilterSign1.Text == "#") +// wAntFilterSign = "<>"; +// else +// wAntFilterSign = AntFilterSign1.Text; +// if ((AntFilterItem1.Text.Length > 0) && !(AntFilterItem1.Text == "(none)")) +// if (AntFilterItem1.Text == "DateAdded") +//// StrDfltSelect = "(" + AntFilterItem1.Text + " " + wAntFilterSign + " #" + Convert.ToDateTime(AntFilterText1.Text) + "# or " + AntFilterItem1.Text + " is null) "; +// StrDfltSelect = "(" + AntFilterItem1.Text + " " + wAntFilterSign + " #" + Convert.ToDateTime(AntFilterText1.Text) + "# ) "; +// else +//// StrDfltSelect = "(" + AntFilterItem1.Text + " " + wAntFilterSign + " '" + AntFilterText1.Text + "' or " + AntFilterItem1.Text + " is null) "; +// StrDfltSelect = "(" + AntFilterItem1.Text + " " + wAntFilterSign + " '" + AntFilterText1.Text + "') "; +// if ((AntFilterComb.Text == "or") && (StrDfltSelect.Length > 0)) +// StrDfltSelect = StrDfltSelect + " OR "; +// else +// if (StrDfltSelect.Length > 0) +// StrDfltSelect = StrDfltSelect + " AND "; +// if (AntFilterSign2.Text == "#") +// wAntFilterSign = "<>"; +// else +// wAntFilterSign = AntFilterSign2.Text; +// if ((AntFilterItem2.Text.Length > 0) && !(AntFilterItem2.Text == "(none)")) +// if (AntFilterItem2.Text == "DateAdded") +//// StrDfltSelect = "(" + StrDfltSelect + "(" + AntFilterItem2.Text + " " + wAntFilterSign + " #" + Convert.ToDateTime(AntFilterText2.Text) + "# or " + AntFilterItem2.Text + " is null)) AND "; +// StrDfltSelect = "(" + StrDfltSelect + "(" + AntFilterItem2.Text + " " + wAntFilterSign + " #" + Convert.ToDateTime(AntFilterText2.Text) + "# )) AND "; +// else +//// StrDfltSelect = "(" + StrDfltSelect + "(" + AntFilterItem2.Text + " " + wAntFilterSign + " '" + AntFilterText2.Text + "' or " + AntFilterItem2.Text + " is null)) AND "; +// StrDfltSelect = "(" + StrDfltSelect + "(" + AntFilterItem2.Text + " " + wAntFilterSign + " '" + AntFilterText2.Text + "' )) AND "; if (View_Dflt_Item.Text.Length == 0) View_Dflt_Item.Text = "(none)"; Verify_Config(); @@ -802,14 +807,59 @@ DVDPTagField.ResetText(); } } - + private void Selected_Enreg_TextChanged() + { + StrDfltSelect = ""; + string wAntFilterSign; + if (AntFilterSign1.Text == "#") + wAntFilterSign = "<>"; + else + wAntFilterSign = AntFilterSign1.Text; + if ((AntFilterItem1.Text.Length > 0) && !(AntFilterItem1.Text == "(none)")) + if (AntFilterItem1.Text == "DateAdded") + if ((AntFilterSign1.Text == "#") || (AntFilterSign1.Text == "not like")) + StrDfltSelect = "(" + AntFilterItem1.Text + " " + wAntFilterSign + " #" + Convert.ToDateTime(AntFilterText1.Text) + "# or " + AntFilterItem1.Text + " is null) "; + else + StrDfltSelect = "(" + AntFilterItem1.Text + " " + wAntFilterSign + " #" + Convert.ToDateTime(AntFilterText1.Text) + "# ) "; + else + if ((AntFilterSign1.Text == "#") || (AntFilterSign1.Text == "not like")) + StrDfltSelect = "(" + AntFilterItem1.Text + " " + wAntFilterSign + " '" + AntFilterText1.Text + "' or " + AntFilterItem1.Text + " is null) "; + else + StrDfltSelect = "(" + AntFilterItem1.Text + " " + wAntFilterSign + " '" + AntFilterText1.Text + "') "; + if ((AntFilterComb.Text == "or") && (StrDfltSelect.Length > 0)) + StrDfltSelect = StrDfltSelect + " OR "; + else + if (StrDfltSelect.Length > 0) + StrDfltSelect = StrDfltSelect + " AND "; + if (AntFilterSign2.Text == "#") + wAntFilterSign = "<>"; + else + wAntFilterSign = AntFilterSign2.Text; + if ((AntFilterItem2.Text.Length > 0) && !(AntFilterItem2.Text == "(none)")) + if (AntFilterItem2.Text == "DateAdded") + if ((AntFilterSign2.Text == "#") || (AntFilterSign2.Text == "not like")) + StrDfltSelect = "(" + StrDfltSelect + "(" + AntFilterItem2.Text + " " + wAntFilterSign + " #" + Convert.ToDateTime(AntFilterText2.Text) + "# or " + AntFilterItem2.Text + " is null)) AND "; + else + StrDfltSelect = "(" + StrDfltSelect + "(" + AntFilterItem2.Text + " " + wAntFilterSign + " #" + Convert.ToDateTime(AntFilterText2.Text) + "# )) AND "; + else + if ((AntFilterSign2.Text == "#") || (AntFilterSign2.Text == "not like")) + StrDfltSelect = "(" + StrDfltSelect + "(" + AntFilterItem2.Text + " " + wAntFilterSign + " '" + AntFilterText2.Text + "' or " + AntFilterItem2.Text + " is null)) AND "; + else + StrDfltSelect = "(" + StrDfltSelect + "(" + AntFilterItem2.Text + " " + wAntFilterSign + " '" + AntFilterText2.Text + "' )) AND "; + Selected_Enreg.Text = StrDfltSelect + AntTitle1.Text + " not like ''"; + } + private void radioButton2_CheckedChanged(object sender, EventArgs e) { if (radioButton2.Checked) { radioButton1.Checked = false; } + } + private void Selected_Enreg_Changed(object sender, EventArgs e) + { + Selected_Enreg_TextChanged(); + } - } } } Modified: trunk/plugins/MyFilms/skin/BlackMyst/MesFilms.xml =================================================================== --- trunk/plugins/MyFilms/skin/BlackMyst/MesFilms.xml 2007-06-20 19:13:06 UTC (rev 580) +++ trunk/plugins/MyFilms/skin/BlackMyst/MesFilms.xml 2007-06-20 19:56:40 UTC (rev 581) @@ -1,6 +1,6 @@ <window> <id>7986</id> - <defaultcontrol>1026</defaultcontrol> + <defaultcontrol>6</defaultcontrol> <allowoverlay>yes</allowoverlay> <controls> <import>common.time.xml</import> @@ -52,11 +52,23 @@ <animation effect="fade" time="250">WindowOpen</animation> <layout>StackLayout</layout> <control> + <type>button</type> + <description>Layout</description> + <id>6</id> + <onleft>5</onleft> + <onright>1026</onright> + <onup>5</onup> + <ondown>2</ondown> + <animation>unfocus</animation> + <label>101</label> + <textcolor>ff000000</textcolor> + </control> + <control> <type>sortbutton</type> <id>2</id> - <onleft>5</onleft> + <onleft>6</onleft> <onright>1026</onright> - <onup>5</onup> + <onup>6</onup> <ondown>3</ondown> <textureAscendingFocused>arrow_round_up_focus.png</textureAscendingFocused> <font>font13</font> @@ -100,13 +112,12 @@ <onleft>4</onleft> <onright>1026</onright> <onup>4</onup> - <ondown>319</ondown> + <ondown>6</ondown> <label>137</label> </control> </control> <control> <type>group</type> - <description>composite control consisting of a list control and a thumbnail panel</description> <id>1000</id> <posX>260</posX> <posY>56</posY> @@ -125,43 +136,91 @@ <left>0</left> </padding> </mpe> - <control> - <type>textboxscrollup</type> - <description>Biography value</description> - <id>1025</id> - <posX>260</posX> - <posY>414</posY> - <width>430</width> - <height>106</height> - <onleft>2</onleft> - <onright>1026</onright> - <onup>1026</onup> - <ondown>1026</ondown> + <control> + <description>composite control consisting of a list control and a thumbnail panel</description> + <type>facadeview</type> + <id>1026</id> + <control> + <description>Thumbnail Panel</description> + <type>thumbnailpanel</type> + <scrollOffset>1</scrollOffset> + <onleft>6</onleft> + <itemWidth>72</itemWidth> + <textureWidth>58</textureWidth> + <thumbWidth>44</thumbWidth> + <thumbPosX>7</thumbPosX> + <textureWidthBig>85</textureWidthBig> + <textureHeightBig>116</textureHeightBig> + <itemWidthBig>108</itemWidthBig> + <itemHeightBig>138</itemHeightBig> + <thumbWidthBig>64</thumbWidthBig> + <thumbHeightBig>90</thumbHeightBig> + <thumbPosXBig>10</thumbPosXBig> + </control> + <control> + <type>listcontrol</type> + <description>listcontrol</description> + <width>440</width> + <height>354</height> + <onleft>6</onleft> + <font>font13</font> + </control> + <control> + <description>Filmstrip view</description> + <type>filmstrip</type> + <width>440</width> + <height>354</height> + <onleft>6</onleft> + <backgroundx>354</backgroundx> + <backgroundy>99</backgroundy> + <backgroundwidth>238</backgroundwidth> + <backgroundheight>336</backgroundheight> + <InfoImagex>366</InfoImagex> + <InfoImagey>118</InfoImagey> + <InfoImagewidth>197</InfoImagewidth> + <InfoImageheight>274</InfoImageheight> + </control> + </control> + <control> + <type>textboxscrollup</type> + <description>Biography value</description> + <id>1025</id> + <posX>260</posX> + <posY>414</posY> + <width>440</width> + <height>100</height> <colordiffuse>ffffffff</colordiffuse> - <textcolor>FFFFFFFF</textcolor> - <speed>10</speed> + <onleft>1026</onleft> + <onright>1026</onright> + <onup>1026</onup> + <ondown>1026</ondown> + <font>font12</font> + <speed>10</speed> + <textcolor>FFFFFFFF</textcolor> <label>-</label> + <seperator>------------------------------------------------------------------------------------------------------------------------------</seperator> + </control> + <control> + <type>fadelabel</type> + <description>Title (during Icons)</description> + <id>1027</id> + <posX>65</posX> + <posY>470</posY> + <onleft>6</onleft> + <onright>1026</onright> + <onup>1026</onup> + <ondown>1026</ondown> <font>font12</font> + <width>175</width> + <height>24</height> + <label>-</label> </control> - <control> - <type>listcontrol</type> - <description>listcontrol</description> - <id>1026</id> - <width>440</width> - <height>354</height> - <onleft>2</onleft> - <onright>1000</onright> - <onup>1026</onup> - <ondown>1026</ondown> - <posX>260</posX> - <posY>97</posY> - </control> </control> <control> <type>image</type> <id>1065</id> <posX>224</posX> - <posY>350</posY> + <posY>365</posY> <width>36</width> <height>36</height> <visible>no</visible> @@ -172,7 +231,7 @@ <type>image</type> <id>1064</id> <posX>227</posX> - <posY>316</posY> + <posY>331</posY> <width>30</width> <height>30</height> <visible>no</visible> @@ -183,7 +242,7 @@ <type>image</type> <id>1063</id> <posX>230</posX> - <posY>288</posY> + <posY>303</posY> <width>24</width> <height>24</height> <visible>no</visible> @@ -194,7 +253,7 @@ <type>image</type> <id>1062</id> <posX>233</posX> - <posY>266</posY> + <posY>281</posY> <width>18</width> <height>18</height> <visible>no</visible> @@ -205,7 +264,7 @@ <type>image</type> <id>1061</id> <posX>236</posX> - <posY>250</posY> + <posY>265</posY> <width>12</width> <height>12</height> <visible>no</visible> @@ -216,7 +275,7 @@ <type>image</type> <id>1060</id> <posX>224</posX> - <posY>350</posY> + <posY>365</posY> <width>36</width> <height>36</height> <visible>no</visible> @@ -227,7 +286,7 @@ <type>image</type> <id>1059</id> <posX>227</posX> - <posY>316</posY> + <posY>331</posY> <width>30</width> <height>30</height> <visible>no</visible> @@ -238,7 +297,7 @@ <type>image</type> <id>1058</id> <posX>230</posX> - <posY>288</posY> + <posY>303</posY> <width>24</width> <height>24</height> <visible>no</visible> @@ -249,7 +308,7 @@ <type>image</type> <id>1057</id> <posX>233</posX> - <posY>266</posY> + <posY>281</posY> <width>18</width> <height>18</height> <visible>no</visible> @@ -260,7 +319,7 @@ <type>image</type> <id>1056</id> <posX>236</posX> - <posY>250</posY> + <posY>265</posY> <width>12</width> <height>12</height> <visible>no</visible> @@ -271,7 +330,7 @@ <type>image</type> <id>1055</id> <posX>224</posX> - <posY>350</posY> + <posY>365</posY> <width>36</width> <height>36</height> <visible>no</visible> @@ -282,7 +341,7 @@ <type>image</type> <id>1054</id> <posX>227</posX> - <posY>316</posY> + <posY>331</posY> <width>30</width> <height>30</height> <visible>no</visible> @@ -293,7 +352,7 @@ <type>image</type> <id>1053</id> <posX>230</posX> - <posY>288</posY> + <posY>303</posY> <width>24</width> <height>24</height> <visible>no</visible> @@ -304,7 +363,7 @@ <type>image</type> <id>1052</id> <posX>233</posX> - <posY>266</posY> + <posY>281</posY> <width>18</width> <height>18</height> <visible>no</visible> @@ -315,7 +374,7 @@ <type>image</type> <id>1051</id> <posX>236</posX> - <posY>250</posY> + <posY>265</posY> <width>12</width> <height>12</height> <visible>no</visible> @@ -326,9 +385,9 @@ <type>image</type> <id>1020</id> <posX>95</posX> - <posY>235</posY> + <posY>260</posY> <width>122</width> - <height>160</height> + <height>140</height> <keepaspectratio>yes</keepaspectratio> <texture>-</texture> </control> @@ -336,9 +395,9 @@ <type>image</type> <id>1021</id> <posX>65</posX> - <posY>250</posY> + <posY>265</posY> <width>155</width> - <height>220</height> + <height>200</height> <keepaspectratio>yes</keepaspectratio> <texture>-</texture> </control> Modified: trunk/plugins/MyFilms/skin/BlackMyst/MesFilmsDetail.xml =================================================================== --- trunk/plugins/MyFilms/skin/BlackMyst/MesFilmsDetail.xml 2007-06-20 19:13:06 UTC (rev 580) +++ trunk/plugins/MyFilms/skin/BlackMyst/MesFilmsDetail.xml 2007-06-20 19:56:40 UTC (rev 581) @@ -360,26 +360,28 @@ <description>description value</description> <id>2050</id> <posX>280</posX> - <posY>382</posY> - <width>408</width> - <height>162</height> + <posY>400</posY> + <width>410</width> + <height>140</height> <colordiffuse>ffffffff</colordiffuse> <textcolor>FFFFFFFF</textcolor> <label>#description</label> <font>font12</font> + <seperator>---------------------------------------------------------------------------------------------------------------------</seperator> </control> <control> <type>textboxscrollup</type> <description>Biography value</description> <id>2040</id> - <posX>403</posX> + <posX>400</posX> <posY>308</posY> - <width>280</width> - <height>68</height> + <width>296</width> + <height>80</height> <colordiffuse>ffffffff</colordiffuse> <textcolor>FFFFFFFF</textcolor> <label>#acteurs</label> <font>font12</font> + <seperator>-------------------------------------------------------------------------------------</seperator> </control> <control> <type>fadelabel</type> Modified: trunk/plugins/MyFilms/skin/BlueTwo/MesFilms.xml =================================================================== --- trunk/plugins/MyFilms/skin/BlueTwo/MesFilms.xml 2007-06-20 19:13:06 UTC (rev 580) +++ trunk/plugins/MyFilms/skin/BlueTwo/MesFilms.xml 2007-06-20 19:56:40 UTC (rev 581) @@ -210,7 +210,7 @@ <posX>260</posX> <posY>414</posY> <width>440</width> - <height>106</height> + <height>100</height> <colordiffuse>ffffffff</colordiffuse> <onleft>1026</onleft> <onright>1026</onright> @@ -220,7 +220,8 @@ <speed>10</speed> <textcolor>FFFFFFFF</textcolor> <label>-</label> - </control> + <seperator>------------------------------------------------------------------------------------------------------------------------------</seperator> + </control> <control> <type>fadelabel</type> <description>Title (during Icons)</description> Modified: trunk/plugins/MyFilms/skin/BlueTwo/MesFilmsDetail.xml =================================================================== --- trunk/plugins/MyFilms/skin/BlueTwo/MesFilmsDetail.xml 2007-06-20 19:13:06 UTC (rev 580) +++ trunk/plugins/MyFilms/skin/BlueTwo/MesFilmsDetail.xml 2007-06-20 19:56:40 UTC (rev 581) @@ -384,7 +384,7 @@ <id>2050</id> <posX>290</posX> <posY>400</posY> - <width>416</width> + <width>410</width> <height>140</height> <colordiffuse>ffffffff</colordiffuse> <textcolor>FFFFFFFF</textcolor> Modified: trunk/plugins/MyFilms/skin/BlueTwo wide/MesFilms.xml =================================================================== --- trunk/plugins/MyFilms/skin/BlueTwo wide/MesFilms.xml 2007-06-20 19:13:06 UTC (rev 580) +++ trunk/plugins/MyFilms/skin/BlueTwo wide/MesFilms.xml 2007-06-20 19:56:40 UTC (rev 581) @@ -1,6 +1,6 @@ <window> <id>7986</id> - <defaultcontrol>1026</defaultcontrol> + <defaultcontrol>6</defaultcontrol> <allowoverlay>yes</allowoverlay> <controls> <import>common.time.xml</import> @@ -24,7 +24,7 @@ <description>AMC logo</description> <type>image</type> <id>1</id> - <posX>75</posX> + <posX>110</posX> <posY>70</posY> <height>40</height> <colordiffuse>9Fffffff</colordiffuse> @@ -35,8 +35,8 @@ <description>Selection</description> <type>fadelabel</type> <id>12</id> - <posX>270</posX> - <posY>70</posY> + <posX>480</posX> + <posY>60</posY> <label>label</label> <font>font14</font> <align>left</align> @@ -56,12 +56,24 @@ <animation effect="fade" time="500">WindowClose</animation> <animation effect="fade" time="250">WindowOpen</animation> <control> + <type>button</type> + <description>Layout</description> + <id>6</id> + <onleft>5</onleft> + <onright>1026</onright> + <onup>5</onup> + <ondown>2</ondown> + <animation>unfocus</animation> + <label>101</label> + <textcolor>ff000000</textcolor> + </control> + <control> <description>Sort button</description> <type>sortbutton</type> <id>2</id> - <onleft>5</onleft> + <onleft>6</onleft> <onright>1026</onright> - <onup>5</onup> + <onup>6</onup> <ondown>3</ondown> <textureFocus>menu_list_focus.png</textureFocus> <disabledcolor>60ffffff</disabledcolor> @@ -100,7 +112,7 @@ <onleft>4</onleft> <onright>1026</onright> <onup>4</onup> - <ondown>319</ondown> + <ondown>6</ondown> <label>137</label> </control> </control> @@ -126,6 +138,47 @@ </padding> </mpe> <control> + <description>composite control consisting of a list control and a thumbnail panel</description> + <type>facadeview</type> + <id>1026</id> + <control> + <description>Thumbnail Panel</description> + <type>thumbnailpanel</type> + <scrollOffset>1</scrollOffset> + <onleft>6</onleft> + <itemWidth>140</itemWidth> + <itemHeight>192</itemHeight> + <textureWidth>98</textureWidth> + <thumbWidth>70</thumbWidth> + <thumbPosX>14</thumbPosX> + <textureWidthBig>184</textureWidthBig> + <itemWidthBig>204</itemWidthBig> + <thumbWidthBig>140</thumbWidthBig> + <thumbPosXBig>20</thumbPosXBig> + </control> + <control> + <type>listcontrol</type> + <description>listcontrol</description> + <posX>440</posX> + <posY>97</posY> + <width>780</width> + <height>512</height> + <onleft>6</onleft> + <font>font13</font> + </control> + <control> + <description>Filmstrip view</description> + <type>filmstrip</type> + <width>440</width> + <height>354</height> + <onleft>6</onleft> + <backgroundx>722</backgroundx> + <backgroundwidth>314</backgroundwidth> + <InfoImagex>742</InfoImagex> + <InfoImagewidth>266</InfoImagewidth> + </control> + </control> + <control> <description>Biography value</description> <type>textboxscrollup</type> <id>1025</id> @@ -142,27 +195,30 @@ <speed>10</speed> <label>-</label> <font>font12</font> + <seperator>------------------------------------------------------------------------------------------------------------------------------</seperator> </control> - <control> - <description>listcontrol</description> - <type>listcontrol</type> - <id>1026</id> - <width>780</width> - <height>512</height> - <onleft>2</onleft> - <onright>1000</onright> - <onup>1026</onup> - <ondown>1026</ondown> - <posX>440</posX> - <posY>97</posY> - </control> + <control> + <type>fadelabel</type> + <description>Title (during Icons)</description> + <id>1027</id> + <posX>130</posX> + <posY>610</posY> + <onleft>6</onleft> + <onright>1026</onright> + <onup>1026</onup> + <ondown>1026</ondown> + <font>font12</font> + <width>280</width> + <height>24</height> + <label>-</label> + </control> </control> <control> <description>Star rating</description> <type>image</type> <id>1065</id> - <posX>387</posX> - <posY>400</posY> + <posX>367</posX> + <posY>430</posY> <width>36</width> <height>36</height> <visible>no</visible> @@ -173,8 +229,8 @@ <description>Star rating half grey</description> <type>image</type> <id>1060</id> - <posX>387</posX> - <posY>400</posY> + <posX>367</posX> + <posY>430</posY> <width>36</width> <height>36</height> <visible>no</visible> @@ -185,8 +241,8 @@ <description>Star rating grey</description> <type>image</type> <id>1055</id> - <posX>387</posX> - <posY>400</posY> + <posX>367</posX> + <posY>430</posY> <width>36</width> <height>36</height> <visible>no</visible> @@ -197,8 +253,8 @@ <description>Star rating</description> <type>image</type> <id>1064</id> - <posX>390</posX> - <posY>366</posY> + <posX>370</posX> + <posY>396</posY> <width>30</width> <height>30</height> <visible>no</visible> @@ -209,8 +265,8 @@ <description>Star rating half grey</description> <type>image</type> <id>1059</id> - <posX>390</posX> - <posY>366</posY> + <posX>370</posX> + <posY>396</posY> <width>30</width> <height>30</height> <visible>no</visible> @@ -221,8 +277,8 @@ <description>Star rating grey</description> <type>image</type> <id>1054</id> - <posX>390</posX> - <posY>366</posY> + <posX>370</posX> + <posY>396</posY> <width>30</width> <height>30</height> <visible>no</visible> @@ -233,8 +289,8 @@ <description>Star rating</description> <type>image</type> <id>1063</id> - <posX>393</posX> - <posY>338</posY> + <posX>373</posX> + <posY>368</posY> <width>24</width> <height>24</height> <visible>no</visible> @@ -245,8 +301,8 @@ <description>Star rating half grey</description> <type>image</type> <id>1058</id> - <posX>393</posX> - <posY>338</posY> + <posX>373</posX> + <posY>368</posY> <width>24</width> <height>24</height> <visible>no</visible> @@ -257,8 +313,8 @@ <description>Star rating grey</description> <type>image</type> <id>1053</id> - <posX>393</posX> - <posY>338</posY> + <posX>373</posX> + <posY>368</posY> <width>24</width> <height>24</height> <visible>no</visible> @@ -269,8 +325,8 @@ <description>Star rating</description> <type>image</type> <id>1062</id> - <posX>397</posX> - <posY>316</posY> + <posX>377</posX> + <posY>346</posY> <width>18</width> <height>18</height> <visible>no</visible> @@ -281,8 +337,8 @@ <description>Star rating half grey</description> <type>image</type> <id>1057</id> - <posX>397</posX> - <posY>316</posY> + <posX>377</posX> + <posY>346</posY> <width>18</width> <height>18</height> <visible>no</visible> @@ -293,8 +349,8 @@ <description>Star rating grey</description> <type>image</type> <id>1052</id> - <posX>397</posX> - <posY>316</posY> + <posX>377</posX> + <posY>346</posY> <width>18</width> <height>18</height> <visible>no</visible> @@ -305,8 +361,8 @@ <description>Star rating</description> <type>image</type> <id>1061</id> - <posX>400</posX> - <posY>300</posY> + <posX>380</posX> + <posY>330</posY> <width>12</width> <height>12</height> <visible>no</visible> @@ -317,8 +373,8 @@ <description>Star rating half grey</description> <type>image</type> <id>1056</id> - <posX>400</posX> - <posY>300</posY> + <posX>380</posX> + <posY>330</posY> <width>12</width> <height>12</height> <visible>no</visible> @@ -329,8 +385,8 @@ <description>Star rating grey</description> <type>image</type> <id>1051</id> - <posX>400</posX> - <posY>300</posY> + <posX>380</posX> + <posY>330</posY> <width>12</width> <height>12</height> <visible>no</visible> @@ -341,10 +397,10 @@ <description>Thumbnail with video playing</description> <type>image</type> <id>1020</id> - <posX>150</posX> - <posY>280</posY> + <posX>155</posX> + <posY>310</posY> <width>180</width> - <height>245</height> + <height>225</height> <keepaspectratio>yes</keepaspectratio> <texture>-</texture> </control> @@ -352,10 +408,10 @@ <description>Thumbnail with no video playing</description> <type>image</type> <id>1021</id> - <posX>120</posX> - <posY>290</posY> + <posX>130</posX> + <posY>320</posY> <width>240</width> - <height>350</height> + <height>280</height> <keepaspectratio>yes</keepaspectratio> <texture>-</texture> </control> @@ -364,7 +420,7 @@ <type>label</type> <id>1022</id> <posX>155</posX> - <posY>630</posY> + <posY>650</posY> <visible>no</visible> <label>6</label> <font>font12</font> @@ -374,7 +430,7 @@ <type>label</type> <id>1024</id> <posX>155</posX> - <posY>660</posY> + <posY>680</posY> <width>180</width> <visible>no</visible> <align>left</align> Modified: trunk/plugins/MyFilms/skin/BlueTwo wide/MesFilmsDetail.xml =================================================================== --- trunk/plugins/MyFilms/skin/BlueTwo wide/MesFilmsDetail.xml 2007-06-20 19:13:06 UTC (rev 580) +++ trunk/plugins/MyFilms/skin/BlueTwo wide/MesFilmsDetail.xml 2007-06-20 19:56:40 UTC (rev 581) @@ -23,7 +23,7 @@ <description>logo</description> <type>image</type> <id>1</id> - <posX>95</posX> + <posX>110</posX> <posY>70</posY> <height>40</height> <colordiffuse>9Fffffff</colordiffuse> @@ -164,7 +164,7 @@ <posX>480</posX> <posY>98</posY> <label>#Title</label> - <width>510</width> + <width>545</width> <font>font16</font> <colordiffuse>ffffffff</colordiffuse> <textcolor>ffffffff</textcolor> @@ -175,9 +175,9 @@ <type>fadelabel</type> <id>2026</id> <posX>750</posX> - <posY>120</posY> + <posY>122</posY> <label>#OTitle</label> - <width>250</width> + <width>280</width> <font>font12</font> <colordiffuse>ffe0e0e0</colordiffuse> <textcolor>ffc0c0c0</textcolor> @@ -412,7 +412,7 @@ <description>Biography value</description> <type>textboxscrollup</type> <id>2040</id> - <posX>603</posX> + <posX>660</posX> <posY>330</posY> <width>563</width> <height>100</height> @@ -420,6 +420,7 @@ <textcolor>FFFFFFFF</textcolor> <label>#acteurs</label> <font>font12</font> + <seperator>-----------------------------------------------------------------------------------</seperator> </control> <control> <description>description value</description> @@ -427,12 +428,13 @@ <id>2050</id> <posX>480</posX> <posY>450</posY> - <width>700</width> + <width>740</width> <height>200</height> <colordiffuse>ffffffff</colordiffuse> <textcolor>FFFFFFFF</textcolor> <label>#description</label> <font>font12</font> + <seperator>-----------------------------------------------------------------------------------------------------------------</seperator> </control> <control> <description>Thumbnail with no video playing</description> @@ -488,7 +490,7 @@ <type>fadelabel</type> <id>12</id> <posX>480</posX> - <posY>60</posY> + <posY>50</posY> <label>#select</label> <width>280</width> <font>font14</font> @@ -498,8 +500,8 @@ <control> <type>image</type> <id>2072</id> - <posX>1180</posX> - <posY>200</posY> + <posX>1170</posX> + <posY>202</posY> <width>35</width> <height>35</height> <align>right</align> Modified: trunk/plugins/MyFilms/skin/Project Mayhem 3/MesFilms.xml =================================================================== --- trunk/plugins/MyFilms/skin/Project Mayhem 3/MesFilms.xml 2007-06-20 19:13:06 UTC (rev 580) +++ trunk/plugins/MyFilms/skin/Project Mayhem 3/MesFilms.xml 2007-06-20 19:56:40 UTC (rev 581) @@ -1,6 +1,6 @@ <window> <id>7986</id> - <defaultcontrol>1026</defaultcontrol> + <defaultcontrol>6</defaultcontrol> <allowoverlay>yes</allowoverlay> <controls> <control> @@ -62,22 +62,22 @@ <animation effect="fade" time="250">WindowOpen</animation> <layout>StackLayout</layout> <control> + <type>button</type> + <description>View-as button</description> + <id>6</id> + <onleft>5</onleft> + <onright>1026</onright> + <onup>5</onup> + <ondown>2</ondown> + <label>101</label> + </control> + <control> <type>sortbutton</type> <id>2</id> - <onleft>5</onleft> + <onleft>6</onleft> <onright>1026</onright> - <onup>5</onup> + <onup>6</onup> <ondown>3</ondown> - <textureAscendingFocused>arrow_round_up_focus.png</textureAscendingFocused> - <font>font13</font> - <disabledcolor>60ffffff</disabledcolor> - <label>103</label> - <offsetSortButtonY>8</offsetSortButtonY> - <offsetSortButtonX>165</offsetSortButtonX> - <textcolor>White</textcolor> - <textureAscending>arrow_round_up_nofocus.png</textureAscending> - <textureDescending>arrow_round_down_nofocus.png</textureDescending> - <textureDescendingFocused>arrow_round_down_focus.png</textureDescendingFocused> </control> <control> <type>button</type> @@ -106,7 +106,7 @@ <onleft>4</onleft> <onright>1026</onright> <onup>4</onup> - <ondown>319</ondown> + <ondown>6</ondown> <label>137</label> </control> </control> @@ -131,13 +131,58 @@ <left>0</left> </padding> </mpe> + <control> + <description>composite control consisting of a list control and a thumbnail panel</description> + <type>facadeview</type> + <id>1026</id> + <control> + <description>Thumbnail Panel</description> + <type>thumbnailpanel</type> + <scrollOffset>1</scrollOffset> + <onleft>6</onleft> + <itemWidth>72</itemWidth> + <textureWidth>58</textureWidth> + <thumbWidth>44</thumbWidth> + <thumbPosX>7</thumbPosX> + <textureWidthBig>85</textureWidthBig> + <textureHeightBig>110</textureHeightBig> + <itemWidthBig>108</itemWidthBig> + <itemHeightBig>130</itemHeightBig> + <thumbWidthBig>64</thumbWidthBig> + <thumbHeightBig>90</thumbHeightBig> + <thumbPosXBig>10</thumbPosXBig> + </control> + <control> + <type>listcontrol</type> + <description>listcontrol</description> + <width>490</width> + <height>284</height> + <onleft>6</onleft> + <font>font13</font> + </control> + <control> + <description>Filmstrip view</description> + <type>filmstrip</type> + <width>440</width> + <height>354</height> + <onleft>6</onleft> + <backgroundx>354</backgroundx> + <backgroundy>99</backgroundy> + <backgroundwidth>238</backgroundwidth> + <backgroundheight>336</backgroundheight> + <InfoImagex>366</InfoImagex> + <InfoImagey>118</InfoImagey> + <InfoImagewidth>197</InfoImagewidth> + <InfoImageheight>274</InfoImageheight> + </control> + </control> <control> <type>textboxscrollup</type> <description>Biography value</description> <id>1025</id> <posX>220</posX> <posY>384</posY> - <width>480</width> + <width>500</width> <height>126</height> <onleft>2</onleft> <onright>1026</onright> @@ -148,28 +193,31 @@ <speed>10</speed> <label>-</label> <font>font12</font> - </control> - <control> - <type>listcontrol</type> - <description>listcontrol</description> - <id>1026</id> - <posX>215</posX> - <posY>120</posY> - <width>490</width> - <height>284</height> - <onleft>2</onleft> - <onright>1000</onright> - <onup>1026</onup> + <seperator>------------------------------------------------------------------------------------------------------------------------------</seperator> + </control> + <control> + <type>fadelabel</type> + <description>Title (during Icons)</description> + <id>1027</id> + <posX>15</posX> + <posY>465</posY> + <onleft>6</onleft> + <onright>1026</onright> + <onup>1026</onup> <ondown>1026</ondown> + <font>font12</font> + <width>165</width> + <height>24</height> + <label>-</label> </control> </control> <control> <type>image</type> <id>6969</id> <posX>5</posX> - <posY>260</posY> + <posY>280</posY> <width>190</width> - <height>250</height> + <height>230</height> <keepaspectratio>no</keepaspectratio> <texture>context_background.png</texture> </control> @@ -177,7 +225,7 @@ <type>image</type> <id>1065</id> <posX>14</posX> - <posY>390</posY> + <posY>410</posY> <width>36</width> <height>36</height> <visible>no</visible> @@ -188,7 +236,7 @@ <type>image</type> <id>1064</id> <posX>17</posX> - <posY>356</posY> + <posY>376</posY> <width>30</width> <height>30</height> <visible>no</visible> @@ -199,7 +247,7 @@ <type>image</type> <id>1063</id> <posX>20</posX> - <posY>328</posY> + <posY>348</posY> <width>24</width> <height>24</height> <visible>no</visible> @@ -210,7 +258,7 @@ <type>image</type> <id>1062</id> <posX>23</posX> - <posY>306</posY> + <posY>326</posY> <width>18</width> <height>18</height> <visible>no</visible> @@ -221,7 +269,7 @@ <type>image</type> <id>1061</id> <posX>26</posX> - <posY>290</posY> + <posY>310</posY> <width>12</width> <height>12</height> <visible>no</visible> @@ -232,7 +280,7 @@ <type>image</type> <id>1060</id> <posX>14</posX> - <posY>390</posY> + <posY>410</posY> <width>36</width> <height>36</height> <visible>no</visible> @@ -243,7 +291,7 @@ <type>image</type> <id>1059</id> <posX>17</posX> - <posY>356</posY> + <posY>376</posY> <width>30</width> <height>30</height> <visible>no</visible> @@ -254,7 +302,7 @@ <type>image</type> <id>1058</id> <posX>20</posX> - <posY>328</posY> + <posY>348</posY> <width>24</width> <height>24</height> <visible>no</visible> @@ -265,7 +313,7 @@ <type>image</type> <id>1057</id> <posX>23</posX> - <posY>306</posY> + <posY>326</posY> <width>18</width> <height>18</height> <visible>no</visible> @@ -276,7 +324,7 @@ <type>image</type> <id>1056</id> <posX>26</posX> - <posY>290</posY> + <posY>310</posY> <width>12</width> <height>12</height> <visible>no</visible> @@ -287,7 +335,7 @@ <type>image</type> <id>1055</id> <posX>14</posX> - <posY>390</posY> + <posY>410</posY> <width>36</width> <height>36</height> <visible>no</visible> @@ -298,7 +346,7 @@ <type>image</type> <id>1054</id> <posX>17</posX> - <posY>356</posY> + <posY>376</posY> <width>30</width> <height>30</height> <visible>no</visible> @@ -309,7 +357,7 @@ <type>image</type> <id>1053</id> <posX>20</posX> - <posY>328</posY> + <posY>348</posY> <width>24</width> <height>24</height> <visible>no</visible> @@ -320,7 +368,7 @@ <type>image</type> <id>1052</id> <posX>23</posX> - <posY>306</posY> + <posY>326</posY> <width>18</width> <height>18</height> <visible>no</visible> @@ -331,7 +379,7 @@ <type>image</type> <id>1051</id> <posX>26</posX> - <posY>290</posY> + <posY>310</posY> <width>12</width> <height>12</height> <visible>no</visible> @@ -342,9 +390,9 @@ <type>image</type> <id>1020</id> <posX>55</posX> - <posY>290</posY> + <posY>295</posY> <width>130</width> - <height>180</height> + <height>170</height> <keepaspectratio>yes</keepaspectratio> <texture>-</texture> </control> @@ -352,9 +400,9 @@ <type>image</type> <id>1021</id> <posX>55</posX> - <posY>290</posY> + <posY>304</posY> <width>130</width> - <height>180</height> + <height>160</height> <keepaspectratio>yes</keepaspectratio> <texture>-</texture> </control> Modified: trunk/plugins/MyFilms/skin/Project Mayhem 3/MesFilmsDetail.xml =================================================================== --- trunk/plugins/MyFilms/skin/Project Mayhem 3/MesFilmsDetail.xml 2007-06-20 19:13:06 UTC (rev 580) +++ trunk/plugins/MyFilms/skin/Project Mayhem 3/MesFilmsDetail.xml 2007-06-20 19:56:40 UTC (rev 581) @@ -400,6 +400,7 @@ <textcolor>FFFFFFFF</textcolor> <label>#description</label> <font>font12</font> + <seperator>-------------------------------------------------------------------------------------------------------------------</seperator> </control> <control> <type>textboxscrollup</type> @@ -413,6 +414,7 @@ <textcolor>FFFFFFFF</textcolor> <label>#acteurs</label> <font>font12</font> + <seperator>-----------------------------------------------------------------------------------</seperator> </control> <control> <type>fadelabel</type> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ze...@us...> - 2007-06-23 16:19:49
|
Revision: 609 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=609&view=rev Author: zebons Date: 2007-06-23 09:19:44 -0700 (Sat, 23 Jun 2007) Log Message: ----------- Skin BT Wide update Add an init for new values in setup Modified Paths: -------------- trunk/plugins/MyFilms/MesFilmsSetup.cs trunk/plugins/MyFilms/skin/BlueTwo wide/MesFilms.xml trunk/plugins/MyFilms/skin/BlueTwo wide/MesFilmsDetail.xml Modified: trunk/plugins/MyFilms/MesFilmsSetup.cs =================================================================== --- trunk/plugins/MyFilms/MesFilmsSetup.cs 2007-06-22 23:41:00 UTC (rev 608) +++ trunk/plugins/MyFilms/MesFilmsSetup.cs 2007-06-23 16:19:44 UTC (rev 609) @@ -367,8 +367,9 @@ } if (Config_Menu.Checked) { - MyFilms_xmlwriter.SetValueAsBool("MyFilms", "Menu_Config", Config_Menu.Checked); + MyFilms_xmlwriter.SetValue("MyFilms", "Default_Config", ""); } + MyFilms_xmlwriter.SetValueAsBool("MyFilms", "Menu_Config", Config_Menu.Checked); MyFilms_xmlwriter.SetValue(Config_Name.Text.ToString(), "CatalogType", CatalogType.SelectedIndex.ToString()); MyFilms_xmlwriter.SetValue(Config_Name.Text.ToString(), "AntCatalog", MesFilmsCat.Text.ToString()); MyFilms_xmlwriter.SetValue(Config_Name.Text.ToString(), "AntPicture", MesFilmsImg.Text.ToString()); @@ -705,7 +706,10 @@ //MyFilms_xmlwriter.SetValue("ConfigName" + i, "IndexItem", -1); //MyFilms_xmlwriter.SetValue("ConfigName" + i, "LastID", ""); if (Config_Name.Items.Count == 1) + { MyFilms_xmlwriter.SetValue("MyFilms", "Default_Config", Config_Name.Items[i]); + MyFilms_xmlwriter.SetValue("MyFilms", "Menu_Config", Config_Name.Items[i]); + } } MyFilms_xmlwriter.SetValue("MyFilms", "NbConfig", Config_Name.Items.Count); MyFilms_xmlwriter.SetValue("MyFilms", "PluginName", textBox1.Text.ToString()); Modified: trunk/plugins/MyFilms/skin/BlueTwo wide/MesFilms.xml =================================================================== --- trunk/plugins/MyFilms/skin/BlueTwo wide/MesFilms.xml 2007-06-22 23:41:00 UTC (rev 608) +++ trunk/plugins/MyFilms/skin/BlueTwo wide/MesFilms.xml 2007-06-23 16:19:44 UTC (rev 609) @@ -146,16 +146,17 @@ <type>thumbnailpanel</type> <scrollOffset>1</scrollOffset> <onleft>6</onleft> - <itemWidth>140</itemWidth> - <itemHeight>192</itemHeight> - <textureWidth>98</textureWidth> - <thumbWidth>70</thumbWidth> - <thumbPosX>14</thumbPosX> - <textureWidthBig>184</textureWidthBig> - <itemWidthBig>204</itemWidthBig> - <thumbWidthBig>140</thumbWidthBig> - <thumbPosXBig>20</thumbPosXBig> - </control> + <width>880</width> + <height>670</height> + <textureWidthBig>168</textureWidthBig> + <textureHeightBig>158</textureHeightBig> + <itemWidthBig>170</itemWidthBig> + <itemHeightBig>180</itemHeightBig> + <thumbWidthBig>128</thumbWidthBig> + <thumbHeightBig>124</thumbHeightBig> + <thumbPosXBig>19</thumbPosXBig> + <thumbPosYBig>16</thumbPosYBig> + </control> <control> <type>listcontrol</type> <description>listcontrol</description> @@ -217,7 +218,7 @@ <description>Star rating</description> <type>image</type> <id>1065</id> - <posX>367</posX> + <posX>387</posX> <posY>430</posY> <width>36</width> <height>36</height> @@ -229,7 +230,7 @@ <description>Star rating half grey</description> <type>image</type> <id>1060</id> - <posX>367</posX> + <posX>387</posX> <posY>430</posY> <width>36</width> <height>36</height> @@ -241,7 +242,7 @@ <description>Star rating grey</description> <type>image</type> <id>1055</id> - <posX>367</posX> + <posX>387</posX> <posY>430</posY> <width>36</width> <height>36</height> @@ -253,7 +254,7 @@ <description>Star rating</description> <type>image</type> <id>1064</id> - <posX>370</posX> + <posX>390</posX> <posY>396</posY> <width>30</width> <height>30</height> @@ -265,7 +266,7 @@ <description>Star rating half grey</description> <type>image</type> <id>1059</id> - <posX>370</posX> + <posX>390</posX> <posY>396</posY> <width>30</width> <height>30</height> @@ -277,7 +278,7 @@ <description>Star rating grey</description> <type>image</type> <id>1054</id> - <posX>370</posX> + <posX>390</posX> <posY>396</posY> <width>30</width> <height>30</height> @@ -289,7 +290,7 @@ <description>Star rating</description> <type>image</type> <id>1063</id> - <posX>373</posX> + <posX>393</posX> <posY>368</posY> <width>24</width> <height>24</height> @@ -301,7 +302,7 @@ <description>Star rating half grey</description> <type>image</type> <id>1058</id> - <posX>373</posX> + <posX>393</posX> <posY>368</posY> <width>24</width> <height>24</height> @@ -313,7 +314,7 @@ <description>Star rating grey</description> <type>image</type> <id>1053</id> - <posX>373</posX> + <posX>393</posX> <posY>368</posY> <width>24</width> <height>24</height> @@ -325,7 +326,7 @@ <description>Star rating</description> <type>image</type> <id>1062</id> - <posX>377</posX> + <posX>397</posX> <posY>346</posY> <width>18</width> <height>18</height> @@ -337,7 +338,7 @@ <description>Star rating half grey</description> <type>image</type> <id>1057</id> - <posX>377</posX> + <posX>397</posX> <posY>346</posY> <width>18</width> <height>18</height> @@ -349,7 +350,7 @@ <description>Star rating grey</description> <type>image</type> <id>1052</id> - <posX>377</posX> + <posX>397</posX> <posY>346</posY> <width>18</width> <height>18</height> @@ -361,7 +362,7 @@ <description>Star rating</description> <type>image</type> <id>1061</id> - <posX>380</posX> + <posX>400</posX> <posY>330</posY> <width>12</width> <height>12</height> @@ -373,7 +374,7 @@ <description>Star rating half grey</description> <type>image</type> <id>1056</id> - <posX>380</posX> + <posX>400</posX> <posY>330</posY> <width>12</width> <height>12</height> @@ -385,7 +386,7 @@ <description>Star rating grey</description> <type>image</type> <id>1051</id> - <posX>380</posX> + <posX>400</posX> <posY>330</posY> <width>12</width> <height>12</height> @@ -431,7 +432,7 @@ <id>1024</id> <posX>155</posX> <posY>680</posY> - <width>180</width> + <width>280</width> <visible>no</visible> <align>left</align> <label>6</label> Modified: trunk/plugins/MyFilms/skin/BlueTwo wide/MesFilmsDetail.xml =================================================================== --- trunk/plugins/MyFilms/skin/BlueTwo wide/MesFilmsDetail.xml 2007-06-22 23:41:00 UTC (rev 608) +++ trunk/plugins/MyFilms/skin/BlueTwo wide/MesFilmsDetail.xml 2007-06-23 16:19:44 UTC (rev 609) @@ -58,7 +58,7 @@ <id>27</id> <posX>100</posX> <posY>97</posY> - <width>198</width> + <width>98</width> <height>140</height> <layout>StackLayout</layout> <animation effect="slide" time="400" start="-300,0">WindowOpen</animation> @@ -94,7 +94,7 @@ <type>group</type> <description>group element</description> <id>1234</id> - <layout>GridLayout(4,0,0,0)</layout> + <layout>GridLayout(4,0,0,0)</layout> <animation effect="slide" time="400" start="-300,0">WindowOpen</animation> <animation effect="slide" time="400" end="0,-300">WindowClose</animation> <animation effect="fade" time="500">WindowClose</animation> @@ -107,9 +107,9 @@ <onright>104</onright> <ondown>319</ondown> <onup>107</onup> - <label>-</label> <height>65</height> <width>10</width> + <label>-</label> <textureFocus>Films_first_focus.png</textureFocus> <textureNoFocus>Films_first_nofocus.png</textureNoFocus> </control> @@ -121,9 +121,9 @@ <onright>103</onright> <ondown>319</ondown> <onup>107</onup> - <label>-</label> <height>65</height> <width>10</width> + <label>-</label> <textureFocus>Films_prior_focus.png</textureFocus> <textureNoFocus>Films_prior_nofocus.png</textureNoFocus> </control> @@ -135,9 +135,9 @@ <onright>105</onright> <ondown>319</ondown> <onup>107</onup> - <label>-</label> <height>65</height> <width>10</width> + <label>-</label> <textureFocus>Films_next_focus.png</textureFocus> <textureNoFocus>Films_next_nofocus.png</textureNoFocus> </control> @@ -149,9 +149,9 @@ <onright>106</onright> <ondown>319</ondown> <onup>107</onup> - <label>-</label> <height>65</height> <width>10</width> + <label>-</label> <textureFocus>Films_last_focus.png</textureFocus> <textureNoFocus>Films_last_nofocus.png</textureNoFocus> </control> @@ -165,19 +165,19 @@ <posY>98</posY> <label>#Title</label> <width>545</width> - <font>font16</font> + <font>font14</font> <colordiffuse>ffffffff</colordiffuse> <textcolor>ffffffff</textcolor> <disabledcolor>ffffffff</disabledcolor> </control> <control> - <description>RecordNumberValue</description> + <description>Original Title</description> <type>fadelabel</type> <id>2026</id> - <posX>750</posX> + <posX>550</posX> <posY>122</posY> <label>#OTitle</label> - <width>280</width> + <width>480</width> <font>font12</font> <colordiffuse>ffe0e0e0</colordiffuse> <textcolor>ffc0c0c0</textcolor> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ze...@us...> - 2007-07-08 19:15:53
|
Revision: 678 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=678&view=rev Author: zebons Date: 2007-07-08 12:15:51 -0700 (Sun, 08 Jul 2007) Log Message: ----------- Memory position bug correction Search for movie file bug corrected (not found if there is in the root directory) Modified Paths: -------------- trunk/plugins/MyFilms/MesFilms.cs trunk/plugins/MyFilms/MesFilmsDetail.cs Modified: trunk/plugins/MyFilms/MesFilms.cs =================================================================== --- trunk/plugins/MyFilms/MesFilms.cs 2007-07-07 21:15:11 UTC (rev 677) +++ trunk/plugins/MyFilms/MesFilms.cs 2007-07-08 19:15:51 UTC (rev 678) @@ -329,7 +329,7 @@ if (CurrentConfig == "") CurrentConfig = xmlreader.GetValueAsString("MyFilms", "Current_Config", ""); - if (xmlreader.GetValueAsBool("MyFilms", "Menu_Config", false)) + if (!(xmlreader.GetValueAsBool("MyFilms", "Menu_Config", false))) CurrentConfig = xmlreader.GetValueAsString("MyFilms", "Default_Config", ""); else CurrentConfig = ""; @@ -652,8 +652,8 @@ if (boolselect) { string sLabel = wselectedlabel; - if (WStrSort == "Date") - StrSelect = "Date" + " like '" + string.Format("{0:dd/MM/yyyy}",DateTime.Parse(sLabel).ToShortDateString()) + "'"; + if ((WStrSort == "Date") || (WStrSort == "DateAdded")) + StrSelect = "Date" + " like '*" + string.Format("{0:dd/MM/yyyy}",DateTime.Parse(sLabel).ToShortDateString()) + "*'"; else { if (sLabel == "") @@ -716,7 +716,11 @@ { if (boolreturn)//in case of selection by view verify if value correspond excatly to the searched string { - string[] split = r[WStrSort].ToString().Split(new Char[] { ',' }); + string[] split; + if (WStrSort == "DateAdded") + split = string.Format("{0:yyyy/MM/dd}", r[WStrSort]).Split(new Char[] { ',' }); + else + split = r[WStrSort].ToString().Split(new Char[] { ',' }); foreach (string s in split) { if (s.Trim().ToLower() == wselectedlabel.Trim().ToLower()) @@ -1132,7 +1136,7 @@ foreach (DataRow enr in LectureDonn\xE9es(WstrSelect, WStrSort, WStrSortSens)) { - if (WStrSort == "Date") + if ((WStrSort == "Date") ||(WStrSort == "DateAdded")) champselect = string.Format("{0:yyyy/MM/dd}", enr["DateAdded"]); else { @@ -1439,7 +1443,7 @@ if (boolselect) { Change_LayOut(0); - getSelectFromDivx(StrSelect, WStrSort, " ASC", Wstar, false, ""); // preserve index from last time + getSelectFromDivx(StrSelect, WStrSort, StrSortSens, Wstar, false, ""); // preserve index from last time } else if (!(LoadDfltSlct)) Modified: trunk/plugins/MyFilms/MesFilmsDetail.cs =================================================================== --- trunk/plugins/MyFilms/MesFilmsDetail.cs 2007-07-07 21:15:11 UTC (rev 677) +++ trunk/plugins/MyFilms/MesFilmsDetail.cs 2007-07-08 19:15:51 UTC (rev 678) @@ -1033,15 +1033,23 @@ int at = 0; int count; string file = null; + string wfile = null; GUIDialogOK dlgOk = (GUIDialogOK)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_DIALOG_OK); while ((start <= end)) { count = end - start; at = filename.IndexOf(";", start, count); + if (at == -1) + { + wfile = filename.Trim(); file = SearchMovie(filename.Substring(start, end - start).Trim().ToString(), StrDirStor); + } else + { + wfile = filename.Substring(start, at - 1); file = SearchMovie(filename.Substring(start, at - start).Trim().ToString(), StrDirStor); + } //DataRow[] r = LectureDonn\xE9es(StrSelect, StrSort, StrSortSens); if (file == "false") { @@ -1147,7 +1155,7 @@ } } newItems.Clear(); - start = start + file.Length + 1; + start = start + wfile.Length + 1; } if (movies.Count > 1) { @@ -1489,16 +1497,20 @@ at = wdirstor.IndexOf(";", start, count); if (at == -1) { + if (wdirstor.Substring(end - start - 1, 1).Trim() == "\\") + if (System.IO.File.Exists(wdirstor.Substring(start, end - start).Trim().ToString() + file)) + return (wdirstor.Substring(start, end - start).Trim().ToString() + file); + else if (System.IO.File.Exists(wdirstor.Substring(start, end - start).Trim().ToString() + "\\" + file)) - { return (wdirstor.Substring(start, end - start).Trim().ToString() + "\\" + file); - } break; } - if (System.IO.File.Exists(wdirstor.Substring(start, at - start).Trim().ToString() + "\\" + file)) - { - return (wdirstor.Substring(start, at - start).Trim().ToString() + "\\" + file); - } + if (wdirstor.Substring(at - start - 1, 1).Trim() == "\\") + if (System.IO.File.Exists(wdirstor.Substring(start, at - start).Trim().ToString() + file)) + return (wdirstor.Substring(start, at - start).Trim().ToString() + file); + else + if (System.IO.File.Exists(wdirstor.Substring(start, at - start).Trim().ToString() + "\\" + file)) + return (wdirstor.Substring(start, at - start).Trim().ToString() + "\\" + file); start = at + 1; } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ze...@us...> - 2007-09-08 16:11:33
|
Revision: 906 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=906&view=rev Author: zebons Date: 2007-09-08 09:11:27 -0700 (Sat, 08 Sep 2007) Log Message: ----------- Rewrite c# code more modulable Modified Paths: -------------- trunk/plugins/MyFilms/AntMovieCatalog.Designer.cs trunk/plugins/MyFilms/AntMovieCatalog.xsd trunk/plugins/MyFilms/MesFilms.cs trunk/plugins/MyFilms/MesFilms.csproj trunk/plugins/MyFilms/MesFilmsDetail.cs trunk/plugins/MyFilms/MesFilmsSetup.Designer.cs trunk/plugins/MyFilms/MesFilmsSetup.cs Modified: trunk/plugins/MyFilms/AntMovieCatalog.Designer.cs =================================================================== --- trunk/plugins/MyFilms/AntMovieCatalog.Designer.cs 2007-09-07 23:59:25 UTC (rev 905) +++ trunk/plugins/MyFilms/AntMovieCatalog.Designer.cs 2007-09-08 16:11:27 UTC (rev 906) @@ -1167,8 +1167,7 @@ System.DateTime DateAdded, string Size, string Disks, - string Picture, - ContentsRow parentContentsRowByContents_Movie) { + string Picture) { MovieRow rowMovieRow = ((MovieRow)(this.NewRow())); rowMovieRow.ItemArray = new object[] { Number, @@ -1204,7 +1203,7 @@ Size, Disks, Picture, - parentContentsRowByContents_Movie[0]}; + null}; this.Rows.Add(rowMovieRow); return rowMovieRow; } @@ -1367,6 +1366,8 @@ this.columnSize.Namespace = ""; this.columnDisks.Namespace = ""; this.columnPicture.Namespace = ""; + this.columnContents_Id.AutoIncrement = true; + this.columnContents_Id.AllowDBNull = false; this.columnContents_Id.Namespace = ""; } @@ -2106,12 +2107,7 @@ [System.Diagnostics.DebuggerNonUserCodeAttribute()] public int Contents_Id { get { - try { - return ((int)(this[this.tableMovie.Contents_IdColumn])); - } - catch (System.InvalidCastException e) { - throw new System.Data.StrongTypingException("La valeur pour la colonne \'Contents_Id\' dans la table \'Movie\' est DBNull.", e); - } + return ((int)(this[this.tableMovie.Contents_IdColumn])); } set { this[this.tableMovie.Contents_IdColumn] = value; @@ -2457,16 +2453,6 @@ public void SetPictureNull() { this[this.tableMovie.PictureColumn] = System.Convert.DBNull; } - - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public bool IsContents_IdNull() { - return this.IsNull(this.tableMovie.Contents_IdColumn); - } - - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public void SetContents_IdNull() { - this[this.tableMovie.Contents_IdColumn] = System.Convert.DBNull; - } } [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")] Modified: trunk/plugins/MyFilms/AntMovieCatalog.xsd =================================================================== --- trunk/plugins/MyFilms/AntMovieCatalog.xsd 2007-09-07 23:59:25 UTC (rev 905) +++ trunk/plugins/MyFilms/AntMovieCatalog.xsd 2007-09-08 16:11:27 UTC (rev 906) @@ -18,58 +18,58 @@ <xs:element name="Catalog" msprop:Generator_UserTableName="Catalog" msprop:Generator_RowDeletedName="CatalogRowDeleted" msprop:Generator_RowChangedName="CatalogRowChanged" msprop:Generator_RowClassName="CatalogRow" msprop:Generator_RowChangingName="CatalogRowChanging" msprop:Generator_RowEvArgName="CatalogRowChangeEvent" msprop:Generator_RowEvHandlerName="CatalogRowChangeEventHandler" msprop:Generator_TableClassName="CatalogDataTable" msprop:Generator_TableVarName="tableCatalog" msprop:Generator_RowDeletingName="CatalogRowDeleting" msprop:Generator_TablePropName="Catalog"> <xs:complexType> <xs:sequence> - <xs:element name="Properties" msprop:Generator_UserColumnName="Properties" msprop:Generator_ColumnPropNameInRow="Properties" msprop:Generator_ColumnVarNameInTable="columnProperties" msprop:Generator_ColumnPropNameInTable="PropertiesColumn" type="xs:string" minOccurs="0" msdata:Ordinal="1" /> + <xs:element name="Properties" msprop:Generator_UserColumnName="Properties" msprop:Generator_ColumnVarNameInTable="columnProperties" msprop:Generator_ColumnPropNameInRow="Properties" msprop:Generator_ColumnPropNameInTable="PropertiesColumn" type="xs:string" minOccurs="0" msdata:Ordinal="1" /> <xs:element name="Contents" msprop:Generator_UserTableName="Contents" msprop:Generator_RowDeletedName="ContentsRowDeleted" msprop:Generator_RowChangedName="ContentsRowChanged" msprop:Generator_RowClassName="ContentsRow" msprop:Generator_RowChangingName="ContentsRowChanging" msprop:Generator_RowEvArgName="ContentsRowChangeEvent" msprop:Generator_RowEvHandlerName="ContentsRowChangeEventHandler" msprop:Generator_TableClassName="ContentsDataTable" msprop:Generator_TableVarName="tableContents" msprop:Generator_RowDeletingName="ContentsRowDeleting" msprop:Generator_TablePropName="Contents" minOccurs="0" maxOccurs="unbounded"> <xs:complexType> <xs:sequence> <xs:element name="Movie" msprop:Generator_UserTableName="Movie" msprop:Generator_RowDeletedName="MovieRowDeleted" msprop:Generator_RowChangedName="MovieRowChanged" msprop:Generator_RowClassName="MovieRow" msprop:Generator_RowChangingName="MovieRowChanging" msprop:Generator_RowEvArgName="MovieRowChangeEvent" msprop:Generator_RowEvHandlerName="MovieRowChangeEventHandler" msprop:Generator_TableClassName="MovieDataTable" msprop:Generator_TableVarName="tableMovie" msprop:Generator_RowDeletingName="MovieRowDeleting" msprop:Generator_TablePropName="Movie" minOccurs="0" maxOccurs="unbounded"> <xs:complexType> <xs:sequence> - <xs:element name="DateAdded" msdata:ReadOnly="true" msdata:Expression="Convert(Date,'System.DateTime')" msprop:Generator_UserColumnName="DateAdded" msprop:Generator_ColumnPropNameInRow="DateAdded" msprop:Generator_ColumnVarNameInTable="columnDateAdded" msprop:Generator_ColumnPropNameInTable="DateAddedColumn" type="xs:dateTime" minOccurs="0" msdata:Ordinal="29" /> + <xs:element name="DateAdded" msdata:ReadOnly="true" msdata:Expression="Convert(Date,'System.DateTime')" msprop:Generator_UserColumnName="DateAdded" msprop:Generator_ColumnVarNameInTable="columnDateAdded" msprop:Generator_ColumnPropNameInRow="DateAdded" msprop:Generator_ColumnPropNameInTable="DateAddedColumn" type="xs:dateTime" minOccurs="0" msdata:Ordinal="29" /> </xs:sequence> - <xs:attribute name="Number" msprop:Generator_UserColumnName="Number" msprop:Generator_ColumnPropNameInRow="Number" msprop:Generator_ColumnVarNameInTable="columnNumber" msprop:Generator_ColumnPropNameInTable="NumberColumn" type="xs:int" /> - <xs:attribute name="Checked" msprop:Generator_UserColumnName="Checked" msprop:Generator_ColumnPropNameInRow="Checked" msprop:Generator_ColumnVarNameInTable="columnChecked" msprop:Generator_ColumnPropNameInTable="CheckedColumn" type="xs:string" /> - <xs:attribute name="MediaLabel" msprop:Generator_UserColumnName="MediaLabel" msprop:Generator_ColumnVarNameInTable="columnMediaLabel" msprop:Generator_ColumnPropNameInRow="MediaLabel" msprop:Generator_ColumnPropNameInTable="MediaLabelColumn" type="xs:string" /> - <xs:attribute name="MediaType" msprop:Generator_UserColumnName="MediaType" msprop:Generator_ColumnPropNameInRow="MediaType" msprop:Generator_ColumnVarNameInTable="columnMediaType" msprop:Generator_ColumnPropNameInTable="MediaTypeColumn" type="xs:string" /> - <xs:attribute name="Source" msprop:Generator_UserColumnName="Source" msprop:Generator_ColumnVarNameInTable="columnSource" msprop:Generator_ColumnPropNameInRow="Source" msprop:Generator_ColumnPropNameInTable="SourceColumn" type="xs:string" /> - <xs:attribute name="Date" msprop:Generator_UserColumnName="Date" msprop:Generator_ColumnPropNameInRow="Date" msprop:Generator_ColumnVarNameInTable="columnDate" msprop:Generator_ColumnPropNameInTable="DateColumn" type="xs:string" /> - <xs:attribute name="Borrower" msprop:Generator_UserColumnName="Borrower" msprop:Generator_ColumnPropNameInRow="Borrower" msprop:Generator_ColumnVarNameInTable="columnBorrower" msprop:Generator_ColumnPropNameInTable="BorrowerColumn" type="xs:string" /> - <xs:attribute name="Rating" msprop:Generator_UserColumnName="Rating" msprop:Generator_ColumnPropNameInRow="Rating" msprop:Generator_ColumnVarNameInTable="columnRating" msprop:Generator_ColumnPropNameInTable="RatingColumn" type="xs:decimal" /> - <xs:attribute name="OriginalTitle" msprop:Generator_UserColumnName="OriginalTitle" msprop:Generator_ColumnPropNameInRow="OriginalTitle" msprop:Generator_ColumnVarNameInTable="columnOriginalTitle" msprop:Generator_ColumnPropNameInTable="OriginalTitleColumn" type="xs:string" /> - <xs:attribute name="TranslatedTitle" msprop:Generator_UserColumnName="TranslatedTitle" msprop:Generator_ColumnPropNameInRow="TranslatedTitle" msprop:Generator_ColumnVarNameInTable="columnTranslatedTitle" msprop:Generator_ColumnPropNameInTable="TranslatedTitleColumn" type="xs:string" /> - <xs:attribute name="FormattedTitle" msprop:Generator_UserColumnName="FormattedTitle" msprop:Generator_ColumnPropNameInRow="FormattedTitle" msprop:Generator_ColumnVarNameInTable="columnFormattedTitle" msprop:Generator_ColumnPropNameInTable="FormattedTitleColumn" type="xs:string" /> - <xs:attribute name="Director" msprop:Generator_UserColumnName="Director" msprop:Generator_ColumnPropNameInRow="Director" msprop:Generator_ColumnVarNameInTable="columnDirector" msprop:Generator_ColumnPropNameInTable="DirectorColumn" type="xs:string" /> - <xs:attribute name="Producer" msprop:Generator_UserColumnName="Producer" msprop:Generator_ColumnPropNameInRow="Producer" msprop:Generator_ColumnVarNameInTable="columnProducer" msprop:Generator_ColumnPropNameInTable="ProducerColumn" type="xs:string" /> - <xs:attribute name="Country" msprop:Generator_UserColumnName="Country" msprop:Generator_ColumnPropNameInRow="Country" msprop:Generator_ColumnVarNameInTable="columnCountry" msprop:Generator_ColumnPropNameInTable="CountryColumn" type="xs:string" /> - <xs:attribute name="Category" msprop:Generator_UserColumnName="Category" msprop:Generator_ColumnPropNameInRow="Category" msprop:Generator_ColumnVarNameInTable="columnCategory" msprop:Generator_ColumnPropNameInTable="CategoryColumn" type="xs:string" /> - <xs:attribute name="Year" msprop:Generator_UserColumnName="Year" msprop:Generator_ColumnPropNameInRow="Year" msprop:Generator_ColumnVarNameInTable="columnYear" msprop:Generator_ColumnPropNameInTable="YearColumn" type="xs:string" /> - <xs:attribute name="Length" msprop:Generator_UserColumnName="Length" msprop:Generator_ColumnPropNameInRow="Length" msprop:Generator_ColumnVarNameInTable="columnLength" msprop:Generator_ColumnPropNameInTable="LengthColumn" type="xs:string" /> - <xs:attribute name="Actors" msprop:Generator_UserColumnName="Actors" msprop:Generator_ColumnPropNameInRow="Actors" msprop:Generator_ColumnVarNameInTable="columnActors" msprop:Generator_ColumnPropNameInTable="ActorsColumn" type="xs:string" /> - <xs:attribute name="URL" msprop:Generator_UserColumnName="URL" msprop:Generator_ColumnVarNameInTable="columnURL" msprop:Generator_ColumnPropNameInRow="URL" msprop:Generator_ColumnPropNameInTable="URLColumn" type="xs:string" /> - <xs:attribute name="Description" msprop:Generator_UserColumnName="Description" msprop:Generator_ColumnPropNameInRow="Description" msprop:Generator_ColumnVarNameInTable="columnDescription" msprop:Generator_ColumnPropNameInTable="DescriptionColumn" type="xs:string" /> - <xs:attribute name="Comments" msprop:Generator_UserColumnName="Comments" msprop:Generator_ColumnPropNameInRow="Comments" msprop:Generator_ColumnVarNameInTable="columnComments" msprop:Generator_ColumnPropNameInTable="CommentsColumn" type="xs:string" /> - <xs:attribute name="VideoFormat" msprop:Generator_UserColumnName="VideoFormat" msprop:Generator_ColumnPropNameInRow="VideoFormat" msprop:Generator_ColumnVarNameInTable="columnVideoFormat" msprop:Generator_ColumnPropNameInTable="VideoFormatColumn" type="xs:string" /> - <xs:attribute name="VideoBitrate" msprop:Generator_UserColumnName="VideoBitrate" msprop:Generator_ColumnPropNameInRow="VideoBitrate" msprop:Generator_ColumnVarNameInTable="columnVideoBitrate" msprop:Generator_ColumnPropNameInTable="VideoBitrateColumn" type="xs:string" /> - <xs:attribute name="AudioFormat" msprop:Generator_UserColumnName="AudioFormat" msprop:Generator_ColumnPropNameInRow="AudioFormat" msprop:Generator_ColumnVarNameInTable="columnAudioFormat" msprop:Generator_ColumnPropNameInTable="AudioFormatColumn" type="xs:string" /> - <xs:attribute name="AudioBitrate" msprop:Generator_UserColumnName="AudioBitrate" msprop:Generator_ColumnPropNameInRow="AudioBitrate" msprop:Generator_ColumnVarNameInTable="columnAudioBitrate" msprop:Generator_ColumnPropNameInTable="AudioBitrateColumn" type="xs:string" /> - <xs:attribute name="Resolution" msprop:Generator_UserColumnName="Resolution" msprop:Generator_ColumnPropNameInRow="Resolution" msprop:Generator_ColumnVarNameInTable="columnResolution" msprop:Generator_ColumnPropNameInTable="ResolutionColumn" type="xs:string" /> - <xs:attribute name="Framerate" msprop:Generator_UserColumnName="Framerate" msprop:Generator_ColumnPropNameInRow="Framerate" msprop:Generator_ColumnVarNameInTable="columnFramerate" msprop:Generator_ColumnPropNameInTable="FramerateColumn" type="xs:string" /> - <xs:attribute name="Languages" msprop:Generator_UserColumnName="Languages" msprop:Generator_ColumnVarNameInTable="columnLanguages" msprop:Generator_ColumnPropNameInRow="Languages" msprop:Generator_ColumnPropNameInTable="LanguagesColumn" type="xs:string" /> - <xs:attribute name="Subtitles" msprop:Generator_UserColumnName="Subtitles" msprop:Generator_ColumnVarNameInTable="columnSubtitles" msprop:Generator_ColumnPropNameInRow="Subtitles" msprop:Generator_ColumnPropNameInTable="SubtitlesColumn" type="xs:string" /> - <xs:attribute name="Size" msprop:Generator_UserColumnName="Size" msprop:Generator_ColumnPropNameInRow="Size" msprop:Generator_ColumnVarNameInTable="columnSize" msprop:Generator_ColumnPropNameInTable="SizeColumn" type="xs:string" /> - <xs:attribute name="Disks" msprop:Generator_UserColumnName="Disks" msprop:Generator_ColumnPropNameInRow="Disks" msprop:Generator_ColumnVarNameInTable="columnDisks" msprop:Generator_ColumnPropNameInTable="DisksColumn" type="xs:string" /> - <xs:attribute name="Picture" msprop:Generator_UserColumnName="Picture" msprop:Generator_ColumnPropNameInRow="Picture" msprop:Generator_ColumnVarNameInTable="columnPicture" msprop:Generator_ColumnPropNameInTable="PictureColumn" type="xs:string" /> - <xs:attribute name="Contents_Id" msprop:Generator_UserColumnName="Contents_Id" msprop:Generator_ColumnPropNameInRow="Contents_Id" msprop:Generator_ColumnVarNameInTable="columnContents_Id" msprop:Generator_ColumnPropNameInTable="Contents_IdColumn" type="xs:int" use="prohibited" /> + <xs:attribute name="Number" msprop:Generator_UserColumnName="Number" msprop:Generator_ColumnVarNameInTable="columnNumber" msprop:Generator_ColumnPropNameInRow="Number" msprop:Generator_ColumnPropNameInTable="NumberColumn" type="xs:int" /> + <xs:attribute name="Checked" msprop:Generator_UserColumnName="Checked" msprop:Generator_ColumnVarNameInTable="columnChecked" msprop:Generator_ColumnPropNameInRow="Checked" msprop:Generator_ColumnPropNameInTable="CheckedColumn" type="xs:string" /> + <xs:attribute name="MediaLabel" msprop:Generator_UserColumnName="MediaLabel" msprop:Generator_ColumnPropNameInRow="MediaLabel" msprop:Generator_ColumnVarNameInTable="columnMediaLabel" msprop:Generator_ColumnPropNameInTable="MediaLabelColumn" type="xs:string" /> + <xs:attribute name="MediaType" msprop:Generator_UserColumnName="MediaType" msprop:Generator_ColumnVarNameInTable="columnMediaType" msprop:Generator_ColumnPropNameInRow="MediaType" msprop:Generator_ColumnPropNameInTable="MediaTypeColumn" type="xs:string" /> + <xs:attribute name="Source" msprop:Generator_UserColumnName="Source" msprop:Generator_ColumnPropNameInRow="Source" msprop:Generator_ColumnVarNameInTable="columnSource" msprop:Generator_ColumnPropNameInTable="SourceColumn" type="xs:string" /> + <xs:attribute name="Date" msprop:Generator_UserColumnName="Date" msprop:Generator_ColumnVarNameInTable="columnDate" msprop:Generator_ColumnPropNameInRow="Date" msprop:Generator_ColumnPropNameInTable="DateColumn" type="xs:string" /> + <xs:attribute name="Borrower" msprop:Generator_UserColumnName="Borrower" msprop:Generator_ColumnVarNameInTable="columnBorrower" msprop:Generator_ColumnPropNameInRow="Borrower" msprop:Generator_ColumnPropNameInTable="BorrowerColumn" type="xs:string" /> + <xs:attribute name="Rating" msprop:Generator_UserColumnName="Rating" msprop:Generator_ColumnVarNameInTable="columnRating" msprop:Generator_ColumnPropNameInRow="Rating" msprop:Generator_ColumnPropNameInTable="RatingColumn" type="xs:decimal" /> + <xs:attribute name="OriginalTitle" msprop:Generator_UserColumnName="OriginalTitle" msprop:Generator_ColumnVarNameInTable="columnOriginalTitle" msprop:Generator_ColumnPropNameInRow="OriginalTitle" msprop:Generator_ColumnPropNameInTable="OriginalTitleColumn" type="xs:string" /> + <xs:attribute name="TranslatedTitle" msprop:Generator_UserColumnName="TranslatedTitle" msprop:Generator_ColumnVarNameInTable="columnTranslatedTitle" msprop:Generator_ColumnPropNameInRow="TranslatedTitle" msprop:Generator_ColumnPropNameInTable="TranslatedTitleColumn" type="xs:string" /> + <xs:attribute name="FormattedTitle" msprop:Generator_UserColumnName="FormattedTitle" msprop:Generator_ColumnVarNameInTable="columnFormattedTitle" msprop:Generator_ColumnPropNameInRow="FormattedTitle" msprop:Generator_ColumnPropNameInTable="FormattedTitleColumn" type="xs:string" /> + <xs:attribute name="Director" msprop:Generator_UserColumnName="Director" msprop:Generator_ColumnVarNameInTable="columnDirector" msprop:Generator_ColumnPropNameInRow="Director" msprop:Generator_ColumnPropNameInTable="DirectorColumn" type="xs:string" /> + <xs:attribute name="Producer" msprop:Generator_UserColumnName="Producer" msprop:Generator_ColumnVarNameInTable="columnProducer" msprop:Generator_ColumnPropNameInRow="Producer" msprop:Generator_ColumnPropNameInTable="ProducerColumn" type="xs:string" /> + <xs:attribute name="Country" msprop:Generator_UserColumnName="Country" msprop:Generator_ColumnVarNameInTable="columnCountry" msprop:Generator_ColumnPropNameInRow="Country" msprop:Generator_ColumnPropNameInTable="CountryColumn" type="xs:string" /> + <xs:attribute name="Category" msprop:Generator_UserColumnName="Category" msprop:Generator_ColumnVarNameInTable="columnCategory" msprop:Generator_ColumnPropNameInRow="Category" msprop:Generator_ColumnPropNameInTable="CategoryColumn" type="xs:string" /> + <xs:attribute name="Year" msprop:Generator_UserColumnName="Year" msprop:Generator_ColumnVarNameInTable="columnYear" msprop:Generator_ColumnPropNameInRow="Year" msprop:Generator_ColumnPropNameInTable="YearColumn" type="xs:string" /> + <xs:attribute name="Length" msprop:Generator_UserColumnName="Length" msprop:Generator_ColumnVarNameInTable="columnLength" msprop:Generator_ColumnPropNameInRow="Length" msprop:Generator_ColumnPropNameInTable="LengthColumn" type="xs:string" /> + <xs:attribute name="Actors" msprop:Generator_UserColumnName="Actors" msprop:Generator_ColumnVarNameInTable="columnActors" msprop:Generator_ColumnPropNameInRow="Actors" msprop:Generator_ColumnPropNameInTable="ActorsColumn" type="xs:string" /> + <xs:attribute name="URL" msprop:Generator_UserColumnName="URL" msprop:Generator_ColumnPropNameInRow="URL" msprop:Generator_ColumnVarNameInTable="columnURL" msprop:Generator_ColumnPropNameInTable="URLColumn" type="xs:string" /> + <xs:attribute name="Description" msprop:Generator_UserColumnName="Description" msprop:Generator_ColumnVarNameInTable="columnDescription" msprop:Generator_ColumnPropNameInRow="Description" msprop:Generator_ColumnPropNameInTable="DescriptionColumn" type="xs:string" /> + <xs:attribute name="Comments" msprop:Generator_UserColumnName="Comments" msprop:Generator_ColumnVarNameInTable="columnComments" msprop:Generator_ColumnPropNameInRow="Comments" msprop:Generator_ColumnPropNameInTable="CommentsColumn" type="xs:string" /> + <xs:attribute name="VideoFormat" msprop:Generator_UserColumnName="VideoFormat" msprop:Generator_ColumnVarNameInTable="columnVideoFormat" msprop:Generator_ColumnPropNameInRow="VideoFormat" msprop:Generator_ColumnPropNameInTable="VideoFormatColumn" type="xs:string" /> + <xs:attribute name="VideoBitrate" msprop:Generator_UserColumnName="VideoBitrate" msprop:Generator_ColumnVarNameInTable="columnVideoBitrate" msprop:Generator_ColumnPropNameInRow="VideoBitrate" msprop:Generator_ColumnPropNameInTable="VideoBitrateColumn" type="xs:string" /> + <xs:attribute name="AudioFormat" msprop:Generator_UserColumnName="AudioFormat" msprop:Generator_ColumnVarNameInTable="columnAudioFormat" msprop:Generator_ColumnPropNameInRow="AudioFormat" msprop:Generator_ColumnPropNameInTable="AudioFormatColumn" type="xs:string" /> + <xs:attribute name="AudioBitrate" msprop:Generator_UserColumnName="AudioBitrate" msprop:Generator_ColumnVarNameInTable="columnAudioBitrate" msprop:Generator_ColumnPropNameInRow="AudioBitrate" msprop:Generator_ColumnPropNameInTable="AudioBitrateColumn" type="xs:string" /> + <xs:attribute name="Resolution" msprop:Generator_UserColumnName="Resolution" msprop:Generator_ColumnVarNameInTable="columnResolution" msprop:Generator_ColumnPropNameInRow="Resolution" msprop:Generator_ColumnPropNameInTable="ResolutionColumn" type="xs:string" /> + <xs:attribute name="Framerate" msprop:Generator_UserColumnName="Framerate" msprop:Generator_ColumnVarNameInTable="columnFramerate" msprop:Generator_ColumnPropNameInRow="Framerate" msprop:Generator_ColumnPropNameInTable="FramerateColumn" type="xs:string" /> + <xs:attribute name="Languages" msprop:Generator_UserColumnName="Languages" msprop:Generator_ColumnPropNameInRow="Languages" msprop:Generator_ColumnVarNameInTable="columnLanguages" msprop:Generator_ColumnPropNameInTable="LanguagesColumn" type="xs:string" /> + <xs:attribute name="Subtitles" msprop:Generator_UserColumnName="Subtitles" msprop:Generator_ColumnPropNameInRow="Subtitles" msprop:Generator_ColumnVarNameInTable="columnSubtitles" msprop:Generator_ColumnPropNameInTable="SubtitlesColumn" type="xs:string" /> + <xs:attribute name="Size" msprop:Generator_UserColumnName="Size" msprop:Generator_ColumnVarNameInTable="columnSize" msprop:Generator_ColumnPropNameInRow="Size" msprop:Generator_ColumnPropNameInTable="SizeColumn" type="xs:string" /> + <xs:attribute name="Disks" msprop:Generator_UserColumnName="Disks" msprop:Generator_ColumnVarNameInTable="columnDisks" msprop:Generator_ColumnPropNameInRow="Disks" msprop:Generator_ColumnPropNameInTable="DisksColumn" type="xs:string" /> + <xs:attribute name="Picture" msprop:Generator_UserColumnName="Picture" msprop:Generator_ColumnVarNameInTable="columnPicture" msprop:Generator_ColumnPropNameInRow="Picture" msprop:Generator_ColumnPropNameInTable="PictureColumn" type="xs:string" /> + <xs:attribute name="Contents_Id" msdata:AutoIncrement="true" msprop:Generator_UserColumnName="Contents_Id" msprop:Generator_ColumnVarNameInTable="columnContents_Id" msprop:Generator_ColumnPropNameInRow="Contents_Id" msprop:Generator_ColumnPropNameInTable="Contents_IdColumn" type="xs:int" msdata:AllowDBNull="false" use="prohibited" /> </xs:complexType> </xs:element> </xs:sequence> - <xs:attribute name="Contents_Id" msdata:AutoIncrement="true" msprop:Generator_UserColumnName="Contents_Id" msprop:Generator_ColumnPropNameInRow="Contents_Id" msprop:Generator_ColumnVarNameInTable="columnContents_Id" msprop:Generator_ColumnPropNameInTable="Contents_IdColumn" type="xs:int" msdata:AllowDBNull="false" use="prohibited" /> - <xs:attribute name="Catalog_Id" msprop:Generator_UserColumnName="Catalog_Id" msprop:Generator_ColumnPropNameInRow="Catalog_Id" msprop:Generator_ColumnVarNameInTable="columnCatalog_Id" msprop:Generator_ColumnPropNameInTable="Catalog_IdColumn" type="xs:int" use="prohibited" /> + <xs:attribute name="Contents_Id" msdata:AutoIncrement="true" msprop:Generator_UserColumnName="Contents_Id" msprop:Generator_ColumnVarNameInTable="columnContents_Id" msprop:Generator_ColumnPropNameInRow="Contents_Id" msprop:Generator_ColumnPropNameInTable="Contents_IdColumn" type="xs:int" msdata:AllowDBNull="false" use="prohibited" /> + <xs:attribute name="Catalog_Id" msprop:Generator_UserColumnName="Catalog_Id" msprop:Generator_ColumnVarNameInTable="columnCatalog_Id" msprop:Generator_ColumnPropNameInRow="Catalog_Id" msprop:Generator_ColumnPropNameInTable="Catalog_IdColumn" type="xs:int" use="prohibited" /> </xs:complexType> </xs:element> </xs:sequence> - <xs:attribute name="AntMovieCatalog_Id" msprop:Generator_UserColumnName="AntMovieCatalog_Id" msprop:Generator_ColumnPropNameInRow="AntMovieCatalog_Id" msprop:Generator_ColumnVarNameInTable="columnAntMovieCatalog_Id" msprop:Generator_ColumnPropNameInTable="AntMovieCatalog_IdColumn" type="xs:int" use="prohibited" /> - <xs:attribute name="Catalog_Id" msdata:AutoIncrement="true" msprop:Generator_UserColumnName="Catalog_Id" msprop:Generator_ColumnPropNameInRow="Catalog_Id" msprop:Generator_ColumnVarNameInTable="columnCatalog_Id" msprop:Generator_ColumnPropNameInTable="Catalog_IdColumn" type="xs:int" msdata:AllowDBNull="false" use="prohibited" /> + <xs:attribute name="AntMovieCatalog_Id" msprop:Generator_UserColumnName="AntMovieCatalog_Id" msprop:Generator_ColumnVarNameInTable="columnAntMovieCatalog_Id" msprop:Generator_ColumnPropNameInRow="AntMovieCatalog_Id" msprop:Generator_ColumnPropNameInTable="AntMovieCatalog_IdColumn" type="xs:int" use="prohibited" /> + <xs:attribute name="Catalog_Id" msdata:AutoIncrement="true" msprop:Generator_UserColumnName="Catalog_Id" msprop:Generator_ColumnVarNameInTable="columnCatalog_Id" msprop:Generator_ColumnPropNameInRow="Catalog_Id" msprop:Generator_ColumnPropNameInTable="Catalog_IdColumn" type="xs:int" msdata:AllowDBNull="false" use="prohibited" /> </xs:complexType> </xs:element> </xs:choice> Modified: trunk/plugins/MyFilms/MesFilms.cs =================================================================== --- trunk/plugins/MyFilms/MesFilms.cs 2007-09-07 23:59:25 UTC (rev 905) +++ trunk/plugins/MyFilms/MesFilms.cs 2007-09-08 16:11:27 UTC (rev 906) @@ -50,9 +50,13 @@ /// </summary> public class MesFilms : GUIWindow, ISetupForm { + + private BaseMesFilms films; + #region Descriptif zones Ecran - const int ID_MesFilmsDetail = 7987; + public const int ID_MesFilms = 7986; + public const int ID_MesFilmsDetail = 7987; enum Controls : int { @@ -62,12 +66,16 @@ CTRL_BtnSearchA = 5, CTRL_BtnLayout = 6, CTRL_TxtSelect = 12, - CTRL_BtnStop = 319, - CTRL_BtnPause = 315, - CTRL_BtnBack = 312, - CTRL_BtnSuiv = 322, - CTRL_BtnRewind = 313, - CTRL_BtnForward = 323, + CTRL_LblList = 20, + CTRL_LblIcons = 21, + CTRL_LblBigIcons = 22, + CTRL_LblFilmStrip = 23, + //CTRL_BtnStop = 319, + //CTRL_BtnPause = 315, + //CTRL_BtnBack = 312, + //CTRL_BtnSuiv = 322, + //CTRL_BtnRewind = 313, + //CTRL_BtnForward = 323, CTRL_List = 1026, CTRL_Image = 1020, CTRL_Image2 = 1021, @@ -75,21 +83,21 @@ CTRL_TxtGenre = 1024, CTRL_Texte = 1025, CTRL_Title = 1027, - CTRL_ImgGrStar1 = 1051, - CTRL_ImgGrStar2 = 1052, - CTRL_ImgGrStar3 = 1053, - CTRL_ImgGrStar4 = 1054, - CTRL_ImgGrStar5 = 1055, - CTRL_ImgHStar1 = 1056, - CTRL_ImgHStar2 = 1057, - CTRL_ImgHStar3 = 1058, - CTRL_ImgHStar4 = 1059, - CTRL_ImgHStar5 = 1060, - CTRL_ImgStar1 = 1061, - CTRL_ImgStar2 = 1062, - CTRL_ImgStar3 = 1063, - CTRL_ImgStar4 = 1064, - CTRL_ImgStar5 = 1065, + //CTRL_ImgGrStar1 = 1051, + //CTRL_ImgGrStar2 = 1052, + //CTRL_ImgGrStar3 = 1053, + //CTRL_ImgGrStar4 = 1054, + //CTRL_ImgGrStar5 = 1055, + //CTRL_ImgHStar1 = 1056, + //CTRL_ImgHStar2 = 1057, + //CTRL_ImgHStar3 = 1058, + //CTRL_ImgHStar4 = 1059, + //CTRL_ImgHStar5 = 1060, + //CTRL_ImgStar1 = 1061, + //CTRL_ImgStar2 = 1062, + //CTRL_ImgStar3 = 1063, + //CTRL_ImgStar4 = 1064, + //CTRL_ImgStar5 = 1065, CTRL_NbObjects = 2073 } [SkinControlAttribute((int)Controls.CTRL_TxtSelect)] @@ -113,52 +121,10 @@ [SkinControlAttribute((int)Controls.CTRL_Image2)] protected GUIImage ImgLstFilm2 = null; public int Layout = 0; - - int Ctrl_DspImage; - int Ctrl_DspImage2; - bool boolselect = false; - string StrSelect = null; - string StrTitleSelect = null; - string StrFilmSelect = ""; - string StrSort = null; - string StrActors = ""; - string StrTxtSelect = ""; - string StrStorage = null; - string StrIdentItem = null; - string StrSort1 = null; - string StrTSort1 = null; - string StrTitle1 = null; - string StrViewItem1 = null; - string StrViewText1 = null; - string StrViewItem2 = null; - string StrViewText2 = null; - string StrViewDfltItem = null; - string StrViewDfltText = null; - string StrFileXml = null; - string StrFileType = null; - string StrPathImg = null; - string StrSortSens = null; - int StrLayOut = 0; - public string WStrSort = ""; - public string WStrSelect = null; - public string WStrSortSens = null; - public bool boolreturn = false; - public bool boolstorage = false; - string wselectedlabel = ""; - string StrDfltSelect = null; - string CurrentSortMethod = null; - decimal w_rating = 0; - int l_index = 0; - string l_title = ""; - string FileImage = "9999"; - AntMovieCatalog mydivx =new AntMovieCatalog(); - private string StrPluginName = "Films"; - private string CurrentConfig; - private int NbConfig; - string TitleDelim = null; - string Wstar; - private int LastID = 0; + public static Configuration conf; + private string currentConfig; + private string strPluginName; #endregion #region events @@ -223,7 +189,7 @@ } public bool GetHome(out string strButtonText, out string strButtonImage, out string strButtonImageFocus, out string strPictureImage) { - string wPluginName = StrPluginName; + string wPluginName = strPluginName; using (MediaPortal.Profile.Settings xmlreader = new MediaPortal.Profile.Settings(Config.GetFile(Config.Dir.Config, "MyFilms.xml"))) { wPluginName = xmlreader.GetValueAsString("MyFilms", "PluginName", "My Films"); @@ -241,14 +207,7 @@ } public override int GetID { - get - { - return 7986; - } - set - { - base.GetID = value; - } + get {return ID_MesFilms;} } public override bool Init() @@ -266,21 +225,21 @@ { if (actionType.wID == Action.ActionType.ACTION_PARENT_DIR) if (GetPrevFilmList()) return; - - - if ((actionType.wID == Action.ActionType.ACTION_PREVIOUS_MENU) && (boolselect)) + + + if ((actionType.wID == Action.ActionType.ACTION_PREVIOUS_MENU) && (conf.Boolselect)) { Change_LayOut(Layout); if (GetPrevFilmList()) return; } - if ((actionType.wID == Action.ActionType.ACTION_PREVIOUS_MENU) && (boolreturn)) + if ((actionType.wID == Action.ActionType.ACTION_PREVIOUS_MENU) && (conf.Boolreturn)) { - boolreturn = false; - Change_view(WStrSort); + conf.Boolreturn = false; + Change_view(conf.WStrSort); return; } if (actionType.wID == Action.ActionType.ACTION_PREVIOUS_MENU) - if (GetPrevFilmList()) + if (GetPrevFilmList()) return; base.OnAction(actionType); } @@ -299,65 +258,27 @@ //--------------------------------------------------------------------------------------- base.OnMessage(messageType); - g_Player.PlayBackStopped += new MediaPortal.Player.g_Player.StoppedHandler(OnPlayBackStopped); - g_Player.PlayBackEnded += new MediaPortal.Player.g_Player.EndedHandler(OnPlayBackEnded); - if (g_Player.Playing) - affich_overlay(); - else - supprim_overlay(); - using (MediaPortal.Profile.Settings xmlreader = new MediaPortal.Profile.Settings(Config.GetFile(Config.Dir.Config, "MyFilms.xml"))) + if (PreviousWindowId != ID_MesFilmsDetail) { - if (PreviousWindowId == ID_MesFilmsDetail) - { - CurrentConfig = xmlreader.GetValueAsString("MyFilms", "Current_Config", ""); - Load_Config(CurrentConfig ,false); - Fin_Charge_Init(false); - } - else - { - NbConfig = xmlreader.GetValueAsInt("MyFilms", "NbConfig", 0); - if (NbConfig == 0) - { - GUIDialogOK dlgOk = (GUIDialogOK)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_DIALOG_OK); - dlgOk.SetHeading(3);//my videos - dlgOk.SetLine(1, "No Configuration defined"); - dlgOk.SetLine(2, "Please enter setup first"); - dlgOk.DoModal(GetID); - GUIWindowManager.ShowPreviousWindow(); - } - bool boolchoice = true; - if (CurrentConfig == "") - CurrentConfig = xmlreader.GetValueAsString("MyFilms", "Current_Config", ""); - - if (!(xmlreader.GetValueAsBool("MyFilms", "Menu_Config", false))) - CurrentConfig = xmlreader.GetValueAsString("MyFilms", "Default_Config", ""); - else - CurrentConfig = ""; - if (CurrentConfig == "") - { - boolchoice = false; - CurrentConfig = Choice_Config(); // "" => user esc's dialog on plugin startup so exit plugin unchanged - } - CurrentConfig = Control_Access_Config(CurrentConfig); - if ((CurrentConfig == "") && (NbConfig > 1) && (boolchoice)) //error password ? so if many config => choice config menu - CurrentConfig = Choice_Config(); - if (CurrentConfig == "") //continuing here with CurrentConfig = "" will cause exception in GuiWindowManager.cs so exit plugin - GUIWindowManager.ShowPreviousWindow(); - else - { - if (CurrentConfig.Length == 0) - GUIWindowManager.ShowPreviousWindow(); - Load_Config(CurrentConfig, true); - Fin_Charge_Init(false); - } - } + Configuration.Current_Config(); + Load_Config(Configuration.CurrentConfig, true); } + + if (Configuration.CurrentConfig.Length == 0) + GUIWindowManager.ShowPreviousWindow(); + + Fin_Charge_Init(false); return true; case GUIMessage.MessageType.GUI_MSG_WINDOW_DEINIT: //called when exiting plugin either by prev menu or pressing home button - if (CurrentConfig != "") save_config_values(); - mydivx.Clear(); - mydivx.Dispose(); + if (Configuration.CurrentConfig != "") + conf.StrLayOut = Layout; + if (facadeView.SelectedListItemIndex == -1) + Configuration.SaveConfiguration(Configuration.CurrentConfig, -1, ""); + else + Configuration.SaveConfiguration(Configuration.CurrentConfig, facadeView.SelectedListItem.ItemId, facadeView.SelectedListItem.Label); + //mydivx.Clear(); + //mydivx.Dispose(); facadeView.Clear(); facadeView.FreeResources(); return true; // fall through to call base class? @@ -366,7 +287,7 @@ //--------------------------------------------------------------------------------------- // Display Informations about List Item //--------------------------------------------------------------------------------------- - if ((iControl == (int)Controls.CTRL_List) && !(boolselect || (facadeView.SelectedListItemIndex > -1 && facadeView.SelectedListItem.IsFolder))) //xxxx + if ((iControl == (int)Controls.CTRL_List) && !(conf.Boolselect || (facadeView.SelectedListItemIndex > -1 && facadeView.SelectedListItem.IsFolder))) //xxxx { if (facadeView.SelectedListItemIndex > -1) { @@ -381,49 +302,51 @@ } else { - masquage_Lstdetail(); + GUIControl.ShowControl(GetID, 34); + affichage_rating(0); } } base.OnMessage(messageType); return true; - case GUIMessage.MessageType.GUI_MSG_SETFOCUS: - //--------------------------------------------------------------------------------------- - // Hide Informations about List Item - //--------------------------------------------------------------------------------------- - if ((iControl == 0) && (dControl == (int)Controls.CTRL_List)) - { - base.OnMessage(messageType); - return true; - } - if ((dControl == (int)Controls.CTRL_List) && !(boolselect || (facadeView.SelectedListItemIndex > -1 && facadeView.SelectedListItem.IsFolder))) //xxxx - { - if (facadeView.SelectedListItemIndex > -1) - { - affichage_Lstdetail(facadeView.SelectedListItem.ItemId, true, facadeView.SelectedListItem.Label); - } - } - else - if (facadeView.SelectedListItemIndex > -1 && facadeView.SelectedListItem.IsFolder) - { - affichage_Lstdetail(facadeView.SelectedListItem.ItemId, false, facadeView.SelectedListItem.Label); - } - else - { - masquage_Lstdetail(); - } - base.OnMessage(messageType); - return true; + //case GUIMessage.MessageType.GUI_MSG_SETFOCUS: + // //--------------------------------------------------------------------------------------- + // // Hide Informations about List Item + // //--------------------------------------------------------------------------------------- + // if ((iControl == 0) && (dControl == (int)Controls.CTRL_List)) + // { + // base.OnMessage(messageType); + // return true; + // } + // if ((dControl == (int)Controls.CTRL_List) && !(conf.Boolselect || (facadeView.SelectedListItemIndex > -1 && facadeView.SelectedListItem.IsFolder))) //xxxx + // { + // if (facadeView.SelectedListItemIndex > -1) + // { + // affichage_Lstdetail(facadeView.SelectedListItem.ItemId, true, facadeView.SelectedListItem.Label); + // } + // } + // else + // if (facadeView.SelectedListItemIndex > -1 && facadeView.SelectedListItem.IsFolder) + // { + // affichage_Lstdetail(facadeView.SelectedListItem.ItemId, false, facadeView.SelectedListItem.Label); + // } + // else + // { + // GUIControl.ShowControl(GetID, 34); + //affichage_rating(0); + // } + // base.OnMessage(messageType); + // return true; case GUIMessage.MessageType.GUI_MSG_CLICKED: //--------------------------------------------------------------------------------------- // Mouse/Keyboard Clicked //--------------------------------------------------------------------------------------- - if ((iControl == (int)Controls.CTRL_BtnSrtBy) && (boolselect)) + if ((iControl == (int)Controls.CTRL_BtnSrtBy) && (conf.Boolselect)) // No change sort method and no searchs during select return true; - if ((iControl == (int)Controls.CTRL_BtnSearchT) || (iControl == (int)Controls.CTRL_BtnSearchA) && (boolselect)) - boolselect = false; + if ((iControl == (int)Controls.CTRL_BtnSearchT) || (iControl == (int)Controls.CTRL_BtnSearchA) && (conf.Boolselect)) + conf.Boolselect = false; if (iControl == (int)Controls.CTRL_BtnSearchT) // Search by Title { @@ -436,9 +359,9 @@ { if (control_searchText(keyboard.Text)) { - StrSelect = StrTitle1.ToString() + " like '*" + keyboard.Text + "*'"; - StrTxtSelect = "Selection " + GUILocalizeStrings.Get(369) + " [*" + keyboard.Text + @"*]"; - StrTitleSelect = ""; + conf.StrSelect = conf.StrTitle1.ToString() + " like '*" + keyboard.Text + "*'"; + conf.StrTxtSelect = "Selection " + GUILocalizeStrings.Get(369) + " [*" + keyboard.Text + @"*]"; + conf.StrTitleSelect = ""; GetFilmList(); } else @@ -459,12 +382,12 @@ if (control_searchText(keyboard.Text)) { Change_LayOut(0); - WStrSort = "ACTORS"; - wselectedlabel = ""; - WStrSortSens = " ASC"; + conf.WStrSort = "ACTORS"; + conf.Wselectedlabel = ""; + conf.WStrSortSens = " ASC"; BtnSrtBy.IsAscending = true; - StrActors = keyboard.Text; - getSelectFromDivx("Actors like '*" + keyboard.Text + "*'", WStrSort, WStrSortSens, keyboard.Text, true, ""); + conf.StrActors = keyboard.Text; + getSelectFromDivx("Actors like '*" + keyboard.Text + "*'", conf.WStrSort, conf.WStrSortSens, keyboard.Text, true, ""); } else return false; @@ -474,51 +397,51 @@ if (iControl == (int)Controls.CTRL_BtnSrtBy) // Change Sort Method { - l_index = 0; - switch (StrSort) + conf.StrIndex = 0; + switch (conf.StrSort) { case "TranslatedTitle": case "OriginalTitle": case "FormattedTitle": - CurrentSortMethod = GUILocalizeStrings.Get(366); - StrSort = "YEAR"; - StrSortSens = " DESC"; + conf.CurrentSortMethod = GUILocalizeStrings.Get(366); + conf.StrSort = "YEAR"; + conf.StrSortSens = " DESC"; break; case "YEAR": - CurrentSortMethod = GUILocalizeStrings.Get(621); - StrSort = "DateAdded"; - StrSortSens = " DESC"; + conf.CurrentSortMethod = GUILocalizeStrings.Get(621); + conf.StrSort = "DateAdded"; + conf.StrSortSens = " DESC"; break; case "DateAdded": - CurrentSortMethod = GUILocalizeStrings.Get(367); - StrSort = "RATING"; - StrSortSens = " DESC"; + conf.CurrentSortMethod = GUILocalizeStrings.Get(367); + conf.StrSort = "RATING"; + conf.StrSortSens = " DESC"; break; case "RATING": - if (StrSort1 != "(none)") + if (conf.StrSort1 != "(none)") { - CurrentSortMethod = StrTSort1; - StrSort = StrSort1; - StrSortSens = " ASC"; + conf.CurrentSortMethod = conf.StrTSort1; + conf.StrSort = conf.StrSort1; + conf.StrSortSens = " ASC"; } else { - CurrentSortMethod = GUILocalizeStrings.Get(103); - StrSort = StrTitle1; - StrSortSens = " ASC"; + conf.CurrentSortMethod = GUILocalizeStrings.Get(103); + conf.StrSort = conf.StrTitle1; + conf.StrSortSens = " ASC"; } break; default: - CurrentSortMethod = GUILocalizeStrings.Get(103); - StrSort = StrTitle1; - StrSortSens = " ASC"; + conf.CurrentSortMethod = GUILocalizeStrings.Get(103); + conf.StrSort = conf.StrTitle1; + conf.StrSortSens = " ASC"; break; } - BtnSrtBy.Label = CurrentSortMethod; - if (!boolselect) + BtnSrtBy.Label = conf.CurrentSortMethod; + if (!conf.Boolselect) GetFilmList(); else - getSelectFromDivx(StrTitle1.ToString() + " not like ''", StrSort, StrSortSens, "*", true, ""); + getSelectFromDivx(conf.StrTitle1.ToString() + " not like ''", conf.StrSort, conf.StrSortSens, "*", true, ""); return true; } if (iControl == (int)Controls.CTRL_BtnViewAs) @@ -527,60 +450,41 @@ Selection_type_Video(); return base.OnMessage(messageType); } - if ((iControl == (int)Controls.CTRL_BtnLayout) && !boolselect) + if ((iControl == (int)Controls.CTRL_BtnLayout) && !conf.Boolselect) // Change Layout View { - if (Layout == 1) - { - GUIControl.SetControlLabel(GetID, (int)Controls.CTRL_BtnLayout, GUILocalizeStrings.Get(417)); - facadeView.View = GUIFacadeControl.ViewMode.LargeIcons; - Layout = 2; - } - else if (Layout == 2) - { - GUIControl.SetControlLabel(GetID, (int)Controls.CTRL_BtnLayout, GUILocalizeStrings.Get(101)); - facadeView.View = GUIFacadeControl.ViewMode.List; - // Layout = 3; - //} - //else if (Layout == 3) - //{ - // GUIControl.SetControlLabel(GetID, (int)Controls.CTRL_BtnLayout, GUILocalizeStrings.Get(733)); - // facadeView.View = GUIFacadeControl.ViewMode.Filmstrip; + if (Layout == 3) Layout = 0; - } else - { - GUIControl.SetControlLabel(GetID, (int)Controls.CTRL_BtnLayout, GUILocalizeStrings.Get(100)); - facadeView.View = GUIFacadeControl.ViewMode.SmallIcons; - Layout = 1; - } + Layout = Layout + 1; + Change_LayOut(Layout); GetFilmList(); return base.OnMessage(messageType); } - + if (iControl == (int)Controls.CTRL_List) { if (facadeView.SelectedListItemIndex > -1) { - if (!facadeView.SelectedListItem.IsFolder && !boolselect) + if (!facadeView.SelectedListItem.IsFolder && !conf.Boolselect) // New Window for detailed selected item information { - //l_index = facadeView.SelectedListItemIndex; - //save_config_values(); - mydivx.Clear(); + conf.StrIndex = facadeView.SelectedListItemIndex; GUIWindowManager.ActivateWindow(ID_MesFilmsDetail); } else // View List as selected { - wselectedlabel = facadeView.SelectedListItem.Label; + conf.Wselectedlabel = facadeView.SelectedListItem.Label; Change_LayOut(Layout); - if (!facadeView.SelectedListItem.IsFolder) - boolreturn = true; + if (facadeView.SelectedListItem.IsFolder) + conf.Boolreturn = false; + else + conf.Boolreturn = true; do { - if (StrTitleSelect != "") StrTitleSelect += TitleDelim; - StrTitleSelect += wselectedlabel; + if (conf.StrTitleSelect != "") conf.StrTitleSelect += conf.TitleDelim; + conf.StrTitleSelect += conf.Wselectedlabel; } while (GetFilmList() == false); //keep calling while single folders found } } @@ -595,49 +499,49 @@ /// <summary>Jumps to prev folder in FilmList by modifying Selects and calling GetFilmList</summary> /// <returns>If returns false means cannot jump back any further, so caller must exit plugin to main menu.</returns> bool GetPrevFilmList() - { + { string SelItem; - if (StrTitleSelect == "") + if (conf.StrTitleSelect == "") { - if (NewString.Left(StrTxtSelect, 9) == "Selection" || (StrTxtSelect == "" && boolselect)) //original code block refactored + if (NewString.Left(conf.StrTxtSelect, 9) == "Selection" || (conf.StrTxtSelect == "" && conf.Boolselect)) //original code block refactored {//jump back to main full list - boolselect = false; - StrSelect = StrTxtSelect = ""; - l_index = 0; + conf.Boolselect = false; + conf.StrSelect = conf.StrTxtSelect = ""; + conf.StrIndex = 0; GetFilmList(); return true; } - if (StrTxtSelect == "") + if (conf.StrTxtSelect == "") { return false; } else { // Jump back to prev view_display (categorised by year, genre etc) - if (WStrSort == "ACTORS") + if (conf.WStrSort == "ACTORS") { - StrSelect = "Actors like '*" + StrActors + "*'"; - StrTxtSelect = "Selection"; - getSelectFromDivx("Actors like '*" + StrActors + "*'", WStrSort, WStrSortSens, StrActors, true, ""); + conf.StrSelect = "Actors like '*" + conf.StrActors + "*'"; + conf.StrTxtSelect = "Selection"; + getSelectFromDivx("Actors like '*" + conf.StrActors + "*'", conf.WStrSort, conf.WStrSortSens, conf.StrActors, true, ""); } else { - SelItem = NewString.StripChars(@"[]", StrTxtSelect); - if (WStrSort == "DateAdded") - getSelectFromDivx(StrTitle1.ToString() + " not like ''", "Date", " DESC", "*", true, SelItem); + SelItem = NewString.StripChars(@"[]", conf.StrTxtSelect); + if (conf.WStrSort == "DateAdded") + getSelectFromDivx(conf.StrTitle1.ToString() + " not like ''", "Date", " DESC", "*", true, SelItem); else - getSelectFromDivx(StrTitle1.ToString() + " not like ''", WStrSort, WStrSortSens, "*", true, SelItem); - StrSelect = ""; + getSelectFromDivx(conf.StrTitle1.ToString() + " not like ''", conf.WStrSort, conf.WStrSortSens, "*", true, SelItem); + conf.StrSelect = ""; } } } else { - SelItem = NewString.NPosRight(TitleDelim, StrTitleSelect, -1, false, false); // get last substring - if (NewString.PosCount(TitleDelim, StrTitleSelect, false) > 0) - StrTitleSelect = NewString.NPosLeft(TitleDelim, StrTitleSelect, -1, false, false); //jump back a delim + SelItem = NewString.NPosRight(conf.TitleDelim, conf.StrTitleSelect, -1, false, false); // get last substring + if (NewString.PosCount(conf.TitleDelim, conf.StrTitleSelect, false) > 0) + conf.StrTitleSelect = NewString.NPosLeft(conf.TitleDelim, conf.StrTitleSelect, -1, false, false); //jump back a delim else - StrTitleSelect = ""; + conf.StrTitleSelect = ""; if (GetFilmList(SelItem) == false) // if single folder then call this func to jump back again return GetPrevFilmList(); } @@ -646,38 +550,38 @@ /// <summary>Sets StrFilmSelect up based on StrSelect, StrTitleSelect etc... </summary> void SetFilmSelect() - { - string s=""; + { + string s = ... [truncated message content] |
From: <ze...@us...> - 2007-09-08 16:12:19
|
Revision: 907 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=907&view=rev Author: zebons Date: 2007-09-08 09:12:18 -0700 (Sat, 08 Sep 2007) Log Message: ----------- Added Paths: ----------- trunk/plugins/MyFilms/BaseMesFilms.cs trunk/plugins/MyFilms/Configuration.cs Added: trunk/plugins/MyFilms/BaseMesFilms.cs =================================================================== --- trunk/plugins/MyFilms/BaseMesFilms.cs (rev 0) +++ trunk/plugins/MyFilms/BaseMesFilms.cs 2007-09-08 16:12:18 UTC (rev 907) @@ -0,0 +1,137 @@ +using System; +using System.Data; +using System.Collections.Generic; +using System.Text; + + +namespace MesFilms +{ + public class BaseMesFilms + { + private static AntMovieCatalog data; + private static Dictionary<string, string> dataPath; + private static DataRow[] movies; + + #region ctor + static BaseMesFilms() + { + } + #endregion + + #region m\xE9thodes statique spriv\xE9es + private static void initData() + { + data = new AntMovieCatalog(); + try + { + data.ReadXml(MesFilms.conf.StrFileXml); + } + catch (Exception e) + { + throw e; + } + } + #endregion + + #region accesseurs + public static DataRow[] FilmsSelected + { + get { return movies; } + } + + #endregion + + #region m\xE9thodes statique publiques + //public void LectureDonn\xE9es(string StrSelect, string StrSort, string StrSortSens) + //{ + // //if (data != null) + // // movies = data.Tables["Movie"].Select(MesFilms.conf.StrDfltSelect + MesFilms.conf.StrSelect, StrSort + StrSortSens); + // //return movies; + //} + + public static DataRow[] LectureDonn\xE9es(string StrDfltSelect, string StrSelect, string StrSort, string StrSortSens) + { + if (data == null) + { + initData(); + } + return movies = data.Tables["Movie"].Select(StrDfltSelect + StrSelect, StrSort + StrSortSens); + } + + public static DataRow[] LectureDonn\xE9es(string StrFilmSelect, string StrSort, string StrSortSens) + { + if (data == null) + { + initData(); + } + return movies = data.Tables["Movie"].Select(StrFilmSelect, StrSort + StrSortSens); + } + + public static DataRow[] LoadDirectory(string StrDfltSelect, string StrSelect, string StrSort, string StrSortSens) + { + if (data == null) + { + initData(); + } + return movies = data.Tables["Movie"].Select(StrDfltSelect + StrSelect, StrSort + StrSortSens); + } + public static void LoadFilm(string StrFileXml) + { + if (!System.IO.File.Exists(StrFileXml)) + throw new Exception(string.Format("Le fichier {0} n'existe pas.", StrFileXml)); + + data = new AntMovieCatalog(); + try + { + data.ReadXml(StrFileXml); + } + catch (Exception e) + { + throw new Exception("Erreur lecture file xml"); + } + + } + + public static void SaveMesFilms() + { + if (data != null) + { + try + { + System.Xml.XmlTextWriter MyXmlTextWriter = new System.Xml.XmlTextWriter + (MesFilms.conf.StrFileXml, System.Text.Encoding.Default); + MyXmlTextWriter.WriteStartDocument(); + data.WriteXml(MyXmlTextWriter, XmlWriteMode.IgnoreSchema); + MyXmlTextWriter.Close(); + } + catch + { + MediaPortal.Dialogs.GUIDialogOK dlgOk = (MediaPortal.Dialogs.GUIDialogOK)MediaPortal.GUI.Library.GUIWindowManager.GetWindow((int)MediaPortal.GUI.Library.GUIWindow.Window.WINDOW_DIALOG_OK); + dlgOk.SetHeading("Error");//my videos + dlgOk.SetLine(1, "Error during updating the XML database !"); + dlgOk.SetLine(2, "Maybe Directory full or no write access."); + dlgOk.DoModal(MesFilms.ID_MesFilmsDetail); + } + //data.WriteXml(""); + } + } + + public static void CancelMesFilms() + { + if (data != null) + { + //data.WriteXml(""); + } + } + + public static void Lirefilm(string nomfilm) + { + if (dataPath.ContainsKey("")) + { + + } + } + + #endregion + } +} Added: trunk/plugins/MyFilms/Configuration.cs =================================================================== --- trunk/plugins/MyFilms/Configuration.cs (rev 0) +++ trunk/plugins/MyFilms/Configuration.cs 2007-09-08 16:12:18 UTC (rev 907) @@ -0,0 +1,544 @@ +using System; +using System.Collections.Generic; +using System.Text; +using MediaPortal.Configuration; + + + +namespace MesFilms +{ + public class Configuration + { + public Configuration(string CurrentConfig, bool create_temp) + { + //----------------------------------------------------------------------------------------------- + // Load Config Parameters in MyFilms.xml file (section CurrentConfig) + //----------------------------------------------------------------------------------------------- + using (MediaPortal.Profile.Settings xmlwriter = new MediaPortal.Profile.Settings(Config.GetFile(Config.Dir.Config, "MyFilms.xml"))) + { + xmlwriter.SetValue("MyFilms", "Current_Config", CurrentConfig); + } + using (MediaPortal.Profile.Settings xmlreader = new MediaPortal.Profile.Settings(Config.GetFile(Config.Dir.Config, "MyFilms.xml"))) + { + StrStorage = xmlreader.GetValueAsString(CurrentConfig, "AntStorage", ""); + StrDirStor = xmlreader.GetValueAsString(CurrentConfig, "PathStorage", ""); + StrIdentItem = xmlreader.GetValueAsString(CurrentConfig, "AntIdentItem", ""); + StrTitle1 = xmlreader.GetValueAsString(CurrentConfig, "AntTitle1", ""); + StrTitle2 = xmlreader.GetValueAsString(CurrentConfig, "AntTitle2", ""); + StrTSort1 = xmlreader.GetValueAsString(CurrentConfig, "AntTSort", ""); + StrSort1 = xmlreader.GetValueAsString(CurrentConfig, "AntSort", ""); + StrViewItem1 = xmlreader.GetValueAsString(CurrentConfig, "AntViewItem1", ""); + StrViewText1 = xmlreader.GetValueAsString(CurrentConfig, "AntViewText1", ""); + StrViewItem2 = xmlreader.GetValueAsString(CurrentConfig, "AntViewItem2", ""); + StrViewText2 = xmlreader.GetValueAsString(CurrentConfig, "AntViewText2", ""); + StrFileXml = xmlreader.GetValueAsString(CurrentConfig, "AntCatalog", ""); + StrFileType = xmlreader.GetValueAsString(CurrentConfig, "CatalogType", "0"); + StrPathImg = xmlreader.GetValueAsString(CurrentConfig, "AntPicture", ""); + StrLayOut = xmlreader.GetValueAsInt(CurrentConfig, "LayOut", 0); + StrLayOut = xmlreader.GetValueAsInt(CurrentConfig, "WLayOut", StrLayOut); + Strlabel1 = xmlreader.GetValueAsString(CurrentConfig, "AntLabel1", ""); + Strlabel2 = xmlreader.GetValueAsString(CurrentConfig, "AntLabel2", ""); + Stritem1 = xmlreader.GetValueAsString(CurrentConfig, "AntItem1", ""); + Stritem2 = xmlreader.GetValueAsString(CurrentConfig, "AntItem2", ""); + Stritem3 = xmlreader.GetValueAsString(CurrentConfig, "AntItem3", ""); + StrIdentLabel = xmlreader.GetValueAsString(CurrentConfig, "AntIdentLabel", ""); + switch (StrFileType) + { + case "0": + break; + case "1": + if (create_temp) + { + string WStrPathImg; + if (StrPathImg.Substring(StrPathImg.Length - 1) == "\\") + WStrPathImg = StrPathImg.Substring(0, StrPathImg.LastIndexOf(@"\")); + else + WStrPathImg = StrPathImg; + string destFile = WStrPathImg + "\\" + StrFileXml.Substring(StrFileXml.LastIndexOf(@"\") + 1, StrFileXml.Length - StrFileXml.LastIndexOf(@"\") - 5) + "_tmp.xml"; + if ((System.IO.File.Exists(destFile) && (System.IO.File.GetLastWriteTime(destFile) > System.IO.File.GetLastWriteTime(StrFileXml)))) + { + StrFileXml = destFile; + break; + } + bool SortTitle = false; + if (xmlreader.GetValueAsString(CurrentConfig, "SortTitle", "False") == "True") + SortTitle = true; + string TagField = xmlreader.GetValueAsString(CurrentConfig, "DVDPTagField", ""); + CatalogConverter cv = new CatalogConverter(TagField); + StrFileXml = cv.ConvertProfiler(StrFileXml, StrPathImg, SortTitle, TagField); + } + else + StrFileXml = xmlreader.GetValueAsString(CurrentConfig, "AntCatalogTemp", ""); + break; + + } + StrSelect = xmlreader.GetValueAsString(CurrentConfig, "StrSelect", ""); + StrActors = xmlreader.GetValueAsString(CurrentConfig, "StrActors", ""); + StrTitleSelect = xmlreader.GetValueAsString(CurrentConfig, "StrTitleSelect", ""); + StrFilmSelect = xmlreader.GetValueAsString(CurrentConfig, "StrFilmSelect", ""); + StrDfltSelect = xmlreader.GetValueAsString(CurrentConfig, "StrDfltSelect", ""); + StrSort = xmlreader.GetValueAsString(CurrentConfig, "StrSort", ""); + CurrentSortMethod = xmlreader.GetValueAsString(CurrentConfig, "CurrentSortMethod", ""); + StrSortSens = xmlreader.GetValueAsString(CurrentConfig, "StrSortSens", ""); + StrTxtSelect = xmlreader.GetValueAsString(CurrentConfig, "Selection", ""); + StrIndex = xmlreader.GetValueAsInt(CurrentConfig, "IndexItem", -1); + StrTIndex = xmlreader.GetValueAsString(CurrentConfig, "TitleItem", ""); + Boolselect = xmlreader.GetValueAsBool(CurrentConfig, "conf.Boolselect", false); + boolreturn = xmlreader.GetValueAsBool(CurrentConfig, "conf.Boolreturn", false); + WStrSort = xmlreader.GetValueAsString(CurrentConfig, "WStrSort", ""); + wselectedlabel = xmlreader.GetValueAsString(CurrentConfig, "WSelectedLabel", ""); + Wstar = xmlreader.GetValueAsString(CurrentConfig, "Wstar", ""); + LastID = xmlreader.GetValueAsInt(CurrentConfig, "LastID", -1); + StrViewDfltItem = xmlreader.GetValueAsString(CurrentConfig, "ViewDfltItem", ""); + StrViewDfltText = xmlreader.GetValueAsString(CurrentConfig, "ViewDfltText", ""); + TitleDelim = xmlreader.GetValueAsString(CurrentConfig, "TitleDelim", "."); + + } + if (StrSelect == "") + StrSelect = StrTitle1.ToString() + " not like ''"; + if (StrSort1.Length == 0) + StrSort1 = "(none)"; + if (StrSort == "") + StrSort = StrTitle1; + if (StrSortSens == "") + StrSortSens = " ASC"; + + } +// static values + private static string currentConfig = string.Empty; + public static string CurrentConfig + { + get { return currentConfig; } + set { currentConfig = value; } + } + private static int nbConfig = int.MinValue; + public static int NbConfig + { + get { return nbConfig; } + set { nbConfig = value; } + } + private static int currentMovie = int.MinValue; + public static int CurrentMovie + { + get { return currentMovie; } + set { currentMovie = value; } + } + + // bool variables + private bool boolselect = false; + public bool Boolselect + { + get { return boolselect; } + set { boolselect = value; } + } + private bool boolreturn = false; + public bool Boolreturn + { + get { return boolreturn; } + set { boolreturn = value; } + } + private bool boolstorage = false; + public bool Boolstorage + { + get { return boolstorage; } + set { boolstorage = value; } + } + + // string variables + private string strSelect = string.Empty; + public string StrSelect + { + get { return strSelect; } + set { strSelect = value; } + } + private string strDirStor = string.Empty; + public string StrDirStor + { + get { return strDirStor; } + set { strDirStor = value; } + } + + private string strIdentLabel = string.Empty; + public string StrIdentLabel + { + get { return strIdentLabel; } + set { strIdentLabel = value; } + } + private string strlabel1 = string.Empty; + public string Strlabel1 + { + get { return strlabel1; } + set { strlabel1 = value; } + } + private string strlabel2 = string.Empty; + public string Strlabel2 + { + get { return strlabel2; } + set { strlabel2 = value; } + } + private string stritem1 = string.Empty; + public string Stritem1 + { + get { return stritem1; } + set { stritem1 = value; } + } + private string stritem2 = string.Empty; + public string Stritem2 + { + get { return stritem2; } + set { stritem2 = value; } + } + private string stritem3 = string.Empty; + public string Stritem3 + { + get { return stritem3; } + set { stritem3 = value; } + } + + private string strDfltSelect = string.Empty; + public string StrDfltSelect + { + get { return strDfltSelect; } + set { strDfltSelect = value; } + } + private string strTitle1 = string.Empty; + public string StrTitle1 + { + get { return strTitle1; } + set { strTitle1 = value; } + } + private string strTitle2 = string.Empty; + public string StrTitle2 + { + get { return strTitle2; } + set { strTitle2 = value; } + } + private string strTitleSelect = string.Empty; + public string StrTitleSelect + { + get { return strTitleSelect; } + set { strTitleSelect = value; } + } + private string strFilmSelect = string.Empty; + public string StrFilmSelect + { + get { return strFilmSelect; } + set { strFilmSelect = value; } + } + private string strSort = string.Empty; + public string StrSort + { + get { return strSort; } + set { strSort = value; } + } + private string strActors = string.Empty; + public string StrActors + { + get { return strActors; } + set { strActors = value; } + } + private string strTxtSelect = string.Empty; + public string StrTxtSelect + { + get { return strTxtSelect; } + set { strTxtSelect = value; } + } + private string strStorage = string.Empty; + public string StrStorage + { + get { return strStorage; } + set { strStorage = value; } + } + private string strIdentItem = string.Empty; + public string StrIdentItem + { + get { return strIdentItem; } + set { strIdentItem = value; } + } + private string strSort1 = string.Empty; + public string StrSort1 + { + get { return strSort1; } + set { strSort1 = value; } + } + private string strTSort1 = string.Empty; + public string StrTSort1 + { + get { return strTSort1; } + set { strTSort1 = value; } + } + private string strViewItem1 = string.Empty; + public string StrViewItem1 + { + get { return strViewItem1; } + set { strViewItem1 = value; } + } + private string strViewText1 = string.Empty; + public string StrViewText1 + { + get { return strViewText1; } + set { strViewText1 = value; } + } + private string strViewItem2 = string.Empty; + public string StrViewItem2 + { + get { return strViewItem2; } + set { strViewItem2 = value; } + } + private string strViewText2 = string.Empty; + public string StrViewText2 + { + get { return strViewText2; } + set { strViewText2 = value; } + } + private string strViewDfltItem = string.Empty; + public string StrViewDfltItem + { + get { return strViewDfltItem; } + set { strViewDfltItem = value; } + } + private string strViewDfltText = string.Empty; + public string StrViewDfltText + { + get { return strViewDfltText; } + set { strViewDfltText = value; } + } + private string strFileXml = string.Empty; + public string StrFileXml + { + get { return strFileXml; } + set { strFileXml = value; } + } + private string strFileType = string.Empty; + public string StrFileType + { + get { return strFileType; } + set { strFileType = value; } + } + private string strPathImg = string.Empty; + public string StrPathImg + { + get { return strPathImg; } + set { strPathImg = value; } + } + private string strSortSens = string.Empty; + public string StrSortSens + { + get { return strSortSens; } + set { strSortSens = value; } + } + private string wStrSort = string.Empty; + public string WStrSort + { + get { return wStrSort; } + set { wStrSort = value; } + } + private string wStrSelect = string.Empty; + public string WStrSelect + { + get { return wStrSelect; } + set { wStrSelect = value; } + } + private string wStrSortSens = string.Empty; + public string WStrSortSens + { + get { return wStrSortSens; } + set { wStrSortSens = value; } + } + private string wselectedlabel = string.Empty; + public string Wselectedlabel + { + get { return wselectedlabel; } + set { wselectedlabel = value; } + } + private string currentSortMethod = string.Empty; + public string CurrentSortMethod + { + get { return currentSortMethod; } + set { currentSortMethod = value; } + } + private string strTIndex = string.Empty; + public string StrTIndex + { + get { return strTIndex; } + set { strTIndex = value; } + } + private string fileImage = string.Empty; + public string FileImage + { + get { return fileImage; } + set { fileImage = value; } + } + private string strPluginName = string.Empty; + public string StrPluginName + { + get { return strPluginName; } + set { strPluginName = value; } + } + private string titleDelim = string.Empty; + public string TitleDelim + { + get { return titleDelim; } + set { titleDelim = value; } + } + private string wstar = string.Empty; + public string Wstar + { + get { return wstar; } + set { wstar = value; } + } + private int strLayOut = int.MinValue; + public int StrLayOut + { + get { return strLayOut; } + set { strLayOut = value; } + } + private int lastID = int.MinValue; + public int LastID + { + get { return lastID; } + set { lastID = value; } + } + private decimal w_rating = decimal.Zero; + public decimal W_rating + { + get { return w_rating; } + set { w_rating = value; } + } + private int strIndex = int.MinValue; + public int StrIndex + { + get { return strIndex; } + set { strIndex = value; } + } + + public static void SaveConfiguration(string currentConfig, int selectedItem, string selectedItemLabel) + { + using (MediaPortal.Profile.Settings xmlwriter = new MediaPortal.Profile.Settings(Config.GetFile(Config.Dir.Config, "MyFilms.xml"))) + { + xmlwriter.SetValue("MyFilms", "Current_Config", currentConfig); + xmlwriter.SetValue(currentConfig, "StrSelect", MesFilms.conf.StrSelect.ToString()); + xmlwriter.SetValue(currentConfig, "StrActors", MesFilms.conf.StrActors.ToString()); + xmlwriter.SetValue(currentConfig, "StrTitleSelect", MesFilms.conf.StrTitleSelect.ToString()); + xmlwriter.SetValue(currentConfig, "StrFilmSelect", MesFilms.conf.StrFilmSelect.ToString()); + xmlwriter.SetValue(currentConfig, "StrDfltSelect", MesFilms.conf.StrDfltSelect.ToString()); + xmlwriter.SetValue(currentConfig, "StrSort", MesFilms.conf.StrSort.ToString()); + xmlwriter.SetValue(currentConfig, "CurrentSortMethod", MesFilms.conf.CurrentSortMethod.ToString()); + xmlwriter.SetValue(currentConfig, "StrSortSens", MesFilms.conf.StrSortSens.ToString()); + xmlwriter.SetValue(currentConfig, "Selection", MesFilms.conf.StrTxtSelect); + xmlwriter.SetValue(currentConfig, "IndexItem", (selectedItem > -1) ? ((MesFilms.conf.Boolselect) ? selectedItem.ToString() : selectedItem.ToString()) : "-1"); //may need to check if there is no item selected and so save -1 + xmlwriter.SetValue(currentConfig, "TitleItem", (selectedItem > -1) ? ((MesFilms.conf.Boolselect) ? selectedItem.ToString() : selectedItemLabel.ToString()) : ""); //may need to check if there is no item selected and so save "" + xmlwriter.SetValueAsBool(currentConfig, "conf.Boolselect", MesFilms.conf.Boolselect); + xmlwriter.SetValueAsBool(currentConfig, "boolreturn", MesFilms.conf.Boolreturn); + xmlwriter.SetValue(currentConfig, "WSelectedLabel", MesFilms.conf.Wselectedlabel); + xmlwriter.SetValue(currentConfig, "WStrSort", MesFilms.conf.WStrSort); + xmlwriter.SetValue(currentConfig, "Wstar", MesFilms.conf.Wstar); + xmlwriter.SetValue(currentConfig, "WLayOut", MesFilms.conf.StrLayOut); + xmlwriter.SetValue(currentConfig, "LastID", MesFilms.conf.LastID); + switch (MesFilms.conf.StrFileType) + { + case "0": + break; + case "1": + xmlwriter.SetValue(currentConfig, "AntCatalogTemp", MesFilms.conf.StrFileXml.ToString()); + break; + } + } + } + //-------------------------------------------------------------------------------------------- + // Control Acces to asked configuration + //-------------------------------------------------------------------------------------------- + public static string Control_Access_Config(string configname, int GetID) + { + if (configname.Length == 0) + return ""; + string Dwp; + using (MediaPortal.Profile.Settings xmlreader = new MediaPortal.Profile.Settings(Config.GetFile(Config.Dir.Config, "MyFilms.xml"))) + { + Dwp = xmlreader.GetValueAsString(configname, "Dwp", ""); + } + + if (Dwp.Length == 0) + return configname; + MediaPortal.Dialogs.VirtualKeyboard keyboard = (MediaPortal.Dialogs.VirtualKeyboard)MediaPortal.GUI.Library.GUIWindowManager.GetWindow((int)MediaPortal.GUI.Library.GUIWindow.Window.WINDOW_VIRTUAL_KEYBOARD); + if (null == keyboard) return ""; + keyboard.Reset(); + keyboard.Text = ""; + keyboard.Password = true; + keyboard.DoModal(GetID); + if ((keyboard.IsConfirmed) && (keyboard.Text.Length > 0)) + { + Crypto crypto = new Crypto(); + if (crypto.Decrypter(Dwp) == keyboard.Text) + return configname; + } + return ""; + } + //-------------------------------------------------------------------------------------------- + // Choice Configuration + //-------------------------------------------------------------------------------------------- + public static string Choice_Config(int GetID) + { + MediaPortal.Dialogs.GUIDialogMenu dlg = (MediaPortal.Dialogs.GUIDialogMenu)MediaPortal.GUI.Library.GUIWindowManager.GetWindow((int)MediaPortal.GUI.Library.GUIWindow.Window.WINDOW_DIALOG_MENU); + if (dlg == null) + { + + MesFilms.conf.StrFileXml = ""; + return ""; + } + dlg.Reset(); + dlg.SetHeading(924); // menu + using (MediaPortal.Profile.Settings xmlreader = new MediaPortal.Profile.Settings(Config.GetFile(Config.Dir.Config, "MyFilms.xml"))) + { + int MesFilms_nb_config = xmlreader.GetValueAsInt("MyFilms", "NbConfig", -1); + for (int i = 0; i < (int)MesFilms_nb_config; i++) + dlg.Add(xmlreader.GetValueAsString("MyFilms", "ConfigName" + i, "")); + } + dlg.DoModal(GetID); + if (dlg.SelectedLabel == -1) + { + MesFilms.conf.StrFileXml = ""; + return ""; + } + if (dlg.SelectedLabelText.Length > 0) + return dlg.SelectedLabelText; + return ""; + } + //-------------------------------------------------------------------------------------------- + // Return Current Configuration + //-------------------------------------------------------------------------------------------- + public static void Current_Config() + { + CurrentConfig = null; + using (MediaPortal.Profile.Settings xmlreader = new MediaPortal.Profile.Settings(Config.GetFile(Config.Dir.Config, "MyFilms.xml"))) + { + NbConfig = xmlreader.GetValueAsInt("MyFilms", "NbConfig", 0); + if (NbConfig == 0) + { + MediaPortal.Dialogs.GUIDialogOK dlgOk = (MediaPortal.Dialogs.GUIDialogOK)MediaPortal.GUI.Library.GUIWindowManager.GetWindow((int)MediaPortal.GUI.Library.GUIWindow.Window.WINDOW_DIALOG_OK); + dlgOk.SetHeading(3);//my videos + dlgOk.SetLine(1, "No Configuration defined"); + dlgOk.SetLine(2, "Please enter setup first"); + dlgOk.DoModal(MesFilms.ID_MesFilms); + MediaPortal.GUI.Library.GUIWindowManager.ShowPreviousWindow(); + } + bool boolchoice = true; + if (CurrentConfig == null) + CurrentConfig = xmlreader.GetValueAsString("MyFilms", "Current_Config", ""); + if (!(xmlreader.GetValueAsBool("MyFilms", "Menu_Config", false))) + CurrentConfig = xmlreader.GetValueAsString("MyFilms", "Default_Config", ""); + else + CurrentConfig = ""; + if (CurrentConfig == "") + { + boolchoice = false; + CurrentConfig = Configuration.Choice_Config(MesFilms.ID_MesFilms); // "" => user esc's dialog on plugin startup so exit plugin unchanged + } + CurrentConfig = Configuration.Control_Access_Config(CurrentConfig, MesFilms.ID_MesFilms); + if ((CurrentConfig == "") && (NbConfig > 1) && (boolchoice)) //error password ? so if many config => choice config menu + CurrentConfig = Configuration.Choice_Config(MesFilms.ID_MesFilms); + } + } + } + +} This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ze...@us...> - 2007-10-28 13:09:27
|
Revision: 1009 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=1009&view=rev Author: zebons Date: 2007-10-28 06:09:21 -0700 (Sun, 28 Oct 2007) Log Message: ----------- Somme corrections for DVDProfiler Modified Paths: -------------- trunk/plugins/MyFilms/MesFilms.cs trunk/plugins/MyFilms/MesFilmsDetail.cs Modified: trunk/plugins/MyFilms/MesFilms.cs =================================================================== --- trunk/plugins/MyFilms/MesFilms.cs 2007-10-27 13:40:24 UTC (rev 1008) +++ trunk/plugins/MyFilms/MesFilms.cs 2007-10-28 13:09:21 UTC (rev 1009) @@ -615,7 +615,7 @@ facadeView.Clear(); //---------------------------------------------------------------------------------------- // Load the DataSet. - foreach (DataRow r in BaseMesFilms.LectureDonn\xE9es(conf.StrFilmSelect, conf.StrSort, conf.StrSortSens)) + foreach (DataRow r in BaseMesFilms.LectureDonn\xE9es(conf.StrDfltSelect, conf.StrFilmSelect, conf.StrSort, conf.StrSortSens)) { if (conf.Boolreturn)//in case of selection by view verify if value correspond excatly to the searched string { Modified: trunk/plugins/MyFilms/MesFilmsDetail.cs =================================================================== --- trunk/plugins/MyFilms/MesFilmsDetail.cs 2007-10-27 13:40:24 UTC (rev 1008) +++ trunk/plugins/MyFilms/MesFilmsDetail.cs 2007-10-28 13:09:21 UTC (rev 1009) @@ -134,6 +134,12 @@ { //if ((actionType.wID == Action.ActionType.ACTION_PREVIOUS_MENU) || (actionType.wID == Action.ActionType.ACTION_PARENT_DIR)) // actionType.wID = Action.ActionType.ACTION_PREVIOUS_MENU; // exit plugin DEINIT Msg will call save func + if ((actionType.wID == Action.ActionType.ACTION_PREVIOUS_MENU) || (actionType.wID == Action.ActionType.ACTION_PARENT_DIR)) + { + MesFilms.conf.LastID = MesFilms.ID_MesFilms; + GUIWindowManager.ShowPreviousWindow(); + return; + } base.OnAction(actionType); return; } @@ -436,7 +442,8 @@ // selects records and sets StrIndex based on ItemId (leaves unchanged if ItemId=-1). private void afficher_init(int ItemId) { - r = BaseMesFilms.LectureDonn\xE9es(MesFilms.conf.StrDfltSelect, MesFilms.conf.StrSelect, MesFilms.conf.StrSort, MesFilms.conf.StrSortSens); + // r = BaseMesFilms.LectureDonn\xE9es(MesFilms.conf.StrDfltSelect, MesFilms.conf.StrSelect, MesFilms.conf.StrSort, MesFilms.conf.StrSortSens); + r = BaseMesFilms.LectureDonn\xE9es(MesFilms.conf.StrDfltSelect, MesFilms.conf.StrFilmSelect, MesFilms.conf.StrSort, MesFilms.conf.StrSortSens); StrMax = r.Length; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ze...@us...> - 2007-11-23 18:58:48
|
Revision: 1086 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=1086&view=rev Author: zebons Date: 2007-11-23 10:58:09 -0800 (Fri, 23 Nov 2007) Log Message: ----------- Version 4.3.1 add an option to always go to the default view when entering with the specified config. correction of some search bugs Modified Paths: -------------- trunk/plugins/MyFilms/Configuration.cs trunk/plugins/MyFilms/MesFilms.cs trunk/plugins/MyFilms/MesFilmsDetail.cs trunk/plugins/MyFilms/MesFilmsSetup.Designer.cs trunk/plugins/MyFilms/MesFilmsSetup.cs trunk/plugins/MyFilms/skin/BlueTwo/MesFilms.xml Modified: trunk/plugins/MyFilms/Configuration.cs =================================================================== --- trunk/plugins/MyFilms/Configuration.cs 2007-11-22 17:27:30 UTC (rev 1085) +++ trunk/plugins/MyFilms/Configuration.cs 2007-11-23 18:58:09 UTC (rev 1086) @@ -89,14 +89,23 @@ Boolselect = xmlreader.GetValueAsBool(CurrentConfig, "Boolselect", false); Boolreturn = xmlreader.GetValueAsBool(CurrentConfig, "Boolreturn", false); WStrSort = xmlreader.GetValueAsString(CurrentConfig, "WStrSort", ""); - wselectedlabel = xmlreader.GetValueAsString(CurrentConfig, "WSelectedLabel", ""); + Wselectedlabel = xmlreader.GetValueAsString(CurrentConfig, "WSelectedLabel", ""); Wstar = xmlreader.GetValueAsString(CurrentConfig, "Wstar", ""); LastID = xmlreader.GetValueAsInt(CurrentConfig, "LastID", -1); StrViewDfltItem = xmlreader.GetValueAsString(CurrentConfig, "ViewDfltItem", ""); StrViewDfltText = xmlreader.GetValueAsString(CurrentConfig, "ViewDfltText", ""); TitleDelim = xmlreader.GetValueAsString(CurrentConfig, "TitleDelim", "."); DefaultCover = xmlreader.GetValueAsString(CurrentConfig, "DefaultCover", ""); - + AlwaysDefaultView = xmlreader.GetValueAsBool(CurrentConfig, "AlwaysDefaultView", false); + if (AlwaysDefaultView) + { + strIndex = -1; + LastID = -1; + Wstar = ""; + Boolreturn = false; + Boolselect = true; + Wselectedlabel = StrViewDfltText; + } } if (StrSelect == "") StrSelect = StrTitle1.ToString() + " not like ''"; @@ -106,7 +115,6 @@ StrSort = StrTitle1; if (StrSortSens == "") StrSortSens = " ASC"; - } @@ -149,7 +157,12 @@ get { return boolstorage; } set { boolstorage = value; } } - + private bool alwaysDefaultView = false; + public bool AlwaysDefaultView + { + get { return alwaysDefaultView; } + set { alwaysDefaultView = value; } + } // string variables private string strSelect = string.Empty; public string StrSelect @@ -452,8 +465,8 @@ xmlwriter.SetValue(currentConfig, "Selection", MesFilms.conf.StrTxtSelect); xmlwriter.SetValue(currentConfig, "IndexItem", (selectedItem > -1) ? ((MesFilms.conf.Boolselect) ? selectedItem.ToString() : selectedItem.ToString()) : "-1"); //may need to check if there is no item selected and so save -1 xmlwriter.SetValue(currentConfig, "TitleItem", (selectedItem > -1) ? ((MesFilms.conf.Boolselect) ? selectedItem.ToString() : selectedItemLabel.ToString()) : ""); //may need to check if there is no item selected and so save "" - xmlwriter.SetValueAsBool(currentConfig, "conf.Boolselect", MesFilms.conf.Boolselect); - xmlwriter.SetValueAsBool(currentConfig, "boolreturn", MesFilms.conf.Boolreturn); + xmlwriter.SetValueAsBool(currentConfig, "Boolselect", MesFilms.conf.Boolselect); + xmlwriter.SetValueAsBool(currentConfig, "Boolreturn", MesFilms.conf.Boolreturn); xmlwriter.SetValue(currentConfig, "WSelectedLabel", MesFilms.conf.Wselectedlabel); xmlwriter.SetValue(currentConfig, "WStrSort", MesFilms.conf.WStrSort); xmlwriter.SetValue(currentConfig, "Wstar", MesFilms.conf.Wstar); Modified: trunk/plugins/MyFilms/MesFilms.cs =================================================================== --- trunk/plugins/MyFilms/MesFilms.cs 2007-11-22 17:27:30 UTC (rev 1085) +++ trunk/plugins/MyFilms/MesFilms.cs 2007-11-23 18:58:09 UTC (rev 1086) @@ -251,7 +251,10 @@ if (Configuration.CurrentConfig.Length == 0) GUIWindowManager.ShowPreviousWindow(); - Fin_Charge_Init(false); + if (conf.AlwaysDefaultView) + Fin_Charge_Init(true); + else + Fin_Charge_Init(false); return true; case GUIMessage.MessageType.GUI_MSG_WINDOW_DEINIT: //called when exiting plugin either by prev menu or pressing home button @@ -732,8 +735,8 @@ GUIControl.HideControl(GetID, 34); try { - if (!(conf.FileImage == conf.StrPathImg + "\\" + r[ItemId]["Picture"].ToString() || conf.FileImage == r[ItemId]["Picture"].ToString())) - { + //if (!(conf.FileImage == conf.StrPathImg + "\\" + r[ItemId]["Picture"].ToString() || conf.FileImage == r[ItemId]["Picture"].ToString())) + //{ //if (conf.FileImage != "9999") // ImgLstFilm.FreeResources(); // ImgLstFilm2.FreeResources(); @@ -745,7 +748,7 @@ conf.FileImage = conf.DefaultCover; ImgLstFilm.SetFileName(conf.FileImage); ImgLstFilm2.SetFileName(conf.FileImage); - } + //} } catch { @@ -778,7 +781,8 @@ //------------------------------------------------------------------------------------------- private bool control_searchText(string stext) { - Regex maRegexp = new Regex("^[a-zA-Z0-9]+$"); + //Regex maRegexp = new Regex("^[a-zA-Z0-9 ():-_\\[\\]$&%'\xA7=#\\/.<>!+\"+]+$"); + Regex maRegexp = new Regex("^[^*]+$"); bool regOK = maRegexp.IsMatch(stext); return regOK; } @@ -938,7 +942,7 @@ Wnb_enr++; else { - if (conf.Wstar == "*" || champselect.ToUpper().Contains(conf.Wstar.ToUpper())) + if (conf.Wstar == "*" || champselect.ToUpper().Contains(conf.Wstar.ToUpper())) { if (Wnb_enr > 0) { @@ -951,9 +955,17 @@ Wnb_enr = 1; wchampselect = champselect.ToString(); } - + else + if (Wnb_enr > 0) + { + item = new GUIListItem(); + item.Label = wchampselect.ToString(); + item.Label2 = Wnb_enr.ToString(); + facadeView.Add(item); + if (SelItem != "" && item.Label == SelItem) conf.StrIndex = facadeView.Count - 1; //test if this item is one to select + Wnb_enr = 0; + } - } } conf.StrTxtSelect = "Selection"; @@ -964,6 +976,7 @@ if ((conf.StrIndex > facadeView.Count - 1) || (conf.StrIndex < 0)) //check index within bounds, will be unless xml file heavily edited conf.StrIndex = 0; + GUIControl.ShowControl(GetID, 34); GUIPropertyManager.SetProperty("#nbobjects", facadeView.Count.ToString() + " " + GUILocalizeStrings.Get(127)); GUIControl.SelectItemControl(GetID, (int)Controls.CTRL_List, (int)conf.StrIndex); } @@ -1056,7 +1069,7 @@ conf.Boolselect = false; conf.Boolreturn = true; conf.WStrSort = conf.StrViewDfltItem; - conf.Wselectedlabel = ""; + //conf.Wselectedlabel = ""; if (conf.StrViewDfltItem == "DateAdded") conf.StrSelect = "Date" + " like '" + DateTime.Parse(conf.StrViewDfltText).ToShortDateString() + "'"; else @@ -1199,12 +1212,12 @@ if (newConfig != "") // if user escapes dialog or bad value leave system unchanged //if (newConfig != "" && newConfig != Configuration.CurrentConfig) // if user escapes dialog or bad value leave system unchanged - { + { //Change "Config": Configuration.SaveConfiguration(Configuration.CurrentConfig, facadeView.SelectedListItem.ItemId, facadeView.SelectedListItem.Label); Configuration.CurrentConfig = newConfig; Load_Config(newConfig, true); - Fin_Charge_Init(false); //need to load current selection as reloaded from myfilms.xml file to remember position + Fin_Charge_Init(conf.AlwaysDefaultView); //need to load default view as asked in setup or load current selection as reloaded from myfilms.xml file to remember position } return; } Modified: trunk/plugins/MyFilms/MesFilmsDetail.cs =================================================================== --- trunk/plugins/MyFilms/MesFilmsDetail.cs 2007-11-22 17:27:30 UTC (rev 1085) +++ trunk/plugins/MyFilms/MesFilmsDetail.cs 2007-11-23 18:58:09 UTC (rev 1086) @@ -321,7 +321,7 @@ if (!(control_searchNum(keyboard.Text) == null)) { r[MesFilms.conf.StrIndex]["Rating"] = keyboard.Text.ToString(); - Update_XML_database(false, ItemID, "Rating"); + Update_XML_database(false, ItemID, "Rating"); } else return; @@ -413,7 +413,8 @@ //------------------------------------------------------------------------------------------- private string control_searchNum(string stext) { - Regex maRegexp = new Regex("^[0-9]{1,2}[\\.,][0-9]{1}$"); + //Regex maRegexp = new Regex("^[0-9]{1,2}[\\.,][0-9]{1}$"); + Regex maRegexp = new Regex("^[0-9]{1,2}[\\.,]?[0-9]?$"); if (!maRegexp.IsMatch(stext)) { GUIDialogOK dlgOk = (GUIDialogOK)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_DIALOG_OK); Modified: trunk/plugins/MyFilms/MesFilmsSetup.Designer.cs =================================================================== --- trunk/plugins/MyFilms/MesFilmsSetup.Designer.cs 2007-11-22 17:27:30 UTC (rev 1085) +++ trunk/plugins/MyFilms/MesFilmsSetup.Designer.cs 2007-11-23 18:58:09 UTC (rev 1086) @@ -123,6 +123,9 @@ this.label13 = new System.Windows.Forms.Label(); this.CatalogType = new System.Windows.Forms.ComboBox(); this.groupBox5 = new System.Windows.Forms.GroupBox(); + this.DutDefCov = new System.Windows.Forms.Button(); + this.DefaultCover = new System.Windows.Forms.TextBox(); + this.label19 = new System.Windows.Forms.Label(); this.label17 = new System.Windows.Forms.Label(); this.TitleDelim = new System.Windows.Forms.TextBox(); this.label9 = new System.Windows.Forms.Label(); @@ -157,6 +160,7 @@ this.AntFilterItem1 = new System.Windows.Forms.ComboBox(); this.AntFilterText1 = new System.Windows.Forms.TextBox(); this.groupBox8 = new System.Windows.Forms.GroupBox(); + this.AlwaysDefaultView = new System.Windows.Forms.CheckBox(); this.label14 = new System.Windows.Forms.Label(); this.LayOut = new System.Windows.Forms.ComboBox(); this.View_Dflt_Item = new System.Windows.Forms.ComboBox(); @@ -186,9 +190,6 @@ this.ButSave = new System.Windows.Forms.Button(); this.Config_Dflt = new System.Windows.Forms.CheckBox(); this.Config_Menu = new System.Windows.Forms.CheckBox(); - this.DutDefCov = new System.Windows.Forms.Button(); - this.DefaultCover = new System.Windows.Forms.TextBox(); - this.label19 = new System.Windows.Forms.Label(); this.General.SuspendLayout(); this.tabPage1.SuspendLayout(); this.groupBox11.SuspendLayout(); @@ -213,7 +214,7 @@ this.label10.Name = "label10"; this.label10.Size = new System.Drawing.Size(69, 13); this.label10.TabIndex = 34; - this.label10.Text = "Version 4.3.0"; + this.label10.Text = "Version 4.3.1"; // // textBox1 // @@ -259,7 +260,7 @@ this.General.Location = new System.Drawing.Point(12, 66); this.General.Name = "General"; this.General.SelectedIndex = 0; - this.General.Size = new System.Drawing.Size(755, 340); + this.General.Size = new System.Drawing.Size(755, 349); this.General.TabIndex = 46; // // tabPage1 @@ -278,7 +279,7 @@ this.tabPage1.Location = new System.Drawing.Point(4, 22); this.tabPage1.Name = "tabPage1"; this.tabPage1.Padding = new System.Windows.Forms.Padding(3); - this.tabPage1.Size = new System.Drawing.Size(747, 314); + this.tabPage1.Size = new System.Drawing.Size(747, 323); this.tabPage1.TabIndex = 0; this.tabPage1.Text = "General"; this.tabPage1.UseVisualStyleBackColor = true; @@ -478,6 +479,32 @@ this.groupBox5.TabStop = false; this.groupBox5.Text = "Title Order"; // + // DutDefCov + // + this.DutDefCov.Location = new System.Drawing.Point(401, 66); + this.DutDefCov.Name = "DutDefCov"; + this.DutDefCov.Size = new System.Drawing.Size(32, 22); + this.DutDefCov.TabIndex = 69; + this.DutDefCov.Text = "..."; + this.DutDefCov.UseVisualStyleBackColor = true; + this.DutDefCov.Click += new System.EventHandler(this.DutDefCov_Click); + // + // DefaultCover + // + this.DefaultCover.Location = new System.Drawing.Point(132, 68); + this.DefaultCover.Name = "DefaultCover"; + this.DefaultCover.Size = new System.Drawing.Size(259, 20); + this.DefaultCover.TabIndex = 68; + // + // label19 + // + this.label19.AutoSize = true; + this.label19.Location = new System.Drawing.Point(8, 71); + this.label19.Name = "label19"; + this.label19.Size = new System.Drawing.Size(74, 13); + this.label19.TabIndex = 67; + this.label19.Text = "Default Poster"; + // // label17 // this.label17.AutoSize = true; @@ -596,7 +623,7 @@ this.tabPage2.Location = new System.Drawing.Point(4, 22); this.tabPage2.Name = "tabPage2"; this.tabPage2.Padding = new System.Windows.Forms.Padding(3); - this.tabPage2.Size = new System.Drawing.Size(747, 314); + this.tabPage2.Size = new System.Drawing.Size(747, 323); this.tabPage2.TabIndex = 1; this.tabPage2.Text = "Optional"; this.tabPage2.UseVisualStyleBackColor = true; @@ -805,17 +832,28 @@ // // groupBox8 // + this.groupBox8.Controls.Add(this.AlwaysDefaultView); this.groupBox8.Controls.Add(this.label14); this.groupBox8.Controls.Add(this.LayOut); this.groupBox8.Controls.Add(this.View_Dflt_Item); this.groupBox8.Controls.Add(this.View_Dflt_Text); this.groupBox8.Location = new System.Drawing.Point(12, 221); this.groupBox8.Name = "groupBox8"; - this.groupBox8.Size = new System.Drawing.Size(347, 78); + this.groupBox8.Size = new System.Drawing.Size(347, 96); this.groupBox8.TabIndex = 26; this.groupBox8.TabStop = false; this.groupBox8.Text = "Default View"; // + // AlwaysDefaultView + // + this.AlwaysDefaultView.AutoSize = true; + this.AlwaysDefaultView.Location = new System.Drawing.Point(76, 71); + this.AlwaysDefaultView.Name = "AlwaysDefaultView"; + this.AlwaysDefaultView.Size = new System.Drawing.Size(253, 17); + this.AlwaysDefaultView.TabIndex = 75; + this.AlwaysDefaultView.Text = "Display Always that view when using this config"; + this.AlwaysDefaultView.UseVisualStyleBackColor = true; + // // label14 // this.label14.AutoSize = true; @@ -831,7 +869,8 @@ this.LayOut.Items.AddRange(new object[] { "List", "Small Icons", - "Large Icons"}); + "Large Icons", + "Filmstrip"}); this.LayOut.Location = new System.Drawing.Point(166, 44); this.LayOut.Name = "LayOut"; this.LayOut.Size = new System.Drawing.Size(112, 21); @@ -977,7 +1016,7 @@ this.tabPage3.Location = new System.Drawing.Point(4, 22); this.tabPage3.Name = "tabPage3"; this.tabPage3.Padding = new System.Windows.Forms.Padding(3); - this.tabPage3.Size = new System.Drawing.Size(747, 314); + this.tabPage3.Size = new System.Drawing.Size(747, 323); this.tabPage3.TabIndex = 2; this.tabPage3.Text = "DVDProfiler"; this.tabPage3.UseVisualStyleBackColor = true; @@ -1094,32 +1133,6 @@ this.Config_Menu.Text = "Display Always Configuration\'s Menu (if no Default Config)"; this.Config_Menu.UseVisualStyleBackColor = true; // - // DutDefCov - // - this.DutDefCov.Location = new System.Drawing.Point(401, 66); - this.DutDefCov.Name = "DutDefCov"; - this.DutDefCov.Size = new System.Drawing.Size(32, 22); - this.DutDefCov.TabIndex = 69; - this.DutDefCov.Text = "..."; - this.DutDefCov.UseVisualStyleBackColor = true; - this.DutDefCov.Click += new System.EventHandler(this.DutDefCov_Click); - // - // DefaultCover - // - this.DefaultCover.Location = new System.Drawing.Point(132, 68); - this.DefaultCover.Name = "DefaultCover"; - this.DefaultCover.Size = new System.Drawing.Size(259, 20); - this.DefaultCover.TabIndex = 68; - // - // label19 - // - this.label19.AutoSize = true; - this.label19.Location = new System.Drawing.Point(8, 71); - this.label19.Name = "label19"; - this.label19.Size = new System.Drawing.Size(74, 13); - this.label19.TabIndex = 67; - this.label19.Text = "Default Poster"; - // // MesFilmsSetup // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); @@ -1266,6 +1279,7 @@ private Button DutDefCov; private TextBox DefaultCover; private Label label19; + private CheckBox AlwaysDefaultView; } } \ No newline at end of file Modified: trunk/plugins/MyFilms/MesFilmsSetup.cs =================================================================== --- trunk/plugins/MyFilms/MesFilmsSetup.cs 2007-11-22 17:27:30 UTC (rev 1085) +++ trunk/plugins/MyFilms/MesFilmsSetup.cs 2007-11-23 18:58:09 UTC (rev 1086) @@ -354,6 +354,8 @@ WLayOut = 1; if (LayOut.Text == "Large Icons") WLayOut = 2; + if (LayOut.Text == "Filmstrip") + WLayOut = 3; if (AntTitle2.Text.Length == 0) AntTitle2.Text = "(none)"; if (Config_Dflt.Checked) @@ -416,6 +418,7 @@ MyFilms_xmlwriter.SetValue(Config_Name.Text.ToString(), "StrDfltSelect", StrDfltSelect); MyFilms_xmlwriter.SetValue(Config_Name.Text.ToString(), "Dwp", crypto.Crypter(Dwp.Text)); MyFilms_xmlwriter.SetValue(Config_Name.Text.ToString(), "SearchFileName", SearchFileName.Checked); + MyFilms_xmlwriter.SetValueAsBool(Config_Name.Text.ToString(), "AlwaysDefaultView", AlwaysDefaultView.Checked); MyFilms_xmlwriter.SetValue(Config_Name.Text.ToString(), "ItemSearchFileName", ItemSearchFileName.Text); MyFilms_xmlwriter.SetValue(Config_Name.Text.ToString(), "DefaultCover", DefaultCover.Text); if (CatalogType.SelectedIndex == 1) @@ -509,6 +512,7 @@ SearchFileName.Checked = false; radioButton1.Checked = false; radioButton2.Checked = false; + AlwaysDefaultView.Checked = MyFilms_xmlreader.GetValueAsBool(Config_Name.Text.ToString(), "AlwaysDefaultView", false); DVDPTagField.ResetText(); if (MyFilms_xmlreader.GetValueAsString(Config_Name.Text.ToString(), "DVDPTagField", "") == "Category") radioButton1.Checked = true; @@ -604,6 +608,7 @@ radioButton2.Checked = false; DVDPTagField.ResetText(); SortTitle.Checked = false; + AlwaysDefaultView.Checked = false; } @@ -632,6 +637,7 @@ MyFilms_xmlwriter.RemoveEntry(Config_Name.Text, "PathStorage"); MyFilms_xmlwriter.RemoveEntry(Config_Name.Text, "SearchFileName"); MyFilms_xmlwriter.RemoveEntry(Config_Name.Text, "ItemSearchFileName"); + MyFilms_xmlwriter.RemoveEntry(Config_Name.Text, "AlwaysDefaultView"); MyFilms_xmlwriter.RemoveEntry(Config_Name.Text, "AntIdentItem"); MyFilms_xmlwriter.RemoveEntry(Config_Name.Text, "AntIdentLabel"); MyFilms_xmlwriter.RemoveEntry(Config_Name.Text, "AntTitle1"); Modified: trunk/plugins/MyFilms/skin/BlueTwo/MesFilms.xml =================================================================== --- trunk/plugins/MyFilms/skin/BlueTwo/MesFilms.xml 2007-11-22 17:27:30 UTC (rev 1085) +++ trunk/plugins/MyFilms/skin/BlueTwo/MesFilms.xml 2007-11-23 18:58:09 UTC (rev 1086) @@ -147,7 +147,6 @@ <label>137</label> <textcolor>ff000000</textcolor> </control> - </control> <control> <type>fadelabel</type> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ze...@us...> - 2007-11-25 18:51:11
|
Revision: 1088 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=1088&view=rev Author: zebons Date: 2007-11-25 10:51:06 -0800 (Sun, 25 Nov 2007) Log Message: ----------- Some minor corrections on search by actors Skins modified Modified Paths: -------------- trunk/plugins/MyFilms/BaseMesFilms.cs trunk/plugins/MyFilms/MesFilms.cs trunk/plugins/MyFilms/MesFilmsSetup.cs trunk/plugins/MyFilms/skin/BlackMyst/MesFilms.xml trunk/plugins/MyFilms/skin/BlackMyst/MesFilmsDetail.xml trunk/plugins/MyFilms/skin/BlueTwo/MesFilms.xml trunk/plugins/MyFilms/skin/BlueTwo wide/MesFilms.xml trunk/plugins/MyFilms/skin/BlueTwo wide/MesFilmsDetail.xml trunk/plugins/MyFilms/skin/Project Mayhem 3/MesFilms.xml trunk/plugins/MyFilms/skin/Project Mayhem 3/MesFilmsDetail.xml Added Paths: ----------- trunk/plugins/MyFilms/skin/Aqua 0.2.3.0/ trunk/plugins/MyFilms/skin/Aqua 0.2.3.0/Media/ trunk/plugins/MyFilms/skin/Aqua 0.2.3.0/Media/Films_DD.png trunk/plugins/MyFilms/skin/Aqua 0.2.3.0/Media/Films_No_Cover.png trunk/plugins/MyFilms/skin/Aqua 0.2.3.0/Media/Films_first_focus.png trunk/plugins/MyFilms/skin/Aqua 0.2.3.0/Media/Films_first_nofocus.png trunk/plugins/MyFilms/skin/Aqua 0.2.3.0/Media/Films_last_focus.png trunk/plugins/MyFilms/skin/Aqua 0.2.3.0/Media/Films_last_nofocus.png trunk/plugins/MyFilms/skin/Aqua 0.2.3.0/Media/Films_next_focus.PNG trunk/plugins/MyFilms/skin/Aqua 0.2.3.0/Media/Films_next_nofocus.PNG trunk/plugins/MyFilms/skin/Aqua 0.2.3.0/Media/Films_prior_focus.PNG trunk/plugins/MyFilms/skin/Aqua 0.2.3.0/Media/Films_prior_nofocus.PNG trunk/plugins/MyFilms/skin/Aqua 0.2.3.0/Media/amclogo.png trunk/plugins/MyFilms/skin/Aqua 0.2.3.0/Media/hover_my films.png trunk/plugins/MyFilms/skin/Aqua 0.2.3.0/Media/starhalf.png trunk/plugins/MyFilms/skin/Aqua 0.2.3.0/Media/starhalf_horz.png trunk/plugins/MyFilms/skin/Aqua 0.2.3.0/MesFilms.common.facade.xml trunk/plugins/MyFilms/skin/Aqua 0.2.3.0/MesFilms.xml trunk/plugins/MyFilms/skin/Aqua 0.2.3.0/MesFilmsDetail.xml trunk/plugins/MyFilms/skin/Aqua 0.2.3.0/MesFilms_Visible.xml trunk/plugins/MyFilms/skin/BlackMyst/Media/Films_No_Cover.png trunk/plugins/MyFilms/skin/BlackMyst/Media/starhalf_horz.png trunk/plugins/MyFilms/skin/BlackMyst/MesFilms_Visible.xml trunk/plugins/MyFilms/skin/BlueTwo/Media/starhalf_horz.png trunk/plugins/MyFilms/skin/BlueTwo wide/Media/Films_No_Cover.png trunk/plugins/MyFilms/skin/BlueTwo wide/Media/starhalf_horz.png trunk/plugins/MyFilms/skin/BlueTwo wide/MesFilms.common.facade.xml trunk/plugins/MyFilms/skin/Project Mayhem 3/Media/Films_No_Cover.png trunk/plugins/MyFilms/skin/Project Mayhem 3/Media/starhalf.png trunk/plugins/MyFilms/skin/Project Mayhem 3/Media/starhalf_horz.png trunk/plugins/MyFilms/skin/Project Mayhem 3/MesFilms_Visible.xml trunk/plugins/MyFilms/skin/SpinSafe Revolve/ trunk/plugins/MyFilms/skin/SpinSafe Revolve/Media/ trunk/plugins/MyFilms/skin/SpinSafe Revolve/Media/Films_DD.png trunk/plugins/MyFilms/skin/SpinSafe Revolve/Media/Films_No_Cover.png trunk/plugins/MyFilms/skin/SpinSafe Revolve/Media/Films_first_focus.png trunk/plugins/MyFilms/skin/SpinSafe Revolve/Media/Films_first_nofocus.png trunk/plugins/MyFilms/skin/SpinSafe Revolve/Media/Films_last_focus.png trunk/plugins/MyFilms/skin/SpinSafe Revolve/Media/Films_last_nofocus.png trunk/plugins/MyFilms/skin/SpinSafe Revolve/Media/Films_next_focus.PNG trunk/plugins/MyFilms/skin/SpinSafe Revolve/Media/Films_next_nofocus.PNG trunk/plugins/MyFilms/skin/SpinSafe Revolve/Media/Films_prior_focus.PNG trunk/plugins/MyFilms/skin/SpinSafe Revolve/Media/Films_prior_nofocus.PNG trunk/plugins/MyFilms/skin/SpinSafe Revolve/Media/amclogo.png trunk/plugins/MyFilms/skin/SpinSafe Revolve/Media/hover_my films.png trunk/plugins/MyFilms/skin/SpinSafe Revolve/Media/starhalf.png trunk/plugins/MyFilms/skin/SpinSafe Revolve/Media/starhalf_horz.png trunk/plugins/MyFilms/skin/SpinSafe Revolve/MesFilms.xml trunk/plugins/MyFilms/skin/SpinSafe Revolve/MesFilmsDetail.xml trunk/plugins/MyFilms/skin/SpinSafe Revolve/MesFilms_Visible.xml trunk/plugins/MyFilms/skin/Xface/ trunk/plugins/MyFilms/skin/Xface/Media/ trunk/plugins/MyFilms/skin/Xface/Media/Films_DD.png trunk/plugins/MyFilms/skin/Xface/Media/Films_first_focus.png trunk/plugins/MyFilms/skin/Xface/Media/Films_first_nofocus.png trunk/plugins/MyFilms/skin/Xface/Media/Films_last_focus.png trunk/plugins/MyFilms/skin/Xface/Media/Films_last_nofocus.png trunk/plugins/MyFilms/skin/Xface/Media/Films_next_focus.PNG trunk/plugins/MyFilms/skin/Xface/Media/Films_next_nofocus.PNG trunk/plugins/MyFilms/skin/Xface/Media/Films_prior_focus.PNG trunk/plugins/MyFilms/skin/Xface/Media/Films_prior_nofocus.PNG trunk/plugins/MyFilms/skin/Xface/Media/amclogo.png trunk/plugins/MyFilms/skin/Xface/Media/defaultDVDEmptyBig.png trunk/plugins/MyFilms/skin/Xface/Media/hover_my films.png trunk/plugins/MyFilms/skin/Xface/Media/starhalf.png trunk/plugins/MyFilms/skin/Xface/Media/starhalf_horz.png trunk/plugins/MyFilms/skin/Xface/MesFilms.xml trunk/plugins/MyFilms/skin/Xface/MesFilmsDetail.xml trunk/plugins/MyFilms/skin/Xface/MesFilms_Visible.xml Modified: trunk/plugins/MyFilms/BaseMesFilms.cs =================================================================== --- trunk/plugins/MyFilms/BaseMesFilms.cs 2007-11-23 22:44:32 UTC (rev 1087) +++ trunk/plugins/MyFilms/BaseMesFilms.cs 2007-11-25 18:51:06 UTC (rev 1088) @@ -58,23 +58,14 @@ return movies = data.Tables["Movie"].Select(StrDfltSelect + StrSelect, StrSort + StrSortSens); } - public static DataRow[] LectureDonn\xE9es(string StrFilmSelect, string StrSort, string StrSortSens) - { - if (data == null) - { - initData(); - } - return movies = data.Tables["Movie"].Select(StrFilmSelect, StrSort + StrSortSens); - } - - public static DataRow[] LoadDirectory(string StrDfltSelect, string StrSelect, string StrSort, string StrSortSens) - { - if (data == null) - { - initData(); - } - return movies = data.Tables["Movie"].Select(StrDfltSelect + StrSelect, StrSort + StrSortSens); - } + //public static DataRow[] LectureDonn\xE9es(string StrFilmSelect, string StrSort, string StrSortSens) + //{ + // if (data == null) + // { + // initData(); + // } + // return movies = data.Tables["Movie"].Select(StrFilmSelect, StrSort + StrSortSens); + //} public static void LoadFilm(string StrFileXml) { if (!System.IO.File.Exists(StrFileXml)) Modified: trunk/plugins/MyFilms/MesFilms.cs =================================================================== --- trunk/plugins/MyFilms/MesFilms.cs 2007-11-23 22:44:32 UTC (rev 1087) +++ trunk/plugins/MyFilms/MesFilms.cs 2007-11-25 18:51:06 UTC (rev 1088) @@ -645,7 +645,14 @@ item.IconImage = conf.FileImage; // item.IconImageBig = conf.FileImage; item.ItemId = number; - + try + { + item.Rating = (float)Convert.ToDecimal(r["Rating"]); + } + catch + { + item.Rating = 0; + } item.OnItemSelected += new MediaPortal.GUI.Library.GUIListItem.ItemSelectedHandler(item_OnItemSelected); facadeView.Add(item); @@ -781,7 +788,6 @@ //------------------------------------------------------------------------------------------- private bool control_searchText(string stext) { - //Regex maRegexp = new Regex("^[a-zA-Z0-9 ():-_\\[\\]$&%'\xA7=#\\/.<>!+\"+]+$"); Regex maRegexp = new Regex("^[^*]+$"); bool regOK = maRegexp.IsMatch(stext); return regOK; @@ -798,7 +804,8 @@ if (!conf.Boolselect) GetFilmList(); else - getSelectFromDivx(conf.StrTitle1.ToString() + " not like ''", conf.WStrSort, conf.StrSortSens, "*", true, ""); + //getSelectFromDivx(conf.StrTitle1.ToString() + " not like ''", conf.WStrSort, conf.StrSortSens, "*", true, ""); + getSelectFromDivx(conf.StrSelect, conf.WStrSort, conf.StrSortSens, conf.Wstar, true, ""); return; } @@ -888,7 +895,7 @@ { GUIListItem item = new GUIListItem(); string champselect = ""; - string wchampselect = "$"; + string wchampselect = ""; ArrayList w_tableau = new ArrayList(); string[] arSplit; int Wnb_enr = 0; @@ -902,8 +909,11 @@ //conf.StrActors = ""; // boolreturn = true; if (ClearIndex) conf.StrIndex = 0; + //facadeView.FreeResources(); + Change_LayOut(0); facadeView.Clear(); + //foreach (DataRow enr in LectureDonn\xE9es(WstrSelect, WStrSort, WStrSortSens)) foreach (DataRow enr in BaseMesFilms.LectureDonn\xE9es(conf.StrDfltSelect, WstrSelect, WStrSort, WStrSortSens)) { @@ -944,7 +954,7 @@ { if (conf.Wstar == "*" || champselect.ToUpper().Contains(conf.Wstar.ToUpper())) { - if (Wnb_enr > 0) + if ((Wnb_enr > 0) && (wchampselect.Length > 0)) { item = new GUIListItem(); item.Label = wchampselect.ToString(); @@ -955,19 +965,30 @@ Wnb_enr = 1; wchampselect = champselect.ToString(); } - else - if (Wnb_enr > 0) - { - item = new GUIListItem(); - item.Label = wchampselect.ToString(); - item.Label2 = Wnb_enr.ToString(); - facadeView.Add(item); - if (SelItem != "" && item.Label == SelItem) conf.StrIndex = facadeView.Count - 1; //test if this item is one to select - Wnb_enr = 0; - } - + //else + //{ + // if ((Wnb_enr > 0) && (wchampselect.Length > 0)) + // { + // item = new GUIListItem(); + // item.Label = wchampselect.ToString(); + // item.Label2 = Wnb_enr.ToString(); + // facadeView.Add(item); + // if (SelItem != "" && item.Label == SelItem) conf.StrIndex = facadeView.Count - 1; //test if this item is one to select + // Wnb_enr = 0; + // } + //} } } + + if ((Wnb_enr > 0) && (wchampselect.Length > 0)) + { + item = new GUIListItem(); + item.Label = wchampselect.ToString(); + item.Label2 = Wnb_enr.ToString(); + facadeView.Add(item); + if (SelItem != "" && item.Label == SelItem) conf.StrIndex = facadeView.Count - 1; //test if this item is one to select + Wnb_enr = 0; + } conf.StrTxtSelect = "Selection"; if (conf.Wstar != "*") conf.StrTxtSelect += " " + GUILocalizeStrings.Get(344) + " [*" + conf.Wstar + "*]"; TxtSelect.Label = conf.StrTxtSelect; @@ -977,7 +998,6 @@ if ((conf.StrIndex > facadeView.Count - 1) || (conf.StrIndex < 0)) //check index within bounds, will be unless xml file heavily edited conf.StrIndex = 0; GUIControl.ShowControl(GetID, 34); - Change_LayOut(0); GUIPropertyManager.SetProperty("#nbobjects", facadeView.Count.ToString() + " " + GUILocalizeStrings.Get(127)); GUIControl.SelectItemControl(GetID, (int)Controls.CTRL_List, (int)conf.StrIndex); } @@ -1035,6 +1055,7 @@ getSelectFromDivx(conf.StrSelect, conf.WStrSort, conf.StrSortSens, conf.Wstar, false, ""); // preserve index from last time } else + { Change_LayOut(Layout); if (!(LoadDfltSlct)) GetFilmList(conf.StrIndex); @@ -1085,7 +1106,7 @@ } } } - + } if (conf.LastID == ID_MesFilmsDetail) { GUIWindowManager.ActivateWindow(ID_MesFilmsDetail); // if last window in use was detailed one display that one again @@ -1115,7 +1136,7 @@ facadeView.View = GUIFacadeControl.ViewMode.List; break; } - GUIControl.FocusControl(GetID, facadeView.GetID); + //GUIControl.FocusControl(GetID, facadeView.GetID); } //-------------------------------------------------------------------------------------------- // Change View Response Modified: trunk/plugins/MyFilms/MesFilmsSetup.cs =================================================================== --- trunk/plugins/MyFilms/MesFilmsSetup.cs 2007-11-23 22:44:32 UTC (rev 1087) +++ trunk/plugins/MyFilms/MesFilmsSetup.cs 2007-11-25 18:51:06 UTC (rev 1088) @@ -371,6 +371,7 @@ { MyFilms_xmlwriter.SetValue("MyFilms", "Default_Config", ""); } + MyFilms_xmlwriter.SetValueAsBool("MyFilms", "Menu_Config", Config_Menu.Checked); MyFilms_xmlwriter.SetValue(Config_Name.Text.ToString(), "CatalogType", CatalogType.SelectedIndex.ToString()); MyFilms_xmlwriter.SetValue(Config_Name.Text.ToString(), "AntCatalog", MesFilmsCat.Text.ToString()); @@ -630,59 +631,7 @@ MessageBoxIcon.Question); if (dialogResult == DialogResult.Yes) { - MyFilms_xmlwriter.RemoveEntry(Config_Name.Text, "CatalogType"); - MyFilms_xmlwriter.RemoveEntry(Config_Name.Text, "AntCatalog"); - MyFilms_xmlwriter.RemoveEntry(Config_Name.Text, "AntPicture"); - MyFilms_xmlwriter.RemoveEntry(Config_Name.Text, "AntStorage"); - MyFilms_xmlwriter.RemoveEntry(Config_Name.Text, "PathStorage"); - MyFilms_xmlwriter.RemoveEntry(Config_Name.Text, "SearchFileName"); - MyFilms_xmlwriter.RemoveEntry(Config_Name.Text, "ItemSearchFileName"); - MyFilms_xmlwriter.RemoveEntry(Config_Name.Text, "AlwaysDefaultView"); - MyFilms_xmlwriter.RemoveEntry(Config_Name.Text, "AntIdentItem"); - MyFilms_xmlwriter.RemoveEntry(Config_Name.Text, "AntIdentLabel"); - MyFilms_xmlwriter.RemoveEntry(Config_Name.Text, "AntTitle1"); - MyFilms_xmlwriter.RemoveEntry(Config_Name.Text, "AntTitle2"); - MyFilms_xmlwriter.RemoveEntry(Config_Name.Text, "AntSort"); - MyFilms_xmlwriter.RemoveEntry(Config_Name.Text, "AntTSort"); - MyFilms_xmlwriter.RemoveEntry(Config_Name.Text, "AntFilterItem1"); - MyFilms_xmlwriter.RemoveEntry(Config_Name.Text, "AntFilterSign1"); - MyFilms_xmlwriter.RemoveEntry(Config_Name.Text, "AntFilterText1"); - MyFilms_xmlwriter.RemoveEntry(Config_Name.Text, "AntFilterItem2"); - MyFilms_xmlwriter.RemoveEntry(Config_Name.Text, "AntFilterSign2"); - MyFilms_xmlwriter.RemoveEntry(Config_Name.Text, "AntFilterText2"); - MyFilms_xmlwriter.RemoveEntry(Config_Name.Text, "AntFilterComb"); - MyFilms_xmlwriter.RemoveEntry(Config_Name.Text, "AntViewItem1"); - MyFilms_xmlwriter.RemoveEntry(Config_Name.Text, "AntViewText1"); - MyFilms_xmlwriter.RemoveEntry(Config_Name.Text, "AntViewItem2"); - MyFilms_xmlwriter.RemoveEntry(Config_Name.Text, "AntViewText2"); - MyFilms_xmlwriter.RemoveEntry(Config_Name.Text, "AntUpdItem1"); - MyFilms_xmlwriter.RemoveEntry(Config_Name.Text, "AntUpdText1"); - MyFilms_xmlwriter.RemoveEntry(Config_Name.Text, "AntUpdDflT1"); - MyFilms_xmlwriter.RemoveEntry(Config_Name.Text, "AntUpdItem2"); - MyFilms_xmlwriter.RemoveEntry(Config_Name.Text, "AntUpdText2"); - MyFilms_xmlwriter.RemoveEntry(Config_Name.Text, "AntUpdDflT2"); - MyFilms_xmlwriter.RemoveEntry(Config_Name.Text, "AntLabel1"); - MyFilms_xmlwriter.RemoveEntry(Config_Name.Text, "AntItem1"); - MyFilms_xmlwriter.RemoveEntry(Config_Name.Text, "AntLabel2"); - MyFilms_xmlwriter.RemoveEntry(Config_Name.Text, "AntItem2"); - MyFilms_xmlwriter.RemoveEntry(Config_Name.Text, "AntItem3"); - MyFilms_xmlwriter.RemoveEntry(Config_Name.Text, "AntLabel2"); - MyFilms_xmlwriter.RemoveEntry(Config_Name.Text, "AntLabel2"); - MyFilms_xmlwriter.RemoveEntry(Config_Name.Text, "ViewDfltItem"); - MyFilms_xmlwriter.RemoveEntry(Config_Name.Text, "ViewDfltText"); - MyFilms_xmlwriter.RemoveEntry(Config_Name.Text, "StrSelect"); - MyFilms_xmlwriter.RemoveEntry(Config_Name.Text, "StrDfltSelect"); - MyFilms_xmlwriter.RemoveEntry(Config_Name.Text, "Selection"); - MyFilms_xmlwriter.RemoveEntry(Config_Name.Text, "StrSort"); - MyFilms_xmlwriter.RemoveEntry(Config_Name.Text, "CurrentSortMethod"); - MyFilms_xmlwriter.RemoveEntry(Config_Name.Text, "StrSortSens"); - MyFilms_xmlwriter.RemoveEntry(Config_Name.Text, "IndexItem"); - MyFilms_xmlwriter.RemoveEntry(Config_Name.Text, "TitleDelim"); - MyFilms_xmlwriter.RemoveEntry(Config_Name.Text, "LayOut"); - MyFilms_xmlwriter.RemoveEntry(Config_Name.Text, "Dwp"); - MyFilms_xmlwriter.RemoveEntry(Config_Name.Text, "SortTitle"); - MyFilms_xmlwriter.RemoveEntry(Config_Name.Text, "DVDPTagField"); - MyFilms_xmlwriter.RemoveEntry(Config_Name.Text, "DefaultCover"); + Remove_Config(); if ((Config_Name.Text) == MyFilms_xmlreader.GetValueAsString("MyFilms", "Default_Config", "")) MyFilms_xmlwriter.RemoveEntry("MyFilms", "Default_Config"); if ((Config_Name.Text) == MyFilms_xmlreader.GetValueAsString("MyFilms", "Current_Config", "")) @@ -693,6 +642,72 @@ } } + private void Remove_Config() + { + MyFilms_xmlwriter.RemoveEntry(Config_Name.Text, "CatalogType"); + MyFilms_xmlwriter.RemoveEntry(Config_Name.Text, "AntCatalog"); + MyFilms_xmlwriter.RemoveEntry(Config_Name.Text, "AntPicture"); + MyFilms_xmlwriter.RemoveEntry(Config_Name.Text, "AntStorage"); + MyFilms_xmlwriter.RemoveEntry(Config_Name.Text, "PathStorage"); + MyFilms_xmlwriter.RemoveEntry(Config_Name.Text, "SearchFileName"); + MyFilms_xmlwriter.RemoveEntry(Config_Name.Text, "ItemSearchFileName"); + MyFilms_xmlwriter.RemoveEntry(Config_Name.Text, "AlwaysDefaultView"); + MyFilms_xmlwriter.RemoveEntry(Config_Name.Text, "AntIdentItem"); + MyFilms_xmlwriter.RemoveEntry(Config_Name.Text, "AntIdentLabel"); + MyFilms_xmlwriter.RemoveEntry(Config_Name.Text, "AntTitle1"); + MyFilms_xmlwriter.RemoveEntry(Config_Name.Text, "AntTitle2"); + MyFilms_xmlwriter.RemoveEntry(Config_Name.Text, "AntSort"); + MyFilms_xmlwriter.RemoveEntry(Config_Name.Text, "AntTSort"); + MyFilms_xmlwriter.RemoveEntry(Config_Name.Text, "AntFilterItem1"); + MyFilms_xmlwriter.RemoveEntry(Config_Name.Text, "AntFilterSign1"); + MyFilms_xmlwriter.RemoveEntry(Config_Name.Text, "AntFilterText1"); + MyFilms_xmlwriter.RemoveEntry(Config_Name.Text, "AntFilterItem2"); + MyFilms_xmlwriter.RemoveEntry(Config_Name.Text, "AntFilterSign2"); + MyFilms_xmlwriter.RemoveEntry(Config_Name.Text, "AntFilterText2"); + MyFilms_xmlwriter.RemoveEntry(Config_Name.Text, "AntFilterComb"); + MyFilms_xmlwriter.RemoveEntry(Config_Name.Text, "AntViewItem1"); + MyFilms_xmlwriter.RemoveEntry(Config_Name.Text, "AntViewText1"); + MyFilms_xmlwriter.RemoveEntry(Config_Name.Text, "AntViewItem2"); + MyFilms_xmlwriter.RemoveEntry(Config_Name.Text, "AntViewText2"); + MyFilms_xmlwriter.RemoveEntry(Config_Name.Text, "AntUpdItem1"); + MyFilms_xmlwriter.RemoveEntry(Config_Name.Text, "AntUpdText1"); + MyFilms_xmlwriter.RemoveEntry(Config_Name.Text, "AntUpdDflT1"); + MyFilms_xmlwriter.RemoveEntry(Config_Name.Text, "AntUpdItem2"); + MyFilms_xmlwriter.RemoveEntry(Config_Name.Text, "AntUpdText2"); + MyFilms_xmlwriter.RemoveEntry(Config_Name.Text, "AntUpdDflT2"); + MyFilms_xmlwriter.RemoveEntry(Config_Name.Text, "AntLabel1"); + MyFilms_xmlwriter.RemoveEntry(Config_Name.Text, "AntItem1"); + MyFilms_xmlwriter.RemoveEntry(Config_Name.Text, "AntLabel2"); + MyFilms_xmlwriter.RemoveEntry(Config_Name.Text, "AntItem2"); + MyFilms_xmlwriter.RemoveEntry(Config_Name.Text, "AntItem3"); + MyFilms_xmlwriter.RemoveEntry(Config_Name.Text, "AntLabel2"); + MyFilms_xmlwriter.RemoveEntry(Config_Name.Text, "ViewDfltItem"); + MyFilms_xmlwriter.RemoveEntry(Config_Name.Text, "ViewDfltText"); + MyFilms_xmlwriter.RemoveEntry(Config_Name.Text, "StrSelect"); + MyFilms_xmlwriter.RemoveEntry(Config_Name.Text, "StrDfltSelect"); + MyFilms_xmlwriter.RemoveEntry(Config_Name.Text, "StrTitleSelect"); + MyFilms_xmlwriter.RemoveEntry(Config_Name.Text, "StrFilmSelect"); + MyFilms_xmlwriter.RemoveEntry(Config_Name.Text, "Selection"); + MyFilms_xmlwriter.RemoveEntry(Config_Name.Text, "StrActors"); + MyFilms_xmlwriter.RemoveEntry(Config_Name.Text, "StrSort"); + MyFilms_xmlwriter.RemoveEntry(Config_Name.Text, "WStrSort"); + MyFilms_xmlwriter.RemoveEntry(Config_Name.Text, "CurrentSortMethod"); + MyFilms_xmlwriter.RemoveEntry(Config_Name.Text, "StrSortSens"); + MyFilms_xmlwriter.RemoveEntry(Config_Name.Text, "IndexItem"); + MyFilms_xmlwriter.RemoveEntry(Config_Name.Text, "TitleDelim"); + MyFilms_xmlwriter.RemoveEntry(Config_Name.Text, "TitleItem"); + MyFilms_xmlwriter.RemoveEntry(Config_Name.Text, "WSelectedLabel"); + MyFilms_xmlwriter.RemoveEntry(Config_Name.Text, "LayOut"); + MyFilms_xmlwriter.RemoveEntry(Config_Name.Text, "WLayOut"); + MyFilms_xmlwriter.RemoveEntry(Config_Name.Text, "Wstar"); + MyFilms_xmlwriter.RemoveEntry(Config_Name.Text, "LastID"); + MyFilms_xmlwriter.RemoveEntry(Config_Name.Text, "Dwp"); + MyFilms_xmlwriter.RemoveEntry(Config_Name.Text, "SortTitle"); + MyFilms_xmlwriter.RemoveEntry(Config_Name.Text, "DVDPTagField"); + MyFilms_xmlwriter.RemoveEntry(Config_Name.Text, "DefaultCover"); + MyFilms_xmlwriter.RemoveEntry(Config_Name.Text, "Boolselect"); + MyFilms_xmlwriter.RemoveEntry(Config_Name.Text, "Boolreturn"); + } private void MesFilmsSetup_Quit(object sender, FormClosedEventArgs e) { // MyFilms_xmlwriter.SetValue("MyFilms", "Current_Config", ""); Added: trunk/plugins/MyFilms/skin/Aqua 0.2.3.0/Media/Films_DD.png =================================================================== (Binary files differ) Property changes on: trunk/plugins/MyFilms/skin/Aqua 0.2.3.0/Media/Films_DD.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/plugins/MyFilms/skin/Aqua 0.2.3.0/Media/Films_No_Cover.png =================================================================== (Binary files differ) Property changes on: trunk/plugins/MyFilms/skin/Aqua 0.2.3.0/Media/Films_No_Cover.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/plugins/MyFilms/skin/Aqua 0.2.3.0/Media/Films_first_focus.png =================================================================== (Binary files differ) Property changes on: trunk/plugins/MyFilms/skin/Aqua 0.2.3.0/Media/Films_first_focus.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/plugins/MyFilms/skin/Aqua 0.2.3.0/Media/Films_first_nofocus.png =================================================================== (Binary files differ) Property changes on: trunk/plugins/MyFilms/skin/Aqua 0.2.3.0/Media/Films_first_nofocus.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/plugins/MyFilms/skin/Aqua 0.2.3.0/Media/Films_last_focus.png =================================================================== (Binary files differ) Property changes on: trunk/plugins/MyFilms/skin/Aqua 0.2.3.0/Media/Films_last_focus.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/plugins/MyFilms/skin/Aqua 0.2.3.0/Media/Films_last_nofocus.png =================================================================== (Binary files differ) Property changes on: trunk/plugins/MyFilms/skin/Aqua 0.2.3.0/Media/Films_last_nofocus.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/plugins/MyFilms/skin/Aqua 0.2.3.0/Media/Films_next_focus.PNG =================================================================== (Binary files differ) Property changes on: trunk/plugins/MyFilms/skin/Aqua 0.2.3.0/Media/Films_next_focus.PNG ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/plugins/MyFilms/skin/Aqua 0.2.3.0/Media/Films_next_nofocus.PNG =================================================================== (Binary files differ) Property changes on: trunk/plugins/MyFilms/skin/Aqua 0.2.3.0/Media/Films_next_nofocus.PNG ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/plugins/MyFilms/skin/Aqua 0.2.3.0/Media/Films_prior_focus.PNG =================================================================== (Binary files differ) Property changes on: trunk/plugins/MyFilms/skin/Aqua 0.2.3.0/Media/Films_prior_focus.PNG ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/plugins/MyFilms/skin/Aqua 0.2.3.0/Media/Films_prior_nofocus.PNG =================================================================== (Binary files differ) Property changes on: trunk/plugins/MyFilms/skin/Aqua 0.2.3.0/Media/Films_prior_nofocus.PNG ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/plugins/MyFilms/skin/Aqua 0.2.3.0/Media/amclogo.png =================================================================== (Binary files differ) Property changes on: trunk/plugins/MyFilms/skin/Aqua 0.2.3.0/Media/amclogo.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/plugins/MyFilms/skin/Aqua 0.2.3.0/Media/hover_my films.png =================================================================== (Binary files differ) Property changes on: trunk/plugins/MyFilms/skin/Aqua 0.2.3.0/Media/hover_my films.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/plugins/MyFilms/skin/Aqua 0.2.3.0/Media/starhalf.png =================================================================== (Binary files differ) Property changes on: trunk/plugins/MyFilms/skin/Aqua 0.2.3.0/Media/starhalf.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/plugins/MyFilms/skin/Aqua 0.2.3.0/Media/starhalf_horz.png =================================================================== (Binary files differ) Property changes on: trunk/plugins/MyFilms/skin/Aqua 0.2.3.0/Media/starhalf_horz.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/plugins/MyFilms/skin/Aqua 0.2.3.0/MesFilms.common.facade.xml =================================================================== --- trunk/plugins/MyFilms/skin/Aqua 0.2.3.0/MesFilms.common.facade.xml (rev 0) +++ trunk/plugins/MyFilms/skin/Aqua 0.2.3.0/MesFilms.common.facade.xml 2007-11-25 18:51:06 UTC (rev 1088) @@ -0,0 +1,205 @@ +<?xml version="1.0" standalone="yes"?> +<window> + <controls> + <control> + <type>group</type> + <description>group element</description> + <control> + <visible>Control.HasFocus(1026)</visible> + <animation effect="slide" time="350" end="210,0">Hidden</animation> + <animation effect="fade" time="250">WindowOpen</animation> + <description>composite control consisting of a list control and a thumbnail panel</description> + <type>facadeview</type> + <id>1026</id> + <control> + <description>listcontrol</description> + <type>listcontrol</type> + <posX>80</posX> + <posY>95</posY> + <width>600</width> + <height>330</height> + <onup>6</onup> + <onleft>6</onleft> + <spinWidth>34</spinWidth> + <spinHeight>36</spinHeight> + <spinPosX>6500</spinPosX> + <spinPosY>530</spinPosY> + <spinColor>ffffffff</spinColor> + <textureUp>page_up_nofocus.png</textureUp> + <textureDown>page_down_nofocus.png</textureDown> + <textureUpFocus>page_up_focus.png</textureUpFocus> + <textureDownFocus>page_down_focus.png</textureDownFocus> + <textureFocus>list_sub_focus.png</textureFocus> + <textureNoFocus>list_sub_nofocus.png</textureNoFocus> + <textureHeight>30</textureHeight> + <image>folder_focus.png</image> + <font>font14</font> + <shadedColor>20ffffff</shadedColor> + <selectedColor>FFF8BC70</selectedColor> + <playedColor>ffa0d0ff</playedColor> + <textcolor>ffffffff</textcolor> + <textcolor2>ffffffff</textcolor2> + <textcolor3>ffffffff</textcolor3> + <colordiffuse>ffffffff</colordiffuse> + <remoteColor>ffFFA075</remoteColor> + <downloadColor>ff80ff80</downloadColor> + <textXOff>42</textXOff> + <textYOff>4</textYOff> + <textXOff2>600</textXOff2> + <textYOff2>4</textYOff2> + <itemWidth>20</itemWidth> + <itemHeight>28</itemHeight> + <IconXOff>24</IconXOff> + <IconYOff>2</IconYOff> + <suffix>|</suffix> + <scrollOffset>2</scrollOffset> + </control> + <control> + <description>Thumbnail Panel</description> + <type>thumbnailpanel</type> + <posX>90</posX> + <posY>89</posY> + <width>620</width> + <height>450</height> + <onup>6</onup> + <onleft>6</onleft> + <spinWidth>34</spinWidth> + <spinHeight>36</spinHeight> + <spinPosX>590</spinPosX> + <spinPosY>530</spinPosY> + <spinColor>ffffffff</spinColor> + <textureUp>page_up_nofocus.png</textureUp> + <textureDown>page_down_nofocus.png</textureDown> + <textureUpFocus>page_up_focus.png</textureUpFocus> + <textureDownFocus>page_down_focus.png</textureDownFocus> + <itemWidth>88</itemWidth> + <itemHeight>115</itemHeight> + <textureWidth>73</textureWidth> + <textureHeight>100</textureHeight> + <thumbWidth>72</thumbWidth> + <thumbHeight>76</thumbHeight> + <thumbPosX>0</thumbPosX> + <thumbPosY>9</thumbPosY> + <thumbZoom>yes</thumbZoom> + <imageFolder>icon_empty_nofocus.png</imageFolder> + <imageFolderFocus>cover DVD panel.png</imageFolderFocus> + <font>font12</font> + <selectedColor>00ffffff</selectedColor> + <textcolor>ffffffff</textcolor> + <colordiffuse>ffffffff</colordiffuse> + <remoteColor>ffFFA075</remoteColor> + <downloadColor>ff80ff80</downloadColor> + <suffix>|</suffix> + <textureWidthBig>85</textureWidthBig> + <textureHeightBig>122</textureHeightBig> + <itemWidthBig>112</itemWidthBig> + <itemHeightBig>142</itemHeightBig> + <thumbWidthBig>66</thumbWidthBig> + <thumbHeightBig>92</thumbHeightBig> + <thumbPosXBig>9</thumbPosXBig> + <thumbPosYBig>10</thumbPosYBig> + <thumbZoom>no</thumbZoom> + <textXOff>8</textXOff> + <textYOff>-5</textYOff> + <enableFocusZoom>yes</enableFocusZoom> + </control> + <control> + <description>Filmstrip view</description> + <type>filmstrip</type> + <posX>75</posX> + <posY>180</posY> + <width>690</width> + <height>133</height> + <onup>6</onup> + <onleft>6</onleft> + <ondown>6</ondown> + <spinWidth>34</spinWidth> + <spinHeight>36</spinHeight> + <spinPosX>590</spinPosX> + <spinPosY>530</spinPosY> + <spinColor>ffffffff</spinColor> + <textureUp>page_up_nofocus.png</textureUp> + <textureDown>page_down_nofocus.png</textureDown> + <textureUpFocus>page_up_focus.png</textureUpFocus> + <textureDownFocus>page_down_focus.png</textureDownFocus> + <thumbWidth>146</thumbWidth> + <thumbHeight>216</thumbHeight> + <thumbPosX>10</thumbPosX> + <thumbPosY>6</thumbPosY> + <imageFolder>cover DVD.png</imageFolder> + <imageFolderFocus>cover DVD focus.png</imageFolderFocus> + <frame>cover DVD.png</frame> + <frameFocus>cover DVD focus.png</frameFocus> + <itemWidth>203</itemWidth> + <itemHeight>208</itemHeight> + <textureWidth>173</textureWidth> + <textureHeight>220</textureHeight> + <font>-</font> + <selectedColor>00ffffff</selectedColor> + <textcolor>ffffffff</textcolor> + <colordiffuse>ffffffff</colordiffuse> + <remoteColor>ffFFA075</remoteColor> + <downloadColor>ff80ff80</downloadColor> + <suffix>|</suffix> + <background>Cover_dvd.png</background> + <backgroundx>400</backgroundx> + <backgroundy>126</backgroundy> + <backgroundwidth>312</backgroundwidth> + <backgroundheight>555</backgroundheight> + <backgrounddiffuse>ffffffff</backgrounddiffuse> + <InfoImagex>444</InfoImagex> + <InfoImagey>140</InfoImagey> + <InfoImagewidth>250</InfoImagewidth> + <InfoImageheight>250</InfoImageheight> + <thumbs flipY="true" diffuse="Thumb_Mask.png"/> + <InfoImage flipY="true" diffuse="Thumb_Mask.png"/> + <showFrame>yes</showFrame> + <showFolder>yes</showFolder> + <showBackGround>no</showBackGround> + <showInfoImage>no</showInfoImage> + <enableFocusZoom>no</enableFocusZoom> + <thumbAnimation effect="zoom" start="100,100" end="125,125" time="300">focus</thumbAnimation> + <thumbAnimation effect="zoom" start="125,125" end="100,100" time="300">unfocus</thumbAnimation> + </control> + </control> + <control> + <type>fadelabel</type> + <description>Title (during Icons and List)</description> + <id>1027</id> + <posX>35</posX> + <posY>530</posY> + <onup>6</onup> + <onleft>6</onleft> + <onright>1026</onright> + <onup>1026</onup> + <ondown>1026</ondown> + <font>font12</font> + <width>250</width> + <height>24</height> + <visible>!facadeview.filmstrip+!control.isvisible(34)+control.hasfocus(1026)</visible> + <label>#selecteditem</label> + </control> + <control> + <type>textboxscrollup</type> + <description>Biography value</description> + <id>1025</id> + <posX>165</posX> + <posY>435</posY> + <width>500</width> + <height>80</height> + <onup>6</onup> + <onleft>6</onleft> + <onright>1026</onright> + <onup>1026</onup> + <ondown>1026</ondown> + <colordiffuse>ffffffff</colordiffuse> + <textcolor>FFFFFFFF</textcolor> + <speed>10</speed> + <visible>!facadeview.filmstrip+!facadeview.largeicons+!control.isvisible(34)+control.hasfocus(1026)</visible> + <label>-</label> + <seperator>------------------------------------------------------------------------------------------------------------------------------</seperator> + <font>font12</font> + </control> + </control> + </controls> +</window> \ No newline at end of file Added: trunk/plugins/MyFilms/skin/Aqua 0.2.3.0/MesFilms.xml =================================================================== --- trunk/plugins/MyFilms/skin/Aqua 0.2.3.0/MesFilms.xml (rev 0) +++ trunk/plugins/MyFilms/skin/Aqua 0.2.3.0/MesFilms.xml 2007-11-25 18:51:06 UTC (rev 1088) @@ -0,0 +1,367 @@ +<window> + <id>7986</id> + <defaultcontrol>1026</defaultcontrol> + <allowoverlay>yes</allowoverlay> + <define>#header.label:107986</define> + <controls> + <import>common.time.xml</import> + <import>MesFilms_Visible.xml</import> + <control> + <description>BG</description> + <type>image</type> + <id>1</id> + <posX>0</posX> + <posY>0</posY> + <texture>background.png</texture> + </control> + <control> + <type>image</type> + <id>1</id> + <posX>60</posX> + <posY>20</posY> + <texture>videos_logo.png</texture> + </control> + <control> + <description>menu background image</description> + <type>image</type> + <id>1</id> + <posX>18</posX> + <posY>0</posY> + <width>265</width> + <height>720</height> + <animation effect="slide" time="350" end="-300,0">hidden</animation> + <animation effect="slide" time="450" start="-300,0">visible</animation> + <visible>!Control.HasFocus(1026)</visible> + <texture>menu_bar.png</texture> + </control> + <control> + <description>logo</description> + <type>image</type> + <id>1</id> + <posX>75</posX> + <posY>70</posY> + <height>40</height> + <colordiffuse>9Fffffff</colordiffuse> + <keepaspectratio>yes</keepaspectratio> + <visible>!Control.HasFocus(1026)</visible> + <texture>amclogo.png</texture> + </control> + <control> + <type>fadelabel</type> + <id>12</id> + <posX>270</posX> + <posY>70</posY> + <label>My Films</label> + <font>font14</font> + <align>left</align> + <textcolor>ffa9d0f7</textcolor> + </control> + <control> + <type>group</type> + <description>group element</description> + <id>6</id> + <posX>60</posX> + <posY>97</posY> + <visible>!Control.HasFocus(1026)</visible> + <animation effect="slide" time="350" end="-300,0">hidden</animation> + <animation effect="slide" time="450" start="-300,0">visible</animation> + <layout>StackLayout</layout> + <control> + <type>button</type> + <description>Layout</description> + <id>6</id> + <posX>60</posX> + <posY>97</posY> + <onleft>5</onleft> + <onright>1026</onright> + <onup>5</onup> + <ondown>2</ondown> + <animation>unfocus</animation> + <label>101</label> + <textcolor>ff000000</textcolor> + </control> + <control> + <type>sortbutton</type> + <id>2</id> + <onleft>6</onleft> + <onright>1026</onright> + <onup>6</onup> + <ondown>3</ondown> + <textureAscendingFocused>arrow_round_up_focus.png</textureAscendingFocused> + <font>font13</font> + <textureFocus>menu_list_focus.png</textureFocus> + <textYOff>5</textYOff> + <textXOff>10</textXOff> + <disabledcolor>60ffffff</disabledcolor> + <label>103</label> + <offsetSortButtonY>8</offsetSortButtonY> + <offsetSortButtonX>165</offsetSortButtonX> + <textcolor>White</textcolor> + <textureNoFocus>menu_list_nofocus.png</textureNoFocus> + <textureAscending>arrow_round_up_nofocus.png</textureAscending> + <textureDescending>arrow_round_down_nofocus.png</textureDescending> + <textureDescendingFocused>arrow_round_down_focus.png</textureDescendingFocused> + </control> + <control> + <type>button</type> + <description>Switch view</description> + <id>3</id> + <onleft>2</onleft> + <onright>1026</onright> + <onup>2</onup> + <ondown>4</ondown> + <label>457</label> + </control> + <control> + <type>button</type> + <description>Search by Films</description> + <id>4</id> + <onleft>3</onleft> + <onright>1026</onright> + <onup>3</onup> + <ondown>5</ondown> + <label>137</label> + </control> + <control> + <type>button</type> + <description>Search by Actors</description> + <id>5</id> + <onleft>4</onleft> + <onright>1026</onright> + <onup>4</onup> + <ondown>6</ondown> + <label>137</label> + </control> + </control> + <import>MesFilms.common.facade.xml</import> + <control> + <type>image</type> + <id>1065</id> + <posX>340</posX> + <posY>533</posY> + <width>16</width> + <height>16</height> + <visible>control.isvisible(33)+!facadeview.filmstrip+!control.isvisible(34)+control.hasfocus(1026)</visible> + <texture>star.png</texture> + <centered>yes</centered> + </control> + <control> + <type>image</type> + <id>1064</id> + <posX>320</posX> + <posY>533</posY> + <width>16</width> + <height>16</height> + <visible>control.isvisible(31)+!facadeview.filmstrip+!control.isvisible(34)+control.hasfocus(1026)</visible> + <texture>star.png</texture> + <centered>yes</centered> + </control> + <control> + <type>image</type> + <id>1063</id> + <posX>300</posX> + <posY>533</posY> + <width>16</width> + <height>16</height> + <visible>control.isvisible(29)+!facadeview.filmstrip+!control.isvisible(34)+control.hasfocus(1026)</visible> + <texture>star.png</texture> + <centered>yes</centered> + </control> + <control> + <type>image</type> + <id>1062</id> + <posX>280</posX> + <posY>533</posY> + <width>16</width> + <height>16</height> + <visible>control.isvisible(27)+!facadeview.filmstrip+!control.isvisible(34)+control.hasfocus(1026)</visible> + <texture>star.png</texture> + <centered>yes</centered> + </control> + <control> + <type>image</type> + <id>1061</id> + <posX>260</posX> + <posY>533</posY> + <width>16</width> + <height>16</height> + <visible>control.isvisible(25)+!facadeview.filmstrip+!control.isvisible(34)+control.hasfocus(1026)</visible> + <texture>star.png</texture> + <centered>yes</centered> + </control> + <control> + <type>image</type> + <id>1060</id> + <posX>340</posX> + <posY>533</posY> + <width>16</width> + <height>16</height> + <visible>!facadeview.filmstrip+control.isvisible(32)+!control.isvisible(33)+!control.isvisible(34)+control.hasfocus(1026)</visible> + <texture>starhalf_horz.png</texture> + <centered>yes</centered> + </control> + <control> + <type>image</type> + <id>1059</id> + <posX>320</posX> + <posY>533</posY> + <width>16</width> + <height>16</height> + <visible>!facadeview.filmstrip+control.isvisible(30)+!control.isvisible(31)+!control.isvisible(34)+control.hasfocus(1026)</visible> + <texture>starhalf_horz.png</texture> + <centered>yes</centered> + </control> + <control> + <type>image</type> + <id>1058</id> + <posX>300</posX> + <posY>533</posY> + <width>16</width> + <height>16</height> + <visible>!facadeview.filmstrip+control.isvisible(28)+!control.isvisible(29)+!control.isvisible(34)+control.hasfocus(1026)</visible> + <texture>starhalf_horz.png</texture> + <centered>yes</centered> + </control> + <control> + <type>image</type> + <id>1057</id> + <posX>280</posX> + <posY>533</posY> + <width>16</width> + <height>16</height> + <visible>!facadeview.filmstrip+control.isvisible(26)+!control.isvisible(27)+!control.isvisible(34)+control.hasfocus(1026)</visible> + <texture>starhalf_horz.png</texture> + <centered>yes</centered> + </control> + <control> + <type>image</type> + <id>1056</id> + <posX>260</posX> + <posY>533</posY> + <width>16</width> + <height>16</height> + <visible>!facadeview.filmstrip+control.isvisible(24)+!control.isvisible(25)+!control.isvisible(34)+control.hasfocus(1026)</visible> + <texture>starhalf_horz.png</texture> + <centered>yes</centered> + </control> + <control> + <type>image</type> + <id>1055</id> + <posX>340</posX> + <posY>533</posY> + <width>16</width> + <height>16</height> + <visible>!facadeview.filmstrip+!control.isvisible(32)+!control.isvisible(33)+!control.isvisible(34)+control.hasfocus(1026)</visible> + <texture>greystar.png</texture> + <centered>yes</centered> + </control> + <control> + <type>image</type> + <id>1054</id> + <posX>320</posX> + <posY>533</posY> + <width>16</width> + <height>16</height> + <visible>!facadeview.filmstrip+!control.isvisible(30)+!control.isvisible(31)+!control.isvisible(34)+control.hasfocus(1026)</visible> + <texture>greystar.png</texture> + <centered>yes</centered> + </control> + <control> + <type>image</type> + <id>1053</id> + <posX>300</posX> + <posY>533</posY> + <width>16</width> + <height>16</height> + <visible>!facadeview.filmstrip+!control.isvisible(28)+!control.isvisible(29)+!control.isvisible(34)+control.hasfocus(1026)</visible> + <texture>greystar.png</texture> + <centered>yes</centered> + </control> + <control> + <type>image</type> + <id>1052</id> + <posX>280</posX> + <posY>533</posY> + <width>16</width> + <height>16</height> + <visible>!facadeview.filmstrip+!control.isvisible(26)+!control.isvisible(27)+!control.isvisible(34)+control.hasfocus(1026)</visible> + <texture>greystar.png</texture> + <centered>yes</centered> + </control> + <control> + <type>image</type> + <id>1051</id> + <posX>260</posX> + <posY>533</posY> + <width>16</width> + <height>16</height> + <visible>!facadeview.filmstrip+!control.isvisible(24)+!control.isvisible(25)+!control.isvisible(34)+control.hasfocus(1026)</visible> + <texture>greystar.png</texture> + <centered>yes</centered> + </control> + <control> + <type>image</type> + <id>1019</id> + <posX>60</posX> + <posY>300</posY> + <width>100</width> + <height>150</height> + <texture>hover_my films.png</texture> + <visible>!player.hasmedia+!control.hasfocus(1026)</visible> + <keepaspectratio>yes</keepaspectratio> + </control> + <control> + <type>image</type> + <id>1020</id> + <posX>35</posX> + <posY>390</posY> + <width>92</width> + <height>160</height> + <visible>player.hasmedia +facadeview.list+!control.isvisible(34)+control.hasfocus(1026)</visible> + <keepaspectratio>yes</keepaspectratio> + <texture>-</texture> + </control> + <control> + <type>image</type> + <id>1021</id> + <posX>35</posX> + <posY>390</posY> + <width>100</width> + <height>160</height> + <visible>!player.hasmedia +facadeview.list+!control.isvisible(34)+control.hasfocus(1026)</visible> + <keepaspectratio>yes</keepaspectratio> + <texture>-</texture> + </control> + <control> + <type>label</type> + <description>year</description> + <id>1022</id> + <posX>38</posX> + <posY>550</posY> + <visible>!facadeview.filmstrip+!control.isvisible(23)+!control.isvisible(34)+control.hasfocus(1026)+!player.hasmedia</visible> + <label>6</label> + <font>font12</font> + </control> + <control> + <type>label</type> + <description>category</description> + <id>1024</id> + <posX>85</posX> + <posY>550</posY> + <visible>!facadeview.filmstrip+!control.isvisible(23)+!control.isvisible(34)+control.hasfocus(1026)+!player.hasmedia</visible> + <align>left</align> + <label>6</label> + <font>font12</font> + </control> + <control> + <type>label</type> + <id>2073</id> + <posX>580</posX> + <posY>392</posY> + <label>#nbobjects</label> + <visible>facadeview.list</visible> + <align>left</align> + <textcolor>7fffffff</textcolor> + </control> + </controls> +</window> \ No newline at end of file Added: trunk/plugins/MyFilms/skin/Aqua 0.2.3.0/MesFilmsDetail.xml =================================================================== --- trunk/plugins/MyFilms/skin/Aqua 0.2.3.0/MesFilmsDetail.xml (rev 0) +++ trunk/plugins/MyFilms/skin/Aqua 0.2.3.0/MesFilmsDetail.xml 2007-11-25 18:51:06 UTC (rev 1088) @@ -0,0 +1,439 @@ +<window> + <id>7987</id> + <defaultcontrol>101</defaultcontrol> + <allowoverlay>yes</allowoverlay> + <controls> + <control> + <type>image</type> + <description>BackGround</description> + <id>1</id> + <posX>0</posX> + <posY>0</posY> + <texture>background.png</texture> + </control> + <control> + <description>logo</description> + <type>image</type> + <id>1</id> + <posX>75</posX> + <posY>70</posY> + <height>40</height> + <colordiffuse>9Fffffff</colordiffuse> + <keepaspectratio>yes</keepaspectratio> + <texture>amclogo.png</texture> + </control> + <control> + <type>image</type> + <id>1</id> + <posX>60</posX> + <posY>20</posY> + <texture>videos_logo.png</texture> + </control> + <control> + <type>image</type> + <id>1</id> + <posX>250</posX> + <posY>80</posY> + <width>480</width> + <height>502</height> + <texture>menu_bg.png</texture> + <colordiffuse>7fffffff</colordiffuse> + </control> + <control> + <type>image</type> + <id>1</id> + <posX>273</posX> + <posY>100</posY> + <width>330</width> + <height>50</height> + <texture>album_background_nofocus.png</texture> + <colordiffuse>4fffffff</colordiffuse> + </control> + <control> + <type>group</type> + <description>group element</description> + <id>27</id> + <posX>56</posX> + <posY>97</posY> + <width>198</width> + <height>140</height> + <layout>StackLayout</layout> + <animation effect="slide" time="400" start="-300,0">WindowOpen</animation> + <animation effect="slide" time="400" end="0,-300" >WindowClose</animation> + <animation effect="fade" time="500">WindowClose</animation> + <animation effect="fade" time="250">WindowOpen</animation> + <control> + <type>button</type> + <description>Play</description> + <id>101</id> + <onleft>103</onleft> + <onright>102</onright> + <label>208</label> + </control> + <control> + <type>button</type> + <description>Back</description> + <id>102</id> + <onleft>101</onleft> + <onright>107</onright> + <label>712</label> + </control> + <control> + <type>button</type> + <description>Update</description> + <id>107</id> + <onleft>102</onleft> + <onright>103</onright> + <ondown>103</ondown> + <label>79861</label> + </control> + <control> + <type>group</type> + <description>group element</description> + <id>1234</id> + <layout>GridLayout(4,0,0,0)</layout> + <control> + <type>button</type> + <description>first</description> + <id>106</id> + <onleft>107</onleft> + <onright>104</onright> + <ondown>319</ondown> + <onup>107</onup> + <label>-</label> + <height>40</height> + <width>30</width> + <textureFocus>Films_first_focus.png</textureFocus> + <textureNoFocus>Films_first_nofocus.png</textureNoFocus> + </control> + <control> + <type>button</type> + <description>prior</description> + <id>104</id> + <onleft>106</onleft> + <onright>103</onright> + <ondown>319</ondown> + <onup>107</onup> + <label>-</label> + <height>30</height> + <width>30</width> + <textureFocus>Films_prior_focus.png</textureFocus> + <textureNoFocus>Films_prior_nofocus.png</textureNoFocus> + </control> + <control> + <type>button</type> + <description>next</description> + <id>103</id> + <onleft>104</onleft> + <onright>105</onright> + <ondown>319</ondown> + <onup>107</onup> + <label>-</label> + <height>30</height> + <width>30</width> + <textureFocus>Films_next_focus.png</textureFocus> + <textureNoFocus>Films_next_nofocus.png</textureNoFocus> + </control> + <control> + <type>button</type> + <description>last</description> + <id>105</id> + <onleft>103</onleft> + <onright>106</onright> + <ondown>319</ondown> + <onup>107</onup> + <label>-</label> + <height>30</height> + <width>30</width> + <textureFocus>Films_last_focus.png</textureFocus> + <textureNoFocus>Films_last_nofocus.png</textureNoFocus> + </control> + </control> + </control> + <control> + <type>fadelabel</type> + <id>2071</id> + <posX>78</posX> + <posY>528</posY> + <label>#item3</label> + <font>font8</font> + <width>150</width> + <textcolor>ffc0c0c0</textcolor> + <disabledcolor>ffc0c0c0</disabledcolor> + </control> + <control> + <type>fadelabel</type> + <id>2069</id> + <posX>78</posX> + <posY>513</posY> + <label>#format</label> + <font>font8</font> + <width>150</width> + <textcolor>ffc0c0c0</textcolor> + <disabledcolor>ffc0c0c0</disabledcolor> + </control> + <control> + <type>fadelabel</type> + <id>2070</id> + <posX>690</posX> + <posY>126</posY> + <label>#support</label> + <font>font10</font> + <align>right</align> + <textcolor>ffc0c0c0</textcolor> + <disabledcolor>ffc0c0c0</disabledcolor> + </control> + <control> + <type>label</type> + <id>2068</id> + <posX>690</posX> + <posY>150</posY> + <label>#duree</label> + <font>font10</font> + <align>right</align> + <textcolor>ffffffff</textcolor> + </control> + <control> + <type>image</type> + <id>2072</id> + <posX>660</posX> + <posY>170</posY> + <width>35</width> + <height>35</height> + <align>right</align> + <texture>Films_DD.png</texture> + <colordiffuse>7fffffff</colordiffuse> + </control> + <control> + <type>label</type> + <id>2010</id> + <posX>280</posX> + <posY>156</posY> + <label>#label1</label> + <textcolor>ffc0c0c0</textcolor> + <disabledcolor>ffc0c0c0</disabledcolor> + </control> + <control> + <type>fadelabel</type> + <id>2011</id> + <posX>403</posX> + <posY>156</posY> + <label>#item1</label> + <width>180</width> + <textcolor>ffffffff</textcolor> + <disabledcolor>ffffffff</disabledcolor> + </control> + <control> + <type>fadelabel</type> + <id>2065</id> + <posX>403</posX> + <posY>281</posY> + <label>#item2</label> + <width>200</width> + <textcolor>ffffffff</textcolor> + <disabledcolor>ffffffff</disabledcolor> + </control> + <control> + <type>label</type> + <id>2035</id> + <posX>280</posX> + <posY>281</posY> + <label>#label2</label> + <textcolor>ffc0c0c0</textcolor> + <disabledcolor>ffc0c0c0</disabledcolor> + </control> + <control> + <type>fadelabel</type> + <description>Actors</description> + <id>2065</id> + <posX>280</posX> + <posY>307</posY> + <label>344</label> + <textcolor>ffc0c0c0</textcolor> + <disabledcolor>ffc0c0c0</disabledcolor> + </control> + <control> + <type>label</type> + <description>year</description> + <id>2031</id> + <posX>280</posX> + <posY>181</posY> + <label>201</label> + <textcolor>ffc0c0c0</textcolor> + <disabledcolor>ffc0c0c0</disabledcolor> + </control> + <control> + <type>label</type> + <id>2061</id> + <posX>403</posX> + <posY>181</posY> + <label>#year</label> + <textcolor>ffffffff</textcolor> + <disabledcolor>ffffffff</disabledcolor> + </control> + <control> + <type>label</type> + <description>Rating</description> + <id>2030</id> + <posX>602</posX> + <posY>100</posY> + <label>204</label> + <colordiffuse>ffe0e0e0</colordiffuse> + <textcolor>ffc0... [truncated message content] |
From: <ze...@us...> - 2007-12-19 20:36:00
|
Revision: 1163 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=1163&view=rev Author: zebons Date: 2007-12-19 12:35:31 -0800 (Wed, 19 Dec 2007) Log Message: ----------- MyFilms 4.3.3 Modified Paths: -------------- trunk/plugins/MyFilms/Configuration.cs trunk/plugins/MyFilms/MesFilms.csproj trunk/plugins/MyFilms/MesFilmsDetail.cs trunk/plugins/MyFilms/MesFilmsSetup.Designer.cs trunk/plugins/MyFilms/MesFilmsSetup.cs trunk/plugins/MyFilms/skin/BlackMyst/MesFilms.xml trunk/plugins/MyFilms/skin/BlueTwo/MesFilms.xml trunk/plugins/MyFilms/skin/BlueTwo wide/MesFilms.xml trunk/plugins/MyFilms/skin/Project Mayhem 3/MesFilms.xml trunk/plugins/MyFilms/skin/Xface/MesFilms.xml Added Paths: ----------- trunk/plugins/MyFilms/MovieCollector.cs Modified: trunk/plugins/MyFilms/Configuration.cs =================================================================== --- trunk/plugins/MyFilms/Configuration.cs 2007-12-17 16:00:13 UTC (rev 1162) +++ trunk/plugins/MyFilms/Configuration.cs 2007-12-19 20:35:31 UTC (rev 1163) @@ -74,7 +74,30 @@ else StrFileXml = xmlreader.GetValueAsString(CurrentConfig, "AntCatalogTemp", ""); break; - + case "2": + if (create_temp) + { + string WStrPathImg; + if (StrPathImg.Substring(StrPathImg.Length - 1) == "\\") + WStrPathImg = StrPathImg.Substring(0, StrPathImg.LastIndexOf(@"\")); + else + WStrPathImg = StrPathImg; + string destFile = WStrPathImg + "\\" + StrFileXml.Substring(StrFileXml.LastIndexOf(@"\") + 1, StrFileXml.Length - StrFileXml.LastIndexOf(@"\") - 5) + "_tmp.xml"; + if ((System.IO.File.Exists(destFile) && (System.IO.File.GetLastWriteTime(destFile) > System.IO.File.GetLastWriteTime(StrFileXml)))) + { + StrFileXml = destFile; + break; + } + bool SortTitle = false; + bool OnlyFile = false; + SortTitle = xmlreader.GetValueAsBool(CurrentConfig, "SortTitle", false); + OnlyFile = xmlreader.GetValueAsBool(CurrentConfig, "OnlyFile", false); + MovieCollector mc = new MovieCollector(); + StrFileXml = mc.ConvertMovieCollector(StrFileXml, StrPathImg, SortTitle, OnlyFile); + } + else + StrFileXml = xmlreader.GetValueAsString(CurrentConfig, "AntCatalogTemp", ""); + break; } StrSelect = xmlreader.GetValueAsString(CurrentConfig, "StrSelect", ""); StrActors = xmlreader.GetValueAsString(CurrentConfig, "StrActors", ""); Modified: trunk/plugins/MyFilms/MesFilms.csproj =================================================================== --- trunk/plugins/MyFilms/MesFilms.csproj 2007-12-17 16:00:13 UTC (rev 1162) +++ trunk/plugins/MyFilms/MesFilms.csproj 2007-12-19 20:35:31 UTC (rev 1163) @@ -75,6 +75,7 @@ <Compile Include="MesFilmsSetup.designer.cs"> <DependentUpon>MesFilmsSetup.cs</DependentUpon> </Compile> + <Compile Include="MovieCollector.cs" /> <Compile Include="Properties\Resources.Designer.cs"> <AutoGen>True</AutoGen> <DesignTime>True</DesignTime> Modified: trunk/plugins/MyFilms/MesFilmsDetail.cs =================================================================== --- trunk/plugins/MyFilms/MesFilmsDetail.cs 2007-12-17 16:00:13 UTC (rev 1162) +++ trunk/plugins/MyFilms/MesFilmsDetail.cs 2007-12-19 20:35:31 UTC (rev 1163) @@ -850,7 +850,7 @@ } // search character ";" => playlist (multiple files) string[] split; - split = wfile.ToString().Split(new Char[] { ',', ';' }); + split = wfile.ToString().Split(new Char[] { ';' }); if (split.Length > 1) multifile = true; else @@ -1467,6 +1467,9 @@ newProcess.StartInfo.CreateNoWindow = true; newProcess.StartInfo.WindowStyle = ProcessWindowStyle.Hidden; newProcess.Start(); + while (!newProcess.HasExited) + { + } } catch (Exception e) Modified: trunk/plugins/MyFilms/MesFilmsSetup.Designer.cs =================================================================== --- trunk/plugins/MyFilms/MesFilmsSetup.Designer.cs 2007-12-17 16:00:13 UTC (rev 1162) +++ trunk/plugins/MyFilms/MesFilmsSetup.Designer.cs 2007-12-19 20:35:31 UTC (rev 1163) @@ -182,6 +182,8 @@ this.AntLabel1 = new System.Windows.Forms.TextBox(); this.AntItem1 = new System.Windows.Forms.ComboBox(); this.tabPage3 = new System.Windows.Forms.TabPage(); + this.groupBox13 = new System.Windows.Forms.GroupBox(); + this.OnlyFile = new System.Windows.Forms.CheckBox(); this.groupBox10 = new System.Windows.Forms.GroupBox(); this.SortTitle = new System.Windows.Forms.CheckBox(); this.groupBox9 = new System.Windows.Forms.GroupBox(); @@ -193,8 +195,6 @@ this.ButSave = new System.Windows.Forms.Button(); this.Config_Dflt = new System.Windows.Forms.CheckBox(); this.Config_Menu = new System.Windows.Forms.CheckBox(); - this.groupBox13 = new System.Windows.Forms.GroupBox(); - this.OnlyFile = new System.Windows.Forms.CheckBox(); this.General.SuspendLayout(); this.tabPage1.SuspendLayout(); this.groupBox11.SuspendLayout(); @@ -209,9 +209,9 @@ this.groupBox3.SuspendLayout(); this.groupBox1.SuspendLayout(); this.tabPage3.SuspendLayout(); + this.groupBox13.SuspendLayout(); this.groupBox10.SuspendLayout(); this.groupBox9.SuspendLayout(); - this.groupBox13.SuspendLayout(); this.SuspendLayout(); // // label10 @@ -221,7 +221,7 @@ this.label10.Name = "label10"; this.label10.Size = new System.Drawing.Size(69, 13); this.label10.TabIndex = 34; - this.label10.Text = "Version 4.3.2"; + this.label10.Text = "Version 4.3.3"; // // textBox1 // @@ -462,7 +462,8 @@ this.CatalogType.FormattingEnabled = true; this.CatalogType.Items.AddRange(new object[] { "Ant Movie Catalog", - "DVD Profiler"}); + "DVD Profiler", + "MovieCollector"}); this.CatalogType.Location = new System.Drawing.Point(561, 25); this.CatalogType.Name = "CatalogType"; this.CatalogType.Size = new System.Drawing.Size(166, 21); @@ -701,7 +702,7 @@ this.groupBox4.Size = new System.Drawing.Size(372, 70); this.groupBox4.TabIndex = 28; this.groupBox4.TabStop = false; - this.groupBox4.Text = "Ant Udating Items."; + this.groupBox4.Text = "Ant Updating Items."; // // AntUpdDflT2 // @@ -1056,6 +1057,26 @@ this.tabPage3.Text = "DVDProfiler"; this.tabPage3.UseVisualStyleBackColor = true; // + // groupBox13 + // + this.groupBox13.Controls.Add(this.OnlyFile); + this.groupBox13.Location = new System.Drawing.Point(56, 190); + this.groupBox13.Name = "groupBox13"; + this.groupBox13.Size = new System.Drawing.Size(327, 65); + this.groupBox13.TabIndex = 2; + this.groupBox13.TabStop = false; + this.groupBox13.Text = "Notes Field"; + // + // OnlyFile + // + this.OnlyFile.AutoSize = true; + this.OnlyFile.Location = new System.Drawing.Point(24, 28); + this.OnlyFile.Name = "OnlyFile"; + this.OnlyFile.Size = new System.Drawing.Size(221, 17); + this.OnlyFile.TabIndex = 0; + this.OnlyFile.Text = "Notes Field contains only Movie Filename"; + this.OnlyFile.UseVisualStyleBackColor = true; + // // groupBox10 // this.groupBox10.Controls.Add(this.SortTitle); @@ -1168,26 +1189,6 @@ this.Config_Menu.Text = "Display Always Configuration\'s Menu (if no Default Config)"; this.Config_Menu.UseVisualStyleBackColor = true; // - // groupBox13 - // - this.groupBox13.Controls.Add(this.OnlyFile); - this.groupBox13.Location = new System.Drawing.Point(56, 190); - this.groupBox13.Name = "groupBox13"; - this.groupBox13.Size = new System.Drawing.Size(327, 65); - this.groupBox13.TabIndex = 2; - this.groupBox13.TabStop = false; - this.groupBox13.Text = "Notes Field"; - // - // OnlyFile - // - this.OnlyFile.AutoSize = true; - this.OnlyFile.Location = new System.Drawing.Point(24, 28); - this.OnlyFile.Name = "OnlyFile"; - this.OnlyFile.Size = new System.Drawing.Size(221, 17); - this.OnlyFile.TabIndex = 0; - this.OnlyFile.Text = "Notes Field contains only Movie Filename"; - this.OnlyFile.UseVisualStyleBackColor = true; - // // MesFilmsSetup // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); @@ -1233,12 +1234,12 @@ this.groupBox1.ResumeLayout(false); this.groupBox1.PerformLayout(); this.tabPage3.ResumeLayout(false); + this.groupBox13.ResumeLayout(false); + this.groupBox13.PerformLayout(); this.groupBox10.ResumeLayout(false); this.groupBox10.PerformLayout(); this.groupBox9.ResumeLayout(false); this.groupBox9.PerformLayout(); - this.groupBox13.ResumeLayout(false); - this.groupBox13.PerformLayout(); this.ResumeLayout(false); this.PerformLayout(); Modified: trunk/plugins/MyFilms/MesFilmsSetup.cs =================================================================== --- trunk/plugins/MyFilms/MesFilmsSetup.cs 2007-12-17 16:00:13 UTC (rev 1162) +++ trunk/plugins/MyFilms/MesFilmsSetup.cs 2007-12-19 20:35:31 UTC (rev 1163) @@ -751,14 +751,15 @@ if (reader != null) { reader.Close(); - + string destFile = ""; switch (CatalogType.SelectedIndex) { + case 0: mydivx.ReadXml(MesFilmsCat.Text); break; case 1: - string destFile = MesFilmsCat.Text.Substring(0, MesFilmsCat.Text.Length - 4) + "_tmp.xml"; + destFile = MesFilmsCat.Text.Substring(0, MesFilmsCat.Text.Length - 4) + "_tmp.xml"; if ((System.IO.File.Exists(destFile) && (System.IO.File.GetLastWriteTime(destFile) > System.IO.File.GetLastWriteTime(MesFilmsCat.Text)))) { mydivx.ReadXml(destFile); @@ -766,9 +767,19 @@ } if (radioButton1.Checked) DVDPTagField.Text = "Category"; - CatalogConverter cc = new CatalogConverter(DVDPTagField.Text); - mydivx.ReadXml(cc.ConvertProfiler(MesFilmsCat.Text,MesFilmsImg.Text, SortTitle.Checked, DVDPTagField.Text,OnlyFile.Checked)); + CatalogConverter cc1 = new CatalogConverter(DVDPTagField.Text); + mydivx.ReadXml(cc1.ConvertProfiler(MesFilmsCat.Text,MesFilmsImg.Text, SortTitle.Checked, DVDPTagField.Text,OnlyFile.Checked)); break; + case 2: + destFile = MesFilmsCat.Text.Substring(0, MesFilmsCat.Text.Length - 4) + "_tmp.xml"; + if ((System.IO.File.Exists(destFile) && (System.IO.File.GetLastWriteTime(destFile) > System.IO.File.GetLastWriteTime(MesFilmsCat.Text)))) + { + mydivx.ReadXml(destFile); + break; + } + MovieCollector cc2 = new MovieCollector(); + mydivx.ReadXml(cc2.ConvertMovieCollector(MesFilmsCat.Text, MesFilmsImg.Text, SortTitle.Checked, OnlyFile.Checked)); + break; } DataRow[] movies = mydivx.Movie.Select(StrDfltSelect + AntTitle1.Text + " not like ''"); if (mydivx.Movie.Count > 0) @@ -881,5 +892,5 @@ if (openFileDialog1.ShowDialog(this) == DialogResult.OK) DefaultCover.Text = openFileDialog1.FileName; } - } + } } Added: trunk/plugins/MyFilms/MovieCollector.cs =================================================================== --- trunk/plugins/MyFilms/MovieCollector.cs (rev 0) +++ trunk/plugins/MyFilms/MovieCollector.cs 2007-12-19 20:35:31 UTC (rev 1163) @@ -0,0 +1,208 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Xml; +using MediaPortal.GUI.Library; +using System.Windows.Forms; +using System.Globalization; +using MediaPortal.Configuration; + + +namespace MesFilms +{ + class MovieCollector + { + public Dictionary<string, string> ProfilerDict; + + public MovieCollector() + { + ProfilerDict = new Dictionary<string, string>(); + ProfilerDict.Add("Format", "MediaType"); + ProfilerDict.Add("Title", "OriginalTitle"); + ProfilerDict.Add("TTitle", "TranslatedTitle"); + ProfilerDict.Add("STitle", "FormattedTitle"); + ProfilerDict.Add("CollectionNumber", "Number"); + ProfilerDict.Add("Review/ReviewFilm", "Rating"); + ProfilerDict.Add("MovieFile", "URL"); + ProfilerDict.Add("Country", "Country"); + ProfilerDict.Add("Year", "Year"); + ProfilerDict.Add("RunningTime", "Length"); + ProfilerDict.Add("Actors", "Actors"); + ProfilerDict.Add("Genres", "Category"); + ProfilerDict.Add("Credits", "Director"); + ProfilerDict.Add("Credits1", "Producer"); + ProfilerDict.Add("Overview", "Description"); + ProfilerDict.Add("Picture", "Picture"); + ProfilerDict.Add("Viewed", "Checked"); + ProfilerDict.Add("Borrower", "Borrower"); + } + public string ConvertMovieCollector(string source, string folderimage, bool SortTitle, bool OnlyFile) + { + string WStrPathImg; + if (folderimage.Substring(folderimage.Length - 1) == "\\") + WStrPathImg = folderimage.Substring(0, folderimage.LastIndexOf(@"\")); + else + WStrPathImg = folderimage; + string destFile = WStrPathImg + "\\" + source.Substring(source.LastIndexOf(@"\") + 1, source.Length - source.LastIndexOf(@"\") - 5) + "_tmp.xml"; + XmlTextWriter destXml = new XmlTextWriter(destFile, Encoding.Default); + destXml.Formatting = Formatting.Indented; + destXml.WriteStartDocument(); + destXml.WriteStartElement("AntMovieCatalog"); + destXml.WriteStartElement("Catalog"); + destXml.WriteElementString("Properties", ""); + destXml.WriteStartElement("Contents"); + try + { + XmlDocument doc = new XmlDocument(); + doc.Load(source); + XmlNodeList dvdList = doc.DocumentElement.SelectNodes("/movieinfo/movielist/movie"); + foreach (XmlNode nodeDVD in dvdList) + { + destXml.WriteStartElement("Movie"); + XmlNode nodeID = nodeDVD.SelectSingleNode("id"); + XmlNode nodeMediaType = nodeDVD.SelectSingleNode("format/displayname"); + XmlNode nodeNumber = null; + try + { + nodeNumber = nodeDVD.SelectSingleNode("index"); + } + catch + { + } + XmlNode nodeFormat = nodeDVD.SelectSingleNode("format/displayname"); + XmlNode nodeTitle = nodeDVD.SelectSingleNode("title"); + XmlNode nodeOTitle = nodeDVD.SelectSingleNode("originaltitle"); + XmlNode nodeSTitle = nodeDVD.SelectSingleNode("titlesort"); + XmlNode nodeViewed = nodeDVD.SelectSingleNode("seenit"); + XmlNode nodeYear = nodeDVD.SelectSingleNode("releasedate/year/displayname"); + XmlNodeList LinksKist = nodeDVD.SelectNodes("links/link"); + string url = String.Empty; + foreach (XmlNode nodeFile in LinksKist) + { + if (nodeFile.SelectSingleNode("urltype").InnerText == "Movie") + { + if (url.Length > 0) url += ";"; + url += nodeFile.SelectSingleNode("url").InnerText; + } + } + XmlNode nodeBorrower = nodeDVD.SelectSingleNode("loan/loanedto/displayname"); + XmlNode nodeDuration = nodeDVD.SelectSingleNode("runtime"); + XmlNode nodeCountry = nodeDVD.SelectSingleNode("country"); + XmlNode nodeOverview = nodeDVD.SelectSingleNode("plot"); + string genre = String.Empty; + XmlNodeList genreList = nodeDVD.SelectNodes("genres/genre"); + foreach (XmlNode nodeGenre in genreList) + { + if (genre.Length > 0) genre += ", "; + genre += nodeGenre.SelectSingleNode("displayname").InnerText; + } + string cast = String.Empty; + XmlNodeList actorsList = nodeDVD.SelectNodes("cast/star"); + foreach (XmlNode nodeActor in actorsList) + { + string line = String.Empty; + line = nodeActor.SelectSingleNode("person/displayname").InnerText; + if (nodeActor.SelectSingleNode("character").InnerText.Length > 0) + line += " (" + nodeActor.SelectSingleNode("character").InnerText + ")"; + if (line.Length > 0) + { + if (cast.Length > 0) cast += ", "; + cast += line; + } + } + string Director = String.Empty; + string Producer = String.Empty; + XmlNodeList creditsList = nodeDVD.SelectNodes("crew/crewmember"); + foreach (XmlNode nodeCredit in creditsList) + { + string line = String.Empty; + if (nodeCredit.SelectSingleNode("roleid").InnerText == "dfDirector") + { + line = nodeCredit.SelectSingleNode("person/displayname").InnerText; + if (line.Length > 0) + { + if (Director.Length > 0) Director += ", "; + Director += line; + } + } + else + if (nodeCredit.SelectSingleNode("roleid").InnerText == "dfProducer") + { + line = nodeCredit.SelectSingleNode("person/displayname").InnerText; + if (line.Length > 0) + { + if (Producer.Length > 0) Producer += ", "; + Producer += line; + } + } + } + string Image = nodeDVD.SelectSingleNode("thumbfilepath").InnerText; + XmlNode nodeRating = nodeDVD.SelectSingleNode("myrating"); + string Rating = string.Empty; + if (nodeRating != null && nodeRating.InnerText != null) + Rating = nodeRating.InnerText + ".0"; + else + Rating = "0.0"; + if (nodeNumber != null && nodeNumber.InnerText != null && nodeNumber.InnerText.Length > 0) + WriteAntAtribute(destXml, "CollectionNumber", nodeNumber.InnerText); + else + WriteAntAtribute(destXml, "CollectionNumber", "9999"); + if (nodeOTitle != null && nodeOTitle.InnerText.Length > 0) + WriteAntAtribute(destXml, "Title", nodeOTitle.InnerText); + else + WriteAntAtribute(destXml, "Title", nodeTitle.InnerText); + WriteAntAtribute(destXml, "TTitle", nodeTitle.InnerText); + if (nodeSTitle != null && nodeSTitle.InnerText.Length > 0) + WriteAntAtribute(destXml, "STitle", nodeSTitle.InnerText); + else + WriteAntAtribute(destXml, "STitle", nodeTitle.InnerText); + //WriteAntAtribute(destXml, "Notes/File", File); + if (nodeViewed.Attributes["boolvalue"].Value == "1") + WriteAntAtribute(destXml, "Viewed", "true"); + else + WriteAntAtribute(destXml, "Viewed", "false"); + WriteAntAtribute(destXml, "Country", nodeCountry.SelectSingleNode("displayname").InnerText); + WriteAntAtribute(destXml, "Review/ReviewFilm", Rating); + WriteAntAtribute(destXml, "Year", nodeYear.InnerText); + if (nodeDuration.InnerText.Substring(0, nodeDuration.InnerText.IndexOf(" ")).Length > 0) + WriteAntAtribute(destXml, "RunningTime", nodeDuration.InnerText.Substring(0, nodeDuration.InnerText.IndexOf(" ")).ToString()); + if (nodeBorrower != null && nodeBorrower.InnerText != null) + WriteAntAtribute(destXml, "Borrower", nodeBorrower.InnerText); + WriteAntAtribute(destXml, "Format", nodeFormat.InnerText); + WriteAntAtribute(destXml, "Genres", genre); + WriteAntAtribute(destXml, "Credits", Director); + WriteAntAtribute(destXml, "Credits1", Producer); + WriteAntAtribute(destXml, "Actors", cast); + WriteAntAtribute(destXml, "Picture", Image); + WriteAntAtribute(destXml, "MovieFile", url); + if (nodeOverview != null && nodeOverview.InnerText != null) + WriteAntAtribute(destXml, "Overview", nodeOverview.InnerText); + else + WriteAntAtribute(destXml, "Overview", ""); + + destXml.WriteEndElement(); + } + + } + catch + { + return ""; + } + destXml.WriteEndElement(); + destXml.WriteEndElement(); + destXml.Close(); + return destFile; + } + + private void WriteAntAtribute(XmlTextWriter tw, string key, string value) + { + string at = ""; + if (ProfilerDict.TryGetValue(key, out at)) + { + tw.WriteAttributeString(at, value); + } + } + } + +} Modified: trunk/plugins/MyFilms/skin/BlackMyst/MesFilms.xml =================================================================== --- trunk/plugins/MyFilms/skin/BlackMyst/MesFilms.xml 2007-12-17 16:00:13 UTC (rev 1162) +++ trunk/plugins/MyFilms/skin/BlackMyst/MesFilms.xml 2007-12-19 20:35:31 UTC (rev 1163) @@ -1,6 +1,6 @@ <window> <id>7986</id> - <defaultcontrol>6</defaultcontrol> + <defaultcontrol>1026</defaultcontrol> <allowoverlay>yes</allowoverlay> <define>#header.label:107986</define> <controls> Modified: trunk/plugins/MyFilms/skin/BlueTwo/MesFilms.xml =================================================================== --- trunk/plugins/MyFilms/skin/BlueTwo/MesFilms.xml 2007-12-17 16:00:13 UTC (rev 1162) +++ trunk/plugins/MyFilms/skin/BlueTwo/MesFilms.xml 2007-12-19 20:35:31 UTC (rev 1163) @@ -1,6 +1,6 @@ <window> <id>7986</id> - <defaultcontrol>6</defaultcontrol> + <defaultcontrol>1026</defaultcontrol> <allowoverlay>yes</allowoverlay> <controls> <import>common.time.xml</import> Modified: trunk/plugins/MyFilms/skin/BlueTwo wide/MesFilms.xml =================================================================== --- trunk/plugins/MyFilms/skin/BlueTwo wide/MesFilms.xml 2007-12-17 16:00:13 UTC (rev 1162) +++ trunk/plugins/MyFilms/skin/BlueTwo wide/MesFilms.xml 2007-12-19 20:35:31 UTC (rev 1163) @@ -1,6 +1,6 @@ <window> <id>7986</id> - <defaultcontrol>6</defaultcontrol> + <defaultcontrol>1026</defaultcontrol> <allowoverlay>yes</allowoverlay> <controls> <import>common.time.xml</import> Modified: trunk/plugins/MyFilms/skin/Project Mayhem 3/MesFilms.xml =================================================================== --- trunk/plugins/MyFilms/skin/Project Mayhem 3/MesFilms.xml 2007-12-17 16:00:13 UTC (rev 1162) +++ trunk/plugins/MyFilms/skin/Project Mayhem 3/MesFilms.xml 2007-12-19 20:35:31 UTC (rev 1163) @@ -1,6 +1,6 @@ <window> <id>7986</id> - <defaultcontrol>6</defaultcontrol> + <defaultcontrol>1026</defaultcontrol> <allowoverlay>yes</allowoverlay> <controls> <import>MesFilms_Visible.xml</import> Modified: trunk/plugins/MyFilms/skin/Xface/MesFilms.xml =================================================================== --- trunk/plugins/MyFilms/skin/Xface/MesFilms.xml 2007-12-17 16:00:13 UTC (rev 1162) +++ trunk/plugins/MyFilms/skin/Xface/MesFilms.xml 2007-12-19 20:35:31 UTC (rev 1163) @@ -1,6 +1,6 @@ <window> <id>7986</id> - <defaultcontrol>6</defaultcontrol> + <defaultcontrol>1026</defaultcontrol> <allowoverlay>yes</allowoverlay> <define>#header.label:107986</define> <define>#header.image:videos_logo.png</define> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ze...@us...> - 2007-12-30 10:21:35
|
Revision: 1198 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=1198&view=rev Author: zebons Date: 2007-12-30 02:21:21 -0800 (Sun, 30 Dec 2007) Log Message: ----------- v4.3.4 Corrected bug when MP option 'restart on last module' is activated and skipping MP in MyFilms Detail screen. Modified Paths: -------------- trunk/plugins/MyFilms/MesFilms.cs trunk/plugins/MyFilms/MesFilmsDetail.cs trunk/plugins/MyFilms/MesFilmsSetup.Designer.cs Modified: trunk/plugins/MyFilms/MesFilms.cs =================================================================== --- trunk/plugins/MyFilms/MesFilms.cs 2007-12-29 07:35:31 UTC (rev 1197) +++ trunk/plugins/MyFilms/MesFilms.cs 2007-12-30 10:21:21 UTC (rev 1198) @@ -51,7 +51,7 @@ public class MesFilms : GUIWindow, ISetupForm { - private BaseMesFilms films; + //private BaseMesFilms films; #region Descriptif zones Ecran @@ -96,7 +96,7 @@ public int Layout = 0; public static Configuration conf; - private string currentConfig; + //private string currentConfig; private string strPluginName; #endregion Modified: trunk/plugins/MyFilms/MesFilmsDetail.cs =================================================================== --- trunk/plugins/MyFilms/MesFilmsDetail.cs 2007-12-29 07:35:31 UTC (rev 1197) +++ trunk/plugins/MyFilms/MesFilmsDetail.cs 2007-12-30 10:21:21 UTC (rev 1198) @@ -82,6 +82,8 @@ string wzone = null; int StrMax = 0; + public const int ID_MesFilms = 7986; + public int ID_MesFilmsDetail = 7987; public SQLiteClient m_db; DataRow[] r; // will hold current recordset to traverse public class IMDBActorMovie @@ -116,7 +118,7 @@ } public override int GetID { - get { return 7987; } + get { return ID_MesFilmsDetail; } set { base.GetID = value; } } public override bool Init() @@ -171,6 +173,19 @@ case GUIMessage.MessageType.GUI_MSG_WINDOW_DEINIT: //called when exiting plugin either by prev menu or pressing home button if (Configuration.CurrentConfig != "") Configuration.SaveConfiguration(Configuration.CurrentConfig, MesFilms.conf.StrIndex, MesFilms.conf.StrTIndex); + using (MediaPortal.Profile.Settings xmlreader = new MediaPortal.Profile.Settings(Config.GetFile(Config.Dir.Config, "MediaPortal.xml"))) + { + string currentmoduleid = "7986"; + bool currentmodulefullscreen = (GUIWindowManager.ActiveWindow == (int)GUIWindow.Window.WINDOW_TVFULLSCREEN || GUIWindowManager.ActiveWindow == (int)GUIWindow.Window.WINDOW_FULLSCREEN_MUSIC || GUIWindowManager.ActiveWindow == (int)GUIWindow.Window.WINDOW_FULLSCREEN_VIDEO || GUIWindowManager.ActiveWindow == (int)GUIWindow.Window.WINDOW_FULLSCREEN_TELETEXT); + string currentmodulefullscreenstate = GUIPropertyManager.GetProperty("#currentmodulefullscreenstate"); + // if MP was closed/hibernated by the use of remote control, we have to retrieve the fullscreen state in an alternative manner. + if (!currentmodulefullscreen && currentmodulefullscreenstate == "True") + currentmodulefullscreen = true; + xmlreader.SetValue("general", "lastactivemodule", currentmoduleid); + xmlreader.SetValueAsBool("general", "lastactivemodulefullscreen", currentmodulefullscreen); + Log.Debug("Main: SaveLastActiveModule - module {0}", currentmoduleid); + Log.Debug("Main: SaveLastActiveModule - fullscreen {0}", currentmodulefullscreen); + } return true; case GUIMessage.MessageType.GUI_MSG_CD_REMOVED: Modified: trunk/plugins/MyFilms/MesFilmsSetup.Designer.cs =================================================================== --- trunk/plugins/MyFilms/MesFilmsSetup.Designer.cs 2007-12-29 07:35:31 UTC (rev 1197) +++ trunk/plugins/MyFilms/MesFilmsSetup.Designer.cs 2007-12-30 10:21:21 UTC (rev 1198) @@ -221,7 +221,7 @@ this.label10.Name = "label10"; this.label10.Size = new System.Drawing.Size(69, 13); this.label10.TabIndex = 34; - this.label10.Text = "Version 4.3.3"; + this.label10.Text = "Version 4.3.4"; // // textBox1 // @@ -247,8 +247,8 @@ this.Config_Name.Size = new System.Drawing.Size(202, 21); this.Config_Name.Sorted = true; this.Config_Name.TabIndex = 1; + this.Config_Name.SelectedIndexChanged += new System.EventHandler(this.Config_Name_SelectedIndexChanged); this.Config_Name.Leave += new System.EventHandler(this.Config_Name_SelectedIndexChanged); - this.Config_Name.SelectedIndexChanged += new System.EventHandler(this.Config_Name_SelectedIndexChanged); // // label12 // @@ -1207,8 +1207,8 @@ this.Controls.Add(this.ButQuit); this.Name = "MesFilmsSetup"; this.Text = "MesFilmsSetup"; + this.Load += new System.EventHandler(this.MesFilmsSetup_Load); this.FormClosed += new System.Windows.Forms.FormClosedEventHandler(this.MesFilmsSetup_Quit); - this.Load += new System.EventHandler(this.MesFilmsSetup_Load); this.General.ResumeLayout(false); this.tabPage1.ResumeLayout(false); this.tabPage1.PerformLayout(); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ze...@us...> - 2008-01-03 09:01:15
|
Revision: 1202 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=1202&view=rev Author: zebons Date: 2008-01-03 01:01:09 -0800 (Thu, 03 Jan 2008) Log Message: ----------- Bug fixed when using UNC convention for Thumbnail access (v4.3.5) Modified Paths: -------------- trunk/plugins/MyFilms/MesFilms.cs trunk/plugins/MyFilms/MesFilmsDetail.cs trunk/plugins/MyFilms/MesFilmsSetup.Designer.cs Modified: trunk/plugins/MyFilms/MesFilms.cs =================================================================== --- trunk/plugins/MyFilms/MesFilms.cs 2008-01-01 01:19:50 UTC (rev 1201) +++ trunk/plugins/MyFilms/MesFilms.cs 2008-01-03 09:01:09 UTC (rev 1202) @@ -735,7 +735,7 @@ GUIControl.HideControl(GetID, 34); try { - if (r[ItemId]["Picture"].ToString().IndexOf(":\\") == -1) + if ((r[ItemId]["Picture"].ToString().IndexOf(":\\") == -1) && (r[ItemId]["Picture"].ToString().Substring(0,2) != "\\\\")) conf.FileImage = conf.StrPathImg + "\\" + r[ItemId]["Picture"].ToString(); else conf.FileImage = r[ItemId]["Picture"].ToString(); Modified: trunk/plugins/MyFilms/MesFilmsDetail.cs =================================================================== --- trunk/plugins/MyFilms/MesFilmsDetail.cs 2008-01-01 01:19:50 UTC (rev 1201) +++ trunk/plugins/MyFilms/MesFilmsDetail.cs 2008-01-03 09:01:09 UTC (rev 1202) @@ -463,7 +463,7 @@ return; } string file = "false"; - if (r[MesFilms.conf.StrIndex]["Picture"].ToString().IndexOf(":\\") == -1) + if ((r[MesFilms.conf.StrIndex]["Picture"].ToString().IndexOf(":\\") == -1) && (r[MesFilms.conf.StrIndex]["Picture"].ToString().Substring(0,2) != "\\\\")) file = MesFilms.conf.StrPathImg + "\\" + r[MesFilms.conf.StrIndex]["Picture"].ToString(); else file = r[MesFilms.conf.StrIndex]["Picture"].ToString(); @@ -1069,7 +1069,7 @@ try { string wImage; - if (r1[select_item]["Picture"].ToString().IndexOf(":\\") == -1) + if ((r1[select_item]["Picture"].ToString().IndexOf(":\\") == -1) && (r1[select_item]["Picture"].ToString().Substring(0,2) != "\\\\")) wImage = MesFilms.conf.StrPathImg + "\\" + r1[select_item]["Picture"].ToString(); else wImage = r1[select_item]["Picture"].ToString(); Modified: trunk/plugins/MyFilms/MesFilmsSetup.Designer.cs =================================================================== --- trunk/plugins/MyFilms/MesFilmsSetup.Designer.cs 2008-01-01 01:19:50 UTC (rev 1201) +++ trunk/plugins/MyFilms/MesFilmsSetup.Designer.cs 2008-01-03 09:01:09 UTC (rev 1202) @@ -221,7 +221,7 @@ this.label10.Name = "label10"; this.label10.Size = new System.Drawing.Size(69, 13); this.label10.TabIndex = 34; - this.label10.Text = "Version 4.3.4"; + this.label10.Text = "Version 4.3.5"; // // textBox1 // This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ze...@us...> - 2008-02-03 22:15:49
|
Revision: 1338 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=1338&view=rev Author: zebons Date: 2008-02-03 14:15:46 -0800 (Sun, 03 Feb 2008) Log Message: ----------- v4.1.1.2 with MyMovies compatibility and few bugs corrected Modified Paths: -------------- trunk/plugins/MyFilms/AntMovieCatalog.Designer.cs trunk/plugins/MyFilms/BaseMesFilms.cs trunk/plugins/MyFilms/CatalogConverter.cs trunk/plugins/MyFilms/Configuration.cs trunk/plugins/MyFilms/MesFilms.cs trunk/plugins/MyFilms/MesFilms.csproj trunk/plugins/MyFilms/MesFilmsDetail.cs trunk/plugins/MyFilms/MesFilmsSetup.Designer.cs trunk/plugins/MyFilms/MesFilmsSetup.cs trunk/plugins/MyFilms/MovieCollector.cs Modified: trunk/plugins/MyFilms/AntMovieCatalog.Designer.cs =================================================================== --- trunk/plugins/MyFilms/AntMovieCatalog.Designer.cs 2008-02-02 16:01:03 UTC (rev 1337) +++ trunk/plugins/MyFilms/AntMovieCatalog.Designer.cs 2008-02-03 22:15:46 UTC (rev 1338) @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // <auto-generated> // Ce code a été généré par un outil. -// Version du runtime :2.0.50727.42 +// Version du runtime :2.0.50727.1433 // // Les modifications apportées à ce fichier peuvent provoquer un comportement incorrect et seront perdues si // le code est régénéré. @@ -11,17 +11,19 @@ #pragma warning disable 1591 namespace MesFilms { - using System; - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")] - [Serializable()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.ComponentModel.ToolboxItem(true)] - [System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedDataSetSchema")] - [System.Xml.Serialization.XmlRootAttribute("AntMovieCatalog")] - [System.ComponentModel.Design.HelpKeywordAttribute("vs.data.DataSet")] - public partial class AntMovieCatalog : System.Data.DataSet { + /// <summary> + ///Represents a strongly typed in-memory cache of data. + ///</summary> + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")] + [global::System.Serializable()] + [global::System.ComponentModel.DesignerCategoryAttribute("code")] + [global::System.ComponentModel.ToolboxItem(true)] + [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedDataSetSchema")] + [global::System.Xml.Serialization.XmlRootAttribute("AntMovieCatalog")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.DataSet")] + public partial class AntMovieCatalog : global::System.Data.DataSet { private CatalogDataTable tableCatalog; @@ -29,37 +31,37 @@ private MovieDataTable tableMovie; - private System.Data.DataRelation relationCatalog_Contents; + private global::System.Data.DataRelation relationCatalog_Contents; - private System.Data.DataRelation relationContents_Movie; + private global::System.Data.DataRelation relationContents_Movie; - private System.Data.SchemaSerializationMode _schemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema; + private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema; - [System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] public AntMovieCatalog() { this.BeginInit(); this.InitClass(); - System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged); + global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged); base.Tables.CollectionChanged += schemaChangedHandler; base.Relations.CollectionChanged += schemaChangedHandler; this.EndInit(); this.InitExpressions(); } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - protected AntMovieCatalog(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected AntMovieCatalog(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) : base(info, context, false) { if ((this.IsBinarySerialized(info, context) == true)) { this.InitVars(false); - System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler1 = new System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged); + global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler1 = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged); this.Tables.CollectionChanged += schemaChangedHandler1; this.Relations.CollectionChanged += schemaChangedHandler1; return; } string strSchema = ((string)(info.GetValue("XmlSchema", typeof(string)))); - if ((this.DetermineSchemaSerializationMode(info, context) == System.Data.SchemaSerializationMode.IncludeSchema)) { - System.Data.DataSet ds = new System.Data.DataSet(); - ds.ReadXmlSchema(new System.Xml.XmlTextReader(new System.IO.StringReader(strSchema))); + if ((this.DetermineSchemaSerializationMode(info, context) == global::System.Data.SchemaSerializationMode.IncludeSchema)) { + global::System.Data.DataSet ds = new global::System.Data.DataSet(); + ds.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema))); if ((ds.Tables["Catalog"] != null)) { base.Tables.Add(new CatalogDataTable(ds.Tables["Catalog"])); } @@ -75,50 +77,50 @@ this.Locale = ds.Locale; this.CaseSensitive = ds.CaseSensitive; this.EnforceConstraints = ds.EnforceConstraints; - this.Merge(ds, false, System.Data.MissingSchemaAction.Add); + this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add); this.InitVars(); } else { - this.ReadXmlSchema(new System.Xml.XmlTextReader(new System.IO.StringReader(strSchema))); + this.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema))); this.InitExpressions(); } this.GetSerializationData(info, context); - System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged); + global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged); base.Tables.CollectionChanged += schemaChangedHandler; this.Relations.CollectionChanged += schemaChangedHandler; } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - [System.ComponentModel.Browsable(false)] - [System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Content)] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.ComponentModel.Browsable(false)] + [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)] public CatalogDataTable Catalog { get { return this.tableCatalog; } } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - [System.ComponentModel.Browsable(false)] - [System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Content)] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.ComponentModel.Browsable(false)] + [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)] public ContentsDataTable Contents { get { return this.tableContents; } } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - [System.ComponentModel.Browsable(false)] - [System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Content)] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.ComponentModel.Browsable(false)] + [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)] public MovieDataTable Movie { get { return this.tableMovie; } } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - [System.ComponentModel.BrowsableAttribute(true)] - [System.ComponentModel.DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Visible)] - public override System.Data.SchemaSerializationMode SchemaSerializationMode { + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.ComponentModel.BrowsableAttribute(true)] + [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Visible)] + public override global::System.Data.SchemaSerializationMode SchemaSerializationMode { get { return this._schemaSerializationMode; } @@ -127,31 +129,31 @@ } } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - [System.ComponentModel.DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Hidden)] - public new System.Data.DataTableCollection Tables { + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)] + public new global::System.Data.DataTableCollection Tables { get { return base.Tables; } } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - [System.ComponentModel.DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Hidden)] - public new System.Data.DataRelationCollection Relations { + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)] + public new global::System.Data.DataRelationCollection Relations { get { return base.Relations; } } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] protected override void InitializeDerivedDataSet() { this.BeginInit(); this.InitClass(); this.EndInit(); } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public override System.Data.DataSet Clone() { + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public override global::System.Data.DataSet Clone() { AntMovieCatalog cln = ((AntMovieCatalog)(base.Clone())); cln.InitVars(); cln.InitExpressions(); @@ -159,21 +161,21 @@ return cln; } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] protected override bool ShouldSerializeTables() { return false; } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] protected override bool ShouldSerializeRelations() { return false; } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - protected override void ReadXmlSerializable(System.Xml.XmlReader reader) { - if ((this.DetermineSchemaSerializationMode(reader) == System.Data.SchemaSerializationMode.IncludeSchema)) { + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override void ReadXmlSerializable(global::System.Xml.XmlReader reader) { + if ((this.DetermineSchemaSerializationMode(reader) == global::System.Data.SchemaSerializationMode.IncludeSchema)) { this.Reset(); - System.Data.DataSet ds = new System.Data.DataSet(); + global::System.Data.DataSet ds = new global::System.Data.DataSet(); ds.ReadXml(reader); if ((ds.Tables["Catalog"] != null)) { base.Tables.Add(new CatalogDataTable(ds.Tables["Catalog"])); @@ -190,7 +192,7 @@ this.Locale = ds.Locale; this.CaseSensitive = ds.CaseSensitive; this.EnforceConstraints = ds.EnforceConstraints; - this.Merge(ds, false, System.Data.MissingSchemaAction.Add); + this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add); this.InitVars(); } else { @@ -199,20 +201,20 @@ } } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - protected override System.Xml.Schema.XmlSchema GetSchemaSerializable() { - System.IO.MemoryStream stream = new System.IO.MemoryStream(); - this.WriteXmlSchema(new System.Xml.XmlTextWriter(stream, null)); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override global::System.Xml.Schema.XmlSchema GetSchemaSerializable() { + global::System.IO.MemoryStream stream = new global::System.IO.MemoryStream(); + this.WriteXmlSchema(new global::System.Xml.XmlTextWriter(stream, null)); stream.Position = 0; - return System.Xml.Schema.XmlSchema.Read(new System.Xml.XmlTextReader(stream), null); + return global::System.Xml.Schema.XmlSchema.Read(new global::System.Xml.XmlTextReader(stream), null); } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] internal void InitVars() { this.InitVars(true); } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] internal void InitVars(bool initTable) { this.tableCatalog = ((CatalogDataTable)(base.Tables["Catalog"])); if ((initTable == true)) { @@ -236,81 +238,114 @@ this.relationContents_Movie = this.Relations["Contents_Movie"]; } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] private void InitClass() { this.DataSetName = "AntMovieCatalog"; this.Prefix = ""; this.EnforceConstraints = true; - this.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema; + this.SchemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema; this.tableCatalog = new CatalogDataTable(); base.Tables.Add(this.tableCatalog); this.tableContents = new ContentsDataTable(); base.Tables.Add(this.tableContents); this.tableMovie = new MovieDataTable(false); base.Tables.Add(this.tableMovie); - System.Data.ForeignKeyConstraint fkc; - fkc = new System.Data.ForeignKeyConstraint("Catalog_Contents", new System.Data.DataColumn[] { - this.tableCatalog.Catalog_IdColumn}, new System.Data.DataColumn[] { + global::System.Data.ForeignKeyConstraint fkc; + fkc = new global::System.Data.ForeignKeyConstraint("Catalog_Contents", new global::System.Data.DataColumn[] { + this.tableCatalog.Catalog_IdColumn}, new global::System.Data.DataColumn[] { this.tableContents.Catalog_IdColumn}); this.tableContents.Constraints.Add(fkc); - fkc.AcceptRejectRule = System.Data.AcceptRejectRule.None; - fkc.DeleteRule = System.Data.Rule.Cascade; - fkc.UpdateRule = System.Data.Rule.Cascade; - fkc = new System.Data.ForeignKeyConstraint("Contents_Movie", new System.Data.DataColumn[] { - this.tableContents.Contents_IdColumn}, new System.Data.DataColumn[] { + fkc.AcceptRejectRule = global::System.Data.AcceptRejectRule.None; + fkc.DeleteRule = global::System.Data.Rule.Cascade; + fkc.UpdateRule = global::System.Data.Rule.Cascade; + fkc = new global::System.Data.ForeignKeyConstraint("Contents_Movie", new global::System.Data.DataColumn[] { + this.tableContents.Contents_IdColumn}, new global::System.Data.DataColumn[] { this.tableMovie.Contents_IdColumn}); this.tableMovie.Constraints.Add(fkc); - fkc.AcceptRejectRule = System.Data.AcceptRejectRule.None; - fkc.DeleteRule = System.Data.Rule.Cascade; - fkc.UpdateRule = System.Data.Rule.Cascade; - this.relationCatalog_Contents = new System.Data.DataRelation("Catalog_Contents", new System.Data.DataColumn[] { - this.tableCatalog.Catalog_IdColumn}, new System.Data.DataColumn[] { + fkc.AcceptRejectRule = global::System.Data.AcceptRejectRule.None; + fkc.DeleteRule = global::System.Data.Rule.Cascade; + fkc.UpdateRule = global::System.Data.Rule.Cascade; + this.relationCatalog_Contents = new global::System.Data.DataRelation("Catalog_Contents", new global::System.Data.DataColumn[] { + this.tableCatalog.Catalog_IdColumn}, new global::System.Data.DataColumn[] { this.tableContents.Catalog_IdColumn}, false); this.relationCatalog_Contents.Nested = true; this.Relations.Add(this.relationCatalog_Contents); - this.relationContents_Movie = new System.Data.DataRelation("Contents_Movie", new System.Data.DataColumn[] { - this.tableContents.Contents_IdColumn}, new System.Data.DataColumn[] { + this.relationContents_Movie = new global::System.Data.DataRelation("Contents_Movie", new global::System.Data.DataColumn[] { + this.tableContents.Contents_IdColumn}, new global::System.Data.DataColumn[] { this.tableMovie.Contents_IdColumn}, false); this.relationContents_Movie.Nested = true; this.Relations.Add(this.relationContents_Movie); } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] private bool ShouldSerializeCatalog() { return false; } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] private bool ShouldSerializeContents() { return false; } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] private bool ShouldSerializeMovie() { return false; } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - private void SchemaChanged(object sender, System.ComponentModel.CollectionChangeEventArgs e) { - if ((e.Action == System.ComponentModel.CollectionChangeAction.Remove)) { + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) { + if ((e.Action == global::System.ComponentModel.CollectionChangeAction.Remove)) { this.InitVars(); } } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public static System.Xml.Schema.XmlSchemaComplexType GetTypedDataSetSchema(System.Xml.Schema.XmlSchemaSet xs) { + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedDataSetSchema(global::System.Xml.Schema.XmlSchemaSet xs) { AntMovieCatalog ds = new AntMovieCatalog(); - System.Xml.Schema.XmlSchemaComplexType type = new System.Xml.Schema.XmlSchemaComplexType(); - System.Xml.Schema.XmlSchemaSequence sequence = new System.Xml.Schema.XmlSchemaSequence(); - xs.Add(ds.GetSchemaSerializable()); - System.Xml.Schema.XmlSchemaAny any = new System.Xml.Schema.XmlSchemaAny(); + global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType(); + global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence(); + global::System.Xml.Schema.XmlSchemaAny any = new global::System.Xml.Schema.XmlSchemaAny(); any.Namespace = ds.Namespace; sequence.Items.Add(any); type.Particle = sequence; + global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable(); + if (xs.Contains(dsSchema.TargetNamespace)) { + global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream(); + global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream(); + try { + global::System.Xml.Schema.XmlSchema schema = null; + dsSchema.Write(s1); + for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) { + schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current)); + s2.SetLength(0); + schema.Write(s2); + if ((s1.Length == s2.Length)) { + s1.Position = 0; + s2.Position = 0; + for (; ((s1.Position != s1.Length) + && (s1.ReadByte() == s2.ReadByte())); ) { + ; + } + if ((s1.Position == s1.Length)) { + return type; + } + } + } + } + finally { + if ((s1 != null)) { + s1.Close(); + } + if ((s2 != null)) { + s2.Close(); + } + } + } + xs.Add(dsSchema); return type; } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] private void InitExpressions() { this.Movie.DateAddedColumn.Expression = "Convert(Date,\'System.DateTime\')"; } @@ -321,18 +356,21 @@ public delegate void MovieRowChangeEventHandler(object sender, MovieRowChangeEvent e); - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")] - [System.Serializable()] - [System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] - public partial class CatalogDataTable : System.Data.DataTable, System.Collections.IEnumerable { + /// <summary> + ///Represents the strongly named DataTable class. + ///</summary> + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")] + [global::System.Serializable()] + [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] + public partial class CatalogDataTable : global::System.Data.DataTable, global::System.Collections.IEnumerable { - private System.Data.DataColumn columnAntMovieCatalog_Id; + private global::System.Data.DataColumn columnAntMovieCatalog_Id; - private System.Data.DataColumn columnProperties; + private global::System.Data.DataColumn columnProperties; - private System.Data.DataColumn columnCatalog_Id; + private global::System.Data.DataColumn columnCatalog_Id; - [System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] public CatalogDataTable() { this.TableName = "Catalog"; this.BeginInit(); @@ -340,8 +378,8 @@ this.EndInit(); } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - internal CatalogDataTable(System.Data.DataTable table) { + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + internal CatalogDataTable(global::System.Data.DataTable table) { this.TableName = table.TableName; if ((table.CaseSensitive != table.DataSet.CaseSensitive)) { this.CaseSensitive = table.CaseSensitive; @@ -356,42 +394,42 @@ this.MinimumCapacity = table.MinimumCapacity; } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - protected CatalogDataTable(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected CatalogDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) : base(info, context) { this.InitVars(); } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public System.Data.DataColumn AntMovieCatalog_IdColumn { + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn AntMovieCatalog_IdColumn { get { return this.columnAntMovieCatalog_Id; } } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public System.Data.DataColumn PropertiesColumn { + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn PropertiesColumn { get { return this.columnProperties; } } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public System.Data.DataColumn Catalog_IdColumn { + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn Catalog_IdColumn { get { return this.columnCatalog_Id; } } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - [System.ComponentModel.Browsable(false)] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.ComponentModel.Browsable(false)] public int Count { get { return this.Rows.Count; } } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] public CatalogRow this[int index] { get { return ((CatalogRow)(this.Rows[index])); @@ -406,55 +444,56 @@ public event CatalogRowChangeEventHandler CatalogRowDeleted; - [System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] public void AddCatalogRow(CatalogRow row) { this.Rows.Add(row); } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] public CatalogRow AddCatalogRow(int AntMovieCatalog_Id, string Properties) { CatalogRow rowCatalogRow = ((CatalogRow)(this.NewRow())); - rowCatalogRow.ItemArray = new object[] { + object[] columnValuesArray = new object[] { AntMovieCatalog_Id, Properties, null}; + rowCatalogRow.ItemArray = columnValuesArray; this.Rows.Add(rowCatalogRow); return rowCatalogRow; } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public virtual System.Collections.IEnumerator GetEnumerator() { + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public virtual global::System.Collections.IEnumerator GetEnumerator() { return this.Rows.GetEnumerator(); } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public override System.Data.DataTable Clone() { + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public override global::System.Data.DataTable Clone() { CatalogDataTable cln = ((CatalogDataTable)(base.Clone())); cln.InitVars(); return cln; } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - protected override System.Data.DataTable CreateInstance() { + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override global::System.Data.DataTable CreateInstance() { return new CatalogDataTable(); } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] internal void InitVars() { this.columnAntMovieCatalog_Id = base.Columns["AntMovieCatalog_Id"]; this.columnProperties = base.Columns["Properties"]; this.columnCatalog_Id = base.Columns["Catalog_Id"]; } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] private void InitClass() { - this.columnAntMovieCatalog_Id = new System.Data.DataColumn("AntMovieCatalog_Id", typeof(int), null, System.Data.MappingType.Hidden); + this.columnAntMovieCatalog_Id = new global::System.Data.DataColumn("AntMovieCatalog_Id", typeof(int), null, global::System.Data.MappingType.Hidden); base.Columns.Add(this.columnAntMovieCatalog_Id); - this.columnProperties = new System.Data.DataColumn("Properties", typeof(string), null, System.Data.MappingType.Element); + this.columnProperties = new global::System.Data.DataColumn("Properties", typeof(string), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnProperties); - this.columnCatalog_Id = new System.Data.DataColumn("Catalog_Id", typeof(int), null, System.Data.MappingType.Hidden); + this.columnCatalog_Id = new global::System.Data.DataColumn("Catalog_Id", typeof(int), null, global::System.Data.MappingType.Hidden); base.Columns.Add(this.columnCatalog_Id); - this.Constraints.Add(new System.Data.UniqueConstraint("Constraint1", new System.Data.DataColumn[] { + this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { this.columnCatalog_Id}, true)); this.columnAntMovieCatalog_Id.Namespace = ""; this.columnCatalog_Id.AutoIncrement = true; @@ -463,98 +502,134 @@ this.columnCatalog_Id.Namespace = ""; } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] public CatalogRow NewCatalogRow() { return ((CatalogRow)(this.NewRow())); } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - protected override System.Data.DataRow NewRowFromBuilder(System.Data.DataRowBuilder builder) { + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) { return new CatalogRow(builder); } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - protected override System.Type GetRowType() { + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override global::System.Type GetRowType() { return typeof(CatalogRow); } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - protected override void OnRowChanged(System.Data.DataRowChangeEventArgs e) { + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) { base.OnRowChanged(e); if ((this.CatalogRowChanged != null)) { this.CatalogRowChanged(this, new CatalogRowChangeEvent(((CatalogRow)(e.Row)), e.Action)); } } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - protected override void OnRowChanging(System.Data.DataRowChangeEventArgs e) { + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) { base.OnRowChanging(e); if ((this.CatalogRowChanging != null)) { this.CatalogRowChanging(this, new CatalogRowChangeEvent(((CatalogRow)(e.Row)), e.Action)); } } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - protected override void OnRowDeleted(System.Data.DataRowChangeEventArgs e) { + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) { base.OnRowDeleted(e); if ((this.CatalogRowDeleted != null)) { this.CatalogRowDeleted(this, new CatalogRowChangeEvent(((CatalogRow)(e.Row)), e.Action)); } } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - protected override void OnRowDeleting(System.Data.DataRowChangeEventArgs e) { + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) { base.OnRowDeleting(e); if ((this.CatalogRowDeleting != null)) { this.CatalogRowDeleting(this, new CatalogRowChangeEvent(((CatalogRow)(e.Row)), e.Action)); } } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] public void RemoveCatalogRow(CatalogRow row) { this.Rows.Remove(row); } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public static System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(System.Xml.Schema.XmlSchemaSet xs) { - System.Xml.Schema.XmlSchemaComplexType type = new System.Xml.Schema.XmlSchemaComplexType(); - System.Xml.Schema.XmlSchemaSequence sequence = new System.Xml.Schema.XmlSchemaSequence(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) { + global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType(); + global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence(); AntMovieCatalog ds = new AntMovieCatalog(); - xs.Add(ds.GetSchemaSerializable()); - System.Xml.Schema.XmlSchemaAny any1 = new System.Xml.Schema.XmlSchemaAny(); + global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny(); any1.Namespace = "http://www.w3.org/2001/XMLSchema"; any1.MinOccurs = new decimal(0); any1.MaxOccurs = decimal.MaxValue; - any1.ProcessContents = System.Xml.Schema.XmlSchemaContentProcessing.Lax; + any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; sequence.Items.Add(any1); - System.Xml.Schema.XmlSchemaAny any2 = new System.Xml.Schema.XmlSchemaAny(); + global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny(); any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1"; any2.MinOccurs = new decimal(1); - any2.ProcessContents = System.Xml.Schema.XmlSchemaContentProcessing.Lax; + any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; sequence.Items.Add(any2); - System.Xml.Schema.XmlSchemaAttribute attribute1 = new System.Xml.Schema.XmlSchemaAttribute(); + global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute(); attribute1.Name = "namespace"; attribute1.FixedValue = ds.Namespace; type.Attributes.Add(attribute1); - System.Xml.Schema.XmlSchemaAttribute attribute2 = new System.Xml.Schema.XmlSchemaAttribute(); + global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute(); attribute2.Name = "tableTypeName"; attribute2.FixedValue = "CatalogDataTable"; type.Attributes.Add(attribute2); type.Particle = sequence; + global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable(); + if (xs.Contains(dsSchema.TargetNamespace)) { + global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream(); + global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream(); + try { + global::System.Xml.Schema.XmlSchema schema = null; + dsSchema.Write(s1); + for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) { + schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current)); + s2.SetLength(0); + schema.Write(s2); + if ((s1.Length == s2.Length)) { + s1.Position = 0; + s2.Position = 0; + for (; ((s1.Position != s1.Length) + && (s1.ReadByte() == s2.ReadByte())); ) { + ; + } + if ((s1.Position == s1.Length)) { + return type; + } + } + } + } + finally { + if ((s1 != null)) { + s1.Close(); + } + if ((s2 != null)) { + s2.Close(); + } + } + } + xs.Add(dsSchema); return type; } } - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")] - [System.Serializable()] - [System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] - public partial class ContentsDataTable : System.Data.DataTable, System.Collections.IEnumerable { + /// <summary> + ///Represents the strongly named DataTable class. + ///</summary> + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")] + [global::System.Serializable()] + [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] + public partial class ContentsDataTable : global::System.Data.DataTable, global::System.Collections.IEnumerable { - private System.Data.DataColumn columnContents_Id; + private global::System.Data.DataColumn columnContents_Id; - private System.Data.DataColumn columnCatalog_Id; + private global::System.Data.DataColumn columnCatalog_Id; - [System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] public ContentsDataTable() { this.TableName = "Contents"; this.BeginInit(); @@ -562,8 +637,8 @@ this.EndInit(); } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - internal ContentsDataTable(System.Data.DataTable table) { + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + internal ContentsDataTable(global::System.Data.DataTable table) { this.TableName = table.TableName; if ((table.CaseSensitive != table.DataSet.CaseSensitive)) { this.CaseSensitive = table.CaseSensitive; @@ -578,35 +653,35 @@ this.MinimumCapacity = table.MinimumCapacity; } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - protected ContentsDataTable(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected ContentsDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) : base(info, context) { this.InitVars(); } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public System.Data.DataColumn Contents_IdColumn { + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn Contents_IdColumn { get { return this.columnContents_Id; } } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public System.Data.DataColumn Catalog_IdColumn { + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn Catalog_IdColumn { get { return this.columnCatalog_Id; } } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - [System.ComponentModel.Browsable(false)] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.ComponentModel.Browsable(false)] public int Count { get { return this.Rows.Count; } } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] public ContentsRow this[int index] { get { return ((ContentsRow)(this.Rows[index])); @@ -621,51 +696,55 @@ public event ContentsRowChangeEventHandler ContentsRowDeleted; - [System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] public void AddContentsRow(ContentsRow row) { this.Rows.Add(row); } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] public ContentsRow AddContentsRow(CatalogRow parentCatalogRowByCatalog_Contents) { ContentsRow rowContentsRow = ((ContentsRow)(this.NewRow())); - rowContentsRow.ItemArray = new object[] { + object[] columnValuesArray = new object[] { null, - parentCatalogRowByCatalog_Contents[2]}; + null}; + if ((parentCatalogRowByCatalog_Contents != null)) { + columnValuesArray[1] = parentCatalogRowByCatalog_Contents[2]; + } + rowContentsRow.ItemArray = columnValuesArray; this.Rows.Add(rowContentsRow); return rowContentsRow; } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public virtual System.Collections.IEnumerator GetEnumerator() { + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public virtual global::System.Collections.IEnumerator GetEnumerator() { return this.Rows.GetEnumerator(); } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public override System.Data.DataTable Clone() { + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public override global::System.Data.DataTable Clone() { ContentsDataTable cln = ((ContentsDataTable)(base.Clone())); cln.InitVars(); return cln; } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - protected override System.Data.DataTable CreateInstance() { + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override global::System.Data.DataTable CreateInstance() { return new ContentsDataTable(); } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] internal void InitVars() { this.columnContents_Id = base.Columns["Contents_Id"]; this.columnCatalog_Id = base.Columns["Catalog_Id"]; } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] private void InitClass() { - this.columnContents_Id = new System.Data.DataColumn("Contents_Id", typeof(int), null, System.Data.MappingType.Hidden); + this.columnContents_Id = new global::System.Data.DataColumn("Contents_Id", typeof(int), null, global::System.Data.MappingType.Hidden); base.Columns.Add(this.columnContents_Id); - this.columnCatalog_Id = new System.Data.DataColumn("Catalog_Id", typeof(int), null, System.Data.MappingType.Hidden); + this.columnCatalog_Id = new global::System.Data.DataColumn("Catalog_Id", typeof(int), null, global::System.Data.MappingType.Hidden); base.Columns.Add(this.columnCatalog_Id); - this.Constraints.Add(new System.Data.UniqueConstraint("Constraint1", new System.Data.DataColumn[] { + this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { this.columnContents_Id}, true)); this.columnContents_Id.AutoIncrement = true; this.columnContents_Id.AllowDBNull = false; @@ -674,168 +753,204 @@ this.columnCatalog_Id.Namespace = ""; } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] public ContentsRow NewContentsRow() { return ((ContentsRow)(this.NewRow())); } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - protected override System.Data.DataRow NewRowFromBuilder(System.Data.DataRowBuilder builder) { + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) { return new ContentsRow(builder); } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - protected override System.Type GetRowType() { + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override global::System.Type GetRowType() { return typeof(ContentsRow); } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - protected override void OnRowChanged(System.Data.DataRowChangeEventArgs e) { + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) { base.OnRowChanged(e); if ((this.ContentsRowChanged != null)) { this.ContentsRowChanged(this, new ContentsRowChangeEvent(((ContentsRow)(e.Row)), e.Action)); } } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - protected override void OnRowChanging(System.Data.DataRowChangeEventArgs e) { + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) { base.OnRowChanging(e); if ((this.ContentsRowChanging != null)) { this.ContentsRowChanging(this, new ContentsRowChangeEvent(((ContentsRow)(e.Row)), e.Action)); } } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - protected override void OnRowDeleted(System.Data.DataRowChangeEventArgs e) { + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) { base.OnRowDeleted(e); if ((this.ContentsRowDeleted != null)) { this.ContentsRowDeleted(this, new ContentsRowChangeEvent(((ContentsRow)(e.Row)), e.Action)); } } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - protected override void OnRowDeleting(System.Data.DataRowChangeEventArgs e) { + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) { base.OnRowDeleting(e); if ((this.ContentsRowDeleting != null)) { this.ContentsRowDeleting(this, new ContentsRowChangeEvent(((ContentsRow)(e.Row)), e.Action)); } } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] public void RemoveContentsRow(ContentsRow row) { this.Rows.Remove(row); } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public static System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(System.Xml.Schema.XmlSchemaSet xs) { - System.Xml.Schema.XmlSchemaComplexType type = new System.Xml.Schema.XmlSchemaComplexType(); - System.Xml.Schema.XmlSchemaSequence sequence = new System.Xml.Schema.XmlSchemaSequence(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) { + global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType(); + global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence(); AntMovieCatalog ds = new AntMovieCatalog(); - xs.Add(ds.GetSchemaSerializable()); - System.Xml.Schema.XmlSchemaAny any1 = new System.Xml.Schema.XmlSchemaAny(); + global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny(); any1.Namespace = "http://www.w3.org/2001/XMLSchema"; any1.MinOccurs = new decimal(0); any1.MaxOccurs = decimal.MaxValue; - any1.ProcessContents = System.Xml.Schema.XmlSchemaContentProcessing.Lax; + any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; sequence.Items.Add(any1); - System.Xml.Schema.XmlSchemaAny any2 = new System.Xml.Schema.XmlSchemaAny(); + global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny(); any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1"; any2.MinOccurs = new decimal(1); - any2.ProcessContents = System.Xml.Schema.XmlSchemaContentProcessing.Lax; + any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; sequence.Items.Add(any2); - System.Xml.Schema.XmlSchemaAttribute attribute1 = new System.Xml.Schema.XmlSchemaAttribute(); + global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute(); attribute1.Name = "namespace"; attribute1.FixedValue = ds.Namespace; type.Attributes.Add(attribute1); - System.Xml.Schema.XmlSchemaAttribute attribute2 = new System.Xml.Schema.XmlSchemaAttribute(); + global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute(); attribute2.Name = "tableTypeName"; attribute2.FixedValue = "ContentsDataTable"; type.Attributes.Add(attribute2); type.Particle = sequence; + global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable(); + if (xs.Contains(dsSchema.TargetNamespace)) { + global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream(); + global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream(); + try { + global::System.Xml.Schema.XmlSchema schema = null; + dsSchema.Write(s1); + for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) { + schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current)); + s2.SetLength(0); + schema.Write(s2); + if ((s1.Length == s2.Length)) { + s1.Position = 0; + s2.Position = 0; + for (; ((s1.Position != s1.Length) + && (s1.ReadByte() == s2.ReadByte())); ) { + ; + } + if ((s1.Position == s1.Length)) { + return type; + } + } + } + } + finally { + if ((s1 != null)) { + s1.Close(); + } + if ((s2 != null)) { + s2.Close(); + } + } + } + xs.Add(dsSchema); return type; } } - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")] - [System.Serializable()] - [System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] - public partial class MovieDataTable : System.Data.DataTable, System.Collections.IEnumerable { + /// <summary> + ///Represents the strongly named DataTable class. + ///</summary> + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")] + [global::System.Serializable()] + [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] + public partial class MovieDataTable : global::System.Data.DataTable, global::System.Collections.IEnumerable { - private System.Data.DataColumn columnNumber; + private global::System.Data.DataColumn columnNumber; - private System.Data.DataColumn columnChecked; + private global::System.Data.DataColumn columnChecked; - private System.Data.DataColumn columnMediaLabel; + private global::System.Data.DataColumn columnMediaLabel; - private System.Data.DataColumn columnMediaType; + private global::System.Data.DataColumn columnMediaType; - private System.Data.DataColumn columnSource; + private global::System.Data.DataColumn columnSource; - private System.Data.DataColu... [truncated message content] |
From: <ze...@us...> - 2008-02-09 08:34:01
|
Revision: 1350 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=1350&view=rev Author: zebons Date: 2008-02-09 00:33:57 -0800 (Sat, 09 Feb 2008) Log Message: ----------- 4.4.1.4 Modified Paths: -------------- trunk/plugins/MyFilms/MesFilms.cs trunk/plugins/MyFilms/MesFilmsDetail.cs trunk/plugins/MyFilms/MesFilmsSetup.Designer.cs Added Paths: ----------- trunk/plugins/MyFilms/MyMovies.cs Modified: trunk/plugins/MyFilms/MesFilms.cs =================================================================== --- trunk/plugins/MyFilms/MesFilms.cs 2008-02-08 23:50:57 UTC (rev 1349) +++ trunk/plugins/MyFilms/MesFilms.cs 2008-02-09 08:33:57 UTC (rev 1350) @@ -219,6 +219,8 @@ if (actionType.wID == Action.ActionType.ACTION_PREVIOUS_MENU) if (GetPrevFilmList()) return; + if (actionType.wID.ToString().Substring(0, 6) == "REMOTE") + return; base.OnAction(actionType); } //--------------------------------------------------------------------------------------- @@ -285,8 +287,9 @@ affichage_rating(0); } } - base.OnMessage(messageType); - return true; + //base.OnMessage(messageType); + //return true; + return base.OnMessage(messageType); case GUIMessage.MessageType.GUI_MSG_CLICKED: //--------------------------------------------------------------------------------------- @@ -825,11 +828,11 @@ { GUIFilmstripControl filmstrip = parent as GUIFilmstripControl; if (filmstrip == null) return; - if (item.Label == "..") - { - filmstrip.InfoImageFileName = String.Empty; - return; - } + //if (item.Label == "..") + //{ + // filmstrip.InfoImageFileName = String.Empty; + // return; + //} if (item.IsFolder) filmstrip.InfoImageFileName = item.ThumbnailImage; else filmstrip.InfoImageFileName = item.ThumbnailImage; Modified: trunk/plugins/MyFilms/MesFilmsDetail.cs =================================================================== --- trunk/plugins/MyFilms/MesFilmsDetail.cs 2008-02-08 23:50:57 UTC (rev 1349) +++ trunk/plugins/MyFilms/MesFilmsDetail.cs 2008-02-09 08:33:57 UTC (rev 1350) @@ -662,7 +662,11 @@ fileName = Search_FileName(r[select_item][MesFilms.conf.ItemSearchFile].ToString(), MesFilms.conf.StrDirStor); if (fileName.Length > 0) { - r[MesFilms.conf.StrIndex][MesFilms.conf.StrStorage] = fileName.Substring(fileName.LastIndexOf(@"\") + 1); + Regex maRegexp = new Regex("video_ts"); + if (maRegexp.IsMatch(fileName.ToLower())) + r[MesFilms.conf.StrIndex][MesFilms.conf.StrStorage] = fileName; + else + r[MesFilms.conf.StrIndex][MesFilms.conf.StrStorage] = fileName.Substring(fileName.LastIndexOf(@"\") + 1); Update_XML_database(false, MesFilms.conf.StrIndex, MesFilms.conf.StrStorage); } } Modified: trunk/plugins/MyFilms/MesFilmsSetup.Designer.cs =================================================================== --- trunk/plugins/MyFilms/MesFilmsSetup.Designer.cs 2008-02-08 23:50:57 UTC (rev 1349) +++ trunk/plugins/MyFilms/MesFilmsSetup.Designer.cs 2008-02-09 08:33:57 UTC (rev 1350) @@ -251,7 +251,7 @@ this.label10.Name = "label10"; this.label10.Size = new System.Drawing.Size(78, 13); this.label10.TabIndex = 34; - this.label10.Text = "Version 4.4.1.3"; + this.label10.Text = "Version 4.4.1.4"; // // textBox1 // Added: trunk/plugins/MyFilms/MyMovies.cs =================================================================== --- trunk/plugins/MyFilms/MyMovies.cs (rev 0) +++ trunk/plugins/MyFilms/MyMovies.cs 2008-02-09 08:33:57 UTC (rev 1350) @@ -0,0 +1,221 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Xml; +using MediaPortal.GUI.Library; +using System.Windows.Forms; +using System.Globalization; +using MediaPortal.Configuration; + + +namespace MesFilms +{ + class MyMovies + { + public Dictionary<string, string> ProfilerDict; + + public MyMovies() + { + ProfilerDict = new Dictionary<string, string>(); + ProfilerDict.Add("Format", "MediaType"); + ProfilerDict.Add("Title", "OriginalTitle"); + ProfilerDict.Add("TTitle", "TranslatedTitle"); + ProfilerDict.Add("STitle", "FormattedTitle"); + ProfilerDict.Add("CollectionNumber", "Number"); + ProfilerDict.Add("Review/ReviewFilm", "Rating"); + ProfilerDict.Add("MovieFile", "URL"); + ProfilerDict.Add("Country", "Country"); + ProfilerDict.Add("Year", "Year"); + ProfilerDict.Add("RunningTime", "Length"); + ProfilerDict.Add("Actors", "Actors"); + ProfilerDict.Add("Genres", "Category"); + ProfilerDict.Add("Credits", "Director"); + //ProfilerDict.Add("Credits1", "Producer"); + ProfilerDict.Add("Overview", "Description"); + ProfilerDict.Add("Picture", "Picture"); + ProfilerDict.Add("Date", "Date"); + ProfilerDict.Add("Viewed", "Checked"); + //ProfilerDict.Add("Borrower", "Borrower"); + } + public string ConvertMyMovies(string source, string folderimage, bool SortTitle, bool OnlyFile) + { + string WStrPathImg; + if (folderimage.Substring(folderimage.Length - 1) == "\\") + WStrPathImg = folderimage.Substring(0, folderimage.LastIndexOf(@"\")); + else + WStrPathImg = folderimage; + string destFile = WStrPathImg + "\\" + source.Substring(source.LastIndexOf(@"\") + 1, source.Length - source.LastIndexOf(@"\") - 5) + "_tmp.xml"; + XmlTextWriter destXml = new XmlTextWriter(destFile, Encoding.Default); + destXml.Formatting = Formatting.Indented; + destXml.WriteStartDocument(); + destXml.WriteStartElement("AntMovieCatalog"); + destXml.WriteStartElement("Catalog"); + destXml.WriteElementString("Properties", ""); + destXml.WriteStartElement("Contents"); + try + { + XmlDocument doc = new XmlDocument(); + doc.Load(source); + XmlNodeList dvdList = doc.DocumentElement.SelectNodes("/Titles/Title"); + foreach (XmlNode nodeDVD in dvdList) + { + destXml.WriteStartElement("Movie"); + XmlNode nodeID = nodeDVD.SelectSingleNode("ID"); + XmlNode nodeNumber = nodeDVD.SelectSingleNode("CollectionNumber"); + XmlNode nodeFormat = nodeDVD.SelectSingleNode("Type"); + XmlNode nodeTitle = nodeDVD.SelectSingleNode("LocalTitle"); + XmlNode nodeOTitle = nodeDVD.SelectSingleNode("OriginalTitle"); + XmlNode nodeSTitle = nodeDVD.SelectSingleNode("SortTitle"); + XmlNode nodeYear = nodeDVD.SelectSingleNode("ProductionYear"); + XmlNodeList LinksKist = nodeDVD.SelectNodes("Discs/Disc"); + + string url = String.Empty; + foreach (XmlNode nodeFile in LinksKist) + { + if (nodeFile.SelectSingleNode("LocationSideA").InnerText.Length > 0) + { + if (url.Length > 0) url += ";"; + url += nodeFile.SelectSingleNode("LocationSideA").InnerText; + } + } + XmlNode nodeDuration = nodeDVD.SelectSingleNode("RunningTime"); + XmlNode nodeCountry = nodeDVD.SelectSingleNode("Country"); + XmlNode nodeOverview = nodeDVD.SelectSingleNode("Description"); + string genre = String.Empty; + XmlNodeList genreList = nodeDVD.SelectNodes("Genres/Genre"); + foreach (XmlNode nodeGenre in genreList) + { + if (genre.Length > 0) genre += ", "; + genre += nodeGenre.InnerText; + } + string Actor = String.Empty; + string Director = String.Empty; + string Producer = String.Empty; + XmlNodeList creditsList = nodeDVD.SelectNodes("Persons/Person"); + foreach (XmlNode nodeCredit in creditsList) + { + string line = String.Empty; + if (nodeCredit.SelectSingleNode("Type") != null && nodeCredit.SelectSingleNode("Type").InnerText == "Actor") + { + if (nodeCredit.SelectSingleNode("Name") != null) + line = nodeCredit.SelectSingleNode("Name").InnerText; + if ((nodeCredit.SelectSingleNode("Role") != null) && (nodeCredit.SelectSingleNode("Role").InnerText.Length > 0)) + line += " (" +nodeCredit.SelectSingleNode("Role").InnerText + ")"; + if (line.Length > 0) + { + if (Actor.Length > 0) Actor += ", "; + Actor += line; + } + } + else + { + if (nodeCredit.SelectSingleNode("Type") != null && nodeCredit.SelectSingleNode("Type").InnerText == "Director") + { + if (nodeCredit.SelectSingleNode("Name") != null) + line = nodeCredit.SelectSingleNode("Name").InnerText; + if (line.Length > 0) + { + if (Director.Length > 0) Director += ", "; + Director += line; + } + } + else + { + if (nodeCredit.SelectSingleNode("Type") != null && nodeCredit.SelectSingleNode("Type").InnerText == "Producer") + { + if (nodeCredit.SelectSingleNode("Name") != null) + line = nodeCredit.SelectSingleNode("Name").InnerText; + if (line.Length > 0) + { + if (Producer.Length > 0) Producer += ", "; + Producer += line; + } + } + } + } + } + string Image = String.Empty; + if (nodeDVD.SelectSingleNode("Covers/Front") != null) + Image = nodeDVD.SelectSingleNode("Covers/Front").InnerText; + string Rating = string.Empty; + decimal wrating = 0; + CultureInfo ci = new CultureInfo("en-us"); + XmlNode nodeRating = nodeDVD.SelectSingleNode("ParentalRating/value"); + if (nodeRating != null && nodeRating.InnerText != null) + { + try {wrating = Convert.ToDecimal(nodeRating.InnerText);} + catch + { + try {wrating = Convert.ToDecimal(nodeRating.InnerText, ci);} + catch {} + } + } + Rating = wrating.ToString("0.0", ci); + if (nodeNumber != null && nodeNumber.InnerText != null && nodeNumber.InnerText.Length > 0) + WriteAntAtribute(destXml, "CollectionNumber", nodeNumber.InnerText); + else + WriteAntAtribute(destXml, "CollectionNumber", "9999"); + if (nodeOTitle != null && nodeOTitle.InnerText.Length > 0) + WriteAntAtribute(destXml, "Title", nodeOTitle.InnerText); + else + WriteAntAtribute(destXml, "Title", nodeTitle.InnerText); + WriteAntAtribute(destXml, "TTitle", nodeTitle.InnerText); + if (nodeSTitle != null && nodeSTitle.InnerText.Length > 0) + WriteAntAtribute(destXml, "STitle", nodeSTitle.InnerText); + else + WriteAntAtribute(destXml, "STitle", nodeTitle.InnerText); + XmlNode nodeDate = nodeDVD.SelectSingleNode("Added"); + + try + { + DateTime dt = new DateTime(); + dt = DateTime.Parse(nodeDate.InnerText.ToString()); + WriteAntAtribute(destXml, "Date", dt.ToShortDateString()); + } + catch + { + } + WriteAntAtribute(destXml, "Viewed", "false"); + if (nodeCountry != null) + WriteAntAtribute(destXml, "Country", nodeCountry.InnerText); + WriteAntAtribute(destXml, "Review/ReviewFilm", Rating); + if (nodeYear != null) + WriteAntAtribute(destXml, "Year", nodeYear.InnerText); + if (nodeDuration != null && nodeDuration.InnerText.Length > 0) + WriteAntAtribute(destXml, "RunningTime", nodeDuration.InnerText); + if (nodeFormat != null) + WriteAntAtribute(destXml, "Format", nodeFormat.InnerText); + WriteAntAtribute(destXml, "Genres", genre); + WriteAntAtribute(destXml, "Credits", Director); + WriteAntAtribute(destXml, "Actors", Actor); + WriteAntAtribute(destXml, "Picture", Image); + WriteAntAtribute(destXml, "MovieFile", url); + if (nodeOverview != null && nodeOverview.InnerText != null) + WriteAntAtribute(destXml, "Overview", nodeOverview.InnerText); + + destXml.WriteEndElement(); + } + + } + catch + { + return ""; + } + destXml.WriteEndElement(); + destXml.WriteEndElement(); + destXml.Close(); + return destFile; + } + + private void WriteAntAtribute(XmlTextWriter tw, string key, string value) + { + string at = ""; + if (ProfilerDict.TryGetValue(key, out at)) + { + tw.WriteAttributeString(at, value); + } + } + } + +} This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ze...@us...> - 2008-02-25 10:59:57
|
Revision: 1395 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=1395&view=rev Author: zebons Date: 2008-02-25 02:59:21 -0800 (Mon, 25 Feb 2008) Log Message: ----------- v4.4.2 : some bugs corrections plot during filmstrip Modified Paths: -------------- trunk/plugins/MyFilms/MesFilms.cs trunk/plugins/MyFilms/MesFilmsDetail.cs trunk/plugins/MyFilms/MesFilmsSetup.Designer.cs Modified: trunk/plugins/MyFilms/MesFilms.cs =================================================================== --- trunk/plugins/MyFilms/MesFilms.cs 2008-02-24 08:28:55 UTC (rev 1394) +++ trunk/plugins/MyFilms/MesFilms.cs 2008-02-25 10:59:21 UTC (rev 1395) @@ -264,32 +264,32 @@ facadeView.FreeResources(); return true; // fall through to call base class? - case GUIMessage.MessageType.GUI_MSG_ITEM_FOCUS_CHANGED: - //--------------------------------------------------------------------------------------- - // Display Informations about List Item - //--------------------------------------------------------------------------------------- - if ((iControl == (int)Controls.CTRL_List) && !(conf.Boolselect || (facadeView.SelectedListItemIndex > -1 && facadeView.SelectedListItem.IsFolder))) //xxxx - { - if (facadeView.SelectedListItemIndex > -1) - { - affichage_Lstdetail(facadeView.SelectedListItem.ItemId, true, facadeView.SelectedListItem.Label); - } - } - else - { - if (facadeView.SelectedListItemIndex > -1 && !facadeView.SelectedListItem.IsFolder && !conf.Boolselect) - { - affichage_Lstdetail(facadeView.SelectedListItem.ItemId, false, facadeView.SelectedListItem.Label); - } - else - { - GUIControl.ShowControl(GetID, 34); - affichage_rating(0); - } - } - //base.OnMessage(messageType); - //return true; - return base.OnMessage(messageType); + //case GUIMessage.MessageType.GUI_MSG_ITEM_FOCUS_CHANGED: + // //--------------------------------------------------------------------------------------- + // // Display Informations about List Item + // //--------------------------------------------------------------------------------------- + // if ((iControl == (int)Controls.CTRL_List) && !(conf.Boolselect || (facadeView.SelectedListItemIndex > -1 && facadeView.SelectedListItem.IsFolder))) //xxxx + // { + // if (facadeView.SelectedListItemIndex > -1) + // { + // affichage_Lstdetail(facadeView.SelectedListItem.ItemId, true, facadeView.SelectedListItem.Label); + // } + // } + // else + // { + // if (facadeView.SelectedListItemIndex > -1 && !facadeView.SelectedListItem.IsFolder && !conf.Boolselect) + // { + // affichage_Lstdetail(facadeView.SelectedListItem.ItemId, false, facadeView.SelectedListItem.Label); + // } + // else + // { + // GUIControl.ShowControl(GetID, 34); + // affichage_rating(0); + // } + // } + // //base.OnMessage(messageType); + // //return true; + // return base.OnMessage(messageType); case GUIMessage.MessageType.GUI_MSG_CLICKED: //--------------------------------------------------------------------------------------- @@ -670,6 +670,18 @@ { item.Rating = 0; } + try + { + item.Year = Convert.ToInt32(r["Year"]); + } + catch + { + item.Year = 0; + } + item.DVDLabel = r[conf.StrTitle1].ToString(); + string wdescription = r["Description"].ToString().Replace('|', ' '); + item.TVTag = HTMLParser.removeHtml(wdescription); + item.AlbumInfoTag = r["Category"].ToString(); item.OnItemSelected += new MediaPortal.GUI.Library.GUIListItem.ItemSelectedHandler(item_OnItemSelected); facadeView.Add(item); @@ -751,52 +763,36 @@ //---------------------------------------------------------------------------------------- private void affichage_Lstdetail(int ItemId, bool wrep, string wlabel)//wrep = false display only image { - DataRow[] r = BaseMesFilms.LectureDonn\xE9es(conf.StrDfltSelect, conf.StrFilmSelect, conf.StrSort, conf.StrSortSens); - if (ItemId > r.Length) - { - GUIControl.ShowControl(GetID, 34); - affichage_rating(0); - return; - } - GUIControl.HideControl(GetID, 34); - try - { - if ((r[ItemId]["Picture"].ToString().IndexOf(":\\") == -1) && (r[ItemId]["Picture"].ToString().Substring(0,2) != "\\\\")) - conf.FileImage = conf.StrPathImg + "\\" + r[ItemId]["Picture"].ToString(); - else - conf.FileImage = r[ItemId]["Picture"].ToString(); - if (!System.IO.File.Exists(conf.FileImage)) - conf.FileImage = conf.DefaultCover; - ImgLstFilm.SetFileName(conf.FileImage); - ImgLstFilm2.SetFileName(conf.FileImage); - } - catch - { - conf.FileImage = "9999"; - } + conf.FileImage = facadeView.SelectedListItem.ThumbnailImage.ToString(); + ImgLstFilm.SetFileName(conf.FileImage); + ImgLstFilm2.SetFileName(conf.FileImage); + if (!wrep) { GUIControl.ShowControl(GetID, 34); affichage_rating(0); return; } + GUIControl.HideControl(GetID, 34); ScrlLstText.Clear(); - string wdescription = r[ItemId]["Description"].ToString().Replace('|', ' '); - ScrlLstText.Label = HTMLParser.removeHtml(wdescription); - TitleSelect.Label = r[ItemId][conf.StrTitle1].ToString(); + ScrlLstText.Label = facadeView.SelectedListItem.TVTag.ToString(); TitleSelect.Label = wlabel; - TxtLstGenre.Label = r[ItemId]["Category"].ToString(); - TxtLstYear.Label = r[ItemId]["Year"].ToString(); + TxtLstGenre.Label = facadeView.SelectedListItem.AlbumInfoTag.ToString(); + if (facadeView.SelectedListItem.Year == 0) + TxtLstYear.Label = string.Empty; + else + TxtLstYear.Label = facadeView.SelectedListItem.Year.ToString(); try { - conf.W_rating = (decimal)r[ItemId]["Rating"]; + conf.W_rating = (decimal)facadeView.SelectedListItem.Rating; } catch { conf.W_rating = 0; - } + } affichage_rating(conf.W_rating); } + //------------------------------------------------------------------------------------------- // Control search Text : no specials characters only alphanumerics //------------------------------------------------------------------------------------------- @@ -827,15 +823,30 @@ private void item_OnItemSelected(GUIListItem item, GUIControl parent) { GUIFilmstripControl filmstrip = parent as GUIFilmstripControl; - if (filmstrip == null) return; - //if (item.Label == "..") - //{ - // filmstrip.InfoImageFileName = String.Empty; - // return; - //} - - if (item.IsFolder) filmstrip.InfoImageFileName = item.ThumbnailImage; - else filmstrip.InfoImageFileName = item.ThumbnailImage; + //if (filmstrip == null) return; + //filmstrip.InfoImageFileName = item.ThumbnailImage; + if (filmstrip != null) + filmstrip.InfoImageFileName = item.ThumbnailImage; + if (!(conf.Boolselect || (facadeView.SelectedListItemIndex > -1 && facadeView.SelectedListItem.IsFolder))) //xxxx + { + if (facadeView.SelectedListItemIndex > -1) + { + affichage_Lstdetail(facadeView.SelectedListItem.ItemId, true, facadeView.SelectedListItem.Label); + } + } + else + { + if (facadeView.SelectedListItemIndex > -1 && !facadeView.SelectedListItem.IsFolder && !conf.Boolselect) + { + affichage_Lstdetail(facadeView.SelectedListItem.ItemId, false, facadeView.SelectedListItem.Label); + } + else + { + GUIControl.ShowControl(GetID, 34); + affichage_rating(0); + } + } + //affichage_Lstdetail(item.ItemId, true, item.Label); } #region Acc\xE8s Donn\xE9es Modified: trunk/plugins/MyFilms/MesFilmsDetail.cs =================================================================== --- trunk/plugins/MyFilms/MesFilmsDetail.cs 2008-02-24 08:28:55 UTC (rev 1394) +++ trunk/plugins/MyFilms/MesFilmsDetail.cs 2008-02-25 10:59:21 UTC (rev 1395) @@ -675,6 +675,10 @@ fileName = (string)r[select_item][MesFilms.conf.StrStorage]; else fileName = (string)r[select_item][MesFilms.conf.StrStorage]; + if (!System.IO.File.Exists(fileName)) + { + fileName = Search_FileName(fileName, MesFilms.conf.StrDirStor); + } if (fileName.Length > 0) { if (VirtualDirectory.IsImageFile(System.IO.Path.GetExtension(fileName))) @@ -1101,12 +1105,12 @@ { if (System.IO.File.Exists(wImage)) { - // CreateThumbnail Version 0.2.3 + SVN - if (Picture.CreateThumbnail(wImage, strThumb, (int)Thumbs.ThumbResolution, (int)Thumbs.ThumbResolution, 0, Thumbs.SpeedThumbsSmall)) - Picture.CreateThumbnail(wImage, LargeThumb, (int)Thumbs.ThumbLargeResolution, (int)Thumbs.ThumbLargeResolution, 0, Thumbs.SpeedThumbsLarge); - //// CreateThumbnail Version 0.2.3 Stable - //if (Picture.CreateThumbnail(wImage, strThumb, (int)Thumbs.ThumbResolution, (int)Thumbs.ThumbResolution, 0)) - // Picture.CreateThumbnail(wImage, LargeThumb, (int)Thumbs.ThumbLargeResolution, (int)Thumbs.ThumbLargeResolution, 0); + //// CreateThumbnail Version 0.2.3 + SVN + //if (Picture.CreateThumbnail(wImage, strThumb, (int)Thumbs.ThumbResolution, (int)Thumbs.ThumbResolution, 0, Thumbs.SpeedThumbsSmall)) + // Picture.CreateThumbnail(wImage, LargeThumb, (int)Thumbs.ThumbLargeResolution, (int)Thumbs.ThumbLargeResolution, 0, Thumbs.SpeedThumbsLarge); + // CreateThumbnail Version 0.2.3 Stable + if (Picture.CreateThumbnail(wImage, strThumb, (int)Thumbs.ThumbResolution, (int)Thumbs.ThumbResolution, 0)) + Picture.CreateThumbnail(wImage, LargeThumb, (int)Thumbs.ThumbLargeResolution, (int)Thumbs.ThumbLargeResolution, 0); } } } Modified: trunk/plugins/MyFilms/MesFilmsSetup.Designer.cs =================================================================== --- trunk/plugins/MyFilms/MesFilmsSetup.Designer.cs 2008-02-24 08:28:55 UTC (rev 1394) +++ trunk/plugins/MyFilms/MesFilmsSetup.Designer.cs 2008-02-25 10:59:21 UTC (rev 1395) @@ -249,9 +249,9 @@ this.label10.AutoSize = true; this.label10.Location = new System.Drawing.Point(676, 42); this.label10.Name = "label10"; - this.label10.Size = new System.Drawing.Size(78, 13); + this.label10.Size = new System.Drawing.Size(69, 13); this.label10.TabIndex = 34; - this.label10.Text = "Version 4.4.1.4"; + this.label10.Text = "Version 4.4.2"; // // textBox1 // This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ze...@us...> - 2008-04-01 11:03:44
|
Revision: 1575 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=1575&view=rev Author: zebons Date: 2008-04-01 04:03:40 -0700 (Tue, 01 Apr 2008) Log Message: ----------- Bug 4.5 corrected Modified Paths: -------------- trunk/plugins/MyFilms/Configuration.cs trunk/plugins/MyFilms/MesFilms.cs trunk/plugins/MyFilms/MesFilmsDetail.cs trunk/plugins/MyFilms/MesFilmsSetup.Designer.cs trunk/plugins/MyFilms/MesFilmsSetup.cs trunk/plugins/MyFilms/MovieCollector.cs Modified: trunk/plugins/MyFilms/Configuration.cs =================================================================== --- trunk/plugins/MyFilms/Configuration.cs 2008-03-31 18:22:38 UTC (rev 1574) +++ trunk/plugins/MyFilms/Configuration.cs 2008-04-01 11:03:40 UTC (rev 1575) @@ -54,6 +54,7 @@ Stritem2 = xmlreader.GetValueAsString(CurrentConfig, "AntItem2", ""); Stritem3 = xmlreader.GetValueAsString(CurrentConfig, "AntItem3", ""); StrIdentLabel = xmlreader.GetValueAsString(CurrentConfig, "AntIdentLabel", ""); + StrMCCovers = xmlreader.GetValueAsString(CurrentConfig, "MCCovers", "Thumbnails"); switch (StrFileType) { case "0": @@ -102,7 +103,7 @@ SortTitle = xmlreader.GetValueAsBool(CurrentConfig, "SortTitle", false); OnlyFile = xmlreader.GetValueAsBool(CurrentConfig, "OnlyFile", false); MovieCollector mc = new MovieCollector(); - StrFileXml = mc.ConvertMovieCollector(StrFileXml, StrPathImg, SortTitle, OnlyFile); + StrFileXml = mc.ConvertMovieCollector(StrFileXml, StrPathImg, SortTitle, OnlyFile,StrMCCovers); } else StrFileXml = xmlreader.GetValueAsString(CurrentConfig, "AntCatalogTemp", ""); @@ -519,6 +520,12 @@ get { return strFileType; } set { strFileType = value; } } + private string strMCCovers = string.Empty; + public string StrMCCovers + { + get { return strMCCovers; } + set { strMCCovers = value; } + } private string strPathImg = string.Empty; public string StrPathImg { Modified: trunk/plugins/MyFilms/MesFilms.cs =================================================================== --- trunk/plugins/MyFilms/MesFilms.cs 2008-03-31 18:22:38 UTC (rev 1574) +++ trunk/plugins/MyFilms/MesFilms.cs 2008-04-01 11:03:40 UTC (rev 1575) @@ -200,7 +200,7 @@ if (GetPrevFilmList()) return; - if ((actionType.wID == Action.ActionType.ACTION_PREVIOUS_MENU) && (conf.Boolselect || conf.Boolview)) + if ((actionType.wID == Action.ActionType.ACTION_PREVIOUS_MENU)&& (conf.Boolselect || conf.Boolview)) { Change_LayOut(Layout); if (GetPrevFilmList()) return; @@ -422,6 +422,7 @@ // New Window for detailed selected item information { conf.StrIndex = facadeView.SelectedListItem.ItemId; + conf.StrTIndex = facadeView.SelectedListItem.Label; GUIWindowManager.ActivateWindow(ID_MesFilmsDetail); } else @@ -570,6 +571,7 @@ //---------------------------------------------------------------------------------------- // Load the DataSet. int number = -1; + int wfacadewiew = 0; ArrayList w_tableau = new ArrayList(); foreach (DataRow r in BaseMesFilms.LectureDonn\xE9es(conf.StrDfltSelect, conf.StrFilmSelect, conf.StrSort, conf.StrSortSens)) { @@ -659,7 +661,13 @@ conf.FileImage = ""; if (!System.IO.File.Exists(conf.FileImage)) conf.FileImage = conf.DefaultCover; - + //if (!System.IO.File.Exists(conf.FileImage)) + //{ + // Size wsize = new Size(); + // wsize.Width = 100; + // wsize.Height = 150; + // drawSimpleBanner(wsize, item.Label); + //} item.ThumbnailImage = conf.FileImage; item.IconImage = conf.FileImage; item.ItemId = number; @@ -679,11 +687,11 @@ { item.Year = 0; } - if (conf.Stritem1.Length > 0) + if ((conf.Stritem1.Length > 0) && (conf.Stritem1 != "(none)")) item.MusicTag = r[conf.Stritem1].ToString(); else item.MusicTag = string.Empty; - if (conf.Stritem3.Length > 0) + if ((conf.Stritem3.Length > 0) && (conf.Stritem3 != "(none)")) item.Path = r[conf.Stritem3].ToString(); else item.Path = string.Empty; @@ -700,7 +708,7 @@ { if (sTitle == SelItem) { - conf.StrIndex = facadeView.Count - 1; //test if this item is one to select + wfacadewiew = facadeView.Count - 1; //test if this item is one to select //ImgLstFilm.SetFileName(wthumb); //ImgLstFilm2.SetFileName(wthumb); } @@ -710,18 +718,21 @@ { if (!(conf.StrTIndex.Length > 0)) { - if (((int)(r["Number"]) == iSelItem)) + //if (((int)(r["Number"]) == iSelItem)) + if (number == iSelItem) { - conf.StrIndex = facadeView.Count - 1; //test if this item is one to select + wfacadewiew = facadeView.Count - 1; //test if this item is one to select //ImgLstFilm.SetFileName(wthumb); //ImgLstFilm2.SetFileName(wthumb); } } else { - if (((int)(r["Number"]) == iSelItem) && ((string)(r[conf.StrTitle1]) == conf.StrTIndex)) + //if (((int)(r["Number"]) == iSelItem) && ((string)(r[conf.StrTitle1]) == conf.StrTIndex)) + //if ((number == iSelItem) && ((string)(r[conf.StrTitle1]) == conf.StrTIndex)) + if ((number == iSelItem) && (sFullTitle == conf.StrTIndex)) { - conf.StrIndex = facadeView.Count - 1; //test if this item is one to select + wfacadewiew = facadeView.Count - 1; //test if this item is one to select //ImgLstFilm.SetFileName(wthumb); //ImgLstFilm2.SetFileName(wthumb); } @@ -731,14 +742,14 @@ sPrevTitle = sTitle; fin: ; } - if ((conf.StrIndex > facadeView.Count - 1) || (conf.StrIndex < 0)) - conf.StrIndex = 0; + //if ((conf.StrIndex > number - 1) || (conf.StrIndex < 0)) + // conf.StrIndex = 0; if (facadeView.Count == 0) GUIControl.ShowControl(GetID, 34); else GUIControl.HideControl(GetID, 34); GUIPropertyManager.SetProperty("#nbobjects", facadeView.Count.ToString() + " " + GUILocalizeStrings.Get(127)); - GUIControl.SelectItemControl(GetID, (int)Controls.CTRL_List, (int)conf.StrIndex); + GUIControl.SelectItemControl(GetID, (int)Controls.CTRL_List, (int)wfacadewiew); if (facadeView.Count == 1 && item.IsFolder) { conf.Boolreturn = false; @@ -998,7 +1009,8 @@ BtnSrtBy.Label = GUILocalizeStrings.Get(103); conf.Boolselect = true; conf.Wselectedlabel = ""; - if (ClearIndex) conf.StrIndex = 0; + if (ClearIndex) + conf.StrIndex = 0; Change_LayOut(0); facadeView.Clear(); int wi = 0; @@ -1387,6 +1399,24 @@ return; } } + ///// <summary> + ///// Create a banner image of the specified size, outputting the input text on it + ///// </summary> + ///// <param name="sizeImage">Size of the image to be generated</param> + ///// <param name="label">Text to be output on the image</param> + ///// <returns>a bitmap object</returns> + //private static void drawSimpleBanner(Size sizeImage, string label) + //{ + // Bitmap image = new Bitmap(sizeImage.Width, sizeImage.Height); + // Graphics gph = Graphics.FromImage(image); + // //gph.FillRectangle(new SolidBrush(Color.FromArgb(50, Color.White)), new Rectangle(0, 0, sizeImage.Width, sizeImage.Height)); + // GUIFont fontList = GUIFontManager.GetFont("font13"); + // Font font = new Font(fontList.FontName, 36); + // gph.TextRenderingHint = System.Drawing.Text.TextRenderingHint.AntiAlias; + // gph.DrawString(label, font, new SolidBrush(Color.FromArgb(200, Color.White)), 5, (sizeImage.Height - font.GetHeight()) / 2); + // gph.Dispose(); + // image.Save(conf.FileImage, System.Drawing.Imaging.ImageFormat.Png); + //} #endregion } } \ No newline at end of file Modified: trunk/plugins/MyFilms/MesFilmsDetail.cs =================================================================== --- trunk/plugins/MyFilms/MesFilmsDetail.cs 2008-03-31 18:22:38 UTC (rev 1574) +++ trunk/plugins/MyFilms/MesFilmsDetail.cs 2008-04-01 11:03:40 UTC (rev 1575) @@ -495,6 +495,7 @@ { int TitlePos = (MesFilms.conf.StrTitleSelect.Length > 0) ? MesFilms.conf.StrTitleSelect.Length + 1 : 0; //only display rest of title after selected part common to group GUIPropertyManager.SetProperty("#Title", r[MesFilms.conf.StrIndex][MesFilms.conf.StrTitle1].ToString().Substring(TitlePos)); + MesFilms.conf.StrTIndex = r[MesFilms.conf.StrIndex][MesFilms.conf.StrTitle1].ToString().Substring(TitlePos); } else GUIPropertyManager.SetProperty("#Title", " "); @@ -640,216 +641,249 @@ #endregion #region Lecture du film demand\xE9 - protected void OnPlayDVD(int select_item, bool first) - //------------------------------------------------------------------------------------------- - // Play Movie - //------------------------------------------------------------------------------------------- - { - // Run externaly Program before Playing if defined in setup - if ((MesFilms.conf.CmdPar.Length > 0) && (MesFilms.conf.CmdPar != "(none)")) - RunProgram(MesFilms.conf.CmdExe, r[MesFilms.conf.StrIndex][MesFilms.conf.CmdPar].ToString()); - if (g_Player.Playing) - g_Player.Stop(); - string fileName = null; - if (!(MesFilms.conf.StrStorage == null) && !(MesFilms.conf.StrStorage == "(none)") && !(MesFilms.conf.StrStorage == "")) + protected void Launch_Movie(int select_item, bool first) + //------------------------------------------------------------------------------------------- + // Play Movie + //------------------------------------------------------------------------------------------- { - try - { fileName = (string)r[select_item][MesFilms.conf.StrStorage]; } - catch - { fileName = ""; } + // Run externaly Program before Playing if defined in setup + if ((MesFilms.conf.CmdPar.Length > 0) && (MesFilms.conf.CmdPar != "(none)")) + RunProgram(MesFilms.conf.CmdExe, r[MesFilms.conf.StrIndex][MesFilms.conf.CmdPar].ToString()); + if (g_Player.Playing) + g_Player.Stop(); + string fileName = null; + // retrieve filename information stored in the DB + if (!(MesFilms.conf.StrStorage == null) && !(MesFilms.conf.StrStorage == "(none)") && !(MesFilms.conf.StrStorage == "")) + { + try + { fileName = (string)r[select_item][MesFilms.conf.StrStorage]; } + catch + { fileName = ""; } + } + bool wmultifile = false; + // split filename information delimited by semicolumn (multifile detection) + string[] split; + split = fileName.ToString().Split(new Char[] { ';' }); + if (split.Length > 1) + wmultifile = true; + else + wmultifile = false; - if ((fileName == "")) - // recherche nom de fichier par titre du film - if ((MesFilms.conf.SearchFile == "True") && (first)) - { - if (MesFilms.conf.ItemSearchFile.Length > 0) + foreach (string wfile in split) + { + } + } + + protected void OnPlayDVD(int select_item, bool first) + //------------------------------------------------------------------------------------------- + // Play Movie + //------------------------------------------------------------------------------------------- + { + // Run externaly Program before Playing if defined in setup + if ((MesFilms.conf.CmdPar.Length > 0) && (MesFilms.conf.CmdPar != "(none)")) + RunProgram(MesFilms.conf.CmdExe, r[MesFilms.conf.StrIndex][MesFilms.conf.CmdPar].ToString()); + if (g_Player.Playing) + g_Player.Stop(); + string fileName = null; + if (!(MesFilms.conf.StrStorage == null) && !(MesFilms.conf.StrStorage == "(none)") && !(MesFilms.conf.StrStorage == "")) + { + try + { fileName = (string)r[select_item][MesFilms.conf.StrStorage]; } + catch + { fileName = ""; } + + if ((fileName == "")) + // recherche nom de fichier par titre du film + if ((MesFilms.conf.SearchFile == "True") && (first)) { - fileName = Search_FileName(r[select_item][MesFilms.conf.ItemSearchFile].ToString(), MesFilms.conf.StrDirStor); - if (fileName.Length > 0) + if (MesFilms.conf.ItemSearchFile.Length > 0) { - Regex maRegexp = new Regex("video_ts"); - if (maRegexp.IsMatch(fileName.ToLower())) - r[MesFilms.conf.StrIndex][MesFilms.conf.StrStorage] = fileName; - else - r[MesFilms.conf.StrIndex][MesFilms.conf.StrStorage] = fileName.Substring(fileName.LastIndexOf(@"\") + 1); - Update_XML_database(false, MesFilms.conf.StrIndex, MesFilms.conf.StrStorage); + fileName = Search_FileName(r[select_item][MesFilms.conf.ItemSearchFile].ToString(), MesFilms.conf.StrDirStor); + if (fileName.Length > 0) + { + Regex maRegexp = new Regex("video_ts"); + if (maRegexp.IsMatch(fileName.ToLower())) + r[MesFilms.conf.StrIndex][MesFilms.conf.StrStorage] = fileName; + else + r[MesFilms.conf.StrIndex][MesFilms.conf.StrStorage] = fileName.Substring(fileName.LastIndexOf(@"\") + 1); + Update_XML_database(false, MesFilms.conf.StrIndex, MesFilms.conf.StrStorage); + } } } - } + else + fileName = (string)r[select_item][MesFilms.conf.StrStorage]; else fileName = (string)r[select_item][MesFilms.conf.StrStorage]; - else - fileName = (string)r[select_item][MesFilms.conf.StrStorage]; - if (!System.IO.File.Exists(fileName)) - { - fileName = Search_FileName(fileName, MesFilms.conf.StrDirStor); - } - if (fileName.Length > 0) - { - if (VirtualDirectory.IsImageFile(System.IO.Path.GetExtension(fileName))) + if (!System.IO.File.Exists(fileName)) { - if (MountImageFile(GetID, fileName)) + fileName = Search_FileName(fileName, MesFilms.conf.StrDirStor); + } + if (fileName.Length > 0) + { + if (VirtualDirectory.IsImageFile(System.IO.Path.GetExtension(fileName))) { - string strDir = DaemonTools.GetVirtualDrive(); - // Check if the mounted image is actually a DVD. If so, bypass - // autoplay to play the DVD without user intervention - if (System.IO.File.Exists(strDir + @"\VIDEO_TS\VIDEO_TS.IFO")) + if (MountImageFile(GetID, fileName)) { - fileName = strDir + @"\VIDEO_TS\VIDEO_TS.IFO"; + string strDir = DaemonTools.GetVirtualDrive(); + // Check if the mounted image is actually a DVD. If so, bypass + // autoplay to play the DVD without user intervention + if (System.IO.File.Exists(strDir + @"\VIDEO_TS\VIDEO_TS.IFO")) + { + fileName = strDir + @"\VIDEO_TS\VIDEO_TS.IFO"; + } } } - } - Regex maRegexp = new Regex("video_ts"); - if (maRegexp.IsMatch(fileName.ToLower())) - { - update_database(fileName, select_item, -1); - launch_player(fileName); - } - else - if (System.IO.Directory.Exists(fileName)) + Regex maRegexp = new Regex("video_ts"); + if (maRegexp.IsMatch(fileName.ToLower())) { - if (System.IO.File.Exists(System.IO.Path.GetFullPath(fileName) + @"VIDEO_TS\VIDEO_TS.IFO")) + update_database(fileName, select_item, -1); + launch_player(fileName); + } + else + if (System.IO.Directory.Exists(fileName)) { - fileName = System.IO.Path.GetFullPath(fileName) + @"VIDEO_TS\VIDEO_TS.IFO"; - update_database(fileName, select_item, -1); - launch_player(fileName); + if (System.IO.File.Exists(System.IO.Path.GetFullPath(fileName) + @"VIDEO_TS\VIDEO_TS.IFO")) + { + fileName = System.IO.Path.GetFullPath(fileName) + @"VIDEO_TS\VIDEO_TS.IFO"; + update_database(fileName, select_item, -1); + launch_player(fileName); + } } - } - else - PlayMovie_Divx(fileName, select_item, first); - return; + else + PlayMovie_Divx(fileName, select_item, first); + return; + } } + if (!first) return; + GUIDialogOK dlgOk = (GUIDialogOK)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_DIALOG_OK); + dlgOk.SetHeading(3);//my videos + dlgOk.SetLine(1, 219);//no disc + if (!(MesFilms.conf.StrIdentItem == null) && !(MesFilms.conf.StrIdentItem == "(none)") && !(MesFilms.conf.StrIdentItem == "")) + if (MesFilms.conf.StrIdentLabel.Length > 0) + dlgOk.SetLine(2, MesFilms.conf.StrIdentLabel.ToString() + " = " + r[select_item][MesFilms.conf.StrIdentItem].ToString());//Label Identification for Media + else + dlgOk.SetLine(2, "'" + MesFilms.conf.StrIdentItem.ToString() + "' = " + r[select_item][MesFilms.conf.StrIdentItem].ToString());//ANT Item Identification for Media + else + dlgOk.SetLine(2, "' disc n\xB0 = " + r[select_item]["Number"].ToString());//ANT Number for Identification Media + dlgOk.DoModal(GetID); + if (first) + OnPlayDVD(select_item, false); + return; } - if (!first) return; - GUIDialogOK dlgOk = (GUIDialogOK)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_DIALOG_OK); - dlgOk.SetHeading(3);//my videos - dlgOk.SetLine(1, 219);//no disc - if (!(MesFilms.conf.StrIdentItem == null) && !(MesFilms.conf.StrIdentItem == "(none)") && !(MesFilms.conf.StrIdentItem == "")) - if (MesFilms.conf.StrIdentLabel.Length > 0) - dlgOk.SetLine(2, MesFilms.conf.StrIdentLabel.ToString() + " = " + r[select_item][MesFilms.conf.StrIdentItem].ToString());//Label Identification for Media - else - dlgOk.SetLine(2, "'" + MesFilms.conf.StrIdentItem.ToString() + "' = " + r[select_item][MesFilms.conf.StrIdentItem].ToString());//ANT Item Identification for Media - else - dlgOk.SetLine(2, "' disc n\xB0 = " + r[select_item]["Number"].ToString());//ANT Number for Identification Media - dlgOk.DoModal(GetID); - if (first) - OnPlayDVD(select_item, false); - return; - } //------------------------------------------------------------------------------------------ // Control if resumeplaydvd and launch player //------------------------------------------------------------------------------------------ - private void launch_player(string filename) - { - //check if dvd is on Disk - - if (System.IO.File.Exists(filename)) + private void launch_player(string filename) { - launch_DVD(filename); - return; - } - else - { - string[] drives = Environment.GetLogicalDrives(); - foreach (string drive in drives) + //check if dvd is on Disk + + if (System.IO.File.Exists(filename)) { - if (MediaPortal.Util.Utils.getDriveType(drive) == 5) //cd or dvd drive + launch_DVD(filename); + return; + } + else + { + string[] drives = Environment.GetLogicalDrives(); + foreach (string drive in drives) { - string driverLetter = drive.Substring(0, 1); - string fileName = String.Format(@"{0}:\VIDEO_TS\VIDEO_TS.IFO", driverLetter); - if (System.IO.File.Exists(fileName)) + if (MediaPortal.Util.Utils.getDriveType(drive) == 5) //cd or dvd drive { - launch_DVD(filename); - return; + string driverLetter = drive.Substring(0, 1); + string fileName = String.Format(@"{0}:\VIDEO_TS\VIDEO_TS.IFO", driverLetter); + if (System.IO.File.Exists(fileName)) + { + launch_DVD(filename); + return; + } } } + //no disc in drive... + GUIDialogOK dlgOk = (GUIDialogOK)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_DIALOG_OK); + dlgOk.SetHeading(3);//my videos + dlgOk.SetLine(1, 219);//no disc + dlgOk.DoModal(GetID); } - //no disc in drive... - GUIDialogOK dlgOk = (GUIDialogOK)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_DIALOG_OK); - dlgOk.SetHeading(3);//my videos - dlgOk.SetLine(1, 219);//no disc - dlgOk.DoModal(GetID); } - } - private void launch_DVD(string fileName) - { - IMDBMovie movieDetails = new IMDBMovie(); - VideoDatabase.GetMovieInfo(fileName, ref movieDetails); - int idFile = VideoDatabase.GetFileId(fileName); - int idMovie = VideoDatabase.GetMovieId(fileName); - int timeMovieStopped = 0; - byte[] resumeData = null; - if ((idMovie >= 0) && (idFile >= 0)) + private void launch_DVD(string fileName) { - timeMovieStopped = VideoDatabase.GetMovieStopTimeAndResumeData(idFile, out resumeData); - if (timeMovieStopped > 0) + IMDBMovie movieDetails = new IMDBMovie(); + VideoDatabase.GetMovieInfo(fileName, ref movieDetails); + int idFile = VideoDatabase.GetFileId(fileName); + int idMovie = VideoDatabase.GetMovieId(fileName); + int timeMovieStopped = 0; + byte[] resumeData = null; + if ((idMovie >= 0) && (idFile >= 0)) { - string title = System.IO.Path.GetFileName(fileName); - VideoDatabase.GetMovieInfoById(idMovie, ref movieDetails); - if (movieDetails.Title != String.Empty) title = movieDetails.Title; - GUIDialogYesNo dlgYesNo = (GUIDialogYesNo)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_DIALOG_YES_NO); - if (null == dlgYesNo) return; - dlgYesNo.SetHeading(GUILocalizeStrings.Get(900)); //resume movie? - dlgYesNo.SetLine(1, title); - dlgYesNo.SetLine(2, GUILocalizeStrings.Get(936) + Utils.SecondsToHMSString(timeMovieStopped)); - dlgYesNo.SetDefaultToYes(true); - dlgYesNo.DoModal(GUIWindowManager.ActiveWindow); + timeMovieStopped = VideoDatabase.GetMovieStopTimeAndResumeData(idFile, out resumeData); + if (timeMovieStopped > 0) + { + string title = System.IO.Path.GetFileName(fileName); + VideoDatabase.GetMovieInfoById(idMovie, ref movieDetails); + if (movieDetails.Title != String.Empty) title = movieDetails.Title; + GUIDialogYesNo dlgYesNo = (GUIDialogYesNo)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_DIALOG_YES_NO); + if (null == dlgYesNo) return; + dlgYesNo.SetHeading(GUILocalizeStrings.Get(900)); //resume movie? + dlgYesNo.SetLine(1, title); + dlgYesNo.SetLine(2, GUILocalizeStrings.Get(936) + Utils.SecondsToHMSString(timeMovieStopped)); + dlgYesNo.SetDefaultToYes(true); + dlgYesNo.DoModal(GUIWindowManager.ActiveWindow); - if (!dlgYesNo.IsConfirmed) timeMovieStopped = 0; + if (!dlgYesNo.IsConfirmed) timeMovieStopped = 0; + } } + g_Player.Play(fileName); + if (g_Player.Playing && timeMovieStopped > 0) + { + if (g_Player.IsDVD) + g_Player.Player.SetResumeState(resumeData); + else + g_Player.SeekAbsolute(timeMovieStopped); + } } - g_Player.Play(fileName); - if (g_Player.Playing && timeMovieStopped > 0) + private void OnPlayBackStarted(MediaPortal.Player.g_Player.MediaType type, string filename) { - if (g_Player.IsDVD) - g_Player.Player.SetResumeState(resumeData); - else - g_Player.SeekAbsolute(timeMovieStopped); + if (type != g_Player.MediaType.Video) return; + int idFile = VideoDatabase.GetFileId(filename); + if (idFile != -1) + { + int movieDuration = (int)g_Player.Duration; + VideoDatabase.SetMovieDuration(idFile, movieDuration); + } } - } - private void OnPlayBackStarted(MediaPortal.Player.g_Player.MediaType type, string filename) - { - if (type != g_Player.MediaType.Video) return; - int idFile = VideoDatabase.GetFileId(filename); - if (idFile != -1) + private void AddFileToDatabase(string strFile, int select_item) { - int movieDuration = (int)g_Player.Duration; - VideoDatabase.SetMovieDuration(idFile, movieDuration); - } - } - private void AddFileToDatabase(string strFile,int select_item) - { - if (!Utils.IsVideo(strFile)) return; - if (PlayListFactory.IsPlayList(strFile)) return; - if (!VideoDatabase.HasMovieInfo(strFile)) - { - ArrayList allFiles = new ArrayList(); - string currentfolder = strFile.Substring(0, strFile.LastIndexOf(@"\")); - ArrayList items = m_directory.GetDirectory(currentfolder); - for (int i = 0; i < items.Count; ++i) + if (!Utils.IsVideo(strFile)) return; + if (PlayListFactory.IsPlayList(strFile)) return; + if (!VideoDatabase.HasMovieInfo(strFile)) { - GUIListItem temporaryListItem = (GUIListItem)items[i]; - if (temporaryListItem.IsFolder) continue; - if (Utils.ShouldStack(temporaryListItem.Path, strFile) || temporaryListItem.Path == strFile) - allFiles.Add(items[i]); + ArrayList allFiles = new ArrayList(); + string currentfolder = strFile.Substring(0, strFile.LastIndexOf(@"\")); + ArrayList items = m_directory.GetDirectory(currentfolder); + for (int i = 0; i < items.Count; ++i) + { + GUIListItem temporaryListItem = (GUIListItem)items[i]; + if (temporaryListItem.IsFolder) continue; + if (Utils.ShouldStack(temporaryListItem.Path, strFile) || temporaryListItem.Path == strFile) + allFiles.Add(items[i]); + } + // set initial movie info + VideoDatabase.AddMovie(strFile, false); + if (allFiles.Count == 0) + { + GUIListItem item = new GUIListItem(); + item.Path = strFile; + allFiles.Add(item); + } + int widmovie = -1; + foreach (GUIListItem item in allFiles) + { + VideoDatabase.AddMovieFile(item.Path); + widmovie = VideoDatabase.GetMovieId(item.Path); + } } - // set initial movie info - VideoDatabase.AddMovie(strFile, false); - if (allFiles.Count == 0) - { - GUIListItem item = new GUIListItem(); - item.Path = strFile; - allFiles.Add(item); - } - int widmovie = -1; - foreach (GUIListItem item in allFiles) - { - VideoDatabase.AddMovieFile(item.Path); - widmovie = VideoDatabase.GetMovieId(item.Path); - } } - } //----------------------------------------------------------------------------------------------- // search avi file and play movie //----------------------------------------------------------------------------------------------- Modified: trunk/plugins/MyFilms/MesFilmsSetup.Designer.cs =================================================================== --- trunk/plugins/MyFilms/MesFilmsSetup.Designer.cs 2008-03-31 18:22:38 UTC (rev 1574) +++ trunk/plugins/MyFilms/MesFilmsSetup.Designer.cs 2008-04-01 11:03:40 UTC (rev 1575) @@ -223,6 +223,11 @@ this.comboBox1 = new System.Windows.Forms.ComboBox(); this.comboBox2 = new System.Windows.Forms.ComboBox(); this.textBox2 = new System.Windows.Forms.TextBox(); + this.groupBox15 = new System.Windows.Forms.GroupBox(); + this.groupBox16 = new System.Windows.Forms.GroupBox(); + this.groupBox17 = new System.Windows.Forms.GroupBox(); + this.Thumbnails = new System.Windows.Forms.RadioButton(); + this.Images = new System.Windows.Forms.RadioButton(); this.General.SuspendLayout(); this.tabPage1.SuspendLayout(); this.groupBox11.SuspendLayout(); @@ -242,6 +247,9 @@ this.groupBox13.SuspendLayout(); this.groupBox10.SuspendLayout(); this.groupBox9.SuspendLayout(); + this.groupBox15.SuspendLayout(); + this.groupBox16.SuspendLayout(); + this.groupBox17.SuspendLayout(); this.SuspendLayout(); // // label10 @@ -1346,23 +1354,24 @@ // // tabPage3 // - this.tabPage3.Controls.Add(this.groupBox13); + this.tabPage3.Controls.Add(this.groupBox16); this.tabPage3.Controls.Add(this.groupBox10); this.tabPage3.Controls.Add(this.groupBox9); + this.tabPage3.Controls.Add(this.groupBox15); this.tabPage3.Location = new System.Drawing.Point(4, 22); this.tabPage3.Name = "tabPage3"; this.tabPage3.Padding = new System.Windows.Forms.Padding(3); this.tabPage3.Size = new System.Drawing.Size(747, 354); this.tabPage3.TabIndex = 2; - this.tabPage3.Text = "DVDProfiler"; + this.tabPage3.Text = "DVDProfiler/Movie Collecor"; this.tabPage3.UseVisualStyleBackColor = true; // // groupBox13 // this.groupBox13.Controls.Add(this.OnlyFile); - this.groupBox13.Location = new System.Drawing.Point(56, 190); + this.groupBox13.Location = new System.Drawing.Point(12, 161); this.groupBox13.Name = "groupBox13"; - this.groupBox13.Size = new System.Drawing.Size(327, 65); + this.groupBox13.Size = new System.Drawing.Size(327, 50); this.groupBox13.TabIndex = 2; this.groupBox13.TabStop = false; this.groupBox13.Text = "Notes Field"; @@ -1370,7 +1379,7 @@ // OnlyFile // this.OnlyFile.AutoSize = true; - this.OnlyFile.Location = new System.Drawing.Point(24, 28); + this.OnlyFile.Location = new System.Drawing.Point(24, 19); this.OnlyFile.Name = "OnlyFile"; this.OnlyFile.Size = new System.Drawing.Size(221, 17); this.OnlyFile.TabIndex = 0; @@ -1382,7 +1391,7 @@ this.groupBox10.Controls.Add(this.SortTitle); this.groupBox10.Location = new System.Drawing.Point(56, 119); this.groupBox10.Name = "groupBox10"; - this.groupBox10.Size = new System.Drawing.Size(327, 65); + this.groupBox10.Size = new System.Drawing.Size(327, 51); this.groupBox10.TabIndex = 1; this.groupBox10.TabStop = false; this.groupBox10.Text = "Use SortTitle"; @@ -1390,7 +1399,7 @@ // SortTitle // this.SortTitle.AutoSize = true; - this.SortTitle.Location = new System.Drawing.Point(24, 28); + this.SortTitle.Location = new System.Drawing.Point(24, 19); this.SortTitle.Name = "SortTitle"; this.SortTitle.Size = new System.Drawing.Size(196, 17); this.SortTitle.TabIndex = 0; @@ -1537,6 +1546,59 @@ this.textBox2.Size = new System.Drawing.Size(170, 20); this.textBox2.TabIndex = 17; // + // groupBox15 + // + this.groupBox15.Controls.Add(this.groupBox13); + this.groupBox15.Location = new System.Drawing.Point(44, 15); + this.groupBox15.Name = "groupBox15"; + this.groupBox15.Size = new System.Drawing.Size(349, 221); + this.groupBox15.TabIndex = 28; + this.groupBox15.TabStop = false; + this.groupBox15.Text = "DVDProfiler"; + // + // groupBox16 + // + this.groupBox16.Controls.Add(this.groupBox17); + this.groupBox16.Location = new System.Drawing.Point(44, 242); + this.groupBox16.Name = "groupBox16"; + this.groupBox16.Size = new System.Drawing.Size(349, 96); + this.groupBox16.TabIndex = 29; + this.groupBox16.TabStop = false; + this.groupBox16.Text = "Movie Collector"; + // + // groupBox17 + // + this.groupBox17.Controls.Add(this.Images); + this.groupBox17.Controls.Add(this.Thumbnails); + this.groupBox17.Location = new System.Drawing.Point(6, 18); + this.groupBox17.Name = "groupBox17"; + this.groupBox17.Size = new System.Drawing.Size(327, 72); + this.groupBox17.TabIndex = 3; + this.groupBox17.TabStop = false; + this.groupBox17.Text = "Covers"; + // + // Thumbnails + // + this.Thumbnails.AutoSize = true; + this.Thumbnails.Location = new System.Drawing.Point(24, 19); + this.Thumbnails.Name = "Thumbnails"; + this.Thumbnails.Size = new System.Drawing.Size(188, 17); + this.Thumbnails.TabIndex = 2; + this.Thumbnails.TabStop = true; + this.Thumbnails.Text = "Use \'Thumbnails\' Folder for Covers"; + this.Thumbnails.UseVisualStyleBackColor = true; + // + // Images + // + this.Images.AutoSize = true; + this.Images.Location = new System.Drawing.Point(24, 42); + this.Images.Name = "Images"; + this.Images.Size = new System.Drawing.Size(168, 17); + this.Images.TabIndex = 3; + this.Images.TabStop = true; + this.Images.Text = "Use\' Images\' Folder for Covers"; + this.Images.UseVisualStyleBackColor = true; + // // MesFilmsSetup // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); @@ -1591,6 +1653,10 @@ this.groupBox10.PerformLayout(); this.groupBox9.ResumeLayout(false); this.groupBox9.PerformLayout(); + this.groupBox15.ResumeLayout(false); + this.groupBox16.ResumeLayout(false); + this.groupBox17.ResumeLayout(false); + this.groupBox17.PerformLayout(); this.ResumeLayout(false); this.PerformLayout(); @@ -1724,6 +1790,11 @@ private TextBox AntViewValue3; private TextBox AntViewText3; private ComboBox AntViewItem3; + private GroupBox groupBox16; + private GroupBox groupBox17; + private GroupBox groupBox15; + private RadioButton Thumbnails; + private RadioButton Images; } } \ No newline at end of file Modified: trunk/plugins/MyFilms/MesFilmsSetup.cs =================================================================== --- trunk/plugins/MyFilms/MesFilmsSetup.cs 2008-03-31 18:22:38 UTC (rev 1574) +++ trunk/plugins/MyFilms/MesFilmsSetup.cs 2008-04-01 11:03:40 UTC (rev 1575) @@ -433,6 +433,10 @@ else MyFilms_xmlwriter.RemoveEntry(Config_Name.Text.ToString(), "DVDPTagField"); } + if (Thumbnails.Checked) + MyFilms_xmlwriter.SetValue(Config_Name.Text.ToString(), "MCCovers", "Thumbnails"); + else + MyFilms_xmlwriter.SetValue(Config_Name.Text.ToString(), "MCCovers", "Images"); string w_Config_Name = Config_Name.Text; Config_Name.Items.Remove(Config_Name.Text); Config_Name.Items.Add(w_Config_Name); @@ -546,7 +550,11 @@ radioButton2.Checked = true; DVDPTagField.Text = MyFilms_xmlreader.GetValueAsString(Config_Name.Text.ToString(), "DVDPTagField", ""); } - //if (MyFilms_xmlreader.GetValueAsString(Config_Name.Text.ToString(), "SortTitle", "False") == "True") + if (MyFilms_xmlreader.GetValueAsString(Config_Name.Text.ToString(), "MCCovers", "") == "Images") + Images.Checked = true; + else + Thumbnails.Checked = true; + //if (MyFilms_xmlreader.GetValueAsString(Config_Name.Text.ToString(), "SortTitle", "False") == "True") // SortTitle.Checked = true; //else // SortTitle.Checked = false; @@ -650,6 +658,7 @@ SearchFileName.Checked = false; radioButton1.Checked = false; radioButton2.Checked = false; + Thumbnails.Checked = true; DVDPTagField.ResetText(); SortTitle.Checked = false; OnlyFile.Checked = false; @@ -775,6 +784,7 @@ MyFilms_xmlwriter.RemoveEntry(Config_Name.Text, "Boolreturn"); MyFilms_xmlwriter.RemoveEntry(Config_Name.Text, "CmdExe"); MyFilms_xmlwriter.RemoveEntry(Config_Name.Text, "CmdPar"); + MyFilms_xmlwriter.RemoveEntry(Config_Name.Text, "MCCovers"); } private void MesFilmsSetup_Quit(object sender, FormClosedEventArgs e) { @@ -856,14 +866,20 @@ mydivx.ReadXml(cc1.ConvertProfiler(MesFilmsCat.Text,MesFilmsImg.Text, SortTitle.Checked, DVDPTagField.Text,OnlyFile.Checked)); break; case 2: - destFile = MesFilmsCat.Text.Substring(0, MesFilmsCat.Text.Length - 4) + "_tmp.xml"; - if ((System.IO.File.Exists(destFile) && (System.IO.File.GetLastWriteTime(destFile) > System.IO.File.GetLastWriteTime(MesFilmsCat.Text)))) - { - mydivx.ReadXml(destFile); - break; - } + //if (Thumbnails..CheckedChanged == false) + //{ + // destFile = MesFilmsCat.Text.Substring(0, MesFilmsCat.Text.Length - 4) + "_tmp.xml"; + // if ((System.IO.File.Exists(destFile) && (System.IO.File.GetLastWriteTime(destFile) > System.IO.File.GetLastWriteTime(MesFilmsCat.Text)))) + // { + // mydivx.ReadXml(destFile); + // break; + // } + //} MovieCollector cc2 = new MovieCollector(); - mydivx.ReadXml(cc2.ConvertMovieCollector(MesFilmsCat.Text, MesFilmsImg.Text, SortTitle.Checked, OnlyFile.Checked)); + if (Thumbnails.Checked) + mydivx.ReadXml(cc2.ConvertMovieCollector(MesFilmsCat.Text, MesFilmsImg.Text, SortTitle.Checked, OnlyFile.Checked, "Thumbnails")); + else + mydivx.ReadXml(cc2.ConvertMovieCollector(MesFilmsCat.Text, MesFilmsImg.Text, SortTitle.Checked, OnlyFile.Checked, "Images")); break; case 3: destFile = MesFilmsCat.Text.Substring(0, MesFilmsCat.Text.Length - 4) + "_tmp.xml"; Modified: trunk/plugins/MyFilms/MovieCollector.cs =================================================================== --- trunk/plugins/MyFilms/MovieCollector.cs 2008-03-31 18:22:38 UTC (rev 1574) +++ trunk/plugins/MyFilms/MovieCollector.cs 2008-04-01 11:03:40 UTC (rev 1575) @@ -38,7 +38,7 @@ ProfilerDict.Add("Viewed", "Checked"); ProfilerDict.Add("Borrower", "Borrower"); } - public string ConvertMovieCollector(string source, string folderimage, bool SortTitle, bool OnlyFile) + public string ConvertMovieCollector(string source, string folderimage, bool SortTitle, bool OnlyFile,string WMCCovers) { string WStrPathImg; if (folderimage.Substring(folderimage.Length - 1) == "\\") @@ -143,8 +143,17 @@ } } string Image = String.Empty; - if (nodeDVD.SelectSingleNode("thumbfilepath") != null) - Image = nodeDVD.SelectSingleNode("thumbfilepath").InnerText; + if (WMCCovers == "Thumbnails") + { + if (nodeDVD.SelectSingleNode("thumbfilepath") != null) + Image = nodeDVD.SelectSingleNode("thumbfilepath").InnerText; + } + else + { + if (nodeDVD.SelectSingleNode("coverfront") != null) + Image = nodeDVD.SelectSingleNode("coverfront").InnerText; + } + string Rating = string.Empty; decimal wrating = 0; CultureInfo ci = new CultureInfo("en-us"); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ze...@us...> - 2008-04-18 15:21:23
|
Revision: 1663 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=1663&view=rev Author: zebons Date: 2008-04-18 08:21:09 -0700 (Fri, 18 Apr 2008) Log Message: ----------- Some corrections sort by numeric length added Modified Paths: -------------- trunk/plugins/MyFilms/AntMovieCatalog.Designer.cs trunk/plugins/MyFilms/AntMovieCatalog.xsd trunk/plugins/MyFilms/AntMovieCatalog.xss trunk/plugins/MyFilms/MesFilms.cs trunk/plugins/MyFilms/MesFilms.csproj trunk/plugins/MyFilms/MesFilms.sln trunk/plugins/MyFilms/MesFilmsDetail.cs trunk/plugins/MyFilms/MesFilmsSetup.Designer.cs trunk/plugins/MyFilms/MesFilmsSetup.cs trunk/plugins/MyFilms/MesFilmsSetup.resx Modified: trunk/plugins/MyFilms/AntMovieCatalog.Designer.cs =================================================================== --- trunk/plugins/MyFilms/AntMovieCatalog.Designer.cs 2008-04-18 12:37:23 UTC (rev 1662) +++ trunk/plugins/MyFilms/AntMovieCatalog.Designer.cs 2008-04-18 15:21:09 UTC (rev 1663) @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // <auto-generated> // Ce code a été généré par un outil. -// Version du runtime :2.0.50727.1433 +// Version du runtime :2.0.50727.832 // // Les modifications apportées à ce fichier peuvent provoquer un comportement incorrect et seront perdues si // le code est régénéré. @@ -11,19 +11,17 @@ #pragma warning disable 1591 namespace MesFilms { + using System; - /// <summary> - ///Represents a strongly typed in-memory cache of data. - ///</summary> - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")] - [global::System.Serializable()] - [global::System.ComponentModel.DesignerCategoryAttribute("code")] - [global::System.ComponentModel.ToolboxItem(true)] - [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedDataSetSchema")] - [global::System.Xml.Serialization.XmlRootAttribute("AntMovieCatalog")] - [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.DataSet")] - public partial class AntMovieCatalog : global::System.Data.DataSet { + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")] + [Serializable()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.ComponentModel.ToolboxItem(true)] + [System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedDataSetSchema")] + [System.Xml.Serialization.XmlRootAttribute("AntMovieCatalog")] + [System.ComponentModel.Design.HelpKeywordAttribute("vs.data.DataSet")] + public partial class AntMovieCatalog : System.Data.DataSet { private CatalogDataTable tableCatalog; @@ -31,37 +29,37 @@ private MovieDataTable tableMovie; - private global::System.Data.DataRelation relationCatalog_Contents; + private System.Data.DataRelation relationCatalog_Contents; - private global::System.Data.DataRelation relationContents_Movie; + private System.Data.DataRelation relationContents_Movie; - private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema; + private System.Data.SchemaSerializationMode _schemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [System.Diagnostics.DebuggerNonUserCodeAttribute()] public AntMovieCatalog() { this.BeginInit(); this.InitClass(); - global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged); + System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged); base.Tables.CollectionChanged += schemaChangedHandler; base.Relations.CollectionChanged += schemaChangedHandler; this.EndInit(); this.InitExpressions(); } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - protected AntMovieCatalog(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) : + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected AntMovieCatalog(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context, false) { if ((this.IsBinarySerialized(info, context) == true)) { this.InitVars(false); - global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler1 = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged); + System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler1 = new System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged); this.Tables.CollectionChanged += schemaChangedHandler1; this.Relations.CollectionChanged += schemaChangedHandler1; return; } string strSchema = ((string)(info.GetValue("XmlSchema", typeof(string)))); - if ((this.DetermineSchemaSerializationMode(info, context) == global::System.Data.SchemaSerializationMode.IncludeSchema)) { - global::System.Data.DataSet ds = new global::System.Data.DataSet(); - ds.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema))); + if ((this.DetermineSchemaSerializationMode(info, context) == System.Data.SchemaSerializationMode.IncludeSchema)) { + System.Data.DataSet ds = new System.Data.DataSet(); + ds.ReadXmlSchema(new System.Xml.XmlTextReader(new System.IO.StringReader(strSchema))); if ((ds.Tables["Catalog"] != null)) { base.Tables.Add(new CatalogDataTable(ds.Tables["Catalog"])); } @@ -77,50 +75,50 @@ this.Locale = ds.Locale; this.CaseSensitive = ds.CaseSensitive; this.EnforceConstraints = ds.EnforceConstraints; - this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add); + this.Merge(ds, false, System.Data.MissingSchemaAction.Add); this.InitVars(); } else { - this.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema))); + this.ReadXmlSchema(new System.Xml.XmlTextReader(new System.IO.StringReader(strSchema))); this.InitExpressions(); } this.GetSerializationData(info, context); - global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged); + System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged); base.Tables.CollectionChanged += schemaChangedHandler; this.Relations.CollectionChanged += schemaChangedHandler; } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.ComponentModel.Browsable(false)] - [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)] + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + [System.ComponentModel.Browsable(false)] + [System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Content)] public CatalogDataTable Catalog { get { return this.tableCatalog; } } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.ComponentModel.Browsable(false)] - [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)] + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + [System.ComponentModel.Browsable(false)] + [System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Content)] public ContentsDataTable Contents { get { return this.tableContents; } } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.ComponentModel.Browsable(false)] - [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)] + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + [System.ComponentModel.Browsable(false)] + [System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Content)] public MovieDataTable Movie { get { return this.tableMovie; } } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.ComponentModel.BrowsableAttribute(true)] - [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Visible)] - public override global::System.Data.SchemaSerializationMode SchemaSerializationMode { + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + [System.ComponentModel.BrowsableAttribute(true)] + [System.ComponentModel.DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Visible)] + public override System.Data.SchemaSerializationMode SchemaSerializationMode { get { return this._schemaSerializationMode; } @@ -129,31 +127,31 @@ } } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)] - public new global::System.Data.DataTableCollection Tables { + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + [System.ComponentModel.DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Hidden)] + public new System.Data.DataTableCollection Tables { get { return base.Tables; } } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)] - public new global::System.Data.DataRelationCollection Relations { + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + [System.ComponentModel.DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Hidden)] + public new System.Data.DataRelationCollection Relations { get { return base.Relations; } } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [System.Diagnostics.DebuggerNonUserCodeAttribute()] protected override void InitializeDerivedDataSet() { this.BeginInit(); this.InitClass(); this.EndInit(); } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public override global::System.Data.DataSet Clone() { + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + public override System.Data.DataSet Clone() { AntMovieCatalog cln = ((AntMovieCatalog)(base.Clone())); cln.InitVars(); cln.InitExpressions(); @@ -161,21 +159,21 @@ return cln; } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [System.Diagnostics.DebuggerNonUserCodeAttribute()] protected override bool ShouldSerializeTables() { return false; } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [System.Diagnostics.DebuggerNonUserCodeAttribute()] protected override bool ShouldSerializeRelations() { return false; } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - protected override void ReadXmlSerializable(global::System.Xml.XmlReader reader) { - if ((this.DetermineSchemaSerializationMode(reader) == global::System.Data.SchemaSerializationMode.IncludeSchema)) { + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override void ReadXmlSerializable(System.Xml.XmlReader reader) { + if ((this.DetermineSchemaSerializationMode(reader) == System.Data.SchemaSerializationMode.IncludeSchema)) { this.Reset(); - global::System.Data.DataSet ds = new global::System.Data.DataSet(); + System.Data.DataSet ds = new System.Data.DataSet(); ds.ReadXml(reader); if ((ds.Tables["Catalog"] != null)) { base.Tables.Add(new CatalogDataTable(ds.Tables["Catalog"])); @@ -192,7 +190,7 @@ this.Locale = ds.Locale; this.CaseSensitive = ds.CaseSensitive; this.EnforceConstraints = ds.EnforceConstraints; - this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add); + this.Merge(ds, false, System.Data.MissingSchemaAction.Add); this.InitVars(); } else { @@ -201,20 +199,20 @@ } } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - protected override global::System.Xml.Schema.XmlSchema GetSchemaSerializable() { - global::System.IO.MemoryStream stream = new global::System.IO.MemoryStream(); - this.WriteXmlSchema(new global::System.Xml.XmlTextWriter(stream, null)); + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override System.Xml.Schema.XmlSchema GetSchemaSerializable() { + System.IO.MemoryStream stream = new System.IO.MemoryStream(); + this.WriteXmlSchema(new System.Xml.XmlTextWriter(stream, null)); stream.Position = 0; - return global::System.Xml.Schema.XmlSchema.Read(new global::System.Xml.XmlTextReader(stream), null); + return System.Xml.Schema.XmlSchema.Read(new System.Xml.XmlTextReader(stream), null); } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [System.Diagnostics.DebuggerNonUserCodeAttribute()] internal void InitVars() { this.InitVars(true); } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [System.Diagnostics.DebuggerNonUserCodeAttribute()] internal void InitVars(bool initTable) { this.tableCatalog = ((CatalogDataTable)(base.Tables["Catalog"])); if ((initTable == true)) { @@ -238,116 +236,84 @@ this.relationContents_Movie = this.Relations["Contents_Movie"]; } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [System.Diagnostics.DebuggerNonUserCodeAttribute()] private void InitClass() { this.DataSetName = "AntMovieCatalog"; this.Prefix = ""; this.EnforceConstraints = true; - this.SchemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema; + this.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema; this.tableCatalog = new CatalogDataTable(); base.Tables.Add(this.tableCatalog); this.tableContents = new ContentsDataTable(); base.Tables.Add(this.tableContents); this.tableMovie = new MovieDataTable(false); base.Tables.Add(this.tableMovie); - global::System.Data.ForeignKeyConstraint fkc; - fkc = new global::System.Data.ForeignKeyConstraint("Catalog_Contents", new global::System.Data.DataColumn[] { - this.tableCatalog.Catalog_IdColumn}, new global::System.Data.DataColumn[] { + System.Data.ForeignKeyConstraint fkc; + fkc = new System.Data.ForeignKeyConstraint("Catalog_Contents", new System.Data.DataColumn[] { + this.tableCatalog.Catalog_IdColumn}, new System.Data.DataColumn[] { this.tableContents.Catalog_IdColumn}); this.tableContents.Constraints.Add(fkc); - fkc.AcceptRejectRule = global::System.Data.AcceptRejectRule.None; - fkc.DeleteRule = global::System.Data.Rule.Cascade; - fkc.UpdateRule = global::System.Data.Rule.Cascade; - fkc = new global::System.Data.ForeignKeyConstraint("Contents_Movie", new global::System.Data.DataColumn[] { - this.tableContents.Contents_IdColumn}, new global::System.Data.DataColumn[] { + fkc.AcceptRejectRule = System.Data.AcceptRejectRule.None; + fkc.DeleteRule = System.Data.Rule.Cascade; + fkc.UpdateRule = System.Data.Rule.Cascade; + fkc = new System.Data.ForeignKeyConstraint("Contents_Movie", new System.Data.DataColumn[] { + this.tableContents.Contents_IdColumn}, new System.Data.DataColumn[] { this.tableMovie.Contents_IdColumn}); this.tableMovie.Constraints.Add(fkc); - fkc.AcceptRejectRule = global::System.Data.AcceptRejectRule.None; - fkc.DeleteRule = global::System.Data.Rule.Cascade; - fkc.UpdateRule = global::System.Data.Rule.Cascade; - this.relationCatalog_Contents = new global::System.Data.DataRelation("Catalog_Contents", new global::System.Data.DataColumn[] { - this.tableCatalog.Catalog_IdColumn}, new global::System.Data.DataColumn[] { + fkc.AcceptRejectRule = System.Data.AcceptRejectRule.None; + fkc.DeleteRule = System.Data.Rule.Cascade; + fkc.UpdateRule = System.Data.Rule.Cascade; + this.relationCatalog_Contents = new System.Data.DataRelation("Catalog_Contents", new System.Data.DataColumn[] { + this.tableCatalog.Catalog_IdColumn}, new System.Data.DataColumn[] { this.tableContents.Catalog_IdColumn}, false); this.relationCatalog_Contents.Nested = true; this.Relations.Add(this.relationCatalog_Contents); - this.relationContents_Movie = new global::System.Data.DataRelation("Contents_Movie", new global::System.Data.DataColumn[] { - this.tableContents.Contents_IdColumn}, new global::System.Data.DataColumn[] { + this.relationContents_Movie = new System.Data.DataRelation("Contents_Movie", new System.Data.DataColumn[] { + this.tableContents.Contents_IdColumn}, new System.Data.DataColumn[] { this.tableMovie.Contents_IdColumn}, false); this.relationContents_Movie.Nested = true; this.Relations.Add(this.relationContents_Movie); } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [System.Diagnostics.DebuggerNonUserCodeAttribute()] private bool ShouldSerializeCatalog() { return false; } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [System.Diagnostics.DebuggerNonUserCodeAttribute()] private bool ShouldSerializeContents() { return false; } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [System.Diagnostics.DebuggerNonUserCodeAttribute()] private bool ShouldSerializeMovie() { return false; } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) { - if ((e.Action == global::System.ComponentModel.CollectionChangeAction.Remove)) { + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + private void SchemaChanged(object sender, System.ComponentModel.CollectionChangeEventArgs e) { + if ((e.Action == System.ComponentModel.CollectionChangeAction.Remove)) { this.InitVars(); } } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedDataSetSchema(global::System.Xml.Schema.XmlSchemaSet xs) { + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + public static System.Xml.Schema.XmlSchemaComplexType GetTypedDataSetSchema(System.Xml.Schema.XmlSchemaSet xs) { AntMovieCatalog ds = new AntMovieCatalog(); - global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType(); - global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence(); - global::System.Xml.Schema.XmlSchemaAny any = new global::System.Xml.Schema.XmlSchemaAny(); + System.Xml.Schema.XmlSchemaComplexType type = new System.Xml.Schema.XmlSchemaComplexType(); + System.Xml.Schema.XmlSchemaSequence sequence = new System.Xml.Schema.XmlSchemaSequence(); + xs.Add(ds.GetSchemaSerializable()); + System.Xml.Schema.XmlSchemaAny any = new System.Xml.Schema.XmlSchemaAny(); any.Namespace = ds.Namespace; sequence.Items.Add(any); type.Particle = sequence; - global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable(); - if (xs.Contains(dsSchema.TargetNamespace)) { - global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream(); - global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream(); - try { - global::System.Xml.Schema.XmlSchema schema = null; - dsSchema.Write(s1); - for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) { - schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current)); - s2.SetLength(0); - schema.Write(s2); - if ((s1.Length == s2.Length)) { - s1.Position = 0; - s2.Position = 0; - for (; ((s1.Position != s1.Length) - && (s1.ReadByte() == s2.ReadByte())); ) { - ; - } - if ((s1.Position == s1.Length)) { - return type; - } - } - } - } - finally { - if ((s1 != null)) { - s1.Close(); - } - if ((s2 != null)) { - s2.Close(); - } - } - } - xs.Add(dsSchema); return type; } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [System.Diagnostics.DebuggerNonUserCodeAttribute()] private void InitExpressions() { this.Movie.DateAddedColumn.Expression = "Convert(Date,\'System.DateTime\')"; + this.Movie.Length_NumColumn.Expression = "Convert(Length,\'System.Int32\')"; } public delegate void CatalogRowChangeEventHandler(object sender, CatalogRowChangeEvent e); @@ -356,21 +322,18 @@ public delegate void MovieRowChangeEventHandler(object sender, MovieRowChangeEvent e); - /// <summary> - ///Represents the strongly named DataTable class. - ///</summary> - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")] - [global::System.Serializable()] - [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] - public partial class CatalogDataTable : global::System.Data.DataTable, global::System.Collections.IEnumerable { + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")] + [System.Serializable()] + [System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] + public partial class CatalogDataTable : System.Data.DataTable, System.Collections.IEnumerable { - private global::System.Data.DataColumn columnAntMovieCatalog_Id; + private System.Data.DataColumn columnAntMovieCatalog_Id; - private global::System.Data.DataColumn columnProperties; + private System.Data.DataColumn columnProperties; - private global::System.Data.DataColumn columnCatalog_Id; + private System.Data.DataColumn columnCatalog_Id; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [System.Diagnostics.DebuggerNonUserCodeAttribute()] public CatalogDataTable() { this.TableName = "Catalog"; this.BeginInit(); @@ -378,8 +341,8 @@ this.EndInit(); } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - internal CatalogDataTable(global::System.Data.DataTable table) { + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + internal CatalogDataTable(System.Data.DataTable table) { this.TableName = table.TableName; if ((table.CaseSensitive != table.DataSet.CaseSensitive)) { this.CaseSensitive = table.CaseSensitive; @@ -394,42 +357,42 @@ this.MinimumCapacity = table.MinimumCapacity; } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - protected CatalogDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) : + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected CatalogDataTable(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { this.InitVars(); } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public global::System.Data.DataColumn AntMovieCatalog_IdColumn { + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + public System.Data.DataColumn AntMovieCatalog_IdColumn { get { return this.columnAntMovieCatalog_Id; } } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public global::System.Data.DataColumn PropertiesColumn { + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + public System.Data.DataColumn PropertiesColumn { get { return this.columnProperties; } } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public global::System.Data.DataColumn Catalog_IdColumn { + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + public System.Data.DataColumn Catalog_IdColumn { get { return this.columnCatalog_Id; } } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.ComponentModel.Browsable(false)] + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + [System.ComponentModel.Browsable(false)] public int Count { get { return this.Rows.Count; } } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [System.Diagnostics.DebuggerNonUserCodeAttribute()] public CatalogRow this[int index] { get { return ((CatalogRow)(this.Rows[index])); @@ -444,56 +407,55 @@ public event CatalogRowChangeEventHandler CatalogRowDeleted; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [System.Diagnostics.DebuggerNonUserCodeAttribute()] public void AddCatalogRow(CatalogRow row) { this.Rows.Add(row); } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [System.Diagnostics.DebuggerNonUserCodeAttribute()] public CatalogRow AddCatalogRow(int AntMovieCatalog_Id, string Properties) { CatalogRow rowCatalogRow = ((CatalogRow)(this.NewRow())); - object[] columnValuesArray = new object[] { + rowCatalogRow.ItemArray = new object[] { AntMovieCatalog_Id, Properties, null}; - rowCatalogRow.ItemArray = columnValuesArray; this.Rows.Add(rowCatalogRow); return rowCatalogRow; } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public virtual global::System.Collections.IEnumerator GetEnumerator() { + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + public virtual System.Collections.IEnumerator GetEnumerator() { return this.Rows.GetEnumerator(); } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public override global::System.Data.DataTable Clone() { + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + public override System.Data.DataTable Clone() { CatalogDataTable cln = ((CatalogDataTable)(base.Clone())); cln.InitVars(); return cln; } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - protected override global::System.Data.DataTable CreateInstance() { + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override System.Data.DataTable CreateInstance() { return new CatalogDataTable(); } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [System.Diagnostics.DebuggerNonUserCodeAttribute()] internal void InitVars() { this.columnAntMovieCatalog_Id = base.Columns["AntMovieCatalog_Id"]; this.columnProperties = base.Columns["Properties"]; this.columnCatalog_Id = base.Columns["Catalog_Id"]; } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [System.Diagnostics.DebuggerNonUserCodeAttribute()] private void InitClass() { - this.columnAntMovieCatalog_Id = new global::System.Data.DataColumn("AntMovieCatalog_Id", typeof(int), null, global::System.Data.MappingType.Hidden); + this.columnAntMovieCatalog_Id = new System.Data.DataColumn("AntMovieCatalog_Id", typeof(int), null, System.Data.MappingType.Hidden); base.Columns.Add(this.columnAntMovieCatalog_Id); - this.columnProperties = new global::System.Data.DataColumn("Properties", typeof(string), null, global::System.Data.MappingType.Element); + this.columnProperties = new System.Data.DataColumn("Properties", typeof(string), null, System.Data.MappingType.Element); base.Columns.Add(this.columnProperties); - this.columnCatalog_Id = new global::System.Data.DataColumn("Catalog_Id", typeof(int), null, global::System.Data.MappingType.Hidden); + this.columnCatalog_Id = new System.Data.DataColumn("Catalog_Id", typeof(int), null, System.Data.MappingType.Hidden); base.Columns.Add(this.columnCatalog_Id); - this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { + this.Constraints.Add(new System.Data.UniqueConstraint("Constraint1", new System.Data.DataColumn[] { this.columnCatalog_Id}, true)); this.columnAntMovieCatalog_Id.Namespace = ""; this.columnCatalog_Id.AutoIncrement = true; @@ -502,134 +464,98 @@ this.columnCatalog_Id.Namespace = ""; } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [System.Diagnostics.DebuggerNonUserCodeAttribute()] public CatalogRow NewCatalogRow() { return ((CatalogRow)(this.NewRow())); } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) { + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override System.Data.DataRow NewRowFromBuilder(System.Data.DataRowBuilder builder) { return new CatalogRow(builder); } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - protected override global::System.Type GetRowType() { + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override System.Type GetRowType() { return typeof(CatalogRow); } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) { + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override void OnRowChanged(System.Data.DataRowChangeEventArgs e) { base.OnRowChanged(e); if ((this.CatalogRowChanged != null)) { this.CatalogRowChanged(this, new CatalogRowChangeEvent(((CatalogRow)(e.Row)), e.Action)); } } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) { + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override void OnRowChanging(System.Data.DataRowChangeEventArgs e) { base.OnRowChanging(e); if ((this.CatalogRowChanging != null)) { this.CatalogRowChanging(this, new CatalogRowChangeEvent(((CatalogRow)(e.Row)), e.Action)); } } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) { + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override void OnRowDeleted(System.Data.DataRowChangeEventArgs e) { base.OnRowDeleted(e); if ((this.CatalogRowDeleted != null)) { this.CatalogRowDeleted(this, new CatalogRowChangeEvent(((CatalogRow)(e.Row)), e.Action)); } } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) { + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override void OnRowDeleting(System.Data.DataRowChangeEventArgs e) { base.OnRowDeleting(e); if ((this.CatalogRowDeleting != null)) { this.CatalogRowDeleting(this, new CatalogRowChangeEvent(((CatalogRow)(e.Row)), e.Action)); } } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [System.Diagnostics.DebuggerNonUserCodeAttribute()] public void RemoveCatalogRow(CatalogRow row) { this.Rows.Remove(row); } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) { - global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType(); - global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence(); + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + public static System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(System.Xml.Schema.XmlSchemaSet xs) { + System.Xml.Schema.XmlSchemaComplexType type = new System.Xml.Schema.XmlSchemaComplexType(); + System.Xml.Schema.XmlSchemaSequence sequence = new System.Xml.Schema.XmlSchemaSequence(); AntMovieCatalog ds = new AntMovieCatalog(); - global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny(); + xs.Add(ds.GetSchemaSerializable()); + System.Xml.Schema.XmlSchemaAny any1 = new System.Xml.Schema.XmlSchemaAny(); any1.Namespace = "http://www.w3.org/2001/XMLSchema"; any1.MinOccurs = new decimal(0); any1.MaxOccurs = decimal.MaxValue; - any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; + any1.ProcessContents = System.Xml.Schema.XmlSchemaContentProcessing.Lax; sequence.Items.Add(any1); - global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny(); + System.Xml.Schema.XmlSchemaAny any2 = new System.Xml.Schema.XmlSchemaAny(); any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1"; any2.MinOccurs = new decimal(1); - any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; + any2.ProcessContents = System.Xml.Schema.XmlSchemaContentProcessing.Lax; sequence.Items.Add(any2); - global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute(); + System.Xml.Schema.XmlSchemaAttribute attribute1 = new System.Xml.Schema.XmlSchemaAttribute(); attribute1.Name = "namespace"; attribute1.FixedValue = ds.Namespace; type.Attributes.Add(attribute1); - global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute(); + System.Xml.Schema.XmlSchemaAttribute attribute2 = new System.Xml.Schema.XmlSchemaAttribute(); attribute2.Name = "tableTypeName"; attribute2.FixedValue = "CatalogDataTable"; type.Attributes.Add(attribute2); type.Particle = sequence; - global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable(); - if (xs.Contains(dsSchema.TargetNamespace)) { - global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream(); - global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream(); - try { - global::System.Xml.Schema.XmlSchema schema = null; - dsSchema.Write(s1); - for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) { - schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current)); - s2.SetLength(0); - schema.Write(s2); - if ((s1.Length == s2.Length)) { - s1.Position = 0; - s2.Position = 0; - for (; ((s1.Position != s1.Length) - && (s1.ReadByte() == s2.ReadByte())); ) { - ; - } - if ((s1.Position == s1.Length)) { - return type; - } - } - } - } - finally { - if ((s1 != null)) { - s1.Close(); - } - if ((s2 != null)) { - s2.Close(); - } - } - } - xs.Add(dsSchema); return type; } } - /// <summary> - ///Represents the strongly named DataTable class. - ///</summary> - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")] - [global::System.Serializable()] - [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] - public partial class ContentsDataTable : global::System.Data.DataTable, global::System.Collections.IEnumerable { + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")] + [System.Serializable()] + [System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] + public partial class ContentsDataTable : System.Data.DataTable, System.Collections.IEnumerable { - private global::System.Data.DataColumn columnContents_Id; + private System.Data.DataColumn columnContents_Id; - private global::System.Data.DataColumn columnCatalog_Id; + private System.Data.DataColumn columnCatalog_Id; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [System.Diagnostics.DebuggerNonUserCodeAttribute()] public ContentsDataTable() { this.TableName = "Contents"; this.BeginInit(); @@ -637,8 +563,8 @@ this.EndInit(); } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - internal ContentsDataTable(global::System.Data.DataTable table) { + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + internal ContentsDataTable(System.Data.DataTable table) { this.TableName = table.TableName; if ((table.CaseSensitive != table.DataSet.CaseSensitive)) { this.CaseSensitive = table.CaseSensitive; @@ -653,35 +579,35 @@ this.MinimumCapacity = table.MinimumCapacity; } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - protected ContentsDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) : + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected ContentsDataTable(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { this.InitVars(); } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public global::System.Data.DataColumn Contents_IdColumn { + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + public System.Data.DataColumn Contents_IdColumn { get { return this.columnContents_Id; } } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public global::System.Data.DataColumn Catalog_IdColumn { + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + public System.Data.DataColumn Catalog_IdColumn { get { return this.columnCatalog_Id; } } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.ComponentModel.Browsable(false)] + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + [System.ComponentModel.Browsable(false)] public int Count { get { return this.Rows.Count; } } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [System.Diagnostics.DebuggerNonUserCodeAttribute()] public ContentsRow this[int index] { get { return ((ContentsRow)(this.Rows[index])); @@ -696,55 +622,51 @@ public event ContentsRowChangeEventHandler ContentsRowDeleted; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [System.Diagnostics.DebuggerNonUserCodeAttribute()] public void AddContentsRow(ContentsRow row) { this.Rows.Add(row); } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [System.Diagnostics.DebuggerNonUserCodeAttribute()] public ContentsRow AddContentsRow(CatalogRow parentCatalogRowByCatalog_Contents) { ContentsRow rowContentsRow = ((ContentsRow)(this.NewRow())); - object[] columnValuesArray = new object[] { + rowContentsRow.ItemArray = new object[] { null, - null}; - if ((parentCatalogRowByCatalog_Contents != null)) { - columnValuesArray[1] = parentCatalogRowByCatalog_Contents[2]; - } - rowContentsRow.ItemArray = columnValuesArray; + parentCatalogRowByCatalog_Contents[2]}; this.Rows.Add(rowContentsRow); return rowContentsRow; } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public virtual global::System.Collections.IEnumerator GetEnumerator() { + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + public virtual System.Collections.IEnumerator GetEnumerator() { return this.Rows.GetEnumerator(); } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public override global::System.Data.DataTable Clone() { + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + public override System.Data.DataTable Clone() { ContentsDataTable cln = ((ContentsDataTable)(base.Clone())); cln.InitVars(); return cln; } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - protected override global::System.Data.DataTable CreateInstance() { + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override System.Data.DataTable CreateInstance() { return new ContentsDataTable(); } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [System.Diagnostics.DebuggerNonUserCodeAttribute()] internal void InitVars() { this.columnContents_Id = base.Columns["Contents_Id"]; this.columnCatalog_Id = base.Columns["Catalog_Id"]; } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [System.Diagnostics.DebuggerNonUserCodeAttribute()] private void InitClass() { - this.columnContents_Id = new global::System.Data.DataColumn("Contents_Id", typeof(int), null, global::System.Data.MappingType.Hidden); + this.columnContents_Id = new System.Data.DataColumn("Contents_Id", typeof(int), null, System.Data.MappingType.Hidden); base.Columns.Add(this.columnContents_Id); - this.columnCatalog_Id = new global::System.Data.DataColumn("Catalog_Id", typeof(int), null, global::System.Data.MappingType.Hidden); + this.columnCatalog_Id = new System.Data.DataColumn("Catalog_Id", typeof(int), null, System.Data.MappingType.Hidden); base.Columns.Add(this.columnCatalog_Id); - this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { + this.Constraints.Add(new System.Data.UniqueConstraint("Constraint1", new System.Data.DataColumn[] { this.columnContents_Id}, true)); this.columnContents_Id.AutoIncrement = true; this.columnContents_Id.AllowDBNull = false; @@ -753,204 +675,170 @@ this.columnCatalog_Id.Namespace = ""; } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [System.Diagnostics.DebuggerNonUserCodeAttribute()] public ContentsRow NewContentsRow() { return ((ContentsRow)(this.NewRow())); } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) { + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override System.Data.DataRow NewRowFromBuilder(System.Data.DataRowBuilder builder) { return new ContentsRow(builder); } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - protected override global::System.Type GetRowType() { + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override System.Type GetRowType() { return typeof(ContentsRow); } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) { + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override void OnRowChanged(System.Data.DataRowChangeEventArgs e) { base.OnRowChanged(e); if ((this.ContentsRowChanged != null)) { this.ContentsRowChanged(this, new ContentsRowChangeEvent(((ContentsRow)(e.Row)), e.Action)); } } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) { + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override void OnRowChanging(System.Data.DataRowChangeEventArgs e) { base.OnRowChanging(e); if ((this.ContentsRowChanging != null)) { this.ContentsRowChanging(this, new ContentsRowChangeEvent(((ContentsRow)(e.Row)), e.Action)); } } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) { + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override void OnRowDeleted(System.Data.DataRowChangeEventArgs e) { base.OnRowDeleted(e); if ((this.ContentsRowDeleted != null)) { this.ContentsRowDeleted(this, new ContentsRowChangeEvent(((ContentsRow)(e.Row)), e.Action)); } } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) { + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override void OnRowDeleting(System.Data.DataRowChangeEventArgs e) { base.OnRowDeleting(e); if ((this.ContentsRowDeleting != null)) { this.ContentsRowDeleting(this, new ContentsRowChangeEvent(((ContentsRow)(e.Row)), e.Action)); } } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [System.Diagnostics.DebuggerNonUserCodeAttribute()] public void RemoveContentsRow(ContentsRow row) { this.Rows.Remove(row); } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) { - global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType(); - global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence(); + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + public static System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(System.Xml.Schema.XmlSchemaSet xs) { + System.Xml.Schema.XmlSchemaComplexType type = new System.Xml.Schema.XmlSchemaComplexType(); + System.Xml.Schema.XmlSchemaSequence sequence = new System.Xml.Schema.XmlSchemaSequence(); AntMovieCatalog ds = new AntMovieCatalog(); - global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny(); + xs.Add(ds.GetSchemaSerializable()); + System.Xml.Schema.XmlSchemaAny any1 = new System.Xml.Schema.XmlSchemaAny(); any1.Namespace = "http://www.w3.org/2001/XMLSchema"; any1.MinOccurs = new decimal(0); any1.MaxOccurs = decimal.MaxValue; - any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; + any1.ProcessContents = System.Xml.Schema.XmlSchemaContentProcessing.Lax; sequence.Items.Add(any1); - global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny(); + System.Xml.Schema.XmlSchemaAny any2 = new System.Xml.Schema.XmlSchemaAny(); any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1"; any2.MinOccurs = new decimal(1); - any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; + any2.ProcessContents = System.Xml.Schema.XmlSchemaContentProcessing.Lax; sequence.Items.Add(any2); - global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute(); + System.Xml.Schema.XmlSchemaAttribute attribute1 = new System.Xml.Schema.XmlSchemaAttribute(); attribute1.Name = "namespace"; attribute1.FixedValue = ds.Namespace; type.Attributes.Add(attribute1); - global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute(); + System.Xml.Schema.XmlSchemaAttribute attribute2 = new System.Xml.Schema.XmlSchemaAttribute(); attribute2.Name = "tableTypeName"; attribute2.FixedValue = "ContentsDataTable"; type.Attributes.Add(attribute2); type.Particle = sequence; - global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable(); - if (xs.Contains(dsSchema.TargetNamespace)) { - global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream(); - global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream(); - try { - global::System.Xml.Schema.XmlSchema schema = null; - dsSchema.Write(s1); - for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) { - schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current)); - s2.SetLength(0); - schema.Write(s2); - if ((s1.Length == s2.Length)) { - s1.Position = 0; - s2.Position = 0; - for (; ((s1.Position != s1.Length) - && (s1.ReadByte() == s2.ReadByte())); ) { - ; - } - if ((s1.Position == s1.Length)) { - return type; - } - } - } - } - finally { - if ((s1 != null)) { - s1.Close(); - } - if ((s2 != null)) { - s2.Close(); - } - } - } - xs.Add(dsSchema); return type; } } - /// <summary> - ///Represents the strongly named DataTable class. - ///</summary> - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")] - [global::System.Serializable()] - [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] - public partial class MovieDataTable : global::System.Data.DataTable, global::System.Collections.IEnumerable { + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")] + [System.Serializable()] + [System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] + public partial class MovieDataTable : System.Data.DataTable, System.Collections.IEnumerable { - private global::System.Data.DataColumn columnNumber; + private System.Data.DataColumn columnNumber; - private global::System.Data.DataColumn columnChecked; + private System.Data.DataColumn columnChecked; - private global::System.Data.DataColumn columnMediaLabel; + private System.Data.DataColumn columnMediaLabel; - private global::System.Data.DataColumn columnMediaType; + private System.Data.DataColumn columnMediaType; ... [truncated message content] |