From: <ze...@us...> - 2007-06-10 08:51:06
|
Revision: 503 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=503&view=rev Author: zebons Date: 2007-06-10 01:51:02 -0700 (Sun, 10 Jun 2007) Log Message: ----------- MyFilms v4.2.5 : - enhcements for DVDProfiler'DB use (SortTitle, Tags use) - no need to specify yhe movie filename in the ANT DB if those contain the Title movie Name. - some mods to skin BT (to be reported to others) Modified Paths: -------------- trunk/plugins/MyFilms/AssemblyInfo.cs trunk/plugins/MyFilms/CatalogConverter.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/Properties/AssemblyInfo.cs trunk/plugins/MyFilms/skin/BlueTwo/MesFilms.xml trunk/plugins/MyFilms/skin/BlueTwo/MesFilmsDetail.xml Modified: trunk/plugins/MyFilms/AssemblyInfo.cs =================================================================== --- trunk/plugins/MyFilms/AssemblyInfo.cs 2007-06-10 08:33:09 UTC (rev 502) +++ trunk/plugins/MyFilms/AssemblyInfo.cs 2007-06-10 08:51:02 UTC (rev 503) @@ -31,5 +31,5 @@ // // Vous pouvez spécifier toutes les valeurs ou indiquer les numéros de révision et de build par défaut // en utilisant '*', comme indiqué ci-dessous : -[assembly: AssemblyVersion("2.2.0.0")] -[assembly: AssemblyFileVersion("4.2.0.0")] +[assembly: AssemblyVersion("2.2.2.0")] +[assembly: AssemblyFileVersion("2.4.0.0")] Modified: trunk/plugins/MyFilms/CatalogConverter.cs =================================================================== --- trunk/plugins/MyFilms/CatalogConverter.cs 2007-06-10 08:33:09 UTC (rev 502) +++ trunk/plugins/MyFilms/CatalogConverter.cs 2007-06-10 08:51:02 UTC (rev 503) @@ -6,20 +6,21 @@ using MediaPortal.GUI.Library; using System.Windows.Forms; using System.Globalization; +using MediaPortal.Configuration; + namespace MesFilms { class CatalogConverter { public Dictionary<string, string> ProfilerDict; - public CatalogConverter() + public CatalogConverter(string TagField) { - ProfilerDict = new Dictionary<string, string>(); ProfilerDict.Add("Title", "OriginalTitle"); - ProfilerDict.Add("SortTitle", "TranslatedTitle"); - ProfilerDict.Add("SortTitle1", "FormattedTitle"); + ProfilerDict.Add("TTitle", "TranslatedTitle"); + ProfilerDict.Add("STitle", "FormattedTitle"); ProfilerDict.Add("CollectionNumber", "Number"); ProfilerDict.Add("Review/ReviewFilm", "Rating"); ProfilerDict.Add("Notes/File", "URL"); @@ -32,9 +33,11 @@ ProfilerDict.Add("Credits1", "Producer"); ProfilerDict.Add("Overview", "Description"); ProfilerDict.Add("Picture", "Picture"); + ProfilerDict.Add("Tag", TagField); } - - public string ConvertProfiler(string source, string folderimage) + public string TagFullName; + + public string ConvertProfiler(string source, string folderimage, bool SortTitle, string TagField) { //string destFile = Path.GetTempPath()+@"AntTempFile.xml"; //string destFile = source.Substring(0, source.Length - 4) + "_tmp.xml"; @@ -75,6 +78,7 @@ } XmlNode nodeTitle = nodeDVD.SelectSingleNode("Title"); XmlNode nodeOTitle = nodeDVD.SelectSingleNode("OriginalTitle"); + XmlNode nodeSTitle = nodeDVD.SelectSingleNode("SortTitle"); XmlNode nodeNotes = nodeDVD.SelectSingleNode("Notes"); XmlNode nodeYear = nodeDVD.SelectSingleNode("ProductionYear"); XmlNode nodeDuration = nodeDVD.SelectSingleNode("RunningTime"); @@ -101,6 +105,25 @@ if (genre.Length > 0) genre += ", "; genre += nodeGenre.InnerText; } + if (TagField.Length > 0) + { + XmlNodeList TagList = nodeDVD.SelectNodes("Tags/Tag"); + TagFullName = ""; + + foreach (XmlNode nodeTag in TagList) + { + if (nodeTag.Attributes["FullName"] != null && nodeTag.Attributes["FullName"].Value != null) + { + if (TagFullName.Length > 0) TagFullName += ", "; + TagFullName += nodeTag.Attributes["FullName"].Value; + } + } + if (TagField == "Category") + { + if (genre.Length > 0) genre += ", "; + genre += TagFullName; + } + } string cast = String.Empty; XmlNodeList actorsList = nodeDVD.SelectNodes("Actors/Actor"); foreach (XmlNode nodeActor in actorsList) @@ -199,8 +222,11 @@ WriteAntAtribute(destXml, "Title", nodeOTitle.InnerText); else WriteAntAtribute(destXml, "Title", nodeTitle.InnerText); - WriteAntAtribute(destXml, "SortTitle", nodeTitle.InnerText); - WriteAntAtribute(destXml, "SortTitle1", nodeTitle.InnerText); + WriteAntAtribute(destXml, "TTitle", nodeTitle.InnerText); + if (SortTitle) + WriteAntAtribute(destXml, "STitle", nodeSTitle.InnerText); + else + WriteAntAtribute(destXml, "STitle", nodeTitle.InnerText); WriteAntAtribute(destXml, "Notes/File", File); WriteAntAtribute(destXml, "Notes/Country", Country); WriteAntAtribute(destXml, "Review/ReviewFilm", Rating); @@ -211,6 +237,8 @@ WriteAntAtribute(destXml, "Credits1", Producer); WriteAntAtribute(destXml, "Actors", cast); WriteAntAtribute(destXml, "Picture", Image); + if ((TagField.Length > 0) && (TagField != "Category") && (TagFullName.Length > 0)) + WriteAntAtribute(destXml, "Tag", TagFullName); if (nodeOverview != null && nodeOverview.InnerText != null) WriteAntAtribute(destXml, "Overview", nodeOverview.InnerText); else Modified: trunk/plugins/MyFilms/MesFilms.cs =================================================================== --- trunk/plugins/MyFilms/MesFilms.cs 2007-06-10 08:33:09 UTC (rev 502) +++ trunk/plugins/MyFilms/MesFilms.cs 2007-06-10 08:51:02 UTC (rev 503) @@ -223,7 +223,7 @@ public bool GetHome(out string strButtonText, out string strButtonImage, out string strButtonImageFocus, out string strPictureImage) { string wPluginName = StrPluginName; - using (MediaPortal.Profile.Settings xmlreader = new MediaPortal.Profile.Settings("MyFilms.xml")) + using (MediaPortal.Profile.Settings xmlreader = new MediaPortal.Profile.Settings(Config.GetFile(Config.Dir.Config, "MyFilms.xml"))) { wPluginName = xmlreader.GetValueAsString("MyFilms", "PluginName", "My Films"); } @@ -265,6 +265,8 @@ { if (actionType.wID == Action.ActionType.ACTION_PARENT_DIR) if (GetPrevFilmList()) return; + + if ((actionType.wID == Action.ActionType.ACTION_PREVIOUS_MENU) && (boolselect)) { Change_LayOut(Layout); @@ -276,6 +278,8 @@ Change_view(WStrSort); return; } + if (actionType.wID == Action.ActionType.ACTION_PREVIOUS_MENU) + if (GetPrevFilmList()) return; base.OnAction(actionType); } //--------------------------------------------------------------------------------------- @@ -299,7 +303,7 @@ affich_overlay(); else supprim_overlay(); - using (MediaPortal.Profile.Settings xmlreader = new MediaPortal.Profile.Settings("MyFilms.xml")) + using (MediaPortal.Profile.Settings xmlreader = new MediaPortal.Profile.Settings(Config.GetFile(Config.Dir.Config, "MyFilms.xml"))) { if (PreviousWindowId == ID_MesFilmsDetail) { @@ -530,6 +534,12 @@ { 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; Layout = 0; } else @@ -763,7 +773,7 @@ item.ThumbnailImage = StrPathImg + "\\" + r["Picture"].ToString(); else item.ThumbnailImage = r["Picture"].ToString(); - + item.OnItemSelected += new MediaPortal.GUI.Library.GUIListItem.ItemSelectedHandler(item_OnItemSelected); //item.OnRetrieveArt += new MediaPortal.GUI.Library.GUIListItem.RetrieveCoverArtHandler(OnRetrieveCoverArt); facadeView.Add(item); @@ -979,6 +989,21 @@ { supprim_overlay(); } + 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 = MediaPortal.Util.Utils.ConvertToLargeCoverArt(item.ThumbnailImage); + else filmstrip.InfoImageFileName = item.ThumbnailImage; + } + #region Acc\xE8s Donn\xE9es //----------------------------------------------------------------------------------------- // Controle de l'existence du fichier ANT XML @@ -1167,7 +1192,7 @@ //----------------------------------------------------------------------------------------------- private void save_config_values() { - using (MediaPortal.Profile.Settings xmlwriter = new MediaPortal.Profile.Settings("MyFilms.xml")) + using (MediaPortal.Profile.Settings xmlwriter = new MediaPortal.Profile.Settings(Config.GetFile(Config.Dir.Config, "MyFilms.xml"))) { xmlwriter.SetValue(CurrentConfig, "StrSelect", StrSelect.ToString()); xmlwriter.SetValue(CurrentConfig, "StrActors", StrActors.ToString()); @@ -1201,11 +1226,11 @@ //----------------------------------------------------------------------------------------------- // Load Config Parameters in MyFilms.xml file (section CurrentConfig) //----------------------------------------------------------------------------------------------- - using (MediaPortal.Profile.Settings xmlwriter = new MediaPortal.Profile.Settings("MyFilms.xml")) + 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("MyFilms.xml")) + using (MediaPortal.Profile.Settings xmlreader = new MediaPortal.Profile.Settings(Config.GetFile(Config.Dir.Config, "MyFilms.xml"))) { StrStorage = xmlreader.GetValueAsString(CurrentConfig, "AntStorage", ""); StrIdentItem = xmlreader.GetValueAsString(CurrentConfig, "AntIdentItem", ""); @@ -1239,8 +1264,12 @@ StrFileXml = destFile; break; } - CatalogConverter cv = new CatalogConverter(); - StrFileXml = cv.ConvertProfiler(StrFileXml, StrPathImg); + 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", ""); @@ -1286,7 +1315,7 @@ } dlg.Reset(); dlg.SetHeading(924); // menu - using (MediaPortal.Profile.Settings xmlreader = new MediaPortal.Profile.Settings("MyFilms.xml")) + 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++) @@ -1312,7 +1341,7 @@ if (configname.Length == 0) return ""; string Dwp; - using (MediaPortal.Profile.Settings xmlreader = new MediaPortal.Profile.Settings("MyFilms.xml")) + using (MediaPortal.Profile.Settings xmlreader = new MediaPortal.Profile.Settings(Config.GetFile(Config.Dir.Config, "MyFilms.xml"))) { Dwp = xmlreader.GetValueAsString(configname, "Dwp", ""); } @@ -1343,11 +1372,11 @@ boolselect = false; if (!ControlFichierDonn\xE9es()) { - using (MediaPortal.Profile.Settings xmlreader = new MediaPortal.Profile.Settings("MyFilms.xml")) + using (MediaPortal.Profile.Settings xmlreader = new MediaPortal.Profile.Settings(Config.GetFile(Config.Dir.Config, "MyFilms.xml"))) { if (CurrentConfig == xmlreader.GetValueAsString("MyFilms", "Current_Config", "")) { - using (MediaPortal.Profile.Settings xmlwriter = new MediaPortal.Profile.Settings("MyFilms.xml")) + using (MediaPortal.Profile.Settings xmlwriter = new MediaPortal.Profile.Settings(Config.GetFile(Config.Dir.Config, "MyFilms.xml"))) { xmlwriter.SetValue("MyFilms", "Current_Config", ""); } @@ -1466,12 +1495,16 @@ GUIControl.SetControlLabel(GetID, (int)Controls.CTRL_BtnLayout, GUILocalizeStrings.Get(417)); facadeView.View = GUIFacadeControl.ViewMode.LargeIcons; break; + //case 3: + // GUIControl.SetControlLabel(GetID, (int)Controls.CTRL_BtnLayout, GUILocalizeStrings.Get(733)); + // facadeView.View = GUIFacadeControl.ViewMode.Filmstrip; + // break; default: GUIControl.SetControlLabel(GetID, (int)Controls.CTRL_BtnLayout, GUILocalizeStrings.Get(101)); facadeView.View = GUIFacadeControl.ViewMode.List; break; } - GUIControl.HideControl(GetID, facadeView.GetID); +// GUIControl.HideControl(GetID, facadeView.GetID); int iControl = facadeView.GetID; GUIControl.ShowControl(GetID, iControl); GUIControl.FocusControl(GetID, iControl); @@ -1539,7 +1572,7 @@ GetFilmList(); return; } - if (choice_view.ToLower() == "view1") + if ((choice_view.ToLower() == "view1") || (choice_view.ToLower() == StrViewItem1.ToLower())) { // Change View by "View1": Change_LayOut(0); @@ -1552,7 +1585,7 @@ getSelectFromDivx(StrTitle1.ToString() + " not like ''", WStrSort, WStrSortSens, "*", true, ""); return; } - if (choice_view.ToLower() == "view2") + if ((choice_view.ToLower() == "view2") || (choice_view.ToLower() == StrViewItem2.ToLower())) { // Change View by "View2": Change_LayOut(0); Modified: trunk/plugins/MyFilms/MesFilmsDetail.cs =================================================================== --- trunk/plugins/MyFilms/MesFilmsDetail.cs 2007-06-10 08:33:09 UTC (rev 502) +++ trunk/plugins/MyFilms/MesFilmsDetail.cs 2007-06-10 08:51:02 UTC (rev 503) @@ -39,7 +39,7 @@ using MediaPortal.GUI.Library; using SQLite.NET; using MediaPortal.Configuration; - +using Core.Util; using NewStringLib; namespace MesFilms @@ -99,6 +99,8 @@ string Stritem1 = null; string Stritem2 = null; string Stritem3 = null; + string ItemSearchFile = null; + bool SearchFile = false; string CurrentConfig = null; string wzone = null; int StrIndex = 0; @@ -106,7 +108,6 @@ public SQLiteClient m_db; string TitleDelim = null; DataRow[] r; // will hold current recordset to traverse - public class IMDBActorMovie { public string MovieTitle; @@ -122,7 +123,7 @@ static VirtualDirectory virtualDirectory = new VirtualDirectory(); static bool m_askBeforePlayingDVDImage = false; static bool multifile = false; - + public static ArrayList result; static MesFilmsDetail() { playlistPlayer = PlayListPlayer.SingletonPlayer; @@ -181,7 +182,7 @@ m_directory.SetExtensions(Utils.VideoExtensions); string TxtSelect; base.OnMessage(messageType); - using (MediaPortal.Profile.Settings xmlreader = new MediaPortal.Profile.Settings("MyFilms.xml")) + using (MediaPortal.Profile.Settings xmlreader = new MediaPortal.Profile.Settings(Config.GetFile(Config.Dir.Config, "MyFilms.xml"))) { CurrentConfig = xmlreader.GetValueAsString("MyFilms", "Current_Config", ""); StrStorage = xmlreader.GetValueAsString(CurrentConfig, "AntStorage", ""); @@ -207,6 +208,11 @@ StrTitleSelect = xmlreader.GetValueAsString(CurrentConfig, "StrTitleSelect", ""); StrFilmSelect = xmlreader.GetValueAsString(CurrentConfig, "StrFilmSelect", ""); TitleDelim = xmlreader.GetValueAsString(CurrentConfig, "TitleDelim", "."); + ItemSearchFile = xmlreader.GetValueAsString(CurrentConfig, "ItemSearchFileName", ""); + if (xmlreader.GetValueAsString(CurrentConfig, "SearchFileName", "false") == "True") + SearchFile = true; + else + SearchFile = false; switch (xmlreader.GetValueAsString(CurrentConfig, "CatalogType", "0")) { case "0": @@ -342,7 +348,7 @@ int ItemID; dlg.Reset(); - using (MediaPortal.Profile.Settings xmlreader = new MediaPortal.Profile.Settings("MyFilms.xml")) + using (MediaPortal.Profile.Settings xmlreader = new MediaPortal.Profile.Settings(Config.GetFile(Config.Dir.Config, "MyFilms.xml"))) { StrUpdItem1 = xmlreader.GetValueAsString(CurrentConfig, "AntUpdItem1", ""); StrUpdText1 = xmlreader.GetValueAsString(CurrentConfig, "AntUpdText1", ""); @@ -767,7 +773,7 @@ // val of -1 = don't save, else save value private void save_config_values(int ID) { - using (MediaPortal.Profile.Settings xmlwriter = new MediaPortal.Profile.Settings("MyFilms.xml")) + using (MediaPortal.Profile.Settings xmlwriter = new MediaPortal.Profile.Settings(Config.GetFile(Config.Dir.Config, "MyFilms.xml"))) { xmlwriter.SetValue(CurrentConfig, "IndexItem", r[StrIndex]["Number"]); if (ID != -1) xmlwriter.SetValue(CurrentConfig, "LastID", ID); @@ -787,9 +793,26 @@ string fileName = null; if (!(StrStorage == null) && !(StrStorage == "(none)") && !(StrStorage == "")) { - if (r[select_item][StrStorage].ToString() != "") + if (r[select_item][StrStorage].ToString() == "") + // recherche nom de fichier par titre du film + if ((SearchFile) && (first)) + { + if (ItemSearchFile.Length > 0) + { + fileName = Search_FileName(r[select_item][ItemSearchFile].ToString(), StrDirStor); + if (fileName.Length > 0) + { + r[StrIndex][StrStorage] = fileName; + Update_XML_database(false, StrIndex, StrStorage); + } + } + } + else + fileName = (string)r[select_item][StrStorage]; + else + fileName = (string)r[select_item][StrStorage]; + if (fileName.Length > 0) { - fileName = (string)r[select_item][StrStorage]; if (VirtualDirectory.IsImageFile(System.IO.Path.GetExtension(fileName))) { if (MountImageFile(GetID, fileName)) @@ -814,7 +837,6 @@ return; } } - if (!first) return; GUIDialogOK dlgOk = (GUIDialogOK)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_DIALOG_OK); dlgOk.SetHeading(3);//my videos @@ -1047,12 +1069,13 @@ if (!multifile) { //case monofile search files belonging same movie (extension cdx or diskx) string folder = file.Substring(0, file.LastIndexOf(@"\")); + file = folder + file.Substring(file.LastIndexOf(@"\") + 1); ArrayList items = m_directory.GetDirectory(folder.ToString()); for (int i = 0; i < items.Count; ++i) { GUIListItem temporaryListItem = (GUIListItem)items[i]; - if (Utils.ShouldStack(temporaryListItem.Path, (string)file) || (temporaryListItem.Path.ToLower() == file.ToLower())) + if (Utils.ShouldStack(temporaryListItem.Path.ToLower(), (string)file.ToLower()) || (temporaryListItem.Path.ToLower() == file.ToLower())) { if (!(temporaryListItem.Path.ToLower() == file.ToLower())) idMovie = update_database(temporaryListItem.Path, select_item, idMovie); @@ -1257,6 +1280,137 @@ } } } + private string Search_FileName(string filename , string storage) + { + result = new ArrayList(); + string file= filename; + + SearchFiles(file, storage, true); + + //si des resultats existent on les affichent + if (result.Count != 0) + { + if (result.Count == 1) + return result[0].ToString(); + string wfile = null; + result.Sort(); + ArrayList wresult = new ArrayList(); + foreach (String s in result) + { + if (!Utils.ShouldStack(s, wfile)) + { + wresult.Add(s); + wfile = s; + } + } + if (wresult.Count == 1) + return wresult[0].ToString(); + else + { + // Many files found; ask for the good file + GUIDialogMenu dlg = (GUIDialogMenu)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_DIALOG_MENU); + if (dlg == null) return ""; + dlg.Reset(); + dlg.SetHeading(924); // menu + foreach (string Moviefile in wresult) + dlg.Add(Moviefile); + dlg.DoModal(GetID); + + if (dlg.SelectedLabel == -1) + return ""; + return wresult[dlg.SelectedLabel].ToString(); + } + } + else +// No Movie File Found + return ""; + + } + /// <summary> + /// Permet de rechercher un fichier dans un dossier et ces sous dossier + /// </summary> + /// <param name="fileName">le nom du fichier recherch\xE9</param> + /// <param name="path">le chemin du r\xE9pertoire dans lequel chercher</param> + /// <param name="recur">sp\xE9cifie si la recherche doit \xEAtre recursive</param> + public static void SearchFiles(string fileName, string searchrep, bool recur) + { + System.Text.RegularExpressions.Regex oRegex; + oRegex = new System.Text.RegularExpressions.Regex(";"); + string[] SearchDir = oRegex.Split(searchrep); + string file = MediaPortal.Util.Utils.FilterFileName(fileName.ToLower()); + + file = file.Replace("-", " "); + file = file.Replace("!", " "); + file = file.Replace("#", " "); + file = file.Replace(";", " "); + file = file.Replace("'", " "); + file = file.Replace("=", " "); + file = file.Replace("&", " "); + file = file.Replace("(", " "); + file = file.Replace(")", " "); + file = file.Replace("@", " "); + file = file.Replace("%", " "); + file = file.Replace("$", " "); + file = file.Replace(":", " "); + file = file.Replace("_", " "); + file = file.Trim(); + oRegex = new System.Text.RegularExpressions.Regex(" +"); + + file = oRegex.Replace(file, ":"); + file = file.Replace(":", ".*"); + file = file.Replace("\xE9", "[e\xE9]"); + file = file.Replace("\xE8", "[e\xE8]"); + file = file.Replace("\xEA", "[e\xEA]"); + file = file.Replace("\xEB", "[e\xEB]"); + file = file.Replace("\xF4", "[o\xF4]"); + file = file.Replace("\xF6", "[o\xF6]"); + file = file.Replace("\xE0", "[a\xE0]"); + file = file.Replace("\xE2", "[a\xE2]"); + file = file.Replace("\xE4", "[a\xE4]"); + file = file.Replace("\xF9", "[u\xF9]"); + file = file.Replace("\xFB", "[u\xFB]"); + file = file.Replace("\xFC", "[u\xFC]"); + file = file.Replace("\xEE", "[i\xEE]"); + file = file.Replace("\xEF", "[i\xEF]"); + file = file.Replace("\xE7", "[c\xE7]"); + 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(); + + //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) + { + if (MediaPortal.Util.Utils.IsVideo(fi.Name)) + result.Add(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()) + { + //On rappelle la m\xE9thode SearchFiles pour tous les sous-r\xE9pertoires + + SearchFiles(fileName, dir.FullName, recur); + } + } + } + } private void update_fieldDB(string champselect, int iidmovie, string field) { IMDBMovie movieDetails = new IMDBMovie(); Modified: trunk/plugins/MyFilms/MesFilmsSetup.Designer.cs =================================================================== --- trunk/plugins/MyFilms/MesFilmsSetup.Designer.cs 2007-06-10 08:33:09 UTC (rev 502) +++ trunk/plugins/MyFilms/MesFilmsSetup.Designer.cs 2007-06-10 08:51:02 UTC (rev 503) @@ -95,289 +95,588 @@ /// </summary> private void InitializeComponent() { - this.label1 = new System.Windows.Forms.Label(); - this.MesFilmsCat = new System.Windows.Forms.TextBox(); - this.ButCat = new System.Windows.Forms.Button(); - this.ButImg = new System.Windows.Forms.Button(); - this.MesFilmsImg = new System.Windows.Forms.TextBox(); - this.label2 = new System.Windows.Forms.Label(); - this.ButQuit = new System.Windows.Forms.Button(); this.openFileDialog1 = new System.Windows.Forms.OpenFileDialog(); this.folderBrowserDialog1 = new System.Windows.Forms.FolderBrowserDialog(); - this.AntIdentItem = new System.Windows.Forms.ComboBox(); - this.label4 = new System.Windows.Forms.Label(); - this.AntFilterItem1 = new System.Windows.Forms.ComboBox(); - this.AntFilterText1 = new System.Windows.Forms.TextBox(); - this.label6 = new System.Windows.Forms.Label(); - this.AntStorage = new System.Windows.Forms.ComboBox(); - this.AntLabel1 = new System.Windows.Forms.TextBox(); - this.AntItem1 = new System.Windows.Forms.ComboBox(); - this.groupBox1 = new System.Windows.Forms.GroupBox(); - this.AntItem3 = new System.Windows.Forms.ComboBox(); - this.AntLabel2 = new System.Windows.Forms.TextBox(); - this.AntItem2 = new System.Windows.Forms.ComboBox(); - this.label7 = new System.Windows.Forms.Label(); - this.label3 = new System.Windows.Forms.Label(); - this.groupBox2 = new System.Windows.Forms.GroupBox(); - this.AntFilterComb = new System.Windows.Forms.ComboBox(); - this.AntFilterSign2 = new System.Windows.Forms.ComboBox(); - this.AntFilterSign1 = new System.Windows.Forms.ComboBox(); - this.AntFilterItem2 = new System.Windows.Forms.ComboBox(); - this.AntFilterText2 = new System.Windows.Forms.TextBox(); - this.groupBox3 = new System.Windows.Forms.GroupBox(); - this.AntViewText2 = new System.Windows.Forms.TextBox(); - this.AntViewText1 = new System.Windows.Forms.TextBox(); - this.AntViewItem2 = new System.Windows.Forms.ComboBox(); - this.AntViewItem1 = new System.Windows.Forms.ComboBox(); + this.label10 = new System.Windows.Forms.Label(); + this.textBox1 = new System.Windows.Forms.TextBox(); + this.label11 = new System.Windows.Forms.Label(); + this.Config_Name = new System.Windows.Forms.ComboBox(); + this.label12 = new System.Windows.Forms.Label(); + this.General = new System.Windows.Forms.TabControl(); + this.tabPage1 = new System.Windows.Forms.TabPage(); + this.groupBox11 = new System.Windows.Forms.GroupBox(); + this.label16 = new System.Windows.Forms.Label(); + this.label15 = new System.Windows.Forms.Label(); + this.Rpt_Dwp = new System.Windows.Forms.TextBox(); + this.Dwp = new System.Windows.Forms.TextBox(); + this.groupBox7 = new System.Windows.Forms.GroupBox(); + this.AntIdentLabel = new System.Windows.Forms.TextBox(); this.butPath = new System.Windows.Forms.Button(); this.PathStorage = new System.Windows.Forms.TextBox(); this.label5 = new System.Windows.Forms.Label(); - this.AntIdentLabel = new System.Windows.Forms.TextBox(); - this.groupBox4 = new System.Windows.Forms.GroupBox(); - this.AntUpdDflT2 = new System.Windows.Forms.TextBox(); - this.AntUpdDflT1 = new System.Windows.Forms.TextBox(); - this.AntUpdItem2 = new System.Windows.Forms.ComboBox(); - this.AntUpdText2 = new System.Windows.Forms.TextBox(); - this.AntUpdItem1 = new System.Windows.Forms.ComboBox(); - this.AntUpdText1 = new System.Windows.Forms.TextBox(); + this.label6 = new System.Windows.Forms.Label(); + this.AntStorage = new System.Windows.Forms.ComboBox(); + this.ItemSearchFileName = new System.Windows.Forms.ComboBox(); + this.SearchFileName = new System.Windows.Forms.CheckBox(); + this.label4 = new System.Windows.Forms.Label(); + this.AntIdentItem = new System.Windows.Forms.ComboBox(); + this.label13 = new System.Windows.Forms.Label(); + this.CatalogType = new System.Windows.Forms.ComboBox(); this.groupBox5 = new System.Windows.Forms.GroupBox(); + this.label17 = new System.Windows.Forms.Label(); this.TitleDelim = new System.Windows.Forms.TextBox(); this.label9 = new System.Windows.Forms.Label(); this.label8 = new System.Windows.Forms.Label(); this.AntTitle2 = new System.Windows.Forms.ComboBox(); this.AntTitle1 = new System.Windows.Forms.ComboBox(); + this.ButImg = new System.Windows.Forms.Button(); + this.MesFilmsImg = new System.Windows.Forms.TextBox(); + this.label2 = new System.Windows.Forms.Label(); + this.ButCat = new System.Windows.Forms.Button(); + this.MesFilmsCat = new System.Windows.Forms.TextBox(); + this.label1 = new System.Windows.Forms.Label(); + this.tabPage2 = new System.Windows.Forms.TabPage(); this.groupBox6 = new System.Windows.Forms.GroupBox(); this.AntSort = new System.Windows.Forms.ComboBox(); this.AntTSort = new System.Windows.Forms.TextBox(); - this.label10 = new System.Windows.Forms.Label(); - this.textBox1 = new System.Windows.Forms.TextBox(); - this.label11 = new System.Windows.Forms.Label(); - this.Config_Name = new System.Windows.Forms.ComboBox(); - this.label12 = new System.Windows.Forms.Label(); - this.groupBox7 = new System.Windows.Forms.GroupBox(); + this.groupBox4 = new System.Windows.Forms.GroupBox(); + this.AntUpdDflT2 = new System.Windows.Forms.TextBox(); + this.AntUpdDflT1 = new System.Windows.Forms.TextBox(); + this.AntUpdItem2 = new System.Windows.Forms.ComboBox(); + this.AntUpdText2 = new System.Windows.Forms.TextBox(); + this.AntUpdItem1 = new System.Windows.Forms.ComboBox(); + this.AntUpdText1 = new System.Windows.Forms.TextBox(); + this.groupBox2 = new System.Windows.Forms.GroupBox(); + this.AntFilterComb = new System.Windows.Forms.ComboBox(); + this.AntFilterSign2 = new System.Windows.Forms.ComboBox(); + this.AntFilterSign1 = new System.Windows.Forms.ComboBox(); + this.AntFilterItem2 = new System.Windows.Forms.ComboBox(); + this.AntFilterText2 = new System.Windows.Forms.TextBox(); + this.AntFilterItem1 = new System.Windows.Forms.ComboBox(); + this.AntFilterText1 = new System.Windows.Forms.TextBox(); + this.groupBox8 = new System.Windows.Forms.GroupBox(); this.label14 = new System.Windows.Forms.Label(); this.LayOut = new System.Windows.Forms.ComboBox(); - this.label13 = new System.Windows.Forms.Label(); - this.CatalogType = new System.Windows.Forms.ComboBox(); - this.ButSave = new System.Windows.Forms.Button(); - this.groupBox8 = new System.Windows.Forms.GroupBox(); this.View_Dflt_Item = new System.Windows.Forms.ComboBox(); this.View_Dflt_Text = new System.Windows.Forms.TextBox(); + this.groupBox3 = new System.Windows.Forms.GroupBox(); + this.AntViewText2 = new System.Windows.Forms.TextBox(); + this.AntViewText1 = new System.Windows.Forms.TextBox(); + this.AntViewItem2 = new System.Windows.Forms.ComboBox(); + this.AntViewItem1 = new System.Windows.Forms.ComboBox(); + this.groupBox1 = new System.Windows.Forms.GroupBox(); + this.AntItem3 = new System.Windows.Forms.ComboBox(); + this.AntLabel2 = new System.Windows.Forms.TextBox(); + this.AntItem2 = new System.Windows.Forms.ComboBox(); + this.label7 = new System.Windows.Forms.Label(); + this.label3 = new System.Windows.Forms.Label(); + this.AntLabel1 = new System.Windows.Forms.TextBox(); + this.AntItem1 = new System.Windows.Forms.ComboBox(); + this.tabPage3 = new System.Windows.Forms.TabPage(); + this.groupBox10 = new System.Windows.Forms.GroupBox(); + this.SortTitle = new System.Windows.Forms.CheckBox(); + this.groupBox9 = new System.Windows.Forms.GroupBox(); + this.radioButton2 = new System.Windows.Forms.CheckBox(); + this.radioButton1 = new System.Windows.Forms.CheckBox(); + this.DVDPTagField = new System.Windows.Forms.ComboBox(); + this.ButQuit = new System.Windows.Forms.Button(); this.ButDelet = new System.Windows.Forms.Button(); + this.ButSave = new System.Windows.Forms.Button(); this.Config_Dflt = new System.Windows.Forms.CheckBox(); - this.Dwp = new System.Windows.Forms.TextBox(); - this.Rpt_Dwp = new System.Windows.Forms.TextBox(); - this.label15 = new System.Windows.Forms.Label(); - this.label16 = new System.Windows.Forms.Label(); - this.groupBox1.SuspendLayout(); - this.groupBox2.SuspendLayout(); - this.groupBox3.SuspendLayout(); - this.groupBox4.SuspendLayout(); + this.General.SuspendLayout(); + this.tabPage1.SuspendLayout(); + this.groupBox11.SuspendLayout(); + this.groupBox7.SuspendLayout(); this.groupBox5.SuspendLayout(); + this.tabPage2.SuspendLayout(); this.groupBox6.SuspendLayout(); - this.groupBox7.SuspendLayout(); + this.groupBox4.SuspendLayout(); + this.groupBox2.SuspendLayout(); this.groupBox8.SuspendLayout(); + this.groupBox3.SuspendLayout(); + this.groupBox1.SuspendLayout(); + this.tabPage3.SuspendLayout(); + this.groupBox10.SuspendLayout(); + this.groupBox9.SuspendLayout(); this.SuspendLayout(); // - // label1 + // label10 // - this.label1.AutoSize = true; - this.label1.Location = new System.Drawing.Point(7, 22); - this.label1.Name = "label1"; - this.label1.Size = new System.Drawing.Size(93, 13); - this.label1.TabIndex = 0; - this.label1.Text = "Catalog File (XML)"; + this.label10.AutoSize = true; + this.label10.Location = new System.Drawing.Point(676, 42); + this.label10.Name = "label10"; + this.label10.Size = new System.Drawing.Size(69, 13); + this.label10.TabIndex = 34; + this.label10.Text = "Version 4.2.5"; // - // MesFilmsCat + // textBox1 // - this.MesFilmsCat.Location = new System.Drawing.Point(157, 19); - this.MesFilmsCat.Name = "MesFilmsCat"; - this.MesFilmsCat.Size = new System.Drawing.Size(268, 20); - this.MesFilmsCat.TabIndex = 1; - this.MesFilmsCat.Enter += new System.EventHandler(this.Config_Name_Control); + this.textBox1.Location = new System.Drawing.Point(645, 14); + this.textBox1.Name = "textBox1"; + this.textBox1.Size = new System.Drawing.Size(98, 20); + this.textBox1.TabIndex = 5; // - // ButCat + // label11 // - this.ButCat.Location = new System.Drawing.Point(431, 16); - this.ButCat.Name = "ButCat"; - this.ButCat.Size = new System.Drawing.Size(32, 23); - this.ButCat.TabIndex = 2; - this.ButCat.Text = "..."; - this.ButCat.UseVisualStyleBackColor = true; - this.ButCat.Enter += new System.EventHandler(this.Config_Name_Control); - this.ButCat.Click += new System.EventHandler(this.ButCat_Click); + this.label11.AutoSize = true; + this.label11.Location = new System.Drawing.Point(516, 17); + this.label11.Name = "label11"; + this.label11.Size = new System.Drawing.Size(123, 13); + this.label11.TabIndex = 36; + this.label11.Text = "MP\'s Menu Plugin Name"; // + // Config_Name + // + this.Config_Name.FormattingEnabled = true; + this.Config_Name.Location = new System.Drawing.Point(126, 15); + this.Config_Name.Name = "Config_Name"; + this.Config_Name.Size = new System.Drawing.Size(202, 21); + this.Config_Name.Sorted = true; + this.Config_Name.TabIndex = 1; + this.Config_Name.Leave += new System.EventHandler(this.Config_Name_SelectedIndexChanged); + this.Config_Name.SelectedIndexChanged += new System.EventHandler(this.Config_Name_SelectedIndexChanged); + // + // label12 + // + this.label12.AutoSize = true; + this.label12.Location = new System.Drawing.Point(20, 19); + this.label12.Name = "label12"; + this.label12.Size = new System.Drawing.Size(100, 13); + this.label12.TabIndex = 38; + this.label12.Text = "Configuration Name"; + // + // General + // + this.General.Controls.Add(this.tabPage1); + this.General.Controls.Add(this.tabPage2); + this.General.Controls.Add(this.tabPage3); + 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.TabIndex = 46; + // + // tabPage1 + // + this.tabPage1.Controls.Add(this.groupBox11); + this.tabPage1.Controls.Add(this.groupBox7); + this.tabPage1.Controls.Add(this.label13); + this.tabPage1.Controls.Add(this.CatalogType); + this.tabPage1.Controls.Add(this.groupBox5); + this.tabPage1.Controls.Add(this.ButImg); + this.tabPage1.Controls.Add(this.MesFilmsImg); + this.tabPage1.Controls.Add(this.label2); + this.tabPage1.Controls.Add(this.ButCat); + this.tabPage1.Controls.Add(this.MesFilmsCat); + this.tabPage1.Controls.Add(this.label1); + 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.TabIndex = 0; + this.tabPage1.Text = "General"; + this.tabPage1.UseVisualStyleBackColor = true; + // + // groupBox11 + // + this.groupBox11.Controls.Add(this.label16); + this.groupBox11.Controls.Add(this.label15); + this.groupBox11.Controls.Add(this.Rpt_Dwp); + this.groupBox11.Controls.Add(this.Dwp); + this.groupBox11.Location = new System.Drawing.Point(503, 208); + this.groupBox11.Name = "groupBox11"; + this.groupBox11.Size = new System.Drawing.Size(229, 76); + this.groupBox11.TabIndex = 75; + this.groupBox11.TabStop = false; + this.groupBox11.Text = "Security"; + // + // label16 + // + this.label16.AutoSize = true; + this.label16.Location = new System.Drawing.Point(6, 46); + this.label16.Name = "label16"; + this.label16.Size = new System.Drawing.Size(91, 13); + this.label16.TabIndex = 72; + this.label16.Text = "Repeat Password"; + // + // label15 + // + this.label15.AutoSize = true; + this.label15.Location = new System.Drawing.Point(44, 25); + this.label15.Name = "label15"; + this.label15.Size = new System.Drawing.Size(53, 13); + this.label15.TabIndex = 71; + this.label15.Text = "Password"; + // + // Rpt_Dwp + // + this.Rpt_Dwp.Location = new System.Drawing.Point(103, 43); + this.Rpt_Dwp.Name = "Rpt_Dwp"; + this.Rpt_Dwp.Size = new System.Drawing.Size(112, 20); + this.Rpt_Dwp.TabIndex = 70; + this.Rpt_Dwp.UseSystemPasswordChar = true; + // + // Dwp + // + this.Dwp.Location = new System.Drawing.Point(103, 21); + this.Dwp.Name = "Dwp"; + this.Dwp.ScrollBars = System.Windows.Forms.ScrollBars.Vertical; + this.Dwp.Size = new System.Drawing.Size(112, 20); + this.Dwp.TabIndex = 69; + this.Dwp.UseSystemPasswordChar = true; + // + // groupBox7 + // + this.groupBox7.Controls.Add(this.AntIdentLabel); + this.groupBox7.Controls.Add(this.butPath); + this.groupBox7.Controls.Add(this.PathStorage); + this.groupBox7.Controls.Add(this.label5); + this.groupBox7.Controls.Add(this.label6); + this.groupBox7.Controls.Add(this.AntStorage); + this.groupBox7.Controls.Add(this.ItemSearchFileName); + this.groupBox7.Controls.Add(this.SearchFileName); + this.groupBox7.Controls.Add(this.label4); + this.groupBox7.Controls.Add(this.AntIdentItem); + this.groupBox7.Location = new System.Drawing.Point(7, 89); + this.groupBox7.Name = "groupBox7"; + this.groupBox7.Size = new System.Drawing.Size(725, 104); + this.groupBox7.TabIndex = 74; + this.groupBox7.TabStop = false; + this.groupBox7.Text = "Play Movie Infos"; + // + // AntIdentLabel + // + this.AntIdentLabel.Location = new System.Drawing.Point(331, 74); + this.AntIdentLabel.Name = "AntIdentLabel"; + this.AntIdentLabel.Size = new System.Drawing.Size(144, 20); + this.AntIdentLabel.TabIndex = 57; + // + // butPath + // + this.butPath.Location = new System.Drawing.Point(443, 44); + this.butPath.Name = "butPath"; + this.butPath.Size = new System.Drawing.Size(32, 23); + this.butPath.TabIndex = 55; + this.butPath.Text = "..."; + this.butPath.UseVisualStyleBackColor = true; + this.butPath.Click += new System.EventHandler(this.butPath_Click); + // + // PathStorage + // + this.PathStorage.Location = new System.Drawing.Point(168, 47); + this.PathStorage.Name = "PathStorage"; + this.PathStorage.Size = new System.Drawing.Size(268, 20); + this.PathStorage.TabIndex = 54; + // + // label5 + // + this.label5.AutoSize = true; + this.label5.Location = new System.Drawing.Point(8, 50); + this.label5.Name = "label5"; + this.label5.Size = new System.Drawing.Size(145, 13); + this.label5.TabIndex = 60; + this.label5.Text = "Paths for Movies File Search "; + // + // label6 + // + this.label6.AutoSize = true; + this.label6.Location = new System.Drawing.Point(7, 21); + this.label6.Name = "label6"; + this.label6.Size = new System.Drawing.Size(144, 13); + this.label6.TabIndex = 59; + this.label6.Text = "Ant Item for Storage File Info"; + // + // AntStorage + // + this.AntStorage.FormattingEnabled = true; + this.AntStorage.Location = new System.Drawing.Point(168, 19); + this.AntStorage.Name = "AntStorage"; + this.AntStorage.Size = new System.Drawing.Size(223, 21); + this.AntStorage.TabIndex = 53; + // + // ItemSearchFileName + // + this.ItemSearchFileName.FormattingEnabled = true; + this.ItemSearchFileName.Items.AddRange(new object[] { + "OriginalTitle", + "TranslatedTitle", + "FormattedTitle"}); + this.ItemSearchFileName.Location = new System.Drawing.Point(599, 19); + this.ItemSearchFileName.Name = "ItemSearchFileName"; + this.ItemSearchFileName.Size = new System.Drawing.Size(112, 21); + this.ItemSearchFileName.TabIndex = 67; + // + // SearchFileName + // + this.SearchFileName.AutoSize = true; + this.SearchFileName.Location = new System.Drawing.Point(449, 22); + this.SearchFileName.Name = "SearchFileName"; + this.SearchFileName.Size = new System.Drawing.Size(144, 17); + this.SearchFileName.TabIndex = 66; + this.SearchFileName.Text = "Search by Movie\'s Name"; + this.SearchFileName.UseVisualStyleBackColor = true; + // + // label4 + // + this.label4.AutoSize = true; + this.label4.Location = new System.Drawing.Point(7, 76); + this.label4.Name = "label4"; + this.label4.Size = new System.Drawing.Size(109, 13); + this.label4.TabIndex = 58; + this.label4.Text = "Ant Identification Item"; + // + // AntIdentItem + // + this.AntIdentItem.FormattingEnabled = true; + this.AntIdentItem.Location = new System.Drawing.Point(168, 73); + this.AntIdentItem.Name = "AntIdentItem"; + this.AntIdentItem.Size = new System.Drawing.Size(157, 21); + this.AntIdentItem.TabIndex = 56; + // + // label13 + // + this.label13.AutoSize = true; + this.label13.Location = new System.Drawing.Point(485, 30); + this.label13.Name = "label13"; + this.label13.Size = new System.Drawing.Size(70, 13); + this.label13.TabIndex = 63; + this.label13.Text = "Catalog Type"; + // + // CatalogType + // + this.CatalogType.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + this.CatalogType.FormattingEnabled = true; + this.CatalogType.Items.AddRange(new object[] { + "Ant Movie Catalog", + "DVD Profiler"}); + this.CatalogType.Location = new System.Drawing.Point(561, 25); + this.CatalogType.Name = "CatalogType"; + this.CatalogType.Size = new System.Drawing.Size(166, 21); + this.CatalogType.TabIndex = 62; + // + // groupBox5 + // + this.groupBox5.Controls.Add(this.label17); + this.groupBox5.Controls.Add(this.TitleDelim); + this.groupBox5.Controls.Add(this.label9); + this.groupBox5.Controls.Add(this.label8); + this.groupBox5.Controls.Add(this.AntTitle2); + this.groupBox5.Controls.Add(this.AntTitle1); + this.groupBox5.Location = new System.Drawing.Point(7, 208); + this.groupBox5.Name = "groupBox5"; + this.groupBox5.Size = new System.Drawing.Size(453, 76); + this.groupBox5.TabIndex = 61; + this.groupBox5.TabStop = false; + this.groupBox5.Text = "Title Order"; + // + // label17 + // + this.label17.AutoSize = true; + this.label17.Location = new System.Drawing.Point(306, 21); + this.label17.Name = "label17"; + this.label17.Size = new System.Drawing.Size(101, 13); + this.label17.TabIndex = 66; + this.label17.Text = "Hierarchy Separator"; + // + // TitleDelim + // + this.TitleDelim.Location = new System.Drawing.Point(413, 17); + this.TitleDelim.MaxLength = 1; + this.TitleDelim.Name = "TitleDelim"; + this.TitleDelim.Size = new System.Drawing.Size(20, 20); + this.TitleDelim.TabIndex = 20; + // + // label9 + // + this.label9.AutoSize = true; + this.label9.Location = new System.Drawing.Point(7, 46); + this.label9.Name = "label9"; + this.label9.Size = new System.Drawing.Size(97, 13); + this.label9.TabIndex = 18; + this.label9.Text = "Ant SecondaryTitle"; + // + // label8 + // + this.label8.AutoSize = true; + this.label8.Location = new System.Drawing.Point(7, 21); + this.label8.Name = "label8"; + this.label8.Size = new System.Drawing.Size(81, 13); + this.label8.TabIndex = 17; + this.label8.Text = "Ant Master Title"; + // + // AntTitle2 + // + this.AntTitle2.FormattingEnabled = true; + this.AntTitle2.Location = new System.Drawing.Point(131, 41); + this.AntTitle2.Name = "AntTitle2"; + this.AntTitle2.Size = new System.Drawing.Size(156, 21); + this.AntTitle2.TabIndex = 11; + // + // AntTitle1 + // + this.AntTitle1.FormattingEnabled = true; + this.AntTitle1.Items.AddRange(new object[] { + "OriginalTitle", + "TranslatedTitle", + "FormattedTitle"}); + this.AntTitle1.Location = new System.Drawing.Point(132, 16); + this.AntTitle1.Name = "AntTitle1"; + this.AntTitle1.Size = new System.Drawing.Size(155, 21); + this.AntTitle1.TabIndex = 10; + // // ButImg // - this.ButImg.Location = new System.Drawing.Point(431, 42); + this.ButImg.Location = new System.Drawing.Point(404, 51); this.ButImg.Name = "ButImg"; this.ButImg.Size = new System.Drawing.Size(32, 23); - this.ButImg.TabIndex = 4; + this.ButImg.TabIndex = 52; this.ButImg.Text = "..."; this.ButImg.UseVisualStyleBackColor = true; - this.ButImg.Enter += new System.EventHandler(this.Config_Name_Control); this.ButImg.Click += new System.EventHandler(this.ButImg_Click); // // MesFilmsImg // - this.MesFilmsImg.Location = new System.Drawing.Point(157, 45); + this.MesFilmsImg.Location = new System.Drawing.Point(164, 53); this.MesFilmsImg.Name = "MesFilmsImg"; - this.MesFilmsImg.Size = new System.Drawing.Size(268, 20); - this.MesFilmsImg.TabIndex = 3; - this.MesFilmsImg.Enter += new System.EventHandler(this.Config_Name_Control); + this.MesFilmsImg.Size = new System.Drawing.Size(234, 20); + this.MesFilmsImg.TabIndex = 50; // // label2 // this.label2.AutoSize = true; - this.label2.Location = new System.Drawing.Point(7, 48); + this.label2.Location = new System.Drawing.Point(14, 56); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(100, 13); - this.label2.TabIndex = 3; + this.label2.TabIndex = 51; this.label2.Text = "Picture Path (IMG) "; // - // ButQuit + // ButCat // - this.ButQuit.Location = new System.Drawing.Point(737, 431); - this.ButQuit.Name = "ButQuit"; - this.ButQuit.Size = new System.Drawing.Size(64, 31); - this.ButQuit.TabIndex = 40; - this.ButQuit.Text = "Quit"; - this.ButQuit.UseVisualStyleBackColor = true; - this.ButQuit.Click += new System.EventHandler(this.ButQuit_Click); + this.ButCat.Location = new System.Drawing.Point(404, 25); + this.ButCat.Name = "ButCat"; + this.ButCat.Size = new System.Drawing.Size(32, 23); + this.ButCat.TabIndex = 49; + this.ButCat.Text = "..."; + this.ButCat.UseVisualStyleBackColor = true; + this.ButCat.Click += new System.EventHandler(this.ButCat_Click); // - // AntIdentItem + // MesFilmsCat // - this.AntIdentItem.FormattingEnabled = true; - this.AntIdentItem.Location = new System.Drawing.Point(156, 126); - this.AntIdentItem.Name = "AntIdentItem"; - this.AntIdentItem.Size = new System.Drawing.Size(157, 21); - this.AntIdentItem.TabIndex = 8; - this.AntIdentItem.Enter += new System.EventHandler(this.Config_Name_Control); + this.MesFilmsCat.Location = new System.Drawing.Point(164, 27); + this.MesFilmsCat.Name = "MesFilmsCat"; + this.MesFilmsCat.Size = new System.Drawing.Size(234, 20); + this.MesFilmsCat.TabIndex = 48; // - // label4 + // label1 // - this.label4.AutoSize = true; - this.label4.Location = new System.Drawing.Point(6, 129); - this.label4.Name = "label4"; - this.label4.Size = new System.Drawing.Size(109, 13); - this.label4.TabIndex = 11; - this.label4.Text = "Ant Identification Item"; + this.label1.AutoSize = true; + this.label1.Location = new System.Drawing.Point(1... [truncated message content] |