From: <fr...@us...> - 2008-08-22 17:50:29
|
Revision: 2072 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=2072&view=rev Author: framug Date: 2008-08-22 17:50:25 +0000 (Fri, 22 Aug 2008) Log Message: ----------- File Explorer V1.1 (Part 1) : Localization Modified Paths: -------------- trunk/plugins/File Explorer/Constants.cs trunk/plugins/File Explorer/Dialogs/GUIDialogOperation.cs trunk/plugins/File Explorer/DrivesView.cs trunk/plugins/File Explorer/ExceptionViewer.cs trunk/plugins/File Explorer/File Explorer.cs trunk/plugins/File Explorer/File Explorer.csproj trunk/plugins/File Explorer/File Explorer.csproj.user trunk/plugins/File Explorer/Properties/AssemblyInfo.cs trunk/plugins/File Explorer/Setup.cs Added Paths: ----------- trunk/plugins/File Explorer/Language/ trunk/plugins/File Explorer/Language/strings_en.xml trunk/plugins/File Explorer/Language/strings_fr.xml trunk/plugins/File Explorer/LocalizeStrings.cs Modified: trunk/plugins/File Explorer/Constants.cs =================================================================== --- trunk/plugins/File Explorer/Constants.cs 2008-08-22 16:50:40 UTC (rev 2071) +++ trunk/plugins/File Explorer/Constants.cs 2008-08-22 17:50:25 UTC (rev 2072) @@ -27,7 +27,153 @@ namespace FileExplorer { - /// <summary> + #region enum + /// <summary> + /// Enumerations of all Localized Messages + /// </summary> + public enum LocalizedMessages + { + //here begin PlugInInfo region + PluginName = 0, + SetupFormName = 1, + Description = 2, + //here begin SetupForm region + valueName1 = 3, + valueName2 = 4, + valueName3 = 5, + valueName4 = 6, + valueName5 = 7, + valueDescription1 = 8, + valueDescription2 = 9, + valueDescription3 = 10, + valueDescription4 = 11, + valueDescription5 = 12, + Apply = 13, + Cancel = 14, + //here begin Exception region + Exception = 15, + Unknown = 16, + Denied = 17, + Compress1 = 18, + Compress2 = 19, + Cantread1 = 20, + Cantread2 = 21, + //here begin Dialog region + CreateAudio = 22, + AddFile = 23, + Path = 24, + Compress = 25, + CompressFile = 26, + Copy = 27, + File = 28, + To = 29, + Decrypt = 30, + Delete = 31, + Encrypt = 32, + Hide = 33, + Move = 34, + SetReadOnly = 35, + RemoveReadOnly = 36, + Uncompress = 37, + Unhide = 38, + CreateVideo = 39, + AddAudio = 40, + ReadFile = 41, + AddVideo = 42, + //here begin Skin region + MenuLeft = 43, + MenuRight = 44, + //here begin View region + Folder = 45, + CD = 46, + HDD = 47, + RamDisk = 48, + Network = 49, + Removeable = 50, + Menu = 51, + SelectDrive = 52, + Rename = 53, + CreateDir = 54, + Encrypt2 = 55, + Compress3 = 56, + HideUnhide = 57, + AddReadOnly = 58, + CreateAudioDir = 59, + CreateVideoDir = 60, + CreateAudioSel = 61, + CreateVideoSel = 62, + AddAudioSel = 63, + AddVideoSel = 64, + SelectAll = 65, + DisableSel = 66, + DisableSelMode = 67, + EnableSelMode = 68, + FilePreview = 69, + NoPreview = 70, + OpenText = 71, + Attributes = 72, + Hidden = 73, + ReadOnly = 74, + SystemFile = 75, + Compressed = 76, + Encrypted = 77, + None = 78, + Created = 79, + Accessed = 80, + Written = 81, + SystemDir = 82, + //here begin Operation region + CopyFile = 83, + From = 84, + CopyDir = 85, + CopyingFile = 86, + TheFile = 87, + AlreadyExist = 88, + Overwrite = 89, + MoveFile = 90, + MoveDir = 91, + MovingFile = 92, + MovingDir = 93, + TheDir = 94, + DeleteDir = 95, + WantDelete = 96, + AfterDelete = 97, + DeleteFile = 98, + Error = 99, + CantRenameDir = 100, + CantRenameFile = 101, + NewFolder = 102, + CantCreateDir = 103, + EncryptDecrypt = 104, + ChangeEncrypt = 105, + AllSubdir = 106, + CurrentFolder = 107, + ChangeCompress = 108, + HideUnhideSelect = 109, + HideSelect = 110, + UnhideSelect = 111, + ChangeHide = 112, + SetRemoveFlags = 113, + SetFlags = 114, + RemoveFlags = 115, + SetRemoveFlag = 116, + ChangeFlag = 117, + //here begin Playlist region + NewAudioPlaylist = 118, + IncludeAudioFiles = 119, + CurrentFolderSubdir = 120, + NoAudioFilesFound = 121, + NewVideoPlaylist = 122, + IncludeVideoFiles = 123, + NoVideoFilesFound = 124, + NoPlaylist = 125, + NoPlaylistDir = 126, + SelectPlaylist = 127 + + } + #endregion + + /// <summary> /// Description of Constants. /// </summary> public static class Constants @@ -38,17 +184,21 @@ /// <summary> /// Name of PlugIn. /// </summary> - public static readonly string NAME = "File Explorer"; +// public static readonly string NAME = "File Explorer"; + public static readonly string NAME = LocalizeStrings.Get((int)LocalizedMessages.PluginName); /// <summary> /// Description of PlugIn. /// </summary> - public static readonly string DESCRIPTION = "File Explorer"; - - /// <summary> +// public static readonly string DESCRIPTION = "File Explorer"; + public static readonly string DESCRIPTION = LocalizeStrings.Get((int)LocalizedMessages.Description); + + public static readonly string SETUPFORMNAME = LocalizeStrings.Get((int)LocalizedMessages.SetupFormName); + + /// <summary> /// Author of PlugIn. /// </summary> - public static readonly string AUTHOR = "Andreas Groß"; + public static readonly string AUTHOR = "Andreas Groß, framug"; } #endregion @@ -67,7 +217,7 @@ } #endregion - #region CotnrolIDs + #region ControlIDs public struct ControlIDs { public static readonly int LISTBOX_LEFT = 3; @@ -79,13 +229,26 @@ public struct SetupForm { public static readonly string[] valueNames = - {"Extensions", "Trashbin", "AllFiles", "SystemFiles", "SystemDirs"}; +// {"Extensions", "Trashbin", "AllFiles", "SystemFiles", "SystemDirs"}; + { + LocalizeStrings.Get((int)LocalizedMessages.valueName1), LocalizeStrings.Get((int)LocalizedMessages.valueName2), + LocalizeStrings.Get((int)LocalizedMessages.valueName3), LocalizeStrings.Get((int)LocalizedMessages.valueName4), + LocalizeStrings.Get((int)LocalizedMessages.valueName5) + }; public static readonly string[] valueDescriptions = - {"Show file extensions", "Copy files to trashcan instead of deleting them", - "Show all files", "Show system files", "Show system directories" }; +// {"Show file extensions", "Copy files to trashcan instead of deleting them", +// "Show all files", "Show system files", "Show system directories" }; + { + LocalizeStrings.Get((int)LocalizedMessages.valueDescription1), LocalizeStrings.Get((int)LocalizedMessages.valueDescription2), + LocalizeStrings.Get((int)LocalizedMessages.valueDescription3), LocalizeStrings.Get((int)LocalizedMessages.valueDescription4), + LocalizeStrings.Get((int)LocalizedMessages.valueDescription5) + }; + public static readonly string APPLY = LocalizeStrings.Get((int)LocalizedMessages.Apply); + public static readonly string CANCEL = LocalizeStrings.Get((int)LocalizedMessages.Cancel); public static readonly bool[] valueStandards = {true, true, false, false, false}; + } #endregion @@ -106,5 +269,154 @@ public static readonly string[] TextPreviewExtensions = {".txt", ".ini", ".inf", ".bat", ".cs", ".cpp", ".xml", ".h", ".hpp", ".bas", ".vb", ".asm"}; } #endregion - } + + #region Exceptions + public struct Exceptions + { + public static readonly string EXCEPTION = LocalizeStrings.Get((int)LocalizedMessages.Exception); + public static readonly string UNKNOWN = LocalizeStrings.Get((int)LocalizedMessages.Unknown); + public static readonly string DENIED = LocalizeStrings.Get((int)LocalizedMessages.Denied); + public static readonly string COMPRESS1 = LocalizeStrings.Get((int)LocalizedMessages.Compress1); + public static readonly string COMPRESS2 = LocalizeStrings.Get((int)LocalizedMessages.Compress2); + public static readonly string CANTREAD1 = LocalizeStrings.Get((int)LocalizedMessages.Cantread1); + public static readonly string CANTREAD2 = LocalizeStrings.Get((int)LocalizedMessages.Cantread2); + } + #endregion + + #region Dialog + public struct Dialog + { + public static readonly string CREATEAUDIO = LocalizeStrings.Get((int)LocalizedMessages.CreateAudio); + public static readonly string ADDFILE = LocalizeStrings.Get((int)LocalizedMessages.AddFile); + public static readonly string PATH = LocalizeStrings.Get((int)LocalizedMessages.Path); + public static readonly string COMPRESS = LocalizeStrings.Get((int)LocalizedMessages.Compress); + public static readonly string COMPRESSFILE = LocalizeStrings.Get((int)LocalizedMessages.CompressFile); + public static readonly string COPY = LocalizeStrings.Get((int)LocalizedMessages.Copy); + public static readonly string FILE = LocalizeStrings.Get((int)LocalizedMessages.File); + public static readonly string TO = LocalizeStrings.Get((int)LocalizedMessages.To); + public static readonly string DECRYPT = LocalizeStrings.Get((int)LocalizedMessages.Decrypt); + public static readonly string DELETE = LocalizeStrings.Get((int)LocalizedMessages.Delete); + public static readonly string ENCRYPT = LocalizeStrings.Get((int)LocalizedMessages.Encrypt); + public static readonly string HIDE = LocalizeStrings.Get((int)LocalizedMessages.Hide); + public static readonly string MOVE = LocalizeStrings.Get((int)LocalizedMessages.Move); + public static readonly string SETREADONLY = LocalizeStrings.Get((int)LocalizedMessages.SetReadOnly); + public static readonly string REMOVEREADONLY = LocalizeStrings.Get((int)LocalizedMessages.RemoveReadOnly); + public static readonly string UNCOMPRESS = LocalizeStrings.Get((int)LocalizedMessages.Uncompress); + public static readonly string UNHIDE = LocalizeStrings.Get((int)LocalizedMessages.Unhide); + public static readonly string CREATEVIDEO = LocalizeStrings.Get((int)LocalizedMessages.CreateVideo); + public static readonly string ADDAUDIO = LocalizeStrings.Get((int)LocalizedMessages.AddAudio); + public static readonly string READFILE = LocalizeStrings.Get((int)LocalizedMessages.ReadFile); + public static readonly string ADDVIDEO = LocalizeStrings.Get((int)LocalizedMessages.AddVideo); + } + #endregion + + #region Skin + public struct Skin + { + public static readonly string MENULEFT = LocalizeStrings.Get((int)LocalizedMessages.MenuLeft); + public static readonly string MENURIGHT = LocalizeStrings.Get((int)LocalizedMessages.MenuRight); + } + #endregion + + #region View + public struct View + { + public static readonly string FOLDER = LocalizeStrings.Get((int)LocalizedMessages.Folder); + public static readonly string CD = LocalizeStrings.Get((int)LocalizedMessages.CD); + public static readonly string HDD = LocalizeStrings.Get((int)LocalizedMessages.HDD); + public static readonly string RAMDISK = LocalizeStrings.Get((int)LocalizedMessages.RamDisk); + public static readonly string NETWORK = LocalizeStrings.Get((int)LocalizedMessages.Network); + public static readonly string REMOVEABLE = LocalizeStrings.Get((int)LocalizedMessages.Removeable); + public static readonly string MENU = LocalizeStrings.Get((int)LocalizedMessages.Menu); + public static readonly string SELECTDRIVE = LocalizeStrings.Get((int)LocalizedMessages.SelectDrive); + public static readonly string RENAME = LocalizeStrings.Get((int)LocalizedMessages.Rename); + public static readonly string CREATEDIR = LocalizeStrings.Get((int)LocalizedMessages.CreateDir); + public static readonly string ENCRYPT2 = LocalizeStrings.Get((int)LocalizedMessages.Encrypt2); + public static readonly string COMPRESS3 = LocalizeStrings.Get((int)LocalizedMessages.Compress3); + public static readonly string HIDEUNHIDE = LocalizeStrings.Get((int)LocalizedMessages.HideUnhide); + public static readonly string ADDREADONLY = LocalizeStrings.Get((int)LocalizedMessages.AddReadOnly); + public static readonly string CREATEAUDIODIR = LocalizeStrings.Get((int)LocalizedMessages.CreateAudioDir); + public static readonly string CREATEVIDEODIR = LocalizeStrings.Get((int)LocalizedMessages.CreateVideoDir); + public static readonly string CREATEAUDIOSEL = LocalizeStrings.Get((int)LocalizedMessages.CreateAudioSel); + public static readonly string CREATEVIDEOSEL = LocalizeStrings.Get((int)LocalizedMessages.CreateVideoSel); + public static readonly string ADDAUDIOSEL = LocalizeStrings.Get((int)LocalizedMessages.AddAudioSel); + public static readonly string ADDVIDEOSEL = LocalizeStrings.Get((int)LocalizedMessages.AddVideoSel); + public static readonly string SELECTALL = LocalizeStrings.Get((int)LocalizedMessages.SelectAll); + public static readonly string DISABLESEL = LocalizeStrings.Get((int)LocalizedMessages.DisableSel); + public static readonly string DISABLESELMODE = LocalizeStrings.Get((int)LocalizedMessages.DisableSelMode); + public static readonly string ENABLESELMODE = LocalizeStrings.Get((int)LocalizedMessages.EnableSelMode); + public static readonly string FILEPREVIEW = LocalizeStrings.Get((int)LocalizedMessages.FilePreview); + public static readonly string NOPREVIEW = LocalizeStrings.Get((int)LocalizedMessages.NoPreview); + public static readonly string OPENTEXT = LocalizeStrings.Get((int)LocalizedMessages.OpenText); + public static readonly string ATTRIBUTES = LocalizeStrings.Get((int)LocalizedMessages.Attributes); + public static readonly string HIDDEN = LocalizeStrings.Get((int)LocalizedMessages.Hidden); + public static readonly string READONLY = LocalizeStrings.Get((int)LocalizedMessages.ReadOnly); + public static readonly string SYSTEMFILE = LocalizeStrings.Get((int)LocalizedMessages.SystemFile); + public static readonly string COMPRESSED = LocalizeStrings.Get((int)LocalizedMessages.Compressed); + public static readonly string ENCRYPTED = LocalizeStrings.Get((int)LocalizedMessages.Encrypted); + public static readonly string NONE = LocalizeStrings.Get((int)LocalizedMessages.None); + public static readonly string CREATED = LocalizeStrings.Get((int)LocalizedMessages.Created); + public static readonly string ACCESSED = LocalizeStrings.Get((int)LocalizedMessages.Accessed); + public static readonly string WRITTEN = LocalizeStrings.Get((int)LocalizedMessages.Written); + public static readonly string SYSTEMDIR = LocalizeStrings.Get((int)LocalizedMessages.SystemDir); + } + #endregion + + #region Operation + public struct Operation + { + public static readonly string COPYFILE = LocalizeStrings.Get((int)LocalizedMessages.CopyFile); + public static readonly string FROM = LocalizeStrings.Get((int)LocalizedMessages.From); + public static readonly string COPYDIR = LocalizeStrings.Get((int)LocalizedMessages.CopyDir); + public static readonly string COPYINGFILE = LocalizeStrings.Get((int)LocalizedMessages.CopyingFile); + public static readonly string THEFILE = LocalizeStrings.Get((int)LocalizedMessages.TheFile); + public static readonly string ALREADYEXIST = LocalizeStrings.Get((int)LocalizedMessages.AlreadyExist); + public static readonly string OVERWRITE = LocalizeStrings.Get((int)LocalizedMessages.Overwrite); + public static readonly string MOVEFILE = LocalizeStrings.Get((int)LocalizedMessages.MoveFile); + public static readonly string MOVEDIR = LocalizeStrings.Get((int)LocalizedMessages.MoveDir); + public static readonly string MOVINGFILE = LocalizeStrings.Get((int)LocalizedMessages.MovingFile); + public static readonly string MOVINGDIR = LocalizeStrings.Get((int)LocalizedMessages.MovingDir); + public static readonly string THEDIR = LocalizeStrings.Get((int)LocalizedMessages.TheDir); + public static readonly string DELETEDIR = LocalizeStrings.Get((int)LocalizedMessages.DeleteDir); + public static readonly string WANTDELETE = LocalizeStrings.Get((int)LocalizedMessages.WantDelete); + public static readonly string AFTERDELETE = LocalizeStrings.Get((int)LocalizedMessages.AfterDelete); + public static readonly string DELETEFILE = LocalizeStrings.Get((int)LocalizedMessages.DeleteFile); + public static readonly string ERROR = LocalizeStrings.Get((int)LocalizedMessages.Error); + public static readonly string CANTRENAMEDIR = LocalizeStrings.Get((int)LocalizedMessages.CantRenameDir); + public static readonly string CANTRENAMEFILE = LocalizeStrings.Get((int)LocalizedMessages.CantRenameFile); + public static readonly string NEWFOLDER = LocalizeStrings.Get((int)LocalizedMessages.NewFolder); + public static readonly string CANTCREATEDIR = LocalizeStrings.Get((int)LocalizedMessages.CantCreateDir); + public static readonly string ENCRYPTDECRYPT = LocalizeStrings.Get((int)LocalizedMessages.EncryptDecrypt); + public static readonly string CHANGEENCRYPT = LocalizeStrings.Get((int)LocalizedMessages.ChangeEncrypt); + public static readonly string ALLSUBDIR = LocalizeStrings.Get((int)LocalizedMessages.AllSubdir); + public static readonly string CURRENTFOLDER = LocalizeStrings.Get((int)LocalizedMessages.CurrentFolder); + public static readonly string CHANGECOMPRESS = LocalizeStrings.Get((int)LocalizedMessages.ChangeCompress); + public static readonly string HIDEUNHIDESELECT = LocalizeStrings.Get((int)LocalizedMessages.HideUnhideSelect); + public static readonly string HIDESELECT = LocalizeStrings.Get((int)LocalizedMessages.HideSelect); + public static readonly string UNHIDESELECT = LocalizeStrings.Get((int)LocalizedMessages.UnhideSelect); + public static readonly string CHANGEHIDE = LocalizeStrings.Get((int)LocalizedMessages.ChangeHide); + public static readonly string SETREMOVEFLAGS = LocalizeStrings.Get((int)LocalizedMessages.SetRemoveFlags); + public static readonly string SETFLAGS = LocalizeStrings.Get((int)LocalizedMessages.SetFlags); + public static readonly string REMOVEFLAGS = LocalizeStrings.Get((int)LocalizedMessages.RemoveFlags); + public static readonly string SETREMOVEFLAG = LocalizeStrings.Get((int)LocalizedMessages.SetRemoveFlag); + public static readonly string CHANGEFLAG = LocalizeStrings.Get((int)LocalizedMessages.ChangeFlag); + } + #endregion + + #region Playlist + public struct Playlist + { + public static readonly string NEWAUDIOPLAYLIST = LocalizeStrings.Get((int)LocalizedMessages.NewAudioPlaylist); + public static readonly string INCLUDEAUDIOFILES = LocalizeStrings.Get((int)LocalizedMessages.IncludeAudioFiles); + public static readonly string CURRENTFOLDERSUBDIR = LocalizeStrings.Get((int)LocalizedMessages.CurrentFolderSubdir); + public static readonly string NOAUDIOFILESFOUND = LocalizeStrings.Get((int)LocalizedMessages.NoAudioFilesFound); + public static readonly string NEWVIDEOPLAYLIST = LocalizeStrings.Get((int)LocalizedMessages.NewVideoPlaylist); + public static readonly string INCLUDEVIDEOFILES = LocalizeStrings.Get((int)LocalizedMessages.IncludeVideoFiles); + public static readonly string NOVIDEOFILESFOUND = LocalizeStrings.Get((int)LocalizedMessages.NoVideoFilesFound); + public static readonly string NOPLAYLIST = LocalizeStrings.Get((int)LocalizedMessages.NoPlaylist); + public static readonly string NOPLAYLISTDIR = LocalizeStrings.Get((int)LocalizedMessages.NoPlaylistDir); + public static readonly string SELECTPLAYLIST = LocalizeStrings.Get((int)LocalizedMessages.SelectPlaylist); + } + #endregion + } } Modified: trunk/plugins/File Explorer/Dialogs/GUIDialogOperation.cs =================================================================== --- trunk/plugins/File Explorer/Dialogs/GUIDialogOperation.cs 2008-08-22 16:50:40 UTC (rev 2071) +++ trunk/plugins/File Explorer/Dialogs/GUIDialogOperation.cs 2008-08-22 17:50:25 UTC (rev 2072) @@ -158,80 +158,123 @@ switch (type) { case DialogType.AUDIO_PLAYLIST_CREATE: - lblHeading.Label = "Create Audio Playlist"; - lblText1.Label = "Adding File: "; - lblText2.Label = "Path: "; +// lblHeading.Label = "Create Audio Playlist"; +// lblText1.Label = "Adding File: "; +// lblText2.Label = "Path: "; + lblHeading.Label = Constants.Dialog.CREATEAUDIO; + lblText1.Label = Constants.Dialog.ADDFILE; + lblText2.Label = Constants.Dialog.PATH; break; case DialogType.COMPRESS: - lblHeading.Label = "Compressing"; - lblText1.Label = "Compressing File: "; - lblText2.Label = "Path: "; - break; +// lblHeading.Label = "Compressing"; +// lblText1.Label = "Compressing File: "; +// lblText2.Label = "Path: "; + lblHeading.Label = Constants.Dialog.COMPRESS; + lblText1.Label = Constants.Dialog.COMPRESSFILE; + lblText2.Label = Constants.Dialog.PATH; + break; case DialogType.COPY: - lblHeading.Label = "Copy"; - lblText1.Label = "File: "; - lblText2.Label = "To: "; - break; +// lblHeading.Label = "Copy"; +// lblText1.Label = "File: "; +// lblText2.Label = "To: "; + lblHeading.Label = Constants.Dialog.COPY; + lblText1.Label = Constants.Dialog.FILE; + lblText2.Label = Constants.Dialog.TO; + break; case DialogType.DECRYPT: - lblHeading.Label = "Decrypting"; - lblText1.Label = "File: "; - lblText2.Label = "Path: "; - break; +// lblHeading.Label = "Decrypting"; +// lblText1.Label = "File: "; +// lblText2.Label = "Path: "; + lblHeading.Label = Constants.Dialog.DECRYPT; + lblText1.Label = Constants.Dialog.FILE; + lblText2.Label = Constants.Dialog.PATH; + break; case DialogType.DELETE: - lblHeading.Label = "Delete"; - lblText1.Label = "File: "; - lblText2.Label = "Path: "; - break; +// lblHeading.Label = "Delete"; +// lblText1.Label = "File: "; +// lblText2.Label = "Path: "; + lblHeading.Label = Constants.Dialog.DELETE; + lblText1.Label = Constants.Dialog.FILE; + lblText2.Label = Constants.Dialog.PATH; + break; case DialogType.ENCRYPT: - lblHeading.Label = "Encrypting"; - lblText1.Label = "File: "; - lblText2.Label = "Path: "; - break; +// lblHeading.Label = "Encrypting"; +// lblText1.Label = "File: "; +// lblText2.Label = "Path: "; + lblHeading.Label = Constants.Dialog.ENCRYPT; + lblText1.Label = Constants.Dialog.FILE; + lblText2.Label = Constants.Dialog.PATH; + break; case DialogType.HIDE: - lblHeading.Label = "Hide"; - lblText1.Label = "File: "; - lblText2.Label = "Path: "; - break; +// lblHeading.Label = "Hide"; +// lblText1.Label = "File: "; +// lblText2.Label = "Path: "; + lblHeading.Label = Constants.Dialog.HIDE; + lblText1.Label = Constants.Dialog.FILE; + lblText2.Label = Constants.Dialog.PATH; + break; case DialogType.MOVE: - lblHeading.Label = "Move"; - lblText1.Label = "File: "; - lblText2.Label = "To: "; - break; +// lblHeading.Label = "Move"; +// lblText1.Label = "File: "; +// lblText2.Label = "To: "; + lblHeading.Label = Constants.Dialog.MOVE; + lblText1.Label = Constants.Dialog.FILE; + lblText2.Label = Constants.Dialog.TO; + break; case DialogType.READONLY_FLAG_ADD: - lblHeading.Label = "Set readonly flag"; - lblText1.Label = "File: "; - lblText2.Label = "Path: "; - break; +// lblHeading.Label = "Set readonly flag"; +// lblText1.Label = "File: "; +// lblText2.Label = "Path: "; + lblHeading.Label = Constants.Dialog.SETREADONLY; + lblText1.Label = Constants.Dialog.FILE; + lblText2.Label = Constants.Dialog.PATH; + break; case DialogType.READONLY_FLAG_REMOVE: - lblHeading.Label = "Remove readonly flag"; - lblText1.Label = "File: "; - lblText2.Label = "Path: "; - break; +// lblHeading.Label = "Remove readonly flag"; +// lblText1.Label = "File: "; +// lblText2.Label = "Path: "; + lblHeading.Label = Constants.Dialog.REMOVEREADONLY; + lblText1.Label = Constants.Dialog.FILE; + lblText2.Label = Constants.Dialog.PATH; + break; case DialogType.UNCOMPRESS: - lblHeading.Label = "Uncompressing"; - lblText1.Label = "File: "; - lblText2.Label = "Path: "; - break; +// lblHeading.Label = "Uncompressing"; +// lblText1.Label = "File: "; +// lblText2.Label = "Path: "; + lblHeading.Label = Constants.Dialog.UNCOMPRESS; + lblText1.Label = Constants.Dialog.FILE; + lblText2.Label = Constants.Dialog.PATH; + break; case DialogType.UNHIDE: - lblHeading.Label = "Unhide"; - lblText1.Label = "File: "; - lblText2.Label = "Path: "; - break; +// lblHeading.Label = "Unhide"; +// lblText1.Label = "File: "; +// lblText2.Label = "Path: "; + lblHeading.Label = Constants.Dialog.UNHIDE; + lblText1.Label = Constants.Dialog.FILE; + lblText2.Label = Constants.Dialog.PATH; + break; case DialogType.VIDEO_PLAYLIST_CREATE: - lblHeading.Label = "Create Video Playlist"; - lblText1.Label = "Adding File: "; - lblText2.Label = "Path: "; - break; +// lblHeading.Label = "Create Video Playlist"; +// lblText1.Label = "Adding File: "; +// lblText2.Label = "Path: "; + lblHeading.Label = Constants.Dialog.CREATEVIDEO; + lblText1.Label = Constants.Dialog.ADDFILE; + lblText2.Label = Constants.Dialog.PATH; + break; case DialogType.AUDIO_PLAYLIST_ADD: - lblHeading.Label = "Add to Audio Playlist"; - lblText1.Label = "Reading files . . . "; - lblText2.Label = string.Empty; - break; +// lblHeading.Label = "Add to Audio Playlist"; +// lblText1.Label = "Reading files . . . "; + lblHeading.Label = Constants.Dialog.ADDAUDIO; + lblText1.Label = Constants.Dialog.READFILE; + lblText2.Label = string.Empty; + break; case DialogType.VIDEO_PLAYLIST_ADD: - lblHeading.Label = "Add to Video Playlist"; - lblText1.Label = "Reading files . . . "; - lblText2.Label = string.Empty; - break; +// lblHeading.Label = "Add to Video Playlist"; +// lblText1.Label = "Reading files . . . "; + lblHeading.Label = Constants.Dialog.ADDVIDEO; + lblText1.Label = Constants.Dialog.READFILE; + lblText2.Label = string.Empty; + break; } } @@ -239,8 +282,9 @@ { SuspendThread(); this.file = file; - lblText1.Label = "File: " + file; - ResumeThread(); +// lblText1.Label = "File: " + file; + lblText1.Label = Constants.Dialog.FILE + file; + ResumeThread(); } public void SetToPath(string path) @@ -251,8 +295,9 @@ path = path.Substring(0, 3) + "..\\" + GetFilename(path); } this.to = path; - lblText2.Label = "To: " + path; - ResumeThread(); +// lblText2.Label = "To: " + path; + lblText2.Label = Constants.Dialog.TO + path; + ResumeThread(); } public void SetPath(string path) @@ -262,8 +307,9 @@ { path = path.Substring(0, 3) + "..\\" + GetFilename(path); } - lblText2.Label = "Path: " + path; - ResumeThread(); +// lblText2.Label = "Path: " + path; + lblText2.Label = Constants.Dialog.PATH + path; + ResumeThread(); } /// <summary> Modified: trunk/plugins/File Explorer/DrivesView.cs =================================================================== --- trunk/plugins/File Explorer/DrivesView.cs 2008-08-22 16:50:40 UTC (rev 2071) +++ trunk/plugins/File Explorer/DrivesView.cs 2008-08-22 17:50:25 UTC (rev 2072) @@ -96,10 +96,10 @@ public class DrivesView { #region static members - [DllImport(".\\Plugins\\Windows\\File Explorer\\Compression.dll")] + [DllImport(".\\Plugins\\Windows\\Compression.dll")] private static extern bool CompressFile(string file); - [DllImport(".\\Plugins\\Windows\\File Explorer\\Compression.dll")] + [DllImport(".\\Plugins\\Windows\\Compression.dll")] private static extern bool UncompressFile(string file); [DllImport("kernel32.dll")] @@ -167,24 +167,29 @@ if (drv.Type == Constants.DriveTypes.CD_DVD) { - drv.TypeDescription = "CD/DVD Drive"; - } +// drv.TypeDescription = "CD/DVD Drive"; + drv.TypeDescription = Constants.View.CD; + } else if (drv.Type == Constants.DriveTypes.FIXED) { - drv.TypeDescription = "HDD"; - } +// drv.TypeDescription = "HDD"; + drv.TypeDescription = Constants.View.HDD; + } else if (drv.Type == Constants.DriveTypes.RAMDISK) { - drv.TypeDescription = "RamDisk"; - } +// drv.TypeDescription = "RamDisk"; + drv.TypeDescription = Constants.View.RAMDISK; + } else if (drv.Type == Constants.DriveTypes.REMOTEDISK) { - drv.TypeDescription = "Network Drive"; - } +// drv.TypeDescription = "Network Drive"; + drv.TypeDescription = Constants.View.NETWORK; + } else if (drv.Type == Constants.DriveTypes.REMOVEABLE) { - drv.TypeDescription = "Removeable"; - } +// drv.TypeDescription = "Removeable"; + drv.TypeDescription = Constants.View.REMOVEABLE; + } drives.Add(drv); } @@ -345,8 +350,9 @@ } } - string cf = "Folder: "; - if (currentPath.Length > 50) +// string cf = "Folder: "; + string cf = Constants.View.FOLDER; + if (currentPath.Length > 50) { cf += currentDrive + "..\\" + GetFilename(currentPath); } @@ -392,7 +398,7 @@ { GUIDialogMenu mnu = (GUIDialogMenu)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_DIALOG_MENU); mnu.Reset(); - mnu.SetHeading("Menu"); +/* mnu.SetHeading("Menu"); mnu.Add("Select Drive"); mnu.Add("Copy"); mnu.Add("Move"); @@ -402,34 +408,57 @@ mnu.Add("Encrypt/Decrypt (NTFS only)"); mnu.Add("Compress/Uncompress (NTFS only)"); mnu.Add("Hide/Unhide"); - mnu.Add("Add/Remove readonly flag"); + mnu.Add("Add/Remove readonly flag"); */ + mnu.SetHeading(Constants.View.MENU); + mnu.Add(Constants.View.SELECTDRIVE); + mnu.Add(Constants.Dialog.COPY); // was already defined in Dialog + mnu.Add(Constants.Dialog.MOVE); // was already defined in Dialog + mnu.Add(Constants.Dialog.DELETE); // was already defined in Dialog + mnu.Add(Constants.View.RENAME); + mnu.Add(Constants.View.CREATEDIR); + mnu.Add(Constants.View.ENCRYPT2); + mnu.Add(Constants.View.COMPRESS3); + mnu.Add(Constants.View.HIDEUNHIDE); + mnu.Add(Constants.View.ADDREADONLY); if (selectedList == null) { - mnu.Add("Create Audioplaylist from Directory"); +/* mnu.Add("Create Audioplaylist from Directory"); mnu.Add("Create Videoplaylist from Directory"); mnu.Add("Add to Audioplaylist"); - mnu.Add("Add to Videoplaylist"); - } + mnu.Add("Add to Videoplaylist"); */ + mnu.Add(Constants.View.CREATEAUDIODIR); + mnu.Add(Constants.View.CREATEVIDEODIR); + mnu.Add(Constants.Dialog.ADDAUDIO); // was already defined in Dialog + mnu.Add(Constants.Dialog.ADDVIDEO); // was already defined in Dialog + } else { - mnu.Add("Create Audioplaylist from selected files/directories"); +/* mnu.Add("Create Audioplaylist from selected files/directories"); mnu.Add("Create Videoplaylist from selected files/directories"); mnu.Add("Add selected files/directories to Audioplaylist"); - mnu.Add("Add selected files/directories to Videoplaylist"); - } + mnu.Add("Add selected files/directories to Videoplaylist"); */ + mnu.Add(Constants.View.CREATEAUDIOSEL); + mnu.Add(Constants.View.CREATEVIDEOSEL); + mnu.Add(Constants.View.ADDAUDIOSEL); + mnu.Add(Constants.View.ADDVIDEOSEL); + } - mnu.Add("Select All"); - mnu.Add("Disable selections"); +// mnu.Add("Select All"); +// mnu.Add("Disable selections"); + mnu.Add(Constants.View.SELECTALL); + mnu.Add(Constants.View.DISABLESEL); if (selectionMode) { - mnu.Add("Disable selection mode"); - } +// mnu.Add("Disable selection mode"); + mnu.Add(Constants.View.DISABLESELMODE); + } else { - mnu.Add("Enable selection mode"); - } +// mnu.Add("Enable selection mode"); + mnu.Add(Constants.View.ENABLESELMODE); + } mnu.DoModal(GUIWindowManager.ActiveWindow); @@ -558,7 +587,8 @@ { GUIDialogMenu mnu = (GUIDialogMenu)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_DIALOG_MENU); mnu.Reset(); - mnu.SetHeading("Select drive"); +// mnu.SetHeading("Select drive"); + mnu.SetHeading(Constants.View.SELECTDRIVE); foreach (Drive d in drives) { @@ -597,10 +627,13 @@ if (!item.IsFolder) { - dlg.SetHeading("Copy File \"" + item.Label + "\""); - dlg.SetLine(2, "From: " + item.Path); - dlg.SetLine(3, "To: " + secondView.Path); - dlg.DoModal(GUIWindowManager.ActiveWindow); +// dlg.SetHeading("Copy File \"" + item.Label + "\""); + dlg.SetHeading(Constants.Operation.COPYFILE + "\"" + item.Label + "\""); +// dlg.SetLine(2, "From: " + item.Path); + dlg.SetLine(2, Constants.Operation.FROM + item.Path); +// dlg.SetLine(3, "To: " + secondView.Path); + dlg.SetLine(3, Constants.Dialog.TO + secondView.Path); // already defined in Dialog + dlg.DoModal(GUIWindowManager.ActiveWindow); if (dlg.IsConfirmed) { @@ -610,9 +643,11 @@ } else { - dlg.SetHeading("Copy Directory \"" + item.Label + "\""); - dlg.SetLine(2, "To: " + secondView.Path); - dlg.DoModal(GUIWindowManager.ActiveWindow); +// dlg.SetHeading("Copy Directory \"" + item.Label + "\""); + dlg.SetHeading(Constants.Operation.COPYDIR + "\"" + item.Label + "\""); +// dlg.SetLine(2, "To: " + secondView.Path); + dlg.SetLine(2, Constants.Dialog.TO + secondView.Path); // already defined in Dialog + dlg.DoModal(GUIWindowManager.ActiveWindow); if (dlg.IsConfirmed) { @@ -653,11 +688,15 @@ if (System.IO.File.Exists(dest)) { GUIDialogYesNo dlg = (GUIDialogYesNo)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_DIALOG_YES_NO); - dlg.SetHeading("Copying file"); - dlg.SetLine(1, "The file \"" + GetFilename(src) + "\""); - dlg.SetLine(2, "alread exists!"); - dlg.SetLine(3, "Do you want to overwrite it?"); - dlg.DoModal(GUIWindowManager.ActiveWindow); +// dlg.SetHeading("Copying file"); + dlg.SetHeading(Constants.Operation.COPYINGFILE); +// dlg.SetLine(1, "The file \"" + GetFilename(src) + "\""); + dlg.SetLine(1, Constants.Operation.THEFILE + "\"" + GetFilename(src) + "\""); +// dlg.SetLine(2, "alread exists!"); + dlg.SetLine(2, Constants.Operation.ALREADYEXIST); +// dlg.SetLine(3, "Do you want to overwrite it?"); + dlg.SetLine(3, Constants.Operation.OVERWRITE); + dlg.DoModal(GUIWindowManager.ActiveWindow); if (!dlg.IsConfirmed) { @@ -726,10 +765,13 @@ if (!item.IsFolder) { - dlg.SetHeading("Move File \"" + item.Label + "\""); - dlg.SetLine(2, "From: " + item.Path); - dlg.SetLine(3, "To: " + secondView.Path); - dlg.DoModal(GUIWindowManager.ActiveWindow); +// dlg.SetHeading("Move File \"" + item.Label + "\""); + dlg.SetHeading(Constants.Operation.MOVEFILE + "\"" + item.Label + "\""); + // dlg.SetLine(2, "From: " + item.Path); + dlg.SetLine(2, Constants.Operation.FROM + item.Path); +// dlg.SetLine(3, "To: " + secondView.Path); + dlg.SetLine(3, Constants.Dialog.TO + secondView.Path); // already defined in Dialog + dlg.DoModal(GUIWindowManager.ActiveWindow); if (dlg.IsConfirmed) { @@ -740,9 +782,11 @@ } else { - dlg.SetHeading("Move Directory \"" + item.Label + "\""); - dlg.SetLine(2, "To: " + secondView.Path); - dlg.DoModal(GUIWindowManager.ActiveWindow); +// dlg.SetHeading("Move Directory \"" + item.Label + "\""); + dlg.SetHeading(Constants.Operation.MOVEDIR + "\"" + item.Label + "\""); +// dlg.SetLine(2, "To: " + secondView.Path); + dlg.SetLine(2, Constants.Dialog.TO + secondView.Path); // already defined in Dialog + dlg.DoModal(GUIWindowManager.ActiveWindow); if (dlg.IsConfirmed) { @@ -779,11 +823,15 @@ if (System.IO.File.Exists(dest)) { GUIDialogYesNo dlg = (GUIDialogYesNo)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_DIALOG_YES_NO); - dlg.SetHeading("Moving file"); +/* dlg.SetHeading("Moving file"); dlg.SetLine(1, "The file \"" + GetFilename(src) + "\""); dlg.SetLine(2, "alread exists!"); - dlg.SetLine(3, "Do you want to overwrite it?"); - dlg.DoModal(GUIWindowManager.ActiveWindow); + dlg.SetLine(3, "Do you want to overwrite it?"); */ + dlg.SetHeading(Constants.Operation.MOVINGFILE); + dlg.SetLine(1, Constants.Operation.THEFILE + "\"" + GetFilename(src) + "\""); + dlg.SetLine(2, Constants.Operation.ALREADYEXIST); + dlg.SetLine(3, Constants.Operation.OVERWRITE); + dlg.DoModal(GUIWindowManager.ActiveWindow); if (!dlg.IsConfirmed) { @@ -806,11 +854,15 @@ if (System.IO.Directory.Exists(dest)) { GUIDialogYesNo dlg = (GUIDialogYesNo)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_DIALOG_YES_NO); - dlg.SetHeading("Moving directory"); +/* dlg.SetHeading("Moving directory"); dlg.SetLine(1, "The directory \"" + GetFilename(dest) + "\""); dlg.SetLine(2, "alread exists!"); - dlg.SetLine(3, "Do you want to overwrite it?"); - dlg.DoModal(GUIWindowManager.ActiveWindow); + dlg.SetLine(3, "Do you want to overwrite it?"); */ + dlg.SetHeading(Constants.Operation.MOVINGDIR); + dlg.SetLine(1, Constants.Operation.THEDIR + "\"" + GetFilename(dest) + "\""); + dlg.SetLine(2, Constants.Operation.ALREADYEXIST); + dlg.SetLine(3, Constants.Operation.OVERWRITE); + dlg.DoModal(GUIWindowManager.ActiveWindow); if (!dlg.IsConfirmed) { @@ -872,10 +924,13 @@ if (item.IsFolder) { GUIDialogYesNo dlg = (GUIDialogYesNo)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_DIALOG_YES_NO); - dlg.SetHeading("Delete directory"); +/* dlg.SetHeading("Delete directory"); dlg.SetLine(1, "Do you really want to delete"); - dlg.SetLine(2, "the directory \"" + item.Label + "\"?"); - dlg.SetLine(3, " "); + dlg.SetLine(2, "the directory \"" + item.Label + "\"?"); */ + dlg.SetHeading(Constants.Operation.DELETEDIR); + dlg.SetLine(1, Constants.Operation.WANTDELETE); + dlg.SetLine(2, Constants.Operation.THEDIR + "\"" + item.Label + "\"?"); + dlg.SetLine(3, " "); dlg.DoModal(GUIWindowManager.ActiveWindow); bool b = dlg.IsConfirmed; @@ -883,11 +938,15 @@ if ((b) && (!this.DeleteFilesToTrashcan)) { dlg = (GUIDialogYesNo)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_DIALOG_YES_NO); - dlg.SetHeading("Delete directory"); +/* dlg.SetHeading("Delete directory"); dlg.SetLine(1, "Do you really want to delete"); dlg.SetLine(2, "the directory \"" + item.Label + "\"?"); - dlg.SetLine(3, "After deleting the directory CANNOT BE RESTORED!"); - dlg.DoModal(GUIWindowManager.ActiveWindow); + dlg.SetLine(3, "After deleting the directory CANNOT BE RESTORED!"); */ + dlg.SetHeading(Constants.Operation.DELETEDIR); + dlg.SetLine(1, Constants.Operation.WANTDELETE); + dlg.SetLine(2, Constants.Operation.THEDIR + "\"" + item.Label + "\"?"); + dlg.SetLine(3, Constants.Operation.AFTERDELETE); + dlg.DoModal(GUIWindowManager.ActiveWindow); b = dlg.IsConfirmed; } @@ -904,10 +963,13 @@ else { GUIDialogYesNo dlg = (GUIDialogYesNo)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_DIALOG_YES_NO); - dlg.SetHeading("Delete file"); +/* dlg.SetHeading("Delete file"); dlg.SetLine(1, "Do you really want to delete"); - dlg.SetLine(2, "the file \"" + item.Label + "\"?"); - dlg.SetLine(3, " "); + dlg.SetLine(2, "the file \"" + item.Label + "\"?"); */ + dlg.SetHeading(Constants.Operation.DELETEFILE); + dlg.SetLine(1, Constants.Operation.WANTDELETE); + dlg.SetLine(2, Constants.Operation.THEFILE + "\"" + item.Label + "\"?"); + dlg.SetLine(3, " "); dlg.DoModal(GUIWindowManager.ActiveWindow); bool b = dlg.IsConfirmed; @@ -915,11 +977,15 @@ if ((b) && (!this.DeleteFilesToTrashcan)) { dlg = (GUIDialogYesNo)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_DIALOG_YES_NO); - dlg.SetHeading("Delete file"); +/* dlg.SetHeading("Delete file"); dlg.SetLine(1, "Do you really want to delete"); dlg.SetLine(2, "the file \"" + item.Label + "\"?"); - dlg.SetLine(3, "After deleting the file CANNOT BE RESTORED!"); - dlg.DoModal(GUIWindowManager.ActiveWindow); + dlg.SetLine(3, "After deleting the file CANNOT BE RESTORED!"); */ + dlg.SetHeading(Constants.Operation.DELETEFILE); + dlg.SetLine(1, Constants.Operation.WANTDELETE); + dlg.SetLine(2, Constants.Operation.THEFILE + "\"" + item.Label + "\"?"); + dlg.SetLine(3, Constants.Operation.AFTERDELETE); + dlg.DoModal(GUIWindowManager.ActiveWindow); b = dlg.IsConfirmed; } @@ -1056,9 +1122,11 @@ catch (Exception) { GUIDialogOK dlg = (GUIDialogOK)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_DIALOG_OK); - dlg.SetHeading("Error"); - dlg.SetLine(2, "Cannot rename directory \"" + item.Label + "\"!"); - dlg.DoModal(GUIWindowManager.ActiveWindow); +// dlg.SetHeading("Error"); +// dlg.SetLine(2, "Cannot rename directory \"" + item.Label + "\"!"); + dlg.SetHeading(Constants.Operation.ERROR); + dlg.SetLine(2, Constants.Operation.CANTRENAMEDIR + "\"" + item.Label + "\"!"); + dlg.DoModal(GUIWindowManager.ActiveWindow); } Update(); @@ -1078,9 +1146,11 @@ catch (Exception) { GUIDialogOK dlg = (GUIDialogOK)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_DIALOG_OK); - dlg.SetHeading("Error"); - dlg.SetLine(2, "Cannot rename file \"" + item.Label + "\"!"); - dlg.DoModal(GUIWindowManager.ActiveWindow); +// dlg.SetHeading("Error"); +// dlg.SetLine(2, "Cannot rename file \"" + item.Label + "\"!"); + dlg.SetHeading(Constants.Operation.ERROR); + dlg.SetLine(2, Constants.Operation.CANTRENAMEFILE + "\"" + item.Label + "\"!"); + dlg.DoModal(GUIWindowManager.ActiveWindow); } Update(); @@ -1097,8 +1167,9 @@ { VirtualKeyboard keyboard = (VirtualKeyboard)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_VIRTUAL_KEYBOARD); keyboard.Reset(); - keyboard.Text = "New Folder"; - keyboard.DoModal(GUIWindowManager.ActiveWindow); +// keyboard.Text = "New Folder"; + keyboard.Text = Constants.Operation.NEWFOLDER; + keyboard.DoModal(GUIWindowManager.ActiveWindow); if (keyboard.IsConfirmed) { @@ -1110,9 +1181,11 @@ catch (Exception) { GUIDialogOK dlg = (GUIDialogOK)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_DIALOG_OK); - dlg.SetHeading("Error"); - dlg.SetLine(2, "Cannot create the directory \"" + keyboard.Text + "\"!"); - dlg.DoModal(GUIWindowManager.ActiveWindow); +// dlg.SetHeading("Error"); +// dlg.SetLine(2, "Cannot create the directory \"" + keyboard.Text + "\"!"); + dlg.SetHeading(Constants.Operation.ERROR); + dlg.SetLine(2, Constants.Operation.CANTCREATEDIR + "\"" + keyboard.Text + "\"!"); + dlg.DoModal(GUIWindowManager.ActiveWindow); } } } @@ -1245,11 +1318,15 @@ if (info.Path.Name.Equals(item.Label)) { GUIDialogYesNo dlg = (GUIDialogYesNo)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_DIALOG_YES_NO); - dlg.SetHeading("Encrypton/Decryption"); +/* dlg.SetHeading("Encrypton/Decryption"); dlg.SetLine(1, "Do you wish to change the encryption status"); dlg.SetLine(2, "for all subdirectories and files in current"); - dlg.SetLine(3, "folder?"); - dlg.DoModal(GUIWindowManager.ActiveWindow); + dlg.SetLine(3, "folder?"); */ + dlg.SetHeading(Constants.Operation.ENCRYPTDECRYPT); + dlg.SetLine(1, Constants.Operation.CHANGEENCRYPT); + dlg.SetLine(2, Constants.Operation.ALLSUBDIR); + dlg.SetLine(3, Constants.Operation.CURRENTFOLDER); + dlg.DoModal(GUIWindowManager.ActiveWindow); if (dlg.IsConfirmed) { @@ -1374,8 +1451,9 @@ if (!b) { - ExceptionViewer.ShowDialog("You cannot compress a file or directory", "on an non NTFS drive."); - return; +// ExceptionViewer.ShowDialog("You cannot compress a file or directory", "on an non NTFS drive."); + ExceptionViewer.ShowDialog(Constants.Exceptions.COMPRESS1, Constants.Exceptions.COMPRESS2); + return; } Update(); @@ -1393,11 +1471,15 @@ if (info.Path.Name.Equals(item.Label)) { GUIDialogYesNo dlg = (GUIDialogYesNo)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_DIALOG_YES_NO); - dlg.SetHeading("Compress/Uncompress"); +/* dlg.SetHeading("Compress/Uncompress"); dlg.SetLine(1, "Do you wish to change the compression status"); dlg.SetLine(2, "for all subdirectories and files in current"); - dlg.SetLine(3, "folder?"); - dlg.DoModal(GUIWindowManager.ActiveWindow); + dlg.SetLine(3, "folder?"); */ + dlg.SetHeading(Constants.View.COMPRESS3); + dlg.SetLine(1, Constants.Operation.CHANGECOMPRESS); + dlg.SetLine(2, Constants.Operation.ALLSUBDIR); + dlg.SetLine(3, Constants.Operation.CURRENTFOLDER); + dlg.DoModal(GUIWindowManager.ActiveWindow); if (dlg.IsConfirmed) { @@ -1456,11 +1538,15 @@ { GUIDialogMenu mnu = (GUIDialogMenu)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_DIALOG_MENU); mnu.Reset(); - mnu.SetHeading("Hide/Unhide selected files/directories"); +/* mnu.SetHeading("Hide/Unhide selected files/directories"); mnu.Add("Hide selected files"); mnu.Add("Unhide selected files"); - mnu.Add("Cancel"); - mnu.DoModal(winId); + mnu.Add("Cancel"); */ + mnu.SetHeading(Constants.Operation.HIDEUNHIDESELECT); + mnu.Add(Constants.Operation.HIDESELECT); + mnu.Add(Constants.Operation.UNHIDESELECT); + mnu.Add(Constants.SetupForm.CANCEL); + mnu.DoModal(winId); bool hide; int type; @@ -1528,11 +1614,15 @@ if (info.Path.Name.Equals(item.Label)) { GUIDialogYesNo dlg = (GUIDialogYesNo)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_DIALOG_YES_NO); - dlg.SetHeading("Hide/Unhide"); +/* dlg.SetHeading("Hide/Unhide"); dlg.SetLine(1, "Do you wish to change the hide status"); dlg.SetLine(2, "for all subdirectories and files in current"); - dlg.SetLine(3, "folder?"); - dlg.DoModal(GUIWindowManager.ActiveWindow); + dlg.SetLine(3, "folder?"); */ + dlg.SetHeading(Constants.View.HIDEUNHIDE); + dlg.SetLine(1, Constants.Operation.CHANGEHIDE); + dlg.SetLine(2, Constants.Operation.ALLSUBDIR); + dlg.SetLine(3, Constants.Operation.CURRENTFOLDER); + dlg.DoModal(GUIWindowManager.ActiveWindow); if (dlg.IsConfirmed) { @@ -1602,11 +1692,15 @@ { GUIDialogMenu mnu = (GUIDialogMenu)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_DIALOG_MENU); mnu.Reset(); - mnu.SetHeading("Set/Remove readonly flags from selected files/directories"); +/* mnu.SetHeading("Set/Remove readonly flags from selected files/directories"); mnu.Add("Set readonly flags"); mnu.Add("Remove readonly flags"); - mnu.Add("Cancel"); - mnu.DoModal(winId); + mnu.Add("Cancel"); */ + mnu.SetHeading(Constants.Operation.SETREMOVEFLAGS); + mnu.Add(Constants.Operation.SETFLAGS); + mnu.Add(Constants.Operation.REMOVEFLAGS); + mnu.Add(Constants.SetupForm.CANCEL); + mnu.DoModal(winId); bool readOnly; int type; @@ -1674,11 +1768,15 @@ if (info.Path.Name.Equals(item.Label)) { GUIDialogYesNo dlg = (GUIDialogYesNo)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_DIALOG_YES_NO); - dlg.SetHeading("Set/Remove readonly flag"); +/* dlg.SetHeading("Set/Remove readonly flag"); dlg.SetLine(1, "Do you wish to change the readonly flag"); dlg.SetLine(2, "for all subdirectories and files in current"); - dlg.SetLine(3, "folder?"); - dlg.DoModal(GUIWindowManager.ActiveWindow); + dlg.SetLine(3, "folder?"); */ + dlg.SetHeading(Constants.Operation.SETREMOVEFLAG); + dlg.SetLine(1, Constants.Operation.CHANGEFLAG); + dlg.SetLine(2, Constants.Operation.ALLSUBDIR); + dlg.SetLine(3, Constants.Operation.CURRENTFOLDER); + dlg.DoModal(GUIWindowManager.ActiveWindow); if (dlg.IsConfirmed) { @@ -1742,18 +1840,22 @@ { VirtualKeyboard keyboard = (VirtualKeyboard)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_VIRTUAL_KEYBOARD); keyboard.Reset(); - keyboard.Text = "New Audio Playlist"; - keyboard.DoModal(GUIWindowManager.ActiveWindow); +// keyboard.Text = "New Audio Playlist"; + keyboard.Text = Constants.Playlist.NEWAUDIOPLAYLIST; + keyboard.DoModal(GUIWindowManager.ActiveWindow); if (keyboard.IsConfirmed) { GUIListItem item = GUIControl.GetSelectedListItem(winId, lstId); GUIDialogYesNo dlg = (GUIDialogYesNo)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_DIALOG_YES_NO); - dlg.SetHeading("Create Audio Playlist"); +/* dlg.SetHeading("Create Audio Playlist"); dlg.SetLine(1, "Would you like to include all audio files of"); - dlg.SetLine(2, "the current folder's subdirectories?"); - if (item.IsFolder) + dlg.SetLine(2, "the current folder's subdirectories?"); */ + dlg.SetHeading(Constants.Dialog.CREATEAUDIO); + dlg.SetLine(1, Constants.Playlist.INCLUDEAUDIOFILES); + dlg.SetLine(2, Constants.Playlist.CURRENTFOLDERSUBDIR); + if (item.IsFolder) { dlg.SetLine(3, "(" + currentDrive + "..\\" + item.Label + ")"); } @@ -1787,15 +1889,18 @@ { /*ArrayList*/ lstFiles = new ArrayList(); //dlgOp.SetCurrentFile(GetFilename("Reading files . . .")); - dlgOp.SetText("Reading files . . ."); - ReadDirectories(path, subfolders, Utils.AudioExtensions/*, lstFiles*/); +// dlgOp.SetText("Reading files . . ."); + dlgOp.SetText(Constants.Dialog.READFILE); + ReadDirectories(path, subfolders, Utils.AudioExtensions/*, lstFiles*/); if (lstFiles.Count == 0) { GUIDialogOK dlg = (GUIDialogOK)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_DIALOG_OK); - dlg.SetHeading("Create Audio Playlist"); - dlg.SetLine(1, "No audio files found!"); - dlg.DoModal(GUIWindowManager.ActiveWindow); +/* dlg.SetHeading("Create Audio Playlist"); + dlg.SetLine(1, "No audio files found!"); */ + dlg.SetHeading(Constants.Dialog.CREATEAUDIO); + dlg.SetLine(1, Constants.Playlist.NOAUDIOFILESFOUND); + dlg.DoModal(GUIWindowManager.ActiveWindow); } else { @@ -1821,15 +1926,17 @@ { VirtualKeyboard keyboard = (VirtualKeyboard)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_VIRTUAL_KEYBOARD); keyboard.Reset(); - keyboard.Text = "New Audio Playlist"; - keyboard.DoModal(GUIWindowManager.ActiveWindow); +// keyboard.Text = "New Audio Playlist"; + keyboard.Text = Constants.Playlist.NEWAUDIOPLAYLIST; + keyboard.DoModal(GUIWindowManager.ActiveWindow); if (!keyboard.IsConfirmed) return; lstFiles = new ArrayList(); ShowDialogOperation(GUIDialogOperation.DialogType.AUDIO_PLAYLIST_CREATE); - dlgOp.SetText("Reading files . . ."); +// dlgOp.SetText("Reading files . . ."); + dlgOp.SetText(Constants.Dialog.READFILE); foreach (Info info in selectedList) { @@ -1855,9 +1962,11 @@ if (lstFiles.Count == 0) { GUIDialogOK dlg = (GUIDialogOK)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_DIALOG_OK); - dlg.SetHeading("Create Audio Playlist"); - dlg.SetLine(1, "No audio files found!"); - dlg.DoModal(GUIWindowManager.ActiveWindow); +/* dlg.SetHeading("Create Audio Playlist"); + dlg.SetLine(1, "No audio files found!"); */ + dlg.SetHeading(Constants.Dialog.CREATEAUDIO); + dlg.SetLine(1, Constants.Playlist.NOAUDIOFILESFOUND); + dlg.DoModal(GUIWindowManager.ActiveWindow); } else { @@ -1881,18 +1990,22 @@ { VirtualKeyboard keyboard = (VirtualKeyboard)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_VIRTUAL_KEYBOARD); keyboard.Reset(); - keyboard.Text = "New Video Playlist"; - keyboard.DoModal(GUIWindowManager.ActiveWindow); +// keyboard.Text = "New Video Playlist"; + keyboard.Text = Constants.Playlist.NEWVIDEOPLAYLIST; + keyboard.DoModal(GUIWindowManager.ActiveWindow); if (keyboard.IsConfirmed) { GUIListItem item = GUIControl.GetSelectedListItem(winId, lstId); GUIDialogYesNo dlg = (GUIDialogYesNo)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_DIALOG_YES_NO); - dlg.SetHeading("Create Video Playlist"); +/* dlg.SetHeading("Create Video Playlist"); dlg.SetLine(1, "Would you like to include all video files of"); - dlg.SetLine(2, "the current folder's subdirectories?"); - if (item.IsFolder) + dlg.SetLine(2, "the current folder's subdirectories?"); */ + dlg.SetHeading(Constants.Dialog.CREATEVIDEO); + dlg.SetLine(1, Constants.Playlist.INCLUDEVIDEOFILES); + dlg.SetLine(2, Constants.Playlist.CURRENTFOLDERSUBDIR); + if (item.IsFolder) { dlg.SetLine(3, "(" + currentDrive + "..\\" + item.Label + ")"); } @@ -1926,15 +2039,18 @@ { /*ArrayList*/ lstFiles = new ArrayList(); //dlgOp.SetCurrentFile("Reading files . . ."); - dlgOp.SetText("Reading files . . ."); - ReadDirectories(path, subfolders, Utils.VideoExtensions/*, lstFiles*/); +// dlgOp.SetText("Reading files . . ."); + dlgOp.SetText(Constants.Dialog.READFILE); + ReadDirectories(path, subfolders, Utils.VideoExtensions/*, lstFiles*/); if (lstFiles.Count == 0) { GUIDialogOK dlg = (GUIDialogOK)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_DIALOG_OK); - dlg.SetHeading("Create Video Playlist"); - dlg.SetLine(1, "No video files found!"); - dlg.DoModal(GUIWindowManager.ActiveWindow); +/* dlg.SetHeading("Create Video Playlist"); + dlg.SetLine(1, "N... [truncated message content] |
From: <fr...@us...> - 2009-10-13 16:58:41
|
Revision: 3125 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=3125&view=rev Author: framug Date: 2009-10-13 16:58:30 +0000 (Tue, 13 Oct 2009) Log Message: ----------- File Explorer V1.1 (Part 2) : - Fix Localization. - Add DE language. - Add B3, B3W and Xface skins. - Add setup icons. Modified Paths: -------------- trunk/plugins/File Explorer/Constants.cs trunk/plugins/File Explorer/File Explorer.csproj trunk/plugins/File Explorer/File Explorer.sln trunk/plugins/File Explorer/LocalizeStrings.cs trunk/plugins/File Explorer/Preview/TextPreview.cs trunk/plugins/File Explorer/Properties/AssemblyInfo.cs Added Paths: ----------- trunk/plugins/File Explorer/Language/strings_de.xml trunk/plugins/File Explorer/Skin/Blue3/ trunk/plugins/File Explorer/Skin/Blue3/File Explorer_dialog.xml trunk/plugins/File Explorer/Skin/Blue3/File Explorer_main.xml trunk/plugins/File Explorer/Skin/Blue3/File Explorer_modulepreview.xml trunk/plugins/File Explorer/Skin/Blue3/File Explorer_musicpreview.xml trunk/plugins/File Explorer/Skin/Blue3/File Explorer_textpreview.xml trunk/plugins/File Explorer/Skin/Blue3/Media/ trunk/plugins/File Explorer/Skin/Blue3wide/ trunk/plugins/File Explorer/Skin/Blue3wide/File Explorer_dialog.xml trunk/plugins/File Explorer/Skin/Blue3wide/File Explorer_main.xml trunk/plugins/File Explorer/Skin/Blue3wide/File Explorer_modulepreview.xml trunk/plugins/File Explorer/Skin/Blue3wide/File Explorer_musicpreview.xml trunk/plugins/File Explorer/Skin/Blue3wide/File Explorer_textpreview.xml trunk/plugins/File Explorer/Skin/Blue3wide/Media/ trunk/plugins/File Explorer/Skin/Xface/ trunk/plugins/File Explorer/Skin/Xface/File Explorer_dialog.xml trunk/plugins/File Explorer/Skin/Xface/File Explorer_main.xml trunk/plugins/File Explorer/Skin/Xface/File Explorer_modulepreview.xml trunk/plugins/File Explorer/Skin/Xface/File Explorer_musicpreview.xml trunk/plugins/File Explorer/Skin/Xface/File Explorer_textpreview.xml trunk/plugins/File Explorer/Skin/Xface/Media/ trunk/plugins/File Explorer/Skin/Xface/Media/buttonNF_file explorer.png trunk/plugins/File Explorer/Skin/Xface/Media/button_file explorer.png trunk/plugins/File Explorer/Skin/Xface/Media/hover_file explorer.png trunk/plugins/File Explorer/Skin/Xface/common.window.file_explorer.xml trunk/plugins/File Explorer/file_explorer.png trunk/plugins/File Explorer/file_explorerDisabled.png Modified: trunk/plugins/File Explorer/Constants.cs =================================================================== --- trunk/plugins/File Explorer/Constants.cs 2009-10-13 09:25:18 UTC (rev 3124) +++ trunk/plugins/File Explorer/Constants.cs 2009-10-13 16:58:30 UTC (rev 3125) @@ -198,7 +198,7 @@ /// <summary> /// Author of PlugIn. /// </summary> - public static readonly string AUTHOR = "Andreas Groß, framug"; + public static readonly string AUTHOR = "Andreas Groß, framug, -ltb- (gfx)"; } #endregion Modified: trunk/plugins/File Explorer/File Explorer.csproj =================================================================== --- trunk/plugins/File Explorer/File Explorer.csproj 2009-10-13 09:25:18 UTC (rev 3124) +++ trunk/plugins/File Explorer/File Explorer.csproj 2009-10-13 16:58:30 UTC (rev 3125) @@ -1,4 +1,4 @@ -<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> +<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="3.5"> <PropertyGroup> <OutputType>Library</OutputType> <RootNamespace>FileExplorer</RootNamespace> @@ -17,6 +17,11 @@ <TreatWarningsAsErrors>false</TreatWarningsAsErrors> <StartAction>Program</StartAction> <StartProgram>C:\Programme\Team MediaPortal\MediaPortal\MediaPortal.exe</StartProgram> + <FileUpgradeFlags> + </FileUpgradeFlags> + <OldToolsVersion>2.0</OldToolsVersion> + <UpgradeBackupLocation> + </UpgradeBackupLocation> </PropertyGroup> <PropertyGroup Condition=" '$(Configuration)' == 'Debug' "> <OutputPath>bin\Debug\</OutputPath> @@ -35,14 +40,14 @@ <CheckForOverflowUnderflow>False</CheckForOverflowUnderflow> </PropertyGroup> <ItemGroup> - <Reference Include="Core, Version=1.0.2590.13808, Culture=neutral, processorArchitecture=MSIL"> + <Reference Include="Core, Version=1.0.4.34667, Culture=neutral, processorArchitecture=x86"> <SpecificVersion>False</SpecificVersion> - <HintPath>..\..\MediaPortal\Core\bin\Release\Core.dll</HintPath> + <HintPath>..\..\mediaportal\xbmc\bin\Release\Core.dll</HintPath> <Private>False</Private> </Reference> - <Reference Include="Dialogs, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL"> + <Reference Include="Dialogs, Version=1.0.4.34668, Culture=neutral, processorArchitecture=x86"> <SpecificVersion>False</SpecificVersion> - <HintPath>..\..\MediaPortal\Dialogs\bin\Release\Dialogs.dll</HintPath> + <HintPath>..\..\mediaportal\xbmc\bin\Release\plugins\Windows\Dialogs.dll</HintPath> <Private>False</Private> </Reference> <Reference Include="System" /> @@ -54,9 +59,9 @@ <Private>False</Private> </Reference> <Reference Include="Microsoft.VisualBasic" /> - <Reference Include="Utils, Version=1.0.2590.13806, Culture=neutral, processorArchitecture=MSIL"> + <Reference Include="Utils, Version=2.2.7.34666, Culture=neutral, processorArchitecture=x86"> <SpecificVersion>False</SpecificVersion> - <HintPath>..\..\MediaPortal\Utils\bin\Release\Utils.dll</HintPath> + <HintPath>..\..\mediaportal\xbmc\bin\Release\Utils.dll</HintPath> <Private>False</Private> </Reference> </ItemGroup> @@ -82,14 +87,40 @@ <Compile Include="XmlConfig.cs" /> </ItemGroup> <ItemGroup> + <EmbeddedResource Include="file_explorer.png" /> + <EmbeddedResource Include="file_explorerDisabled.png" /> + <Content Include="Language\strings_de.xml" /> <Content Include="Language\strings_en.xml" /> <Content Include="Language\strings_fr.xml" /> - <Content Include="Skin\BlueTwo\File Explorer_dialog.xml" /> - <Content Include="Skin\BlueTwo\File Explorer_main.xml" /> - <Content Include="Skin\BlueTwo\File Explorer_modulepreview.xml" /> - <Content Include="Skin\BlueTwo\File Explorer_musicpreview.xml" /> - <Content Include="Skin\BlueTwo\File Explorer_textpreview.xml" /> - <Content Include="Skin\BlueTwo\Media\hover_File Explorer.png" /> + <Content Include="Skin\Blue3wide\File Explorer_dialog.xml" /> + <Content Include="Skin\Blue3wide\File Explorer_main.xml" /> + <Content Include="Skin\Blue3wide\File Explorer_modulepreview.xml" /> + <Content Include="Skin\Blue3wide\File Explorer_musicpreview.xml" /> + <Content Include="Skin\Blue3wide\File Explorer_textpreview.xml" /> + <Content Include="Skin\Blue3wide\Media\buttonNF_file explorer.png" /> + <Content Include="Skin\Blue3wide\Media\button_file explorer.png" /> + <Content Include="Skin\Blue3wide\Media\hover_file explorer.png" /> + <Content Include="Skin\Blue3\File Explorer_dialog.xml" /> + <Content Include="Skin\Blue3\File Explorer_main.xml" /> + <Content Include="Skin\Blue3\File Explorer_modulepreview.xml" /> + <Content Include="Skin\Blue3\File Explorer_musicpreview.xml" /> + <Content Include="Skin\Blue3\File Explorer_textpreview.xml" /> + <Content Include="Skin\Blue3\Media\buttonNF_file explorer.png" /> + <Content Include="Skin\Blue3\Media\button_file explorer.png" /> + <Content Include="Skin\Blue3\Media\hover_file explorer.png" /> + <Content Include="Skin\Xface\common.window.file_explorer.xml" /> + <Content Include="Skin\Xface\File Explorer_dialog.xml" /> + <Content Include="Skin\Xface\File Explorer_main.xml" /> + <Content Include="Skin\Xface\File Explorer_modulepreview.xml" /> + <Content Include="Skin\Xface\File Explorer_musicpreview.xml" /> + <Content Include="Skin\Xface\File Explorer_textpreview.xml" /> + <Content Include="Skin\Xface\Media\buttonNF_file explorer.png" /> + <Content Include="Skin\Xface\Media\button_file explorer.png" /> + <Content Include="Skin\Xface\Media\hover_file explorer.png" /> </ItemGroup> <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.Targets" /> + <PropertyGroup> + <PostBuildEvent> + </PostBuildEvent> + </PropertyGroup> </Project> \ No newline at end of file Modified: trunk/plugins/File Explorer/File Explorer.sln =================================================================== --- trunk/plugins/File Explorer/File Explorer.sln 2009-10-13 09:25:18 UTC (rev 3124) +++ trunk/plugins/File Explorer/File Explorer.sln 2009-10-13 16:58:30 UTC (rev 3125) @@ -1,6 +1,6 @@ -Microsoft Visual Studio Solution File, Format Version 9.00 -# Visual Studio 2005 +Microsoft Visual Studio Solution File, Format Version 10.00 +# Visual Studio 2008 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "File Explorer", "File Explorer.csproj", "{39A9A612-493E-45CF-AE39-E99BAE474679}" EndProject Global Added: trunk/plugins/File Explorer/Language/strings_de.xml =================================================================== --- trunk/plugins/File Explorer/Language/strings_de.xml (rev 0) +++ trunk/plugins/File Explorer/Language/strings_de.xml 2009-10-13 16:58:30 UTC (rev 3125) @@ -0,0 +1,133 @@ +<?xml version="1.0" encoding="utf-8"?> +<Language name="German" characters="255"> + <Section name="unmapped"> + <String id="0">Datei Explorer</String> + <String id="1">Datei Explorer Setup</String> + <String id="2">Datei Explorer</String> + <String id="3">Erweiterungen</String> + <String id="4">Papierkorb</String> + <String id="5">Alle Dateien</String> + <String id="6">Systemdateien</String> + <String id="7">Systemordner</String> + <String id="8">Zeige Datei-Erweiterungen</String> + <String id="9">Verschiebe Dateien in den Papierkorb statt diese endgültig zu löschen</String> + <String id="10">Alle Dateien anzeigen</String> + <String id="11">Systemdateien anzeigen</String> + <String id="12">Systemordner anzeigen</String> + <String id="13">Übernehmen</String> + <String id="14">Abbrechen</String> + <String id="15">Fehler</String> + <String id="16">Unbekannter Fehler!</String> + <String id="17">Zugriff verweigert!</String> + <String id="18">Dateien/Ordner können nur auf Laufwerken mit </String> + <String id="19">NTFS-Formatierung verschlüsselt/komprimiert werden.</String> + <String id="20">Laufwerk, Ordner oder Datei kann nicht </String> + <String id="21">beschrieben/gelesen werden.</String> + <String id="22">Audio-Playlist erstellen</String> + <String id="23">Datei hinzufügen: </String> + <String id="24">Pfad: </String> + <String id="25">Komprimieren</String> + <String id="26">Datei komprimieren: </String> + <String id="27">Kopieren</String> + <String id="28">Datei: </String> + <String id="29">Nach: </String> + <String id="30">Entschlüsseln</String> + <String id="31">Löschen</String> + <String id="32">Verschlüsseln</String> + <String id="33">Verstecken</String> + <String id="34">Verschieben</String> + <String id="35">Attribut "nur lesen" setzen</String> + <String id="36">Attribut "nur lesen" entfernen</String> + <String id="37">Dekomprimieren</String> + <String id="38">Sichtbar machen</String> + <String id="39">Video-Playlist erstellen</String> + <String id="40">Zur Audio-Playlist hinzufügen</String> + <String id="41">Lese Dateien....</String> + <String id="42">Zur Video-Playlist hinzufügen</String> + <String id="43">Menü links</String> + <String id="44">Menü rechts</String> + <String id="45">Ordner: </String> + <String id="46">CD/DVD-Laufwerk</String> + <String id="47">Festplatte</String> + <String id="48">Ram-Laufwerk</String> + <String id="49">Netzlaufwerk</String> + <String id="50">Wechseldatenträger</String> + <String id="51">Menü</String> + <String id="52">Laufwerk wählen</String> + <String id="53">Umbenennen</String> + <String id="54">Ordner anlegen</String> + <String id="55">Ent-/Verschlüsseln (nur NTFS-Laufwerke)</String> + <String id="56">Komprimieren/Dekomprimieren (nur NTFS-Laufwerke)</String> + <String id="57">Verstecken/sichtbar machen</String> + <String id="58">Hinzufügen/entfernen "nur lesen" Attribut</String> + <String id="59">Audio-Playlist aus Dateiverzeichnis erstellen</String> + <String id="60">Video-Playlist aus Dateiverzeichnis erstellen</String> + <String id="61">Audio-Playlist aus markierten Dateien/Ordnern erstellen</String> + <String id="62">Video-Playlist aus markierten Dateien/Ordnern erstellen</String> + <String id="63">Markierte Dateien/Ordner zur Audio-Playlist hinzufügen</String> + <String id="64">Markierte Dateien/Ordner zur Video-Playlist hinzufügen</String> + <String id="65">Alles markieren/auswählen</String> + <String id="66">Auswahl zurücksetzen</String> + <String id="67">Markierungs-Modus deaktivieren</String> + <String id="68">Markierungs-Modus aktivieren</String> + <String id="69">Datei-Vorschau</String> + <String id="70">Es wurde kein Vorschau-Plugin gefunden</String> + <String id="71">Soll die Text-Vorschau verwendet werden?</String> + <String id="72"> Attribute:</String> + <String id="73"> Versteckt;</String> + <String id="74"> Nur Lesen;</String> + <String id="75"> Systemdatei;</String> + <String id="76"> Komprimiert;</String> + <String id="77"> Verschlüsselt;</String> + <String id="78"> Keines</String> + <String id="79">Erstellt am: </String> + <String id="80">Letzter Zugriff: </String> + <String id="81">Zuletzt geändert: </String> + <String id="82"> Systemverzeichnis;</String> + <String id="83">Kopiere Datei</String> + <String id="84">Von: </String> + <String id="85">Kopiere Verzeichnis</String> + <String id="86">Kopieren der Datei</String> + <String id="87">Die Datei</String> + <String id="88">existiert bereits!</String> + <String id="89">Wollen Sie diese überschreiben?</String> + <String id="90">Datei verschieben</String> + <String id="91">Verzeichnis verschieben</String> + <String id="92">Verschiebe Datei</String> + <String id="93">Verschiebe Verzeichnis</String> + <String id="94">Das Verzeichnis </String> + <String id="95">Verzeichnis löschen</String> + <String id="96">Wollen Sie wirklich löschen?</String> + <String id="97">Nach der Löschung kann das Verzeichnis NICHT WIEDER HERGESTELLT WERDEN!</String> + <String id="98">Datei löschen</String> + <String id="99">Fehler</String> + <String id="100">Kann das Verzeichnis nicht umbenennen </String> + <String id="101">Kann die Datei nicht umbenennen </String> + <String id="102">Neuer Ordner</String> + <String id="103">Kann das Verzeichnis nicht erstellen </String> + <String id="104">Verschlüsselung/Entschlüsselung</String> + <String id="105">Wollen Sie den Entschlüsselungs-Status </String> + <String id="106">für alle Unterverzeichnisse und Dateien </String> + <String id="107">in diesem Ordner ändern?</String> + <String id="108">Wollen Sie den Komprimierungs-Status ändern?</String> + <String id="109">Ausgewählte Dateien/Verzeichnisse verstecken/sichtbar machen</String> + <String id="110">Markierte Dateien verstecken</String> + <String id="111">Markierte Dateien sichtbar machen</String> + <String id="112">Möchten Sie den Status "versteckt" ändern?</String> + <String id="113">Setzen/entfernen des Attributs "nur lesen" für die ausgewählten Dateien/Verzeichnisse</String> + <String id="114">Schreibschutz "nur lesen" setzen</String> + <String id="115">Schreibschutz "nur lesen" entfernen</String> + <String id="116">Attribut "nur lesen" setzen/entfernen</String> + <String id="117">Möchten Sie das Attribut "nur lesen" ändern?</String> + <String id="118">Neue Audio-Playlist</String> + <String id="119">Möchten Sie alle Audio-Dateien dieses Ordners </String> + <String id="120">mit dessen Unterverzeichnissen einbeziehen?</String> + <String id="121">Es wurden keine Audio-Dateien gefunden!</String> + <String id="122">Neue Video-Playlist</String> + <String id="123">Möchten Sie alle Video-Dateien dieses Ordners </String> + <String id="124">Es wurden keine Video-Dateien gefunden!</String> + <String id="125">Es wurden keine Playlisten gefunden</String> + <String id="126">Es wurden keine Playlisten in diesem Verzeichnis gefunden</String> + <String id="127">Playlist auswählen</String> + </Section> +</Language> \ No newline at end of file Modified: trunk/plugins/File Explorer/LocalizeStrings.cs =================================================================== --- trunk/plugins/File Explorer/LocalizeStrings.cs 2009-10-13 09:25:18 UTC (rev 3124) +++ trunk/plugins/File Explorer/LocalizeStrings.cs 2009-10-13 16:58:30 UTC (rev 3125) @@ -85,7 +85,10 @@ bool isPrefixEnabled = true; using (MediaPortal.Profile.Settings reader = new MediaPortal.Profile.Settings(MediaPortal.Configuration.Config.GetFile(MediaPortal.Configuration.Config.Dir.Config, "MediaPortal.xml"))) - isPrefixEnabled = reader.GetValueAsBool("general", "myprefix", true); + { + isPrefixEnabled = reader.GetValueAsBool("general", "myprefix", true); + language = reader.GetValueAsString("skin", "language", "English"); + } string directory = MediaPortal.Configuration.Config.GetSubFolder(MediaPortal.Configuration.Config.Dir.Language, "File Explorer"); string cultureName = null; @@ -112,7 +115,7 @@ } /// <summary> - /// Changes the current lagnuage + /// Changes the current language /// </summary> /// <param name="language">New Language</param> static public void ChangeLanguage(string language) Modified: trunk/plugins/File Explorer/Preview/TextPreview.cs =================================================================== --- trunk/plugins/File Explorer/Preview/TextPreview.cs 2009-10-13 09:25:18 UTC (rev 3124) +++ trunk/plugins/File Explorer/Preview/TextPreview.cs 2009-10-13 16:58:30 UTC (rev 3125) @@ -120,7 +120,7 @@ /// <returns></returns> public string Description() { - return "Text Viewer used by File File Explorer"; + return "Text Viewer used by File Explorer"; } /// <summary> Modified: trunk/plugins/File Explorer/Properties/AssemblyInfo.cs =================================================================== --- trunk/plugins/File Explorer/Properties/AssemblyInfo.cs 2009-10-13 09:25:18 UTC (rev 3124) +++ trunk/plugins/File Explorer/Properties/AssemblyInfo.cs 2009-10-13 16:58:30 UTC (rev 3125) @@ -11,9 +11,9 @@ [assembly: AssemblyTitle("File Explorer")] [assembly: AssemblyDescription("File Explorer")] [assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("Sinus Arts")] +[assembly: AssemblyCompany("")] [assembly: AssemblyProduct("File Explorer")] -[assembly: AssemblyCopyright("2006 Andreas Groß")] +[assembly: AssemblyCopyright("")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] Added: trunk/plugins/File Explorer/Skin/Blue3/File Explorer_dialog.xml =================================================================== --- trunk/plugins/File Explorer/Skin/Blue3/File Explorer_dialog.xml (rev 0) +++ trunk/plugins/File Explorer/Skin/Blue3/File Explorer_dialog.xml 2009-10-13 16:58:30 UTC (rev 3125) @@ -0,0 +1,46 @@ +<window> + <id>557316</id> + <defaultcontrol>10</defaultcontrol> + <allowoverlay>no</allowoverlay> + <controls> + <control> + <type>image</type> + <id>0</id> + <posX>177</posX> + <posY>225</posY> + <width>409</width> + <height>202</height> + <texture>dialog_background.png</texture> + </control> + <control> + <description>dialog Heading</description> + <type>label</type> + <id>2</id> + <posX>190</posX> + <posY>230</posY> + <label>0</label> + <font>font13</font> + <textcolor>ffffffff</textcolor> + </control> + <control> + <description>dialog line 1</description> + <type>label</type> + <id>3</id> + <posX>190</posX> + <posY>260</posY> + <label>0</label> + <font>font13</font> + <textcolor>ffffffff</textcolor> + </control> + <control> + <description>dialog line 2</description> + <type>label</type> + <id>4</id> + <posX>190</posX> + <posY>280</posY> + <label>0</label> + <font>font13</font> + <textcolor>ffffffff</textcolor> + </control> + </controls> +</window> Added: trunk/plugins/File Explorer/Skin/Blue3/File Explorer_main.xml =================================================================== --- trunk/plugins/File Explorer/Skin/Blue3/File Explorer_main.xml (rev 0) +++ trunk/plugins/File Explorer/Skin/Blue3/File Explorer_main.xml 2009-10-13 16:58:30 UTC (rev 3125) @@ -0,0 +1,112 @@ +<window> + <id>557311</id> + <defaultcontrol>1</defaultcontrol> + <allowoverlay>no</allowoverlay> + <controls> + <control> + <description>BackGround</description> + <type>image</type> + <id>5</id> + <posX>0</posX> + <posY>0</posY> + <width>720</width> + <height>576</height> + <texture>background.png</texture> + </control> + <control> + <description>Menu left</description> + <type>button</type> + <id>1</id> + <posX>1</posX> + <posY>100</posY> + <label>Menu left</label> + <onleft>1</onleft> + <onright>2</onright> + <onup>1</onup> + <ondown>3</ondown> + </control> + <control> + <description>Menu right</description> + <type>button</type> + <id>2</id> + <posX>352</posX> + <posY>100</posY> + <label>Menu right</label> + <onleft>1</onleft> + <onright>2</onright> + <onup>2</onup> + <ondown>4</ondown> + </control> + <control> + <description>file listcontrol</description> + <type>listcontrol</type> + <id>3</id> + <posX>1</posX> + <posY>155</posY> + <height>500</height> + <width>350</width> + <onright>4</onright> + <onleft>1</onleft> + <onup>3</onup> + <ondown>3</ondown> + <spinPosX>240</spinPosX> + </control> + <control> + <description>file listcontrol</description> + <type>listcontrol</type> + <id>4</id> + <posX>352</posX> + <posY>155</posY> + <height>500</height> + <width>350</width> + <onright>2</onright> + <onleft>3</onleft> + <onup>4</onup> + <ondown>4</ondown> + </control> + <control> + <description>label left</description> + <type>label</type> + <id>6</id> + <posX>1</posX> + <posY>600</posY> + <label>Test</label> + <font>font10</font> + <align>left</align> + <textcolor>White</textcolor> + </control> + <control> + <description>label right</description> + <type>label</type> + <id>7</id> + <posX>352</posX> + <posY>600</posY> + <label>Test</label> + <font>font10</font> + <align>left</align> + <textcolor>White</textcolor> + </control> + <control> + <description>labeldir left</description> + <type>label</type> + <id>9</id> + <posX>1</posX> + <posY>135</posY> + <label>Test</label> + <font>font10</font> + <align>left</align> + <textcolor>White</textcolor> + </control> + <control> + <description>labeldir right</description> + <type>label</type> + <id>10</id> + <posX>352</posX> + <posY>135</posY> + <label>Test</label> + <font>font10</font> + <align>left</align> + <textcolor>White</textcolor> + </control> + </controls> +</window> Added: trunk/plugins/File Explorer/Skin/Blue3/File Explorer_modulepreview.xml =================================================================== --- trunk/plugins/File Explorer/Skin/Blue3/File Explorer_modulepreview.xml (rev 0) +++ trunk/plugins/File Explorer/Skin/Blue3/File Explorer_modulepreview.xml 2009-10-13 16:58:30 UTC (rev 3125) @@ -0,0 +1,64 @@ +<window> + <id>557313</id> + <defaultcontrol>10</defaultcontrol> + <allowoverlay>no</allowoverlay> + <controls> + <control> + <type>image</type> + <id>0</id> + <posX>177</posX> + <posY>225</posY> + <width>409</width> + <height>202</height> + <texture>dialog_background.png</texture> + </control> + <control> + <description>dialog Heading</description> + <type>label</type> + <id>2</id> + <posX>190</posX> + <posY>230</posY> + <label></label> + <font>font13</font> + <textcolor>ffffffff</textcolor> + </control> + <control> + <description>dialog line 1</description> + <type>label</type> + <id>3</id> + <posX>190</posX> + <posY>260</posY> + <label></label> + <font>font13</font> + <textcolor>ffffffff</textcolor> + </control> + <control> + <description>dialog line 2</description> + <type>label</type> + <id>4</id> + <posX>190</posX> + <posY>280</posY> + <label></label> + <font>font13</font> + <textcolor>ffffffff</textcolor> + </control> + <control> + <description>OK button</description> + <type>button</type> + <id>10</id> + <posX>435</posX> + <posY>355</posY> + <textXOff>10</textXOff> + <textYOff>7</textYOff> + <width>105</width> + <height>38</height> + <textureFocus>small_button_focus.png</textureFocus> + <textureNoFocus>small_button_nofocus.png</textureNoFocus> + <label>186</label> + <onleft>10</onleft> + <onright>10</onright> + <onup>10</onup> + <ondown>10</ondown> + </control> + </controls> +</window> Added: trunk/plugins/File Explorer/Skin/Blue3/File Explorer_musicpreview.xml =================================================================== --- trunk/plugins/File Explorer/Skin/Blue3/File Explorer_musicpreview.xml (rev 0) +++ trunk/plugins/File Explorer/Skin/Blue3/File Explorer_musicpreview.xml 2009-10-13 16:58:30 UTC (rev 3125) @@ -0,0 +1,64 @@ +<window> + <id>557314</id> + <defaultcontrol>10</defaultcontrol> + <allowoverlay>no</allowoverlay> + <controls> + <control> + <type>image</type> + <id>0</id> + <posX>177</posX> + <posY>225</posY> + <width>409</width> + <height>202</height> + <texture>dialog_background.png</texture> + </control> + <control> + <description>dialog Heading</description> + <type>label</type> + <id>2</id> + <posX>190</posX> + <posY>230</posY> + <label></label> + <font>font13</font> + <textcolor>ffffffff</textcolor> + </control> + <control> + <description>dialog line 1</description> + <type>label</type> + <id>3</id> + <posX>190</posX> + <posY>260</posY> + <label></label> + <font>font13</font> + <textcolor>ffffffff</textcolor> + </control> + <control> + <description>dialog line 2</description> + <type>label</type> + <id>4</id> + <posX>190</posX> + <posY>280</posY> + <label></label> + <font>font13</font> + <textcolor>ffffffff</textcolor> + </control> + <control> + <description>OK button</description> + <type>button</type> + <id>10</id> + <posX>435</posX> + <posY>355</posY> + <textXOff>10</textXOff> + <textYOff>7</textYOff> + <width>105</width> + <height>38</height> + <textureFocus>small_button_focus.png</textureFocus> + <textureNoFocus>small_button_nofocus.png</textureNoFocus> + <label>186</label> + <onleft>10</onleft> + <onright>10</onright> + <onup>10</onup> + <ondown>10</ondown> + </control> + </controls> +</window> Added: trunk/plugins/File Explorer/Skin/Blue3/File Explorer_textpreview.xml =================================================================== --- trunk/plugins/File Explorer/Skin/Blue3/File Explorer_textpreview.xml (rev 0) +++ trunk/plugins/File Explorer/Skin/Blue3/File Explorer_textpreview.xml 2009-10-13 16:58:30 UTC (rev 3125) @@ -0,0 +1,29 @@ +<window> + <id>557312</id> + <defaultcontrol>2</defaultcontrol> + <allowoverlay>no</allowoverlay> + <controls> + <control> + <description>BackGround</description> + <type>image</type> + <id>1</id> + <posX>0</posX> + <posY>0</posY> + <width>720</width> + <height>576</height> + <texture>background.png</texture> + </control> + <control> + <type>textbox</type> + <id>2</id> + <posX>1</posX> + <posY>1</posY> + <width>700</width> + <height>576</height> + <font>font12</font> + <textcolor>White</textcolor> + <spinPosX>640</spinPosX> + <spinPosY>560</spinPosY> + </control> + </controls> +</window> Added: trunk/plugins/File Explorer/Skin/Blue3wide/File Explorer_dialog.xml =================================================================== --- trunk/plugins/File Explorer/Skin/Blue3wide/File Explorer_dialog.xml (rev 0) +++ trunk/plugins/File Explorer/Skin/Blue3wide/File Explorer_dialog.xml 2009-10-13 16:58:30 UTC (rev 3125) @@ -0,0 +1,46 @@ +<window> + <id>557316</id> + <defaultcontrol>10</defaultcontrol> + <allowoverlay>no</allowoverlay> + <controls> + <control> + <type>image</type> + <id>0</id> + <posX>177</posX> + <posY>225</posY> + <width>409</width> + <height>202</height> + <texture>dialog_background.png</texture> + </control> + <control> + <description>dialog Heading</description> + <type>label</type> + <id>2</id> + <posX>190</posX> + <posY>230</posY> + <label>0</label> + <font>font13</font> + <textcolor>ffffffff</textcolor> + </control> + <control> + <description>dialog line 1</description> + <type>label</type> + <id>3</id> + <posX>190</posX> + <posY>260</posY> + <label>0</label> + <font>font13</font> + <textcolor>ffffffff</textcolor> + </control> + <control> + <description>dialog line 2</description> + <type>label</type> + <id>4</id> + <posX>190</posX> + <posY>280</posY> + <label>0</label> + <font>font13</font> + <textcolor>ffffffff</textcolor> + </control> + </controls> +</window> Added: trunk/plugins/File Explorer/Skin/Blue3wide/File Explorer_main.xml =================================================================== --- trunk/plugins/File Explorer/Skin/Blue3wide/File Explorer_main.xml (rev 0) +++ trunk/plugins/File Explorer/Skin/Blue3wide/File Explorer_main.xml 2009-10-13 16:58:30 UTC (rev 3125) @@ -0,0 +1,112 @@ +<window> + <id>557311</id> + <defaultcontrol>1</defaultcontrol> + <allowoverlay>no</allowoverlay> + <controls> + <control> + <description>BackGround</description> + <type>image</type> + <id>5</id> + <posX>0</posX> + <posY>0</posY> + <width>1280</width> + <height>720</height> + <texture>background.png</texture> + </control> + <control> + <description>Menu left</description> + <type>button</type> + <id>1</id> + <posX>1</posX> + <posY>100</posY> + <label>Menu left</label> + <onleft>1</onleft> + <onright>2</onright> + <onup>1</onup> + <ondown>3</ondown> + </control> + <control> + <description>Menu right</description> + <type>button</type> + <id>2</id> + <posX>1025</posX> + <posY>100</posY> + <label>Menu right</label> + <onleft>1</onleft> + <onright>2</onright> + <onup>2</onup> + <ondown>4</ondown> + </control> + <control> + <description>file listcontrol</description> + <type>listcontrol</type> + <id>3</id> + <posX>1</posX> + <posY>162</posY> + <height>626</height> + <width>639</width> + <onright>4</onright> + <onleft>1</onleft> + <onup>3</onup> + <ondown>3</ondown> + <spinPosX>240</spinPosX> + </control> + <control> + <description>file listcontrol</description> + <type>listcontrol</type> + <id>4</id> + <posX>641</posX> + <posY>162</posY> + <height>626</height> + <width>639</width> + <onright>2</onright> + <onleft>3</onleft> + <onup>4</onup> + <ondown>4</ondown> + </control> + <control> + <description>label left</description> + <type>label</type> + <id>6</id> + <posX>1</posX> + <posY>600</posY> + <label>Test</label> + <font>font10</font> + <align>left</align> + <textcolor>White</textcolor> + </control> + <control> + <description>label right</description> + <type>label</type> + <id>7</id> + <posX>352</posX> + <posY>600</posY> + <label>Test</label> + <font>font10</font> + <align>left</align> + <textcolor>White</textcolor> + </control> + <control> + <description>labeldir left</description> + <type>label</type> + <id>9</id> + <posX>1</posX> + <posY>140</posY> + <label>Test</label> + <font>font10</font> + <align>left</align> + <textcolor>White</textcolor> + </control> + <control> + <description>labeldir right</description> + <type>label</type> + <id>10</id> + <posX>640</posX> + <posY>140</posY> + <label>Test</label> + <font>font10</font> + <align>left</align> + <textcolor>White</textcolor> + </control> + </controls> +</window> Added: trunk/plugins/File Explorer/Skin/Blue3wide/File Explorer_modulepreview.xml =================================================================== --- trunk/plugins/File Explorer/Skin/Blue3wide/File Explorer_modulepreview.xml (rev 0) +++ trunk/plugins/File Explorer/Skin/Blue3wide/File Explorer_modulepreview.xml 2009-10-13 16:58:30 UTC (rev 3125) @@ -0,0 +1,64 @@ +<window> + <id>557313</id> + <defaultcontrol>10</defaultcontrol> + <allowoverlay>no</allowoverlay> + <controls> + <control> + <type>image</type> + <id>0</id> + <posX>177</posX> + <posY>225</posY> + <width>409</width> + <height>202</height> + <texture>dialog_background.png</texture> + </control> + <control> + <description>dialog Heading</description> + <type>label</type> + <id>2</id> + <posX>190</posX> + <posY>230</posY> + <label></label> + <font>font13</font> + <textcolor>ffffffff</textcolor> + </control> + <control> + <description>dialog line 1</description> + <type>label</type> + <id>3</id> + <posX>190</posX> + <posY>260</posY> + <label></label> + <font>font13</font> + <textcolor>ffffffff</textcolor> + </control> + <control> + <description>dialog line 2</description> + <type>label</type> + <id>4</id> + <posX>190</posX> + <posY>280</posY> + <label></label> + <font>font13</font> + <textcolor>ffffffff</textcolor> + </control> + <control> + <description>OK button</description> + <type>button</type> + <id>10</id> + <posX>435</posX> + <posY>355</posY> + <textXOff>10</textXOff> + <textYOff>7</textYOff> + <width>105</width> + <height>38</height> + <textureFocus>small_button_focus.png</textureFocus> + <textureNoFocus>small_button_nofocus.png</textureNoFocus> + <label>186</label> + <onleft>10</onleft> + <onright>10</onright> + <onup>10</onup> + <ondown>10</ondown> + </control> + </controls> +</window> Added: trunk/plugins/File Explorer/Skin/Blue3wide/File Explorer_musicpreview.xml =================================================================== --- trunk/plugins/File Explorer/Skin/Blue3wide/File Explorer_musicpreview.xml (rev 0) +++ trunk/plugins/File Explorer/Skin/Blue3wide/File Explorer_musicpreview.xml 2009-10-13 16:58:30 UTC (rev 3125) @@ -0,0 +1,64 @@ +<window> + <id>557314</id> + <defaultcontrol>10</defaultcontrol> + <allowoverlay>no</allowoverlay> + <controls> + <control> + <type>image</type> + <id>0</id> + <posX>177</posX> + <posY>225</posY> + <width>409</width> + <height>202</height> + <texture>dialog_background.png</texture> + </control> + <control> + <description>dialog Heading</description> + <type>label</type> + <id>2</id> + <posX>190</posX> + <posY>230</posY> + <label></label> + <font>font13</font> + <textcolor>ffffffff</textcolor> + </control> + <control> + <description>dialog line 1</description> + <type>label</type> + <id>3</id> + <posX>190</posX> + <posY>260</posY> + <label></label> + <font>font13</font> + <textcolor>ffffffff</textcolor> + </control> + <control> + <description>dialog line 2</description> + <type>label</type> + <id>4</id> + <posX>190</posX> + <posY>280</posY> + <label></label> + <font>font13</font> + <textcolor>ffffffff</textcolor> + </control> + <control> + <description>OK button</description> + <type>button</type> + <id>10</id> + <posX>435</posX> + <posY>355</posY> + <textXOff>10</textXOff> + <textYOff>7</textYOff> + <width>105</width> + <height>38</height> + <textureFocus>small_button_focus.png</textureFocus> + <textureNoFocus>small_button_nofocus.png</textureNoFocus> + <label>186</label> + <onleft>10</onleft> + <onright>10</onright> + <onup>10</onup> + <ondown>10</ondown> + </control> + </controls> +</window> Added: trunk/plugins/File Explorer/Skin/Blue3wide/File Explorer_textpreview.xml =================================================================== --- trunk/plugins/File Explorer/Skin/Blue3wide/File Explorer_textpreview.xml (rev 0) +++ trunk/plugins/File Explorer/Skin/Blue3wide/File Explorer_textpreview.xml 2009-10-13 16:58:30 UTC (rev 3125) @@ -0,0 +1,29 @@ +<window> + <id>557312</id> + <defaultcontrol>2</defaultcontrol> + <allowoverlay>no</allowoverlay> + <controls> + <control> + <description>BackGround</description> + <type>image</type> + <id>1</id> + <posX>0</posX> + <posY>0</posY> + <width>1280</width> + <height>720</height> + <texture>background.png</texture> + </control> + <control> + <type>textbox</type> + <id>2</id> + <posX>1</posX> + <posY>1</posY> + <width>1260</width> + <height>720</height> + <font>font12</font> + <textcolor>White</textcolor> + <spinPosX>1180</spinPosX> + <spinPosY>690</spinPosY> + </control> + </controls> +</window> Added: trunk/plugins/File Explorer/Skin/Xface/File Explorer_dialog.xml =================================================================== --- trunk/plugins/File Explorer/Skin/Xface/File Explorer_dialog.xml (rev 0) +++ trunk/plugins/File Explorer/Skin/Xface/File Explorer_dialog.xml 2009-10-13 16:58:30 UTC (rev 3125) @@ -0,0 +1,46 @@ +<window> + <id>557316</id> + <defaultcontrol>10</defaultcontrol> + <allowoverlay>no</allowoverlay> + <controls> + <control> + <type>image</type> + <id>0</id> + <posX>177</posX> + <posY>225</posY> + <width>409</width> + <height>202</height> + <texture>dialog_background.png</texture> + </control> + <control> + <description>dialog Heading</description> + <type>label</type> + <id>2</id> + <posX>190</posX> + <posY>230</posY> + <label>0</label> + <font>font13</font> + <textcolor>ffffffff</textcolor> + </control> + <control> + <description>dialog line 1</description> + <type>label</type> + <id>3</id> + <posX>190</posX> + <posY>260</posY> + <label>0</label> + <font>font13</font> + <textcolor>ffffffff</textcolor> + </control> + <control> + <description>dialog line 2</description> + <type>label</type> + <id>4</id> + <posX>190</posX> + <posY>280</posY> + <label>0</label> + <font>font13</font> + <textcolor>ffffffff</textcolor> + </control> + </controls> +</window> Added: trunk/plugins/File Explorer/Skin/Xface/File Explorer_main.xml =================================================================== --- trunk/plugins/File Explorer/Skin/Xface/File Explorer_main.xml (rev 0) +++ trunk/plugins/File Explorer/Skin/Xface/File Explorer_main.xml 2009-10-13 16:58:30 UTC (rev 3125) @@ -0,0 +1,112 @@ +<?xml version="1.0" encoding="utf-8"?> +<window> + <id>557311</id> + <defaultcontrol>1</defaultcontrol> + <allowoverlay>no</allowoverlay> + <define>#header.label:File explorer</define> + <define>#header.image:explorer_logo.png</define> + <define>#header.hover:hover_file explorer.png</define> + <controls> + <!-- <control><description>BackGround</description><type>image</type><id>5</id><posX>0</posX><posY>0</posY><width>1366</width><height>768</height><texture>background.png</texture></control> --> + <import>common.window.file_explorer.xml</import> + <!-- <control><animation effect="fade" time="250">WindowOpen</animation><animation effect="fade" time="500">WindowClose</animation><type>image</type><id>1</id><posX>155</posX><posY>522</posY><width>217</width><height>163</height><texture>#header.hover</texture><animation effect="fade" time="200">WindowOpen</animation><animation effect="fade" time="200">WindowClose</animation></control> --> + <control> + <description>Menu left</description> + <type>button</type> + <id>1</id> + <posX>1</posX> + <posY>100</posY> + <label>Menu left</label> + <onleft>1</onleft> + <onright>2</onright> + <onup>1</onup> + <ondown>3</ondown> + </control> + <control> + <description>Menu right</description> + <type>button</type> + <id>2</id> + <posX>683</posX> + <posY>100</posY> + <label>Menu right</label> + <onleft>1</onleft> + <onright>2</onright> + <onup>2</onup> + <ondown>4</ondown> + </control> + <control> + <description>file listcontrol</description> + <type>listcontrol</type> + <id>3</id> + <posX>1</posX> + <posY>180</posY> + <height>450</height> + <width>650</width> + <onright>4</onright> + <onleft>1</onleft> + <onup>3</onup> + <ondown>3</ondown> + <spinPosX>570</spinPosX> + <spinPosY>710</spinPosY> + </control> + <control> + <description>file listcontrol</description> + <type>listcontrol</type> + <id>4</id> + <posX>683</posX> + <posY>180</posY> + <height>450</height> + <width>650</width> + <onright>2</onright> + <onleft>3</onleft> + <onup>4</onup> + <ondown>4</ondown> + <spinPosX>1220</spinPosX> + <spinPosY>710</spinPosY> + </control> + <control> + <description>label left</description> + <type>label</type> + <id>6</id> + <posX>1</posX> + <posY>180</posY> + <label>Test</label> + <font>font10</font> + <align>left</align> + <textcolor>White</textcolor> + </control> + <control> + <description>label right</description> + <type>label</type> + <id>7</id> + <posX>683</posX> + <posY>180</posY> + <label>Test</label> + <font>font10</font> + <align>left</align> + <textcolor>White</textcolor> + </control> + <control> + <description>labeldir left</description> + <type>label</type> + <id>9</id> + <posX>1</posX> + <posY>150</posY> + <label>Test</label> + <font>font10</font> + <align>left</align> + <textcolor>white</textcolor> + </control> + <control> + <description>labeldir right</description> + <type>label</type> + <id>10</id> + <posX>683</posX> + <posY>150</posY> + <label>Test</label> + <font>font10</font> + <align>left</align> + <textcolor>white</textcolor> + </control> + </controls> +</window> \ No newline at end of file Added: trunk/plugins/File Explorer/Skin/Xface/File Explorer_modulepreview.xml =================================================================== --- trunk/plugins/File Explorer/Skin/Xface/File Explorer_modulepreview.xml (rev 0) +++ trunk/plugins/File Explorer/Skin/Xface/File Explorer_modulepreview.xml 2009-10-13 16:58:30 UTC (rev 3125) @@ -0,0 +1,64 @@ +<window> + <id>557313</id> + <defaultcontrol>10</defaultcontrol> + <allowoverlay>no</allowoverlay> + <controls> + <control> + <type>image</type> + <id>0</id> + <posX>177</posX> + <posY>225</posY> + <width>409</width> + <height>202</height> + <texture>dialog_background.png</texture> + </control> + <control> + <description>dialog Heading</description> + <type>label</type> + <id>2</id> + <posX>190</posX> + <posY>230</posY> + <label></label> + <font>font13</font> + <textcolor>ffffffff</textcolor> + </control> + <control> + <description>dialog line 1</description> + <type>label</type> + <id>3</id> + <posX>190</posX> + <posY>260</posY> + <label></label> + <font>font13</font> + <textcolor>ffffffff</textcolor> + </control> + <control> + <description>dialog line 2</description> + <type>label</type> + <id>4</id> + <posX>190</posX> + <posY>280</posY> + <label></label> + <font>font13</font> + <textcolor>ffffffff</textcolor> + </control> + <control> + <description>OK button</description> + <type>button</type> + <id>10</id> + <posX>435</posX> + <posY>355</posY> + <textXOff>10</textXOff> + <textYOff>7</textYOff> + <width>105</width> + <height>38</height> + <textureFocus>small_button_focus.png</textureFocus> + <textureNoFocus>small_button_nofocus.png</textureNoFocus> + <label>186</label> + <onleft>10</onleft> + <onright>10</onright> + <onup>10</onup> + <ondown>10</ondown> + </control> + </controls> +</window> Added: trunk/plugins/File Explorer/Skin/Xface/File Explorer_musicpreview.xml =================================================================== --- trunk/plugins/File Explorer/Skin/Xface/File Explorer_musicpreview.xml (rev 0) +++ trunk/plugins/File Explorer/Skin/Xface/File Explorer_musicpreview.xml 2009-10-13 16:58:30 UTC (rev 3125) @@ -0,0 +1,64 @@ +<window> + <id>557314</id> + <defaultcontrol>10</defaultcontrol> + <allowoverlay>no</allowoverlay> + <controls> + <control> + <type>image</type> + <id>0</id> + <posX>177</posX> + <posY>225</posY> + <width>409</width> + <height>202</height> + <texture>dialog_background.png</texture> + </control> + <control> + <description>dialog Heading</description> + <type>label</type> + <id>2</id> + <posX>190</posX> + <posY>230</posY> + <label></label> + <font>font13</font> + <textcolor>ffffffff</textcolor> + </control> + <control> + <description>dialog line 1</description> + <type>label</type> + <id>3</id> + <posX>190</posX> + <posY>260</posY> + <label></label> + <font>font13</font> + <textcolor>ffffffff</textcolor> + </control> + <control> + <description>dialog line 2</description> + <type>label</type> + <id>4</id> + <posX>190</posX> + <posY>280</posY> + <label></label> + <font>font13</font> + <textcolor>ffffffff</textcolor> + </control> + <control> + <description>OK button</description> + <type>button</type> + <id>10</id> + <posX>435</posX> + <posY>355</posY> + <textXOff>10</textXOff> + <textYOff>7</textYOff> + <width>105</width> + <height>38</height> + <textureFocus>small_button_focus.png</textureFocus> + <textureNoFocus>small_button_nofocus.png</textureNoFocus> + <label>186</label> + <onleft>10</onleft> + <onright>10</onright> + <onup>10</onup> + <ondown>10</ondown> + </control> + </controls> +</window> Added: trunk/plugins/File Explorer/Skin/Xface/File Explorer_textpreview.xml =================================================================== --- trunk/plugins/File Explorer/Skin/Xface/File Explorer_textpreview.xml (rev 0) +++ trunk/plugins/File Explorer/Skin/Xface/File Explorer_textpreview.xml 2009-10-13 16:58:30 UTC (rev 3125) @@ -0,0 +1,30 @@ +<?xml version="1.0" encoding="utf-8"?> +<window> + <id>557312</id> + <defaultcontrol>2</defaultcontrol> + <allowoverlay>no</allowoverlay> + <controls> + <control> + <description>BackGround</description> + <type>image</type> + <id>1</id> + <posX>0</posX> + <posY>0</posY> + <width>1366</width> + <height>768</height> + <texture>background.png</texture> + </control> + <control> + <type>textbox</type> + <id>2</id> + <posX>1</posX> + <posY>1</posY> + <width>1346</width> + <height>768</height> + <font>font12</font> + <textcolor>White</textcolor> + <spinPosX>640</spinPosX> + <spinPosY>560</spinPosY> + </control> + </controls> +</window> \ No newline at end of file Added: trunk/plugins/File Explorer/Skin/Xface/Media/buttonNF_file explorer.png =================================================================== (Binary files differ) Property changes on: trunk/plugins/File Explorer/Skin/Xface/Media/buttonNF_file explorer.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: trunk/plugins/File Explorer/Skin/Xface/Media/button_file explorer.png =================================================================== (Binary files differ) Property changes on: trunk/plugins/File Explorer/Skin/Xface/Media/button_file explorer.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: trunk/plugins/File Explorer/Skin/Xface/Media/hover_file explorer.png =================================================================== (Binary files differ) Property changes on: trunk/plugins/File Explorer/Skin/Xface/Media/hover_file explorer.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: trunk/plugins/File Explorer/Skin/Xface/common.window.file_explorer.xml =================================================================== --- trunk/plugins/File Explorer/Skin/Xface/common.window.file_explorer.xml (rev 0) +++ trunk/plugins/File Explorer/Skin/Xface/common.window.file_explorer.xml 2009-10-13 16:58:30 UTC (rev 3125) @@ -0,0 +1,157 @@ +<?xml version="1.0" encoding="utf-8" standalone="yes"?> +<window> + <controls> + <control> + <description>BG</description> + <type>image</type> + <id>5</id> + <width>1366</width> + <height>768</height> + <texture>background.png</texture> + </control> + <control> + <type>image</type> + <id>5</id> + <posY>700</posY> + <height>89</height> + <width>1366</width> + <texture>Barback.png</texture> + <colorDiffuse>effffffff</colorDiffuse> + </control> + <control> + <type>image</type> + <id>5</id> + <posY>-20</posY> + <height>89</height> + <width>1366</width> + <texture>Barback.png</texture> + <colorDiffuse>effffffff</colorDiffuse> + </control> --> + <control> + <animation effect="fade" time="250">WindowOpen</animation> + <animation effect="fade" time="500">WindowClose</animation> + <type>image</type> + <id>5</id> + <posX>89</posX> + <posY>4</posY> + <width>220</width> + <height>55</height> + <texture>#header.image</texture> + </control> + <control> + <type>label</type> + <id>5</id> + <posX>374</posX> + <posY>39</posY> + <label>#header.label</label> + <font>font14</font> + <align>right</align> + <textcolor>White</textcolor> + <animation effect="fade" time="200">WindowOpen</animation> + <animation effect="fade" time="200">WindowClose</animation> + </control> + <control> + <description>Number of Files Label</description> + <type>label</type> + <id>5</id> + <posX>762</posX> + <posY>640</posY> + <label>#itemcount</label> + <align>left</align> + <textcolor>ff969696</textcolor> + <animation effect="fade" time="200">WindowOpen</animation> + <animation effect="fade" time="200">WindowClose</animation> + <visible>!facadeview.list</visible> + </control> + <control> + <animation effect="fade" time="250">WindowOpen</animation> + <animation effect="fade" time="500">WindowClose</animation> + <description>Selected item Label</description> + <type>fadelabel</type> + <id>5</id> + <posX>550</posX> + <posY>650</posY> + <width>365</width> + <label>#selecteditem</label> + <textcolor>black</textcolor> + <font>font14</font> + <visible>!facadeview.list</visible> + <align>center</align> + </control> + <control> + <animation effect="fade" time="250">WindowOpen</animation> + <animation effect="fade" time="500">WindowClose</animation> + <description>Selected item Label</description> + <type>fadelabel</type> + <id>5</id> + <posX>550</posX> + <posY>675</posY> + <width>365</width> + <label>#selecteditem2</label> + <textcolor>e0000000</textcolor> + <font>font13</font> + <visible>!facadeview.list</visible> + <align>center</align> + </control> + <control> + <type>image</type> + <id>5</id> + <posX>637</posX> + <posY>588</posY> + <width>85</width> + <height>86</height> + <texture flipY="true" diffuse="Thumb_Mask.png">#selectedthumb</texture> + <visible>!facadeview.list</visible> + </control> + <control> + <animation effect="fade" time="250">WindowOpen</animation> + <animation effect="fade" time="500">WindowClose</animation> + <type>image</type> + <id>5</id> + <posX>120</posX> + <posY>575</posY> + <width>217</width> + <height>163</height> + <texture>#header.hover</texture> + <animation effect="fade" time="200">WindowOpen</animation> + <animation effect="fade" time="200">WindowClose</animation> + </control> + <control> + <type>image</type> + <id>5</id> + <posX>1250</posX> + <posY>15</posY> + <width>35</width> + <height>35</height> + <texture>Clock.png</texture> + <animation effect="fade" time="200">WindowOpen</animation> + <animation effect="fade" time="200">WindowClose</animation> + </control> + <control> + <description>Date</description> + <type>label</type> + <id>200</id> + <posX>1230</posX> + <posY>30</posY> + <label>#date</label> + <align>right</align> + <font>font12</font> + <textcolor>ff969696</textcolor> + <animation effect="fade" time="200">WindowOpen</animation> + <animation effect="fade" time="200">WindowClose</animation> + </control> + <control> + <description>Time</description> + <type>label</type> + <id>201</id> + <posX>1233</posX> + <posY>10</posY> + <label>#time</label> + <align>right</align> + <font>font12</font> + <textcolor>ff969696</textcolor> + <animation effect="fade" time="200">WindowOpen</animation> + <animation effect="fade" time="200">WindowClose</animation> + </control> + </controls> +</window> \ No newline at end of file Added: trunk/plugins/File Explorer/file_explorer.png =================================================================== (Binary files differ) Property changes on: trunk/plugins/File Explorer/file_explorer.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: trunk/plugins/File Explorer/file_explorerDisabled.png =================================================================== (Binary files differ) Property changes on: trunk/plugins/File Explorer/file_explorerDisabled.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <fr...@us...> - 2009-10-20 18:06:25
|
Revision: 3130 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=3130&view=rev Author: framug Date: 2009-10-20 18:06:06 +0000 (Tue, 20 Oct 2009) Log Message: ----------- File Explorer V 1.2 - Add default folder for left and right menus. - XMP for MPE1. - Indentation 2 instead of 4. Modified Paths: -------------- trunk/plugins/File Explorer/Constants.cs trunk/plugins/File Explorer/DrivesView.cs trunk/plugins/File Explorer/Language/strings_de.xml trunk/plugins/File Explorer/Language/strings_en.xml trunk/plugins/File Explorer/Language/strings_fr.xml trunk/plugins/File Explorer/Properties/AssemblyInfo.cs trunk/plugins/File Explorer/Setup.Designer.cs trunk/plugins/File Explorer/Setup.cs trunk/plugins/File Explorer/Setup.resx Added Paths: ----------- trunk/plugins/File Explorer/File Explorer.xmp Modified: trunk/plugins/File Explorer/Constants.cs =================================================================== --- trunk/plugins/File Explorer/Constants.cs 2009-10-20 10:45:52 UTC (rev 3129) +++ trunk/plugins/File Explorer/Constants.cs 2009-10-20 18:06:06 UTC (rev 3130) @@ -27,216 +27,219 @@ namespace FileExplorer { - #region enum - /// <summary> - /// Enumerations of all Localized Messages - /// </summary> - public enum LocalizedMessages + #region enum + /// <summary> + /// Enumerations of all Localized Messages + /// </summary> + public enum LocalizedMessages + { + //here begin PlugInInfo region + PluginName = 0, + SetupFormName = 1, + Description = 2, + //here begin SetupForm region + valueName1 = 3, + valueName2 = 4, + valueName3 = 5, + valueName4 = 6, + valueName5 = 7, + valueDescription1 = 8, + valueDescription2 = 9, + valueDescription3 = 10, + valueDescription4 = 11, + valueDescription5 = 12, + Apply = 13, + Cancel = 14, + //here begin Exception region + Exception = 15, + Unknown = 16, + Denied = 17, + Compress1 = 18, + Compress2 = 19, + Cantread1 = 20, + Cantread2 = 21, + //here begin Dialog region + CreateAudio = 22, + AddFile = 23, + Path = 24, + Compress = 25, + CompressFile = 26, + Copy = 27, + File = 28, + To = 29, + Decrypt = 30, + Delete = 31, + Encrypt = 32, + Hide = 33, + Move = 34, + SetReadOnly = 35, + RemoveReadOnly = 36, + Uncompress = 37, + Unhide = 38, + CreateVideo = 39, + AddAudio = 40, + ReadFile = 41, + AddVideo = 42, + //here begin Skin region + MenuLeft = 43, + MenuRight = 44, + //here begin View region + Folder = 45, + CD = 46, + HDD = 47, + RamDisk = 48, + Network = 49, + Removeable = 50, + Menu = 51, + SelectDrive = 52, + Rename = 53, + CreateDir = 54, + Encrypt2 = 55, + Compress3 = 56, + HideUnhide = 57, + AddReadOnly = 58, + CreateAudioDir = 59, + CreateVideoDir = 60, + CreateAudioSel = 61, + CreateVideoSel = 62, + AddAudioSel = 63, + AddVideoSel = 64, + SelectAll = 65, + DisableSel = 66, + DisableSelMode = 67, + EnableSelMode = 68, + FilePreview = 69, + NoPreview = 70, + OpenText = 71, + Attributes = 72, + Hidden = 73, + ReadOnly = 74, + SystemFile = 75, + Compressed = 76, + Encrypted = 77, + None = 78, + Created = 79, + Accessed = 80, + Written = 81, + SystemDir = 82, + //here begin Operation region + CopyFile = 83, + From = 84, + CopyDir = 85, + CopyingFile = 86, + TheFile = 87, + AlreadyExist = 88, + Overwrite = 89, + MoveFile = 90, + MoveDir = 91, + MovingFile = 92, + MovingDir = 93, + TheDir = 94, + DeleteDir = 95, + WantDelete = 96, + AfterDelete = 97, + DeleteFile = 98, + Error = 99, + CantRenameDir = 100, + CantRenameFile = 101, + NewFolder = 102, + CantCreateDir = 103, + EncryptDecrypt = 104, + ChangeEncrypt = 105, + AllSubdir = 106, + CurrentFolder = 107, + ChangeCompress = 108, + HideUnhideSelect = 109, + HideSelect = 110, + UnhideSelect = 111, + ChangeHide = 112, + SetRemoveFlags = 113, + SetFlags = 114, + RemoveFlags = 115, + SetRemoveFlag = 116, + ChangeFlag = 117, + //here begin Playlist region + NewAudioPlaylist = 118, + IncludeAudioFiles = 119, + CurrentFolderSubdir = 120, + NoAudioFilesFound = 121, + NewVideoPlaylist = 122, + IncludeVideoFiles = 123, + NoVideoFilesFound = 124, + NoPlaylist = 125, + NoPlaylistDir = 126, + SelectPlaylist = 127, + DefaultFolderLeft = 128, + DefaultFolderRight = 129, + Browse = 130 + + } + #endregion + + /// <summary> + /// Description of Constants. + /// </summary> + public static class Constants + { + #region PlugIn Info constants + public struct PlugInInfo { - //here begin PlugInInfo region - PluginName = 0, - SetupFormName = 1, - Description = 2, - //here begin SetupForm region - valueName1 = 3, - valueName2 = 4, - valueName3 = 5, - valueName4 = 6, - valueName5 = 7, - valueDescription1 = 8, - valueDescription2 = 9, - valueDescription3 = 10, - valueDescription4 = 11, - valueDescription5 = 12, - Apply = 13, - Cancel = 14, - //here begin Exception region - Exception = 15, - Unknown = 16, - Denied = 17, - Compress1 = 18, - Compress2 = 19, - Cantread1 = 20, - Cantread2 = 21, - //here begin Dialog region - CreateAudio = 22, - AddFile = 23, - Path = 24, - Compress = 25, - CompressFile = 26, - Copy = 27, - File = 28, - To = 29, - Decrypt = 30, - Delete = 31, - Encrypt = 32, - Hide = 33, - Move = 34, - SetReadOnly = 35, - RemoveReadOnly = 36, - Uncompress = 37, - Unhide = 38, - CreateVideo = 39, - AddAudio = 40, - ReadFile = 41, - AddVideo = 42, - //here begin Skin region - MenuLeft = 43, - MenuRight = 44, - //here begin View region - Folder = 45, - CD = 46, - HDD = 47, - RamDisk = 48, - Network = 49, - Removeable = 50, - Menu = 51, - SelectDrive = 52, - Rename = 53, - CreateDir = 54, - Encrypt2 = 55, - Compress3 = 56, - HideUnhide = 57, - AddReadOnly = 58, - CreateAudioDir = 59, - CreateVideoDir = 60, - CreateAudioSel = 61, - CreateVideoSel = 62, - AddAudioSel = 63, - AddVideoSel = 64, - SelectAll = 65, - DisableSel = 66, - DisableSelMode = 67, - EnableSelMode = 68, - FilePreview = 69, - NoPreview = 70, - OpenText = 71, - Attributes = 72, - Hidden = 73, - ReadOnly = 74, - SystemFile = 75, - Compressed = 76, - Encrypted = 77, - None = 78, - Created = 79, - Accessed = 80, - Written = 81, - SystemDir = 82, - //here begin Operation region - CopyFile = 83, - From = 84, - CopyDir = 85, - CopyingFile = 86, - TheFile = 87, - AlreadyExist = 88, - Overwrite = 89, - MoveFile = 90, - MoveDir = 91, - MovingFile = 92, - MovingDir = 93, - TheDir = 94, - DeleteDir = 95, - WantDelete = 96, - AfterDelete = 97, - DeleteFile = 98, - Error = 99, - CantRenameDir = 100, - CantRenameFile = 101, - NewFolder = 102, - CantCreateDir = 103, - EncryptDecrypt = 104, - ChangeEncrypt = 105, - AllSubdir = 106, - CurrentFolder = 107, - ChangeCompress = 108, - HideUnhideSelect = 109, - HideSelect = 110, - UnhideSelect = 111, - ChangeHide = 112, - SetRemoveFlags = 113, - SetFlags = 114, - RemoveFlags = 115, - SetRemoveFlag = 116, - ChangeFlag = 117, - //here begin Playlist region - NewAudioPlaylist = 118, - IncludeAudioFiles = 119, - CurrentFolderSubdir = 120, - NoAudioFilesFound = 121, - NewVideoPlaylist = 122, - IncludeVideoFiles = 123, - NoVideoFilesFound = 124, - NoPlaylist = 125, - NoPlaylistDir = 126, - SelectPlaylist = 127 + /// <summary> + /// Name of PlugIn. + /// </summary> + // public static readonly string NAME = "File Explorer"; + public static readonly string NAME = LocalizeStrings.Get((int)LocalizedMessages.PluginName); - } + /// <summary> + /// Description of PlugIn. + /// </summary> + // public static readonly string DESCRIPTION = "File Explorer"; + public static readonly string DESCRIPTION = LocalizeStrings.Get((int)LocalizedMessages.Description); + + public static readonly string SETUPFORMNAME = LocalizeStrings.Get((int)LocalizedMessages.SetupFormName); + + /// <summary> + /// Author of PlugIn. + /// </summary> + public static readonly string AUTHOR = "Andreas Groß, framug, -ltb- (gfx)"; + } #endregion - /// <summary> - /// Description of Constants. - /// </summary> - public static class Constants - { - #region PlugIn Info constants - public struct PlugInInfo - { - /// <summary> - /// Name of PlugIn. - /// </summary> -// public static readonly string NAME = "File Explorer"; - public static readonly string NAME = LocalizeStrings.Get((int)LocalizedMessages.PluginName); + #region Window IDs + public struct WindowIDs + { + /// <summary> + /// The main windows id. + /// </summary> + public static readonly int MAIN = 557311; + public static readonly int TEXTVIEWER = 557312; + public static readonly int MUSICVIEWER = 557313; + public static readonly int STREAMINGVIEWER = 557314; + public static readonly int PICTUREVIEWER = 557315; + public static readonly int DIALOGOPERATION = 557316; + } + #endregion - /// <summary> - /// Description of PlugIn. - /// </summary> -// public static readonly string DESCRIPTION = "File Explorer"; - public static readonly string DESCRIPTION = LocalizeStrings.Get((int)LocalizedMessages.Description); + #region ControlIDs + public struct ControlIDs + { + public static readonly int LISTBOX_LEFT = 3; + public static readonly int LISTBOX_RIGHT = 4; + } + #endregion - public static readonly string SETUPFORMNAME = LocalizeStrings.Get((int)LocalizedMessages.SetupFormName); - - /// <summary> - /// Author of PlugIn. - /// </summary> - public static readonly string AUTHOR = "Andreas Groß, framug, -ltb- (gfx)"; - } - #endregion - - #region Window IDs - public struct WindowIDs - { - /// <summary> - /// The main windows id. - /// </summary> - public static readonly int MAIN = 557311; - public static readonly int TEXTVIEWER = 557312; - public static readonly int MUSICVIEWER = 557313; - public static readonly int STREAMINGVIEWER = 557314; - public static readonly int PICTUREVIEWER = 557315; - public static readonly int DIALOGOPERATION = 557316; - } - #endregion - - #region ControlIDs - public struct ControlIDs - { - public static readonly int LISTBOX_LEFT = 3; - public static readonly int LISTBOX_RIGHT = 4; - } - #endregion - - #region SetupForm - public struct SetupForm - { - public static readonly string[] valueNames = + #region SetupForm + public struct SetupForm + { + public static readonly string[] valueNames = // {"Extensions", "Trashbin", "AllFiles", "SystemFiles", "SystemDirs"}; { LocalizeStrings.Get((int)LocalizedMessages.valueName1), LocalizeStrings.Get((int)LocalizedMessages.valueName2), LocalizeStrings.Get((int)LocalizedMessages.valueName3), LocalizeStrings.Get((int)LocalizedMessages.valueName4), LocalizeStrings.Get((int)LocalizedMessages.valueName5) }; - - public static readonly string[] valueDescriptions = + + public static readonly string[] valueDescriptions = // {"Show file extensions", "Copy files to trashcan instead of deleting them", // "Show all files", "Show system files", "Show system directories" }; { @@ -244,179 +247,184 @@ LocalizeStrings.Get((int)LocalizedMessages.valueDescription3), LocalizeStrings.Get((int)LocalizedMessages.valueDescription4), LocalizeStrings.Get((int)LocalizedMessages.valueDescription5) }; - public static readonly string APPLY = LocalizeStrings.Get((int)LocalizedMessages.Apply); - public static readonly string CANCEL = LocalizeStrings.Get((int)LocalizedMessages.Cancel); - - public static readonly bool[] valueStandards = {true, true, false, false, false}; - } - #endregion - - #region DriveTypes - public struct DriveTypes - { - public static readonly int REMOVEABLE = 2; - public static readonly int FIXED = 3; - public static readonly int REMOTEDISK = 4; - public static readonly int CD_DVD = 5; - public static readonly int RAMDISK = 6; - } - #endregion - - #region ViewerExtensions - public struct ViewerExtensions - { - public static readonly string[] TextPreviewExtensions = {".txt", ".ini", ".inf", ".bat", ".cs", ".cpp", ".xml", ".h", ".hpp", ".bas", ".vb", ".asm"}; - } - #endregion + public static readonly string DEFAULTFOLDERLEFT = LocalizeStrings.Get((int)LocalizedMessages.DefaultFolderLeft); + public static readonly string DEFAULTFOLDERRIGHT = LocalizeStrings.Get((int)LocalizedMessages.DefaultFolderRight); + public static readonly string BROWSE = LocalizeStrings.Get((int)LocalizedMessages.Browse); - #region Exceptions - public struct Exceptions - { - public static readonly string EXCEPTION = LocalizeStrings.Get((int)LocalizedMessages.Exception); - public static readonly string UNKNOWN = LocalizeStrings.Get((int)LocalizedMessages.Unknown); - public static readonly string DENIED = LocalizeStrings.Get((int)LocalizedMessages.Denied); - public static readonly string COMPRESS1 = LocalizeStrings.Get((int)LocalizedMessages.Compress1); - public static readonly string COMPRESS2 = LocalizeStrings.Get((int)LocalizedMessages.Compress2); - public static readonly string CANTREAD1 = LocalizeStrings.Get((int)LocalizedMessages.Cantread1); - public static readonly string CANTREAD2 = LocalizeStrings.Get((int)LocalizedMessages.Cantread2); - } - #endregion + public static readonly string APPLY = LocalizeStrings.Get((int)LocalizedMessages.Apply); + public static readonly string CANCEL = LocalizeStrings.Get((int)LocalizedMessages.Cancel); - #region Dialog - public struct Dialog - { - public static readonly string CREATEAUDIO = LocalizeStrings.Get((int)LocalizedMessages.CreateAudio); - public static readonly string ADDFILE = LocalizeStrings.Get((int)LocalizedMessages.AddFile); - public static readonly string PATH = LocalizeStrings.Get((int)LocalizedMessages.Path); - public static readonly string COMPRESS = LocalizeStrings.Get((int)LocalizedMessages.Compress); - public static readonly string COMPRESSFILE = LocalizeStrings.Get((int)LocalizedMessages.CompressFile); - public static readonly string COPY = LocalizeStrings.Get((int)LocalizedMessages.Copy); - public static readonly string FILE = LocalizeStrings.Get((int)LocalizedMessages.File); - public static readonly string TO = LocalizeStrings.Get((int)LocalizedMessages.To); - public static readonly string DECRYPT = LocalizeStrings.Get((int)LocalizedMessages.Decrypt); - public static readonly string DELETE = LocalizeStrings.Get((int)LocalizedMessages.Delete); - public static readonly string ENCRYPT = LocalizeStrings.Get((int)LocalizedMessages.Encrypt); - public static readonly string HIDE = LocalizeStrings.Get((int)LocalizedMessages.Hide); - public static readonly string MOVE = LocalizeStrings.Get((int)LocalizedMessages.Move); - public static readonly string SETREADONLY = LocalizeStrings.Get((int)LocalizedMessages.SetReadOnly); - public static readonly string REMOVEREADONLY = LocalizeStrings.Get((int)LocalizedMessages.RemoveReadOnly); - public static readonly string UNCOMPRESS = LocalizeStrings.Get((int)LocalizedMessages.Uncompress); - public static readonly string UNHIDE = LocalizeStrings.Get((int)LocalizedMessages.Unhide); - public static readonly string CREATEVIDEO = LocalizeStrings.Get((int)LocalizedMessages.CreateVideo); - public static readonly string ADDAUDIO = LocalizeStrings.Get((int)LocalizedMessages.AddAudio); - public static readonly string READFILE = LocalizeStrings.Get((int)LocalizedMessages.ReadFile); - public static readonly string ADDVIDEO = LocalizeStrings.Get((int)LocalizedMessages.AddVideo); - } - #endregion + public static readonly bool[] valueStandards = { true, true, false, false, false }; - #region Skin - public struct Skin - { - public static readonly string MENULEFT = LocalizeStrings.Get((int)LocalizedMessages.MenuLeft); - public static readonly string MENURIGHT = LocalizeStrings.Get((int)LocalizedMessages.MenuRight); - } - #endregion + } + #endregion - #region View - public struct View - { - public static readonly string FOLDER = LocalizeStrings.Get((int)LocalizedMessages.Folder); - public static readonly string CD = LocalizeStrings.Get((int)LocalizedMessages.CD); - public static readonly string HDD = LocalizeStrings.Get((int)LocalizedMessages.HDD); - public static readonly string RAMDISK = LocalizeStrings.Get((int)LocalizedMessages.RamDisk); - public static readonly string NETWORK = LocalizeStrings.Get((int)LocalizedMessages.Network); - public static readonly string REMOVEABLE = LocalizeStrings.Get((int)LocalizedMessages.Removeable); - public static readonly string MENU = LocalizeStrings.Get((int)LocalizedMessages.Menu); - public static readonly string SELECTDRIVE = LocalizeStrings.Get((int)LocalizedMessages.SelectDrive); - public static readonly string RENAME = LocalizeStrings.Get((int)LocalizedMessages.Rename); - public static readonly string CREATEDIR = LocalizeStrings.Get((int)LocalizedMessages.CreateDir); - public static readonly string ENCRYPT2 = LocalizeStrings.Get((int)LocalizedMessages.Encrypt2); - public static readonly string COMPRESS3 = LocalizeStrings.Get((int)LocalizedMessages.Compress3); - public static readonly string HIDEUNHIDE = LocalizeStrings.Get((int)LocalizedMessages.HideUnhide); - public static readonly string ADDREADONLY = LocalizeStrings.Get((int)LocalizedMessages.AddReadOnly); - public static readonly string CREATEAUDIODIR = LocalizeStrings.Get((int)LocalizedMessages.CreateAudioDir); - public static readonly string CREATEVIDEODIR = LocalizeStrings.Get((int)LocalizedMessages.CreateVideoDir); - public static readonly string CREATEAUDIOSEL = LocalizeStrings.Get((int)LocalizedMessages.CreateAudioSel); - public static readonly string CREATEVIDEOSEL = LocalizeStrings.Get((int)LocalizedMessages.CreateVideoSel); - public static readonly string ADDAUDIOSEL = LocalizeStrings.Get((int)LocalizedMessages.AddAudioSel); - public static readonly string ADDVIDEOSEL = LocalizeStrings.Get((int)LocalizedMessages.AddVideoSel); - public static readonly string SELECTALL = LocalizeStrings.Get((int)LocalizedMessages.SelectAll); - public static readonly string DISABLESEL = LocalizeStrings.Get((int)LocalizedMessages.DisableSel); - public static readonly string DISABLESELMODE = LocalizeStrings.Get((int)LocalizedMessages.DisableSelMode); - public static readonly string ENABLESELMODE = LocalizeStrings.Get((int)LocalizedMessages.EnableSelMode); - public static readonly string FILEPREVIEW = LocalizeStrings.Get((int)LocalizedMessages.FilePreview); - public static readonly string NOPREVIEW = LocalizeStrings.Get((int)LocalizedMessages.NoPreview); - public static readonly string OPENTEXT = LocalizeStrings.Get((int)LocalizedMessages.OpenText); - public static readonly string ATTRIBUTES = LocalizeStrings.Get((int)LocalizedMessages.Attributes); - public static readonly string HIDDEN = LocalizeStrings.Get((int)LocalizedMessages.Hidden); - public static readonly string READONLY = LocalizeStrings.Get((int)LocalizedMessages.ReadOnly); - public static readonly string SYSTEMFILE = LocalizeStrings.Get((int)LocalizedMessages.SystemFile); - public static readonly string COMPRESSED = LocalizeStrings.Get((int)LocalizedMessages.Compressed); - public static readonly string ENCRYPTED = LocalizeStrings.Get((int)LocalizedMessages.Encrypted); - public static readonly string NONE = LocalizeStrings.Get((int)LocalizedMessages.None); - public static readonly string CREATED = LocalizeStrings.Get((int)LocalizedMessages.Created); - public static readonly string ACCESSED = LocalizeStrings.Get((int)LocalizedMessages.Accessed); - public static readonly string WRITTEN = LocalizeStrings.Get((int)LocalizedMessages.Written); - public static readonly string SYSTEMDIR = LocalizeStrings.Get((int)LocalizedMessages.SystemDir); - } - #endregion + #region DriveTypes + public struct DriveTypes + { + public static readonly int REMOVEABLE = 2; + public static readonly int FIXED = 3; + public static readonly int REMOTEDISK = 4; + public static readonly int CD_DVD = 5; + public static readonly int RAMDISK = 6; + } + #endregion - #region Operation - public struct Operation - { - public static readonly string COPYFILE = LocalizeStrings.Get((int)LocalizedMessages.CopyFile); - public static readonly string FROM = LocalizeStrings.Get((int)LocalizedMessages.From); - public static readonly string COPYDIR = LocalizeStrings.Get((int)LocalizedMessages.CopyDir); - public static readonly string COPYINGFILE = LocalizeStrings.Get((int)LocalizedMessages.CopyingFile); - public static readonly string THEFILE = LocalizeStrings.Get((int)LocalizedMessages.TheFile); - public static readonly string ALREADYEXIST = LocalizeStrings.Get((int)LocalizedMessages.AlreadyExist); - public static readonly string OVERWRITE = LocalizeStrings.Get((int)LocalizedMessages.Overwrite); - public static readonly string MOVEFILE = LocalizeStrings.Get((int)LocalizedMessages.MoveFile); - public static readonly string MOVEDIR = LocalizeStrings.Get((int)LocalizedMessages.MoveDir); - public static readonly string MOVINGFILE = LocalizeStrings.Get((int)LocalizedMessages.MovingFile); - public static readonly string MOVINGDIR = LocalizeStrings.Get((int)LocalizedMessages.MovingDir); - public static readonly string THEDIR = LocalizeStrings.Get((int)LocalizedMessages.TheDir); - public static readonly string DELETEDIR = LocalizeStrings.Get((int)LocalizedMessages.DeleteDir); - public static readonly string WANTDELETE = LocalizeStrings.Get((int)LocalizedMessages.WantDelete); - public static readonly string AFTERDELETE = LocalizeStrings.Get((int)LocalizedMessages.AfterDelete); - public static readonly string DELETEFILE = LocalizeStrings.Get((int)LocalizedMessages.DeleteFile); - public static readonly string ERROR = LocalizeStrings.Get((int)LocalizedMessages.Error); - public static readonly string CANTRENAMEDIR = LocalizeStrings.Get((int)LocalizedMessages.CantRenameDir); - public static readonly string CANTRENAMEFILE = LocalizeStrings.Get((int)LocalizedMessages.CantRenameFile); - public static readonly string NEWFOLDER = LocalizeStrings.Get((int)LocalizedMessages.NewFolder); - public static readonly string CANTCREATEDIR = LocalizeStrings.Get((int)LocalizedMessages.CantCreateDir); - public static readonly string ENCRYPTDECRYPT = LocalizeStrings.Get((int)LocalizedMessages.EncryptDecrypt); - public static readonly string CHANGEENCRYPT = LocalizeStrings.Get((int)LocalizedMessages.ChangeEncrypt); - public static readonly string ALLSUBDIR = LocalizeStrings.Get((int)LocalizedMessages.AllSubdir); - public static readonly string CURRENTFOLDER = LocalizeStrings.Get((int)LocalizedMessages.CurrentFolder); - public static readonly string CHANGECOMPRESS = LocalizeStrings.Get((int)LocalizedMessages.ChangeCompress); - public static readonly string HIDEUNHIDESELECT = LocalizeStrings.Get((int)LocalizedMessages.HideUnhideSelect); - public static readonly string HIDESELECT = LocalizeStrings.Get((int)LocalizedMessages.HideSelect); - public static readonly string UNHIDESELECT = LocalizeStrings.Get((int)LocalizedMessages.UnhideSelect); - public static readonly string CHANGEHIDE = LocalizeStrings.Get((int)LocalizedMessages.ChangeHide); - public static readonly string SETREMOVEFLAGS = LocalizeStrings.Get((int)LocalizedMessages.SetRemoveFlags); - public static readonly string SETFLAGS = LocalizeStrings.Get((int)LocalizedMessages.SetFlags); - public static readonly string REMOVEFLAGS = LocalizeStrings.Get((int)LocalizedMessages.RemoveFlags); - public static readonly string SETREMOVEFLAG = LocalizeStrings.Get((int)LocalizedMessages.SetRemoveFlag); - public static readonly string CHANGEFLAG = LocalizeStrings.Get((int)LocalizedMessages.ChangeFlag); - } - #endregion - - #region Playlist - public struct Playlist - { - public static readonly string NEWAUDIOPLAYLIST = LocalizeStrings.Get((int)LocalizedMessages.NewAudioPlaylist); - public static readonly string INCLUDEAUDIOFILES = LocalizeStrings.Get((int)LocalizedMessages.IncludeAudioFiles); - public static readonly string CURRENTFOLDERSUBDIR = LocalizeStrings.Get((int)LocalizedMessages.CurrentFolderSubdir); - public static readonly string NOAUDIOFILESFOUND = LocalizeStrings.Get((int)LocalizedMessages.NoAudioFilesFound); - public static readonly string NEWVIDEOPLAYLIST = LocalizeStrings.Get((int)LocalizedMessages.NewVideoPlaylist); - public static readonly string INCLUDEVIDEOFILES = LocalizeStrings.Get((int)LocalizedMessages.IncludeVideoFiles); - public static readonly string NOVIDEOFILESFOUND = LocalizeStrings.Get((int)LocalizedMessages.NoVideoFilesFound); - public static readonly string NOPLAYLIST = LocalizeStrings.Get((int)LocalizedMessages.NoPlaylist); - public static readonly string NOPLAYLISTDIR = LocalizeStrings.Get((int)LocalizedMessages.NoPlaylistDir); - public static readonly string SELECTPLAYLIST = LocalizeStrings.Get((int)LocalizedMessages.SelectPlaylist); - } - #endregion + #region ViewerExtensions + public struct ViewerExtensions + { + public static readonly string[] TextPreviewExtensions = { ".txt", ".ini", ".inf", ".bat", ".cs", ".cpp", ".xml", ".h", ".hpp", ".bas", ".vb", ".asm" }; } + #endregion + + #region Exceptions + public struct Exceptions + { + public static readonly string EXCEPTION = LocalizeStrings.Get((int)LocalizedMessages.Exception); + public static readonly string UNKNOWN = LocalizeStrings.Get((int)LocalizedMessages.Unknown); + public static readonly string DENIED = LocalizeStrings.Get((int)LocalizedMessages.Denied); + public static readonly string COMPRESS1 = LocalizeStrings.Get((int)LocalizedMessages.Compress1); + public static readonly string COMPRESS2 = LocalizeStrings.Get((int)LocalizedMessages.Compress2); + public static readonly string CANTREAD1 = LocalizeStrings.Get((int)LocalizedMessages.Cantread1); + public static readonly string CANTREAD2 = LocalizeStrings.Get((int)LocalizedMessages.Cantread2); + } + #endregion + + #region Dialog + public struct Dialog + { + public static readonly string CREATEAUDIO = LocalizeStrings.Get((int)LocalizedMessages.CreateAudio); + public static readonly string ADDFILE = LocalizeStrings.Get((int)LocalizedMessages.AddFile); + public static readonly string PATH = LocalizeStrings.Get((int)LocalizedMessages.Path); + public static readonly string COMPRESS = LocalizeStrings.Get((int)LocalizedMessages.Compress); + public static readonly string COMPRESSFILE = LocalizeStrings.Get((int)LocalizedMessages.CompressFile); + public static readonly string COPY = LocalizeStrings.Get((int)LocalizedMessages.Copy); + public static readonly string FILE = LocalizeStrings.Get((int)LocalizedMessages.File); + public static readonly string TO = LocalizeStrings.Get((int)LocalizedMessages.To); + public static readonly string DECRYPT = LocalizeStrings.Get((int)LocalizedMessages.Decrypt); + public static readonly string DELETE = LocalizeStrings.Get((int)LocalizedMessages.Delete); + public static readonly string ENCRYPT = LocalizeStrings.Get((int)LocalizedMessages.Encrypt); + public static readonly string HIDE = LocalizeStrings.Get((int)LocalizedMessages.Hide); + public static readonly string MOVE = LocalizeStrings.Get((int)LocalizedMessages.Move); + public static readonly string SETREADONLY = LocalizeStrings.Get((int)LocalizedMessages.SetReadOnly); + public static readonly string REMOVEREADONLY = LocalizeStrings.Get((int)LocalizedMessages.RemoveReadOnly); + public static readonly string UNCOMPRESS = LocalizeStrings.Get((int)LocalizedMessages.Uncompress); + public static readonly string UNHIDE = LocalizeStrings.Get((int)LocalizedMessages.Unhide); + public static readonly string CREATEVIDEO = LocalizeStrings.Get((int)LocalizedMessages.CreateVideo); + public static readonly string ADDAUDIO = LocalizeStrings.Get((int)LocalizedMessages.AddAudio); + public static readonly string READFILE = LocalizeStrings.Get((int)LocalizedMessages.ReadFile); + public static readonly string ADDVIDEO = LocalizeStrings.Get((int)LocalizedMessages.AddVideo); + } + #endregion + + #region Skin + public struct Skin + { + public static readonly string MENULEFT = LocalizeStrings.Get((int)LocalizedMessages.MenuLeft); + public static readonly string MENURIGHT = LocalizeStrings.Get((int)LocalizedMessages.MenuRight); + } + #endregion + + #region View + public struct View + { + public static readonly string FOLDER = LocalizeStrings.Get((int)LocalizedMessages.Folder); + public static readonly string CD = LocalizeStrings.Get((int)LocalizedMessages.CD); + public static readonly string HDD = LocalizeStrings.Get((int)LocalizedMessages.HDD); + public static readonly string RAMDISK = LocalizeStrings.Get((int)LocalizedMessages.RamDisk); + public static readonly string NETWORK = LocalizeStrings.Get((int)LocalizedMessages.Network); + public static readonly string REMOVEABLE = LocalizeStrings.Get((int)LocalizedMessages.Removeable); + public static readonly string MENU = LocalizeStrings.Get((int)LocalizedMessages.Menu); + public static readonly string SELECTDRIVE = LocalizeStrings.Get((int)LocalizedMessages.SelectDrive); + public static readonly string RENAME = LocalizeStrings.Get((int)LocalizedMessages.Rename); + public static readonly string CREATEDIR = LocalizeStrings.Get((int)LocalizedMessages.CreateDir); + public static readonly string ENCRYPT2 = LocalizeStrings.Get((int)LocalizedMessages.Encrypt2); + public static readonly string COMPRESS3 = LocalizeStrings.Get((int)LocalizedMessages.Compress3); + public static readonly string HIDEUNHIDE = LocalizeStrings.Get((int)LocalizedMessages.HideUnhide); + public static readonly string ADDREADONLY = LocalizeStrings.Get((int)LocalizedMessages.AddReadOnly); + public static readonly string CREATEAUDIODIR = LocalizeStrings.Get((int)LocalizedMessages.CreateAudioDir); + public static readonly string CREATEVIDEODIR = LocalizeStrings.Get((int)LocalizedMessages.CreateVideoDir); + public static readonly string CREATEAUDIOSEL = LocalizeStrings.Get((int)LocalizedMessages.CreateAudioSel); + public static readonly string CREATEVIDEOSEL = LocalizeStrings.Get((int)LocalizedMessages.CreateVideoSel); + public static readonly string ADDAUDIOSEL = LocalizeStrings.Get((int)LocalizedMessages.AddAudioSel); + public static readonly string ADDVIDEOSEL = LocalizeStrings.Get((int)LocalizedMessages.AddVideoSel); + public static readonly string SELECTALL = LocalizeStrings.Get((int)LocalizedMessages.SelectAll); + public static readonly string DISABLESEL = LocalizeStrings.Get((int)LocalizedMessages.DisableSel); + public static readonly string DISABLESELMODE = LocalizeStrings.Get((int)LocalizedMessages.DisableSelMode); + public static readonly string ENABLESELMODE = LocalizeStrings.Get((int)LocalizedMessages.EnableSelMode); + public static readonly string FILEPREVIEW = LocalizeStrings.Get((int)LocalizedMessages.FilePreview); + public static readonly string NOPREVIEW = LocalizeStrings.Get((int)LocalizedMessages.NoPreview); + public static readonly string OPENTEXT = LocalizeStrings.Get((int)LocalizedMessages.OpenText); + public static readonly string ATTRIBUTES = LocalizeStrings.Get((int)LocalizedMessages.Attributes); + public static readonly string HIDDEN = LocalizeStrings.Get((int)LocalizedMessages.Hidden); + public static readonly string READONLY = LocalizeStrings.Get((int)LocalizedMessages.ReadOnly); + public static readonly string SYSTEMFILE = LocalizeStrings.Get((int)LocalizedMessages.SystemFile); + public static readonly string COMPRESSED = LocalizeStrings.Get((int)LocalizedMessages.Compressed); + public static readonly string ENCRYPTED = LocalizeStrings.Get((int)LocalizedMessages.Encrypted); + public static readonly string NONE = LocalizeStrings.Get((int)LocalizedMessages.None); + public static readonly string CREATED = LocalizeStrings.Get((int)LocalizedMessages.Created); + public static readonly string ACCESSED = LocalizeStrings.Get((int)LocalizedMessages.Accessed); + public static readonly string WRITTEN = LocalizeStrings.Get((int)LocalizedMessages.Written); + public static readonly string SYSTEMDIR = LocalizeStrings.Get((int)LocalizedMessages.SystemDir); + } + #endregion + + #region Operation + public struct Operation + { + public static readonly string COPYFILE = LocalizeStrings.Get((int)LocalizedMessages.CopyFile); + public static readonly string FROM = LocalizeStrings.Get((int)LocalizedMessages.From); + public static readonly string COPYDIR = LocalizeStrings.Get((int)LocalizedMessages.CopyDir); + public static readonly string COPYINGFILE = LocalizeStrings.Get((int)LocalizedMessages.CopyingFile); + public static readonly string THEFILE = LocalizeStrings.Get((int)LocalizedMessages.TheFile); + public static readonly string ALREADYEXIST = LocalizeStrings.Get((int)LocalizedMessages.AlreadyExist); + public static readonly string OVERWRITE = LocalizeStrings.Get((int)LocalizedMessages.Overwrite); + public static readonly string MOVEFILE = LocalizeStrings.Get((int)LocalizedMessages.MoveFile); + public static readonly string MOVEDIR = LocalizeStrings.Get((int)LocalizedMessages.MoveDir); + public static readonly string MOVINGFILE = LocalizeStrings.Get((int)LocalizedMessages.MovingFile); + public static readonly string MOVINGDIR = LocalizeStrings.Get((int)LocalizedMessages.MovingDir); + public static readonly string THEDIR = LocalizeStrings.Get((int)LocalizedMessages.TheDir); + public static readonly string DELETEDIR = LocalizeStrings.Get((int)LocalizedMessages.DeleteDir); + public static readonly string WANTDELETE = LocalizeStrings.Get((int)LocalizedMessages.WantDelete); + public static readonly string AFTERDELETE = LocalizeStrings.Get((int)LocalizedMessages.AfterDelete); + public static readonly string DELETEFILE = LocalizeStrings.Get((int)LocalizedMessages.DeleteFile); + public static readonly string ERROR = LocalizeStrings.Get((int)LocalizedMessages.Error); + public static readonly string CANTRENAMEDIR = LocalizeStrings.Get((int)LocalizedMessages.CantRenameDir); + public static readonly string CANTRENAMEFILE = LocalizeStrings.Get((int)LocalizedMessages.CantRenameFile); + public static readonly string NEWFOLDER = LocalizeStrings.Get((int)LocalizedMessages.NewFolder); + public static readonly string CANTCREATEDIR = LocalizeStrings.Get((int)LocalizedMessages.CantCreateDir); + public static readonly string ENCRYPTDECRYPT = LocalizeStrings.Get((int)LocalizedMessages.EncryptDecrypt); + public static readonly string CHANGEENCRYPT = LocalizeStrings.Get((int)LocalizedMessages.ChangeEncrypt); + public static readonly string ALLSUBDIR = LocalizeStrings.Get((int)LocalizedMessages.AllSubdir); + public static readonly string CURRENTFOLDER = LocalizeStrings.Get((int)LocalizedMessages.CurrentFolder); + public static readonly string CHANGECOMPRESS = LocalizeStrings.Get((int)LocalizedMessages.ChangeCompress); + public static readonly string HIDEUNHIDESELECT = LocalizeStrings.Get((int)LocalizedMessages.HideUnhideSelect); + public static readonly string HIDESELECT = LocalizeStrings.Get((int)LocalizedMessages.HideSelect); + public static readonly string UNHIDESELECT = LocalizeStrings.Get((int)LocalizedMessages.UnhideSelect); + public static readonly string CHANGEHIDE = LocalizeStrings.Get((int)LocalizedMessages.ChangeHide); + public static readonly string SETREMOVEFLAGS = LocalizeStrings.Get((int)LocalizedMessages.SetRemoveFlags); + public static readonly string SETFLAGS = LocalizeStrings.Get((int)LocalizedMessages.SetFlags); + public static readonly string REMOVEFLAGS = LocalizeStrings.Get((int)LocalizedMessages.RemoveFlags); + public static readonly string SETREMOVEFLAG = LocalizeStrings.Get((int)LocalizedMessages.SetRemoveFlag); + public static readonly string CHANGEFLAG = LocalizeStrings.Get((int)LocalizedMessages.ChangeFlag); + } + #endregion + + #region Playlist + public struct Playlist + { + public static readonly string NEWAUDIOPLAYLIST = LocalizeStrings.Get((int)LocalizedMessages.NewAudioPlaylist); + public static readonly string INCLUDEAUDIOFILES = LocalizeStrings.Get((int)LocalizedMessages.IncludeAudioFiles); + public static readonly string CURRENTFOLDERSUBDIR = LocalizeStrings.Get((int)LocalizedMessages.CurrentFolderSubdir); + public static readonly string NOAUDIOFILESFOUND = LocalizeStrings.Get((int)LocalizedMessages.NoAudioFilesFound); + public static readonly string NEWVIDEOPLAYLIST = LocalizeStrings.Get((int)LocalizedMessages.NewVideoPlaylist); + public static readonly string INCLUDEVIDEOFILES = LocalizeStrings.Get((int)LocalizedMessages.IncludeVideoFiles); + public static readonly string NOVIDEOFILESFOUND = LocalizeStrings.Get((int)LocalizedMessages.NoVideoFilesFound); + public static readonly string NOPLAYLIST = LocalizeStrings.Get((int)LocalizedMessages.NoPlaylist); + public static readonly string NOPLAYLISTDIR = LocalizeStrings.Get((int)LocalizedMessages.NoPlaylistDir); + public static readonly string SELECTPLAYLIST = LocalizeStrings.Get((int)LocalizedMessages.SelectPlaylist); + } + #endregion + } } Modified: trunk/plugins/File Explorer/DrivesView.cs =================================================================== --- trunk/plugins/File Explorer/DrivesView.cs 2009-10-20 10:45:52 UTC (rev 3129) +++ trunk/plugins/File Explorer/DrivesView.cs 2009-10-20 18:06:06 UTC (rev 3130) @@ -36,3021 +36,3043 @@ namespace FileExplorer { - #region Structs - public struct Drive - { - public string Path; - public string TypeDescription; - public int Type; - } - - public struct FileInfo - { - public string Path; - public string Name; - public float SizeInByte; - public float SizeInKB; - public float SizeInMB; - public float SizeInGB; - public string LastChanged; - public string CreatedOn; - public string LastRead; - public bool ReadOnly; - public bool Hidden; - public bool SystemFile; - public bool Encrypted; - public bool Compressed; - } - - public struct PathInfo - { - public string Name; - public string Path; - public string CreatedOn; - public string LastChanged; - public string LastRead; - public bool ReadOnly; - public bool Hidden; - public bool SystemFile; - public bool Encrypted; - public bool Compressed; - } - - public struct Info - { - public FileInfo File; - public PathInfo Path; - public bool IsPath; - - public bool IsFile - { - get { return !IsPath; } - set { IsPath = !value; } - } - } - #endregion - - /// <summary> - /// Description of DrivesView. - /// </summary> - public class DrivesView - { - #region static members - [DllImport(".\\Plugins\\Windows\\Compression.dll")] - private static extern bool CompressFile(string file); - - [DllImport(".\\Plugins\\Windows\\Compression.dll")] - private static extern bool UncompressFile(string file); - - [DllImport("kernel32.dll")] - private static extern int SetFileAttributes(string filename, System.UInt32 dwFileAttributes); - - private static readonly System.UInt32 FILE_ATTRIBUTE_NORMAL = 0x00000080; - private static readonly System.UInt32 FILE_ATTRIBUTE_HIDDEN = 0x00000002; - private static readonly System.UInt32 FILE_ATTRIBUTE_READONLY = 0x00000001; - private static readonly System.UInt32 FILE_ATTRIBUTE_SYSTEM = 0x00000004; - #endregion - - #region vars - private int lstId; - private int winId; - private int lblId; - private int lblDirId; - - private string currentPath = null; - private string currentDrive = null; - private ArrayList drives = null; - private ArrayList currentPathList = null; - - private ArrayList selectedList = null; - - private bool showExtensions; - private bool trashcan; - private bool showAllFiles; - private bool showSystemFiles; - private bool showSystemDirs; - private bool selectionMode = false; - - private DrivesView secondView = null; - - private ArrayList lstFiles = null; - - private GUIDialogOperation dlgOp = null; - - #endregion - - #region ctor - public DrivesView(int windowID, int guiListViewControlID, int infoLabelID, int dirLabelID) - { - this.lstId = guiListViewControlID; - this.winId = windowID; - this.lblId = infoLabelID; - this.lblDirId = dirLabelID; - - CreateDrivesList(); - SetStandardValues(); - LoadPath(); - FillListControl(); - } - #endregion - - #region private members - private void CreateDrivesList() - { - drives = new ArrayList(); - - foreach (string d in Environment.GetLogicalDrives()) - { - Drive drv = new Drive(); - drv.Path = d; - drv.Type = Utils.getDriveType(d); - - if (drv.Type == Constants.DriveTypes.CD_DVD) - { -// drv.TypeDescription = "CD/DVD Drive"; - drv.TypeDescription = Constants.View.CD; + #region Structs + public struct Drive + { + public string Path; + public string TypeDescription; + public int Type; + } + + public struct FileInfo + { + public string Path; + public string Name; + public float SizeInByte; + public float SizeInKB; + public float SizeInMB; + public float SizeInGB; + public string LastChanged; + public string CreatedOn; + public string LastRead; + public bool ReadOnly; + public bool Hidden; + public bool SystemFile; + public bool Encrypted; + public bool Compressed; + } + + public struct PathInfo + { + public string Name; + public string Path; + public string CreatedOn; + public string LastChanged; + public string LastRead; + public bool ReadOnly; + public bool Hidden; + public bool SystemFile; + public bool Encrypted; + public bool Compressed; + } + + public struct Info + { + public FileInfo File; + public PathInfo Path; + public bool IsPath; + + public bool IsFile + { + get { return !IsPath; } + set { IsPath = !value; } + } + } + #endregion + + /// <summary> + /// Description of DrivesView. + /// </summary> + public class DrivesView + { + #region static members + [DllImport(".\\Plugins\\Windows\\Compression.dll")] + private static extern bool CompressFile(string file); + + [DllImport(".\\Plugins\\Windows\\Compression.dll")] + private static extern bool UncompressFile(string file); + + [DllImport("kernel32.dll")] + private static extern int SetFileAttributes(string filename, System.UInt32 dwFileAttributes); + + private static readonly System.UInt32 FILE_ATTRIBUTE_NORMAL = 0x00000080; + private static readonly System.UInt32 FILE_ATTRIBUTE_HIDDEN = 0x00000002; + private static readonly System.UInt32 FILE_ATTRIBUTE_READONLY = 0x00000001; + private static readonly System.UInt32 FILE_ATTRIBUTE_SYSTEM = 0x00000004; + #endregion + + #region vars + private int lstId; + private int winId; + private int lblId; + private int lblDirId; + + private string currentPath = null; + private string currentDrive = null; + private ArrayList drives = null; + private ArrayList currentPathList = null; + + private ArrayList selectedList = null; + + private bool showExtensions; + private bool trashcan; + private bool showAllFiles; + private bool showSystemFiles; + private bool showSystemDirs; + private bool selectionMode = false; + + private DrivesView secondView = null; + + private ArrayList lstFiles = null; + + private GUIDialogOperation dlgOp = null; + + #endregion + + #region ctor + public DrivesView(int windowID, int guiListViewControlID, int infoLabelID, int dirLabelID) + { + this.lstId = guiListViewControlID; + this.winId = windowID; + this.lblId = infoLabelID; + this.lblDirId = dirLabelID; + + CreateDrivesList(); + // SetStandardValues(); + SetStandardValues(this.lstId); + LoadPath(); + FillListControl(); + } + #endregion + + #region private members + private void CreateDrivesList() + { + drives = new ArrayList(); + + foreach (string d in Environment.GetLogicalDrives()) + { + Drive drv = new Drive(); + drv.Path = d; + drv.Type = Utils.getDriveType(d); + + if (drv.Type == Constants.DriveTypes.CD_DVD) + { + // drv.TypeDescription = "CD/DVD Drive"; + drv.TypeDescription = Constants.View.CD; + } + else if (drv.Type == Constants.DriveTypes.FIXED) + { + // drv.TypeDescription = "HDD"; + drv.TypeDescription = Constants.View.HDD; + } + else if (drv.Type == Constants.DriveTypes.RAMDISK) + { + // drv.TypeDescription = "RamDisk"; + drv.TypeDescription = Constants.View.RAMDISK; + } + else if (drv.Type == Constants.DriveTypes.REMOTEDISK) + { + // drv.TypeDescription = "Network Drive"; + drv.TypeDescription = Constants.View.NETWORK; + } + else if (drv.Type == Constants.DriveTypes.REMOVEABLE) + { + // drv.TypeDescription = "Removeable"; + drv.TypeDescription = Constants.View.REMOVEABLE; + } + + drives.Add(drv); + } + } + + private void SetStandardValues(int lstId) + { + SetStandardValues(); + string DefaultPath = String.Empty; + XmlConfig XmlConfig = new XmlConfig(); + if (lstId == Constants.ControlIDs.LISTBOX_LEFT) + { + DefaultPath = XmlConfig.ReadXmlConfig("File Explorer", "explorer", Constants.SetupForm.DEFAULTFOLDERLEFT, String.Empty); + } + else + { + DefaultPath = XmlConfig.ReadXmlConfig("File Explorer", "explorer", Constants.SetupForm.DEFAULTFOLDERRIGHT, String.Empty); + } + if (DefaultPath != String.Empty) + { + currentPath = DefaultPath; + } + } + + private void SetStandardValues() + { + foreach (Drive d in drives) + { + if (d.Type == Constants.DriveTypes.FIXED) + { + currentDrive = d.Path; + currentPath = d.Path; + + break; + } + } + + showExtensions = Constants.SetupForm.valueStandards[0]; + trashcan = Constants.SetupForm.valueStandards[1]; + showAllFiles = Constants.SetupForm.valueStandards[2]; + showSystemFiles = Constants.SetupForm.valueStandards[3]; + showSystemDirs = Constants.SetupForm.valueStandards[4]; + selectionMode = false; + } + + private bool LoadPath() + { + selectedList = null; + string[] files = null; + try + { + files = System.IO.Directory.GetFileSystemEntries(currentPath); + } + catch (Exception e) + { + ExceptionViewer.ShowException(e); + return false; + } + + currentPathList = new ArrayList(); + + foreach (string s in files) + { + Info info = new Info(); + + if (System.IO.File.Exists(s)) + { + System.IO.FileInfo fi = new System.IO.FileInfo(s); + + info.IsFile = true; + info.File.Name = GetFilename(s); + info.File.Path = GetPath(s); + info.File.CreatedOn = fi.CreationTime.ToString(); + info.File.LastChanged = fi.LastWriteTime.ToString(); + info.File.LastRead = fi.LastAccessTime.ToString(); + info.File.SizeInByte = (float)fi.Length; + info.File.SizeInKB = info.File.SizeInByte / 1024; + info.File.SizeInMB = info.File.SizeInKB / 1024; + info.File.SizeInGB = info.File.SizeInMB / 1024; + + info.File.Hidden = this.IsHiddenAttribute(fi.Attributes); + info.File.ReadOnly = this.IsReadOnlyAttribute(fi.Attributes); + info.File.SystemFile = this.IsSystemAttribute(fi.Attributes); + info.File.Compressed = this.IsCompressedAttribute(fi.Attributes); + info.File.Encrypted = this.IsEncryptedAttribute(fi.Attributes); + } + else + { + System.IO.DirectoryInfo di = new System.IO.DirectoryInfo(s); + + info.IsPath = true; + info.Path.Name = GetFilename(s); + info.Path.Path = s; + info.Path.CreatedOn = di.CreationTime.ToString(); + info.Path.LastChanged = di.LastWriteTime.ToString(); + info.Path.LastRead = di.LastAccessTime.ToString(); + info.Path.Hidden = this.IsHiddenAttribute(di.Attributes); + info.Path.ReadOnly = this.IsReadOnlyAttribute(di.Attributes); + info.Path.SystemFile = this.IsSystemAttribute(di.Attributes); + info.Path.Compressed = this.IsCompressedAttribute(di.Attributes); + info.Path.Encrypted = this.IsEncryptedAttribute(di.Attributes); + } + + currentPathList.Add(info); + } + + return true; + } + + private void FillListControl() + { + GUIControl.ClearControl(winId, lstId); + string path = Utils.RemoveTrailingSlash(currentPath); + + if (!currentPath.Equals(currentDrive)) + { + GUIListItem item = new GUIListItem(".."); + item.Path = GetPath(currentPath); + + Utils.SetDefaultIcons(item); + GUIControl.AddListItemControl(winId, lstId, item); + } + + foreach (Info info in currentPathList) + { + if (info.IsPath) + { + bool b = true; + + if ((!this.showAllFiles) && (info.Path.Hidden)) + { + b = false; + } + + if ((!this.showSystemDirs) && (info.Path.SystemFile)) + { + b = false; + } + + if (b) + { + GUIListItem item = new GUIListItem(info.Path.Name); + item.IsFolder = true; + item.Path = info.Path.Path; + + Utils.SetDefaultIcons(item); + GUIControl.AddListItemControl(winId, lstId, item); + } + } + } + + foreach (Info info in currentPathList) + { + if (info.IsFile) + { + bool b = true; + + if ((!this.showAllFiles) && (info.File.Hidden)) + { + b = false; + } + + if ((!this.showSystemFiles) && (info.File.SystemFile)) + { + b = false; + } + + if (b) + { + GUIListItem item = new GUIListItem(info.File.Name); + item.IsFolder = false; + item.Path = info.File.Path; + item.Label2 = Utils.GetSize((long)info.File.SizeInByte); + + GUIControl.AddListItemControl(winId, lstId, item); + } + } + } + + // string cf = "Folder: "; + string cf = Constants.View.FOLDER; + if (currentPath.Length > 50) + { + cf += currentDrive + "..\\" + GetFilename(currentPath); + } + else + { + cf += currentPath; + } + GUIControl.SetControlLabel(winId, lblDirId, cf); + } + #endregion + + #region public members + public void Update() + { + LoadPath(); + FillListControl(); + } + + #region menu id constants + private struct MenuIDs + { + public const int SelectDrive = 0; + public const int Copy = 1; + public const int Move = 2; + public const int Delete = 3; + public const int Rename = 4; + public const int CreateDirectory = 5; + public const int EncryptDecrypt = 6; + public const int CompressUncomopress = 7; + public const int HideUnhide = 8; + public const int ReadOnlyFlag = 9; + public const int AudioPlaylist = 10; + public const int VideoPlayList = 11; + public const int AddToAudioPlaylist = 12; + public const int AddToVideoPlaylist = 13; + public const int SelectAll = 14; + public const int DisableSelections = 15; + public const int SelectionMode = 16; + } + #endregion + + public void ShowMenu() + { + GUIDialogMenu mnu = (GUIDialogMenu)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_DIALOG_MENU); + mnu.Reset(); + /* mnu.SetHeading("Menu"); + mnu.Add("Select Drive"); + mnu.Add("Copy"); + mnu.Add("Move"); + mnu.Add("Delete"); + mnu.Add("Rename"); + mnu.Add("Create directory"); + mnu.Add("Encrypt/Decrypt (NTFS only)"); + mnu.Add("Compress/Uncompress (NTFS only)"); + mnu.Add("Hide/Unhide"); + mnu.Add("Add/Remove readonly flag"); */ + mnu.SetHeading(Constants.View.MENU); + mnu.Add(Constants.View.SELECTDRIVE); + mnu.Add(Constants.Dialog.COPY); // was already defined in Dialog + mnu.Add(Constants.Dialog.MOVE); // was already defined in Dialog + mnu.Add(Constants.Dialog.DELETE); // was already defined in Dialog + mnu.Add(Constants.View.RENAME); + mnu.Add(Constants.View.CREATEDIR); + mnu.Add(Constants.View.ENCRYPT2); + mnu.Add(Constants.View.COMPRESS3); + mnu.Add(Constants.View.HIDEUNHIDE); + mnu.Add(Constants.View.ADDREADONLY); + + if (selectedList == null) + { + /* mnu.Add("Create Audioplaylist from Directory"); + mnu.Add("Create Videoplaylist from Directory"); + mnu.Add("Add to Audioplaylist"); + mnu.Add("Add to Videoplaylist"); */ + mnu.Add(Constants.View.CREATEAUDIODIR); + mnu.Add(Constants.View.CREATEVIDEODIR); + mnu.Add(Constants.Dialog.ADDAUDIO); // was already defined in Dialog + mnu.Add(Constants.Dialog.ADDVIDEO); // was already defined in Dialog + } + else + { + /* mnu.Add("Create Audioplaylist from selected files/directories"); + mnu.Add("Create Videoplaylist from selected files/directories"); + mnu.Add("Add selected files/directories to Audioplaylist"); + mnu.Add("Add selected files/directories to Videoplaylist"); */ + mnu.Add(Constants.View.CREATEAUDIOSEL); + mnu.Add(Constants.View.CREATEVIDEOSEL); + mnu.Add(Constants.View.ADDAUDIOSEL); + mnu.Add(Constants.View.ADDVIDEOSEL); + } + + // mnu.Add("Select All"); + // mnu.Add("Disable selections"); + mnu.Add(Constants.View.SELECTALL); + mnu.Add(Constants.View.DISABLESEL); + + if (selectionMode) + { + // mnu.Add("Disable selection mode"); + mnu.Add(Constants.View.DISABLESELMODE); + } + else + { + // mnu.Add("Enable selection mode"); + mnu.Add(Constants.View.ENABLESELMODE); + } + + mnu.DoModal(GUIWindowManager.ActiveWindow); + + switch (mnu.SelectedLabel) + { + case MenuIDs.SelectDrive: + { + SelectDrive(); + break; + } + case MenuIDs.Copy: + { + Copy(); + break; + } + case MenuIDs.Move: + { + Move(); + break; + } + case MenuIDs.Delete: + { + Delete(); + break; + } + case MenuIDs.Rename: + { + Rename(); + break; + } + case MenuIDs.CreateDirectory: + { + CreateDirectory(); + break; + } + case MenuIDs.EncryptDecrypt: + { + EncryptDecrypt(); + break; + } + case MenuIDs.CompressUncomopress: + { + CompressUncompress(); + break; + } + case MenuIDs.HideUnhide: + { + HideUnhide(); + break; + } + case MenuIDs.ReadOnlyFlag: + { + SetRemoveReadOnlyFlag(); + break; + } + case MenuIDs.AudioPlaylist: + { + if (selectedList == null) + { + CreateAudioPlaylist(); + } + else + { + CreateAudioPlaylistFromSelectedFiles(); + } + break; + } + case MenuIDs.VideoPlayList: + { + if (selectedList == null) + { + CreateVideoPlaylist(); + } + else + { + CreateVideoPlaylistFromSelectedFiles(); + } + break; + } + case MenuIDs.AddToAudioPlaylist: + { + if (selectedList == null) + { + AddToAudioPlaylist(); + ... [truncated message content] |
From: <Sil...@us...> - 2010-05-03 21:46:16
|
Revision: 3570 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=3570&view=rev Author: SilentException Date: 2010-05-03 21:46:09 +0000 (Mon, 03 May 2010) Log Message: ----------- Updated version to 1.3 Calling dlg.Reset() on dialogs Added option to clear Recycle Bin Fixed selection operations Extra error checking on ReadDirectories2 ReadDirectories2 honors subdirectories boolean GetExtension returns empty string if no extension (not null) No more cutting of directory names (skinners should use fadelabels for current directories and dialogs already use fadelabels) - this cutting was until now relative to the number of characters, thus not ok for every skin..it should be done by checking textwidth if skin isn't using fadelabels (TODO) Improved action handling on facade controls (OnClicked is raised for some other events on facades) Added setting of #currentmodule property Modified "Attributes" localization string with no space FreeResource replaced by Dispose for RC2 compatibility Preparing for MpeRelease :) Skinning improvements (no skin changes needed on old skins, everything is optional): * controls 6,7,9,10 are no longer gui labels, they can be anything (fadelabel, textbox, textboxscrollup, ...) * Setting properties #FileExplorer.Left.CurrentDir and #FileExplorer.Right.CurrentDir for control id 9 and 10 for skinners (because SetControlLabel does not work so well when using with FadeLabel with <wrapString> :/) * Added label id 4 on TextPreview (for showing of current file name) - optional for skinners * Added properties #FileExplorer.Left.SelectionMode and #FileExplorer.Right.SelectionMode - for conditional visibility if selection mode is enabled or disabled (properties contain values True / False) Modified Paths: -------------- trunk/plugins/File Explorer/Constants.cs trunk/plugins/File Explorer/DrivesView.cs trunk/plugins/File Explorer/File Explorer.cs trunk/plugins/File Explorer/Language/strings_de.xml trunk/plugins/File Explorer/Language/strings_en.xml trunk/plugins/File Explorer/Language/strings_fr.xml trunk/plugins/File Explorer/Preview/TextPreview.cs trunk/plugins/File Explorer/Properties/AssemblyInfo.cs Modified: trunk/plugins/File Explorer/Constants.cs =================================================================== --- trunk/plugins/File Explorer/Constants.cs 2010-05-03 09:46:56 UTC (rev 3569) +++ trunk/plugins/File Explorer/Constants.cs 2010-05-03 21:46:09 UTC (rev 3570) @@ -171,8 +171,9 @@ SelectPlaylist = 127, DefaultFolderLeft = 128, DefaultFolderRight = 129, - Browse = 130 - + Browse = 130, + EmptyRecycleBin = 131, + Confirm = 132 } #endregion @@ -315,6 +316,8 @@ public static readonly string ADDAUDIO = LocalizeStrings.Get((int)LocalizedMessages.AddAudio); public static readonly string READFILE = LocalizeStrings.Get((int)LocalizedMessages.ReadFile); public static readonly string ADDVIDEO = LocalizeStrings.Get((int)LocalizedMessages.AddVideo); + public static readonly string EMPTYRECYCLEBIN = LocalizeStrings.Get((int)LocalizedMessages.EmptyRecycleBin); + public static readonly string CONFIRM = LocalizeStrings.Get((int)LocalizedMessages.Confirm); } #endregion Modified: trunk/plugins/File Explorer/DrivesView.cs =================================================================== --- trunk/plugins/File Explorer/DrivesView.cs 2010-05-03 09:46:56 UTC (rev 3569) +++ trunk/plugins/File Explorer/DrivesView.cs 2010-05-03 21:46:09 UTC (rev 3570) @@ -36,166 +36,178 @@ namespace FileExplorer { - #region Structs - public struct Drive - { - public string Path; - public string TypeDescription; - public int Type; - } + #region Structs + public struct Drive + { + public string Path; + public string TypeDescription; + public int Type; + } - public struct FileInfo - { - public string Path; - public string Name; - public float SizeInByte; - public float SizeInKB; - public float SizeInMB; - public float SizeInGB; - public string LastChanged; - public string CreatedOn; - public string LastRead; - public bool ReadOnly; - public bool Hidden; - public bool SystemFile; - public bool Encrypted; - public bool Compressed; - } + public struct FileInfo + { + public string Path; + public string Name; + public float SizeInByte; + public float SizeInKB; + public float SizeInMB; + public float SizeInGB; + public string LastChanged; + public string CreatedOn; + public string LastRead; + public bool ReadOnly; + public bool Hidden; + public bool SystemFile; + public bool Encrypted; + public bool Compressed; + } - public struct PathInfo - { - public string Name; - public string Path; - public string CreatedOn; - public string LastChanged; - public string LastRead; - public bool ReadOnly; - public bool Hidden; - public bool SystemFile; - public bool Encrypted; - public bool Compressed; - } - - public struct Info - { - public FileInfo File; - public PathInfo Path; - public bool IsPath; - - public bool IsFile + public struct PathInfo { - get { return !IsPath; } - set { IsPath = !value; } + public string Name; + public string Path; + public string CreatedOn; + public string LastChanged; + public string LastRead; + public bool ReadOnly; + public bool Hidden; + public bool SystemFile; + public bool Encrypted; + public bool Compressed; } - } - #endregion - /// <summary> - /// Description of DrivesView. - /// </summary> - public class DrivesView - { - #region static members - [DllImport(".\\Plugins\\Windows\\Compression.dll")] - private static extern bool CompressFile(string file); + public struct Info + { + public FileInfo File; + public PathInfo Path; + public bool IsPath; - [DllImport(".\\Plugins\\Windows\\Compression.dll")] - private static extern bool UncompressFile(string file); + public bool IsFile + { + get { return !IsPath; } + set { IsPath = !value; } + } + } + #endregion - [DllImport("kernel32.dll")] - private static extern int SetFileAttributes(string filename, System.UInt32 dwFileAttributes); - - private static readonly System.UInt32 FILE_ATTRIBUTE_NORMAL = 0x00000080; - private static readonly System.UInt32 FILE_ATTRIBUTE_HIDDEN = 0x00000002; - private static readonly System.UInt32 FILE_ATTRIBUTE_READONLY = 0x00000001; - private static readonly System.UInt32 FILE_ATTRIBUTE_SYSTEM = 0x00000004; + #region Enums + enum RecycleFlags : uint + { + SHERB_NOCONFIRMATION = 0x00000001, + SHERB_NOPROGRESSUI = 0x00000002, + SHERB_NOSOUND = 0x00000004 + } #endregion - #region vars - private int lstId; - private int winId; - private int lblId; - private int lblDirId; + /// <summary> + /// Description of DrivesView. + /// </summary> + public class DrivesView + { + [DllImport("Shell32.dll", CharSet = CharSet.Unicode)] + static extern uint SHEmptyRecycleBin(IntPtr hwnd, string pszRootPath, RecycleFlags dwFlags); - private string currentPath = null; - private string currentDrive = null; - private ArrayList drives = null; - private ArrayList currentPathList = null; + #region static members + [DllImport(".\\Plugins\\Windows\\Compression.dll")] + private static extern bool CompressFile(string file); - private ArrayList selectedList = null; + [DllImport(".\\Plugins\\Windows\\Compression.dll")] + private static extern bool UncompressFile(string file); - private bool showExtensions; - private bool trashcan; - private bool showAllFiles; - private bool showSystemFiles; - private bool showSystemDirs; - private bool selectionMode = false; + [DllImport("kernel32.dll")] + private static extern int SetFileAttributes(string filename, System.UInt32 dwFileAttributes); - private DrivesView secondView = null; + private static readonly System.UInt32 FILE_ATTRIBUTE_NORMAL = 0x00000080; + private static readonly System.UInt32 FILE_ATTRIBUTE_HIDDEN = 0x00000002; + private static readonly System.UInt32 FILE_ATTRIBUTE_READONLY = 0x00000001; + private static readonly System.UInt32 FILE_ATTRIBUTE_SYSTEM = 0x00000004; + #endregion - private ArrayList lstFiles = null; + #region vars + private int lstId; + private int winId; + private int lblId; + private int lblDirId; - private GUIDialogOperation dlgOp = null; + private string currentPath = null; + private string currentDrive = null; + private ArrayList drives = null; + private ArrayList currentPathList = null; - #endregion + private ArrayList selectedList = null; - #region ctor - public DrivesView(int windowID, int guiListViewControlID, int infoLabelID, int dirLabelID) - { - this.lstId = guiListViewControlID; - this.winId = windowID; - this.lblId = infoLabelID; - this.lblDirId = dirLabelID; + private bool showExtensions; + private bool trashcan; + private bool showAllFiles; + private bool showSystemFiles; + private bool showSystemDirs; + private bool selectionMode = false; - CreateDrivesList(); - // SetStandardValues(); - SetStandardValues(this.lstId); - LoadPath(); - FillListControl(); - } - #endregion + private DrivesView secondView = null; - #region private members - private void CreateDrivesList() - { - drives = new ArrayList(); + private ArrayList lstFiles = null; - foreach (string d in Environment.GetLogicalDrives()) - { - Drive drv = new Drive(); - drv.Path = d; - drv.Type = Utils.getDriveType(d); + private GUIDialogOperation dlgOp = null; - if (drv.Type == Constants.DriveTypes.CD_DVD) + #endregion + + #region ctor + public DrivesView(int windowID, int guiListViewControlID, int infoLabelID, int dirLabelID) { - // drv.TypeDescription = "CD/DVD Drive"; - drv.TypeDescription = Constants.View.CD; + this.lstId = guiListViewControlID; + this.winId = windowID; + this.lblId = infoLabelID; + this.lblDirId = dirLabelID; + + CreateDrivesList(); + // SetStandardValues(); + SetStandardValues(this.lstId); + LoadPath(); + FillListControl(); } - else if (drv.Type == Constants.DriveTypes.FIXED) + #endregion + + #region private members + private void CreateDrivesList() { - // drv.TypeDescription = "HDD"; - drv.TypeDescription = Constants.View.HDD; + drives = new ArrayList(); + + foreach (string d in Environment.GetLogicalDrives()) + { + Drive drv = new Drive(); + drv.Path = d; + drv.Type = Utils.getDriveType(d); + + if (drv.Type == Constants.DriveTypes.CD_DVD) + { + // drv.TypeDescription = "CD/DVD Drive"; + drv.TypeDescription = Constants.View.CD; + } + else if (drv.Type == Constants.DriveTypes.FIXED) + { + // drv.TypeDescription = "HDD"; + drv.TypeDescription = Constants.View.HDD; + } + else if (drv.Type == Constants.DriveTypes.RAMDISK) + { + // drv.TypeDescription = "RamDisk"; + drv.TypeDescription = Constants.View.RAMDISK; + } + else if (drv.Type == Constants.DriveTypes.REMOTEDISK) + { + // drv.TypeDescription = "Network Drive"; + drv.TypeDescription = Constants.View.NETWORK; + } + else if (drv.Type == Constants.DriveTypes.REMOVEABLE) + { + // drv.TypeDescription = "Removeable"; + drv.TypeDescription = Constants.View.REMOVEABLE; + } + + drives.Add(drv); + } } - else if (drv.Type == Constants.DriveTypes.RAMDISK) - { - // drv.TypeDescription = "RamDisk"; - drv.TypeDescription = Constants.View.RAMDISK; - } - else if (drv.Type == Constants.DriveTypes.REMOTEDISK) - { - // drv.TypeDescription = "Network Drive"; - drv.TypeDescription = Constants.View.NETWORK; - } - else if (drv.Type == Constants.DriveTypes.REMOVEABLE) - { - // drv.TypeDescription = "Removeable"; - drv.TypeDescription = Constants.View.REMOVEABLE; - } - drives.Add(drv); - } - } - private void SetStandardValues(int lstId) { SetStandardValues(); @@ -215,2864 +227,3028 @@ } } - private void SetStandardValues() - { - foreach (Drive d in drives) - { - if (d.Type == Constants.DriveTypes.FIXED) + private void SetStandardValues() { - currentDrive = d.Path; - currentPath = d.Path; + foreach (Drive d in drives) + { + if (d.Type == Constants.DriveTypes.FIXED) + { + currentDrive = d.Path; + currentPath = d.Path; - break; + break; + } + } + + showExtensions = Constants.SetupForm.valueStandards[0]; + trashcan = Constants.SetupForm.valueStandards[1]; + showAllFiles = Constants.SetupForm.valueStandards[2]; + showSystemFiles = Constants.SetupForm.valueStandards[3]; + showSystemDirs = Constants.SetupForm.valueStandards[4]; + SelectionMode = false; } - } - showExtensions = Constants.SetupForm.valueStandards[0]; - trashcan = Constants.SetupForm.valueStandards[1]; - showAllFiles = Constants.SetupForm.valueStandards[2]; - showSystemFiles = Constants.SetupForm.valueStandards[3]; - showSystemDirs = Constants.SetupForm.valueStandards[4]; - selectionMode = false; - } - - private bool LoadPath() - { - selectedList = null; - string[] files = null; - try - { - files = System.IO.Directory.GetFileSystemEntries(currentPath); - } - catch (Exception e) - { - ExceptionViewer.ShowException(e); - return false; - } - - currentPathList = new ArrayList(); - - foreach (string s in files) - { - Info info = new Info(); - - if (System.IO.File.Exists(s)) + private bool LoadPath() { - System.IO.FileInfo fi = new System.IO.FileInfo(s); + selectedList = null; + string[] files = null; + try + { + files = System.IO.Directory.GetFileSystemEntries(currentPath); + } + catch (Exception e) + { + ExceptionViewer.ShowException(e); + return false; + } - info.IsFile = true; - info.File.Name = GetFilename(s); - info.File.Path = GetPath(s); - info.File.CreatedOn = fi.CreationTime.ToString(); - info.File.LastChanged = fi.LastWriteTime.ToString(); - info.File.LastRead = fi.LastAccessTime.ToString(); - info.File.SizeInByte = (float)fi.Length; - info.File.SizeInKB = info.File.SizeInByte / 1024; - info.File.SizeInMB = info.File.SizeInKB / 1024; - info.File.SizeInGB = info.File.SizeInMB / 1024; + currentPathList = new ArrayList(); - info.File.Hidden = this.IsHiddenAttribute(fi.Attributes); - info.File.ReadOnly = this.IsReadOnlyAttribute(fi.Attributes); - info.File.SystemFile = this.IsSystemAttribute(fi.Attributes); - info.File.Compressed = this.IsCompressedAttribute(fi.Attributes); - info.File.Encrypted = this.IsEncryptedAttribute(fi.Attributes); - } - else - { - System.IO.DirectoryInfo di = new System.IO.DirectoryInfo(s); + foreach (string s in files) + { + Info info = new Info(); - info.IsPath = true; - info.Path.Name = GetFilename(s); - info.Path.Path = s; - info.Path.CreatedOn = di.CreationTime.ToString(); - info.Path.LastChanged = di.LastWriteTime.ToString(); - info.Path.LastRead = di.LastAccessTime.ToString(); - info.Path.Hidden = this.IsHiddenAttribute(di.Attributes); - info.Path.ReadOnly = this.IsReadOnlyAttribute(di.Attributes); - info.Path.SystemFile = this.IsSystemAttribute(di.Attributes); - info.Path.Compressed = this.IsCompressedAttribute(di.Attributes); - info.Path.Encrypted = this.IsEncryptedAttribute(di.Attributes); - } + if (System.IO.File.Exists(s)) + { + System.IO.FileInfo fi = new System.IO.FileInfo(s); - currentPathList.Add(info); - } + info.IsFile = true; + info.File.Name = GetFilename(s); + info.File.Path = GetPath(s); + info.File.CreatedOn = fi.CreationTime.ToString(); + info.File.LastChanged = fi.LastWriteTime.ToString(); + info.File.LastRead = fi.LastAccessTime.ToString(); + info.File.SizeInByte = (float)fi.Length; + info.File.SizeInKB = info.File.SizeInByte / 1024; + info.File.SizeInMB = info.File.SizeInKB / 1024; + info.File.SizeInGB = info.File.SizeInMB / 1024; - return true; - } + info.File.Hidden = this.IsHiddenAttribute(fi.Attributes); + info.File.ReadOnly = this.IsReadOnlyAttribute(fi.Attributes); + info.File.SystemFile = this.IsSystemAttribute(fi.Attributes); + info.File.Compressed = this.IsCompressedAttribute(fi.Attributes); + info.File.Encrypted = this.IsEncryptedAttribute(fi.Attributes); + } + else + { + System.IO.DirectoryInfo di = new System.IO.DirectoryInfo(s); - private void FillListControl() - { - GUIControl.ClearControl(winId, lstId); - string path = Utils.RemoveTrailingSlash(currentPath); + info.IsPath = true; + info.Path.Name = GetFilename(s); + info.Path.Path = s; + info.Path.CreatedOn = di.CreationTime.ToString(); + info.Path.LastChanged = di.LastWriteTime.ToString(); + info.Path.LastRead = di.LastAccessTime.ToString(); + info.Path.Hidden = this.IsHiddenAttribute(di.Attributes); + info.Path.ReadOnly = this.IsReadOnlyAttribute(di.Attributes); + info.Path.SystemFile = this.IsSystemAttribute(di.Attributes); + info.Path.Compressed = this.IsCompressedAttribute(di.Attributes); + info.Path.Encrypted = this.IsEncryptedAttribute(di.Attributes); + } - if (!currentPath.Equals(currentDrive)) - { - GUIListItem item = new GUIListItem(".."); - item.Path = GetPath(currentPath); + currentPathList.Add(info); + } - Utils.SetDefaultIcons(item); - GUIControl.AddListItemControl(winId, lstId, item); - } - - foreach (Info info in currentPathList) - { - if (info.IsPath) - { - bool b = true; - - if ((!this.showAllFiles) && (info.Path.Hidden)) - { - b = false; - } - - if ((!this.showSystemDirs) && (info.Path.SystemFile)) - { - b = false; - } - - if (b) - { - GUIListItem item = new GUIListItem(info.Path.Name); - item.IsFolder = true; - item.Path = info.Path.Path; - - Utils.SetDefaultIcons(item); - GUIControl.AddListItemControl(winId, lstId, item); - } + return true; } - } - foreach (Info info in currentPathList) - { - if (info.IsFile) + private void FillListControl() { - bool b = true; + GUIControl.ClearControl(winId, lstId); + string path = Utils.RemoveTrailingSlash(currentPath); - if ((!this.showAllFiles) && (info.File.Hidden)) - { - b = false; - } + if (!currentPath.Equals(currentDrive)) + { + GUIListItem item = new GUIListItem(".."); + item.Path = GetPath(currentPath); - if ((!this.showSystemFiles) && (info.File.SystemFile)) - { - b = false; - } + Utils.SetDefaultIcons(item); + GUIControl.AddListItemControl(winId, lstId, item); + } - if (b) - { - GUIListItem item = new GUIListItem(info.File.Name); - item.IsFolder = false; - item.Path = info.File.Path; - item.Label2 = Utils.GetSize((long)info.File.SizeInByte); + foreach (Info info in currentPathList) + { + if (info.IsPath) + { + bool b = true; - GUIControl.AddListItemControl(winId, lstId, item); - } - } - } + if ((!this.showAllFiles) && (info.Path.Hidden)) + { + b = false; + } - // string cf = "Folder: "; - string cf = Constants.View.FOLDER; - if (currentPath.Length > 50) - { - cf += currentDrive + "..\\" + GetFilename(currentPath); - } - else - { - cf += currentPath; - } - GUIControl.SetControlLabel(winId, lblDirId, cf); - } - #endregion + if ((!this.showSystemDirs) && (info.Path.SystemFile)) + { + b = false; + } - #region public members - public void Update() - { - LoadPath(); - FillListControl(); - } + if (b) + { + GUIListItem item = new GUIListItem(info.Path.Name); + item.IsFolder = true; + item.Path = info.Path.Path; + item.MusicTag = info; - #region menu id constants - private struct MenuIDs - { - public const int SelectDrive = 0; - public const int Copy = 1; - public const int Move = 2; - public const int Delete = 3; - public const int Rename = 4; - public const int CreateDirectory = 5; - public const int EncryptDecrypt = 6; - public const int CompressUncomopress = 7; - public const int HideUnhide = 8; - public const int ReadOnlyFlag = 9; - public const int AudioPlaylist = 10; - public const int VideoPlayList = 11; - public const int AddToAudioPlaylist = 12; - public const int AddToVideoPlaylist = 13; - public const int SelectAll = 14; - public const int DisableSelections = 15; - public const int SelectionMode = 16; - } - #endregion + Utils.SetDefaultIcons(item); + GUIControl.AddListItemControl(winId, lstId, item); + } + } + } - public void ShowMenu() - { - GUIDialogMenu mnu = (GUIDialogMenu)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_DIALOG_MENU); - mnu.Reset(); - /* mnu.SetHeading("Menu"); - mnu.Add("Select Drive"); - mnu.Add("Copy"); - mnu.Add("Move"); - mnu.Add("Delete"); - mnu.Add("Rename"); - mnu.Add("Create directory"); - mnu.Add("Encrypt/Decrypt (NTFS only)"); - mnu.Add("Compress/Uncompress (NTFS only)"); - mnu.Add("Hide/Unhide"); - mnu.Add("Add/Remove readonly flag"); */ - mnu.SetHeading(Constants.View.MENU); - mnu.Add(Constants.View.SELECTDRIVE); - mnu.Add(Constants.Dialog.COPY); // was already defined in Dialog - mnu.Add(Constants.Dialog.MOVE); // was already defined in Dialog - mnu.Add(Constants.Dialog.DELETE); // was already defined in Dialog - mnu.Add(Constants.View.RENAME); - mnu.Add(Constants.View.CREATEDIR); - mnu.Add(Constants.View.ENCRYPT2); - mnu.Add(Constants.View.COMPRESS3); - mnu.Add(Constants.View.HIDEUNHIDE); - mnu.Add(Constants.View.ADDREADONLY); + foreach (Info info in currentPathList) + { + if (info.IsFile) + { + bool b = true; - if (selectedList == null) - { - /* mnu.Add("Create Audioplaylist from Directory"); - mnu.Add("Create Videoplaylist from Directory"); - mnu.Add("Add to Audioplaylist"); - mnu.Add("Add to Videoplaylist"); */ - mnu.Add(Constants.View.CREATEAUDIODIR); - mnu.Add(Constants.View.CREATEVIDEODIR); - mnu.Add(Constants.Dialog.ADDAUDIO); // was already defined in Dialog - mnu.Add(Constants.Dialog.ADDVIDEO); // was already defined in Dialog - } - else - { - /* mnu.Add("Create Audioplaylist from selected files/directories"); - mnu.Add("Create Videoplaylist from selected files/directories"); - mnu.Add("Add selected files/directories to Audioplaylist"); - mnu.Add("Add selected files/directories to Videoplaylist"); */ - mnu.Add(Constants.View.CREATEAUDIOSEL); - mnu.Add(Constants.View.CREATEVIDEOSEL); - mnu.Add(Constants.View.ADDAUDIOSEL); - mnu.Add(Constants.View.ADDVIDEOSEL); - } + if ((!this.showAllFiles) && (info.File.Hidden)) + { + b = false; + } - // mnu.Add("Select All"); - // mnu.Add("Disable selections"); - mnu.Add(Constants.View.SELECTALL); - mnu.Add(Constants.View.DISABLESEL); + if ((!this.showSystemFiles) && (info.File.SystemFile)) + { + b = false; + } - if (selectionMode) - { - // mnu.Add("Disable selection mode"); - mnu.Add(Constants.View.DISABLESELMODE); - } - else - { - // mnu.Add("Enable selection mode"); - mnu.Add(Constants.View.ENABLESELMODE); - } + if (b) + { + GUIListItem item = new GUIListItem(info.File.Name); + item.IsFolder = false; + item.Path = info.File.Path; + item.Label2 = Utils.GetSize((long)info.File.SizeInByte); + item.MusicTag = info; - mnu.DoModal(GUIWindowManager.ActiveWindow); + GUIControl.AddListItemControl(winId, lstId, item); + } + } + } - switch (mnu.SelectedLabel) - { - case MenuIDs.SelectDrive: - { - SelectDrive(); - break; - } - case MenuIDs.Copy: - { - Copy(); - break; - } - case MenuIDs.Move: - { - Move(); - break; - } - case MenuIDs.Delete: - { - Delete(); - break; - } - case MenuIDs.Rename: - { - Rename(); - break; - } - case MenuIDs.CreateDirectory: - { - CreateDirectory(); - break; - } - case MenuIDs.EncryptDecrypt: - { - EncryptDecrypt(); - break; - } - case MenuIDs.CompressUncomopress: - { - CompressUncompress(); - break; - } - case MenuIDs.HideUnhide: - { - HideUnhide(); - break; - } - case MenuIDs.ReadOnlyFlag: - { - SetRemoveReadOnlyFlag(); - break; - } - case MenuIDs.AudioPlaylist: - { - if (selectedList == null) + // string cf = "Folder: "; + //string cf = Constants.View.FOLDER; + string cf = String.Empty; + /* + if (currentPath.Length > 50) { - CreateAudioPlaylist(); + cf += currentDrive + "..\\" + GetFilename(currentPath); } else { - CreateAudioPlaylistFromSelectedFiles(); + cf += currentPath; } - break; - } - case MenuIDs.VideoPlayList: - { - if (selectedList == null) - { - CreateVideoPlaylist(); - } + */ + cf += currentPath; + + // Setting property for skinners.. SetControlLabel does not work so well when using with FadeLabel with <wrapString> :/ + if (lstId == 3) + GUIPropertyManager.SetProperty("#FileExplorer.Left.CurrentDir", cf); + else if (lstId == 4) + GUIPropertyManager.SetProperty("#FileExplorer.Right.CurrentDir", cf); else { - CreateVideoPlaylistFromSelectedFiles(); + GUIPropertyManager.SetProperty("#FileExplorer.Left.CurrentDir", " "); + GUIPropertyManager.SetProperty("#FileExplorer.Right.CurrentDir", " "); } - break; - } - case MenuIDs.AddToAudioPlaylist: - { + GUIControl.SetControlLabel(winId, lblDirId, cf); + } + #endregion + + #region public members + public void Update() + { + LoadPath(); + FillListControl(); + } + + #region menu id constants + private struct MenuIDs + { + public const int SelectDrive = 0; + public const int Copy = 1; + public const int Move = 2; + public const int Delete = 3; + public const int Rename = 4; + public const int CreateDirectory = 5; + public const int EncryptDecrypt = 6; + public const int CompressUncomopress = 7; + public const int HideUnhide = 8; + public const int ReadOnlyFlag = 9; + public const int AudioPlaylist = 10; + public const int VideoPlayList = 11; + public const int AddToAudioPlaylist = 12; + public const int AddToVideoPlaylist = 13; + public const int SelectAll = 14; + public const int DisableSelections = 15; + public const int SelectionMode = 16; + public const int EmptyRecycleBin = 17; + } + #endregion + + public void ShowMenu() + { + GUIDialogMenu mnu = (GUIDialogMenu)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_DIALOG_MENU); + mnu.Reset(); + /* mnu.SetHeading("Menu"); + mnu.Add("Select Drive"); + mnu.Add("Copy"); + mnu.Add("Move"); + mnu.Add("Delete"); + mnu.Add("Rename"); + mnu.Add("Create directory"); + mnu.Add("Encrypt/Decrypt (NTFS only)"); + mnu.Add("Compress/Uncompress (NTFS only)"); + mnu.Add("Hide/Unhide"); + mnu.Add("Add/Remove readonly flag"); */ + mnu.SetHeading(Constants.View.MENU); + mnu.Add(Constants.View.SELECTDRIVE); + mnu.Add(Constants.Dialog.COPY); // was already defined in Dialog + mnu.Add(Constants.Dialog.MOVE); // was already defined in Dialog + mnu.Add(Constants.Dialog.DELETE); // was already defined in Dialog + mnu.Add(Constants.View.RENAME); + mnu.Add(Constants.View.CREATEDIR); + mnu.Add(Constants.View.ENCRYPT2); + mnu.Add(Constants.View.COMPRESS3); + mnu.Add(Constants.View.HIDEUNHIDE); + mnu.Add(Constants.View.ADDREADONLY); + if (selectedList == null) { - AddToAudioPlaylist(); + /* mnu.Add("Create Audioplaylist from Directory"); + mnu.Add("Create Videoplaylist from Directory"); + mnu.Add("Add to Audioplaylist"); + mnu.Add("Add to Videoplaylist"); */ + mnu.Add(Constants.View.CREATEAUDIODIR); + mnu.Add(Constants.View.CREATEVIDEODIR); + mnu.Add(Constants.Dialog.ADDAUDIO); // was already defined in Dialog + mnu.Add(Constants.Dialog.ADDVIDEO); // was already defined in Dialog } else { - AddSelectedFilesToAudioPlaylist(); + /* mnu.Add("Create Audioplaylist from selected files/directories"); + mnu.Add("Create Videoplaylist from selected files/directories"); + mnu.Add("Add selected files/directories to Audioplaylist"); + mnu.Add("Add selected files/directories to Videoplaylist"); */ + mnu.Add(Constants.View.CREATEAUDIOSEL); + mnu.Add(Constants.View.CREATEVIDEOSEL); + mnu.Add(Constants.View.ADDAUDIOSEL); + mnu.Add(Constants.View.ADDVIDEOSEL); } - break; - } - case MenuIDs.AddToVideoPlaylist: - { - if (selectedList == null) + + // mnu.Add("Select All"); + // mnu.Add("Disable selections"); + mnu.Add(Constants.View.SELECTALL); + mnu.Add(Constants.View.DISABLESEL); + + if (selectionMode) { - AddToVideoPlaylist(); + // mnu.Add("Disable selection mode"); + mnu.Add(Constants.View.DISABLESELMODE); } else { - AddSelectedFilesToVideoPlaylist(); + // mnu.Add("Enable selection mode"); + mnu.Add(Constants.View.ENABLESELMODE); } - break; - } - case MenuIDs.SelectAll: - { - SelectAll(); - break; - } - case MenuIDs.DisableSelections: - { - DeleteSelections(); - break; - } - case MenuIDs.SelectionMode: - { - selectionMode = !SelectionMode; - break; - } - } - } - #endregion - #region Operations - #region Select Drive routines - private void SelectDrive() - { - GUIDialogMenu mnu = (GUIDialogMenu)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_DIALOG_MENU); - mnu.Reset(); - // mnu.SetHeading("Select drive"); - mnu.SetHeading(Constants.View.SELECTDRIVE); + mnu.Add(Constants.Dialog.EMPTYRECYCLEBIN); - foreach (Drive d in drives) - { - mnu.Add(d.Path + " " + d.TypeDescription); - } + mnu.DoModal(GUIWindowManager.ActiveWindow); - mnu.DoModal(GUIWindowManager.ActiveWindow); + switch (mnu.SelectedLabel) + { + case MenuIDs.SelectDrive: + { + SelectDrive(); + break; + } + case MenuIDs.Copy: + { + Copy(); + break; + } + case MenuIDs.Move: + { + Move(); + break; + } + case MenuIDs.Delete: + { + Delete(); + break; + } + case MenuIDs.Rename: + { + Rename(); + break; + } + case MenuIDs.CreateDirectory: + { + CreateDirectory(); + break; + } + case MenuIDs.EncryptDecrypt: + { + EncryptDecrypt(); + break; + } + case MenuIDs.CompressUncomopress: + { + CompressUncompress(); + break; + } + case MenuIDs.HideUnhide: + { + HideUnhide(); + break; + } + case MenuIDs.ReadOnlyFlag: + { + SetRemoveReadOnlyFlag(); + break; + } + case MenuIDs.AudioPlaylist: + { + if (selectedList == null) + { + CreateAudioPlaylist(); + } + else + { + CreateAudioPlaylistFromSelectedFiles(); + } + break; + } + case MenuIDs.VideoPlayList: + { + if (selectedList == null) + { + CreateVideoPlaylist(); + } + else + { + CreateVideoPlaylistFromSelectedFiles(); + } + break; + } + case MenuIDs.AddToAudioPlaylist: + { + if (selectedList == null) + { + AddToAudioPlaylist(); + } + else + { + AddSelectedFilesToAudioPlaylist(); + } + break; + } + case MenuIDs.AddToVideoPlaylist: + { + if (selectedList == null) + { + AddToVideoPlaylist(); + } + else + { + AddSelectedFilesToVideoPlaylist(); + } + break; + } + case MenuIDs.SelectAll: + { + SelectAll(); + break; + } + case MenuIDs.DisableSelections: + { + DeleteSelections(); + break; + } + case MenuIDs.SelectionMode: + { + SelectionMode = !SelectionMode; + break; + } + case MenuIDs.EmptyRecycleBin: + { + EmptyRecycleBin(); + break; + } + } + } + #endregion - int i = 0; - foreach (Drive d in drives) - { - if (i == mnu.SelectedLabel) + #region Operations + #region Select Drive routines + private void SelectDrive() { - currentDrive = d.Path; - currentPath = d.Path; + GUIDialogMenu mnu = (GUIDialogMenu)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_DIALOG_MENU); + mnu.Reset(); + // mnu.SetHeading("Select drive"); + mnu.SetHeading(Constants.View.SELECTDRIVE); - LoadPath(); - FillListControl(); + foreach (Drive d in drives) + { + mnu.Add(d.Path + " " + d.TypeDescription); + } - return; - } + mnu.DoModal(GUIWindowManager.ActiveWindow); - i++; - } - } - #endregion + int i = 0; + foreach (Drive d in drives) + { + if (i == mnu.SelectedLabel) + { + currentDrive = d.Path; + currentPath = d.Path; - #region Copy routines - private void Copy() - { - if (selectedList == null) - { - GUIListItem item = GUIControl.GetSelectedListItem(winId, lstId); + LoadPath(); + FillListControl(); - GUIDialogYesNo dlg = (GUIDialogYesNo)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_DIALOG_YES_NO); + return; + } - if (!item.IsFolder) - { - // dlg.SetHeading("Copy File \"" + item.Label + "\""); - dlg.SetHeading(Constants.Operation.COPYFILE + "\"" + item.Label + "\""); - // dlg.SetLine(2, "From: " + item.Path); - dlg.SetLine(2, Constants.Operation.FROM + item.Path); - // dlg.SetLine(3, "To: " + secondView.Path); - dlg.SetLine(3, Constants.Dialog.TO + secondView.Path); // already defined in Dialog - dlg.DoModal(GUIWindowManager.ActiveWindow); - - if (dlg.IsConfirmed) - { - CopySingleFile(item.Path + "\\" + item.Label, secondView.Path + "\\" + item.Label); - secondView.Update(); - } + i++; + } } - else - { - // dlg.SetHeading("Copy Directory \"" + item.Label + "\""); - dlg.SetHeading(Constants.Operation.COPYDIR + "\"" + item.Label + "\""); - // dlg.SetLine(2, "To: " + secondView.Path); - dlg.SetLine(2, Constants.Dialog.TO + secondView.Path); // already defined in Dialog - dlg.DoModal(GUIWindowManager.ActiveWindow); + #endregion - if (dlg.IsConfirmed) - { - ShowDialogOperation(GUIDialogOperation.DialogType.COPY); - CopyDirectory(item.Path, secondView.Path + "\\" + GetFilename(item.Path)); - secondView.Update(); - dlgOp.Close(); - } - } - } - else - { - foreach (Info info in selectedList) + #region Copy routines + private void Copy() { - if (info.IsPath) - { - ShowDialogOperation(GUIDialogOperation.DialogType.COPY); - CopyDirectory(info.Path.Path, secondView.Path + "\\" + GetFilename(info.Path.Path)); - dlgOp.Close(); - } - else - { - CopySingleFile(info.File.Path + "\\" + info.File.Name, secondView.Path + "\\" + info.File.Name, true); - } - } + if (selectedList == null) + { + GUIListItem item = GUIControl.GetSelectedListItem(winId, lstId); - secondView.Update(); - } - } + GUIDialogYesNo dlg = (GUIDialogYesNo)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_DIALOG_YES_NO); + dlg.Reset(); - private void CopySingleFile(string scr, string dest) - { - CopySingleFile(scr, dest, false); - } + if (!item.IsFolder) + { + // dlg.SetHeading("Copy File \"" + item.Label + "\""); + dlg.SetHeading(Constants.Operation.COPYFILE + "\"" + item.Label + "\""); + // dlg.SetLine(2, "From: " + item.Path); + dlg.SetLine(2, Constants.Operation.FROM + item.Path); + // dlg.SetLine(3, "To: " + secondView.Path); + dlg.SetLine(3, Constants.Dialog.TO + secondView.Path); // already defined in Dialog + dlg.DoModal(GUIWindowManager.ActiveWindow); - private void CopySingleFile(string src, string dest, bool showDlg) - { - if (System.IO.File.Exists(dest)) - { - GUIDialogYesNo dlg = (GUIDialogYesNo)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_DIALOG_YES_NO); - // dlg.SetHeading("Copying file"); - dlg.SetHeading(Constants.Operation.COPYINGFILE); - // dlg.SetLine(1, "The file \"" + GetFilename(src) + "\""); - dlg.SetLine(1, Constants.Operation.THEFILE + "\"" + GetFilename(src) + "\""); - // dlg.SetLine(2, "alread exists!"); - dlg.SetLine(2, Constants.Operation.ALREADYEXIST); - // dlg.SetLine(3, "Do you want to overwrite it?"); - dlg.SetLine(3, Constants.Operation.OVERWRITE); - dlg.DoModal(GUIWindowManager.ActiveWindow); + if (dlg.IsConfirmed) + { + CopySingleFile(item.Path + "\\" + item.Label, secondView.Path + "\\" + item.Label); + secondView.Update(); + } + } + else + { + // dlg.SetHeading("Copy Directory \"" + item.Label + "\""); + dlg.SetHeading(Constants.Operation.COPYDIR + "\"" + item.Label + "\""); + // dlg.SetLine(2, "To: " + secondView.Path); + dlg.SetLine(2, Constants.Dialog.TO + secondView.Path); // already defined in Dialog + dlg.DoModal(GUIWindowManager.ActiveWindow); - if (!dlg.IsConfirmed) - { - return; + if (dlg.IsConfirmed) + { + ShowDialogOperation(GUIDialogOperation.DialogType.COPY); + CopyDirectory(item.Path, secondView.Path + "\\" + GetFilename(item.Path)); + secondView.Update(); + dlgOp.Close(); + } + } + } + else + { + foreach (Info info in selectedList) + { + if (info.IsPath) + { + ShowDialogOperation(GUIDialogOperation.DialogType.COPY); + CopyDirectory(info.Path.Path, secondView.Path + "\\" + GetFilename(info.Path.Path)); + dlgOp.Close(); + } + else + { + CopySingleFile(info.File.Path + "\\" + info.File.Name, secondView.Path + "\\" + info.File.Name, true); + } + } + + secondView.Update(); + } } - FileIO.FileSystem.DeleteFile(dest, FileIO.UIOption.OnlyErrorDialogs, FileIO.RecycleOption.SendToRecycleBin); - } - - try - { - if (showDlg) + private void CopySingleFile(string scr, string dest) { - ShowDialogOperation(GUIDialogOperation.DialogType.COPY); - dlgOp.SetCurrentFile(GetFilename(src)); - dlgOp.SetToPath(GetPath(dest)); - dlgOp.Show(winId); + CopySingleFile(scr, dest, false); } - System.IO.File.Copy(src, dest); - if (showDlg) dlgOp.Close(); - } - catch (Exception e) - { - ExceptionViewer.ShowException(e); - } - } - private void CopyDirectory(string scr, string dest) - { - string[] files = null; - - try - { - System.IO.Directory.CreateDirectory(dest); - files = System.IO.Directory.GetFileSystemEntries(scr); - } - catch (Exception e) - { - ExceptionViewer.ShowException(e); - } - - foreach (string s in files) - { - if (System.IO.File.Exists(s)) + private void CopySingleFile(string src, string dest, bool showDlg) { - dlgOp.SetToPath(dest); - dlgOp.SetCurrentFile(GetFilename(s)); - CopySingleFile(s, dest + "\\" + GetFilename(s)); - } - else - { - CopyDirectory(s, dest + "\\" + GetFilename(s)); - } - } - } - #endregion + if (System.IO.File.Exists(dest)) + { + GUIDialogYesNo dlg = (GUIDialogYesNo)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_DIALOG_YES_NO); + dlg.Reset(); + // dlg.SetHeading("Copying file"); + dlg.SetHeading(Constants.Operation.COPYINGFILE); + // dlg.SetLine(1, "The file \"" + GetFilename(src) + "\""); + dlg.SetLine(1, Constants.Operation.THEFILE + "\"" + GetFilename(src) + "\""); + // dlg.SetLine(2, "alread exists!"); + dlg.SetLine(2, Constants.Operation.ALREADYEXIST); + // dlg.SetLine(3, "Do you want to overwrite it?"); + dlg.SetLine(3, Constants.Operation.OVERWRITE); + dlg.DoModal(GUIWindowManager.ActiveWindow); - #region Move routines - private void Move() - { - if (selectedList == null) - { - GUIListItem item = GUIControl.GetSelectedListItem(winId, lstId); + if (!dlg.IsConfirmed) + { + return; + } - GUIDialogYesNo dlg = (GUIDialogYesNo)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_DIALOG_YES_NO); + FileIO.FileSystem.DeleteFile(dest, FileIO.UIOption.OnlyErrorDialogs, FileIO.RecycleOption.SendToRecycleBin); + } - if (!item.IsFolder) - { - // dlg.SetHeading("Move File \"" + item.Label + "\""); - dlg.SetHeading(Constants.Operation.MOVEFILE + "\"" + item.Label + "\""); - // dlg.SetLine(2, "From: " + item.Path); - dlg.SetLine(2, Constants.Operation.FROM + item.Path); - // dlg.SetLine(3, "To: " + secondView.Path); - dlg.SetLine(3, Constants.Dialog.TO + secondView.Path); // already defined in Dialog - dlg.DoModal(GUIWindowManager.ActiveWindow); - - if (dlg.IsConfirmed) - { - MoveSingleFile(item.Path + "\\" + item.Label, secondView.Path + "\\" + item.Label); - Update(); - secondView.Update(); - } + try + { + if (showDlg) + { + ShowDialogOperation(GUIDialogOperation.DialogType.COPY); + dlgOp.SetCurrentFile(GetFilename(src)); + dlgOp.SetToPath(GetPath(dest)); + dlgOp.Show(winId); + } + System.IO.File.Copy(src, dest); + if (showDlg) dlgOp.Close(); + } + catch (Exception e) + { + ExceptionViewer.ShowException(e); + } } - else - { - // dlg.SetHeading("Move Directory \"" + item.Label + "\""); - dlg.SetHeading(Constants.Operation.MOVEDIR + "\"" + item.Label + "\""); - // dlg.SetLine(2, "To: " + secondView.Path); - dlg.SetLine(2, Constants.Dialog.TO + secondView.Path); // already defined in Dialog - dlg.DoModal(GUIWindowManager.ActiveWindow); - if (dlg.IsConfirmed) - { - ShowDialogOperation(GUIDialogOperation.DialogType.MOVE); - MoveDirectory(item.Path, secondView.Path + "\\" + GetFilename(item.Path)); - Update(); - secondView.Update(); - dlgOp.Close(); - } - } - } - else - { - foreach (Info info in selectedList) + private void CopyDirectory(string scr, string dest) { - if (info.IsPath) - { - ShowDialogOperation(GUIDialogOperation.DialogType.MOVE); - MoveDirectory(info.Path.Path, secondView.Path + "\\" + GetFilename(info.Path.Path)); - dlgOp.Close(); - } - else - { - MoveSingleFile(info.File.Path + "\\" + info.File.Name, secondView.Path + "\\" + info.File.Name); - } - } + string[] files = null; - secondView.Update(); - } - } + try + { + System.IO.Directory.CreateDirectory(dest); + files = System.IO.Directory.GetFileSystemEntries(scr); + } + catch (Exception e) + { + ExceptionViewer.ShowException(e); + } - private void MoveSingleFile(string src, string dest) - { - if (System.IO.File.Exists(dest)) - { - GUIDialogYesNo dlg = (GUIDialogYesNo)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_DIALOG_YES_NO); - /* dlg.SetHeading("Moving file"); - dlg.SetLine(1, "The file \"" + GetFilename(src) + "\""); - dlg.SetLine(2, "alread exists!"); - dlg.SetLine(3, "Do you want to overwrite it?"); */ - dlg.SetHeading(Constants.Operation.MOVINGFILE); - dlg.SetLine(1, Constants.Operation.THEFILE + "\"" + GetFilename(src) + "\""); - dlg.SetLine(2, Constants.Operation.ALREADYEXIST); - dlg.SetLine(3, Constants.Operation.OVERWRITE); - dlg.DoModal(GUIWindowManager.ActiveWindow); + foreach (string s in files) + { + if (System.IO.File.Exists(s)) + { + dlgOp.SetToPath(dest); + dlgOp.SetCurrentFile(GetFilename(s)); + CopySingleFile(s, dest + "\\" + GetFilename(s)); + } + else + { + CopyDirectory(s, dest + "\\" + GetFilename(s)); + } + } + } + #endregion - if (!dlg.IsConfirmed) + #region Move routines + private void Move() { - return; - } - } + if (selectedList == null) + { + GUIListItem item = GUIControl.GetSelectedListItem(winId, lstId); - try - { - System.IO.File.Move(src, dest); - } - catch (Exception e) - { - ExceptionViewer.ShowException(e); - } - } + GUIDialogYesNo dlg = (GUIDialogYesNo)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_DIALOG_YES_NO); + dlg.Reset(); - private void MoveDirectory(string scr, string dest) - { - if (System.IO.Directory.Exists(dest)) - { - GUIDialogYesNo dlg = (GUIDialogYesNo)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_DIALOG_YES_NO); - /* dlg.SetHeading("Moving directory"); - dlg.SetLine(1, "The directory \"" + GetFilename(dest) + "\""); - dlg.SetLine(2, "alread exists!"); - dlg.SetLine(3, "Do you want to overwrite it?"); */ - dlg.SetHeading(Constants.Operation.MOVINGDIR); - dlg.SetLine(1, Constants.Operation.THEDIR + "\"" + GetFilename(dest) + "\""); - dlg.SetLine(2, Constants.Operation.ALREADYEXIST); - dlg.SetLine(3, Constants.Operation.OVERWRITE); - dlg.DoModal(GUIWindowManager.ActiveWindow); + if (!item.IsFolder) + { + // dlg.SetHeading("Move File \"" + item.Label + "\""); + dlg.SetHeading(Constants.Operation.MOVEFILE + "\"" + item.Label + "\""); + // dlg.SetLine(2, "From: " + item.Path); + dlg.SetLine(2, Constants.Operation.FROM + item.Path); + // dlg.SetLine(3, "To: " + secondView.Path); + dlg.SetLine(3, Constants.Dialog.TO + secondView.Path); // already defined in Dialog + dlg.DoModal(GUIWindowManager.ActiveWindow); - if (!dlg.IsConfirmed) - { - return; - } - } + if (dlg.IsConfirmed) + { + MoveSingleFile(item.Path + "\\" + item.Label, secondView.Path + "\\" + item.Label); + Update(); + secondView.Update(); + } + } + else + { + // dlg.SetHeading("Move Directory \"" + item.Label + "\""); + dlg.SetHeading(Constants.Operation.MOVEDIR + "\"" + item.Label + "\""); + // dlg.SetLine(2, "To: " + secondView.Path); + dlg.SetLine(2, Constants.Dialog.TO + secondView.Path); // already defined in Dialog + dlg.DoModal(GUIWindowManager.ActiveWindow); - if (this.Drive.Equals(secondView.Drive)) - { - dlgOp.SetCurrentFile("*.*"); - dlgOp.SetToPath(dest); + if (dlg.IsConfirmed) + { + ShowDialogOperation(GUIDialogOperation.DialogType.MOVE); + MoveDirectory(item.Path, secondView.Path + "\\" + GetFilename(item.Path)); + Update(); + secondView.Update(); + dlgOp.Close(); + } + } + } + else + { + foreach (Info info in selectedList) + { + if (info.IsPath) + { + ShowDialogOperation(GUIDialogOperation.DialogType.MOVE); + MoveDirectory(info.Path.Path, secondView.Path + "\\" + GetFilename(info.Path.Path)); + dlgOp.Close(); + } + else + { + MoveSingleFile(info.File.Path + "\\" + info.File.Name, secondView.Path + "\\" + info.File.Name); + } + } - try - { - System.IO.Directory.Move(scr, dest); + secondView.Update(); + } } - catch (Exception e) + + private void MoveSingleFile(string src, string dest) { - ExceptionViewer.ShowException(e); - } - } - else - { - CopyDirectory(scr, dest); - FileIO.FileSystem.DeleteDirectory(scr, FileIO.UIOption.OnlyErrorDialogs, FileIO.RecycleOption.SendToRecycleBin); - } - } - #endregion + if (System.IO.File.Exists(dest)) + { + GUIDialogYesNo dlg = (GUIDialogYesNo)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_DIALOG_YES_NO); + /* dlg.SetHeading("Moving file"); + dlg.SetLine(1, "The file \"" + GetFilename(src) + "\""); + dlg.SetLine(2, "alread exists!"); + dlg.SetLine(3, "Do you want to overwrite it?"); */ + dlg.Reset(); + dlg.SetHeading(Constants.Operation.MOVINGFILE); + dlg.SetLine(1, Constants.Operation.THEFILE + "\"" + GetFilename(src) + "\""); + dlg.SetLine(2, Constants.Operation.ALREADYEXIST); + dlg.SetLine(3, Constants.Operation.OVERWRITE); + dlg.DoModal(GUIWindowManager.ActiveWindow); - #region Delete routines - private void Delete() - { - if (selectedList != null) - { - Info[] info = new Info[selectedList.Count]; - selectedList.CopyTo(info); - selectedList = null; + if (!dlg.IsConfirmed) + { + return; + } + } - for (int i = 0; i < info.Length; i++) - { - if (info[i].IsPath) - { - ShowDialogOperation(GUIDialogOperation.DialogType... [truncated message content] |
From: <fr...@us...> - 2010-05-04 04:44:53
|
Revision: 3571 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=3571&view=rev Author: framug Date: 2010-05-04 04:44:46 +0000 (Tue, 04 May 2010) Log Message: ----------- - All classes indetation 2 for a better diff reading. - Update french. - Obsolete FreeResources() replaced by Dispose(). Modified Paths: -------------- trunk/plugins/File Explorer/Dialogs/GUIDialogOperation.cs trunk/plugins/File Explorer/DrivesView.cs trunk/plugins/File Explorer/ExceptionViewer.cs trunk/plugins/File Explorer/File Explorer.cs trunk/plugins/File Explorer/Language/strings_fr.xml trunk/plugins/File Explorer/LocalizeStrings.cs trunk/plugins/File Explorer/Preview/ModulePreview.cs trunk/plugins/File Explorer/Preview/PicturePreview.cs trunk/plugins/File Explorer/Preview/StreamingPreview.cs trunk/plugins/File Explorer/Preview/TextPreview.cs trunk/plugins/File Explorer/XmlConfig.cs Modified: trunk/plugins/File Explorer/Dialogs/GUIDialogOperation.cs =================================================================== --- trunk/plugins/File Explorer/Dialogs/GUIDialogOperation.cs 2010-05-03 21:46:09 UTC (rev 3570) +++ trunk/plugins/File Explorer/Dialogs/GUIDialogOperation.cs 2010-05-04 04:44:46 UTC (rev 3571) @@ -29,66 +29,69 @@ namespace FileExplorer.Dialogs { - /// <summary> - /// This class shows a dialog which shows information about - /// operations done by DrivesView class. - /// </summary> - public class GUIDialogOperation : GUIWindow, IRenderLayer - { - #region enum DialogType - /// <summary> - /// Available dialogtypes. - /// </summary> - public enum DialogType : int - { - COPY = 0, - MOVE = 1, - DELETE = 2, - ENCRYPT = 3, - DECRYPT = 4, - COMPRESS = 5, - UNCOMPRESS = 6, - HIDE = 7, - UNHIDE = 8, - READONLY_FLAG_ADD = 9, - READONLY_FLAG_REMOVE = 10, - AUDIO_PLAYLIST_CREATE = 11, - VIDEO_PLAYLIST_CREATE = 12, - AUDIO_PLAYLIST_ADD = 13, - VIDEO_PLAYLIST_ADD = 14 - }; - #endregion - - #region vars - private int parentID; - private bool running = false; - - private DialogType type = 0; - - private string file = string.Empty; - private string to = string.Empty; - - private Thread processThread = null; - #endregion - - #region skin vars - [SkinControlAttribute(2)] private GUILabelControl lblHeading = null; - [SkinControlAttribute(3)] private GUILabelControl lblText1 = null; - [SkinControlAttribute(4)] private GUILabelControl lblText2 = null; - #endregion - - #region public members - /// <summary> - /// Shows the dialog and waits until the user has closed it. - /// </summary> - /// <param name="parentID">Parentwindow id.</param> - public void DoModal(int parentID) - { - this.parentID = parentID; - - GUIWindow win = GUIWindowManager.GetWindow(parentID); - - GUIWindowManager.IsSwitchingToNewWindow = true; + /// <summary> + /// This class shows a dialog which shows information about + /// operations done by DrivesView class. + /// </summary> + public class GUIDialogOperation : GUIWindow, IRenderLayer + { + #region enum DialogType + /// <summary> + /// Available dialogtypes. + /// </summary> + public enum DialogType : int + { + COPY = 0, + MOVE = 1, + DELETE = 2, + ENCRYPT = 3, + DECRYPT = 4, + COMPRESS = 5, + UNCOMPRESS = 6, + HIDE = 7, + UNHIDE = 8, + READONLY_FLAG_ADD = 9, + READONLY_FLAG_REMOVE = 10, + AUDIO_PLAYLIST_CREATE = 11, + VIDEO_PLAYLIST_CREATE = 12, + AUDIO_PLAYLIST_ADD = 13, + VIDEO_PLAYLIST_ADD = 14 + }; + #endregion + + #region vars + private int parentID; + private bool running = false; + + private DialogType type = 0; + + private string file = string.Empty; + private string to = string.Empty; + + private Thread processThread = null; + #endregion + + #region skin vars + [SkinControlAttribute(2)] + private GUILabelControl lblHeading = null; + [SkinControlAttribute(3)] + private GUILabelControl lblText1 = null; + [SkinControlAttribute(4)] + private GUILabelControl lblText2 = null; + #endregion + + #region public members + /// <summary> + /// Shows the dialog and waits until the user has closed it. + /// </summary> + /// <param name="parentID">Parentwindow id.</param> + public void DoModal(int parentID) + { + this.parentID = parentID; + + GUIWindow win = GUIWindowManager.GetWindow(parentID); + + GUIWindowManager.IsSwitchingToNewWindow = true; GUIWindowManager.RouteToWindow(GetID); // activate this window @@ -96,25 +99,25 @@ OnMessage(msg); GUIWindowManager.IsSwitchingToNewWindow = false; - + running = true; while (running && GUIGraphicsContext.CurrentState == GUIGraphicsContext.State.RUNNING) { GUIWindowManager.Process(); } - } - - /// <summary> - /// Shows the dialog. - /// </summary> - /// <param name="parentID">Parentwindow id.</param> - public void Show(int parentID) - { - this.parentID = parentID; - - GUIWindow win = GUIWindowManager.GetWindow(parentID); - - GUIWindowManager.IsSwitchingToNewWindow = true; + } + + /// <summary> + /// Shows the dialog. + /// </summary> + /// <param name="parentID">Parentwindow id.</param> + public void Show(int parentID) + { + this.parentID = parentID; + + GUIWindow win = GUIWindowManager.GetWindow(parentID); + + GUIWindowManager.IsSwitchingToNewWindow = true; GUIWindowManager.RouteToWindow(GetID); // activate this window @@ -123,316 +126,316 @@ GUIWindowManager.IsSwitchingToNewWindow = false; GUIWindowManager.Process(); - + running = true; - + processThread = new Thread(new ThreadStart(this.ProcessThread)); processThread.Start(); - } - - /// <summary> - /// Closes the dialog. Only available if the dialog was shown using Show(). - /// </summary> - public void Close() - { - this.OnAction(new Action(Action.ActionType.ACTION_CLOSE_DIALOG, 0, 0)); - } - - /// <summary> - /// Sets/returns the dialogtype. - /// </summary> - public DialogType Type - { - get { return type; } - set { SetType(value); } - } - - /// <summary> - /// Sets the dialogtype. - /// </summary> - /// <param name="type">Dialogtype.</param> - public void SetType(DialogType type) - { - this.type = type; - - switch (type) - { - case DialogType.AUDIO_PLAYLIST_CREATE: -// lblHeading.Label = "Create Audio Playlist"; -// lblText1.Label = "Adding File: "; -// lblText2.Label = "Path: "; - lblHeading.Label = Constants.Dialog.CREATEAUDIO; - lblText1.Label = Constants.Dialog.ADDFILE; - lblText2.Label = Constants.Dialog.PATH; - break; - case DialogType.COMPRESS: -// lblHeading.Label = "Compressing"; -// lblText1.Label = "Compressing File: "; -// lblText2.Label = "Path: "; - lblHeading.Label = Constants.Dialog.COMPRESS; - lblText1.Label = Constants.Dialog.COMPRESSFILE; - lblText2.Label = Constants.Dialog.PATH; - break; - case DialogType.COPY: -// lblHeading.Label = "Copy"; -// lblText1.Label = "File: "; -// lblText2.Label = "To: "; - lblHeading.Label = Constants.Dialog.COPY; - lblText1.Label = Constants.Dialog.FILE; - lblText2.Label = Constants.Dialog.TO; - break; - case DialogType.DECRYPT: -// lblHeading.Label = "Decrypting"; -// lblText1.Label = "File: "; -// lblText2.Label = "Path: "; - lblHeading.Label = Constants.Dialog.DECRYPT; - lblText1.Label = Constants.Dialog.FILE; - lblText2.Label = Constants.Dialog.PATH; - break; - case DialogType.DELETE: -// lblHeading.Label = "Delete"; -// lblText1.Label = "File: "; -// lblText2.Label = "Path: "; - lblHeading.Label = Constants.Dialog.DELETE; - lblText1.Label = Constants.Dialog.FILE; - lblText2.Label = Constants.Dialog.PATH; - break; - case DialogType.ENCRYPT: -// lblHeading.Label = "Encrypting"; -// lblText1.Label = "File: "; -// lblText2.Label = "Path: "; - lblHeading.Label = Constants.Dialog.ENCRYPT; - lblText1.Label = Constants.Dialog.FILE; - lblText2.Label = Constants.Dialog.PATH; - break; - case DialogType.HIDE: -// lblHeading.Label = "Hide"; -// lblText1.Label = "File: "; -// lblText2.Label = "Path: "; - lblHeading.Label = Constants.Dialog.HIDE; - lblText1.Label = Constants.Dialog.FILE; - lblText2.Label = Constants.Dialog.PATH; - break; - case DialogType.MOVE: -// lblHeading.Label = "Move"; -// lblText1.Label = "File: "; -// lblText2.Label = "To: "; - lblHeading.Label = Constants.Dialog.MOVE; - lblText1.Label = Constants.Dialog.FILE; - lblText2.Label = Constants.Dialog.TO; - break; - case DialogType.READONLY_FLAG_ADD: -// lblHeading.Label = "Set readonly flag"; -// lblText1.Label = "File: "; -// lblText2.Label = "Path: "; - lblHeading.Label = Constants.Dialog.SETREADONLY; - lblText1.Label = Constants.Dialog.FILE; - lblText2.Label = Constants.Dialog.PATH; - break; - case DialogType.READONLY_FLAG_REMOVE: -// lblHeading.Label = "Remove readonly flag"; -// lblText1.Label = "File: "; -// lblText2.Label = "Path: "; - lblHeading.Label = Constants.Dialog.REMOVEREADONLY; - lblText1.Label = Constants.Dialog.FILE; - lblText2.Label = Constants.Dialog.PATH; - break; - case DialogType.UNCOMPRESS: -// lblHeading.Label = "Uncompressing"; -// lblText1.Label = "File: "; -// lblText2.Label = "Path: "; - lblHeading.Label = Constants.Dialog.UNCOMPRESS; - lblText1.Label = Constants.Dialog.FILE; - lblText2.Label = Constants.Dialog.PATH; - break; - case DialogType.UNHIDE: -// lblHeading.Label = "Unhide"; -// lblText1.Label = "File: "; -// lblText2.Label = "Path: "; - lblHeading.Label = Constants.Dialog.UNHIDE; - lblText1.Label = Constants.Dialog.FILE; - lblText2.Label = Constants.Dialog.PATH; - break; - case DialogType.VIDEO_PLAYLIST_CREATE: -// lblHeading.Label = "Create Video Playlist"; -// lblText1.Label = "Adding File: "; -// lblText2.Label = "Path: "; - lblHeading.Label = Constants.Dialog.CREATEVIDEO; - lblText1.Label = Constants.Dialog.ADDFILE; - lblText2.Label = Constants.Dialog.PATH; - break; - case DialogType.AUDIO_PLAYLIST_ADD: -// lblHeading.Label = "Add to Audio Playlist"; -// lblText1.Label = "Reading files . . . "; - lblHeading.Label = Constants.Dialog.ADDAUDIO; - lblText1.Label = Constants.Dialog.READFILE; - lblText2.Label = string.Empty; - break; - case DialogType.VIDEO_PLAYLIST_ADD: -// lblHeading.Label = "Add to Video Playlist"; -// lblText1.Label = "Reading files . . . "; - lblHeading.Label = Constants.Dialog.ADDVIDEO; - lblText1.Label = Constants.Dialog.READFILE; - lblText2.Label = string.Empty; - break; - } - } - - public void SetCurrentFile(string file) - { - SuspendThread(); - this.file = file; -// lblText1.Label = "File: " + file; - lblText1.Label = Constants.Dialog.FILE + file; - ResumeThread(); - } - - public void SetToPath(string path) - { - SuspendThread(); - if (path.Length > 30) - { - path = path.Substring(0, 3) + "..\\" + GetFilename(path); - } - this.to = path; -// lblText2.Label = "To: " + path; - lblText2.Label = Constants.Dialog.TO + path; - ResumeThread(); - } - - public void SetPath(string path) - { - SuspendThread(); - if (path.Length > 30) - { - path = path.Substring(0, 3) + "..\\" + GetFilename(path); - } -// lblText2.Label = "Path: " + path; - lblText2.Label = Constants.Dialog.PATH + path; - ResumeThread(); - } - - /// <summary> - /// Adds text to the dialog's first label. - /// </summary> - /// <param name="text">Text</param> - public void SetText(string text) - { - SuspendThread(); - lblText1.Label = text; - lblText2.Label = string.Empty; - ResumeThread(); - } - - /// <summary> - /// Adds text to the dialog's first and second label. - /// </summary> - /// <param name="text1">Text for label 1.</param> - /// <param name="text2">Text for label 2.</param> - public void SetText(string text1, string text2) - { - SuspendThread(); - lblText1.Label = text1; - lblText1.Label = text2; - ResumeThread(); - } - #endregion - - #region private members - private void ProcessThread() - { - while (running) - { - GUIWindowManager.Process(); - } - } - //fmu if someone know how to remove this obsolete m$soft method ? - private void SuspendThread() - { - processThread.Suspend(); - } + } + + /// <summary> + /// Closes the dialog. Only available if the dialog was shown using Show(). + /// </summary> + public void Close() + { + this.OnAction(new Action(Action.ActionType.ACTION_CLOSE_DIALOG, 0, 0)); + } + + /// <summary> + /// Sets/returns the dialogtype. + /// </summary> + public DialogType Type + { + get { return type; } + set { SetType(value); } + } + + /// <summary> + /// Sets the dialogtype. + /// </summary> + /// <param name="type">Dialogtype.</param> + public void SetType(DialogType type) + { + this.type = type; + + switch (type) + { + case DialogType.AUDIO_PLAYLIST_CREATE: + // lblHeading.Label = "Create Audio Playlist"; + // lblText1.Label = "Adding File: "; + // lblText2.Label = "Path: "; + lblHeading.Label = Constants.Dialog.CREATEAUDIO; + lblText1.Label = Constants.Dialog.ADDFILE; + lblText2.Label = Constants.Dialog.PATH; + break; + case DialogType.COMPRESS: + // lblHeading.Label = "Compressing"; + // lblText1.Label = "Compressing File: "; + // lblText2.Label = "Path: "; + lblHeading.Label = Constants.Dialog.COMPRESS; + lblText1.Label = Constants.Dialog.COMPRESSFILE; + lblText2.Label = Constants.Dialog.PATH; + break; + case DialogType.COPY: + // lblHeading.Label = "Copy"; + // lblText1.Label = "File: "; + // lblText2.Label = "To: "; + lblHeading.Label = Constants.Dialog.COPY; + lblText1.Label = Constants.Dialog.FILE; + lblText2.Label = Constants.Dialog.TO; + break; + case DialogType.DECRYPT: + // lblHeading.Label = "Decrypting"; + // lblText1.Label = "File: "; + // lblText2.Label = "Path: "; + lblHeading.Label = Constants.Dialog.DECRYPT; + lblText1.Label = Constants.Dialog.FILE; + lblText2.Label = Constants.Dialog.PATH; + break; + case DialogType.DELETE: + // lblHeading.Label = "Delete"; + // lblText1.Label = "File: "; + // lblText2.Label = "Path: "; + lblHeading.Label = Constants.Dialog.DELETE; + lblText1.Label = Constants.Dialog.FILE; + lblText2.Label = Constants.Dialog.PATH; + break; + case DialogType.ENCRYPT: + // lblHeading.Label = "Encrypting"; + // lblText1.Label = "File: "; + // lblText2.Label = "Path: "; + lblHeading.Label = Constants.Dialog.ENCRYPT; + lblText1.Label = Constants.Dialog.FILE; + lblText2.Label = Constants.Dialog.PATH; + break; + case DialogType.HIDE: + // lblHeading.Label = "Hide"; + // lblText1.Label = "File: "; + // lblText2.Label = "Path: "; + lblHeading.Label = Constants.Dialog.HIDE; + lblText1.Label = Constants.Dialog.FILE; + lblText2.Label = Constants.Dialog.PATH; + break; + case DialogType.MOVE: + // lblHeading.Label = "Move"; + // lblText1.Label = "File: "; + // lblText2.Label = "To: "; + lblHeading.Label = Constants.Dialog.MOVE; + lblText1.Label = Constants.Dialog.FILE; + lblText2.Label = Constants.Dialog.TO; + break; + case DialogType.READONLY_FLAG_ADD: + // lblHeading.Label = "Set readonly flag"; + // lblText1.Label = "File: "; + // lblText2.Label = "Path: "; + lblHeading.Label = Constants.Dialog.SETREADONLY; + lblText1.Label = Constants.Dialog.FILE; + lblText2.Label = Constants.Dialog.PATH; + break; + case DialogType.READONLY_FLAG_REMOVE: + // lblHeading.Label = "Remove readonly flag"; + // lblText1.Label = "File: "; + // lblText2.Label = "Path: "; + lblHeading.Label = Constants.Dialog.REMOVEREADONLY; + lblText1.Label = Constants.Dialog.FILE; + lblText2.Label = Constants.Dialog.PATH; + break; + case DialogType.UNCOMPRESS: + // lblHeading.Label = "Uncompressing"; + // lblText1.Label = "File: "; + // lblText2.Label = "Path: "; + lblHeading.Label = Constants.Dialog.UNCOMPRESS; + lblText1.Label = Constants.Dialog.FILE; + lblText2.Label = Constants.Dialog.PATH; + break; + case DialogType.UNHIDE: + // lblHeading.Label = "Unhide"; + // lblText1.Label = "File: "; + // lblText2.Label = "Path: "; + lblHeading.Label = Constants.Dialog.UNHIDE; + lblText1.Label = Constants.Dialog.FILE; + lblText2.Label = Constants.Dialog.PATH; + break; + case DialogType.VIDEO_PLAYLIST_CREATE: + // lblHeading.Label = "Create Video Playlist"; + // lblText1.Label = "Adding File: "; + // lblText2.Label = "Path: "; + lblHeading.Label = Constants.Dialog.CREATEVIDEO; + lblText1.Label = Constants.Dialog.ADDFILE; + lblText2.Label = Constants.Dialog.PATH; + break; + case DialogType.AUDIO_PLAYLIST_ADD: + // lblHeading.Label = "Add to Audio Playlist"; + // lblText1.Label = "Reading files . . . "; + lblHeading.Label = Constants.Dialog.ADDAUDIO; + lblText1.Label = Constants.Dialog.READFILE; + lblText2.Label = string.Empty; + break; + case DialogType.VIDEO_PLAYLIST_ADD: + // lblHeading.Label = "Add to Video Playlist"; + // lblText1.Label = "Reading files . . . "; + lblHeading.Label = Constants.Dialog.ADDVIDEO; + lblText1.Label = Constants.Dialog.READFILE; + lblText2.Label = string.Empty; + break; + } + } + + public void SetCurrentFile(string file) + { + SuspendThread(); + this.file = file; + // lblText1.Label = "File: " + file; + lblText1.Label = Constants.Dialog.FILE + file; + ResumeThread(); + } + + public void SetToPath(string path) + { + SuspendThread(); + if (path.Length > 30) + { + path = path.Substring(0, 3) + "..\\" + GetFilename(path); + } + this.to = path; + // lblText2.Label = "To: " + path; + lblText2.Label = Constants.Dialog.TO + path; + ResumeThread(); + } + + public void SetPath(string path) + { + SuspendThread(); + if (path.Length > 30) + { + path = path.Substring(0, 3) + "..\\" + GetFilename(path); + } + // lblText2.Label = "Path: " + path; + lblText2.Label = Constants.Dialog.PATH + path; + ResumeThread(); + } + + /// <summary> + /// Adds text to the dialog's first label. + /// </summary> + /// <param name="text">Text</param> + public void SetText(string text) + { + SuspendThread(); + lblText1.Label = text; + lblText2.Label = string.Empty; + ResumeThread(); + } + + /// <summary> + /// Adds text to the dialog's first and second label. + /// </summary> + /// <param name="text1">Text for label 1.</param> + /// <param name="text2">Text for label 2.</param> + public void SetText(string text1, string text2) + { + SuspendThread(); + lblText1.Label = text1; + lblText1.Label = text2; + ResumeThread(); + } + #endregion + + #region private members + private void ProcessThread() + { + while (running) + { + GUIWindowManager.Process(); + } + } //fmu if someone know how to remove this obsolete m$soft method ? - private void ResumeThread() - { - processThread.Resume(); - } - - private string GetFilename(string filePath) - { - int index = filePath.LastIndexOf("\\"); - - if (index == -1) - { - index = filePath.LastIndexOf("/"); - } - - if (index == -1) - { - return filePath; - } - - return filePath.Substring(index + 1); - } - #endregion - - #region Overrides - public override int GetID - { - get { return Constants.WindowIDs.DIALOGOPERATION; } - set { base.GetID = value; } - } - - public override bool Init() - { - return Load(GUIGraphicsContext.Skin + "\\File Explorer_dialog.xml"); - } - - public override void OnAction(Action action) - { - if (action.wID == Action.ActionType.ACTION_CLOSE_DIALOG || action.wID == Action.ActionType.ACTION_PREVIOUS_MENU) + private void SuspendThread() + { + processThread.Suspend(); + } + //fmu if someone know how to remove this obsolete m$soft method ? + private void ResumeThread() + { + processThread.Resume(); + } + + private string GetFilename(string filePath) + { + int index = filePath.LastIndexOf("\\"); + + if (index == -1) { + index = filePath.LastIndexOf("/"); + } + + if (index == -1) + { + return filePath; + } + + return filePath.Substring(index + 1); + } + #endregion + + #region Overrides + public override int GetID + { + get { return Constants.WindowIDs.DIALOGOPERATION; } + set { base.GetID = value; } + } + + public override bool Init() + { + return Load(GUIGraphicsContext.Skin + "\\File Explorer_dialog.xml"); + } + + public override void OnAction(Action action) + { + if (action.wID == Action.ActionType.ACTION_CLOSE_DIALOG || action.wID == Action.ActionType.ACTION_PREVIOUS_MENU) + { GUIMessage msg = new GUIMessage(GUIMessage.MessageType.GUI_MSG_WINDOW_DEINIT, GetID, 0, 0, 0, 0, null); OnMessage(msg); - + return; } - - base.OnAction(action); - } - - public override bool OnMessage(GUIMessage message) - { - if (message.Message == GUIMessage.MessageType.GUI_MSG_WINDOW_DEINIT) - { - GUIWindowManager.IsSwitchingToNewWindow = true; - - lock (this) - { - FreeResources(); + + base.OnAction(action); + } + + public override bool OnMessage(GUIMessage message) + { + if (message.Message == GUIMessage.MessageType.GUI_MSG_WINDOW_DEINIT) + { + GUIWindowManager.IsSwitchingToNewWindow = true; + + lock (this) + { + Dispose(); DeInitControls(); GUILayerManager.UnRegisterLayer(this); - - GUIWindowManager.UnRoute(); - running = false; - } - GUIWindowManager.IsSwitchingToNewWindow = false; - } - else if (message.Message == GUIMessage.MessageType.GUI_MSG_WINDOW_INIT) - { - base.OnMessage(message); + GUIWindowManager.UnRoute(); + running = false; + } + + GUIWindowManager.IsSwitchingToNewWindow = false; + } + else if (message.Message == GUIMessage.MessageType.GUI_MSG_WINDOW_INIT) + { + base.OnMessage(message); GUILayerManager.RegisterLayer(this, GUILayerManager.LayerType.Dialog); - } - return base.OnMessage(message); - } - - protected override void OnPageLoad() - { - - } - #endregion - - #region IRenderLayer + } + return base.OnMessage(message); + } + + protected override void OnPageLoad() + { + + } + #endregion + + #region IRenderLayer public bool ShouldRenderLayer() { return true; @@ -443,5 +446,5 @@ Render(timePassed); } #endregion - } + } } Modified: trunk/plugins/File Explorer/DrivesView.cs =================================================================== --- trunk/plugins/File Explorer/DrivesView.cs 2010-05-03 21:46:09 UTC (rev 3570) +++ trunk/plugins/File Explorer/DrivesView.cs 2010-05-04 04:44:46 UTC (rev 3571) @@ -36,178 +36,178 @@ namespace FileExplorer { - #region Structs - public struct Drive - { - public string Path; - public string TypeDescription; - public int Type; - } + #region Structs + public struct Drive + { + public string Path; + public string TypeDescription; + public int Type; + } - public struct FileInfo - { - public string Path; - public string Name; - public float SizeInByte; - public float SizeInKB; - public float SizeInMB; - public float SizeInGB; - public string LastChanged; - public string CreatedOn; - public string LastRead; - public bool ReadOnly; - public bool Hidden; - public bool SystemFile; - public bool Encrypted; - public bool Compressed; - } + public struct FileInfo + { + public string Path; + public string Name; + public float SizeInByte; + public float SizeInKB; + public float SizeInMB; + public float SizeInGB; + public string LastChanged; + public string CreatedOn; + public string LastRead; + public bool ReadOnly; + public bool Hidden; + public bool SystemFile; + public bool Encrypted; + public bool Compressed; + } - public struct PathInfo - { - public string Name; - public string Path; - public string CreatedOn; - public string LastChanged; - public string LastRead; - public bool ReadOnly; - public bool Hidden; - public bool SystemFile; - public bool Encrypted; - public bool Compressed; - } + public struct PathInfo + { + public string Name; + public string Path; + public string CreatedOn; + public string LastChanged; + public string LastRead; + public bool ReadOnly; + public bool Hidden; + public bool SystemFile; + public bool Encrypted; + public bool Compressed; + } - public struct Info - { - public FileInfo File; - public PathInfo Path; - public bool IsPath; + public struct Info + { + public FileInfo File; + public PathInfo Path; + public bool IsPath; - public bool IsFile - { - get { return !IsPath; } - set { IsPath = !value; } - } - } - #endregion - - #region Enums - enum RecycleFlags : uint + public bool IsFile { - SHERB_NOCONFIRMATION = 0x00000001, - SHERB_NOPROGRESSUI = 0x00000002, - SHERB_NOSOUND = 0x00000004 + get { return !IsPath; } + set { IsPath = !value; } } - #endregion + } + #endregion - /// <summary> - /// Description of DrivesView. - /// </summary> - public class DrivesView - { - [DllImport("Shell32.dll", CharSet = CharSet.Unicode)] - static extern uint SHEmptyRecycleBin(IntPtr hwnd, string pszRootPath, RecycleFlags dwFlags); + #region Enums + enum RecycleFlags : uint + { + SHERB_NOCONFIRMATION = 0x00000001, + SHERB_NOPROGRESSUI = 0x00000002, + SHERB_NOSOUND = 0x00000004 + } + #endregion - #region static members - [DllImport(".\\Plugins\\Windows\\Compression.dll")] - private static extern bool CompressFile(string file); + /// <summary> + /// Description of DrivesView. + /// </summary> + public class DrivesView + { + [DllImport("Shell32.dll", CharSet = CharSet.Unicode)] + static extern uint SHEmptyRecycleBin(IntPtr hwnd, string pszRootPath, RecycleFlags dwFlags); - [DllImport(".\\Plugins\\Windows\\Compression.dll")] - private static extern bool UncompressFile(string file); + #region static members + [DllImport(".\\Plugins\\Windows\\Compression.dll")] + private static extern bool CompressFile(string file); - [DllImport("kernel32.dll")] - private static extern int SetFileAttributes(string filename, System.UInt32 dwFileAttributes); + [DllImport(".\\Plugins\\Windows\\Compression.dll")] + private static extern bool UncompressFile(string file); - private static readonly System.UInt32 FILE_ATTRIBUTE_NORMAL = 0x00000080; - private static readonly System.UInt32 FILE_ATTRIBUTE_HIDDEN = 0x00000002; - private static readonly System.UInt32 FILE_ATTRIBUTE_READONLY = 0x00000001; - private static readonly System.UInt32 FILE_ATTRIBUTE_SYSTEM = 0x00000004; - #endregion + [DllImport("kernel32.dll")] + private static extern int SetFileAttributes(string filename, System.UInt32 dwFileAttributes); - #region vars - private int lstId; - private int winId; - private int lblId; - private int lblDirId; + private static readonly System.UInt32 FILE_ATTRIBUTE_NORMAL = 0x00000080; + private static readonly System.UInt32 FILE_ATTRIBUTE_HIDDEN = 0x00000002; + private static readonly System.UInt32 FILE_ATTRIBUTE_READONLY = 0x00000001; + private static readonly System.UInt32 FILE_ATTRIBUTE_SYSTEM = 0x00000004; + #endregion - private string currentPath = null; - private string currentDrive = null; - private ArrayList drives = null; - private ArrayList currentPathList = null; + #region vars + private int lstId; + private int winId; + private int lblId; + private int lblDirId; - private ArrayList selectedList = null; + private string currentPath = null; + private string currentDrive = null; + private ArrayList drives = null; + private ArrayList currentPathList = null; - private bool showExtensions; - private bool trashcan; - private bool showAllFiles; - private bool showSystemFiles; - private bool showSystemDirs; - private bool selectionMode = false; + private ArrayList selectedList = null; - private DrivesView secondView = null; + private bool showExtensions; + private bool trashcan; + private bool showAllFiles; + private bool showSystemFiles; + private bool showSystemDirs; + private bool selectionMode = false; - private ArrayList lstFiles = null; + private DrivesView secondView = null; - private GUIDialogOperation dlgOp = null; + private ArrayList lstFiles = null; - #endregion + private GUIDialogOperation dlgOp = null; - #region ctor - public DrivesView(int windowID, int guiListViewControlID, int infoLabelID, int dirLabelID) - { - this.lstId = guiListViewControlID; - this.winId = windowID; - this.lblId = infoLabelID; - this.lblDirId = dirLabelID; + #endregion - CreateDrivesList(); - // SetStandardValues(); - SetStandardValues(this.lstId); - LoadPath(); - FillListControl(); - } - #endregion + #region ctor + public DrivesView(int windowID, int guiListViewControlID, int infoLabelID, int dirLabelID) + { + this.lstId = guiListViewControlID; + this.winId = windowID; + this.lblId = infoLabelID; + this.lblDirId = dirLabelID; - #region private members - private void CreateDrivesList() - { - drives = new ArrayList(); + CreateDrivesList(); + // SetStandardValues(); + SetStandardValues(this.lstId); + LoadPath(); + FillListControl(); + } + #endregion - foreach (string d in Environment.GetLogicalDrives()) - { - Drive drv = new Drive(); - drv.Path = d; - drv.Type = Utils.getDriveType(d); + #region private members + private void CreateDrivesList() + { + drives = new ArrayList(); - if (drv.Type == Constants.DriveTypes.CD_DVD) - { - // drv.TypeDescription = "CD/DVD Drive"; - drv.TypeDescription = Constants.View.CD; - } - else if (drv.Type == Constants.DriveTypes.FIXED) - { - // drv.TypeDescription = "HDD"; - drv.TypeDescription = Constants.View.HDD; - } - else if (drv.Type == Constants.DriveTypes.RAMDISK) - { - // drv.TypeDescription = "RamDisk"; - drv.TypeDescription = Constants.View.RAMDISK; - } - else if (drv.Type == Constants.DriveTypes.REMOTEDISK) - { - // drv.TypeDescription = "Network Drive"; - drv.TypeDescription = Constants.View.NETWORK; - } - else if (drv.Type == Constants.DriveTypes.REMOVEABLE) - { - // drv.TypeDescription = "Removeable"; - drv.TypeDescription = Constants.View.REMOVEABLE; - } + foreach (string d in Environment.GetLogicalDrives()) + { + Drive drv = new Drive(); + drv.Path = d; + drv.Type = Utils.getDriveType(d); - drives.Add(drv); - } + if (drv.Type == Constants.DriveTypes.CD_DVD) + { + // drv.TypeDescription = "CD/DVD Drive"; + drv.TypeDescription = Constants.View.CD; } + else if (drv.Type == Constants.DriveTypes.FIXED) + { + // drv.TypeDescription = "HDD"; + drv.TypeDescription = Constants.View.HDD; + } + else if (drv.Type == Constants.DriveTypes.RAMDISK) + { + // drv.TypeDescription = "RamDisk"; + drv.TypeDescription = Constants.View.RAMDISK; + } + else if (drv.Type == Constants.DriveTypes.REMOTEDISK) + { + // drv.TypeDescription = "Network Drive"; + drv.TypeDescription = Constants.View.NETWORK; + } + else if (drv.Type == Constants.DriveTypes.REMOVEABLE) + { + // drv.TypeDescription = "Removeable"; + drv.TypeDescription = Constants.View.REMOVEABLE; + } + drives.Add(drv); + } + } + private void SetStandardValues(int lstId) { SetStandardValues(); @@ -227,3028 +227,3028 @@ } } - private void SetStandardValues() + private void SetStandardValues() + { + foreach (Drive d in drives) + { + if (d.Type == Constants.DriveTypes.FIXED) { - foreach (Drive d in drives) - { - if (d.Type == Constants.DriveTypes.FIXED) - { - currentDrive = d.Path; - currentPath = d.Path; + currentDrive = d.Path; + currentPath = d.Path; - break; - } - } - - showExtensions = Constants.SetupForm.valueStandards[0]; - trashcan = Constants.SetupForm.valueStandards[1]; - showAllFiles = Constants.SetupForm.valueStandards[2]; - showSystemFiles = Constants.SetupForm.valueStandards[3]; - showSystemDirs = Constants.SetupForm.valueStandards[4]; - SelectionMode = false; + break; } + } - private bool LoadPath() + showExtensions = Constants.SetupForm.valueStandards[0]; + trashcan = Constants.SetupForm.valueStandards[1]; + showAllFiles = Constants.SetupForm.valueStandards[2]; + showSystemFiles = Constants.SetupForm.valueStandards[3]; + showSystemDirs = Constants.SetupForm.valueStandards[4]; + SelectionMode = false; + } + + private bool LoadPath() + { + selectedList = null; + string[] files = null; + try + { + files = System.IO.Directory.GetFileSystemEntries(currentPath); + } + catch (Exception e) + { + ExceptionViewer.ShowException(e); + return false; + } + + currentPathList = new ArrayList(); + + foreach (string s in files) + { + Info info = new Info(); + + if (System.IO.File.Exists(s)) { - selectedList = null; - string[] files = null; - try - { - files = System.IO.Directory.GetFileSystemEntries(currentPath); - } - catch (Exception e) - { - ExceptionViewer.ShowException(e); - return false; - } + System.IO.FileInfo fi = new System.IO.FileInfo(s); - currentPathList = new ArrayList(); + info.IsFile = true; + info.File.Name = GetFilename(s); + info.File.Path = GetPath(s); + info.File.CreatedOn = fi.CreationTime.ToString(); + info.File.LastChanged = fi.LastWriteTime.ToString(); + info.File.LastRead = fi.LastAccessTime.ToString(); + info.File.SizeInByte = (float)fi.Length; + info.File.SizeInKB = info.File.SizeInByte / 1024; + info.File.SizeInMB = info.File.SizeInKB / 1024; + info.File.SizeInGB = info.File.SizeInMB / 1024; - foreach (string s in files) - { - Info info = new Info(); + info.File.Hidden = this.IsHiddenAttribute(fi.Attributes); + info.File.ReadOnly = this.IsReadOnlyAttribute(fi.Attributes); + info.File.SystemFile = this.IsSystemAttribute(fi.Attributes); + info.File.Compressed = this.IsCompressedAttribute(fi.Attributes); + info.File.Encrypted = this.IsEncryptedAttribute(fi.Attributes); + } + else + { + System.IO.DirectoryInfo di = new System.IO.DirectoryInfo(s); - if (System.IO.File.Exists(s)) - { - System.IO.FileInfo fi = new System.IO.FileInfo(s); + info.IsPath = true; + info.Path.Name = GetFilename(s); + info.Path.Path = s; + info.Path.CreatedOn = di.CreationTime.ToString(); + info.Path.LastChanged = di.LastWriteTime.ToString(); + info.Path.LastRead = di.LastAccessTime.ToString(); + info.Path.Hidden = this.IsHiddenAttribute(di.Attributes); + info.Path.ReadOnly = this.IsReadOnlyAttribute(di.Attributes); + info.Path.SystemFile = this.IsSystemAttribute(di.Attributes); + info.Path.Compressed = this.IsCompressedAttribute(di.Attributes); + info.Path.Encrypted = this.IsEncryptedAttribute(di.Attributes); + } - info.IsFile = true; - info.File.Name = GetFilename(s); - info.File.Path = GetPath(s); - info.File.CreatedOn = fi.CreationTime.ToString(); - info.File.LastChanged = fi.LastWriteTime.ToString(); - info.File.LastRead = fi.LastAccessTime.ToString(); - info.File.SizeInByte = (float)fi.Length; - info.File.SizeInKB = info.File.SizeInByte / 1024; - info.File.SizeInMB = info.File.SizeInKB / 1024; - info.File.SizeInGB = info.File.SizeInMB / 1024; + currentPathList.Add(info); + } - info.File.Hidden = this.IsHiddenAttribute(fi.Attributes); - info.File.ReadOnly = this.IsReadOnlyAttribute(fi.Attributes); - info.File.SystemFile = this.IsSystemAttribute(fi.Attributes); - info.File.Compressed = this.IsCompressedAttribute(fi.Attributes); - info.File.Encrypted = this.IsEncryptedAttribute(fi.Attributes); - } - else - { - System.IO.DirectoryInfo di = new System.IO.DirectoryInfo(s); + return true; + } - info.IsPath = true; - info.Path.Name = GetFilename(s); - info.Path.Path = s; - info.Path.CreatedOn = di.CreationTime.ToString(); - info.Path.LastChanged = di.LastWriteTime.ToString(); - info.Path.LastRead = di.LastAccessTime.ToString(); - info.Path.Hidden = this.IsHiddenAttribute(di.Attributes); - info.Path.ReadOnly = this.IsReadOnlyAttribute(di.Attributes); - info.Path.SystemFile = this.IsSystemAttribute(di.Attributes); - info.Path.Compressed = this.IsCompressedAttribute(di.Attributes); - info.Path.Encrypted = this.IsEncryptedAttribute(di.Attributes); - } + private void FillListControl() + { + GUIControl.ClearControl(winId, lstId); + string path = Utils.RemoveTrailingSlash(currentPath); - currentPathList.Add(info); - } + if (!currentPath.Equals(currentDrive)) + { + GUIListItem item = new GUIListItem(".."); + item.Path = GetPath(currentPath); - return true; + Utils.SetDefaultIcons(item); + GUIControl.AddListItemControl(winId, lstId, item); + } + + foreach (Info info in currentPathList) + { + if (info.IsPath) + { + bool b = true; + + if ((!this.showAllFiles) && (info.Path.Hidden)) + { + b = false; + } + + if ((!this.showSystemDirs) && (info.Path.SystemFile)) + { + b = false; + } + + if (b) + { + GUIListItem item = new GUIListItem(info.Path.Name); + item.IsFolder = true; + item.Path = info.Path.Path; + item.MusicTag = info; + + Utils.SetDefaultIcons(item); + GUIControl.AddListItemControl(winId, lstId, item); + } } + } - private void FillListControl() + foreach (Info info in currentPathList) + { + if (info.IsFile) { - GUIControl.ClearControl(winId, lstId); - string path = Utils.RemoveTrailingSlash(currentPath); + bool b = true; - if (!currentPath.Equals(currentDrive)) - { - GUIListItem item = new GUIListItem(".."); - item.Path = GetPath(currentPath); + if ((!this.showAllFiles) && (info.File.Hidden)) + { + b = false; + } - Utils.SetDefaultIcons(item); - GUIControl.AddListItemControl(winId, lstId, item); - } + if ((!this.showSystemFiles) && (info.File.SystemFile)) + { + b = false; + } - foreach (Info info in currentPathList) - { - if (info.IsPath) - { - bool b = true; + if (b) + { + GUIListItem item = new GUIListItem(info.File.Name); + item.IsFolder = false; + item.Path = info.File.Path; + item.Label2 = Utils.GetSize((long)info.File.SizeInByte); + item.MusicTag = info; - if ((!this.showAllFiles) && (info.Path.Hidden)) - { - b = false; - } + GUIControl.AddListItemControl(winId, lstId, item); + } + } + } - if ((!this.showSystemDirs) && (info.Path.SystemFile)) - { - b = false; - } + // string cf = "Folder: "; + //string cf = Constants.View.FOLDER; + string cf = String.Empty; + /* + if (currentPath.Length > 50) + { + cf += currentDrive + "..\\" + GetFilename(currentPath); + } + else + { + cf += currentPath; + } + */ + cf += currentPath; - if (b) - { - GUIListItem item = new GUIListItem(info.Path.Name); - item.IsFolder = true; - item.Path = info.Path.Path; - item.MusicTag = info; + // Setting property for skinners.. SetControlLabel does not work so well when using with FadeLabel with <wrapString> :/ + if (lstId == 3) + GUIPropertyManager.SetProperty("#FileExplorer.Left.CurrentDir", cf); + else if (lstId == 4) + GUIPropertyManager.SetProperty("#FileExplorer.Right.CurrentDir", cf); + else + { + GUIPropertyManager.SetProperty("#FileExplorer.Left.CurrentDir", " "); + GUIPropertyManager.SetProperty("#FileExplorer.Right.CurrentDir", " "); + } + GUIControl.SetControlLabel(winId, lblDirId, cf); + } + #endregion - Utils.SetDefaultIcons(item); - GUIControl.AddListItemControl(winId, lstId, item); - } - } - } + #region public members + public void Update() + { + LoadPath(); + FillListControl(); + } - foreach (Info info in currentPathList) - { - if (info.IsFile) - { - bool b = true; + #region menu id constants + private struct MenuIDs + { + public const int SelectDrive = 0; + public const int Copy = 1; + public const int Move = 2; + public const int Delete = 3; + public const int Rename = 4; + public const int CreateDirectory = 5; + public const int EncryptDecrypt = 6; + public const int CompressUncomopress = 7; + public const int HideUnhide = 8; + public const int ReadOnlyFlag = 9; + public const int AudioPlaylist = 10; + public const int VideoPlayList = 11; + public const int AddToAudioPlaylist = 12; + public const int AddToVideoPlaylist = 13; + public const int SelectAll = 14; + public const int DisableSelections = 15; + public const int SelectionMode = 16; + public const int EmptyRecycleBin = 17; + } + #endregion - if ((!this.showAllFiles) && (info.File.Hidden)) - { - b = false; - } + public void ShowMenu() + { + GUIDialogMenu mnu = (GUIDialogMenu)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_DIALOG_MENU); + mnu.Reset(); + /* mnu.SetHeading("Menu"); + mnu.Add("Select Drive"); + mnu.Add("Copy"); + mnu.Add("Move"); + mnu.Add("Delete"); + mnu.Add("Rename"); + mnu.Add("Create directory"); + mnu.Add("Encrypt/Decrypt (NTFS only)"); + mnu.Add("Compress/Uncompress (NTFS only)"); + mnu.Add("Hide/Unhide"); + mnu.Add("Add/Remove readonly flag"); */ + mnu.SetHeading(Constants.View.MENU); + mnu.Add(Constants.View.SELECTDRIVE); + mnu.Add(Constants.Dialog.COPY); // was already defined in Dialog + mnu.Add(Constants.Dialog.MOVE); // was already defined in Dialog + mnu.Add(Constants.Dialog.DELETE); // was already defined in Dialog + mnu.Add(Constants.View.RENAME); + mnu.Add(Constants.View.CREATEDIR); + mnu.Add(Constants.View.ENCRYPT2); + mnu.Add(Constants.View.COMPRESS3); + mnu.Add(Constants.View.HIDEUNHIDE); + mnu.Add(Constants.View.ADDREADONLY); - if ((!this.showSystemFiles) && (info.File.SystemFile)) - { - b = false; - } + if (selectedList == null) + { + /* mnu.Add("Create Audioplaylist from Directory"); + mnu.Add("Create Videoplaylist from Directory"); + mnu.Add("Add to Audioplaylist"); + mnu.Add("Add to Videoplaylist"); */ + mnu.Add(Constants.View.CREATEAUDIODIR); + mnu.Add(Constants.View.CREATEVIDEODIR); + mnu.Add(Constants.Dialog.ADDAUDIO); // was already defined in Dialog + mnu.Add(Constants.Dialog.ADDVIDEO); // was already defined in Dialog + } + else + { + /* mnu.Add("Create Audioplaylist from selected files/directories"); + mnu.Add("Create Videoplaylist from selected files/directories"); + mnu.Add("Add selected files/directories to Audioplaylist"); + mnu.Add("Add selected files/directories to Videoplaylist"); */ + mnu.Add(Constants.View.CREATEAUDIOSEL); + mnu.Add(Constants.View.CREATEVIDEOSEL); + mnu.Add(Constants.View.ADDAUDIOSEL); + mnu.Add(Constants.View.ADDVIDEOSEL); + } - if (b) - { - GUIListItem item = new GUIListItem(info.File.Name); - item.IsFolder = false; - item.Path = info.File.Path; - item.Label2 = Utils.GetSize((long)info.File.SizeInByte); - item.MusicTag = info; + // mnu.Add("Select All"); + // mnu.Add("Disable selections"); + mnu.Add(Constants.View.SELECTALL); + mnu.Add(Constants.View.DISABLESEL); - GUIControl.AddListItemControl(winId, lstId, item); - } - } - } + if (selectionMode) + { + // mnu.Add("Disable selection mode"); + mnu.Add(Constants.View.DISABLESELMODE); + } + else + { + // mnu.Add("Enable selection mode"); + mnu.Add(Constants.View.ENABLESELMODE); + } - // string cf = "Folder: "; - //string cf = Constants.View.FOLDER; - string cf = String.Empty; - /* - if (currentPath.Length > 50) + mnu.Add(Constants.Dialog.EMPTYRECYCLEBIN); + + mnu.DoModal(GUIWindowManager.ActiveWindow); + + switch (mnu.SelectedLabel) + { + case MenuIDs.SelectDrive: + { + SelectDrive(); + break; + } + case MenuIDs.Copy: + { + Copy(); + break; + } + case MenuIDs.Move: + { + Move(); + break; + } + case MenuIDs.Delete: + { + Delete(); + break; + } + case MenuIDs.Rename: + { + Rename(); + break; + } + case MenuIDs.CreateDirectory: + { + CreateDirectory(); + break; + } + case MenuIDs.EncryptDecrypt: + { + EncryptDecrypt(); + break; + } + case MenuIDs.CompressUncomopress: + { + CompressUncompress(); + break; + } + case MenuIDs.HideUnhide: + { + HideUnhide(); + break; + } + case MenuIDs.ReadOnlyFlag: + { + SetRemoveReadOnlyFlag(); + break; + } + case MenuIDs.AudioPlaylist: + { + if (selectedList == null) { - cf += currentDrive + "..\\" + GetFilename(currentPath); + CreateAudioPlaylist(); } else { - cf += currentPath; + CreateAudioPlaylistFromSelectedFiles(); } - */ - cf += currentPath; - - // Setting property for skinners.. SetControlLabel does not work so well when using with FadeLabel with <wrapString> :/ - if (lstId == 3) - GUIPropertyManager.SetProperty("#FileExplorer.Left.CurrentDir", cf); - else if (lstId == 4) - GUIPropertyManager.SetProperty("#FileExplorer.Right.CurrentDir", cf); + break; + } + case MenuIDs.VideoPlayList: + { + if (selectedList == null) + { + CreateVideoPlaylist(); + } else { - GUIPropertyManager.SetProperty("#FileExplorer.Left.CurrentDir", " "); - GUIPropertyManager.SetProperty("#FileExplorer.Right.CurrentDir", " "); + CreateVideoPlaylistFromSelectedFiles(); } - GUIControl.SetControlLabel(winId, lblDirId, cf); - } - #endregion - - #region public members - public void Update() - { - LoadPath(); - FillListControl(); - } - - #region menu id constants - private struct MenuIDs - { - public const int SelectDrive = 0; - public const int Copy = 1; - public const int Move = 2; - public const int Delete = 3; - public const int Rename = 4; - public const int CreateDirectory = 5; - public const int EncryptDecrypt = 6; - public const int CompressUncomopress = 7; - public const int HideUnhide = 8; - public const int ReadOnlyFlag = 9; - public const int AudioPlaylist = 10; - public const int VideoPlayList = 11; - public const int AddToAudioPlaylist = 12; - public const int AddToVideoPlaylist = 13; - public const int SelectAll = 14; - public const int DisableSelections = 15; - public const int SelectionMode = 16; - public const int EmptyRecycleBin = 17; - } - #endregion - - public void ShowMenu() - { - GUIDialogMenu mnu = (GUIDialogMenu)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_DIALOG_MENU); - mnu.Reset(); - /* mnu.SetHeading("Menu"); - mnu.Add("Select Drive"); - mnu.Add("Copy"); - mnu.Add("Move"); - mnu.Add("Delete"); - mnu.Add("Rename"); - mnu.Add("Create directory"); - mnu.Add("Encrypt/Decrypt (NTFS only)"); - mnu.Add("Compress/Uncompress (NTFS only)"); - mnu.Add("Hide/Unhide"); - mnu.Add("Add/Remove readonly flag"); */ - mnu.SetHeading(Constants.View.MENU); - mnu.Add(Constants.View.SELECTDRIVE); - mnu.Add(Constants.Dialog.COPY); // was already defined in Dialog - mnu.Add(Constants.Dialog.MOVE); // was already defined in Dialog - mnu.Add(Constants.Dialog.DELETE); // was already defined in Dialog - mnu.Add(Constants.View.RENAME); - mnu.Add(Constants.View.CREATEDIR); - mnu.Add(Constants.View.ENCRYPT2); - mnu.Add(Constants.View.COMPRESS3); - mnu.Add(Constants.View.HIDEUNHIDE); - mnu.Add(Constants.View.ADDREADONLY); - + break; + } + case MenuIDs.AddToAudioPlaylist: + { if (selectedList == null) { - /* mnu.Add("Create Audioplaylist from Directory"); - mnu.Add("Create Videoplaylist from Directory"); - mnu.Add("Add to Audioplaylist"); - mnu.Add("Add to Videoplaylist"); */ - mnu.Add(Constants.View.CREATEAUDIODIR); - mnu.Add(Constants.View.CREATEVIDEODIR); - mnu.Add(Constants.Dialog.ADDAUDIO); // was already defined in Dialog - mnu.Add(Constants.Dialog.ADDVIDEO); // was already defined in Dialog + AddToAudioPlaylist(); } else { - /* mnu.Add("Create Audioplaylist from selected files/directories"); - mnu.Add("Create Videoplaylist from selected files/directories"); - mnu.Add("Add selected files/directories to Audioplaylist"); - mnu.Add("Add selected files/directories to Videoplaylist"); */ - mnu.Add(Constants.View.CREATEAUDIOSEL); - mnu.Add(Constants.View.CREATEVIDEOSEL); - mnu.Add(Constants.View.ADDAUDIOSEL); - mnu.Add(Constants.View.ADDVIDEOSEL); + AddSelectedFilesToAudioPlaylist(); } - - // mnu.Add("Select All"); - // mnu.Add("Disable selections"); - mnu.Add(Constants.View.SELECTALL); - mnu.Add(Constants.View.DISABLESEL); - - if (selectionMode) + break; + } + case MenuIDs.AddToVideoPlaylist: + { + if (selectedList == null) { - // mnu.Add("Disable selection mode"); - mnu.Add(Constants.View.DISABLESELMODE); + AddToVideoPlaylist(); } else { - // mnu.Add("Enable selection mode"); - mnu.Add(Constants.View.ENABLESELMODE); + AddSelectedFilesToVideoPlaylist(); } + break; + } + case MenuIDs.SelectAll: + { + SelectAll(); + break; + } + case MenuIDs.DisableSelections: + { + DeleteSelections(); + break; + } + case MenuIDs.SelectionMode: + { + SelectionMode = !SelectionMode; + break; + } + case MenuIDs.EmptyRecycleBin: + { + EmptyRecycleBin(); + break; + } + } + } + #endregion - mnu.Add(Constants.Dialog.EMPTYRECYCLEBIN); + #region Operations + #region Select Drive routines + private void SelectDrive() + { + GUIDialogMenu mnu = (GUIDialogMenu)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_DIALOG_MENU); + mnu.Reset(); + // mnu.SetHeading("Select drive"); + mnu.SetHeading(Constants.View.SELECTDRIVE); - mnu.DoModal(GUIWindowManager.ActiveWindow); + foreach (Drive d in drives) + { + mnu.Add(d.Path + " " + d.TypeDescription); + } - switch (mnu.SelectedLabel) - { - case MenuIDs.SelectDrive: - { - SelectDrive(); - break; - } - case MenuIDs.Copy: - { - Copy(); - break; - } - case MenuIDs.Move: - { - Move(); - break; - } - case MenuIDs.Delete: - { - Delete(); - break; - } - case MenuIDs.Rename: - { - Rename(); - break; - } - case MenuIDs.CreateDirectory: - { - CreateDirectory(); - break; - } - case MenuIDs.EncryptDecrypt: - { - EncryptDecrypt(); - break; - ... [truncated message content] |
From: <Sil...@us...> - 2010-05-04 13:18:26
|
Revision: 3572 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=3572&view=rev Author: SilentException Date: 2010-05-04 13:18:18 +0000 (Tue, 04 May 2010) Log Message: ----------- Added message if clear recycle bin is unsuccessful (needs language xmls change) Reworked GUIDialogOperation a bit, removed / fixed obsolete MS thread methods Created and used general method for setting properties in DrivesView class When doing update of one view, second view is also updated if showing same drive/folder Unified dialog operations (Reset() and strings) Fixed loading of settings (using XmlConfig class instead of MediaPortal one) Skin changes: * GUIDialogOperation (FileExplorer_dialog.xml): controls 2,3,4 should be changed from label to fadelabel Modified Paths: -------------- trunk/plugins/File Explorer/Constants.cs trunk/plugins/File Explorer/Dialogs/GUIDialogOperation.cs trunk/plugins/File Explorer/DrivesView.cs trunk/plugins/File Explorer/ExceptionViewer.cs trunk/plugins/File Explorer/File Explorer.cs trunk/plugins/File Explorer/Language/strings_de.xml trunk/plugins/File Explorer/Language/strings_en.xml trunk/plugins/File Explorer/Language/strings_fr.xml trunk/plugins/File Explorer/Skin/Blue3/File Explorer_dialog.xml trunk/plugins/File Explorer/Skin/Blue3wide/File Explorer_dialog.xml trunk/plugins/File Explorer/Skin/BlueTwo/File Explorer_dialog.xml trunk/plugins/File Explorer/Skin/Xface/File Explorer_dialog.xml Modified: trunk/plugins/File Explorer/Constants.cs =================================================================== --- trunk/plugins/File Explorer/Constants.cs 2010-05-04 04:44:46 UTC (rev 3571) +++ trunk/plugins/File Explorer/Constants.cs 2010-05-04 13:18:18 UTC (rev 3572) @@ -173,7 +173,8 @@ DefaultFolderRight = 129, Browse = 130, EmptyRecycleBin = 131, - Confirm = 132 + Confirm = 132, + UnableToEmptyRecycleBin = 133 } #endregion @@ -411,6 +412,7 @@ public static readonly string REMOVEFLAGS = LocalizeStrings.Get((int)LocalizedMessages.RemoveFlags); public static readonly string SETREMOVEFLAG = LocalizeStrings.Get((int)LocalizedMessages.SetRemoveFlag); public static readonly string CHANGEFLAG = LocalizeStrings.Get((int)LocalizedMessages.ChangeFlag); + public static readonly string UNABLETOEMPTYRECYCLEBIN = LocalizeStrings.Get((int)LocalizedMessages.UnableToEmptyRecycleBin); } #endregion Modified: trunk/plugins/File Explorer/Dialogs/GUIDialogOperation.cs =================================================================== --- trunk/plugins/File Explorer/Dialogs/GUIDialogOperation.cs 2010-05-04 04:44:46 UTC (rev 3571) +++ trunk/plugins/File Explorer/Dialogs/GUIDialogOperation.cs 2010-05-04 13:18:18 UTC (rev 3572) @@ -69,44 +69,72 @@ private string to = string.Empty; private Thread processThread = null; + + readonly object pauseLock = new object(); + bool paused = false; #endregion #region skin vars - [SkinControlAttribute(2)] - private GUILabelControl lblHeading = null; - [SkinControlAttribute(3)] - private GUILabelControl lblText1 = null; - [SkinControlAttribute(4)] - private GUILabelControl lblText2 = null; + [SkinControlAttribute(2)] private GUIFadeLabel lblHeading = null; + [SkinControlAttribute(3)] private GUIFadeLabel lblText1 = null; + [SkinControlAttribute(4)] private GUIFadeLabel lblText2 = null; #endregion #region public members + + public bool Paused + { + get + { + return paused; + } + set + { + lock (pauseLock) + { + paused = true; + } + } + } + /// <summary> - /// Shows the dialog and waits until the user has closed it. + /// Shows the dialog and waits until the user has closed it. - Obsolete, not used /// </summary> /// <param name="parentID">Parentwindow id.</param> public void DoModal(int parentID) { this.parentID = parentID; - GUIWindow win = GUIWindowManager.GetWindow(parentID); + if (GUIWindowManager.GetWindow(parentID) == null) + { + this.parentID = 0; + return; + } GUIWindowManager.IsSwitchingToNewWindow = true; - GUIWindowManager.RouteToWindow(GetID); + try + { + GUIWindowManager.RouteToWindow(GetID); - // activate this window - GUIMessage msg = new GUIMessage(GUIMessage.MessageType.GUI_MSG_WINDOW_INIT, GetID, 0, 0, 0, 0, null); - OnMessage(msg); + // activate this window... + GUIMessage msg = new GUIMessage(GUIMessage.MessageType.GUI_MSG_WINDOW_INIT, GetID, 0, 0, -1, 0, null); + OnMessage(msg); + } + finally + { + GUIWindowManager.IsSwitchingToNewWindow = false; + } - GUIWindowManager.IsSwitchingToNewWindow = false; - + GUILayerManager.RegisterLayer(this, GUILayerManager.LayerType.Dialog); running = true; while (running && GUIGraphicsContext.CurrentState == GUIGraphicsContext.State.RUNNING) { GUIWindowManager.Process(); } + + Close(); } - + /// <summary> /// Shows the dialog. /// </summary> @@ -115,20 +143,30 @@ { this.parentID = parentID; - GUIWindow win = GUIWindowManager.GetWindow(parentID); + if (GUIWindowManager.GetWindow(parentID) == null) + { + this.parentID = 0; + return; + } GUIWindowManager.IsSwitchingToNewWindow = true; - GUIWindowManager.RouteToWindow(GetID); + try + { + GUIWindowManager.RouteToWindow(GetID); - // activate this window - GUIMessage msg = new GUIMessage(GUIMessage.MessageType.GUI_MSG_WINDOW_INIT, GetID, 0, 0, 0, 0, null); - OnMessage(msg); + // activate this window + GUIMessage msg = new GUIMessage(GUIMessage.MessageType.GUI_MSG_WINDOW_INIT, GetID, 0, 0, 0, 0, null); + OnMessage(msg); + } + finally + { + GUIWindowManager.IsSwitchingToNewWindow = false; + } - GUIWindowManager.IsSwitchingToNewWindow = false; + running = true; + GUIWindowManager.Process(); - running = true; - processThread = new Thread(new ThreadStart(this.ProcessThread)); processThread.Start(); } @@ -293,10 +331,12 @@ public void SetToPath(string path) { SuspendThread(); + /* if (path.Length > 30) { path = path.Substring(0, 3) + "..\\" + GetFilename(path); } + */ this.to = path; // lblText2.Label = "To: " + path; lblText2.Label = Constants.Dialog.TO + path; @@ -306,10 +346,12 @@ public void SetPath(string path) { SuspendThread(); + /* if (path.Length > 30) { path = path.Substring(0, 3) + "..\\" + GetFilename(path); } + */ // lblText2.Label = "Path: " + path; lblText2.Label = Constants.Dialog.PATH + path; ResumeThread(); @@ -344,20 +386,27 @@ #region private members private void ProcessThread() { - while (running) + while (running && GUIGraphicsContext.CurrentState == GUIGraphicsContext.State.RUNNING) { - GUIWindowManager.Process(); + if (!Paused) + { + //Log.Debug("Process in thread"); + GUIWindowManager.Process(); + } } } //fmu if someone know how to remove this obsolete m$soft method ? private void SuspendThread() { - processThread.Suspend(); + Paused = true; + //processThread.Suspend(); } + //fmu if someone know how to remove this obsolete m$soft method ? private void ResumeThread() { - processThread.Resume(); + Paused = false; + //processThread.Resume(); } private string GetFilename(string filePath) @@ -405,10 +454,11 @@ public override bool OnMessage(GUIMessage message) { - if (message.Message == GUIMessage.MessageType.GUI_MSG_WINDOW_DEINIT) + if (message.TargetWindowId == GetID && message.Message == GUIMessage.MessageType.GUI_MSG_WINDOW_DEINIT) { GUIWindowManager.IsSwitchingToNewWindow = true; + bool result = false; lock (this) { Dispose(); @@ -417,14 +467,24 @@ GUIWindowManager.UnRoute(); running = false; + + result = base.OnMessage(message); + + GUIMessage msg = new GUIMessage(GUIMessage.MessageType.GUI_MSG_WINDOW_INIT, parentID, 0, 0, -1, 0, null); + OnMessage(msg); + //GUIWindowManager.ActivateWindow(parentID); + + parentID = 0; + } - GUIWindowManager.IsSwitchingToNewWindow = false; + return result; } - else if (message.Message == GUIMessage.MessageType.GUI_MSG_WINDOW_INIT) + else if (message.TargetWindowId == GetID && message.Message == GUIMessage.MessageType.GUI_MSG_WINDOW_INIT) { - base.OnMessage(message); + bool result = base.OnMessage(message); GUILayerManager.RegisterLayer(this, GUILayerManager.LayerType.Dialog); + return result; } return base.OnMessage(message); } @@ -443,7 +503,10 @@ public void RenderLayer(float timePassed) { - Render(timePassed); + if (running) + { + Render(timePassed); + } } #endregion } Modified: trunk/plugins/File Explorer/DrivesView.cs =================================================================== --- trunk/plugins/File Explorer/DrivesView.cs 2010-05-04 04:44:46 UTC (rev 3571) +++ trunk/plugins/File Explorer/DrivesView.cs 2010-05-04 13:18:18 UTC (rev 3572) @@ -400,15 +400,7 @@ cf += currentPath; // Setting property for skinners.. SetControlLabel does not work so well when using with FadeLabel with <wrapString> :/ - if (lstId == 3) - GUIPropertyManager.SetProperty("#FileExplorer.Left.CurrentDir", cf); - else if (lstId == 4) - GUIPropertyManager.SetProperty("#FileExplorer.Right.CurrentDir", cf); - else - { - GUIPropertyManager.SetProperty("#FileExplorer.Left.CurrentDir", " "); - GUIPropertyManager.SetProperty("#FileExplorer.Right.CurrentDir", " "); - } + SetFileExplorerProperty("CurrentDir", cf); GUIControl.SetControlLabel(winId, lblDirId, cf); } #endregion @@ -416,8 +408,15 @@ #region public members public void Update() { + Update(true); + } + + public void Update(bool updateSecondView) + { LoadPath(); FillListControl(); + if (updateSecondView && SecondView.currentDrive == currentDrive && SecondView.currentPath == currentPath) + SecondView.Update(false); } #region menu id constants @@ -685,8 +684,10 @@ if (!item.IsFolder) { - // dlg.SetHeading("Copy File \"" + item.Label + "\""); - dlg.SetHeading(Constants.Operation.COPYFILE + "\"" + item.Label + "\""); + // dlg.SetHeading("Copy File"); + dlg.SetHeading(Constants.Operation.COPYFILE); + // dlg.SetLine(1, item.Label); + dlg.SetLine(1, item.Label); // dlg.SetLine(2, "From: " + item.Path); dlg.SetLine(2, Constants.Operation.FROM + item.Path); // dlg.SetLine(3, "To: " + secondView.Path); @@ -701,10 +702,14 @@ } else { - // dlg.SetHeading("Copy Directory \"" + item.Label + "\""); - dlg.SetHeading(Constants.Operation.COPYDIR + "\"" + item.Label + "\""); - // dlg.SetLine(2, "To: " + secondView.Path); - dlg.SetLine(2, Constants.Dialog.TO + secondView.Path); // already defined in Dialog + // dlg.SetHeading("Copy Directory"); + dlg.SetHeading(Constants.Operation.COPYDIR); + // dlg.SetLine(1, item.Label); + dlg.SetLine(1, item.Label); + // dlg.SetLine(2, "From: " + item.Path); + dlg.SetLine(2, Constants.Operation.FROM + item.Path); + // dlg.SetLine(3, "To: " + secondView.Path); + dlg.SetLine(3, Constants.Dialog.TO + secondView.Path); // already defined in Dialog dlg.DoModal(GUIWindowManager.ActiveWindow); if (dlg.IsConfirmed) @@ -825,11 +830,13 @@ if (!item.IsFolder) { - // dlg.SetHeading("Move File \"" + item.Label + "\""); - dlg.SetHeading(Constants.Operation.MOVEFILE + "\"" + item.Label + "\""); - // dlg.SetLine(2, "From: " + item.Path); + // dlg.SetHeading("Move File"); + dlg.SetHeading(Constants.Operation.MOVEFILE); + // dlg.SetLine(1, item.Label); + dlg.SetLine(1, item.Label); + // dlg.SetLine(2, "From: " + item.Path); dlg.SetLine(2, Constants.Operation.FROM + item.Path); - // dlg.SetLine(3, "To: " + secondView.Path); + // dlg.SetLine(3, "To: " + secondView.Path); dlg.SetLine(3, Constants.Dialog.TO + secondView.Path); // already defined in Dialog dlg.DoModal(GUIWindowManager.ActiveWindow); @@ -842,10 +849,14 @@ } else { - // dlg.SetHeading("Move Directory \"" + item.Label + "\""); - dlg.SetHeading(Constants.Operation.MOVEDIR + "\"" + item.Label + "\""); - // dlg.SetLine(2, "To: " + secondView.Path); - dlg.SetLine(2, Constants.Dialog.TO + secondView.Path); // already defined in Dialog + // dlg.SetHeading("Move Directory"); + dlg.SetHeading(Constants.Operation.MOVEDIR); + // dlg.SetLine(1, item.Label); + dlg.SetLine(1, item.Label); + // dlg.SetLine(2, "From: " + item.Path); + dlg.SetLine(2, Constants.Operation.FROM + item.Path); + // dlg.SetLine(3, "To: " + secondView.Path); + dlg.SetLine(3, Constants.Dialog.TO + secondView.Path); // already defined in Dialog dlg.DoModal(GUIWindowManager.ActiveWindow); if (dlg.IsConfirmed) @@ -883,11 +894,11 @@ if (System.IO.File.Exists(dest)) { GUIDialogYesNo dlg = (GUIDialogYesNo)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_DIALOG_YES_NO); + dlg.Reset(); /* dlg.SetHeading("Moving file"); dlg.SetLine(1, "The file \"" + GetFilename(src) + "\""); dlg.SetLine(2, "alread exists!"); dlg.SetLine(3, "Do you want to overwrite it?"); */ - dlg.Reset(); dlg.SetHeading(Constants.Operation.MOVINGFILE); dlg.SetLine(1, Constants.Operation.THEFILE + "\"" + GetFilename(src) + "\""); dlg.SetLine(2, Constants.Operation.ALREADYEXIST); @@ -915,11 +926,11 @@ if (System.IO.Directory.Exists(dest)) { GUIDialogYesNo dlg = (GUIDialogYesNo)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_DIALOG_YES_NO); + dlg.Reset(); /* dlg.SetHeading("Moving directory"); dlg.SetLine(1, "The directory \"" + GetFilename(dest) + "\""); dlg.SetLine(2, "alread exists!"); dlg.SetLine(3, "Do you want to overwrite it?"); */ - dlg.Reset(); dlg.SetHeading(Constants.Operation.MOVINGDIR); dlg.SetLine(1, Constants.Operation.THEDIR + "\"" + GetFilename(dest) + "\""); dlg.SetLine(2, Constants.Operation.ALREADYEXIST); @@ -986,13 +997,13 @@ if (item.IsFolder) { GUIDialogYesNo dlg = (GUIDialogYesNo)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_DIALOG_YES_NO); + dlg.Reset(); /* dlg.SetHeading("Delete directory"); dlg.SetLine(1, "Do you really want to delete"); dlg.SetLine(2, "the directory \"" + item.Label + "\"?"); */ - dlg.Reset(); dlg.SetHeading(Constants.Operation.DELETEDIR); dlg.SetLine(1, Constants.Operation.WANTDELETE); - dlg.SetLine(2, Constants.Operation.THEDIR + "\"" + item.Label + "\"?"); + dlg.SetLine(2, LowercaseFirst(Constants.Operation.THEDIR) + "\"" + item.Label + "\"?"); dlg.SetLine(3, " "); dlg.DoModal(GUIWindowManager.ActiveWindow); @@ -1001,14 +1012,14 @@ if ((b) && (!this.DeleteFilesToTrashcan)) { dlg = (GUIDialogYesNo)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_DIALOG_YES_NO); + dlg.Reset(); /* dlg.SetHeading("Delete directory"); dlg.SetLine(1, "Do you really want to delete"); dlg.SetLine(2, "the directory \"" + item.Label + "\"?"); dlg.SetLine(3, "After deleting the directory CANNOT BE RESTORED!"); */ - dlg.Reset(); dlg.SetHeading(Constants.Operation.DELETEDIR); dlg.SetLine(1, Constants.Operation.WANTDELETE); - dlg.SetLine(2, Constants.Operation.THEDIR + "\"" + item.Label + "\"?"); + dlg.SetLine(2, LowercaseFirst(Constants.Operation.THEDIR) + "\"" + item.Label + "\"?"); dlg.SetLine(3, Constants.Operation.AFTERDELETE); dlg.DoModal(GUIWindowManager.ActiveWindow); @@ -1027,10 +1038,10 @@ else { GUIDialogYesNo dlg = (GUIDialogYesNo)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_DIALOG_YES_NO); + dlg.Reset(); /* dlg.SetHeading("Delete file"); dlg.SetLine(1, "Do you really want to delete"); dlg.SetLine(2, "the file \"" + item.Label + "\"?"); */ - dlg.Reset(); dlg.SetHeading(Constants.Operation.DELETEFILE); dlg.SetLine(1, Constants.Operation.WANTDELETE); dlg.SetLine(2, Constants.Operation.THEFILE + "\"" + item.Label + "\"?"); @@ -1042,11 +1053,11 @@ if ((b) && (!this.DeleteFilesToTrashcan)) { dlg = (GUIDialogYesNo)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_DIALOG_YES_NO); + dlg.Reset(); /* dlg.SetHeading("Delete file"); dlg.SetLine(1, "Do you really want to delete"); dlg.SetLine(2, "the file \"" + item.Label + "\"?"); dlg.SetLine(3, "After deleting the file CANNOT BE RESTORED!"); */ - dlg.Reset(); dlg.SetHeading(Constants.Operation.DELETEFILE); dlg.SetLine(1, Constants.Operation.WANTDELETE); dlg.SetLine(2, Constants.Operation.THEFILE + "\"" + item.Label + "\"?"); @@ -1188,10 +1199,11 @@ catch (Exception) { GUIDialogOK dlg = (GUIDialogOK)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_DIALOG_OK); + dlg.Reset(); // dlg.SetHeading("Error"); // dlg.SetLine(2, "Cannot rename directory \"" + item.Label + "\"!"); dlg.SetHeading(Constants.Operation.ERROR); - dlg.SetLine(2, Constants.Operation.CANTRENAMEDIR + "\"" + item.Label + "\"!"); + dlg.SetLine(1, Constants.Operation.CANTRENAMEDIR + "\"" + item.Label + "\"!"); dlg.DoModal(GUIWindowManager.ActiveWindow); } @@ -1212,10 +1224,11 @@ catch (Exception) { GUIDialogOK dlg = (GUIDialogOK)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_DIALOG_OK); + dlg.Reset(); // dlg.SetHeading("Error"); // dlg.SetLine(2, "Cannot rename file \"" + item.Label + "\"!"); dlg.SetHeading(Constants.Operation.ERROR); - dlg.SetLine(2, Constants.Operation.CANTRENAMEFILE + "\"" + item.Label + "\"!"); + dlg.SetLine(1, Constants.Operation.CANTRENAMEFILE + "\"" + item.Label + "\"!"); dlg.DoModal(GUIWindowManager.ActiveWindow); } @@ -1247,10 +1260,11 @@ catch (Exception) { GUIDialogOK dlg = (GUIDialogOK)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_DIALOG_OK); + dlg.Reset(); // dlg.SetHeading("Error"); // dlg.SetLine(2, "Cannot create the directory \"" + keyboard.Text + "\"!"); dlg.SetHeading(Constants.Operation.ERROR); - dlg.SetLine(2, Constants.Operation.CANTCREATEDIR + "\"" + keyboard.Text + "\"!"); + dlg.SetLine(1, Constants.Operation.CANTCREATEDIR + "\"" + keyboard.Text + "\"!"); dlg.DoModal(GUIWindowManager.ActiveWindow); } } @@ -1415,11 +1429,11 @@ if (info.Path.Name.Equals(item.Label)) { GUIDialogYesNo dlg = (GUIDialogYesNo)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_DIALOG_YES_NO); + dlg.Reset(); /* dlg.SetHeading("Encrypton/Decryption"); dlg.SetLine(1, "Do you wish to change the encryption status"); dlg.SetLine(2, "for all subdirectories and files in current"); dlg.SetLine(3, "folder?"); */ - dlg.Reset(); dlg.SetHeading(Constants.Operation.ENCRYPTDECRYPT); dlg.SetLine(1, Constants.Operation.CHANGEENCRYPT); dlg.SetLine(2, Constants.Operation.ALLSUBDIR); @@ -1569,11 +1583,11 @@ if (info.Path.Name.Equals(item.Label)) { GUIDialogYesNo dlg = (GUIDialogYesNo)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_DIALOG_YES_NO); + dlg.Reset(); /* dlg.SetHeading("Compress/Uncompress"); dlg.SetLine(1, "Do you wish to change the compression status"); dlg.SetLine(2, "for all subdirectories and files in current"); dlg.SetLine(3, "folder?"); */ - dlg.Reset(); dlg.SetHeading(Constants.View.COMPRESS3); dlg.SetLine(1, Constants.Operation.CHANGECOMPRESS); dlg.SetLine(2, Constants.Operation.ALLSUBDIR); @@ -1713,11 +1727,11 @@ if (info.Path.Name.Equals(item.Label)) { GUIDialogYesNo dlg = (GUIDialogYesNo)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_DIALOG_YES_NO); + dlg.Reset(); /* dlg.SetHeading("Hide/Unhide"); dlg.SetLine(1, "Do you wish to change the hide status"); dlg.SetLine(2, "for all subdirectories and files in current"); dlg.SetLine(3, "folder?"); */ - dlg.Reset(); dlg.SetHeading(Constants.View.HIDEUNHIDE); dlg.SetLine(1, Constants.Operation.CHANGEHIDE); dlg.SetLine(2, Constants.Operation.ALLSUBDIR); @@ -1868,11 +1882,11 @@ if (info.Path.Name.Equals(item.Label)) { GUIDialogYesNo dlg = (GUIDialogYesNo)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_DIALOG_YES_NO); + dlg.Reset(); /* dlg.SetHeading("Set/Remove readonly flag"); dlg.SetLine(1, "Do you wish to change the readonly flag"); dlg.SetLine(2, "for all subdirectories and files in current"); dlg.SetLine(3, "folder?"); */ - dlg.Reset(); dlg.SetHeading(Constants.Operation.SETREMOVEFLAG); dlg.SetLine(1, Constants.Operation.CHANGEFLAG); dlg.SetLine(2, Constants.Operation.ALLSUBDIR); @@ -1950,10 +1964,10 @@ GUIListItem item = GUIControl.GetSelectedListItem(winId, lstId); GUIDialogYesNo dlg = (GUIDialogYesNo)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_DIALOG_YES_NO); + dlg.Reset(); /* dlg.SetHeading("Create Audio Playlist"); dlg.SetLine(1, "Would you like to include all audio files of"); dlg.SetLine(2, "the current folder's subdirectories?"); */ - dlg.Reset(); dlg.SetHeading(Constants.Dialog.CREATEAUDIO); dlg.SetLine(1, Constants.Playlist.INCLUDEAUDIOFILES); dlg.SetLine(2, Constants.Playlist.CURRENTFOLDERSUBDIR); @@ -2008,6 +2022,7 @@ if (lstFiles.Count == 0) { GUIDialogOK dlg = (GUIDialogOK)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_DIALOG_OK); + dlg.Reset(); /* dlg.SetHeading("Create Audio Playlist"); dlg.SetLine(1, "No audio files found!"); */ dlg.SetHeading(Constants.Dialog.CREATEAUDIO); @@ -2074,6 +2089,7 @@ if (lstFiles.Count == 0) { GUIDialogOK dlg = (GUIDialogOK)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_DIALOG_OK); + dlg.Reset(); /* dlg.SetHeading("Create Audio Playlist"); dlg.SetLine(1, "No audio files found!"); */ dlg.SetHeading(Constants.Dialog.CREATEAUDIO); @@ -2111,10 +2127,10 @@ GUIListItem item = GUIControl.GetSelectedListItem(winId, lstId); GUIDialogYesNo dlg = (GUIDialogYesNo)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_DIALOG_YES_NO); + dlg.Reset(); /* dlg.SetHeading("Create Video Playlist"); dlg.SetLine(1, "Would you like to include all video files of"); dlg.SetLine(2, "the current folder's subdirectories?"); */ - dlg.Reset(); dlg.SetHeading(Constants.Dialog.CREATEVIDEO); dlg.SetLine(1, Constants.Playlist.INCLUDEVIDEOFILES); dlg.SetLine(2, Constants.Playlist.CURRENTFOLDERSUBDIR); @@ -2169,6 +2185,7 @@ if (lstFiles.Count == 0) { GUIDialogOK dlg = (GUIDialogOK)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_DIALOG_OK); + dlg.Reset(); /* dlg.SetHeading("Create Video Playlist"); dlg.SetLine(1, "No video files found!"); */ dlg.SetHeading(Constants.Dialog.CREATEVIDEO); @@ -2234,6 +2251,7 @@ if (lstFiles.Count == 0) { GUIDialogOK dlg = (GUIDialogOK)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_DIALOG_OK); + dlg.Reset(); /* dlg.SetHeading("Create Video Playlist"); dlg.SetLine(1, "No video files found!"); */ dlg.SetHeading(Constants.Dialog.CREATEVIDEO); @@ -2269,6 +2287,7 @@ if (files.Length == 0) { GUIDialogOK dlg = (GUIDialogOK)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_DIALOG_OK); + dlg.Reset(); /* dlg.SetHeading("No playlists found"); dlg.SetLine(1, "No playlists found in directory"); */ dlg.SetHeading(Constants.Playlist.NOPLAYLIST); @@ -2307,6 +2326,7 @@ if (lstFiles.Count == 0) { GUIDialogOK dlg = (GUIDialogOK)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_DIALOG_OK); + dlg.Reset(); /* dlg.SetHeading("Add to Audio Playlist"); dlg.SetLine(1, "No audio files found!"); */ dlg.SetHeading(Constants.Dialog.ADDAUDIO); @@ -2341,6 +2361,7 @@ if (files.Length == 0) { GUIDialogOK dlg = (GUIDialogOK)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_DIALOG_OK); + dlg.Reset(); /* dlg.SetHeading("No playlists found"); dlg.SetLine(1, "No playlists found in directory"); */ dlg.SetHeading(Constants.Playlist.NOPLAYLIST); @@ -2395,6 +2416,7 @@ if (lstFiles.Count == 0) { GUIDialogOK dlg = (GUIDialogOK)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_DIALOG_OK); + dlg.Reset(); /* dlg.SetHeading("Create Audio Playlist"); dlg.SetLine(1, "No audio files found!"); */ dlg.SetHeading(Constants.Dialog.CREATEAUDIO); @@ -2425,6 +2447,7 @@ if (files.Length == 0) { GUIDialogOK dlg = (GUIDialogOK)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_DIALOG_OK); + dlg.Reset(); /* dlg.SetHeading("No playlists found"); dlg.SetLine(1, "No playlists found in directory"); */ dlg.SetHeading(Constants.Playlist.NOPLAYLIST); @@ -2463,6 +2486,7 @@ if (lstFiles.Count == 0) { GUIDialogOK dlg = (GUIDialogOK)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_DIALOG_OK); + dlg.Reset(); /* dlg.SetHeading("Add to Video Playlist"); dlg.SetLine(1, "No video files found!"); */ dlg.SetHeading(Constants.Dialog.ADDVIDEO); @@ -2497,6 +2521,7 @@ if (files.Length == 0) { GUIDialogOK dlg = (GUIDialogOK)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_DIALOG_OK); + dlg.Reset(); /* dlg.SetHeading("No playlists found"); dlg.SetLine(1, "No playlists found in directory"); */ dlg.SetHeading(Constants.Playlist.NOPLAYLIST); @@ -2551,6 +2576,7 @@ if (lstFiles.Count == 0) { GUIDialogOK dlg = (GUIDialogOK)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_DIALOG_OK); + dlg.Reset(); /* dlg.SetHeading("Create Video Playlist"); dlg.SetLine(1, "No video files found!"); */ dlg.SetHeading(Constants.Dialog.CREATEVIDEO); @@ -2599,6 +2625,14 @@ catch (Exception ex) { Log.Error("File Explorer: Unable to clear Recycle Bin: " + ex.Message); + + GUIDialogOK dlgOK = (GUIDialogOK)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_DIALOG_OK); + dlgOK.Reset(); + // dlg.SetHeading("Error"); + // dlg.SetLine(2, "Unable to empty Recycle Bin + "!"); + dlgOK.SetHeading(Constants.Operation.ERROR); + dlgOK.SetLine(1, Constants.Operation.UNABLETOEMPTYRECYCLEBIN + "!"); + dlgOK.DoModal(GUIWindowManager.ActiveWindow); } } @@ -2926,6 +2960,44 @@ #endregion #region Utils + private void SetFileExplorerProperty(string propertyName, string propertyValue) + { + if (string.IsNullOrEmpty(propertyValue)) + propertyValue = " "; + + if (lstId == Constants.ControlIDs.LISTBOX_LEFT) + GUIPropertyManager.SetProperty("#FileExplorer.Left." + propertyName, propertyValue); + if (lstId == Constants.ControlIDs.LISTBOX_RIGHT) + GUIPropertyManager.SetProperty("#FileExplorer.Right." + propertyName, propertyValue); + else + { + GUIPropertyManager.SetProperty("#FileExplorer.Left." + propertyName, " "); + GUIPropertyManager.SetProperty("#FileExplorer.Right." + propertyName, " "); + } + } + + private string UppercaseFirst(string s) + { + // Check for empty string. + if (string.IsNullOrEmpty(s)) + { + return string.Empty; + } + // Return char and concat substring. + return char.ToUpper(s[0]) + s.Substring(1); + } + + private string LowercaseFirst(string s) + { + // Check for empty string. + if (string.IsNullOrEmpty(s)) + { + return string.Empty; + } + // Return char and concat substring. + return char.ToLower(s[0]) + s.Substring(1); + } + private bool IsSystemAttribute(System.IO.FileAttributes a) { return ((System.IO.FileAttributes.System & a) == System.IO.FileAttributes.System); @@ -3238,15 +3310,7 @@ set { selectionMode = value; - if (lstId == 3) - GUIPropertyManager.SetProperty("#FileExplorer.Left.SelectionMode", value.ToString()); - else if (lstId == 4) - GUIPropertyManager.SetProperty("#FileExplorer.Right.SelectionMode", value.ToString()); - else - { - GUIPropertyManager.SetProperty("#FileExplorer.Left.SelectionMode", " "); - GUIPropertyManager.SetProperty("#FileExplorer.Right.SelectionMode", " "); - } + SetFileExplorerProperty("SelectionMode", value.ToString()); } } #endregion Modified: trunk/plugins/File Explorer/ExceptionViewer.cs =================================================================== --- trunk/plugins/File Explorer/ExceptionViewer.cs 2010-05-04 04:44:46 UTC (rev 3571) +++ trunk/plugins/File Explorer/ExceptionViewer.cs 2010-05-04 13:18:18 UTC (rev 3572) @@ -68,6 +68,7 @@ public static void ShowDialog(string msg) { GUIDialogOK dlg = (GUIDialogOK)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_DIALOG_OK); + dlg.Reset(); // dlg.SetHeading("Exception"); dlg.SetHeading(Constants.Exceptions.EXCEPTION); dlg.SetLine(2, msg); @@ -77,6 +78,7 @@ public static void ShowDialog(string msg1, string msg2) { GUIDialogOK dlg = (GUIDialogOK)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_DIALOG_OK); + dlg.Reset(); // dlg.SetHeading("Exception"); dlg.SetHeading(Constants.Exceptions.EXCEPTION); dlg.SetLine(1, msg1); Modified: trunk/plugins/File Explorer/File Explorer.cs =================================================================== --- trunk/plugins/File Explorer/File Explorer.cs 2010-05-04 04:44:46 UTC (rev 3571) +++ trunk/plugins/File Explorer/File Explorer.cs 2010-05-04 13:18:18 UTC (rev 3572) @@ -169,14 +169,23 @@ viewLeft.SecondView = viewRight; viewRight.SecondView = viewLeft; - // Settings s = new Settings("FileExplorer.xml"); + /* Settings s = new Settings(Config.GetFile(Config.Dir.Config, "File Explorer.xml")); viewLeft.ShowExtensions = s.GetValueAsBool("File Explorer", Constants.SetupForm.valueNames[0], Constants.SetupForm.valueStandards[0]); viewLeft.DeleteFilesToTrashcan = s.GetValueAsBool("File Explorer", Constants.SetupForm.valueNames[1], Constants.SetupForm.valueStandards[1]); viewLeft.ShowAllFiles = s.GetValueAsBool("File Explorer", Constants.SetupForm.valueNames[2], Constants.SetupForm.valueStandards[2]); viewLeft.ShowSystemFiles = s.GetValueAsBool("File Explorer", Constants.SetupForm.valueNames[3], Constants.SetupForm.valueStandards[3]); viewLeft.ShowSystemDirs = s.GetValueAsBool("File Explorer", Constants.SetupForm.valueNames[4], Constants.SetupForm.valueStandards[4]); + */ + XmlConfig XmlConfig = new XmlConfig(); + + viewLeft.ShowExtensions = XmlConfig.ReadXmlConfig("File Explorer", "explorer", Constants.SetupForm.valueNames[0], Constants.SetupForm.valueStandards[0]); + viewLeft.DeleteFilesToTrashcan = XmlConfig.ReadXmlConfig("File Explorer", "explorer", Constants.SetupForm.valueNames[1], Constants.SetupForm.valueStandards[1]); + viewLeft.ShowAllFiles = XmlConfig.ReadXmlConfig("File Explorer", "explorer", Constants.SetupForm.valueNames[2], Constants.SetupForm.valueStandards[2]); + viewLeft.ShowSystemFiles = XmlConfig.ReadXmlConfig("File Explorer", "explorer", Constants.SetupForm.valueNames[3], Constants.SetupForm.valueStandards[3]); + viewLeft.ShowSystemDirs = XmlConfig.ReadXmlConfig("File Explorer", "explorer", Constants.SetupForm.valueNames[4], Constants.SetupForm.valueStandards[4]); + viewRight.ShowExtensions = viewLeft.ShowExtensions; viewRight.DeleteFilesToTrashcan = viewLeft.DeleteFilesToTrashcan; viewRight.ShowAllFiles = viewLeft.ShowAllFiles; Modified: trunk/plugins/File Explorer/Language/strings_de.xml =================================================================== --- trunk/plugins/File Explorer/Language/strings_de.xml 2010-05-04 04:44:46 UTC (rev 3571) +++ trunk/plugins/File Explorer/Language/strings_de.xml 2010-05-04 13:18:18 UTC (rev 3572) @@ -134,5 +134,6 @@ <String id="130">Auswahl</String> <String id="131">Empty Recycle Bin</String> <String id="132">Confirm</String> + <String id="133">Unable to empty Recycle Bin</String> </Section> </Language> \ No newline at end of file Modified: trunk/plugins/File Explorer/Language/strings_en.xml =================================================================== --- trunk/plugins/File Explorer/Language/strings_en.xml 2010-05-04 04:44:46 UTC (rev 3571) +++ trunk/plugins/File Explorer/Language/strings_en.xml 2010-05-04 13:18:18 UTC (rev 3572) @@ -134,5 +134,6 @@ <String id="130">Browse</String> <String id="131">Empty Recycle Bin</String> <String id="132">Confirm</String> + <String id="133">Unable to empty Recycle Bin</String> </Section> </Language> \ No newline at end of file Modified: trunk/plugins/File Explorer/Language/strings_fr.xml =================================================================== --- trunk/plugins/File Explorer/Language/strings_fr.xml 2010-05-04 04:44:46 UTC (rev 3571) +++ trunk/plugins/File Explorer/Language/strings_fr.xml 2010-05-04 13:18:18 UTC (rev 3572) @@ -134,5 +134,6 @@ <String id="130">Rechercher</String> <String id="131">Vider la Corbeille</String> <String id="132">Confirmer</String> + <String id="133">Unable to empty Recycle Bin</String> </Section> </Language> \ No newline at end of file Modified: trunk/plugins/File Explorer/Skin/Blue3/File Explorer_dialog.xml =================================================================== --- trunk/plugins/File Explorer/Skin/Blue3/File Explorer_dialog.xml 2010-05-04 04:44:46 UTC (rev 3571) +++ trunk/plugins/File Explorer/Skin/Blue3/File Explorer_dialog.xml 2010-05-04 13:18:18 UTC (rev 3572) @@ -14,7 +14,7 @@ </control> <control> <description>dialog Heading</description> - <type>label</type> + <type>fadelabel</type> <id>2</id> <posX>190</posX> <posY>230</posY> @@ -24,7 +24,7 @@ </control> <control> <description>dialog line 1</description> - <type>label</type> + <type>fadelabel</type> <id>3</id> <posX>190</posX> <posY>260</posY> @@ -34,7 +34,7 @@ </control> <control> <description>dialog line 2</description> - <type>label</type> + <type>fadelabel</type> <id>4</id> <posX>190</posX> <posY>280</posY> Modified: trunk/plugins/File Explorer/Skin/Blue3wide/File Explorer_dialog.xml =================================================================== --- trunk/plugins/File Explorer/Skin/Blue3wide/File Explorer_dialog.xml 2010-05-04 04:44:46 UTC (rev 3571) +++ trunk/plugins/File Explorer/Skin/Blue3wide/File Explorer_dialog.xml 2010-05-04 13:18:18 UTC (rev 3572) @@ -14,7 +14,7 @@ </control> <control> <description>dialog Heading</description> - <type>label</type> + <type>fadelabel</type> <id>2</id> <posX>190</posX> <posY>230</posY> @@ -24,7 +24,7 @@ </control> <control> <description>dialog line 1</description> - <type>label</type> + <type>fadelabel</type> <id>3</id> <posX>190</posX> <posY>260</posY> @@ -34,7 +34,7 @@ </control> <control> <description>dialog line 2</description> - <type>label</type> + <type>fadelabel</type> <id>4</id> <posX>190</posX> <posY>280</posY> Modified: trunk/plugins/File Explorer/Skin/BlueTwo/File Explorer_dialog.xml =================================================================== --- trunk/plugins/File Explorer/Skin/BlueTwo/File Explorer_dialog.xml 2010-05-04 04:44:46 UTC (rev 3571) +++ trunk/plugins/File Explorer/Skin/BlueTwo/File Explorer_dialog.xml 2010-05-04 13:18:18 UTC (rev 3572) @@ -14,7 +14,7 @@ </control> <control> <description>dialog Heading</description> - <type>label</type> + <type>fadelabel</type> <id>2</id> <posX>190</posX> <posY>230</posY> @@ -24,7 +24,7 @@ </control> <control> <description>dialog line 1</description> - <type>label</type> + <type>fadelabel</type> <id>3</id> <posX>190</posX> <posY>260</posY> @@ -34,7 +34,7 @@ </control> <control> <description>dialog line 2</description> - <type>label</type> + <type>fadelabel</type> <id>4</id> <posX>190</posX> <posY>280</posY> Modified: trunk/plugins/File Explorer/Skin/Xface/File Explorer_dialog.xml =================================================================== --- trunk/plugins/File Explorer/Skin/Xface/File Explorer_dialog.xml 2010-05-04 04:44:46 UTC (rev 3571) +++ trunk/plugins/File Explorer/Skin/Xface/File Explorer_dialog.xml 2010-05-04 13:18:18 UTC (rev 3572) @@ -14,7 +14,7 @@ </control> <control> <description>dialog Heading</description> - <type>label</type> + <type>fadelabel</type> <id>2</id> <posX>190</posX> <posY>230</posY> @@ -24,7 +24,7 @@ </control> <control> <description>dialog line 1</description> - <type>label</type> + <type>fadelabel</type> <id>3</id> <posX>190</posX> <posY>260</posY> @@ -34,7 +34,7 @@ </control> <control> <description>dialog line 2</description> - <type>label</type> + <type>fadelabel</type> <id>4</id> <posX>190</posX> <posY>280</posY> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <fr...@us...> - 2010-05-04 15:45:17
|
Revision: 3573 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=3573&view=rev Author: framug Date: 2010-05-04 15:45:10 +0000 (Tue, 04 May 2010) Log Message: ----------- - Update french. - Remove some comments. - Update Authors. THX SE :-) Modified Paths: -------------- trunk/plugins/File Explorer/Constants.cs trunk/plugins/File Explorer/Dialogs/GUIDialogOperation.cs trunk/plugins/File Explorer/DrivesView.cs trunk/plugins/File Explorer/File Explorer.cs trunk/plugins/File Explorer/Language/strings_fr.xml trunk/plugins/File Explorer/Setup.cs Modified: trunk/plugins/File Explorer/Constants.cs =================================================================== --- trunk/plugins/File Explorer/Constants.cs 2010-05-04 13:18:18 UTC (rev 3572) +++ trunk/plugins/File Explorer/Constants.cs 2010-05-04 15:45:10 UTC (rev 3573) @@ -203,7 +203,7 @@ /// <summary> /// Author of PlugIn. /// </summary> - public static readonly string AUTHOR = "Andreas Groß, framug, -ltb- (gfx)"; + public static readonly string AUTHOR = "Andreas Groß, framug, SilentExcept, -ltb- (gfx)"; } #endregion Modified: trunk/plugins/File Explorer/Dialogs/GUIDialogOperation.cs =================================================================== --- trunk/plugins/File Explorer/Dialogs/GUIDialogOperation.cs 2010-05-04 13:18:18 UTC (rev 3572) +++ trunk/plugins/File Explorer/Dialogs/GUIDialogOperation.cs 2010-05-04 15:45:10 UTC (rev 3573) @@ -395,18 +395,14 @@ } } } - //fmu if someone know how to remove this obsolete m$soft method ? private void SuspendThread() { Paused = true; - //processThread.Suspend(); } - //fmu if someone know how to remove this obsolete m$soft method ? private void ResumeThread() { Paused = false; - //processThread.Resume(); } private string GetFilename(string filePath) Modified: trunk/plugins/File Explorer/DrivesView.cs =================================================================== --- trunk/plugins/File Explorer/DrivesView.cs 2010-05-04 13:18:18 UTC (rev 3572) +++ trunk/plugins/File Explorer/DrivesView.cs 2010-05-04 15:45:10 UTC (rev 3573) @@ -213,6 +213,7 @@ SetStandardValues(); string DefaultPath = String.Empty; XmlConfig XmlConfig = new XmlConfig(); + if (lstId == Constants.ControlIDs.LISTBOX_LEFT) { DefaultPath = XmlConfig.ReadXmlConfig("File Explorer", "explorer", Constants.SetupForm.DEFAULTFOLDERLEFT, String.Empty); @@ -221,6 +222,7 @@ { DefaultPath = XmlConfig.ReadXmlConfig("File Explorer", "explorer", Constants.SetupForm.DEFAULTFOLDERRIGHT, String.Empty); } + if (DefaultPath != String.Empty) { currentPath = DefaultPath; Modified: trunk/plugins/File Explorer/File Explorer.cs =================================================================== --- trunk/plugins/File Explorer/File Explorer.cs 2010-05-04 13:18:18 UTC (rev 3572) +++ trunk/plugins/File Explorer/File Explorer.cs 2010-05-04 15:45:10 UTC (rev 3573) @@ -161,23 +161,14 @@ { GUIPropertyManager.SetProperty("#currentmodule", "File Explorer"); - btnMenuLeft.Label = Constants.Skin.MENULEFT; //fmu - btnMenuRight.Label = Constants.Skin.MENURIGHT; //fmu + btnMenuLeft.Label = Constants.Skin.MENULEFT; + btnMenuRight.Label = Constants.Skin.MENURIGHT; viewLeft = new DrivesView(this.GetID, Constants.ControlIDs.LISTBOX_LEFT, lblLeftID, lblDirLeftID); viewRight = new DrivesView(this.GetID, Constants.ControlIDs.LISTBOX_RIGHT, lblRightID, lblDirRightID); viewLeft.SecondView = viewRight; viewRight.SecondView = viewLeft; - /* - Settings s = new Settings(Config.GetFile(Config.Dir.Config, "File Explorer.xml")); - viewLeft.ShowExtensions = s.GetValueAsBool("File Explorer", Constants.SetupForm.valueNames[0], Constants.SetupForm.valueStandards[0]); - viewLeft.DeleteFilesToTrashcan = s.GetValueAsBool("File Explorer", Constants.SetupForm.valueNames[1], Constants.SetupForm.valueStandards[1]); - viewLeft.ShowAllFiles = s.GetValueAsBool("File Explorer", Constants.SetupForm.valueNames[2], Constants.SetupForm.valueStandards[2]); - viewLeft.ShowSystemFiles = s.GetValueAsBool("File Explorer", Constants.SetupForm.valueNames[3], Constants.SetupForm.valueStandards[3]); - viewLeft.ShowSystemDirs = s.GetValueAsBool("File Explorer", Constants.SetupForm.valueNames[4], Constants.SetupForm.valueStandards[4]); - */ - XmlConfig XmlConfig = new XmlConfig(); viewLeft.ShowExtensions = XmlConfig.ReadXmlConfig("File Explorer", "explorer", Constants.SetupForm.valueNames[0], Constants.SetupForm.valueStandards[0]); Modified: trunk/plugins/File Explorer/Language/strings_fr.xml =================================================================== --- trunk/plugins/File Explorer/Language/strings_fr.xml 2010-05-04 13:18:18 UTC (rev 3572) +++ trunk/plugins/File Explorer/Language/strings_fr.xml 2010-05-04 15:45:10 UTC (rev 3573) @@ -134,6 +134,6 @@ <String id="130">Rechercher</String> <String id="131">Vider la Corbeille</String> <String id="132">Confirmer</String> - <String id="133">Unable to empty Recycle Bin</String> + <String id="133">Impossible de vider la Corbeille</String> </Section> </Language> \ No newline at end of file Modified: trunk/plugins/File Explorer/Setup.cs =================================================================== --- trunk/plugins/File Explorer/Setup.cs 2010-05-04 13:18:18 UTC (rev 3572) +++ trunk/plugins/File Explorer/Setup.cs 2010-05-04 15:45:10 UTC (rev 3573) @@ -218,16 +218,15 @@ #region private members private void LoadSettings() { - // Settings s = new Settings(Config.GetFile(Config.Dir.Config, "File Explorer.xml")); XmlConfig XmlConfig = new XmlConfig(); bool b; for (int i = 0; i < Constants.SetupForm.valueNames.Length; i++) { - // b = s.GetValueAsBool("explorer", Constants.SetupForm.valueNames[i], Constants.SetupForm.valueStandards[i]); b = XmlConfig.ReadXmlConfig("File Explorer", "explorer", Constants.SetupForm.valueNames[i], Constants.SetupForm.valueStandards[i]); lstOptions.SetItemChecked(i, b); } + this.textBoxFolderLeftMenu.Text = XmlConfig.ReadXmlConfig("File Explorer", "explorer", Constants.SetupForm.DEFAULTFOLDERLEFT, String.Empty); this.textBoxFolderRightMenu.Text = XmlConfig.ReadXmlConfig("File Explorer", "explorer", Constants.SetupForm.DEFAULTFOLDERRIGHT, String.Empty); @@ -237,14 +236,13 @@ private void SaveSettings() { - // Settings s = new Settings(Config.GetFile(Config.Dir.Config, "File Explorer.xml")); XmlConfig XmlConfig = new XmlConfig(); for (int i = 0; i < Constants.SetupForm.valueNames.Length; i++) { - // s.SetValueAsBool("explorer", Constants.SetupForm.valueNames[i], IsItemChecked(i)); XmlConfig.WriteXmlConfig("File Explorer", "explorer", Constants.SetupForm.valueNames[i], IsItemChecked(i)); } + XmlConfig.WriteXmlConfig("File Explorer", "explorer", Constants.SetupForm.DEFAULTFOLDERLEFT, this.textBoxFolderLeftMenu.Text); XmlConfig.WriteXmlConfig("File Explorer", "explorer", Constants.SetupForm.DEFAULTFOLDERRIGHT, this.textBoxFolderRightMenu.Text); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <Sil...@us...> - 2010-05-04 17:15:30
|
Revision: 3574 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=3574&view=rev Author: SilentException Date: 2010-05-04 17:15:23 +0000 (Tue, 04 May 2010) Log Message: ----------- Small updates to GUIDialogOperation Dialog updates Path concatenation updates Video files playback improvement (full screen) Bug fix for property setter Modified Paths: -------------- trunk/plugins/File Explorer/Dialogs/GUIDialogOperation.cs trunk/plugins/File Explorer/DrivesView.cs Modified: trunk/plugins/File Explorer/Dialogs/GUIDialogOperation.cs =================================================================== --- trunk/plugins/File Explorer/Dialogs/GUIDialogOperation.cs 2010-05-04 15:45:10 UTC (rev 3573) +++ trunk/plugins/File Explorer/Dialogs/GUIDialogOperation.cs 2010-05-04 17:15:23 UTC (rev 3574) @@ -325,6 +325,7 @@ this.file = file; // lblText1.Label = "File: " + file; lblText1.Label = Constants.Dialog.FILE + file; + GUIWindowManager.Process(); ResumeThread(); } @@ -340,6 +341,7 @@ this.to = path; // lblText2.Label = "To: " + path; lblText2.Label = Constants.Dialog.TO + path; + GUIWindowManager.Process(); ResumeThread(); } @@ -378,7 +380,7 @@ { SuspendThread(); lblText1.Label = text1; - lblText1.Label = text2; + lblText2.Label = text2; ResumeThread(); } #endregion @@ -395,6 +397,7 @@ } } } + private void SuspendThread() { Paused = true; Modified: trunk/plugins/File Explorer/DrivesView.cs =================================================================== --- trunk/plugins/File Explorer/DrivesView.cs 2010-05-04 15:45:10 UTC (rev 3573) +++ trunk/plugins/File Explorer/DrivesView.cs 2010-05-04 17:15:23 UTC (rev 3574) @@ -688,17 +688,17 @@ { // dlg.SetHeading("Copy File"); dlg.SetHeading(Constants.Operation.COPYFILE); - // dlg.SetLine(1, item.Label); - dlg.SetLine(1, item.Label); - // dlg.SetLine(2, "From: " + item.Path); - dlg.SetLine(2, Constants.Operation.FROM + item.Path); + // dlg.SetLine(1, "\"" + item.Label + "\""); + dlg.SetLine(1, "\"" + item.Label + "\""); + // dlg.SetLine(2, "From: " + Path); + dlg.SetLine(2, Constants.Operation.FROM + Path); // dlg.SetLine(3, "To: " + secondView.Path); dlg.SetLine(3, Constants.Dialog.TO + secondView.Path); // already defined in Dialog dlg.DoModal(GUIWindowManager.ActiveWindow); if (dlg.IsConfirmed) { - CopySingleFile(item.Path + "\\" + item.Label, secondView.Path + "\\" + item.Label); + CopySingleFile(CombinePathAndFilename(item.Path, item.Label), CombinePathAndFilename(secondView.Path, item.Label)); secondView.Update(); } } @@ -706,10 +706,10 @@ { // dlg.SetHeading("Copy Directory"); dlg.SetHeading(Constants.Operation.COPYDIR); - // dlg.SetLine(1, item.Label); - dlg.SetLine(1, item.Label); - // dlg.SetLine(2, "From: " + item.Path); - dlg.SetLine(2, Constants.Operation.FROM + item.Path); + // dlg.SetLine(1, "\"" + item.Label + "\""); + dlg.SetLine(1, "\"" + item.Label + "\""); + // dlg.SetLine(2, "From: " + Path); + dlg.SetLine(2, Constants.Operation.FROM + Path); // dlg.SetLine(3, "To: " + secondView.Path); dlg.SetLine(3, Constants.Dialog.TO + secondView.Path); // already defined in Dialog dlg.DoModal(GUIWindowManager.ActiveWindow); @@ -717,7 +717,7 @@ if (dlg.IsConfirmed) { ShowDialogOperation(GUIDialogOperation.DialogType.COPY); - CopyDirectory(item.Path, secondView.Path + "\\" + GetFilename(item.Path)); + CopyDirectory(item.Path, CombinePathAndFilename(secondView.Path, GetFilename(item.Path))); secondView.Update(); dlgOp.Close(); } @@ -730,12 +730,12 @@ if (info.IsPath) { ShowDialogOperation(GUIDialogOperation.DialogType.COPY); - CopyDirectory(info.Path.Path, secondView.Path + "\\" + GetFilename(info.Path.Path)); + CopyDirectory(info.Path.Path, CombinePathAndFilename(secondView.Path, GetFilename(info.Path.Path))); dlgOp.Close(); } else { - CopySingleFile(info.File.Path + "\\" + info.File.Name, secondView.Path + "\\" + info.File.Name, true); + CopySingleFile(CombinePathAndFilename(info.File.Path, info.File.Name), CombinePathAndFilename(secondView.Path, info.File.Name), true); } } @@ -758,7 +758,7 @@ dlg.SetHeading(Constants.Operation.COPYINGFILE); // dlg.SetLine(1, "The file \"" + GetFilename(src) + "\""); dlg.SetLine(1, Constants.Operation.THEFILE + "\"" + GetFilename(src) + "\""); - // dlg.SetLine(2, "alread exists!"); + // dlg.SetLine(2, "already exists!"); dlg.SetLine(2, Constants.Operation.ALREADYEXIST); // dlg.SetLine(3, "Do you want to overwrite it?"); dlg.SetLine(3, Constants.Operation.OVERWRITE); @@ -810,11 +810,11 @@ { dlgOp.SetToPath(dest); dlgOp.SetCurrentFile(GetFilename(s)); - CopySingleFile(s, dest + "\\" + GetFilename(s)); + CopySingleFile(s, CombinePathAndFilename(dest, GetFilename(s))); } else { - CopyDirectory(s, dest + "\\" + GetFilename(s)); + CopyDirectory(s, CombinePathAndFilename(dest, GetFilename(s))); } } } @@ -834,17 +834,17 @@ { // dlg.SetHeading("Move File"); dlg.SetHeading(Constants.Operation.MOVEFILE); - // dlg.SetLine(1, item.Label); - dlg.SetLine(1, item.Label); - // dlg.SetLine(2, "From: " + item.Path); - dlg.SetLine(2, Constants.Operation.FROM + item.Path); + // dlg.SetLine(1, "\"" + item.Label + "\""); + dlg.SetLine(1, "\"" + item.Label + "\""); + // dlg.SetLine(2, "From: " + Path); + dlg.SetLine(2, Constants.Operation.FROM + Path); // dlg.SetLine(3, "To: " + secondView.Path); dlg.SetLine(3, Constants.Dialog.TO + secondView.Path); // already defined in Dialog dlg.DoModal(GUIWindowManager.ActiveWindow); if (dlg.IsConfirmed) { - MoveSingleFile(item.Path + "\\" + item.Label, secondView.Path + "\\" + item.Label); + MoveSingleFile(CombinePathAndFilename(item.Path, item.Label), CombinePathAndFilename(secondView.Path, item.Label)); Update(); secondView.Update(); } @@ -853,10 +853,10 @@ { // dlg.SetHeading("Move Directory"); dlg.SetHeading(Constants.Operation.MOVEDIR); - // dlg.SetLine(1, item.Label); - dlg.SetLine(1, item.Label); - // dlg.SetLine(2, "From: " + item.Path); - dlg.SetLine(2, Constants.Operation.FROM + item.Path); + // dlg.SetLine(1, "\"" + item.Label + "\""); + dlg.SetLine(1, "\"" + item.Label + "\""); + // dlg.SetLine(2, "From: " + Path); + dlg.SetLine(2, Constants.Operation.FROM + Path); // dlg.SetLine(3, "To: " + secondView.Path); dlg.SetLine(3, Constants.Dialog.TO + secondView.Path); // already defined in Dialog dlg.DoModal(GUIWindowManager.ActiveWindow); @@ -864,7 +864,7 @@ if (dlg.IsConfirmed) { ShowDialogOperation(GUIDialogOperation.DialogType.MOVE); - MoveDirectory(item.Path, secondView.Path + "\\" + GetFilename(item.Path)); + MoveDirectory(item.Path, CombinePathAndFilename(secondView.Path, GetFilename(item.Path))); Update(); secondView.Update(); dlgOp.Close(); @@ -878,12 +878,12 @@ if (info.IsPath) { ShowDialogOperation(GUIDialogOperation.DialogType.MOVE); - MoveDirectory(info.Path.Path, secondView.Path + "\\" + GetFilename(info.Path.Path)); + MoveDirectory(info.Path.Path, CombinePathAndFilename(secondView.Path, GetFilename(info.Path.Path))); dlgOp.Close(); } else { - MoveSingleFile(info.File.Path + "\\" + info.File.Name, secondView.Path + "\\" + info.File.Name); + MoveSingleFile(CombinePathAndFilename(info.File.Path, info.File.Name), CombinePathAndFilename(secondView.Path, info.File.Name)); } } @@ -899,7 +899,7 @@ dlg.Reset(); /* dlg.SetHeading("Moving file"); dlg.SetLine(1, "The file \"" + GetFilename(src) + "\""); - dlg.SetLine(2, "alread exists!"); + dlg.SetLine(2, "already exists!"); dlg.SetLine(3, "Do you want to overwrite it?"); */ dlg.SetHeading(Constants.Operation.MOVINGFILE); dlg.SetLine(1, Constants.Operation.THEFILE + "\"" + GetFilename(src) + "\""); @@ -931,7 +931,7 @@ dlg.Reset(); /* dlg.SetHeading("Moving directory"); dlg.SetLine(1, "The directory \"" + GetFilename(dest) + "\""); - dlg.SetLine(2, "alread exists!"); + dlg.SetLine(2, "already exists!"); dlg.SetLine(3, "Do you want to overwrite it?"); */ dlg.SetHeading(Constants.Operation.MOVINGDIR); dlg.SetLine(1, Constants.Operation.THEDIR + "\"" + GetFilename(dest) + "\""); @@ -986,7 +986,7 @@ } else { - DeleteSingleFile(info[i].File.Path + "\\" + info[i].File.Name); + DeleteSingleFile(CombinePathAndFilename(info[i].File.Path, info[i].File.Name)); } } @@ -1046,7 +1046,7 @@ dlg.SetLine(2, "the file \"" + item.Label + "\"?"); */ dlg.SetHeading(Constants.Operation.DELETEFILE); dlg.SetLine(1, Constants.Operation.WANTDELETE); - dlg.SetLine(2, Constants.Operation.THEFILE + "\"" + item.Label + "\"?"); + dlg.SetLine(2, LowercaseFirst(Constants.Operation.THEFILE) + "\"" + item.Label + "\"?"); dlg.SetLine(3, " "); dlg.DoModal(GUIWindowManager.ActiveWindow); @@ -1062,7 +1062,7 @@ dlg.SetLine(3, "After deleting the file CANNOT BE RESTORED!"); */ dlg.SetHeading(Constants.Operation.DELETEFILE); dlg.SetLine(1, Constants.Operation.WANTDELETE); - dlg.SetLine(2, Constants.Operation.THEFILE + "\"" + item.Label + "\"?"); + dlg.SetLine(2, LowercaseFirst(Constants.Operation.THEFILE) + "\"" + item.Label + "\"?"); dlg.SetLine(3, Constants.Operation.AFTERDELETE); dlg.DoModal(GUIWindowManager.ActiveWindow); @@ -1071,41 +1071,7 @@ if (b) { - string p; - if ((item.Path.EndsWith("\\")) || (item.Path.EndsWith("/"))) - { - p = item.Path.Substring(0, item.Path.Length - 1); - } - else - { - p = item.Path; - } - - DeleteSingleFile(p + "\\" + item.Label); - - /*if (this.DeleteFilesToTrashcan) - { - try - { - FileIO.FileSystem.DeleteFile(p + "\\" + item.Label, FileIO.UIOption.OnlyErrorDialogs, FileIO.RecycleOption.SendToRecycleBin); - } - catch (Exception e) - { - ExceptionViewer.ShowException(e); - } - } - else - { - try - { - FileIO.FileSystem.DeleteFile(p + "\\" + item.Label, FileIO.UIOption.OnlyErrorDialogs, FileIO.RecycleOption.DeletePermanently); - } - catch (Exception e) - { - ExceptionViewer.ShowException(e); - } - }*/ - + DeleteSingleFile(CombinePathAndFilename(item.Path, item.Label)); Update(); } } @@ -1188,15 +1154,9 @@ { if (info.Path.Name.Equals(item.Label)) { - string p = info.Path.Path; - if ((p.EndsWith("\\")) || p.EndsWith("/")) - { - p = p.Substring(0, p.Length - 1); - } - try { - System.IO.Directory.Move(p, GetPath(p) + "\\" + keyboard.Text); + System.IO.Directory.Move(SanitizePath(info.Path.Path), CombinePathAndFilename(GetPath(SanitizePath(info.Path.Path)), keyboard.Text)); } catch (Exception) { @@ -1221,7 +1181,7 @@ { try { - System.IO.File.Move(info.File.Path + "\\" + info.File.Name, info.File.Path + "\\" + keyboard.Text); + System.IO.File.Move(CombinePathAndFilename(info.File.Path, info.File.Name), CombinePathAndFilename(info.File.Path, keyboard.Text)); } catch (Exception) { @@ -1256,7 +1216,7 @@ { try { - System.IO.Directory.CreateDirectory(currentPath + "\\" + keyboard.Text); + System.IO.Directory.CreateDirectory(CombinePathAndFilename(currentPath, keyboard.Text)); Update(); } catch (Exception) @@ -1358,7 +1318,7 @@ { try { - System.IO.File.Decrypt(info.File.Path + "\\" + info.File.Name); + System.IO.File.Decrypt(CombinePathAndFilename(info.File.Path, info.File.Name)); } catch (Exception e) { @@ -1369,7 +1329,7 @@ { try { - System.IO.File.Encrypt(info.File.Path + "\\" + info.File.Name); + System.IO.File.Encrypt(CombinePathAndFilename(info.File.Path, info.File.Name)); } catch (Exception e) { @@ -1397,7 +1357,7 @@ { try { - System.IO.File.Decrypt(info.File.Path + "\\" + info.File.Name); + System.IO.File.Decrypt(CombinePathAndFilename(info.File.Path, info.File.Name)); } catch (Exception e) { @@ -1408,7 +1368,7 @@ { try { - System.IO.File.Encrypt(info.File.Path + "\\" + info.File.Name); + System.IO.File.Encrypt(CombinePathAndFilename(info.File.Path, info.File.Name)); } catch (Exception e) { @@ -1492,7 +1452,6 @@ { if (System.IO.File.Exists(s)) { - if (encrypt) { dlgOp.SetCurrentFile(GetFilename(s)); @@ -1707,13 +1666,7 @@ { if (info.File.Name.Equals(item.Label)) { - string p = info.File.Path; - if ((info.File.Path.EndsWith("\\")) || (info.File.Path.EndsWith("/"))) - { - p = p.Substring(0, p.Length - 1); - } - - DrivesView.SetFileAttributes(p + "\\" + info.File.Name, this.CreateFileAtributes2(!info.File.Hidden, info.File.SystemFile, info.File.ReadOnly)); + DrivesView.SetFileAttributes(CombinePathAndFilename(SanitizePath(info.File.Path), info.File.Name), this.CreateFileAtributes2(!info.File.Hidden, info.File.SystemFile, info.File.ReadOnly)); Update(); return; } @@ -1862,13 +1815,7 @@ { if (info.File.Name.Equals(item.Label)) { - string p = info.File.Path; - if ((info.File.Path.EndsWith("\\")) || (info.File.Path.EndsWith("/"))) - { - p = p.Substring(0, p.Length - 1); - } - - DrivesView.SetFileAttributes(p + "\\" + info.File.Name, this.CreateFileAtributes2(info.File.Hidden, info.File.SystemFile, !info.File.ReadOnly)); + DrivesView.SetFileAttributes(CombinePathAndFilename(SanitizePath(info.File.Path), info.File.Name), this.CreateFileAtributes2(info.File.Hidden, info.File.SystemFile, !info.File.ReadOnly)); Update(); return; } @@ -1975,27 +1922,11 @@ dlg.SetLine(2, Constants.Playlist.CURRENTFOLDERSUBDIR); if (item.IsFolder) { - if (currentPath.Equals(currentDrive)) - { - dlg.SetLine(3, "(" + currentDrive + item.Label + ")"); - } - else - { - //dlg.SetLine(3, "(" + currentDrive + "..\\" + item.Label + ")"); - dlg.SetLine(3, "(" + currentPath + "\\" + item.Label + ")"); - } + dlg.SetLine(3, "(" + CombinePathAndFilename(currentPath, item.Label) + ")"); } else { - if (currentPath.Equals(currentDrive)) - { - dlg.SetLine(3, "(" + currentDrive + ")"); - } - else - { - //dlg.SetLine(3, "(" + currentDrive + "..\\" + GetFilename(currentPath) + ")"); - dlg.SetLine(3, "(" + currentPath + ")"); - } + dlg.SetLine(3, "(" + currentPath + ")"); } dlg.DoModal(GUIWindowManager.ActiveWindow); @@ -2019,7 +1950,7 @@ //dlgOp.SetCurrentFile(GetFilename("Reading files . . .")); // dlgOp.SetText("Reading files . . ."); dlgOp.SetText(Constants.Dialog.READFILE); - ReadDirectories(path, subfolders, Utils.AudioExtensions/*, lstFiles*/); + ReadDirectories(path, subfolders, Utils.AudioExtensions); if (lstFiles.Count == 0) { @@ -2036,7 +1967,7 @@ MediaPortal.Profile.Settings s = new MediaPortal.Profile.Settings(Config.GetFile(Config.Dir.Config, "MediaPortal.xml")); string plsPath = s.GetValueAsString("music", "playlists", string.Empty); - System.IO.StreamWriter w = System.IO.File.CreateText(plsPath + "\\" + plsFilename); + System.IO.StreamWriter w = System.IO.File.CreateText(CombinePathAndFilename(plsPath, plsFilename)); w.WriteLine("#EXTM3U"); foreach (string f in lstFiles) @@ -2103,7 +2034,7 @@ MediaPortal.Profile.Settings s = new MediaPortal.Profile.Settings(Config.GetFile(Config.Dir.Config, "MediaPortal.xml")); string plsPath = s.GetValueAsString("music", "playlists", string.Empty); - System.IO.StreamWriter w = System.IO.File.CreateText(plsPath + "\\" + keyboard.Text.Trim() + ".m3u"); + System.IO.StreamWriter w = System.IO.File.CreateText(CombinePathAndFilename(plsPath, keyboard.Text.Trim() + ".m3u")); w.WriteLine("#EXTM3U"); foreach (string f in lstFiles) @@ -2138,27 +2069,11 @@ dlg.SetLine(2, Constants.Playlist.CURRENTFOLDERSUBDIR); if (item.IsFolder) { - if (currentPath.Equals(currentDrive)) - { - dlg.SetLine(3, "(" + currentDrive + item.Label + ")"); - } - else - { - //dlg.SetLine(3, "(" + currentDrive + "..\\" + item.Label + ")"); - dlg.SetLine(3, "(" + currentPath + "\\" + item.Label + ")"); - } + dlg.SetLine(3, "(" + CombinePathAndFilename(currentPath, item.Label) + ")"); } else { - if (currentPath.Equals(currentDrive)) - { - dlg.SetLine(3, "(" + currentDrive + ")"); - } - else - { - //dlg.SetLine(3, "(" + currentDrive + "..\\" + GetFilename(currentPath) + ")"); - dlg.SetLine(3, "(" + currentPath + ")"); - } + dlg.SetLine(3, "(" + currentPath + ")"); } dlg.DoModal(GUIWindowManager.ActiveWindow); @@ -2199,7 +2114,7 @@ MediaPortal.Profile.Settings s = new MediaPortal.Profile.Settings(Config.GetFile(Config.Dir.Config, "MediaPortal.xml")); string plsPath = s.GetValueAsString("movies", "playlists", string.Empty); - System.IO.StreamWriter w = System.IO.File.CreateText(plsPath + "\\" + plsFilename); + System.IO.StreamWriter w = System.IO.File.CreateText(CombinePathAndFilename(plsPath, plsFilename)); w.WriteLine("#EXTM3U"); foreach (string f in lstFiles) @@ -2265,7 +2180,7 @@ MediaPortal.Profile.Settings s = new MediaPortal.Profile.Settings(Config.GetFile(Config.Dir.Config, "MediaPortal.xml")); string plsPath = s.GetValueAsString("movies", "playlists", string.Empty); - System.IO.StreamWriter w = System.IO.File.CreateText(plsPath + "\\" + keyboard.Text.Trim() + ".m3u"); + System.IO.StreamWriter w = System.IO.File.CreateText(CombinePathAndFilename(plsPath, keyboard.Text.Trim() + ".m3u")); w.WriteLine("#EXTM3U"); foreach (string f in lstFiles) @@ -2347,7 +2262,7 @@ else { w.WriteLine("#EXTINF:0," + item.Label); - w.WriteLine(item.Path + "\\" + item.Label); + w.WriteLine(CombinePathAndFilename(item.Path, item.Label)); } w.Close(); @@ -2507,7 +2422,7 @@ else { w.WriteLine("#EXTINF:0," + item.Label); - w.WriteLine(item.Path + "\\" + item.Label); + w.WriteLine(CombinePathAndFilename(item.Path, item.Label)); } w.Close(); @@ -2610,12 +2525,8 @@ // dlg.SetHeading("Confirm"); dlg.SetHeading(Constants.Dialog.CONFIRM); - // dlg.SetLine(1, " "); - dlg.SetLine(1, " "); - // dlg.SetLine(2, "Empty Recycle Bin" + "?"); - dlg.SetLine(2, Constants.Dialog.EMPTYRECYCLEBIN + "?"); - // dlg.SetLine(3, " "); - dlg.SetLine(3, " "); + // dlg.SetLine(1, "Empty Recycle Bin" + "?"); + dlg.SetLine(1, Constants.Dialog.EMPTYRECYCLEBIN + "?"); dlg.DoModal(GUIWindowManager.ActiveWindow); if (dlg.IsConfirmed) @@ -2721,7 +2632,7 @@ if (item.Label.Trim().Equals("..")) { - currentPath = this.GetPath(currentPath); + currentPath = item.Path; //this.GetPath(currentPath); LoadPath(); FillListControl(); @@ -2769,8 +2680,8 @@ { //MediaPortal.Player.g_Player.Play(info.File.Path + "\\" + info.File.Name); MediaPortal.Player.g_Player.Play(CombinePathAndFilename(info.File.Path, info.File.Name)); - GUIWindowManager.ActivateWindow((int)GUIWindow.Window.WINDOW_FULLSCREEN_VIDEO); - + MediaPortal.Player.g_Player.ShowFullScreenWindow(); + //GUIWindowManager.ActivateWindow((int)GUIWindow.Window.WINDOW_FULLSCREEN_VIDEO); return; } } @@ -2782,8 +2693,8 @@ // Play video file //MediaPortal.Player.g_Player.Play(info.File.Path + "\\" + info.File.Name); MediaPortal.Player.g_Player.Play(CombinePathAndFilename(info.File.Path, info.File.Name)); - GUIWindowManager.ActivateWindow((int)GUIWindow.Window.WINDOW_FULLSCREEN_VIDEO); - + MediaPortal.Player.g_Player.ShowFullScreenWindow(); + //GUIWindowManager.ActivateWindow((int)GUIWindow.Window.WINDOW_FULLSCREEN_VIDEO); return; } } @@ -2807,7 +2718,7 @@ if (e.Equals(ext)) { TextPreview txt = (TextPreview)GUIWindowManager.GetWindow(Constants.WindowIDs.TEXTVIEWER); - if (!txt.LoadTextFile(info.File.Path + "\\" + info.File.Name)) + if (!txt.LoadTextFile(CombinePathAndFilename(info.File.Path, info.File.Name))) { return; } @@ -2832,7 +2743,7 @@ if (dlg.IsConfirmed) { TextPreview txt = (TextPreview)GUIWindowManager.GetWindow(Constants.WindowIDs.TEXTVIEWER); - txt.LoadTextFile(info.File.Path + "\\" + info.File.Name); + txt.LoadTextFile(CombinePathAndFilename(info.File.Path, info.File.Name)); txt.DoModal(winId); } @@ -2962,6 +2873,18 @@ #endregion #region Utils + private string SanitizePath(string path) + { + if ((path.EndsWith("\\")) || (path.EndsWith("/"))) + { + return path.Substring(0, path.Length - 1); + } + else + { + return path; + } + } + private void SetFileExplorerProperty(string propertyName, string propertyValue) { if (string.IsNullOrEmpty(propertyValue)) @@ -2969,7 +2892,7 @@ if (lstId == Constants.ControlIDs.LISTBOX_LEFT) GUIPropertyManager.SetProperty("#FileExplorer.Left." + propertyName, propertyValue); - if (lstId == Constants.ControlIDs.LISTBOX_RIGHT) + else if (lstId == Constants.ControlIDs.LISTBOX_RIGHT) GUIPropertyManager.SetProperty("#FileExplorer.Right." + propertyName, propertyValue); else { @@ -3105,6 +3028,8 @@ private string GetPath(string filePath) { + filePath = SanitizePath(filePath); + int index = filePath.LastIndexOf("\\"); if (index == -1) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <Sil...@us...> - 2010-05-04 17:53:15
|
Revision: 3576 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=3576&view=rev Author: SilentException Date: 2010-05-04 17:53:05 +0000 (Tue, 04 May 2010) Log Message: ----------- Updated authors MpeRelease Modified Paths: -------------- trunk/plugins/File Explorer/Constants.cs Added Paths: ----------- trunk/plugins/File Explorer/MpeRelease/ trunk/plugins/File Explorer/MpeRelease/File Explorer 1.3.0.0.mpe1 trunk/plugins/File Explorer/MpeRelease/File Explorer 1.3.0.0.xmp2 trunk/plugins/File Explorer/MpeRelease/update.xml Modified: trunk/plugins/File Explorer/Constants.cs =================================================================== --- trunk/plugins/File Explorer/Constants.cs 2010-05-04 17:27:45 UTC (rev 3575) +++ trunk/plugins/File Explorer/Constants.cs 2010-05-04 17:53:05 UTC (rev 3576) @@ -203,7 +203,7 @@ /// <summary> /// Author of PlugIn. /// </summary> - public static readonly string AUTHOR = "Andreas Groß, framug, SilentExcept, -ltb- (gfx)"; + public static readonly string AUTHOR = "Andreas Groß, framug, SilentException, -ltb- (gfx)"; } #endregion Added: trunk/plugins/File Explorer/MpeRelease/File Explorer 1.3.0.0.mpe1 =================================================================== (Binary files differ) Property changes on: trunk/plugins/File Explorer/MpeRelease/File Explorer 1.3.0.0.mpe1 ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: trunk/plugins/File Explorer/MpeRelease/File Explorer 1.3.0.0.xmp2 =================================================================== --- trunk/plugins/File Explorer/MpeRelease/File Explorer 1.3.0.0.xmp2 (rev 0) +++ trunk/plugins/File Explorer/MpeRelease/File Explorer 1.3.0.0.xmp2 2010-05-04 17:53:05 UTC (rev 3576) @@ -0,0 +1,624 @@ +<?xml version="1.0" encoding="utf-8"?> +<PackageClass xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> + <Version>2.0</Version> + <Groups> + <Items> + <GroupItem Name="Plugin DLL"> + <ParentGroup /> + <DisplayName>Plugin</DisplayName> + <DefaulChecked>true</DefaulChecked> + <Description>Plugin files</Description> + <Files> + <Items> + <FileItem InstallType="CopyFile" SystemFile="false" Modified="true"> + <Param1 /> + <UpdateOption>AlwaysOverwrite</UpdateOption> + <LocalFileName>..\Compression\Release\Compression.dll</LocalFileName> + <ZipFileName>Installer{CopyFile}\{6ad4479e-a4ef-424d-bb10-5dfc366bdf97}-Compression.dll</ZipFileName> + <DestinationFilename>%Plugins%\Windows\Compression\Compression.dll</DestinationFilename> + </FileItem> + <FileItem InstallType="CopyFile" SystemFile="false" Modified="true"> + <Param1 /> + <UpdateOption>AlwaysOverwrite</UpdateOption> + <LocalFileName>..\bin\Release\File Explorer.dll</LocalFileName> + <ZipFileName>Installer{CopyFile}\{9fcc58ba-53f3-45f1-987f-30aa5a37394a}-File Explorer.dll</ZipFileName> + <DestinationFilename>%Plugins%\Windows\File Explorer.dll</DestinationFilename> + </FileItem> + </Items> + </Files> + </GroupItem> + <GroupItem Name="Plugin Blue3 skin files"> + <ParentGroup /> + <DisplayName>Blue3 skin</DisplayName> + <DefaulChecked>true</DefaulChecked> + <Description>Blue3 skin files</Description> + <Files> + <Items> + <FileItem InstallType="CopyFile" SystemFile="false" Modified="true"> + <Param1 /> + <UpdateOption>AlwaysOverwrite</UpdateOption> + <LocalFileName>..\Skin\Blue3\File Explorer_textpreview.xml</LocalFileName> + <ZipFileName>Installer{CopyFile}\{88931239-1808-4805-ba5f-4c64fc6e10ab}-File Explorer_textpreview.xml</ZipFileName> + <DestinationFilename>%Skin%\Blue3\File Explorer_textpreview.xml</DestinationFilename> + </FileItem> + <FileItem InstallType="CopyFile" SystemFile="false" Modified="true"> + <Param1 /> + <UpdateOption>AlwaysOverwrite</UpdateOption> + <LocalFileName>..\Skin\Blue3\File Explorer_dialog.xml</LocalFileName> + <ZipFileName>Installer{CopyFile}\{55884b5d-2ef9-47ab-858f-8dfcbf4e11cf}-File Explorer_dialog.xml</ZipFileName> + <DestinationFilename>%Skin%\Blue3\File Explorer_dialog.xml</DestinationFilename> + </FileItem> + <FileItem InstallType="CopyFile" SystemFile="false" Modified="true"> + <Param1 /> + <UpdateOption>AlwaysOverwrite</UpdateOption> + <LocalFileName>..\Skin\Blue3\File Explorer_main.xml</LocalFileName> + <ZipFileName>Installer{CopyFile}\{d8f279b1-156f-42ea-9521-df306497502d}-File Explorer_main.xml</ZipFileName> + <DestinationFilename>%Skin%\Blue3\File Explorer_main.xml</DestinationFilename> + </FileItem> + <FileItem InstallType="CopyFile" SystemFile="false" Modified="true"> + <Param1 /> + <UpdateOption>AlwaysOverwrite</UpdateOption> + <LocalFileName>..\Skin\Blue3\File Explorer_modulepreview.xml</LocalFileName> + <ZipFileName>Installer{CopyFile}\{e6dff945-da79-410d-a427-1bfabfac62bb}-File Explorer_modulepreview.xml</ZipFileName> + <DestinationFilename>%Skin%\Blue3\File Explorer_modulepreview.xml</DestinationFilename> + </FileItem> + <FileItem InstallType="CopyFile" SystemFile="false" Modified="true"> + <Param1 /> + <UpdateOption>AlwaysOverwrite</UpdateOption> + <LocalFileName>..\Skin\Blue3\File Explorer_musicpreview.xml</LocalFileName> + <ZipFileName>Installer{CopyFile}\{0b5e1eb7-ab42-4f27-8a35-140dcdf19542}-File Explorer_musicpreview.xml</ZipFileName> + <DestinationFilename>%Skin%\Blue3\File Explorer_musicpreview.xml</DestinationFilename> + </FileItem> + </Items> + </Files> + </GroupItem> + <GroupItem Name="Plugin Blue3wide skin files"> + <ParentGroup /> + <DisplayName>Blue3wide skin</DisplayName> + <DefaulChecked>true</DefaulChecked> + <Description>Blue3wide skin files</Description> + <Files> + <Items> + <FileItem InstallType="CopyFile" SystemFile="false" Modified="true"> + <Param1 /> + <UpdateOption>AlwaysOverwrite</UpdateOption> + <LocalFileName>..\Skin\Blue3wide\File Explorer_textpreview.xml</LocalFileName> + <ZipFileName>Installer{CopyFile}\{5112db06-7ae0-4462-bd84-7667667bcbdf}-File Explorer_textpreview.xml</ZipFileName> + <DestinationFilename>%Skin%\Blue3wide\File Explorer_textpreview.xml</DestinationFilename> + </FileItem> + <FileItem InstallType="CopyFile" SystemFile="false" Modified="true"> + <Param1 /> + <UpdateOption>AlwaysOverwrite</UpdateOption> + <LocalFileName>..\Skin\Blue3wide\File Explorer_dialog.xml</LocalFileName> + <ZipFileName>Installer{CopyFile}\{537822ea-1129-491c-86f2-10155e8dc99f}-File Explorer_dialog.xml</ZipFileName> + <DestinationFilename>%Skin%\Blue3wide\File Explorer_dialog.xml</DestinationFilename> + </FileItem> + <FileItem InstallType="CopyFile" SystemFile="false" Modified="true"> + <Param1 /> + <UpdateOption>AlwaysOverwrite</UpdateOption> + <LocalFileName>..\Skin\Blue3wide\File Explorer_main.xml</LocalFileName> + <ZipFileName>Installer{CopyFile}\{993c58e6-a784-41ba-949e-612bb371447b}-File Explorer_main.xml</ZipFileName> + <DestinationFilename>%Skin%\Blue3wide\File Explorer_main.xml</DestinationFilename> + </FileItem> + <FileItem InstallType="CopyFile" SystemFile="false" Modified="true"> + <Param1 /> + <UpdateOption>AlwaysOverwrite</UpdateOption> + <LocalFileName>..\Skin\Blue3wide\File Explorer_modulepreview.xml</LocalFileName> + <ZipFileName>Installer{CopyFile}\{06d04be0-cdb0-4259-83a9-04bf67a9124d}-File Explorer_modulepreview.xml</ZipFileName> + <DestinationFilename>%Skin%\Blue3wide\File Explorer_modulepreview.xml</DestinationFilename> + </FileItem> + <FileItem InstallType="CopyFile" SystemFile="false" Modified="true"> + <Param1 /> + <UpdateOption>AlwaysOverwrite</UpdateOption> + <LocalFileName>..\Skin\Blue3wide\File Explorer_musicpreview.xml</LocalFileName> + <ZipFileName>Installer{CopyFile}\{c5cb594e-2b83-456a-9e43-fc4bcbef2b27}-File Explorer_musicpreview.xml</ZipFileName> + <DestinationFilename>%Skin%\Blue3wide\File Explorer_musicpreview.xml</DestinationFilename> + </FileItem> + </Items> + </Files> + </GroupItem> + <GroupItem Name="Plugin Xface skin files"> + <ParentGroup /> + <DisplayName>Xface skin</DisplayName> + <DefaulChecked>false</DefaulChecked> + <Description>Xface skin files</Description> + <Files> + <Items> + <FileItem InstallType="CopyFile" SystemFile="false" Modified="true"> + <Param1 /> + <UpdateOption>AlwaysOverwrite</UpdateOption> + <LocalFileName>..\Skin\Xface\File Explorer_textpreview.xml</LocalFileName> + <ZipFileName>Installer{CopyFile}\{a6fb338a-59a4-40b7-8716-d8fdc13e78c8}-File Explorer_textpreview.xml</ZipFileName> + <DestinationFilename>%Skin%\Xface\File Explorer_textpreview.xml</DestinationFilename> + </FileItem> + <FileItem InstallType="CopyFile" SystemFile="false" Modified="true"> + <Param1 /> + <UpdateOption>AlwaysOverwrite</UpdateOption> + <LocalFileName>..\Skin\Xface\common.window.file_explorer.xml</LocalFileName> + <ZipFileName>Installer{CopyFile}\{69c93731-4d7c-4b35-9dfe-33d8e45ed1b6}-common.window.file_explorer.xml</ZipFileName> + <DestinationFilename>%Skin%\Xface\common.window.file_explorer.xml</DestinationFilename> + </FileItem> + <FileItem InstallType="CopyFile" SystemFile="false" Modified="true"> + <Param1 /> + <UpdateOption>AlwaysOverwrite</UpdateOption> + <LocalFileName>..\Skin\Xface\File Explorer_dialog.xml</LocalFileName> + <ZipFileName>Installer{CopyFile}\{63269080-7b9c-47d4-b8f2-f80c541a0621}-File Explorer_dialog.xml</ZipFileName> + <DestinationFilename>%Skin%\Xface\File Explorer_dialog.xml</DestinationFilename> + </FileItem> + <FileItem InstallType="CopyFile" SystemFile="false" Modified="true"> + <Param1 /> + <UpdateOption>AlwaysOverwrite</UpdateOption> + <LocalFileName>..\Skin\Xface\File Explorer_main.xml</LocalFileName> + <ZipFileName>Installer{CopyFile}\{638f93d9-0519-41d0-a7fa-81294d990fac}-File Explorer_main.xml</ZipFileName> + <DestinationFilename>%Skin%\Xface\File Explorer_main.xml</DestinationFilename> + </FileItem> + <FileItem InstallType="CopyFile" SystemFile="false" Modified="true"> + <Param1 /> + <UpdateOption>AlwaysOverwrite</UpdateOption> + <LocalFileName>..\Skin\Xface\File Explorer_modulepreview.xml</LocalFileName> + <ZipFileName>Installer{CopyFile}\{90a9bfb0-1961-470e-848e-e51f3d0529f6}-File Explorer_modulepreview.xml</ZipFileName> + <DestinationFilename>%Skin%\Xface\File Explorer_modulepreview.xml</DestinationFilename> + </FileItem> + <FileItem InstallType="CopyFile" SystemFile="false" Modified="true"> + <Param1 /> + <UpdateOption>AlwaysOverwrite</UpdateOption> + <LocalFileName>..\Skin\Xface\File Explorer_musicpreview.xml</LocalFileName> + <ZipFileName>Installer{CopyFile}\{5195f55e-387f-47c6-b182-9e58045c9ced}-File Explorer_musicpreview.xml</ZipFileName> + <DestinationFilename>%Skin%\Xface\File Explorer_musicpreview.xml</DestinationFilename> + </FileItem> + <FileItem InstallType="CopyFile" SystemFile="false" Modified="true"> + <Param1 /> + <UpdateOption>AlwaysOverwrite</UpdateOption> + <LocalFileName>..\Skin\Xface\Media\hover_file explorer.png</LocalFileName> + <ZipFileName>Installer{CopyFile}\{a0583ba8-7b6f-464a-b981-e13640ec7605}-hover_file explorer.png</ZipFileName> + <DestinationFilename>%Skin%\Xface\Media\hover_file explorer.png</DestinationFilename> + </FileItem> + <FileItem InstallType="CopyFile" SystemFile="false" Modified="true"> + <Param1 /> + <UpdateOption>AlwaysOverwrite</UpdateOption> + <LocalFileName>..\Skin\Xface\Media\button_file explorer.png</LocalFileName> + <ZipFileName>Installer{CopyFile}\{75fe40d3-f2d0-40e4-a7c5-40118510fbeb}-button_file explorer.png</ZipFileName> + <DestinationFilename>%Skin%\Xface\Media\button_file explorer.png</DestinationFilename> + </FileItem> + <FileItem InstallType="CopyFile" SystemFile="false" Modified="true"> + <Param1 /> + <UpdateOption>AlwaysOverwrite</UpdateOption> + <LocalFileName>..\Skin\Xface\Media\buttonNF_file explorer.png</LocalFileName> + <ZipFileName>Installer{CopyFile}\{15f70c82-ca7e-494f-8691-191b029c3358}-buttonNF_file explorer.png</ZipFileName> + <DestinationFilename>%Skin%\Xface\Media\buttonNF_file explorer.png</DestinationFilename> + </FileItem> + </Items> + </Files> + </GroupItem> + <GroupItem Name="Plugin language files"> + <ParentGroup /> + <DisplayName>Languages</DisplayName> + <DefaulChecked>true</DefaulChecked> + <Description>Language files</Description> + <Files> + <Items> + <FileItem InstallType="CopyFile" SystemFile="false" Modified="true"> + <Param1 /> + <UpdateOption>AlwaysOverwrite</UpdateOption> + <LocalFileName>..\Language\strings_de.xml</LocalFileName> + <ZipFileName>Installer{CopyFile}\{3a2b77e4-d791-40b8-88e4-96f8d6881110}-strings_de.xml</ZipFileName> + <DestinationFilename>%Language%\File Explorer\strings_de.xml</DestinationFilename> + </FileItem> + <FileItem InstallType="CopyFile" SystemFile="false" Modified="true"> + <Param1 /> + <UpdateOption>AlwaysOverwrite</UpdateOption> + <LocalFileName>..\Language\strings_en.xml</LocalFileName> + <ZipFileName>Installer{CopyFile}\{522c3256-fd94-4012-bf4a-ef37c079b4b6}-strings_en.xml</ZipFileName> + <DestinationFilename>%Language%\File Explorer\strings_en.xml</DestinationFilename> + </FileItem> + <FileItem InstallType="CopyFile" SystemFile="false" Modified="true"> + <Param1 /> + <UpdateOption>AlwaysOverwrite</UpdateOption> + <LocalFileName>..\Language\strings_fr.xml</LocalFileName> + <ZipFileName>Installer{CopyFile}\{6379cb8f-ec7a-47b8-9a1e-08fce3276a77}-strings_fr.xml</ZipFileName> + <DestinationFilename>%Language%\File Explorer\strings_fr.xml</DestinationFilename> + </FileItem> + </Items> + </Files> + </GroupItem> + </Items> + </Groups> + <Sections> + <Items> + <SectionItem Guid="233df8cf-2633-4f6b-9cf9-6c880d71c615" Name="Welcome Screen" ConditionGroup=""> + <Params> + <Items> + <SectionParam Name="Header text"> + <Value>Welcome to the Extension Installer for [Name]</Value> + <ValueType>String</ValueType> + <Description /> + </SectionParam> + <SectionParam Name="Description"> + <Value>This will install [Name] version [Version] on your computer. +It is recommended that you close all other applications before continuing. +Click Next to continue or Cancel to exit Setup.</Value> + <ValueType>String</ValueType> + <Description /> + </SectionParam> + <SectionParam Name="Left part image"> + <Value /> + <ValueType>File</ValueType> + <Description /> + </SectionParam> + <SectionParam Name="Header image"> + <Value /> + <ValueType>File</ValueType> + <Description>Image in upper right part</Description> + </SectionParam> + </Items> + </Params> + <Actions> + <Items /> + </Actions> + <IncludedGroups /> + <PanelName>Welcome Screen</PanelName> + <WizardButtonsEnum>NextCancel</WizardButtonsEnum> + </SectionItem> + <SectionItem Guid="6ad36af8-f301-4759-9581-91a6f769bb2c" Name="Tree View Selector" ConditionGroup=""> + <Params> + <Items> + <SectionParam Name="Header Title"> + <Value /> + <ValueType>String</ValueType> + <Description>Header title</Description> + </SectionParam> + <SectionParam Name="Header description"> + <Value /> + <ValueType>String</ValueType> + <Description>Description of section, shown in under section title</Description> + </SectionParam> + <SectionParam Name="Header image"> + <Value /> + <ValueType>File</ValueType> + <Description>Image in upper right part</Description> + </SectionParam> + <SectionParam Name="Description "> + <Value /> + <ValueType>String</ValueType> + <Description>Description of this operation</Description> + </SectionParam> + </Items> + </Params> + <Actions> + <Items /> + </Actions> + <IncludedGroups> + <string>Plugin DLL</string> + <string>Plugin Blue3 skin files</string> + <string>Plugin Blue3wide skin files</string> + <string>Plugin Xface skin files</string> + <string>Plugin language files</string> + </IncludedGroups> + <PanelName>Tree View Selector</PanelName> + <WizardButtonsEnum>BackNextCancel</WizardButtonsEnum> + </SectionItem> + <SectionItem Guid="f9cf2d4c-5746-4859-95af-77dca4f2fe4f" Name="Install Section" ConditionGroup=""> + <Params> + <Items> + <SectionParam Name="Header Title"> + <Value /> + <ValueType>String</ValueType> + <Description>Header title</Description> + </SectionParam> + <SectionParam Name="Header description"> + <Value /> + <ValueType>String</ValueType> + <Description>Description of section, shown in under section title</Description> + </SectionParam> + <SectionParam Name="Header image"> + <Value /> + <ValueType>File</ValueType> + <Description>Image in upper right part</Description> + </SectionParam> + </Items> + </Params> + <Actions> + <Items> + <ActionItem Name="InstallFiles" ActionType="InstallFiles" ConditionGroup=""> + <Params> + <Items /> + </Params> + <ExecuteLocation>AfterPanelShow</ExecuteLocation> + </ActionItem> + </Items> + </Actions> + <IncludedGroups /> + <PanelName>Install Section</PanelName> + <WizardButtonsEnum>Next</WizardButtonsEnum> + </SectionItem> + <SectionItem Guid="e0c116ca-434a-43c4-a3bb-1cf0db5060a1" Name="Setup Complete" ConditionGroup=""> + <Params> + <Items> + <SectionParam Name="Header text"> + <Value>The Extension Installer Wizard has successfully installed [Name].</Value> + <ValueType>String</ValueType> + <Description /> + </SectionParam> + <SectionParam Name="Left part image"> + <Value /> + <ValueType>File</ValueType> + <Description /> + </SectionParam> + <SectionParam Name="Show radio buttons"> + <Value /> + <ValueType>Bool</ValueType> + <Description>Use radiobutton in place of combobox</Description> + </SectionParam> + <SectionParam Name="Header image"> + <Value /> + <ValueType>File</ValueType> + <Description>Image in upper right part</Description> + </SectionParam> + </Items> + </Params> + <Actions> + <Items /> + </Actions> + <IncludedGroups /> + <PanelName>Setup Complete</PanelName> + <WizardButtonsEnum>Finish</WizardButtonsEnum> + </SectionItem> + </Items> + </Sections> + <Dependencies> + <Items /> + </Dependencies> + <GeneralInfo> + <Name>File Explorer</Name> + <Id>dd3efdfe-ed9e-44be-9550-813d268556fb</Id> + <Author>Andreas Groß, framug, SilentException, -ltb- (gfx)</Author> + <HomePage /> + <ForumPage>http://forum.team-mediaportal.com/mediaportal-plugins-47/file-explorer-72076/</ForumPage> + <UpdateUrl>http://mp-plugins.svn.sourceforge.net/viewvc/mp-plugins/trunk/plugins/File Explorer/MpeRelease/update.xml</UpdateUrl> + <Version> + <Major>1</Major> + <Minor>3</Minor> + <Build>0</Build> + <Revision>0</Revision> + </Version> + <ExtensionDescription>This plugin is able to perform the following actions: + +- Copy +- Move +- Delete +- Rename +- Encrypt/Decrypt +- Compress/Uncompress (files only) +- Hide/Unhide +- Set/Remove Readonly flag +files and directories + +- Creates directories + +- Creates audio and video playlists from directories +- Adds files and directories to audio and video playlists +- Plays audio/video files when selected +- Shows pictures when selected +- Previews textfiles +</ExtensionDescription> + <VersionDescription>Initial Mpe release! +Fixes & improvements. +Some skin changes are needed: label controls 2,3,4 in File Explorer_dialog.xml have to be fadelabel controls. +</VersionDescription> + <DevelopmentStatus>Rc</DevelopmentStatus> + <OnlineLocation>http://mp-plugins.svn.sourceforge.net/viewvc/mp-plugins/trunk/plugins/File Explorer/MpeRelease/File Explorer 1.3.0.0.mpe1</OnlineLocation> + <ReleaseDate>2010-05-04T19:18:08.4089895+02:00</ReleaseDate> + <Tags>file, explorer</Tags> + <Location>d:\developing\#maintained\File Explorer\MpeRelease\File Explorer 1.3.0.0.mpe1</Location> + <Params> + <Items> + <SectionParam Name="Icon"> + <Value /> + <ValueType>File</ValueType> + <Description>The icon file of the package (jpg,png,bmp)</Description> + </SectionParam> + <SectionParam Name="Online Icon"> + <Value /> + <ValueType>String</ValueType> + <Description>The icon file of the package stored online (jpg,png,bmp)</Description> + </SectionParam> + <SectionParam Name="Configuration file"> + <Value /> + <ValueType>Template</ValueType> + <Description>The file used to configure the extension. + If have .exe extension the will be executed + If have .dll extension used like MP plugin configuration</Description> + </SectionParam> + <SectionParam Name="Online Screenshots"> + <Value /> + <ValueType>String</ValueType> + <Description>Online stored screenshot urls separated by ; </Description> + </SectionParam> + <SectionParam Name="Force to uninstall on update"> + <Value>yes</Value> + <ValueType>Bool</ValueType> + <Description>Show dialog and force to uninstall previous version when updating an extension. Should only be disabled if you are using an NSIS/MSI installer.</Description> + </SectionParam> + </Items> + </Params> + </GeneralInfo> + <UniqueFileList> + <Items> + <FileItem InstallType="CopyFile" SystemFile="false" Modified="true"> + <Param1 /> + <UpdateOption>AlwaysOverwrite</UpdateOption> + <LocalFileName>..\Compression\Release\Compression.dll</LocalFileName> + <ZipFileName>Installer{CopyFile}\{6ad4479e-a4ef-424d-bb10-5dfc366bdf97}-Compression.dll</ZipFileName> + <DestinationFilename>%Plugins%\Windows\Compression\Compression.dll</DestinationFilename> + </FileItem> + <FileItem InstallType="CopyFile" SystemFile="false" Modified="true"> + <Param1 /> + <UpdateOption>AlwaysOverwrite</UpdateOption> + <LocalFileName>..\bin\Release\File Explorer.dll</LocalFileName> + <ZipFileName>Installer{CopyFile}\{9fcc58ba-53f3-45f1-987f-30aa5a37394a}-File Explorer.dll</ZipFileName> + <DestinationFilename>%Plugins%\Windows\File Explorer.dll</DestinationFilename> + </FileItem> + <FileItem InstallType="CopyFile" SystemFile="false" Modified="true"> + <Param1 /> + <UpdateOption>AlwaysOverwrite</UpdateOption> + <LocalFileName>..\Skin\Blue3\File Explorer_textpreview.xml</LocalFileName> + <ZipFileName>Installer{CopyFile}\{88931239-1808-4805-ba5f-4c64fc6e10ab}-File Explorer_textpreview.xml</ZipFileName> + <DestinationFilename>%Skin%\Blue3\File Explorer_textpreview.xml</DestinationFilename> + </FileItem> + <FileItem InstallType="CopyFile" SystemFile="false" Modified="true"> + <Param1 /> + <UpdateOption>AlwaysOverwrite</UpdateOption> + <LocalFileName>..\Skin\Blue3\File Explorer_dialog.xml</LocalFileName> + <ZipFileName>Installer{CopyFile}\{55884b5d-2ef9-47ab-858f-8dfcbf4e11cf}-File Explorer_dialog.xml</ZipFileName> + <DestinationFilename>%Skin%\Blue3\File Explorer_dialog.xml</DestinationFilename> + </FileItem> + <FileItem InstallType="CopyFile" SystemFile="false" Modified="true"> + <Param1 /> + <UpdateOption>AlwaysOverwrite</UpdateOption> + <LocalFileName>..\Skin\Blue3\File Explorer_main.xml</LocalFileName> + <ZipFileName>Installer{CopyFile}\{d8f279b1-156f-42ea-9521-df306497502d}-File Explorer_main.xml</ZipFileName> + <DestinationFilename>%Skin%\Blue3\File Explorer_main.xml</DestinationFilename> + </FileItem> + <FileItem InstallType="CopyFile" SystemFile="false" Modified="true"> + <Param1 /> + <UpdateOption>AlwaysOverwrite</UpdateOption> + <LocalFileName>..\Skin\Blue3\File Explorer_modulepreview.xml</LocalFileName> + <ZipFileName>Installer{CopyFile}\{e6dff945-da79-410d-a427-1bfabfac62bb}-File Explorer_modulepreview.xml</ZipFileName> + <DestinationFilename>%Skin%\Blue3\File Explorer_modulepreview.xml</DestinationFilename> + </FileItem> + <FileItem InstallType="CopyFile" SystemFile="false" Modified="true"> + <Param1 /> + <UpdateOption>AlwaysOverwrite</UpdateOption> + <LocalFileName>..\Skin\Blue3\File Explorer_musicpreview.xml</LocalFileName> + <ZipFileName>Installer{CopyFile}\{0b5e1eb7-ab42-4f27-8a35-140dcdf19542}-File Explorer_musicpreview.xml</ZipFileName> + <DestinationFilename>%Skin%\Blue3\File Explorer_musicpreview.xml</DestinationFilename> + </FileItem> + <FileItem InstallType="CopyFile" SystemFile="false" Modified="true"> + <Param1 /> + <UpdateOption>AlwaysOverwrite</UpdateOption> + <LocalFileName>..\Skin\Blue3wide\File Explorer_textpreview.xml</LocalFileName> + <ZipFileName>Installer{CopyFile}\{5112db06-7ae0-4462-bd84-7667667bcbdf}-File Explorer_textpreview.xml</ZipFileName> + <DestinationFilename>%Skin%\Blue3wide\File Explorer_textpreview.xml</DestinationFilename> + </FileItem> + <FileItem InstallType="CopyFile" SystemFile="false" Modified="true"> + <Param1 /> + <UpdateOption>AlwaysOverwrite</UpdateOption> + <LocalFileName>..\Skin\Blue3wide\File Explorer_dialog.xml</LocalFileName> + <ZipFileName>Installer{CopyFile}\{537822ea-1129-491c-86f2-10155e8dc99f}-File Explorer_dialog.xml</ZipFileName> + <DestinationFilename>%Skin%\Blue3wide\File Explorer_dialog.xml</DestinationFilename> + </FileItem> + <FileItem InstallType="CopyFile" SystemFile="false" Modified="true"> + <Param1 /> + <UpdateOption>AlwaysOverwrite</UpdateOption> + <LocalFileName>..\Skin\Blue3wide\File Explorer_main.xml</LocalFileName> + <ZipFileName>Installer{CopyFile}\{993c58e6-a784-41ba-949e-612bb371447b}-File Explorer_main.xml</ZipFileName> + <DestinationFilename>%Skin%\Blue3wide\File Explorer_main.xml</DestinationFilename> + </FileItem> + <FileItem InstallType="CopyFile" SystemFile="false" Modified="true"> + <Param1 /> + <UpdateOption>AlwaysOverwrite</UpdateOption> + <LocalFileName>..\Skin\Blue3wide\File Explorer_modulepreview.xml</LocalFileName> + <ZipFileName>Installer{CopyFile}\{06d04be0-cdb0-4259-83a9-04bf67a9124d}-File Explorer_modulepreview.xml</ZipFileName> + <DestinationFilename>%Skin%\Blue3wide\File Explorer_modulepreview.xml</DestinationFilename> + </FileItem> + <FileItem InstallType="CopyFile" SystemFile="false" Modified="true"> + <Param1 /> + <UpdateOption>AlwaysOverwrite</UpdateOption> + <LocalFileName>..\Skin\Blue3wide\File Explorer_musicpreview.xml</LocalFileName> + <ZipFileName>Installer{CopyFile}\{c5cb594e-2b83-456a-9e43-fc4bcbef2b27}-File Explorer_musicpreview.xml</ZipFileName> + <DestinationFilename>%Skin%\Blue3wide\File Explorer_musicpreview.xml</DestinationFilename> + </FileItem> + <FileItem InstallType="CopyFile" SystemFile="false" Modified="true"> + <Param1 /> + <UpdateOption>AlwaysOverwrite</UpdateOption> + <LocalFileName>..\Skin\Xface\File Explorer_textpreview.xml</LocalFileName> + <ZipFileName>Installer{CopyFile}\{a6fb338a-59a4-40b7-8716-d8fdc13e78c8}-File Explorer_textpreview.xml</ZipFileName> + <DestinationFilename>%Skin%\Xface\File Explorer_textpreview.xml</DestinationFilename> + </FileItem> + <FileItem InstallType="CopyFile" SystemFile="false" Modified="true"> + <Param1 /> + <UpdateOption>AlwaysOverwrite</UpdateOption> + <LocalFileName>..\Skin\Xface\common.window.file_explorer.xml</LocalFileName> + <ZipFileName>Installer{CopyFile}\{69c93731-4d7c-4b35-9dfe-33d8e45ed1b6}-common.window.file_explorer.xml</ZipFileName> + <DestinationFilename>%Skin%\Xface\common.window.file_explorer.xml</DestinationFilename> + </FileItem> + <FileItem InstallType="CopyFile" SystemFile="false" Modified="true"> + <Param1 /> + <UpdateOption>AlwaysOverwrite</UpdateOption> + <LocalFileName>..\Skin\Xface\File Explorer_dialog.xml</LocalFileName> + <ZipFileName>Installer{CopyFile}\{63269080-7b9c-47d4-b8f2-f80c541a0621}-File Explorer_dialog.xml</ZipFileName> + <DestinationFilename>%Skin%\Xface\File Explorer_dialog.xml</DestinationFilename> + </FileItem> + <FileItem InstallType="CopyFile" SystemFile="false" Modified="true"> + <Param1 /> + <UpdateOption>AlwaysOverwrite</UpdateOption> + <LocalFileName>..\Skin\Xface\File Explorer_main.xml</LocalFileName> + <ZipFileName>Installer{CopyFile}\{638f93d9-0519-41d0-a7fa-81294d990fac}-File Explorer_main.xml</ZipFileName> + <DestinationFilename>%Skin%\Xface\File Explorer_main.xml</DestinationFilename> + </FileItem> + <FileItem InstallType="CopyFile" SystemFile="false" Modified="true"> + <Param1 /> + <UpdateOption>AlwaysOverwrite</UpdateOption> + <LocalFileName>..\Skin\Xface\File Explorer_modulepreview.xml</LocalFileName> + <ZipFileName>Installer{CopyFile}\{90a9bfb0-1961-470e-848e-e51f3d0529f6}-File Explorer_modulepreview.xml</ZipFileName> + <DestinationFilename>%Skin%\Xface\File Explorer_modulepreview.xml</DestinationFilename> + </FileItem> + <FileItem InstallType="CopyFile" SystemFile="false" Modified="true"> + <Param1 /> + <UpdateOption>AlwaysOverwrite</UpdateOption> + <LocalFileName>..\Skin\Xface\File Explorer_musicpreview.xml</LocalFileName> + <ZipFileName>Installer{CopyFile}\{5195f55e-387f-47c6-b182-9e58045c9ced}-File Explorer_musicpreview.xml</ZipFileName> + <DestinationFilename>%Skin%\Xface\File Explorer_musicpreview.xml</DestinationFilename> + </FileItem> + <FileItem InstallType="CopyFile" SystemFile="false" Modified="true"> + <Param1 /> + <UpdateOption>AlwaysOverwrite</UpdateOption> + <LocalFileName>..\Skin\Xface\Media\hover_file explorer.png</LocalFileName> + <ZipFileName>Installer{CopyFile}\{a0583ba8-7b6f-464a-b981-e13640ec7605}-hover_file explorer.png</ZipFileName> + <DestinationFilename>%Skin%\Xface\Media\hover_file explorer.png</DestinationFilename> + </FileItem> + <FileItem InstallType="CopyFile" SystemFile="false" Modified="true"> + <Param1 /> + <UpdateOption>AlwaysOverwrite</UpdateOption> + <LocalFileName>..\Skin\Xface\Media\button_file explorer.png</LocalFileName> + <ZipFileName>Installer{CopyFile}\{75fe40d3-f2d0-40e4-a7c5-40118510fbeb}-button_file explorer.png</ZipFileName> + <DestinationFilename>%Skin%\Xface\Media\button_file explorer.png</DestinationFilename> + </FileItem> + <FileItem InstallType="CopyFile" SystemFile="false" Modified="true"> + <Param1 /> + <UpdateOption>AlwaysOverwrite</UpdateOption> + <LocalFileName>..\Skin\Xface\Media\buttonNF_file explorer.png</LocalFileName> + <ZipFileName>Installer{CopyFile}\{15f70c82-ca7e-494f-8691-191b029c3358}-buttonNF_file explorer.png</ZipFileName> + <DestinationFilename>%Skin%\Xface\Media\buttonNF_file explorer.png</DestinationFilename> + </FileItem> + <FileItem InstallType="CopyFile" SystemFile="false" Modified="true"> + <Param1 /> + <UpdateOption>AlwaysOverwrite</UpdateOption> + <LocalFileName>..\Language\strings_de.xml</LocalFileName> + <ZipFileName>Installer{CopyFile}\{3a2b77e4-d791-40b8-88e4-96f8d6881110}-strings_de.xml</ZipFileName> + <DestinationFilename>%Language%\File Explorer\strings_de.xml</DestinationFilename> + </FileItem> + <FileItem InstallType="CopyFile" SystemFile="false" Modified="true"> + <Param1 /> + <UpdateOption>AlwaysOverwrite</UpdateOption> + <LocalFileName>..\Language\strings_en.xml</LocalFileName> + <ZipFileName>Installer{CopyFile}\{522c3256-fd94-4012-bf4a-ef37c079b4b6}-strings_en.xml</ZipFileName> + <DestinationFilename>%Language%\File Explorer\strings_en.xml</DestinationFilename> + </FileItem> + <FileItem InstallType="CopyFile" SystemFile="false" Modified="true"> + <Param1 /> + <UpdateOption>AlwaysOverwrite</UpdateOption> + <LocalFileName>..\Language\strings_fr.xml</LocalFileName> + <ZipFileName>Installer{CopyFile}\{6379cb8f-ec7a-47b8-9a1e-08fce3276a77}-strings_fr.xml</ZipFileName> + <DestinationFilename>%Language%\File Explorer\strings_fr.xml</DestinationFilename> + </FileItem> + </Items> + </UniqueFileList> + <ProjectSettings> + <FolderGroups /> + <ProjectFilename>D:\developing\#maintained\File Explorer\MpeRelease\File Explorer 1.3.0.0.xmp2</ProjectFilename> + <UpdatePath1>d:\developing\#maintained\File Explorer\MpeRelease\update.xml</UpdatePath1> + <UpdatePath2 /> + <UpdatePath3 /> + </ProjectSettings> +</PackageClass> \ No newline at end of file Added: trunk/plugins/File Explorer/MpeRelease/update.xml =================================================================== --- trunk/plugins/File Explorer/MpeRelease/update.xml (rev 0) +++ trunk/plugins/File Explorer/MpeRelease/update.xml 2010-05-04 17:53:05 UTC (rev 3576) @@ -0,0 +1,138 @@ +<?xml version="1.0" encoding="utf-8"?> +<ExtensionCollection xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> + <Items> + <PackageClass> + <Version>2.0</Version> + <Groups> + <Items> + <GroupItem Name="Plugin DLL"> + <DisplayName>Plugin DLL</DisplayName> + <DefaulChecked>true</DefaulChecked> + <Description>Plugin DLL</Description> + <Files> + <Items /> + </Files> + </GroupItem> + <GroupItem Name="Plugin Blue3 skin files"> + <DisplayName>Plugin Blue3 skin files</DisplayName> + <DefaulChecked>true</DefaulChecked> + <Description>Plugin Blue3 skin files</Description> + <Files> + <Items /> + </Files> + </GroupItem> + <GroupItem Name="Plugin Blue3wide skin files"> + <DisplayName>Plugin Blue3wide skin files</DisplayName> + <DefaulChecked>true</DefaulChecked> + <Description>Plugin Blue3wide skin files</Description> + <Files> + <Items /> + </Files> + </GroupItem> + <GroupItem Name="Plugin Xface skin files"> + <DisplayName>Plugin Xface skin files</DisplayName> + <DefaulChecked>false</DefaulChecked> + <Description>Plugin Xface skin files</Description> + <Files> + <Items /> + </Files> + </GroupItem> + <GroupItem Name="Plugin language files"> + <DisplayName>Plugin language files</DisplayName> + <DefaulChecked>true</DefaulChecked> + <Description>Plugin language files</Description> + <Files> + <Items /> + </Files> + </GroupItem> + </Items> + </Groups> + <Sections> + <Items /> + </Sections> + <Dependencies> + <Items /> + </Dependencies> + <GeneralInfo> + <Name>File Explorer</Name> + <Id>dd3efdfe-ed9e-44be-9550-813d268556fb</Id> + <Author>Andreas Groß, framug, SilentException, -ltb- (gfx)</Author> + <HomePage /> + <ForumPage>http://forum.team-mediaportal.com/mediaportal-plugins-47/file-explorer-72076/</ForumPage> + <UpdateUrl>http://mp-plugins.svn.sourceforge.net/viewvc/mp-plugins/trunk/plugins/File Explorer/MpeRelease/update.xml</UpdateUrl> + <Version> + <Major>1</Major> + <Minor>3</Minor> + <Build>0</Build> + <Revision>0</Revision> + </Version> + <ExtensionDescription>This plugin is able to perform the following actions: + +- Copy +- Move +- Delete +- Rename +- Encrypt/Decrypt +- Compress/Uncompress (files only) +- Hide/Unhide +- Set/Remove Readonly flag +files and directories + +- Creates directories + +- Creates audio and video playlists from directories +- Adds files and directories to audio and video playlists +- Plays audio/video files when selected +- Shows pictures when selected +- Previews textfiles +</ExtensionDescription> + <VersionDescription>Initial Mpe release! +Fixes & improvements. +Some skin changes are needed: label controls 2,3,4 in File Explorer_dialog.xml have to be fadelabel controls. +</VersionDescription> + <DevelopmentStatus>Rc</DevelopmentStatus> + <OnlineLocation>http://mp-plugins.svn.sourceforge.net/viewvc/mp-plugins/trunk/plugins/File Explorer/MpeRelease/File Explorer 1.3.0.0.mpe1</OnlineLocation> + <ReleaseDate>2010-05-04T19:18:08.4089895+02:00</ReleaseDate> + <Tags>file, explorer</Tags> + <Location>d:\developing\#maintained\File Explorer\MpeRelease\File Explorer 1.3.0.0.mpe1</Location> + <Params> + <Items> + <SectionParam Name="Icon"> + <Value /> + <ValueType>File</ValueType> + <Description>The icon file of the package (jpg,png,bmp)</Description> + </SectionParam> + <SectionParam Name="Online Icon"> + <Value /> + <ValueType>String</ValueType> + <Description>The icon file of the package stored online (jpg,png,bmp)</Description> + </SectionParam> + <SectionParam Name="Configuration file"> + <Value /> + <ValueType>Template</ValueType> + <Description>The file used to configure the extension. + If have .exe extension the will be executed + If have .dll extension used like MP plugin configuration</Description> + </SectionParam> + <SectionParam Name="Online Screenshots"> + <Value /> + <ValueType>String</ValueType> + <Description>Online stored screenshot urls separated by ; </Description> + </SectionParam> + <SectionParam Name="Force to uninstall on update"> + <Value>yes</Value> + <ValueType>Bool</ValueType> + <Description>Show dialog and force to uninstall previous version when updating an extension. Should only be disabled if you are using an NSIS/MSI installer.</Description> + </SectionParam> + </Items> + </Params> + </GeneralInfo> + <UniqueFileList> + <Items /> + </UniqueFileList> + <ProjectSettings> + <FolderGroups /> + </ProjectSettings> + </PackageClass> + </Items> +</ExtensionCollection> \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <fr...@us...> - 2010-05-26 16:03:35
|
Revision: 3608 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=3608&view=rev Author: framug Date: 2010-05-26 16:03:28 +0000 (Wed, 26 May 2010) Log Message: ----------- MultiShortcut version 2.4 : - Danish language integration. - ID 1 become ID 11. - Config Form changed. Modified Paths: -------------- trunk/plugins/File Explorer/File Explorer.cs trunk/plugins/File Explorer/File Explorer.csproj trunk/plugins/File Explorer/MpeRelease/update.xml trunk/plugins/File Explorer/Properties/AssemblyInfo.cs trunk/plugins/File Explorer/Setup.Designer.cs trunk/plugins/File Explorer/Skin/Blue3/File Explorer_main.xml trunk/plugins/File Explorer/Skin/Blue3wide/File Explorer_main.xml trunk/plugins/File Explorer/Skin/Xface/File Explorer_main.xml Added Paths: ----------- trunk/plugins/File Explorer/MpeRelease/File Explorer 1.4.0.0.mpe1 trunk/plugins/File Explorer/MpeRelease/File Explorer 1.4.0.0.xmp2 Modified: trunk/plugins/File Explorer/File Explorer.cs =================================================================== --- trunk/plugins/File Explorer/File Explorer.cs 2010-05-26 11:29:51 UTC (rev 3607) +++ trunk/plugins/File Explorer/File Explorer.cs 2010-05-26 16:03:28 UTC (rev 3608) @@ -42,7 +42,7 @@ #endregion #region skin vars - [SkinControlAttribute(1)] + [SkinControlAttribute(11)] protected GUIButtonControl btnMenuLeft = null; [SkinControlAttribute(2)] protected GUIButtonControl btnMenuRight = null; Modified: trunk/plugins/File Explorer/File Explorer.csproj =================================================================== --- trunk/plugins/File Explorer/File Explorer.csproj 2010-05-26 11:29:51 UTC (rev 3607) +++ trunk/plugins/File Explorer/File Explorer.csproj 2010-05-26 16:03:28 UTC (rev 3608) @@ -89,6 +89,7 @@ <ItemGroup> <EmbeddedResource Include="file_explorer.png" /> <EmbeddedResource Include="file_explorerDisabled.png" /> + <Content Include="Language\strings_da.xml" /> <Content Include="Language\strings_de.xml" /> <Content Include="Language\strings_en.xml" /> <Content Include="Language\strings_fr.xml" /> Added: trunk/plugins/File Explorer/MpeRelease/File Explorer 1.4.0.0.mpe1 =================================================================== (Binary files differ) Property changes on: trunk/plugins/File Explorer/MpeRelease/File Explorer 1.4.0.0.mpe1 ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: trunk/plugins/File Explorer/MpeRelease/File Explorer 1.4.0.0.xmp2 =================================================================== --- trunk/plugins/File Explorer/MpeRelease/File Explorer 1.4.0.0.xmp2 (rev 0) +++ trunk/plugins/File Explorer/MpeRelease/File Explorer 1.4.0.0.xmp2 2010-05-26 16:03:28 UTC (rev 3608) @@ -0,0 +1,644 @@ +<?xml version="1.0" encoding="utf-8"?> +<PackageClass xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> + <Version>2.0</Version> + <Groups> + <Items> + <GroupItem Name="Plugin DLL"> + <ParentGroup /> + <DisplayName>Plugin</DisplayName> + <DefaulChecked>true</DefaulChecked> + <Description>Plugin files</Description> + <Files> + <Items> + <FileItem InstallType="CopyFile" SystemFile="false" Modified="true"> + <Param1 /> + <UpdateOption>AlwaysOverwrite</UpdateOption> + <LocalFileName>..\Compression\Release\Compression.dll</LocalFileName> + <ZipFileName>Installer{CopyFile}\{6ad4479e-a4ef-424d-bb10-5dfc366bdf97}-Compression.dll</ZipFileName> + <DestinationFilename>%Plugins%\Windows\Compression\Compression.dll</DestinationFilename> + </FileItem> + <FileItem InstallType="CopyFile" SystemFile="false" Modified="true"> + <Param1 /> + <UpdateOption>AlwaysOverwrite</UpdateOption> + <LocalFileName>..\bin\Release\File Explorer.dll</LocalFileName> + <ZipFileName>Installer{CopyFile}\{9fcc58ba-53f3-45f1-987f-30aa5a37394a}-File Explorer.dll</ZipFileName> + <DestinationFilename>%Plugins%\Windows\File Explorer.dll</DestinationFilename> + </FileItem> + </Items> + </Files> + </GroupItem> + <GroupItem Name="Plugin Blue3 skin files"> + <ParentGroup /> + <DisplayName>Blue3 skin</DisplayName> + <DefaulChecked>true</DefaulChecked> + <Description>Blue3 skin files</Description> + <Files> + <Items> + <FileItem InstallType="CopyFile" SystemFile="false" Modified="true"> + <Param1 /> + <UpdateOption>AlwaysOverwrite</UpdateOption> + <LocalFileName>..\Skin\Blue3\File Explorer_textpreview.xml</LocalFileName> + <ZipFileName>Installer{CopyFile}\{88931239-1808-4805-ba5f-4c64fc6e10ab}-File Explorer_textpreview.xml</ZipFileName> + <DestinationFilename>%Skin%\Blue3\File Explorer_textpreview.xml</DestinationFilename> + </FileItem> + <FileItem InstallType="CopyFile" SystemFile="false" Modified="true"> + <Param1 /> + <UpdateOption>AlwaysOverwrite</UpdateOption> + <LocalFileName>..\Skin\Blue3\File Explorer_dialog.xml</LocalFileName> + <ZipFileName>Installer{CopyFile}\{55884b5d-2ef9-47ab-858f-8dfcbf4e11cf}-File Explorer_dialog.xml</ZipFileName> + <DestinationFilename>%Skin%\Blue3\File Explorer_dialog.xml</DestinationFilename> + </FileItem> + <FileItem InstallType="CopyFile" SystemFile="false" Modified="true"> + <Param1 /> + <UpdateOption>AlwaysOverwrite</UpdateOption> + <LocalFileName>..\Skin\Blue3\File Explorer_main.xml</LocalFileName> + <ZipFileName>Installer{CopyFile}\{d8f279b1-156f-42ea-9521-df306497502d}-File Explorer_main.xml</ZipFileName> + <DestinationFilename>%Skin%\Blue3\File Explorer_main.xml</DestinationFilename> + </FileItem> + <FileItem InstallType="CopyFile" SystemFile="false" Modified="true"> + <Param1 /> + <UpdateOption>AlwaysOverwrite</UpdateOption> + <LocalFileName>..\Skin\Blue3\File Explorer_modulepreview.xml</LocalFileName> + <ZipFileName>Installer{CopyFile}\{e6dff945-da79-410d-a427-1bfabfac62bb}-File Explorer_modulepreview.xml</ZipFileName> + <DestinationFilename>%Skin%\Blue3\File Explorer_modulepreview.xml</DestinationFilename> + </FileItem> + <FileItem InstallType="CopyFile" SystemFile="false" Modified="true"> + <Param1 /> + <UpdateOption>AlwaysOverwrite</UpdateOption> + <LocalFileName>..\Skin\Blue3\File Explorer_musicpreview.xml</LocalFileName> + <ZipFileName>Installer{CopyFile}\{0b5e1eb7-ab42-4f27-8a35-140dcdf19542}-File Explorer_musicpreview.xml</ZipFileName> + <DestinationFilename>%Skin%\Blue3\File Explorer_musicpreview.xml</DestinationFilename> + </FileItem> + </Items> + </Files> + </GroupItem> + <GroupItem Name="Plugin Blue3wide skin files"> + <ParentGroup /> + <DisplayName>Blue3wide skin</DisplayName> + <DefaulChecked>true</DefaulChecked> + <Description>Blue3wide skin files</Description> + <Files> + <Items> + <FileItem InstallType="CopyFile" SystemFile="false" Modified="true"> + <Param1 /> + <UpdateOption>AlwaysOverwrite</UpdateOption> + <LocalFileName>..\Skin\Blue3wide\File Explorer_textpreview.xml</LocalFileName> + <ZipFileName>Installer{CopyFile}\{5112db06-7ae0-4462-bd84-7667667bcbdf}-File Explorer_textpreview.xml</ZipFileName> + <DestinationFilename>%Skin%\Blue3wide\File Explorer_textpreview.xml</DestinationFilename> + </FileItem> + <FileItem InstallType="CopyFile" SystemFile="false" Modified="true"> + <Param1 /> + <UpdateOption>AlwaysOverwrite</UpdateOption> + <LocalFileName>..\Skin\Blue3wide\File Explorer_dialog.xml</LocalFileName> + <ZipFileName>Installer{CopyFile}\{537822ea-1129-491c-86f2-10155e8dc99f}-File Explorer_dialog.xml</ZipFileName> + <DestinationFilename>%Skin%\Blue3wide\File Explorer_dialog.xml</DestinationFilename> + </FileItem> + <FileItem InstallType="CopyFile" SystemFile="false" Modified="true"> + <Param1 /> + <UpdateOption>AlwaysOverwrite</UpdateOption> + <LocalFileName>..\Skin\Blue3wide\File Explorer_main.xml</LocalFileName> + <ZipFileName>Installer{CopyFile}\{993c58e6-a784-41ba-949e-612bb371447b}-File Explorer_main.xml</ZipFileName> + <DestinationFilename>%Skin%\Blue3wide\File Explorer_main.xml</DestinationFilename> + </FileItem> + <FileItem InstallType="CopyFile" SystemFile="false" Modified="true"> + <Param1 /> + <UpdateOption>AlwaysOverwrite</UpdateOption> + <LocalFileName>..\Skin\Blue3wide\File Explorer_modulepreview.xml</LocalFileName> + <ZipFileName>Installer{CopyFile}\{06d04be0-cdb0-4259-83a9-04bf67a9124d}-File Explorer_modulepreview.xml</ZipFileName> + <DestinationFilename>%Skin%\Blue3wide\File Explorer_modulepreview.xml</DestinationFilename> + </FileItem> + <FileItem InstallType="CopyFile" SystemFile="false" Modified="true"> + <Param1 /> + <UpdateOption>AlwaysOverwrite</UpdateOption> + <LocalFileName>..\Skin\Blue3wide\File Explorer_musicpreview.xml</LocalFileName> + <ZipFileName>Installer{CopyFile}\{c5cb594e-2b83-456a-9e43-fc4bcbef2b27}-File Explorer_musicpreview.xml</ZipFileName> + <DestinationFilename>%Skin%\Blue3wide\File Explorer_musicpreview.xml</DestinationFilename> + </FileItem> + </Items> + </Files> + </GroupItem> + <GroupItem Name="Plugin Xface skin files"> + <ParentGroup /> + <DisplayName>Xface skin</DisplayName> + <DefaulChecked>false</DefaulChecked> + <Description>Xface skin files</Description> + <Files> + <Items> + <FileItem InstallType="CopyFile" SystemFile="false" Modified="true"> + <Param1 /> + <UpdateOption>AlwaysOverwrite</UpdateOption> + <LocalFileName>..\Skin\Xface\File Explorer_textpreview.xml</LocalFileName> + <ZipFileName>Installer{CopyFile}\{a6fb338a-59a4-40b7-8716-d8fdc13e78c8}-File Explorer_textpreview.xml</ZipFileName> + <DestinationFilename>%Skin%\Xface\File Explorer_textpreview.xml</DestinationFilename> + </FileItem> + <FileItem InstallType="CopyFile" SystemFile="false" Modified="true"> + <Param1 /> + <UpdateOption>AlwaysOverwrite</UpdateOption> + <LocalFileName>..\Skin\Xface\common.window.file_explorer.xml</LocalFileName> + <ZipFileName>Installer{CopyFile}\{69c93731-4d7c-4b35-9dfe-33d8e45ed1b6}-common.window.file_explorer.xml</ZipFileName> + <DestinationFilename>%Skin%\Xface\common.window.file_explorer.xml</DestinationFilename> + </FileItem> + <FileItem InstallType="CopyFile" SystemFile="false" Modified="true"> + <Param1 /> + <UpdateOption>AlwaysOverwrite</UpdateOption> + <LocalFileName>..\Skin\Xface\File Explorer_dialog.xml</LocalFileName> + <ZipFileName>Installer{CopyFile}\{63269080-7b9c-47d4-b8f2-f80c541a0621}-File Explorer_dialog.xml</ZipFileName> + <DestinationFilename>%Skin%\Xface\File Explorer_dialog.xml</DestinationFilename> + </FileItem> + <FileItem InstallType="CopyFile" SystemFile="false" Modified="true"> + <Param1 /> + <UpdateOption>AlwaysOverwrite</UpdateOption> + <LocalFileName>..\Skin\Xface\File Explorer_main.xml</LocalFileName> + <ZipFileName>Installer{CopyFile}\{638f93d9-0519-41d0-a7fa-81294d990fac}-File Explorer_main.xml</ZipFileName> + <DestinationFilename>%Skin%\Xface\File Explorer_main.xml</DestinationFilename> + </FileItem> + <FileItem InstallType="CopyFile" SystemFile="false" Modified="true"> + <Param1 /> + <UpdateOption>AlwaysOverwrite</UpdateOption> + <LocalFileName>..\Skin\Xface\File Explorer_modulepreview.xml</LocalFileName> + <ZipFileName>Installer{CopyFile}\{90a9bfb0-1961-470e-848e-e51f3d0529f6}-File Explorer_modulepreview.xml</ZipFileName> + <DestinationFilename>%Skin%\Xface\File Explorer_modulepreview.xml</DestinationFilename> + </FileItem> + <FileItem InstallType="CopyFile" SystemFile="false" Modified="true"> + <Param1 /> + <UpdateOption>AlwaysOverwrite</UpdateOption> + <LocalFileName>..\Skin\Xface\File Explorer_musicpreview.xml</LocalFileName> + <ZipFileName>Installer{CopyFile}\{5195f55e-387f-47c6-b182-9e58045c9ced}-File Explorer_musicpreview.xml</ZipFileName> + <DestinationFilename>%Skin%\Xface\File Explorer_musicpreview.xml</DestinationFilename> + </FileItem> + <FileItem InstallType="CopyFile" SystemFile="false" Modified="true"> + <Param1 /> + <UpdateOption>AlwaysOverwrite</UpdateOption> + <LocalFileName>..\Skin\Xface\Media\hover_file explorer.png</LocalFileName> + <ZipFileName>Installer{CopyFile}\{a0583ba8-7b6f-464a-b981-e13640ec7605}-hover_file explorer.png</ZipFileName> + <DestinationFilename>%Skin%\Xface\Media\hover_file explorer.png</DestinationFilename> + </FileItem> + <FileItem InstallType="CopyFile" SystemFile="false" Modified="true"> + <Param1 /> + <UpdateOption>AlwaysOverwrite</UpdateOption> + <LocalFileName>..\Skin\Xface\Media\button_file explorer.png</LocalFileName> + <ZipFileName>Installer{CopyFile}\{75fe40d3-f2d0-40e4-a7c5-40118510fbeb}-button_file explorer.png</ZipFileName> + <DestinationFilename>%Skin%\Xface\Media\button_file explorer.png</DestinationFilename> + </FileItem> + <FileItem InstallType="CopyFile" SystemFile="false" Modified="true"> + <Param1 /> + <UpdateOption>AlwaysOverwrite</UpdateOption> + <LocalFileName>..\Skin\Xface\Media\buttonNF_file explorer.png</LocalFileName> + <ZipFileName>Installer{CopyFile}\{15f70c82-ca7e-494f-8691-191b029c3358}-buttonNF_file explorer.png</ZipFileName> + <DestinationFilename>%Skin%\Xface\Media\buttonNF_file explorer.png</DestinationFilename> + </FileItem> + </Items> + </Files> + </GroupItem> + <GroupItem Name="Plugin language files"> + <ParentGroup /> + <DisplayName>Languages</DisplayName> + <DefaulChecked>true</DefaulChecked> + <Description>Language files</Description> + <Files> + <Items> + <FileItem InstallType="CopyFile" SystemFile="false" Modified="true"> + <Param1 /> + <UpdateOption>AlwaysOverwrite</UpdateOption> + <LocalFileName>..\Language\strings_de.xml</LocalFileName> + <ZipFileName>Installer{CopyFile}\{3a2b77e4-d791-40b8-88e4-96f8d6881110}-strings_de.xml</ZipFileName> + <DestinationFilename>%Language%\File Explorer\strings_de.xml</DestinationFilename> + </FileItem> + <FileItem InstallType="CopyFile" SystemFile="false" Modified="true"> + <Param1 /> + <UpdateOption>AlwaysOverwrite</UpdateOption> + <LocalFileName>..\Language\strings_en.xml</LocalFileName> + <ZipFileName>Installer{CopyFile}\{522c3256-fd94-4012-bf4a-ef37c079b4b6}-strings_en.xml</ZipFileName> + <DestinationFilename>%Language%\File Explorer\strings_en.xml</DestinationFilename> + </FileItem> + <FileItem InstallType="CopyFile" SystemFile="false" Modified="true"> + <Param1 /> + <UpdateOption>AlwaysOverwrite</UpdateOption> + <LocalFileName>..\Language\strings_fr.xml</LocalFileName> + <ZipFileName>Installer{CopyFile}\{6379cb8f-ec7a-47b8-9a1e-08fce3276a77}-strings_fr.xml</ZipFileName> + <DestinationFilename>%Language%\File Explorer\strings_fr.xml</DestinationFilename> + </FileItem> + <FileItem InstallType="CopyFile" SystemFile="false" Modified="true"> + <Param1 /> + <UpdateOption>AlwaysOverwrite</UpdateOption> + <LocalFileName>..\Language\strings_da.xml</LocalFileName> + <ZipFileName>Installer{CopyFile}\{66b63008-7f7c-4dac-ae2d-c966f7fda5d3}-strings_da.xml</ZipFileName> + <DestinationFilename>%Language%\File Explorer\strings_da.xml</DestinationFilename> + </FileItem> + </Items> + </Files> + </GroupItem> + </Items> + </Groups> + <Sections> + <Items> + <SectionItem Guid="233df8cf-2633-4f6b-9cf9-6c880d71c615" Name="Welcome Screen" ConditionGroup=""> + <Params> + <Items> + <SectionParam Name="Header text"> + <Value>Welcome to the Extension Installer for [Name]</Value> + <ValueType>String</ValueType> + <Description /> + </SectionParam> + <SectionParam Name="Description"> + <Value>This will install [Name] version [Version] on your computer. +It is recommended that you close all other applications before continuing. +Click Next to continue or Cancel to exit Setup.</Value> + <ValueType>String</ValueType> + <Description /> + </SectionParam> + <SectionParam Name="Left part image"> + <Value /> + <ValueType>File</ValueType> + <Description /> + </SectionParam> + <SectionParam Name="Header image"> + <Value /> + <ValueType>File</ValueType> + <Description>Image in upper right part</Description> + </SectionParam> + </Items> + </Params> + <Actions> + <Items /> + </Actions> + <IncludedGroups /> + <PanelName>Welcome Screen</PanelName> + <WizardButtonsEnum>NextCancel</WizardButtonsEnum> + </SectionItem> + <SectionItem Guid="6ad36af8-f301-4759-9581-91a6f769bb2c" Name="Tree View Selector" ConditionGroup=""> + <Params> + <Items> + <SectionParam Name="Header Title"> + <Value /> + <ValueType>String</ValueType> + <Description>Header title</Description> + </SectionParam> + <SectionParam Name="Header description"> + <Value /> + <ValueType>String</ValueType> + <Description>Description of section, shown in under section title</Description> + </SectionParam> + <SectionParam Name="Header image"> + <Value /> + <ValueType>File</ValueType> + <Description>Image in upper right part</Description> + </SectionParam> + <SectionParam Name="Description "> + <Value /> + <ValueType>String</ValueType> + <Description>Description of this operation</Description> + </SectionParam> + </Items> + </Params> + <Actions> + <Items /> + </Actions> + <IncludedGroups> + <string>Plugin DLL</string> + <string>Plugin Blue3 skin files</string> + <string>Plugin Blue3wide skin files</string> + <string>Plugin Xface skin files</string> + <string>Plugin language files</string> + </IncludedGroups> + <PanelName>Tree View Selector</PanelName> + <WizardButtonsEnum>BackNextCancel</WizardButtonsEnum> + </SectionItem> + <SectionItem Guid="f9cf2d4c-5746-4859-95af-77dca4f2fe4f" Name="Install Section" ConditionGroup=""> + <Params> + <Items> + <SectionParam Name="Header Title"> + <Value /> + <ValueType>String</ValueType> + <Description>Header title</Description> + </SectionParam> + <SectionParam Name="Header description"> + <Value /> + <ValueType>String</ValueType> + <Description>Description of section, shown in under section title</Description> + </SectionParam> + <SectionParam Name="Header image"> + <Value /> + <ValueType>File</ValueType> + <Description>Image in upper right part</Description> + </SectionParam> + </Items> + </Params> + <Actions> + <Items> + <ActionItem Name="InstallFiles" ActionType="InstallFiles" ConditionGroup=""> + <Params> + <Items /> + </Params> + <ExecuteLocation>AfterPanelShow</ExecuteLocation> + </ActionItem> + </Items> + </Actions> + <IncludedGroups /> + <PanelName>Install Section</PanelName> + <WizardButtonsEnum>Next</WizardButtonsEnum> + </SectionItem> + <SectionItem Guid="e0c116ca-434a-43c4-a3bb-1cf0db5060a1" Name="Setup Complete" ConditionGroup=""> + <Params> + <Items> + <SectionParam Name="Header text"> + <Value>The Extension Installer Wizard has successfully installed [Name].</Value> + <ValueType>String</ValueType> + <Description /> + </SectionParam> + <SectionParam Name="Left part image"> + <Value /> + <ValueType>File</ValueType> + <Description /> + </SectionParam> + <SectionParam Name="Show radio buttons"> + <Value /> + <ValueType>Bool</ValueType> + <Description>Use radiobutton in place of combobox</Description> + </SectionParam> + <SectionParam Name="Header image"> + <Value /> + <ValueType>File</ValueType> + <Description>Image in upper right part</Description> + </SectionParam> + </Items> + </Params> + <Actions> + <Items /> + </Actions> + <IncludedGroups /> + <PanelName>Setup Complete</PanelName> + <WizardButtonsEnum>Finish</WizardButtonsEnum> + </SectionItem> + </Items> + </Sections> + <Dependencies> + <Items /> + </Dependencies> + <GeneralInfo> + <Name>File Explorer</Name> + <Id>dd3efdfe-ed9e-44be-9550-813d268556fb</Id> + <Author>Andreas Groß, framug, SilentException, -ltb- (gfx)</Author> + <HomePage /> + <ForumPage>http://forum.team-mediaportal.com/mediaportal-plugins-47/file-explorer-72076/</ForumPage> + <UpdateUrl>http://mp-plugins.svn.sourceforge.net/viewvc/mp-plugins/trunk/plugins/File Explorer/MpeRelease/update.xml</UpdateUrl> + <Version> + <Major>1</Major> + <Minor>4</Minor> + <Build>0</Build> + <Revision>0</Revision> + </Version> + <ExtensionDescription>This plugin is able to perform the following actions: + +- Copy +- Move +- Delete +- Rename +- Encrypt/Decrypt +- Compress/Uncompress (files only) +- Hide/Unhide +- Set/Remove Readonly flag +files and directories + +- Creates directories + +- Creates audio and video playlists from directories +- Adds files and directories to audio and video playlists +- Plays audio/video files when selected +- Shows pictures when selected +- Previews textfiles +</ExtensionDescription> + <VersionDescription>Add Danish translation +Configuration Form changes. +</VersionDescription> + <DevelopmentStatus>Stable</DevelopmentStatus> + <OnlineLocation>http://mp-plugins.svn.sourceforge.net/viewvc/mp-plugins/trunk/plugins/File Explorer/MpeRelease/File Explorer 1.3.0.0.mpe1</OnlineLocation> + <ReleaseDate>2010-05-04T19:18:08.4089895+02:00</ReleaseDate> + <Tags>file, explorer</Tags> + <Location>D:\SVN\MP-Plugins\File Explorer\MpeRelease\File Explorer 1.4.0.0.mpe1</Location> + <Params> + <Items> + <SectionParam Name="Icon"> + <Value>..\file_explorer.png</Value> + <ValueType>File</ValueType> + <Description>The icon file of the package (jpg,png,bmp)</Description> + </SectionParam> + <SectionParam Name="Online Icon"> + <Value /> + <ValueType>String</ValueType> + <Description>The icon file of the package stored online (jpg,png,bmp)</Description> + </SectionParam> + <SectionParam Name="Configuration file"> + <Value /> + <ValueType>Template</ValueType> + <Description>The file used to configure the extension. + If have .exe extension the will be executed + If have .dll extension used like MP plugin configuration</Description> + </SectionParam> + <SectionParam Name="Online Screenshots"> + <Value /> + <ValueType>String</ValueType> + <Description>Online stored screenshot urls separated by ; </Description> + </SectionParam> + <SectionParam Name="Force to uninstall on update"> + <Value>YES</Value> + <ValueType>Bool</ValueType> + <Description>Show dialog and force to uninstall previous version when updating an extension. Should only be disabled if you are using an NSIS/MSI installer.</Description> + </SectionParam> + </Items> + </Params> + </GeneralInfo> + <UniqueFileList> + <Items> + <FileItem InstallType="CopyFile" SystemFile="false" Modified="true"> + <Param1 /> + <UpdateOption>AlwaysOverwrite</UpdateOption> + <LocalFileName>..\Compression\Release\Compression.dll</LocalFileName> + <ZipFileName>Installer{CopyFile}\{6ad4479e-a4ef-424d-bb10-5dfc366bdf97}-Compression.dll</ZipFileName> + <DestinationFilename>%Plugins%\Windows\Compression\Compression.dll</DestinationFilename> + </FileItem> + <FileItem InstallType="CopyFile" SystemFile="false" Modified="true"> + <Param1 /> + <UpdateOption>AlwaysOverwrite</UpdateOption> + <LocalFileName>..\bin\Release\File Explorer.dll</LocalFileName> + <ZipFileName>Installer{CopyFile}\{9fcc58ba-53f3-45f1-987f-30aa5a37394a}-File Explorer.dll</ZipFileName> + <DestinationFilename>%Plugins%\Windows\File Explorer.dll</DestinationFilename> + </FileItem> + <FileItem InstallType="CopyFile" SystemFile="false" Modified="true"> + <Param1 /> + <UpdateOption>AlwaysOverwrite</UpdateOption> + <LocalFileName>..\Skin\Blue3\File Explorer_textpreview.xml</LocalFileName> + <ZipFileName>Installer{CopyFile}\{88931239-1808-4805-ba5f-4c64fc6e10ab}-File Explorer_textpreview.xml</ZipFileName> + <DestinationFilename>%Skin%\Blue3\File Explorer_textpreview.xml</DestinationFilename> + </FileItem> + <FileItem InstallType="CopyFile" SystemFile="false" Modified="true"> + <Param1 /> + <UpdateOption>AlwaysOverwrite</UpdateOption> + <LocalFileName>..\Skin\Blue3\File Explorer_dialog.xml</LocalFileName> + <ZipFileName>Installer{CopyFile}\{55884b5d-2ef9-47ab-858f-8dfcbf4e11cf}-File Explorer_dialog.xml</ZipFileName> + <DestinationFilename>%Skin%\Blue3\File Explorer_dialog.xml</DestinationFilename> + </FileItem> + <FileItem InstallType="CopyFile" SystemFile="false" Modified="true"> + <Param1 /> + <UpdateOption>AlwaysOverwrite</UpdateOption> + <LocalFileName>..\Skin\Blue3\File Explorer_main.xml</LocalFileName> + <ZipFileName>Installer{CopyFile}\{d8f279b1-156f-42ea-9521-df306497502d}-File Explorer_main.xml</ZipFileName> + <DestinationFilename>%Skin%\Blue3\File Explorer_main.xml</DestinationFilename> + </FileItem> + <FileItem InstallType="CopyFile" SystemFile="false" Modified="true"> + <Param1 /> + <UpdateOption>AlwaysOverwrite</UpdateOption> + <LocalFileName>..\Skin\Blue3\File Explorer_modulepreview.xml</LocalFileName> + <ZipFileName>Installer{CopyFile}\{e6dff945-da79-410d-a427-1bfabfac62bb}-File Explorer_modulepreview.xml</ZipFileName> + <DestinationFilename>%Skin%\Blue3\File Explorer_modulepreview.xml</DestinationFilename> + </FileItem> + <FileItem InstallType="CopyFile" SystemFile="false" Modified="true"> + <Param1 /> + <UpdateOption>AlwaysOverwrite</UpdateOption> + <LocalFileName>..\Skin\Blue3\File Explorer_musicpreview.xml</LocalFileName> + <ZipFileName>Installer{CopyFile}\{0b5e1eb7-ab42-4f27-8a35-140dcdf19542}-File Explorer_musicpreview.xml</ZipFileName> + <DestinationFilename>%Skin%\Blue3\File Explorer_musicpreview.xml</DestinationFilename> + </FileItem> + <FileItem InstallType="CopyFile" SystemFile="false" Modified="true"> + <Param1 /> + <UpdateOption>AlwaysOverwrite</UpdateOption> + <LocalFileName>..\Skin\Blue3wide\File Explorer_textpreview.xml</LocalFileName> + <ZipFileName>Installer{CopyFile}\{5112db06-7ae0-4462-bd84-7667667bcbdf}-File Explorer_textpreview.xml</ZipFileName> + <DestinationFilename>%Skin%\Blue3wide\File Explorer_textpreview.xml</DestinationFilename> + </FileItem> + <FileItem InstallType="CopyFile" SystemFile="false" Modified="true"> + <Param1 /> + <UpdateOption>AlwaysOverwrite</UpdateOption> + <LocalFileName>..\Skin\Blue3wide\File Explorer_dialog.xml</LocalFileName> + <ZipFileName>Installer{CopyFile}\{537822ea-1129-491c-86f2-10155e8dc99f}-File Explorer_dialog.xml</ZipFileName> + <DestinationFilename>%Skin%\Blue3wide\File Explorer_dialog.xml</DestinationFilename> + </FileItem> + <FileItem InstallType="CopyFile" SystemFile="false" Modified="true"> + <Param1 /> + <UpdateOption>AlwaysOverwrite</UpdateOption> + <LocalFileName>..\Skin\Blue3wide\File Explorer_main.xml</LocalFileName> + <ZipFileName>Installer{CopyFile}\{993c58e6-a784-41ba-949e-612bb371447b}-File Explorer_main.xml</ZipFileName> + <DestinationFilename>%Skin%\Blue3wide\File Explorer_main.xml</DestinationFilename> + </FileItem> + <FileItem InstallType="CopyFile" SystemFile="false" Modified="true"> + <Param1 /> + <UpdateOption>AlwaysOverwrite</UpdateOption> + <LocalFileName>..\Skin\Blue3wide\File Explorer_modulepreview.xml</LocalFileName> + <ZipFileName>Installer{CopyFile}\{06d04be0-cdb0-4259-83a9-04bf67a9124d}-File Explorer_modulepreview.xml</ZipFileName> + <DestinationFilename>%Skin%\Blue3wide\File Explorer_modulepreview.xml</DestinationFilename> + </FileItem> + <FileItem InstallType="CopyFile" SystemFile="false" Modified="true"> + <Param1 /> + <UpdateOption>AlwaysOverwrite</UpdateOption> + <LocalFileName>..\Skin\Blue3wide\File Explorer_musicpreview.xml</LocalFileName> + <ZipFileName>Installer{CopyFile}\{c5cb594e-2b83-456a-9e43-fc4bcbef2b27}-File Explorer_musicpreview.xml</ZipFileName> + <DestinationFilename>%Skin%\Blue3wide\File Explorer_musicpreview.xml</DestinationFilename> + </FileItem> + <FileItem InstallType="CopyFile" SystemFile="false" Modified="true"> + <Param1 /> + <UpdateOption>AlwaysOverwrite</UpdateOption> + <LocalFileName>..\Skin\Xface\File Explorer_textpreview.xml</LocalFileName> + <ZipFileName>Installer{CopyFile}\{a6fb338a-59a4-40b7-8716-d8fdc13e78c8}-File Explorer_textpreview.xml</ZipFileName> + <DestinationFilename>%Skin%\Xface\File Explorer_textpreview.xml</DestinationFilename> + </FileItem> + <FileItem InstallType="CopyFile" SystemFile="false" Modified="true"> + <Param1 /> + <UpdateOption>AlwaysOverwrite</UpdateOption> + <LocalFileName>..\Skin\Xface\common.window.file_explorer.xml</LocalFileName> + <ZipFileName>Installer{CopyFile}\{69c93731-4d7c-4b35-9dfe-33d8e45ed1b6}-common.window.file_explorer.xml</ZipFileName> + <DestinationFilename>%Skin%\Xface\common.window.file_explorer.xml</DestinationFilename> + </FileItem> + <FileItem InstallType="CopyFile" SystemFile="false" Modified="true"> + <Param1 /> + <UpdateOption>AlwaysOverwrite</UpdateOption> + <LocalFileName>..\Skin\Xface\File Explorer_dialog.xml</LocalFileName> + <ZipFileName>Installer{CopyFile}\{63269080-7b9c-47d4-b8f2-f80c541a0621}-File Explorer_dialog.xml</ZipFileName> + <DestinationFilename>%Skin%\Xface\File Explorer_dialog.xml</DestinationFilename> + </FileItem> + <FileItem InstallType="CopyFile" SystemFile="false" Modified="true"> + <Param1 /> + <UpdateOption>AlwaysOverwrite</UpdateOption> + <LocalFileName>..\Skin\Xface\File Explorer_main.xml</LocalFileName> + <ZipFileName>Installer{CopyFile}\{638f93d9-0519-41d0-a7fa-81294d990fac}-File Explorer_main.xml</ZipFileName> + <DestinationFilename>%Skin%\Xface\File Explorer_main.xml</DestinationFilename> + </FileItem> + <FileItem InstallType="CopyFile" SystemFile="false" Modified="true"> + <Param1 /> + <UpdateOption>AlwaysOverwrite</UpdateOption> + <LocalFileName>..\Skin\Xface\File Explorer_modulepreview.xml</LocalFileName> + <ZipFileName>Installer{CopyFile}\{90a9bfb0-1961-470e-848e-e51f3d0529f6}-File Explorer_modulepreview.xml</ZipFileName> + <DestinationFilename>%Skin%\Xface\File Explorer_modulepreview.xml</DestinationFilename> + </FileItem> + <FileItem InstallType="CopyFile" SystemFile="false" Modified="true"> + <Param1 /> + <UpdateOption>AlwaysOverwrite</UpdateOption> + <LocalFileName>..\Skin\Xface\File Explorer_musicpreview.xml</LocalFileName> + <ZipFileName>Installer{CopyFile}\{5195f55e-387f-47c6-b182-9e58045c9ced}-File Explorer_musicpreview.xml</ZipFileName> + <DestinationFilename>%Skin%\Xface\File Explorer_musicpreview.xml</DestinationFilename> + </FileItem> + <FileItem InstallType="CopyFile" SystemFile="false" Modified="true"> + <Param1 /> + <UpdateOption>AlwaysOverwrite</UpdateOption> + <LocalFileName>..\Skin\Xface\Media\hover_file explorer.png</LocalFileName> + <ZipFileName>Installer{CopyFile}\{a0583ba8-7b6f-464a-b981-e13640ec7605}-hover_file explorer.png</ZipFileName> + <DestinationFilename>%Skin%\Xface\Media\hover_file explorer.png</DestinationFilename> + </FileItem> + <FileItem InstallType="CopyFile" SystemFile="false" Modified="true"> + <Param1 /> + <UpdateOption>AlwaysOverwrite</UpdateOption> + <LocalFileName>..\Skin\Xface\Media\button_file explorer.png</LocalFileName> + <ZipFileName>Installer{CopyFile}\{75fe40d3-f2d0-40e4-a7c5-40118510fbeb}-button_file explorer.png</ZipFileName> + <DestinationFilename>%Skin%\Xface\Media\button_file explorer.png</DestinationFilename> + </FileItem> + <FileItem InstallType="CopyFile" SystemFile="false" Modified="true"> + <Param1 /> + <UpdateOption>AlwaysOverwrite</UpdateOption> + <LocalFileName>..\Skin\Xface\Media\buttonNF_file explorer.png</LocalFileName> + <ZipFileName>Installer{CopyFile}\{15f70c82-ca7e-494f-8691-191b029c3358}-buttonNF_file explorer.png</ZipFileName> + <DestinationFilename>%Skin%\Xface\Media\buttonNF_file explorer.png</DestinationFilename> + </FileItem> + <FileItem InstallType="CopyFile" SystemFile="false" Modified="true"> + <Param1 /> + <UpdateOption>AlwaysOverwrite</UpdateOption> + <LocalFileName>..\Language\strings_de.xml</LocalFileName> + <ZipFileName>Installer{CopyFile}\{3a2b77e4-d791-40b8-88e4-96f8d6881110}-strings_de.xml</ZipFileName> + <DestinationFilename>%Language%\File Explorer\strings_de.xml</DestinationFilename> + </FileItem> + <FileItem InstallType="CopyFile" SystemFile="false" Modified="true"> + <Param1 /> + <UpdateOption>AlwaysOverwrite</UpdateOption> + <LocalFileName>..\Language\strings_en.xml</LocalFileName> + <ZipFileName>Installer{CopyFile}\{522c3256-fd94-4012-bf4a-ef37c079b4b6}-strings_en.xml</ZipFileName> + <DestinationFilename>%Language%\File Explorer\strings_en.xml</DestinationFilename> + </FileItem> + <FileItem InstallType="CopyFile" SystemFile="false" Modified="true"> + <Param1 /> + <UpdateOption>AlwaysOverwrite</UpdateOption> + <LocalFileName>..\Language\strings_fr.xml</LocalFileName> + <ZipFileName>Installer{CopyFile}\{6379cb8f-ec7a-47b8-9a1e-08fce3276a77}-strings_fr.xml</ZipFileName> + <DestinationFilename>%Language%\File Explorer\strings_fr.xml</DestinationFilename> + </FileItem> + <FileItem InstallType="CopyFile" SystemFile="false" Modified="true"> + <Param1 /> + <UpdateOption>AlwaysOverwrite</UpdateOption> + <LocalFileName>..\Language\strings_da.xml</LocalFileName> + <ZipFileName>Installer{CopyFile}\{66b63008-7f7c-4dac-ae2d-c966f7fda5d3}-strings_da.xml</ZipFileName> + <DestinationFilename>%Language%\File Explorer\strings_da.xml</DestinationFilename> + </FileItem> + <FileItem InstallType="CopyFile" SystemFile="true" Modified="true"> + <Param1 /> + <UpdateOption>OverwriteIfOlder</UpdateOption> + <LocalFileName>..\file_explorer.png</LocalFileName> + <ZipFileName>Installer{CopyFile}\{4e67cb0d-187a-4bee-829d-f50145c4b969}-file_explorer.png</ZipFileName> + <DestinationFilename /> + </FileItem> + </Items> + </UniqueFileList> + <ProjectSettings> + <FolderGroups /> + <ProjectFilename>D:\SVN\MP-Plugins\File Explorer\MpeRelease\File Explorer 1.4.0.0.xmp2</ProjectFilename> + <UpdatePath1>D:\SVN\MP-Plugins\File Explorer\MpeRelease\update.xml</UpdatePath1> + <UpdatePath2 /> + <UpdatePath3 /> + </ProjectSettings> +</PackageClass> \ No newline at end of file Modified: trunk/plugins/File Explorer/MpeRelease/update.xml =================================================================== --- trunk/plugins/File Explorer/MpeRelease/update.xml 2010-05-26 11:29:51 UTC (rev 3607) +++ trunk/plugins/File Explorer/MpeRelease/update.xml 2010-05-26 16:03:28 UTC (rev 3608) @@ -134,5 +134,137 @@ <FolderGroups /> </ProjectSettings> </PackageClass> + <PackageClass> + <Version>2.0</Version> + <Groups> + <Items> + <GroupItem Name="Plugin DLL"> + <DisplayName>Plugin DLL</DisplayName> + <DefaulChecked>true</DefaulChecked> + <Description>Plugin DLL</Description> + <Files> + <Items /> + </Files> + </GroupItem> + <GroupItem Name="Plugin Blue3 skin files"> + <DisplayName>Plugin Blue3 skin files</DisplayName> + <DefaulChecked>true</DefaulChecked> + <Description>Plugin Blue3 skin files</Description> + <Files> + <Items /> + </Files> + </GroupItem> + <GroupItem Name="Plugin Blue3wide skin files"> + <DisplayName>Plugin Blue3wide skin files</DisplayName> + <DefaulChecked>true</DefaulChecked> + <Description>Plugin Blue3wide skin files</Description> + <Files> + <Items /> + </Files> + </GroupItem> + <GroupItem Name="Plugin Xface skin files"> + <DisplayName>Plugin Xface skin files</DisplayName> + <DefaulChecked>false</DefaulChecked> + <Description>Plugin Xface skin files</Description> + <Files> + <Items /> + </Files> + </GroupItem> + <GroupItem Name="Plugin language files"> + <DisplayName>Plugin language files</DisplayName> + <DefaulChecked>true</DefaulChecked> + <Description>Plugin language files</Description> + <Files> + <Items /> + </Files> + </GroupItem> + </Items> + </Groups> + <Sections> + <Items /> + </Sections> + <Dependencies> + <Items /> + </Dependencies> + <GeneralInfo> + <Name>File Explorer</Name> + <Id>dd3efdfe-ed9e-44be-9550-813d268556fb</Id> + <Author>Andreas Groß, framug, SilentException, -ltb- (gfx)</Author> + <HomePage /> + <ForumPage>http://forum.team-mediaportal.com/mediaportal-plugins-47/file-explorer-72076/</ForumPage> + <UpdateUrl>http://mp-plugins.svn.sourceforge.net/viewvc/mp-plugins/trunk/plugins/File Explorer/MpeRelease/update.xml</UpdateUrl> + <Version> + <Major>1</Major> + <Minor>4</Minor> + <Build>0</Build> + <Revision>0</Revision> + </Version> + <ExtensionDescription>This plugin is able to perform the following actions: + +- Copy +- Move +- Delete +- Rename +- Encrypt/Decrypt +- Compress/Uncompress (files only) +- Hide/Unhide +- Set/Remove Readonly flag +files and directories + +- Creates directories + +- Creates audio and video playlists from directories +- Adds files and directories to audio and video playlists +- Plays audio/video files when selected +- Shows pictures when selected +- Previews textfiles +</ExtensionDescription> + <VersionDescription>Add Danish translation +Configuration Form changes. +</VersionDescription> + <DevelopmentStatus>Stable</DevelopmentStatus> + <OnlineLocation>http://mp-plugins.svn.sourceforge.net/viewvc/mp-plugins/trunk/plugins/File Explorer/MpeRelease/File Explorer 1.3.0.0.mpe1</OnlineLocation> + <ReleaseDate>2010-05-04T19:18:08.4089895+02:00</ReleaseDate> + <Tags>file, explorer</Tags> + <Location>D:\SVN\MP-Plugins\File Explorer\MpeRelease\File Explorer 1.4.0.0.mpe1</Location> + <Params> + <Items> + <SectionParam Name="Icon"> + <Value>D:\SVN\MP-Plugins\File Explorer\file_explorer.png</Value> + <ValueType>File</ValueType> + <Description>The icon file of the package (jpg,png,bmp)</Description> + </SectionParam> + <SectionParam Name="Online Icon"> + <Value /> + <ValueType>String</ValueType> + <Description>The icon file of the package stored online (jpg,png,bmp)</Description> + </SectionParam> + <SectionParam Name="Configuration file"> + <Value /> + <ValueType>Template</ValueType> + <Description>The file used to configure the extension. + If have .exe extension the will be executed + If have .dll extension used like MP plugin configuration</Description> + </SectionParam> + <SectionParam Name="Online Screenshots"> + <Value /> + <ValueType>String</ValueType> + <Description>Online stored screenshot urls separated by ; </Description> + </SectionParam> + <SectionParam Name="Force to uninstall on update"> + <Value>YES</Value> + <ValueType>Bool</ValueType> + <Description>Show dialog and force to uninstall previous version when updating an extension. Should only be disabled if you are using an NSIS/MSI installer.</Description> + </SectionParam> + </Items> + </Params> + </GeneralInfo> + <UniqueFileList> + <Items /> + </UniqueFileList> + <ProjectSettings> + <FolderGroups /> + </ProjectSettings> + </PackageClass> </Items> </ExtensionCollection> \ No newline at end of file Modified: trunk/plugins/File Explorer/Properties/AssemblyInfo.cs =================================================================== --- trunk/plugins/File Explorer/Properties/AssemblyInfo.cs 2010-05-26 11:29:51 UTC (rev 3607) +++ trunk/plugins/File Explorer/Properties/AssemblyInfo.cs 2010-05-26 16:03:28 UTC (rev 3608) @@ -28,4 +28,4 @@ // You can specify all values by your own or you can build default build and revision // numbers with the '*' character (the default): -[assembly: AssemblyVersion("1.3.0.0")] +[assembly: AssemblyVersion("1.4.0.0")] Modified: trunk/plugins/File Explorer/Setup.Designer.cs =================================================================== --- trunk/plugins/File Explorer/Setup.Designer.cs 2010-05-26 11:29:51 UTC (rev 3607) +++ trunk/plugins/File Explorer/Setup.Designer.cs 2010-05-26 16:03:28 UTC (rev 3608) @@ -54,29 +54,37 @@ /// </summary> private void InitializeComponent() { - this.lstOptions = new System.Windows.Forms.CheckedListBox(); this.btnApply = new System.Windows.Forms.Button(); this.btnCancel = new System.Windows.Forms.Button(); this.btnOK = new System.Windows.Forms.Button(); - this.labelLeft = new System.Windows.Forms.Label(); - this.labelRight = new System.Windows.Forms.Label(); - this.textBoxFolderLeftMenu = new System.Windows.Forms.TextBox(); - this.textBoxFolderRightMenu = new System.Windows.Forms.TextBox(); - this.btnBrowseLeftMenu = new System.Windows.Forms.Button(); - this.btnBrowseRightMenu = new System.Windows.Forms.Button(); this.openFileDialog1 = new System.Windows.Forms.OpenFileDialog(); this.LibVersion = new System.Windows.Forms.Label(); this.VarVersion = new System.Windows.Forms.Label(); + this.tabControl1 = new System.Windows.Forms.TabControl(); + this.tabPage1 = new System.Windows.Forms.TabPage(); + this.groupBox1 = new System.Windows.Forms.GroupBox(); + this.btnBrowseRightMenu = new System.Windows.Forms.Button(); + this.btnBrowseLeftMenu = new System.Windows.Forms.Button(); + this.textBoxFolderRightMenu = new System.Windows.Forms.TextBox(); + this.textBoxFolderLeftMenu = new System.Windows.Forms.TextBox(); + this.labelRight = new System.Windows.Forms.Label(); + this.labelLeft = new System.Windows.Forms.Label(); + this.lstOptions = new System.Windows.Forms.CheckedListBox(); + this.tabPage2 = new System.Windows.Forms.TabPage(); + this.groupBox2 = new System.Windows.Forms.GroupBox(); + this.label3 = new System.Windows.Forms.Label(); + this.label2 = new System.Windows.Forms.Label(); + this.label1 = new System.Windows.Forms.Label(); + this.label13 = new System.Windows.Forms.Label(); + this.label8 = new System.Windows.Forms.Label(); + this.label5 = new System.Windows.Forms.Label(); + this.tabControl1.SuspendLayout(); + this.tabPage1.SuspendLayout(); + this.groupBox1.SuspendLayout(); + this.tabPage2.SuspendLayout(); + this.groupBox2.SuspendLayout(); this.SuspendLayout(); // - // lstOptions - // - this.lstOptions.FormattingEnabled = true; - this.lstOptions.Location = new System.Drawing.Point(12, 12); - this.lstOptions.Name = "lstOptions"; - this.lstOptions.Size = new System.Drawing.Size(470, 184); - this.lstOptions.TabIndex = 0; - // // btnApply // this.btnApply.Location = new System.Drawing.Point(383, 310); @@ -108,66 +116,6 @@ this.btnOK.UseVisualStyleBackColor = true; this.btnOK.Click += new System.EventHandler(this.BtnOKClick); // - // labelLeft - // - this.labelLeft.AutoSize = true; - this.labelLeft.Location = new System.Drawing.Point(9, 201); - this.labelLeft.Name = "labelLeft"; - this.labelLeft.Size = new System.Drawing.Size(137, 13); - this.labelLeft.TabIndex = 4; - this.labelLeft.Text = "Default folder for left menu :"; - // - // labelRight - // - this.labelRight.AutoSize = true; - this.labelRight.Location = new System.Drawing.Point(9, 247); - this.labelRight.Name = "labelRight"; - this.labelRight.Size = new System.Drawing.Size(143, 13); - this.labelRight.TabIndex = 4; - this.labelRight.Text = "Default folder for right menu :"; - // - // textBoxFolderLeftMenu - // - this.textBoxFolderLeftMenu.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); - this.textBoxFolderLeftMenu.Location = new System.Drawing.Point(12, 217); - this.textBoxFolderLeftMenu.Name = "textBoxFolderLeftMenu"; - this.textBoxFolderLeftMenu.ReadOnly = true; - this.textBoxFolderLeftMenu.Size = new System.Drawing.Size(390, 20); - this.textBoxFolderLeftMenu.TabIndex = 5; - // - // textBoxFolderRightMenu - // - this.textBoxFolderRightMenu.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); - this.textBoxFolderRightMenu.Location = new System.Drawing.Point(12, 263); - this.textBoxFolderRightMenu.Name = "textBoxFolderRightMenu"; - this.textBoxFolderRightMenu.ReadOnly = true; - this.textBoxFolderRightMenu.Size = new System.Drawing.Size(390, 20); - this.textBoxFolderRightMenu.TabIndex = 6; - // - // btnBrowseLeftMenu - // - this.btnBrowseLeftMenu.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.btnBrowseLeftMenu.Location = new System.Drawing.Point(408, 217); - this.btnBrowseLeftMenu.Name = "btnBrowseLeftMenu"; - this.btnBrowseLeftMenu.Size = new System.Drawing.Size(74, 20); - this.btnBrowseLeftMenu.TabIndex = 7; - this.btnBrowseLeftMenu.Text = "Browse"; - this.btnBrowseLeftMenu.UseVisualStyleBackColor = true; - this.btnBrowseLeftMenu.Click += new System.EventHandler(this.btnBrowseLeftMenu_Click); - // - // btnBrowseRightMenu - // - this.btnBrowseRightMenu.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.btnBrowseRightMenu.Location = new System.Drawing.Point(408, 263); - this.btnBrowseRightMenu.Name = "btnBrowseRightMenu"; - this.btnBrowseRightMenu.Size = new System.Drawing.Size(74, 20); - this.btnBrowseRightMenu.TabIndex = 8; - this.btnBrowseRightMenu.Text = "Browse"; - this.btnBrowseRightMenu.UseVisualStyleBackColor = true; - this.btnBrowseRightMenu.Click += new System.EventHandler(this.btnBrowseRightMenu_Click); - // // openFileDialog1 // this.openFileDialog1.FileName = "openFileDialog1"; @@ -192,6 +140,188 @@ this.VarVersion.TabIndex = 20; this.VarVersion.Text = "ver"; // + // tabControl1 + // + this.tabControl1.Controls.Add(this.tabPage1); + this.tabControl1.Controls.Add(this.tabPage2); + this.tabControl1.Location = new System.Drawing.Point(-1, -1); + this.tabControl1.Name = "tabControl1"; + this.tabControl1.SelectedIndex = 0; + this.tabControl1.Size = new System.Drawing.Size(498, 305); + this.tabControl1.TabIndex = 0; + this.tabControl1.Tag = ""; + // + // tabPage1 + // + this.tabPage1.Controls.Add(this.groupBox1); + this.tabPage1.Controls.Add(this.lstOptions); + this.tabPage1.Location = new System.Drawing.Point(4, 22); + this.tabPage1.Name = "tabPage1"; + this.tabPage1.Size = new System.Drawing.Size(490, 279); + this.tabPage1.TabIndex = 0; + this.tabPage1.Text = "Configuration"; + this.tabPage1.UseVisualStyleBackColor = true; + // + // groupBox1 + // + this.groupBox1.Controls.Add(this.btnBrowseRightMenu); + this.groupBox1.Controls.Add(this.btnBrowseLeftMenu); + this.groupBox1.Controls.Add(this.textBoxFolderRightMenu); + this.groupBox1.Controls.Add(this.textBoxFolderLeftMenu); + this.groupBox1.Controls.Add(this.labelRight); + this.groupBox1.Controls.Add(this.labelLeft); + this.groupBox1.Location = new System.Drawing.Point(9, 159); + this.groupBox1.Name = "groupBox1"; + this.groupBox1.Size = new System.Drawing.Size(475, 108); + this.groupBox1.TabIndex = 16; + this.groupBox1.TabStop = false; + // + // btnBrowseRightMenu + // + this.btnBrowseRightMenu.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.btnBrowseRightMenu.Location = new System.Drawing.Point(397, 75); + this.btnBrowseRightMenu.Name = "btnBrowseRightMenu"; + this.btnBrowseRightMenu.Size = new System.Drawing.Size(74, 20); + this.btnBrowseRightMenu.TabIndex = 21; + this.btnBrowseRightMenu.Text = "Browse"; + this.btnBrowseRightMenu.UseVisualStyleBackColor = true; + // + // btnBrowseLeftMenu + // + this.btnBrowseLeftMenu.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.btnBrowseLeftMenu.Location = new System.Drawing.Point(397, 29); + this.btnBrowseLeftMenu.Name = "btnBrowseLeftMenu"; + this.btnBrowseLeftMenu.Size = new System.Drawing.Size(74, 20); + this.btnBrowseLeftMenu.TabIndex = 20; + this.btnBrowseLeftMenu.Text = "Browse"; + this.btnBrowseLeftMenu.UseVisualStyleBackColor = true; + // + // textBoxFolderRightMenu + // + this.textBoxFolderRightMenu.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.textBoxFolderRightMenu.Location = new System.Drawing.Point(9, 75); + this.textBoxFolderRightMenu.Name = "textBoxFolderRightMenu"; + this.textBoxFolderRightMenu.ReadOnly = true; + this.textBoxFolderRightMenu.Size = new System.Drawing.Size(378, 20); + this.textBoxFolderRightMenu.TabIndex = 19; + // + // textBoxFolderLeftMenu + // + this.textBoxFolderLeftMenu.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.textBoxFolderLeftMenu.Location = new System.Drawing.Point(9, 29); + this.textBoxFolderLeftMenu.Name = "textBoxFolderLeftMenu"; + this.textBoxFolderLeftMenu.ReadOnly = true; + this.textBoxFolderLeftMenu.Size = new System.Drawing.Size(378, 20); + this.textBoxFolderLeftMenu.TabIndex = 18; + // + // labelRight + // + this.labelRight.AutoSize = true; + this.labelRight.Location = new System.Drawing.Point(6, 59); + this.labelRight.Name = "labelRight"; + this.labelRight.Size = new System.Drawing.Size(143, 13); + this.labelRight.TabIndex = 16; + this.labelRight.Text = "Default folder for right menu :"; + // + // labelLeft + // + this.labelLeft.AutoSize = true; + this.labelLeft.Location = new System.Drawing.Point(6, 13); + this.labelLeft.Name = "labelLeft"; + this.labelLeft.Size = new System.Drawing.Size(137, 13); + this.labelLeft.TabIndex = 17; + this.labelLeft.Text = "Default folder for left menu :"; + // + // lstOptions + // + this.lstOptions.FormattingEnabled = true; + this.lstOptions.Location = new System.Drawing.Point(12, 4); + this.lstOptions.Name = "lstOptions"; + this.lstOptions.Size = new System.Drawing.Size(470, 154); + this.lstOptions.TabIndex = 9; + // + // tabPage2 + // + this.tabPage2.Controls.Add(this.groupBox2); + this.tabPage2.Location = new System.Drawing.Point(4, 22); + this.tabPage2.Name = "tabPage2"; + this.tabPage2.Size = new System.Drawing.Size(490, 279); + this.tabPage2.TabIndex = 0; + this.tabPage2.Text = "About"; + this.tabPage2.UseVisualStyleBackColor = true; + // + // groupBox2 + // + this.groupBox2.Controls.Add(this.label3); + this.groupBox2.Controls.Add(this.label2); + this.groupBox2.Controls.Add(this.label1); + this.groupBox2.Controls.Add(this.label13); + this.groupBox2.Controls.Add(this.label8); + this.groupBox2.Controls.Add(this.label5); + this.groupBox2.Location = new System.Drawing.Point(3, 3); + this.groupBox2.Name = "groupBox2"; + this.groupBox2.Size = new System.Drawing.Size(484, 265); + this.groupBox2.TabIndex = 0; + this.groupBox2.TabStop = false; + // + // label3 + // + this.label3.AutoSize = true; + this.label3.Location = new System.Drawing.Point(6, 130); + this.label3.Name = "label3"; + this.label3.Size = new System.Drawing.Size(208, 13); + this.label3.TabIndex = 24; + this.label3.Text = "- German translation by Andrew Domarkas."; + // + // label2 + // + this.label2.AutoSize = true; + this.label2.Location = new System.Drawing.Point(6, 110); + this.label2.Name = "label2"; + this.label2.Size = new System.Drawing.Size(155, 13); + this.label2.TabIndex = 23; + this.label2.Text = "- Danish translation by 1stdead."; + // + // label1 + // + this.label1.AutoSize = true; + this.label1.Location = new System.Drawing.Point(6, 90); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(203, 13); + this.label1.TabIndex = 22; + this.label1.Text = "- SilentException for plugin enhancement."; + // + // label13 + // + this.label13.AutoSize = true; + this.label13.Location = new System.Drawing.Point(6, 70); + this.label13.Name = "label13"; + this.label13.Size = new System.Drawing.Size(98, 13); + this.label13.TabIndex = 21; + this.label13.Text = "- -ltb- for graphisms."; + // + // label8 + // + this.label8.AutoSize = true; + this.label8.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label8.Location = new System.Drawing.Point(6, 45); + this.label8.Name = "label8"; + this.label8.Size = new System.Drawing.Size(72, 13); + this.label8.TabIndex = 20; + this.label8.Text = "Thanks to :"; + // + // label5 + // + this.label5.AutoSize = true; + this.label5.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label5.Location = new System.Drawing.Point(181, 16); + this.label5.Name = "label5"; + this.label5.Size = new System.Drawing.Size(109, 20); + this.label5.TabIndex = 19; + this.label5.Text = "File Explorer"; + // // Setup // this.AcceptButton = this.btnOK; @@ -199,18 +329,12 @@ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.CancelButton = this.btnCancel; this.ClientSize = new System.Drawing.Size(494, 341); + this.Controls.Add(this.tabControl1); this.Controls.Add(this.VarVersion); this.Controls.Add(this.LibVersion); - this.Controls.Add(this.btnBrowseRightMenu); - this.Controls.Add(this.btnBrowseLeftMenu); - this.Controls.Add(this.textBoxFolderRightMenu); - this.Controls.Add(this.textBoxFolderLeftMenu); - this.Controls.Add(this.labelRight); - this.Controls.Add(this.labelLeft); this.Controls.Add(this.btnOK); this.Controls.Add(this.btnCancel); this.Controls.Add(this.btnApply); - this.Controls.Add(this.lstOptions); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; this.MaximizeBox = false; this.MinimizeBox = false; @@ -218,22 +342,40 @@ this.ShowInTaskbar = false; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.Text = "Setup"; + this.tabControl1.ResumeLayout(false); + this.tabPage1.ResumeLayout(false); + this.groupBox1.ResumeLayout(false); + this.groupBox1.PerformLayout(); + this.tabPage2.ResumeLayout(false); + this.groupBox2.ResumeLayout(fal... [truncated message content] |
From: <fr...@us...> - 2010-08-10 16:13:20
|
Revision: 3708 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=3708&view=rev Author: framug Date: 2010-08-10 16:13:12 +0000 (Tue, 10 Aug 2010) Log Message: ----------- File Explorer : - Cleanup. - Fix compression.dll in wrong folder. Modified Paths: -------------- trunk/plugins/File Explorer/Dialogs/GUIDialogOperation.cs trunk/plugins/File Explorer/File Explorer.csproj trunk/plugins/File Explorer/MpeRelease/File Explorer 1.4.0.0.mpe1 trunk/plugins/File Explorer/MpeRelease/File Explorer 1.4.0.0.xmp2 Removed Paths: ------------- trunk/plugins/File Explorer/File Explorer.csproj.user trunk/plugins/File Explorer/MpeRelease/File Explorer 1.3.0.0.mpe1 trunk/plugins/File Explorer/Skin/Blue3/File Explorer_dialog.xml trunk/plugins/File Explorer/Skin/Blue3/File Explorer_modulepreview.xml trunk/plugins/File Explorer/Skin/Blue3/File Explorer_musicpreview.xml trunk/plugins/File Explorer/Skin/Blue3wide/File Explorer_dialog.xml trunk/plugins/File Explorer/Skin/Blue3wide/File Explorer_modulepreview.xml trunk/plugins/File Explorer/Skin/Blue3wide/File Explorer_musicpreview.xml trunk/plugins/File Explorer/Skin/BlueTwo/File Explorer_dialog.xml trunk/plugins/File Explorer/Skin/BlueTwo/File Explorer_modulepreview.xml trunk/plugins/File Explorer/Skin/BlueTwo/File Explorer_musicpreview.xml trunk/plugins/File Explorer/Skin/Xface/File Explorer_dialog.xml trunk/plugins/File Explorer/Skin/Xface/File Explorer_modulepreview.xml trunk/plugins/File Explorer/Skin/Xface/File Explorer_musicpreview.xml Modified: trunk/plugins/File Explorer/Dialogs/GUIDialogOperation.cs =================================================================== --- trunk/plugins/File Explorer/Dialogs/GUIDialogOperation.cs 2010-08-09 11:17:30 UTC (rev 3707) +++ trunk/plugins/File Explorer/Dialogs/GUIDialogOperation.cs 2010-08-10 16:13:12 UTC (rev 3708) @@ -433,11 +433,6 @@ set { base.GetID = value; } } - public override bool Init() - { - return Load(GUIGraphicsContext.Skin + "\\File Explorer_dialog.xml"); - } - public override void OnAction(Action action) { if (action.wID == Action.ActionType.ACTION_CLOSE_DIALOG || action.wID == Action.ActionType.ACTION_PREVIOUS_MENU) Modified: trunk/plugins/File Explorer/File Explorer.csproj =================================================================== --- trunk/plugins/File Explorer/File Explorer.csproj 2010-08-09 11:17:30 UTC (rev 3707) +++ trunk/plugins/File Explorer/File Explorer.csproj 2010-08-10 16:13:12 UTC (rev 3708) @@ -93,27 +93,18 @@ <Content Include="Language\strings_de.xml" /> <Content Include="Language\strings_en.xml" /> <Content Include="Language\strings_fr.xml" /> - <Content Include="Skin\Blue3wide\File Explorer_dialog.xml" /> <Content Include="Skin\Blue3wide\File Explorer_main.xml" /> - <Content Include="Skin\Blue3wide\File Explorer_modulepreview.xml" /> - <Content Include="Skin\Blue3wide\File Explorer_musicpreview.xml" /> <Content Include="Skin\Blue3wide\File Explorer_textpreview.xml" /> <Content Include="Skin\Blue3wide\Media\buttonNF_file explorer.png" /> <Content Include="Skin\Blue3wide\Media\button_file explorer.png" /> <Content Include="Skin\Blue3wide\Media\hover_file explorer.png" /> - <Content Include="Skin\Blue3\File Explorer_dialog.xml" /> <Content Include="Skin\Blue3\File Explorer_main.xml" /> - <Content Include="Skin\Blue3\File Explorer_modulepreview.xml" /> - <Content Include="Skin\Blue3\File Explorer_musicpreview.xml" /> <Content Include="Skin\Blue3\File Explorer_textpreview.xml" /> <Content Include="Skin\Blue3\Media\buttonNF_file explorer.png" /> <Content Include="Skin\Blue3\Media\button_file explorer.png" /> <Content Include="Skin\Blue3\Media\hover_file explorer.png" /> <Content Include="Skin\Xface\common.window.file_explorer.xml" /> - <Content Include="Skin\Xface\File Explorer_dialog.xml" /> <Content Include="Skin\Xface\File Explorer_main.xml" /> - <Content Include="Skin\Xface\File Explorer_modulepreview.xml" /> - <Content Include="Skin\Xface\File Explorer_musicpreview.xml" /> <Content Include="Skin\Xface\File Explorer_textpreview.xml" /> <Content Include="Skin\Xface\Media\buttonNF_file explorer.png" /> <Content Include="Skin\Xface\Media\button_file explorer.png" /> Deleted: trunk/plugins/File Explorer/File Explorer.csproj.user =================================================================== --- trunk/plugins/File Explorer/File Explorer.csproj.user 2010-08-09 11:17:30 UTC (rev 3707) +++ trunk/plugins/File Explorer/File Explorer.csproj.user 2010-08-10 16:13:12 UTC (rev 3708) @@ -1,14 +0,0 @@ -<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <PropertyGroup Condition=" '$(Configuration)' == 'Debug' "> - <StartProgram>C:\Program Files\Team MediaPortal\MediaPortal\MediaPortal.exe</StartProgram> - <StartAction>Program</StartAction> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)' == 'Release' "> - <StartProgram> - </StartProgram> - <StartAction>Project</StartAction> - </PropertyGroup> - <PropertyGroup> - <ProjectView>ShowAllFiles</ProjectView> - </PropertyGroup> -</Project> \ No newline at end of file Deleted: trunk/plugins/File Explorer/MpeRelease/File Explorer 1.3.0.0.mpe1 =================================================================== (Binary files differ) Modified: trunk/plugins/File Explorer/MpeRelease/File Explorer 1.4.0.0.mpe1 =================================================================== (Binary files differ) Modified: trunk/plugins/File Explorer/MpeRelease/File Explorer 1.4.0.0.xmp2 =================================================================== --- trunk/plugins/File Explorer/MpeRelease/File Explorer 1.4.0.0.xmp2 2010-08-09 11:17:30 UTC (rev 3707) +++ trunk/plugins/File Explorer/MpeRelease/File Explorer 1.4.0.0.xmp2 2010-08-10 16:13:12 UTC (rev 3708) @@ -15,7 +15,7 @@ <UpdateOption>AlwaysOverwrite</UpdateOption> <LocalFileName>..\Compression\Release\Compression.dll</LocalFileName> <ZipFileName>Installer{CopyFile}\{6ad4479e-a4ef-424d-bb10-5dfc366bdf97}-Compression.dll</ZipFileName> - <DestinationFilename>%Plugins%\Windows\Compression\Compression.dll</DestinationFilename> + <DestinationFilename>%Plugins%\Windows\Compression.dll</DestinationFilename> </FileItem> <FileItem InstallType="CopyFile" SystemFile="false" Modified="true"> <Param1 /> @@ -44,31 +44,10 @@ <FileItem InstallType="CopyFile" SystemFile="false" Modified="true"> <Param1 /> <UpdateOption>AlwaysOverwrite</UpdateOption> - <LocalFileName>..\Skin\Blue3\File Explorer_dialog.xml</LocalFileName> - <ZipFileName>Installer{CopyFile}\{55884b5d-2ef9-47ab-858f-8dfcbf4e11cf}-File Explorer_dialog.xml</ZipFileName> - <DestinationFilename>%Skin%\Blue3\File Explorer_dialog.xml</DestinationFilename> - </FileItem> - <FileItem InstallType="CopyFile" SystemFile="false" Modified="true"> - <Param1 /> - <UpdateOption>AlwaysOverwrite</UpdateOption> <LocalFileName>..\Skin\Blue3\File Explorer_main.xml</LocalFileName> <ZipFileName>Installer{CopyFile}\{d8f279b1-156f-42ea-9521-df306497502d}-File Explorer_main.xml</ZipFileName> <DestinationFilename>%Skin%\Blue3\File Explorer_main.xml</DestinationFilename> </FileItem> - <FileItem InstallType="CopyFile" SystemFile="false" Modified="true"> - <Param1 /> - <UpdateOption>AlwaysOverwrite</UpdateOption> - <LocalFileName>..\Skin\Blue3\File Explorer_modulepreview.xml</LocalFileName> - <ZipFileName>Installer{CopyFile}\{e6dff945-da79-410d-a427-1bfabfac62bb}-File Explorer_modulepreview.xml</ZipFileName> - <DestinationFilename>%Skin%\Blue3\File Explorer_modulepreview.xml</DestinationFilename> - </FileItem> - <FileItem InstallType="CopyFile" SystemFile="false" Modified="true"> - <Param1 /> - <UpdateOption>AlwaysOverwrite</UpdateOption> - <LocalFileName>..\Skin\Blue3\File Explorer_musicpreview.xml</LocalFileName> - <ZipFileName>Installer{CopyFile}\{0b5e1eb7-ab42-4f27-8a35-140dcdf19542}-File Explorer_musicpreview.xml</ZipFileName> - <DestinationFilename>%Skin%\Blue3\File Explorer_musicpreview.xml</DestinationFilename> - </FileItem> </Items> </Files> </GroupItem> @@ -89,31 +68,10 @@ <FileItem InstallType="CopyFile" SystemFile="false" Modified="true"> <Param1 /> <UpdateOption>AlwaysOverwrite</UpdateOption> - <LocalFileName>..\Skin\Blue3wide\File Explorer_dialog.xml</LocalFileName> - <ZipFileName>Installer{CopyFile}\{537822ea-1129-491c-86f2-10155e8dc99f}-File Explorer_dialog.xml</ZipFileName> - <DestinationFilename>%Skin%\Blue3wide\File Explorer_dialog.xml</DestinationFilename> - </FileItem> - <FileItem InstallType="CopyFile" SystemFile="false" Modified="true"> - <Param1 /> - <UpdateOption>AlwaysOverwrite</UpdateOption> <LocalFileName>..\Skin\Blue3wide\File Explorer_main.xml</LocalFileName> <ZipFileName>Installer{CopyFile}\{993c58e6-a784-41ba-949e-612bb371447b}-File Explorer_main.xml</ZipFileName> <DestinationFilename>%Skin%\Blue3wide\File Explorer_main.xml</DestinationFilename> </FileItem> - <FileItem InstallType="CopyFile" SystemFile="false" Modified="true"> - <Param1 /> - <UpdateOption>AlwaysOverwrite</UpdateOption> - <LocalFileName>..\Skin\Blue3wide\File Explorer_modulepreview.xml</LocalFileName> - <ZipFileName>Installer{CopyFile}\{06d04be0-cdb0-4259-83a9-04bf67a9124d}-File Explorer_modulepreview.xml</ZipFileName> - <DestinationFilename>%Skin%\Blue3wide\File Explorer_modulepreview.xml</DestinationFilename> - </FileItem> - <FileItem InstallType="CopyFile" SystemFile="false" Modified="true"> - <Param1 /> - <UpdateOption>AlwaysOverwrite</UpdateOption> - <LocalFileName>..\Skin\Blue3wide\File Explorer_musicpreview.xml</LocalFileName> - <ZipFileName>Installer{CopyFile}\{c5cb594e-2b83-456a-9e43-fc4bcbef2b27}-File Explorer_musicpreview.xml</ZipFileName> - <DestinationFilename>%Skin%\Blue3wide\File Explorer_musicpreview.xml</DestinationFilename> - </FileItem> </Items> </Files> </GroupItem> @@ -141,13 +99,6 @@ <FileItem InstallType="CopyFile" SystemFile="false" Modified="true"> <Param1 /> <UpdateOption>AlwaysOverwrite</UpdateOption> - <LocalFileName>..\Skin\Xface\File Explorer_dialog.xml</LocalFileName> - <ZipFileName>Installer{CopyFile}\{63269080-7b9c-47d4-b8f2-f80c541a0621}-File Explorer_dialog.xml</ZipFileName> - <DestinationFilename>%Skin%\Xface\File Explorer_dialog.xml</DestinationFilename> - </FileItem> - <FileItem InstallType="CopyFile" SystemFile="false" Modified="true"> - <Param1 /> - <UpdateOption>AlwaysOverwrite</UpdateOption> <LocalFileName>..\Skin\Xface\File Explorer_main.xml</LocalFileName> <ZipFileName>Installer{CopyFile}\{638f93d9-0519-41d0-a7fa-81294d990fac}-File Explorer_main.xml</ZipFileName> <DestinationFilename>%Skin%\Xface\File Explorer_main.xml</DestinationFilename> @@ -155,20 +106,6 @@ <FileItem InstallType="CopyFile" SystemFile="false" Modified="true"> <Param1 /> <UpdateOption>AlwaysOverwrite</UpdateOption> - <LocalFileName>..\Skin\Xface\File Explorer_modulepreview.xml</LocalFileName> - <ZipFileName>Installer{CopyFile}\{90a9bfb0-1961-470e-848e-e51f3d0529f6}-File Explorer_modulepreview.xml</ZipFileName> - <DestinationFilename>%Skin%\Xface\File Explorer_modulepreview.xml</DestinationFilename> - </FileItem> - <FileItem InstallType="CopyFile" SystemFile="false" Modified="true"> - <Param1 /> - <UpdateOption>AlwaysOverwrite</UpdateOption> - <LocalFileName>..\Skin\Xface\File Explorer_musicpreview.xml</LocalFileName> - <ZipFileName>Installer{CopyFile}\{5195f55e-387f-47c6-b182-9e58045c9ced}-File Explorer_musicpreview.xml</ZipFileName> - <DestinationFilename>%Skin%\Xface\File Explorer_musicpreview.xml</DestinationFilename> - </FileItem> - <FileItem InstallType="CopyFile" SystemFile="false" Modified="true"> - <Param1 /> - <UpdateOption>AlwaysOverwrite</UpdateOption> <LocalFileName>..\Skin\Xface\Media\hover_file explorer.png</LocalFileName> <ZipFileName>Installer{CopyFile}\{a0583ba8-7b6f-464a-b981-e13640ec7605}-hover_file explorer.png</ZipFileName> <DestinationFilename>%Skin%\Xface\Media\hover_file explorer.png</DestinationFilename> @@ -455,7 +392,7 @@ <UpdateOption>AlwaysOverwrite</UpdateOption> <LocalFileName>..\Compression\Release\Compression.dll</LocalFileName> <ZipFileName>Installer{CopyFile}\{6ad4479e-a4ef-424d-bb10-5dfc366bdf97}-Compression.dll</ZipFileName> - <DestinationFilename>%Plugins%\Windows\Compression\Compression.dll</DestinationFilename> + <DestinationFilename>%Plugins%\Windows\Compression.dll</DestinationFilename> </FileItem> <FileItem InstallType="CopyFile" SystemFile="false" Modified="true"> <Param1 /> @@ -474,13 +411,6 @@ <FileItem InstallType="CopyFile" SystemFile="false" Modified="true"> <Param1 /> <UpdateOption>AlwaysOverwrite</UpdateOption> - <LocalFileName>..\Skin\Blue3\File Explorer_dialog.xml</LocalFileName> - <ZipFileName>Installer{CopyFile}\{55884b5d-2ef9-47ab-858f-8dfcbf4e11cf}-File Explorer_dialog.xml</ZipFileName> - <DestinationFilename>%Skin%\Blue3\File Explorer_dialog.xml</DestinationFilename> - </FileItem> - <FileItem InstallType="CopyFile" SystemFile="false" Modified="true"> - <Param1 /> - <UpdateOption>AlwaysOverwrite</UpdateOption> <LocalFileName>..\Skin\Blue3\File Explorer_main.xml</LocalFileName> <ZipFileName>Installer{CopyFile}\{d8f279b1-156f-42ea-9521-df306497502d}-File Explorer_main.xml</ZipFileName> <DestinationFilename>%Skin%\Blue3\File Explorer_main.xml</DestinationFilename> @@ -488,20 +418,6 @@ <FileItem InstallType="CopyFile" SystemFile="false" Modified="true"> <Param1 /> <UpdateOption>AlwaysOverwrite</UpdateOption> - <LocalFileName>..\Skin\Blue3\File Explorer_modulepreview.xml</LocalFileName> - <ZipFileName>Installer{CopyFile}\{e6dff945-da79-410d-a427-1bfabfac62bb}-File Explorer_modulepreview.xml</ZipFileName> - <DestinationFilename>%Skin%\Blue3\File Explorer_modulepreview.xml</DestinationFilename> - </FileItem> - <FileItem InstallType="CopyFile" SystemFile="false" Modified="true"> - <Param1 /> - <UpdateOption>AlwaysOverwrite</UpdateOption> - <LocalFileName>..\Skin\Blue3\File Explorer_musicpreview.xml</LocalFileName> - <ZipFileName>Installer{CopyFile}\{0b5e1eb7-ab42-4f27-8a35-140dcdf19542}-File Explorer_musicpreview.xml</ZipFileName> - <DestinationFilename>%Skin%\Blue3\File Explorer_musicpreview.xml</DestinationFilename> - </FileItem> - <FileItem InstallType="CopyFile" SystemFile="false" Modified="true"> - <Param1 /> - <UpdateOption>AlwaysOverwrite</UpdateOption> <LocalFileName>..\Skin\Blue3wide\File Explorer_textpreview.xml</LocalFileName> <ZipFileName>Installer{CopyFile}\{5112db06-7ae0-4462-bd84-7667667bcbdf}-File Explorer_textpreview.xml</ZipFileName> <DestinationFilename>%Skin%\Blue3wide\File Explorer_textpreview.xml</DestinationFilename> @@ -509,13 +425,6 @@ <FileItem InstallType="CopyFile" SystemFile="false" Modified="true"> <Param1 /> <UpdateOption>AlwaysOverwrite</UpdateOption> - <LocalFileName>..\Skin\Blue3wide\File Explorer_dialog.xml</LocalFileName> - <ZipFileName>Installer{CopyFile}\{537822ea-1129-491c-86f2-10155e8dc99f}-File Explorer_dialog.xml</ZipFileName> - <DestinationFilename>%Skin%\Blue3wide\File Explorer_dialog.xml</DestinationFilename> - </FileItem> - <FileItem InstallType="CopyFile" SystemFile="false" Modified="true"> - <Param1 /> - <UpdateOption>AlwaysOverwrite</UpdateOption> <LocalFileName>..\Skin\Blue3wide\File Explorer_main.xml</LocalFileName> <ZipFileName>Installer{CopyFile}\{993c58e6-a784-41ba-949e-612bb371447b}-File Explorer_main.xml</ZipFileName> <DestinationFilename>%Skin%\Blue3wide\File Explorer_main.xml</DestinationFilename> @@ -523,20 +432,6 @@ <FileItem InstallType="CopyFile" SystemFile="false" Modified="true"> <Param1 /> <UpdateOption>AlwaysOverwrite</UpdateOption> - <LocalFileName>..\Skin\Blue3wide\File Explorer_modulepreview.xml</LocalFileName> - <ZipFileName>Installer{CopyFile}\{06d04be0-cdb0-4259-83a9-04bf67a9124d}-File Explorer_modulepreview.xml</ZipFileName> - <DestinationFilename>%Skin%\Blue3wide\File Explorer_modulepreview.xml</DestinationFilename> - </FileItem> - <FileItem InstallType="CopyFile" SystemFile="false" Modified="true"> - <Param1 /> - <UpdateOption>AlwaysOverwrite</UpdateOption> - <LocalFileName>..\Skin\Blue3wide\File Explorer_musicpreview.xml</LocalFileName> - <ZipFileName>Installer{CopyFile}\{c5cb594e-2b83-456a-9e43-fc4bcbef2b27}-File Explorer_musicpreview.xml</ZipFileName> - <DestinationFilename>%Skin%\Blue3wide\File Explorer_musicpreview.xml</DestinationFilename> - </FileItem> - <FileItem InstallType="CopyFile" SystemFile="false" Modified="true"> - <Param1 /> - <UpdateOption>AlwaysOverwrite</UpdateOption> <LocalFileName>..\Skin\Xface\File Explorer_textpreview.xml</LocalFileName> <ZipFileName>Installer{CopyFile}\{a6fb338a-59a4-40b7-8716-d8fdc13e78c8}-File Explorer_textpreview.xml</ZipFileName> <DestinationFilename>%Skin%\Xface\File Explorer_textpreview.xml</DestinationFilename> @@ -551,13 +446,6 @@ <FileItem InstallType="CopyFile" SystemFile="false" Modified="true"> <Param1 /> <UpdateOption>AlwaysOverwrite</UpdateOption> - <LocalFileName>..\Skin\Xface\File Explorer_dialog.xml</LocalFileName> - <ZipFileName>Installer{CopyFile}\{63269080-7b9c-47d4-b8f2-f80c541a0621}-File Explorer_dialog.xml</ZipFileName> - <DestinationFilename>%Skin%\Xface\File Explorer_dialog.xml</DestinationFilename> - </FileItem> - <FileItem InstallType="CopyFile" SystemFile="false" Modified="true"> - <Param1 /> - <UpdateOption>AlwaysOverwrite</UpdateOption> <LocalFileName>..\Skin\Xface\File Explorer_main.xml</LocalFileName> <ZipFileName>Installer{CopyFile}\{638f93d9-0519-41d0-a7fa-81294d990fac}-File Explorer_main.xml</ZipFileName> <DestinationFilename>%Skin%\Xface\File Explorer_main.xml</DestinationFilename> @@ -565,20 +453,6 @@ <FileItem InstallType="CopyFile" SystemFile="false" Modified="true"> <Param1 /> <UpdateOption>AlwaysOverwrite</UpdateOption> - <LocalFileName>..\Skin\Xface\File Explorer_modulepreview.xml</LocalFileName> - <ZipFileName>Installer{CopyFile}\{90a9bfb0-1961-470e-848e-e51f3d0529f6}-File Explorer_modulepreview.xml</ZipFileName> - <DestinationFilename>%Skin%\Xface\File Explorer_modulepreview.xml</DestinationFilename> - </FileItem> - <FileItem InstallType="CopyFile" SystemFile="false" Modified="true"> - <Param1 /> - <UpdateOption>AlwaysOverwrite</UpdateOption> - <LocalFileName>..\Skin\Xface\File Explorer_musicpreview.xml</LocalFileName> - <ZipFileName>Installer{CopyFile}\{5195f55e-387f-47c6-b182-9e58045c9ced}-File Explorer_musicpreview.xml</ZipFileName> - <DestinationFilename>%Skin%\Xface\File Explorer_musicpreview.xml</DestinationFilename> - </FileItem> - <FileItem InstallType="CopyFile" SystemFile="false" Modified="true"> - <Param1 /> - <UpdateOption>AlwaysOverwrite</UpdateOption> <LocalFileName>..\Skin\Xface\Media\hover_file explorer.png</LocalFileName> <ZipFileName>Installer{CopyFile}\{a0583ba8-7b6f-464a-b981-e13640ec7605}-hover_file explorer.png</ZipFileName> <DestinationFilename>%Skin%\Xface\Media\hover_file explorer.png</DestinationFilename> @@ -629,7 +503,7 @@ <Param1 /> <UpdateOption>OverwriteIfOlder</UpdateOption> <LocalFileName>..\file_explorer.png</LocalFileName> - <ZipFileName>Installer{CopyFile}\{4e67cb0d-187a-4bee-829d-f50145c4b969}-file_explorer.png</ZipFileName> + <ZipFileName>Installer{CopyFile}\{2eec99a4-cede-4b95-a5e1-7f43ba9bcc13}-file_explorer.png</ZipFileName> <DestinationFilename /> </FileItem> </Items> Deleted: trunk/plugins/File Explorer/Skin/Blue3/File Explorer_dialog.xml =================================================================== --- trunk/plugins/File Explorer/Skin/Blue3/File Explorer_dialog.xml 2010-08-09 11:17:30 UTC (rev 3707) +++ trunk/plugins/File Explorer/Skin/Blue3/File Explorer_dialog.xml 2010-08-10 16:13:12 UTC (rev 3708) @@ -1,46 +0,0 @@ -<window> - <id>557316</id> - <defaultcontrol>10</defaultcontrol> - <allowoverlay>no</allowoverlay> - <controls> - <control> - <type>image</type> - <id>0</id> - <posX>177</posX> - <posY>225</posY> - <width>409</width> - <height>202</height> - <texture>dialog_background.png</texture> - </control> - <control> - <description>dialog Heading</description> - <type>fadelabel</type> - <id>2</id> - <posX>190</posX> - <posY>230</posY> - <label>0</label> - <font>font13</font> - <textcolor>ffffffff</textcolor> - </control> - <control> - <description>dialog line 1</description> - <type>fadelabel</type> - <id>3</id> - <posX>190</posX> - <posY>260</posY> - <label>0</label> - <font>font13</font> - <textcolor>ffffffff</textcolor> - </control> - <control> - <description>dialog line 2</description> - <type>fadelabel</type> - <id>4</id> - <posX>190</posX> - <posY>280</posY> - <label>0</label> - <font>font13</font> - <textcolor>ffffffff</textcolor> - </control> - </controls> -</window> Deleted: trunk/plugins/File Explorer/Skin/Blue3/File Explorer_modulepreview.xml =================================================================== --- trunk/plugins/File Explorer/Skin/Blue3/File Explorer_modulepreview.xml 2010-08-09 11:17:30 UTC (rev 3707) +++ trunk/plugins/File Explorer/Skin/Blue3/File Explorer_modulepreview.xml 2010-08-10 16:13:12 UTC (rev 3708) @@ -1,64 +0,0 @@ -<window> - <id>557313</id> - <defaultcontrol>10</defaultcontrol> - <allowoverlay>no</allowoverlay> - <controls> - <control> - <type>image</type> - <id>0</id> - <posX>177</posX> - <posY>225</posY> - <width>409</width> - <height>202</height> - <texture>dialog_background.png</texture> - </control> - <control> - <description>dialog Heading</description> - <type>label</type> - <id>2</id> - <posX>190</posX> - <posY>230</posY> - <label></label> - <font>font13</font> - <textcolor>ffffffff</textcolor> - </control> - <control> - <description>dialog line 1</description> - <type>label</type> - <id>3</id> - <posX>190</posX> - <posY>260</posY> - <label></label> - <font>font13</font> - <textcolor>ffffffff</textcolor> - </control> - <control> - <description>dialog line 2</description> - <type>label</type> - <id>4</id> - <posX>190</posX> - <posY>280</posY> - <label></label> - <font>font13</font> - <textcolor>ffffffff</textcolor> - </control> - <control> - <description>OK button</description> - <type>button</type> - <id>10</id> - <posX>435</posX> - <posY>355</posY> - <textXOff>10</textXOff> - <textYOff>7</textYOff> - <width>105</width> - <height>38</height> - <textureFocus>small_button_focus.png</textureFocus> - <textureNoFocus>small_button_nofocus.png</textureNoFocus> - <label>186</label> - <onleft>10</onleft> - <onright>10</onright> - <onup>10</onup> - <ondown>10</ondown> - </control> - </controls> -</window> Deleted: trunk/plugins/File Explorer/Skin/Blue3/File Explorer_musicpreview.xml =================================================================== --- trunk/plugins/File Explorer/Skin/Blue3/File Explorer_musicpreview.xml 2010-08-09 11:17:30 UTC (rev 3707) +++ trunk/plugins/File Explorer/Skin/Blue3/File Explorer_musicpreview.xml 2010-08-10 16:13:12 UTC (rev 3708) @@ -1,64 +0,0 @@ -<window> - <id>557314</id> - <defaultcontrol>10</defaultcontrol> - <allowoverlay>no</allowoverlay> - <controls> - <control> - <type>image</type> - <id>0</id> - <posX>177</posX> - <posY>225</posY> - <width>409</width> - <height>202</height> - <texture>dialog_background.png</texture> - </control> - <control> - <description>dialog Heading</description> - <type>label</type> - <id>2</id> - <posX>190</posX> - <posY>230</posY> - <label></label> - <font>font13</font> - <textcolor>ffffffff</textcolor> - </control> - <control> - <description>dialog line 1</description> - <type>label</type> - <id>3</id> - <posX>190</posX> - <posY>260</posY> - <label></label> - <font>font13</font> - <textcolor>ffffffff</textcolor> - </control> - <control> - <description>dialog line 2</description> - <type>label</type> - <id>4</id> - <posX>190</posX> - <posY>280</posY> - <label></label> - <font>font13</font> - <textcolor>ffffffff</textcolor> - </control> - <control> - <description>OK button</description> - <type>button</type> - <id>10</id> - <posX>435</posX> - <posY>355</posY> - <textXOff>10</textXOff> - <textYOff>7</textYOff> - <width>105</width> - <height>38</height> - <textureFocus>small_button_focus.png</textureFocus> - <textureNoFocus>small_button_nofocus.png</textureNoFocus> - <label>186</label> - <onleft>10</onleft> - <onright>10</onright> - <onup>10</onup> - <ondown>10</ondown> - </control> - </controls> -</window> Deleted: trunk/plugins/File Explorer/Skin/Blue3wide/File Explorer_dialog.xml =================================================================== --- trunk/plugins/File Explorer/Skin/Blue3wide/File Explorer_dialog.xml 2010-08-09 11:17:30 UTC (rev 3707) +++ trunk/plugins/File Explorer/Skin/Blue3wide/File Explorer_dialog.xml 2010-08-10 16:13:12 UTC (rev 3708) @@ -1,46 +0,0 @@ -<window> - <id>557316</id> - <defaultcontrol>10</defaultcontrol> - <allowoverlay>no</allowoverlay> - <controls> - <control> - <type>image</type> - <id>0</id> - <posX>177</posX> - <posY>225</posY> - <width>409</width> - <height>202</height> - <texture>dialog_background.png</texture> - </control> - <control> - <description>dialog Heading</description> - <type>fadelabel</type> - <id>2</id> - <posX>190</posX> - <posY>230</posY> - <label>0</label> - <font>font13</font> - <textcolor>ffffffff</textcolor> - </control> - <control> - <description>dialog line 1</description> - <type>fadelabel</type> - <id>3</id> - <posX>190</posX> - <posY>260</posY> - <label>0</label> - <font>font13</font> - <textcolor>ffffffff</textcolor> - </control> - <control> - <description>dialog line 2</description> - <type>fadelabel</type> - <id>4</id> - <posX>190</posX> - <posY>280</posY> - <label>0</label> - <font>font13</font> - <textcolor>ffffffff</textcolor> - </control> - </controls> -</window> Deleted: trunk/plugins/File Explorer/Skin/Blue3wide/File Explorer_modulepreview.xml =================================================================== --- trunk/plugins/File Explorer/Skin/Blue3wide/File Explorer_modulepreview.xml 2010-08-09 11:17:30 UTC (rev 3707) +++ trunk/plugins/File Explorer/Skin/Blue3wide/File Explorer_modulepreview.xml 2010-08-10 16:13:12 UTC (rev 3708) @@ -1,64 +0,0 @@ -<window> - <id>557313</id> - <defaultcontrol>10</defaultcontrol> - <allowoverlay>no</allowoverlay> - <controls> - <control> - <type>image</type> - <id>0</id> - <posX>177</posX> - <posY>225</posY> - <width>409</width> - <height>202</height> - <texture>dialog_background.png</texture> - </control> - <control> - <description>dialog Heading</description> - <type>label</type> - <id>2</id> - <posX>190</posX> - <posY>230</posY> - <label></label> - <font>font13</font> - <textcolor>ffffffff</textcolor> - </control> - <control> - <description>dialog line 1</description> - <type>label</type> - <id>3</id> - <posX>190</posX> - <posY>260</posY> - <label></label> - <font>font13</font> - <textcolor>ffffffff</textcolor> - </control> - <control> - <description>dialog line 2</description> - <type>label</type> - <id>4</id> - <posX>190</posX> - <posY>280</posY> - <label></label> - <font>font13</font> - <textcolor>ffffffff</textcolor> - </control> - <control> - <description>OK button</description> - <type>button</type> - <id>10</id> - <posX>435</posX> - <posY>355</posY> - <textXOff>10</textXOff> - <textYOff>7</textYOff> - <width>105</width> - <height>38</height> - <textureFocus>small_button_focus.png</textureFocus> - <textureNoFocus>small_button_nofocus.png</textureNoFocus> - <label>186</label> - <onleft>10</onleft> - <onright>10</onright> - <onup>10</onup> - <ondown>10</ondown> - </control> - </controls> -</window> Deleted: trunk/plugins/File Explorer/Skin/Blue3wide/File Explorer_musicpreview.xml =================================================================== --- trunk/plugins/File Explorer/Skin/Blue3wide/File Explorer_musicpreview.xml 2010-08-09 11:17:30 UTC (rev 3707) +++ trunk/plugins/File Explorer/Skin/Blue3wide/File Explorer_musicpreview.xml 2010-08-10 16:13:12 UTC (rev 3708) @@ -1,64 +0,0 @@ -<window> - <id>557314</id> - <defaultcontrol>10</defaultcontrol> - <allowoverlay>no</allowoverlay> - <controls> - <control> - <type>image</type> - <id>0</id> - <posX>177</posX> - <posY>225</posY> - <width>409</width> - <height>202</height> - <texture>dialog_background.png</texture> - </control> - <control> - <description>dialog Heading</description> - <type>label</type> - <id>2</id> - <posX>190</posX> - <posY>230</posY> - <label></label> - <font>font13</font> - <textcolor>ffffffff</textcolor> - </control> - <control> - <description>dialog line 1</description> - <type>label</type> - <id>3</id> - <posX>190</posX> - <posY>260</posY> - <label></label> - <font>font13</font> - <textcolor>ffffffff</textcolor> - </control> - <control> - <description>dialog line 2</description> - <type>label</type> - <id>4</id> - <posX>190</posX> - <posY>280</posY> - <label></label> - <font>font13</font> - <textcolor>ffffffff</textcolor> - </control> - <control> - <description>OK button</description> - <type>button</type> - <id>10</id> - <posX>435</posX> - <posY>355</posY> - <textXOff>10</textXOff> - <textYOff>7</textYOff> - <width>105</width> - <height>38</height> - <textureFocus>small_button_focus.png</textureFocus> - <textureNoFocus>small_button_nofocus.png</textureNoFocus> - <label>186</label> - <onleft>10</onleft> - <onright>10</onright> - <onup>10</onup> - <ondown>10</ondown> - </control> - </controls> -</window> Deleted: trunk/plugins/File Explorer/Skin/BlueTwo/File Explorer_dialog.xml =================================================================== --- trunk/plugins/File Explorer/Skin/BlueTwo/File Explorer_dialog.xml 2010-08-09 11:17:30 UTC (rev 3707) +++ trunk/plugins/File Explorer/Skin/BlueTwo/File Explorer_dialog.xml 2010-08-10 16:13:12 UTC (rev 3708) @@ -1,46 +0,0 @@ -<window> - <id>557316</id> - <defaultcontrol>10</defaultcontrol> - <allowoverlay>no</allowoverlay> - <controls> - <control> - <type>image</type> - <id>0</id> - <posX>177</posX> - <posY>225</posY> - <width>409</width> - <height>202</height> - <texture>dialog_background.png</texture> - </control> - <control> - <description>dialog Heading</description> - <type>fadelabel</type> - <id>2</id> - <posX>190</posX> - <posY>230</posY> - <label>0</label> - <font>font13</font> - <textcolor>ffffffff</textcolor> - </control> - <control> - <description>dialog line 1</description> - <type>fadelabel</type> - <id>3</id> - <posX>190</posX> - <posY>260</posY> - <label>0</label> - <font>font13</font> - <textcolor>ffffffff</textcolor> - </control> - <control> - <description>dialog line 2</description> - <type>fadelabel</type> - <id>4</id> - <posX>190</posX> - <posY>280</posY> - <label>0</label> - <font>font13</font> - <textcolor>ffffffff</textcolor> - </control> - </controls> -</window> Deleted: trunk/plugins/File Explorer/Skin/BlueTwo/File Explorer_modulepreview.xml =================================================================== --- trunk/plugins/File Explorer/Skin/BlueTwo/File Explorer_modulepreview.xml 2010-08-09 11:17:30 UTC (rev 3707) +++ trunk/plugins/File Explorer/Skin/BlueTwo/File Explorer_modulepreview.xml 2010-08-10 16:13:12 UTC (rev 3708) @@ -1,64 +0,0 @@ -<window> - <id>557313</id> - <defaultcontrol>10</defaultcontrol> - <allowoverlay>no</allowoverlay> - <controls> - <control> - <type>image</type> - <id>0</id> - <posX>177</posX> - <posY>225</posY> - <width>409</width> - <height>202</height> - <texture>dialog_background.png</texture> - </control> - <control> - <description>dialog Heading</description> - <type>label</type> - <id>2</id> - <posX>190</posX> - <posY>230</posY> - <label></label> - <font>font13</font> - <textcolor>ffffffff</textcolor> - </control> - <control> - <description>dialog line 1</description> - <type>label</type> - <id>3</id> - <posX>190</posX> - <posY>260</posY> - <label></label> - <font>font13</font> - <textcolor>ffffffff</textcolor> - </control> - <control> - <description>dialog line 2</description> - <type>label</type> - <id>4</id> - <posX>190</posX> - <posY>280</posY> - <label></label> - <font>font13</font> - <textcolor>ffffffff</textcolor> - </control> - <control> - <description>OK button</description> - <type>button</type> - <id>10</id> - <posX>435</posX> - <posY>355</posY> - <textXOff>10</textXOff> - <textYOff>7</textYOff> - <width>105</width> - <height>38</height> - <textureFocus>small_button_focus.png</textureFocus> - <textureNoFocus>small_button_nofocus.png</textureNoFocus> - <label>186</label> - <onleft>10</onleft> - <onright>10</onright> - <onup>10</onup> - <ondown>10</ondown> - </control> - </controls> -</window> Deleted: trunk/plugins/File Explorer/Skin/BlueTwo/File Explorer_musicpreview.xml =================================================================== --- trunk/plugins/File Explorer/Skin/BlueTwo/File Explorer_musicpreview.xml 2010-08-09 11:17:30 UTC (rev 3707) +++ trunk/plugins/File Explorer/Skin/BlueTwo/File Explorer_musicpreview.xml 2010-08-10 16:13:12 UTC (rev 3708) @@ -1,64 +0,0 @@ -<window> - <id>557314</id> - <defaultcontrol>10</defaultcontrol> - <allowoverlay>no</allowoverlay> - <controls> - <control> - <type>image</type> - <id>0</id> - <posX>177</posX> - <posY>225</posY> - <width>409</width> - <height>202</height> - <texture>dialog_background.png</texture> - </control> - <control> - <description>dialog Heading</description> - <type>label</type> - <id>2</id> - <posX>190</posX> - <posY>230</posY> - <label></label> - <font>font13</font> - <textcolor>ffffffff</textcolor> - </control> - <control> - <description>dialog line 1</description> - <type>label</type> - <id>3</id> - <posX>190</posX> - <posY>260</posY> - <label></label> - <font>font13</font> - <textcolor>ffffffff</textcolor> - </control> - <control> - <description>dialog line 2</description> - <type>label</type> - <id>4</id> - <posX>190</posX> - <posY>280</posY> - <label></label> - <font>font13</font> - <textcolor>ffffffff</textcolor> - </control> - <control> - <description>OK button</description> - <type>button</type> - <id>10</id> - <posX>435</posX> - <posY>355</posY> - <textXOff>10</textXOff> - <textYOff>7</textYOff> - <width>105</width> - <height>38</height> - <textureFocus>small_button_focus.png</textureFocus> - <textureNoFocus>small_button_nofocus.png</textureNoFocus> - <label>186</label> - <onleft>10</onleft> - <onright>10</onright> - <onup>10</onup> - <ondown>10</ondown> - </control> - </controls> -</window> Deleted: trunk/plugins/File Explorer/Skin/Xface/File Explorer_dialog.xml =================================================================== --- trunk/plugins/File Explorer/Skin/Xface/File Explorer_dialog.xml 2010-08-09 11:17:30 UTC (rev 3707) +++ trunk/plugins/File Explorer/Skin/Xface/File Explorer_dialog.xml 2010-08-10 16:13:12 UTC (rev 3708) @@ -1,46 +0,0 @@ -<window> - <id>557316</id> - <defaultcontrol>10</defaultcontrol> - <allowoverlay>no</allowoverlay> - <controls> - <control> - <type>image</type> - <id>0</id> - <posX>177</posX> - <posY>225</posY> - <width>409</width> - <height>202</height> - <texture>dialog_background.png</texture> - </control> - <control> - <description>dialog Heading</description> - <type>fadelabel</type> - <id>2</id> - <posX>190</posX> - <posY>230</posY> - <label>0</label> - <font>font13</font> - <textcolor>ffffffff</textcolor> - </control> - <control> - <description>dialog line 1</description> - <type>fadelabel</type> - <id>3</id> - <posX>190</posX> - <posY>260</posY> - <label>0</label> - <font>font13</font> - <textcolor>ffffffff</textcolor> - </control> - <control> - <description>dialog line 2</description> - <type>fadelabel</type> - <id>4</id> - <posX>190</posX> - <posY>280</posY> - <label>0</label> - <font>font13</font> - <textcolor>ffffffff</textcolor> - </control> - </controls> -</window> Deleted: trunk/plugins/File Explorer/Skin/Xface/File Explorer_modulepreview.xml =================================================================== --- trunk/plugins/File Explorer/Skin/Xface/File Explorer_modulepreview.xml 2010-08-09 11:17:30 UTC (rev 3707) +++ trunk/plugins/File Explorer/Skin/Xface/File Explorer_modulepreview.xml 2010-08-10 16:13:12 UTC (rev 3708) @@ -1,64 +0,0 @@ -<window> - <id>557313</id> - <defaultcontrol>10</defaultcontrol> - <allowoverlay>no</allowoverlay> - <controls> - <control> - <type>image</type> - <id>0</id> - <posX>177</posX> - <posY>225</posY> - <width>409</width> - <height>202</height> - <texture>dialog_background.png</texture> - </control> - <control> - <description>dialog Heading</description> - <type>label</type> - <id>2</id> - <posX>190</posX> - <posY>230</posY> - <label></label> - <font>font13</font> - <textcolor>ffffffff</textcolor> - </control> - <control> - <description>dialog line 1</description> - <type>label</type> - <id>3</id> - <posX>190</posX> - <posY>260</posY> - <label></label> - <font>font13</font> - <textcolor>ffffffff</textcolor> - </control> - <control> - <description>dialog line 2</description> - <type>label</type> - <id>4</id> - <posX>190</posX> - <posY>280</posY> - <label></label> - <font>font13</font> - <textcolor>ffffffff</textcolor> - </control> - <control> - <description>OK button</description> - <type>button</type> - <id>10</id> - <posX>435</posX> - <posY>355</posY> - <textXOff>10</textXOff> - <textYOff>7</textYOff> - <width>105</width> - <height>38</height> - <textureFocus>small_button_focus.png</textureFocus> - <textureNoFocus>small_button_nofocus.png</textureNoFocus> - <label>186</label> - <onleft>10</onleft> - <onright>10</onright> - <onup>10</onup> - <ondown>10</ondown> - </control> - </controls> -</window> Deleted: trunk/plugins/File Explorer/Skin/Xface/File Explorer_musicpreview.xml =================================================================== --- trunk/plugins/File Explorer/Skin/Xface/File Explorer_musicpreview.xml 2010-08-09 11:17:30 UTC (rev 3707) +++ trunk/plugins/File Explorer/Skin/Xface/File Explorer_musicpreview.xml 2010-08-10 16:13:12 UTC (rev 3708) @@ -1,64 +0,0 @@ -<window> - <id>557314</id> - <defaultcontrol>10</defaultcontrol> - <allowoverlay>no</allowoverlay> - <controls> - <control> - <type>image</type> - <id>0</id> - <posX>177</posX> - <posY>225</posY> - <width>409</width> - <height>202</height> - <texture>dialog_background.png</texture> - </control> - <control> - <description>dialog Heading</description> - <type>label</type> - <id>2</id> - <posX>190</posX> - <posY>230</posY> - <label></label> - <font>font13</font> - <textcolor>ffffffff</textcolor> - </control> - <control> - <description>dialog line 1</description> - <type>label</type> - <id>3</id> - <posX>190</posX> - <posY>260</posY> - <label></label> - <font>font13</font> - <textcolor>ffffffff</textcolor> - </control> - <control> - <description>dialog line 2</description> - <type>label</type> - <id>4</id> - <posX>190</posX> - <posY>280</posY> - <label></label> - <font>font13</font> - <textcolor>ffffffff</textcolor> - </control> - <control> - <description>OK button</description> - <type>button</type> - <id>10</id> - <posX>435</posX> - <posY>355</posY> - <textXOff>10</textXOff> - <textYOff>7</textYOff> - <width>105</width> - <height>38</height> - <textureFocus>small_button_focus.png</textureFocus> - <textureNoFocus>small_button_nofocus.png</textureNoFocus> - <label>186</label> - <onleft>10</onleft> - <onright>10</onright> - <onup>10</onup> - <ondown>10</ondown> - </control> - </controls> -</window> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <Sil...@us...> - 2010-08-11 12:11:34
|
Revision: 3709 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=3709&view=rev Author: SilentException Date: 2010-08-11 12:11:27 +0000 (Wed, 11 Aug 2010) Log Message: ----------- FileExplorer - reverted some changes from r3708 - fixed display of picture files (using slide show) - updated version info to 1.5 Modified Paths: -------------- trunk/plugins/File Explorer/Dialogs/GUIDialogOperation.cs trunk/plugins/File Explorer/DrivesView.cs trunk/plugins/File Explorer/File Explorer.csproj trunk/plugins/File Explorer/Properties/AssemblyInfo.cs Added Paths: ----------- trunk/plugins/File Explorer/Skin/Blue3/File Explorer_dialog.xml trunk/plugins/File Explorer/Skin/Blue3wide/File Explorer_dialog.xml trunk/plugins/File Explorer/Skin/BlueTwo/File Explorer_dialog.xml trunk/plugins/File Explorer/Skin/Xface/File Explorer_dialog.xml Modified: trunk/plugins/File Explorer/Dialogs/GUIDialogOperation.cs =================================================================== --- trunk/plugins/File Explorer/Dialogs/GUIDialogOperation.cs 2010-08-10 16:13:12 UTC (rev 3708) +++ trunk/plugins/File Explorer/Dialogs/GUIDialogOperation.cs 2010-08-11 12:11:27 UTC (rev 3709) @@ -433,6 +433,11 @@ set { base.GetID = value; } } + public override bool Init() + { + return Load(GUIGraphicsContext.Skin + "\\File Explorer_dialog.xml"); + } + public override void OnAction(Action action) { if (action.wID == Action.ActionType.ACTION_CLOSE_DIALOG || action.wID == Action.ActionType.ACTION_PREVIOUS_MENU) Modified: trunk/plugins/File Explorer/DrivesView.cs =================================================================== --- trunk/plugins/File Explorer/DrivesView.cs 2010-08-10 16:13:12 UTC (rev 3708) +++ trunk/plugins/File Explorer/DrivesView.cs 2010-08-11 12:11:27 UTC (rev 3709) @@ -33,6 +33,7 @@ using FileIO = Microsoft.VisualBasic.FileIO; using System.Runtime.InteropServices; using MediaPortal.Configuration; +using MediaPortal.GUI.Pictures; namespace FileExplorer { @@ -2548,7 +2549,39 @@ dlgOK.DoModal(GUIWindowManager.ActiveWindow); } } + } + #endregion + #region Picture display + private void OnShowPicture(string strFile) + { + GUISlideShow SlideShow = (GUISlideShow)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_SLIDESHOW); + if (SlideShow == null) + { + return; + } + + SlideShow.Reset(); + SlideShow.Add(strFile); + /* + for (int i = 0; i < GetItemCount(); ++i) + { + GUIListItem item = GetItem(i); + if (!item.IsFolder) + { + if (item.IsRemote) + { + continue; + } + SlideShow.Add(item.Path); + } + } + */ + if (SlideShow.Count > 0) + { + GUIWindowManager.ActivateWindow((int)GUIWindow.Window.WINDOW_SLIDESHOW); + SlideShow.Select(strFile); + } } #endregion #endregion @@ -2679,8 +2712,9 @@ if (e.ToLower().Trim().Equals(ext)) { //MediaPortal.Player.g_Player.Play(info.File.Path + "\\" + info.File.Name); - MediaPortal.Player.g_Player.Play(CombinePathAndFilename(info.File.Path, info.File.Name)); - MediaPortal.Player.g_Player.ShowFullScreenWindow(); + //MediaPortal.Player.g_Player.Play(CombinePathAndFilename(info.File.Path, info.File.Name)); + //MediaPortal.Player.g_Player.ShowFullScreenWindow(); + OnShowPicture(CombinePathAndFilename(info.File.Path, info.File.Name)); //GUIWindowManager.ActivateWindow((int)GUIWindow.Window.WINDOW_FULLSCREEN_VIDEO); return; } Modified: trunk/plugins/File Explorer/File Explorer.csproj =================================================================== --- trunk/plugins/File Explorer/File Explorer.csproj 2010-08-10 16:13:12 UTC (rev 3708) +++ trunk/plugins/File Explorer/File Explorer.csproj 2010-08-11 12:11:27 UTC (rev 3709) @@ -64,6 +64,11 @@ <HintPath>..\..\mediaportal\xbmc\bin\Release\Utils.dll</HintPath> <Private>False</Private> </Reference> + <Reference Include="WindowPlugins, Version=1.1.0.16062, Culture=neutral, processorArchitecture=x86"> + <SpecificVersion>False</SpecificVersion> + <HintPath>..\..\mediaportal\xbmc\bin\Release\plugins\Windows\WindowPlugins.dll</HintPath> + <Private>False</Private> + </Reference> </ItemGroup> <ItemGroup> <Compile Include="LocalizeStrings.cs" /> @@ -93,17 +98,20 @@ <Content Include="Language\strings_de.xml" /> <Content Include="Language\strings_en.xml" /> <Content Include="Language\strings_fr.xml" /> + <Content Include="Skin\Blue3wide\File Explorer_dialog.xml" /> <Content Include="Skin\Blue3wide\File Explorer_main.xml" /> <Content Include="Skin\Blue3wide\File Explorer_textpreview.xml" /> <Content Include="Skin\Blue3wide\Media\buttonNF_file explorer.png" /> <Content Include="Skin\Blue3wide\Media\button_file explorer.png" /> <Content Include="Skin\Blue3wide\Media\hover_file explorer.png" /> + <Content Include="Skin\Blue3\File Explorer_dialog.xml" /> <Content Include="Skin\Blue3\File Explorer_main.xml" /> <Content Include="Skin\Blue3\File Explorer_textpreview.xml" /> <Content Include="Skin\Blue3\Media\buttonNF_file explorer.png" /> <Content Include="Skin\Blue3\Media\button_file explorer.png" /> <Content Include="Skin\Blue3\Media\hover_file explorer.png" /> <Content Include="Skin\Xface\common.window.file_explorer.xml" /> + <Content Include="Skin\Xface\File Explorer_dialog.xml" /> <Content Include="Skin\Xface\File Explorer_main.xml" /> <Content Include="Skin\Xface\File Explorer_textpreview.xml" /> <Content Include="Skin\Xface\Media\buttonNF_file explorer.png" /> Modified: trunk/plugins/File Explorer/Properties/AssemblyInfo.cs =================================================================== --- trunk/plugins/File Explorer/Properties/AssemblyInfo.cs 2010-08-10 16:13:12 UTC (rev 3708) +++ trunk/plugins/File Explorer/Properties/AssemblyInfo.cs 2010-08-11 12:11:27 UTC (rev 3709) @@ -28,4 +28,4 @@ // You can specify all values by your own or you can build default build and revision // numbers with the '*' character (the default): -[assembly: AssemblyVersion("1.4.0.0")] +[assembly: AssemblyVersion("1.5.0.0")] Added: trunk/plugins/File Explorer/Skin/Blue3/File Explorer_dialog.xml =================================================================== --- trunk/plugins/File Explorer/Skin/Blue3/File Explorer_dialog.xml (rev 0) +++ trunk/plugins/File Explorer/Skin/Blue3/File Explorer_dialog.xml 2010-08-11 12:11:27 UTC (rev 3709) @@ -0,0 +1,46 @@ +<window> + <id>557316</id> + <defaultcontrol>10</defaultcontrol> + <allowoverlay>no</allowoverlay> + <controls> + <control> + <type>image</type> + <id>0</id> + <posX>177</posX> + <posY>225</posY> + <width>409</width> + <height>202</height> + <texture>dialog_background.png</texture> + </control> + <control> + <description>dialog Heading</description> + <type>fadelabel</type> + <id>2</id> + <posX>190</posX> + <posY>230</posY> + <label>0</label> + <font>font13</font> + <textcolor>ffffffff</textcolor> + </control> + <control> + <description>dialog line 1</description> + <type>fadelabel</type> + <id>3</id> + <posX>190</posX> + <posY>260</posY> + <label>0</label> + <font>font13</font> + <textcolor>ffffffff</textcolor> + </control> + <control> + <description>dialog line 2</description> + <type>fadelabel</type> + <id>4</id> + <posX>190</posX> + <posY>280</posY> + <label>0</label> + <font>font13</font> + <textcolor>ffffffff</textcolor> + </control> + </controls> +</window> Added: trunk/plugins/File Explorer/Skin/Blue3wide/File Explorer_dialog.xml =================================================================== --- trunk/plugins/File Explorer/Skin/Blue3wide/File Explorer_dialog.xml (rev 0) +++ trunk/plugins/File Explorer/Skin/Blue3wide/File Explorer_dialog.xml 2010-08-11 12:11:27 UTC (rev 3709) @@ -0,0 +1,46 @@ +<window> + <id>557316</id> + <defaultcontrol>10</defaultcontrol> + <allowoverlay>no</allowoverlay> + <controls> + <control> + <type>image</type> + <id>0</id> + <posX>177</posX> + <posY>225</posY> + <width>409</width> + <height>202</height> + <texture>dialog_background.png</texture> + </control> + <control> + <description>dialog Heading</description> + <type>fadelabel</type> + <id>2</id> + <posX>190</posX> + <posY>230</posY> + <label>0</label> + <font>font13</font> + <textcolor>ffffffff</textcolor> + </control> + <control> + <description>dialog line 1</description> + <type>fadelabel</type> + <id>3</id> + <posX>190</posX> + <posY>260</posY> + <label>0</label> + <font>font13</font> + <textcolor>ffffffff</textcolor> + </control> + <control> + <description>dialog line 2</description> + <type>fadelabel</type> + <id>4</id> + <posX>190</posX> + <posY>280</posY> + <label>0</label> + <font>font13</font> + <textcolor>ffffffff</textcolor> + </control> + </controls> +</window> Added: trunk/plugins/File Explorer/Skin/BlueTwo/File Explorer_dialog.xml =================================================================== --- trunk/plugins/File Explorer/Skin/BlueTwo/File Explorer_dialog.xml (rev 0) +++ trunk/plugins/File Explorer/Skin/BlueTwo/File Explorer_dialog.xml 2010-08-11 12:11:27 UTC (rev 3709) @@ -0,0 +1,46 @@ +<window> + <id>557316</id> + <defaultcontrol>10</defaultcontrol> + <allowoverlay>no</allowoverlay> + <controls> + <control> + <type>image</type> + <id>0</id> + <posX>177</posX> + <posY>225</posY> + <width>409</width> + <height>202</height> + <texture>dialog_background.png</texture> + </control> + <control> + <description>dialog Heading</description> + <type>fadelabel</type> + <id>2</id> + <posX>190</posX> + <posY>230</posY> + <label>0</label> + <font>font13</font> + <textcolor>ffffffff</textcolor> + </control> + <control> + <description>dialog line 1</description> + <type>fadelabel</type> + <id>3</id> + <posX>190</posX> + <posY>260</posY> + <label>0</label> + <font>font13</font> + <textcolor>ffffffff</textcolor> + </control> + <control> + <description>dialog line 2</description> + <type>fadelabel</type> + <id>4</id> + <posX>190</posX> + <posY>280</posY> + <label>0</label> + <font>font13</font> + <textcolor>ffffffff</textcolor> + </control> + </controls> +</window> Added: trunk/plugins/File Explorer/Skin/Xface/File Explorer_dialog.xml =================================================================== --- trunk/plugins/File Explorer/Skin/Xface/File Explorer_dialog.xml (rev 0) +++ trunk/plugins/File Explorer/Skin/Xface/File Explorer_dialog.xml 2010-08-11 12:11:27 UTC (rev 3709) @@ -0,0 +1,46 @@ +<window> + <id>557316</id> + <defaultcontrol>10</defaultcontrol> + <allowoverlay>no</allowoverlay> + <controls> + <control> + <type>image</type> + <id>0</id> + <posX>177</posX> + <posY>225</posY> + <width>409</width> + <height>202</height> + <texture>dialog_background.png</texture> + </control> + <control> + <description>dialog Heading</description> + <type>fadelabel</type> + <id>2</id> + <posX>190</posX> + <posY>230</posY> + <label>0</label> + <font>font13</font> + <textcolor>ffffffff</textcolor> + </control> + <control> + <description>dialog line 1</description> + <type>fadelabel</type> + <id>3</id> + <posX>190</posX> + <posY>260</posY> + <label>0</label> + <font>font13</font> + <textcolor>ffffffff</textcolor> + </control> + <control> + <description>dialog line 2</description> + <type>fadelabel</type> + <id>4</id> + <posX>190</posX> + <posY>280</posY> + <label>0</label> + <font>font13</font> + <textcolor>ffffffff</textcolor> + </control> + </controls> +</window> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <fr...@us...> - 2010-08-11 19:05:21
|
Revision: 3710 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=3710&view=rev Author: framug Date: 2010-08-11 19:05:14 +0000 (Wed, 11 Aug 2010) Log Message: ----------- File Explorer : - Finish revert. - Fix skins overlaps (better one is Xface). Modified Paths: -------------- trunk/plugins/File Explorer/MpeRelease/File Explorer 1.4.0.0.xmp2 trunk/plugins/File Explorer/Skin/Blue3/File Explorer_dialog.xml trunk/plugins/File Explorer/Skin/Blue3/File Explorer_main.xml trunk/plugins/File Explorer/Skin/Blue3wide/File Explorer_dialog.xml trunk/plugins/File Explorer/Skin/Blue3wide/File Explorer_main.xml trunk/plugins/File Explorer/Skin/Xface/File Explorer_dialog.xml trunk/plugins/File Explorer/Skin/Xface/File Explorer_main.xml trunk/plugins/File Explorer/Skin/Xface/common.window.file_explorer.xml Modified: trunk/plugins/File Explorer/MpeRelease/File Explorer 1.4.0.0.xmp2 =================================================================== --- trunk/plugins/File Explorer/MpeRelease/File Explorer 1.4.0.0.xmp2 2010-08-11 12:11:27 UTC (rev 3709) +++ trunk/plugins/File Explorer/MpeRelease/File Explorer 1.4.0.0.xmp2 2010-08-11 19:05:14 UTC (rev 3710) @@ -48,6 +48,13 @@ <ZipFileName>Installer{CopyFile}\{d8f279b1-156f-42ea-9521-df306497502d}-File Explorer_main.xml</ZipFileName> <DestinationFilename>%Skin%\Blue3\File Explorer_main.xml</DestinationFilename> </FileItem> + <FileItem InstallType="CopyFile" SystemFile="false" Modified="true"> + <Param1 /> + <UpdateOption>AlwaysOverwrite</UpdateOption> + <LocalFileName>..\Skin\Blue3\File Explorer_dialog.xml</LocalFileName> + <ZipFileName>Installer{CopyFile}\{6da02ee4-9811-4adb-b542-87ad4b6f99a5}-File Explorer_dialog.xml</ZipFileName> + <DestinationFilename>%Skin%\Blue3\File Explorer_dialog.xml</DestinationFilename> + </FileItem> </Items> </Files> </GroupItem> @@ -72,6 +79,13 @@ <ZipFileName>Installer{CopyFile}\{993c58e6-a784-41ba-949e-612bb371447b}-File Explorer_main.xml</ZipFileName> <DestinationFilename>%Skin%\Blue3wide\File Explorer_main.xml</DestinationFilename> </FileItem> + <FileItem InstallType="CopyFile" SystemFile="false" Modified="true"> + <Param1 /> + <UpdateOption>AlwaysOverwrite</UpdateOption> + <LocalFileName>..\Skin\Blue3wide\File Explorer_dialog.xml</LocalFileName> + <ZipFileName>Installer{CopyFile}\{c61076bb-e04b-464e-80d6-19741f917759}-File Explorer_dialog.xml</ZipFileName> + <DestinationFilename>%Skin%\Blue3wide\File Explorer_dialog.xml</DestinationFilename> + </FileItem> </Items> </Files> </GroupItem> @@ -124,6 +138,13 @@ <ZipFileName>Installer{CopyFile}\{15f70c82-ca7e-494f-8691-191b029c3358}-buttonNF_file explorer.png</ZipFileName> <DestinationFilename>%Skin%\Xface\Media\buttonNF_file explorer.png</DestinationFilename> </FileItem> + <FileItem InstallType="CopyFile" SystemFile="false" Modified="true"> + <Param1 /> + <UpdateOption>AlwaysOverwrite</UpdateOption> + <LocalFileName>..\Skin\Xface\File Explorer_dialog.xml</LocalFileName> + <ZipFileName>Installer{CopyFile}\{b1ba6391-2fb3-4214-9ab3-fd47588503c2}-File Explorer_dialog.xml</ZipFileName> + <DestinationFilename>%Base%\File Explorer_dialog.xml</DestinationFilename> + </FileItem> </Items> </Files> </GroupItem> @@ -418,6 +439,13 @@ <FileItem InstallType="CopyFile" SystemFile="false" Modified="true"> <Param1 /> <UpdateOption>AlwaysOverwrite</UpdateOption> + <LocalFileName>..\Skin\Blue3\File Explorer_dialog.xml</LocalFileName> + <ZipFileName>Installer{CopyFile}\{6da02ee4-9811-4adb-b542-87ad4b6f99a5}-File Explorer_dialog.xml</ZipFileName> + <DestinationFilename>%Skin%\Blue3\File Explorer_dialog.xml</DestinationFilename> + </FileItem> + <FileItem InstallType="CopyFile" SystemFile="false" Modified="true"> + <Param1 /> + <UpdateOption>AlwaysOverwrite</UpdateOption> <LocalFileName>..\Skin\Blue3wide\File Explorer_textpreview.xml</LocalFileName> <ZipFileName>Installer{CopyFile}\{5112db06-7ae0-4462-bd84-7667667bcbdf}-File Explorer_textpreview.xml</ZipFileName> <DestinationFilename>%Skin%\Blue3wide\File Explorer_textpreview.xml</DestinationFilename> @@ -432,6 +460,13 @@ <FileItem InstallType="CopyFile" SystemFile="false" Modified="true"> <Param1 /> <UpdateOption>AlwaysOverwrite</UpdateOption> + <LocalFileName>..\Skin\Blue3wide\File Explorer_dialog.xml</LocalFileName> + <ZipFileName>Installer{CopyFile}\{c61076bb-e04b-464e-80d6-19741f917759}-File Explorer_dialog.xml</ZipFileName> + <DestinationFilename>%Skin%\Blue3wide\File Explorer_dialog.xml</DestinationFilename> + </FileItem> + <FileItem InstallType="CopyFile" SystemFile="false" Modified="true"> + <Param1 /> + <UpdateOption>AlwaysOverwrite</UpdateOption> <LocalFileName>..\Skin\Xface\File Explorer_textpreview.xml</LocalFileName> <ZipFileName>Installer{CopyFile}\{a6fb338a-59a4-40b7-8716-d8fdc13e78c8}-File Explorer_textpreview.xml</ZipFileName> <DestinationFilename>%Skin%\Xface\File Explorer_textpreview.xml</DestinationFilename> @@ -474,6 +509,13 @@ <FileItem InstallType="CopyFile" SystemFile="false" Modified="true"> <Param1 /> <UpdateOption>AlwaysOverwrite</UpdateOption> + <LocalFileName>..\Skin\Xface\File Explorer_dialog.xml</LocalFileName> + <ZipFileName>Installer{CopyFile}\{b1ba6391-2fb3-4214-9ab3-fd47588503c2}-File Explorer_dialog.xml</ZipFileName> + <DestinationFilename>%Base%\File Explorer_dialog.xml</DestinationFilename> + </FileItem> + <FileItem InstallType="CopyFile" SystemFile="false" Modified="true"> + <Param1 /> + <UpdateOption>AlwaysOverwrite</UpdateOption> <LocalFileName>..\Language\strings_de.xml</LocalFileName> <ZipFileName>Installer{CopyFile}\{3a2b77e4-d791-40b8-88e4-96f8d6881110}-strings_de.xml</ZipFileName> <DestinationFilename>%Language%\File Explorer\strings_de.xml</DestinationFilename> @@ -503,7 +545,7 @@ <Param1 /> <UpdateOption>OverwriteIfOlder</UpdateOption> <LocalFileName>..\file_explorer.png</LocalFileName> - <ZipFileName>Installer{CopyFile}\{2eec99a4-cede-4b95-a5e1-7f43ba9bcc13}-file_explorer.png</ZipFileName> + <ZipFileName>Installer{CopyFile}\{4505b1c8-f300-47fe-9c85-1878b3099ba1}-file_explorer.png</ZipFileName> <DestinationFilename /> </FileItem> </Items> Modified: trunk/plugins/File Explorer/Skin/Blue3/File Explorer_dialog.xml =================================================================== --- trunk/plugins/File Explorer/Skin/Blue3/File Explorer_dialog.xml 2010-08-11 12:11:27 UTC (rev 3709) +++ trunk/plugins/File Explorer/Skin/Blue3/File Explorer_dialog.xml 2010-08-11 19:05:14 UTC (rev 3710) @@ -6,7 +6,7 @@ <control> <type>image</type> <id>0</id> - <posX>177</posX> + <posX>180</posX> <posY>225</posY> <width>409</width> <height>202</height> @@ -16,8 +16,8 @@ <description>dialog Heading</description> <type>fadelabel</type> <id>2</id> - <posX>190</posX> - <posY>230</posY> + <posX>250</posX> + <posY>255</posY> <label>0</label> <font>font13</font> <textcolor>ffffffff</textcolor> @@ -26,8 +26,8 @@ <description>dialog line 1</description> <type>fadelabel</type> <id>3</id> - <posX>190</posX> - <posY>260</posY> + <posX>230</posX> + <posY>290</posY> <label>0</label> <font>font13</font> <textcolor>ffffffff</textcolor> @@ -36,8 +36,8 @@ <description>dialog line 2</description> <type>fadelabel</type> <id>4</id> - <posX>190</posX> - <posY>280</posY> + <posX>230</posX> + <posY>320</posY> <label>0</label> <font>font13</font> <textcolor>ffffffff</textcolor> Modified: trunk/plugins/File Explorer/Skin/Blue3/File Explorer_main.xml =================================================================== --- trunk/plugins/File Explorer/Skin/Blue3/File Explorer_main.xml 2010-08-11 12:11:27 UTC (rev 3709) +++ trunk/plugins/File Explorer/Skin/Blue3/File Explorer_main.xml 2010-08-11 19:05:14 UTC (rev 3710) @@ -43,7 +43,7 @@ <id>3</id> <posX>1</posX> <posY>155</posY> - <height>500</height> + <height>430</height> <width>350</width> <onright>4</onright> <onleft>11</onleft> @@ -57,7 +57,7 @@ <id>4</id> <posX>352</posX> <posY>155</posY> - <height>500</height> + <height>430</height> <width>350</width> <onright>2</onright> <onleft>3</onleft> Modified: trunk/plugins/File Explorer/Skin/Blue3wide/File Explorer_dialog.xml =================================================================== --- trunk/plugins/File Explorer/Skin/Blue3wide/File Explorer_dialog.xml 2010-08-11 12:11:27 UTC (rev 3709) +++ trunk/plugins/File Explorer/Skin/Blue3wide/File Explorer_dialog.xml 2010-08-11 19:05:14 UTC (rev 3710) @@ -6,7 +6,7 @@ <control> <type>image</type> <id>0</id> - <posX>177</posX> + <posX>380</posX> <posY>225</posY> <width>409</width> <height>202</height> @@ -16,8 +16,8 @@ <description>dialog Heading</description> <type>fadelabel</type> <id>2</id> - <posX>190</posX> - <posY>230</posY> + <posX>450</posX> + <posY>255</posY> <label>0</label> <font>font13</font> <textcolor>ffffffff</textcolor> @@ -26,8 +26,8 @@ <description>dialog line 1</description> <type>fadelabel</type> <id>3</id> - <posX>190</posX> - <posY>260</posY> + <posX>430</posX> + <posY>290</posY> <label>0</label> <font>font13</font> <textcolor>ffffffff</textcolor> @@ -36,8 +36,8 @@ <description>dialog line 2</description> <type>fadelabel</type> <id>4</id> - <posX>190</posX> - <posY>280</posY> + <posX>430</posX> + <posY>320</posY> <label>0</label> <font>font13</font> <textcolor>ffffffff</textcolor> Modified: trunk/plugins/File Explorer/Skin/Blue3wide/File Explorer_main.xml =================================================================== --- trunk/plugins/File Explorer/Skin/Blue3wide/File Explorer_main.xml 2010-08-11 12:11:27 UTC (rev 3709) +++ trunk/plugins/File Explorer/Skin/Blue3wide/File Explorer_main.xml 2010-08-11 19:05:14 UTC (rev 3710) @@ -18,7 +18,7 @@ <type>button</type> <id>11</id> <posX>1</posX> - <posY>100</posY> + <posY>10</posY> <label>Menu left</label> <onleft>11</onleft> <onright>2</onright> @@ -30,7 +30,7 @@ <type>button</type> <id>2</id> <posX>1025</posX> - <posY>100</posY> + <posY>10</posY> <label>Menu right</label> <onleft>11</onleft> <onright>2</onright> @@ -42,8 +42,8 @@ <type>listcontrol</type> <id>3</id> <posX>1</posX> - <posY>162</posY> - <height>626</height> + <posY>72</posY> + <height>550</height> <width>639</width> <onright>4</onright> <onleft>11</onleft> @@ -56,8 +56,8 @@ <type>listcontrol</type> <id>4</id> <posX>641</posX> - <posY>162</posY> - <height>626</height> + <posY>72</posY> + <height>550</height> <width>639</width> <onright>2</onright> <onleft>3</onleft> @@ -68,7 +68,7 @@ <description>label left</description> <type>label</type> <id>6</id> - <posX>1</posX> + <posX>10</posX> <posY>600</posY> <label>Test</label> <font>font10</font> @@ -79,7 +79,7 @@ <description>label right</description> <type>label</type> <id>7</id> - <posX>352</posX> + <posX>650</posX> <posY>600</posY> <label>Test</label> <font>font10</font> @@ -90,8 +90,8 @@ <description>labeldir left</description> <type>label</type> <id>9</id> - <posX>1</posX> - <posY>140</posY> + <posX>10</posX> + <posY>50</posY> <label>Test</label> <font>font10</font> <align>left</align> @@ -101,8 +101,8 @@ <description>labeldir right</description> <type>label</type> <id>10</id> - <posX>640</posX> - <posY>140</posY> + <posX>650</posX> + <posY>50</posY> <label>Test</label> <font>font10</font> <align>left</align> Modified: trunk/plugins/File Explorer/Skin/Xface/File Explorer_dialog.xml =================================================================== --- trunk/plugins/File Explorer/Skin/Xface/File Explorer_dialog.xml 2010-08-11 12:11:27 UTC (rev 3709) +++ trunk/plugins/File Explorer/Skin/Xface/File Explorer_dialog.xml 2010-08-11 19:05:14 UTC (rev 3710) @@ -6,7 +6,7 @@ <control> <type>image</type> <id>0</id> - <posX>177</posX> + <posX>380</posX> <posY>225</posY> <width>409</width> <height>202</height> @@ -16,18 +16,18 @@ <description>dialog Heading</description> <type>fadelabel</type> <id>2</id> - <posX>190</posX> - <posY>230</posY> + <posX>450</posX> + <posY>235</posY> <label>0</label> <font>font13</font> - <textcolor>ffffffff</textcolor> + <textcolor>Black</textcolor> </control> <control> <description>dialog line 1</description> <type>fadelabel</type> <id>3</id> - <posX>190</posX> - <posY>260</posY> + <posX>430</posX> + <posY>290</posY> <label>0</label> <font>font13</font> <textcolor>ffffffff</textcolor> @@ -36,8 +36,8 @@ <description>dialog line 2</description> <type>fadelabel</type> <id>4</id> - <posX>190</posX> - <posY>280</posY> + <posX>430</posX> + <posY>320</posY> <label>0</label> <font>font13</font> <textcolor>ffffffff</textcolor> Modified: trunk/plugins/File Explorer/Skin/Xface/File Explorer_main.xml =================================================================== --- trunk/plugins/File Explorer/Skin/Xface/File Explorer_main.xml 2010-08-11 12:11:27 UTC (rev 3709) +++ trunk/plugins/File Explorer/Skin/Xface/File Explorer_main.xml 2010-08-11 19:05:14 UTC (rev 3710) @@ -68,23 +68,23 @@ <description>label left</description> <type>label</type> <id>6</id> - <posX>1</posX> - <posY>180</posY> + <posX>270</posX> + <posY>600</posY> <label>Test</label> <font>font10</font> <align>left</align> - <textcolor>White</textcolor> + <textcolor>Black</textcolor> </control> <control> <description>label right</description> <type>label</type> <id>7</id> - <posX>683</posX> - <posY>180</posY> + <posX>850</posX> + <posY>600</posY> <label>Test</label> <font>font10</font> <align>left</align> - <textcolor>White</textcolor> + <textcolor>Black</textcolor> </control> <control> <description>labeldir left</description> Modified: trunk/plugins/File Explorer/Skin/Xface/common.window.file_explorer.xml =================================================================== --- trunk/plugins/File Explorer/Skin/Xface/common.window.file_explorer.xml 2010-08-11 12:11:27 UTC (rev 3709) +++ trunk/plugins/File Explorer/Skin/Xface/common.window.file_explorer.xml 2010-08-11 19:05:14 UTC (rev 3710) @@ -108,7 +108,7 @@ <animation effect="fade" time="500">WindowClose</animation> <type>image</type> <id>5</id> - <posX>120</posX> + <posX>10</posX> <posY>575</posY> <width>217</width> <height>163</height> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <Sil...@us...> - 2011-05-03 19:27:09
|
Revision: 4199 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=4199&view=rev Author: SilentException Date: 2011-05-03 19:27:03 +0000 (Tue, 03 May 2011) Log Message: ----------- FileExplorer: MediaPortal v1.2 plugin version compatibility Modified Paths: -------------- trunk/plugins/File Explorer/File Explorer.csproj trunk/plugins/File Explorer/Properties/AssemblyInfo.cs Modified: trunk/plugins/File Explorer/File Explorer.csproj =================================================================== --- trunk/plugins/File Explorer/File Explorer.csproj 2011-05-03 18:53:37 UTC (rev 4198) +++ trunk/plugins/File Explorer/File Explorer.csproj 2011-05-03 19:27:03 UTC (rev 4199) @@ -40,6 +40,11 @@ <CheckForOverflowUnderflow>False</CheckForOverflowUnderflow> </PropertyGroup> <ItemGroup> + <Reference Include="Common.Utils, Version=1.1.7.0, Culture=neutral, processorArchitecture=x86"> + <SpecificVersion>False</SpecificVersion> + <HintPath>..\..\mediaportal\xbmc\bin\Release\Common.Utils.dll</HintPath> + <Private>False</Private> + </Reference> <Reference Include="Core, Version=1.0.4.34667, Culture=neutral, processorArchitecture=x86"> <SpecificVersion>False</SpecificVersion> <HintPath>..\..\mediaportal\xbmc\bin\Release\Core.dll</HintPath> Modified: trunk/plugins/File Explorer/Properties/AssemblyInfo.cs =================================================================== --- trunk/plugins/File Explorer/Properties/AssemblyInfo.cs 2011-05-03 18:53:37 UTC (rev 4198) +++ trunk/plugins/File Explorer/Properties/AssemblyInfo.cs 2011-05-03 19:27:03 UTC (rev 4199) @@ -1,6 +1,7 @@ using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using MediaPortal.Common.Utils; // Information about this assembly is defined by the following // attributes. @@ -29,3 +30,8 @@ // numbers with the '*' character (the default): [assembly: AssemblyVersion("1.5.0.0")] + +// MediaPortal plugin version compatibility +[assembly: CompatibleVersion("1.1.7.0")] +[assembly: UsesSubsystem("MP.SkinEngine")] +[assembly: UsesSubsystem("MP.Config")] This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <Sil...@us...> - 2011-08-11 21:35:01
|
Revision: 4264 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=4264&view=rev Author: SilentException Date: 2011-08-11 21:34:55 +0000 (Thu, 11 Aug 2011) Log Message: ----------- File Explorer - v1.6 - updated solution and project file - updated dialogs so they actually work (commented code can be removed later) - few more updates Modified Paths: -------------- trunk/plugins/File Explorer/Compression/Compression.sln trunk/plugins/File Explorer/Compression/Compression.vcproj trunk/plugins/File Explorer/Dialogs/GUIDialogOperation.cs trunk/plugins/File Explorer/DrivesView.cs trunk/plugins/File Explorer/File Explorer.cs trunk/plugins/File Explorer/File Explorer.csproj trunk/plugins/File Explorer/File Explorer.sln trunk/plugins/File Explorer/Preview/TextPreview.cs trunk/plugins/File Explorer/Properties/AssemblyInfo.cs Modified: trunk/plugins/File Explorer/Compression/Compression.sln =================================================================== --- trunk/plugins/File Explorer/Compression/Compression.sln 2011-07-24 11:37:56 UTC (rev 4263) +++ trunk/plugins/File Explorer/Compression/Compression.sln 2011-08-11 21:34:55 UTC (rev 4264) @@ -1,6 +1,6 @@ -Microsoft Visual Studio Solution File, Format Version 9.00 -# Visual Studio 2005 +Microsoft Visual Studio Solution File, Format Version 10.00 +# Visual Studio 2008 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Compression", "Compression.vcproj", "{8BCD3BC9-1084-481C-82A5-23058672A3EF}" EndProject Global Modified: trunk/plugins/File Explorer/Compression/Compression.vcproj =================================================================== --- trunk/plugins/File Explorer/Compression/Compression.vcproj 2011-07-24 11:37:56 UTC (rev 4263) +++ trunk/plugins/File Explorer/Compression/Compression.vcproj 2011-08-11 21:34:55 UTC (rev 4264) @@ -1,10 +1,11 @@ <?xml version="1.0" encoding="Windows-1252"?> <VisualStudioProject ProjectType="Visual C++" - Version="8,00" + Version="9,00" Name="Compression" ProjectGUID="{8BCD3BC9-1084-481C-82A5-23058672A3EF}" RootNamespace="Compression" + TargetFrameworkVersion="131072" > <Platforms> <Platform @@ -77,6 +78,8 @@ LinkIncremental="1" SuppressStartupBanner="true" ProgramDatabaseFile=".\Release/Compression.pdb" + RandomizedBaseAddress="1" + DataExecutionPrevention="0" ImportLibrary=".\Release/Compression.lib" TargetMachine="1" /> @@ -101,9 +104,6 @@ Name="VCAppVerifierTool" /> <Tool - Name="VCWebDeploymentTool" - /> - <Tool Name="VCPostBuildEventTool" /> </Configuration> @@ -171,6 +171,8 @@ SuppressStartupBanner="true" GenerateDebugInformation="true" ProgramDatabaseFile=".\Debug/Compression.pdb" + RandomizedBaseAddress="1" + DataExecutionPrevention="0" ImportLibrary=".\Debug/Compression.lib" TargetMachine="1" /> @@ -195,9 +197,6 @@ Name="VCAppVerifierTool" /> <Tool - Name="VCWebDeploymentTool" - /> - <Tool Name="VCPostBuildEventTool" /> </Configuration> Modified: trunk/plugins/File Explorer/Dialogs/GUIDialogOperation.cs =================================================================== --- trunk/plugins/File Explorer/Dialogs/GUIDialogOperation.cs 2011-07-24 11:37:56 UTC (rev 4263) +++ trunk/plugins/File Explorer/Dialogs/GUIDialogOperation.cs 2011-08-11 21:34:55 UTC (rev 4264) @@ -25,15 +25,19 @@ using System; using MediaPortal.GUI.Library; +using MediaPortal.Dialogs; using System.Threading; +using Action = MediaPortal.GUI.Library.Action; + namespace FileExplorer.Dialogs { /// <summary> /// This class shows a dialog which shows information about /// operations done by DrivesView class. /// </summary> - public class GUIDialogOperation : GUIWindow, IRenderLayer + //public class GUIDialogOperation : GUIWindow, IRenderLayer + public class GUIDialogOperation : GUIDialogWindow { #region enum DialogType /// <summary> @@ -60,13 +64,13 @@ #endregion #region vars - private int parentID; - private bool running = false; + //private int parentID; + //private bool running = false; private DialogType type = 0; - private string file = string.Empty; - private string to = string.Empty; + //private string file = string.Empty; + //private string to = string.Empty; private Thread processThread = null; @@ -97,6 +101,7 @@ } } + /* /// <summary> /// Shows the dialog and waits until the user has closed it. - Obsolete, not used /// </summary> @@ -134,13 +139,22 @@ Close(); } + */ + /// <summary> /// Shows the dialog. /// </summary> /// <param name="parentID">Parentwindow id.</param> - public void Show(int parentID) + public void Show(int ParentID) { + if (!_running) + { + PageLoad(ParentID); + } + + //DoModal(parentID); + /* this.parentID = parentID; if (GUIWindowManager.GetWindow(parentID) == null) @@ -166,6 +180,7 @@ running = true; GUIWindowManager.Process(); + */ processThread = new Thread(new ThreadStart(this.ProcessThread)); processThread.Start(); @@ -177,6 +192,8 @@ public void Close() { this.OnAction(new Action(Action.ActionType.ACTION_CLOSE_DIALOG, 0, 0)); + processThread.Abort(); + processThread = null; } /// <summary> @@ -321,8 +338,10 @@ public void SetCurrentFile(string file) { + CheckRunning(); + SuspendThread(); - this.file = file; + //this.file = file; // lblText1.Label = "File: " + file; lblText1.Label = Constants.Dialog.FILE + file; GUIWindowManager.Process(); @@ -331,6 +350,8 @@ public void SetToPath(string path) { + CheckRunning(); + SuspendThread(); /* if (path.Length > 30) @@ -338,7 +359,7 @@ path = path.Substring(0, 3) + "..\\" + GetFilename(path); } */ - this.to = path; + //this.to = path; // lblText2.Label = "To: " + path; lblText2.Label = Constants.Dialog.TO + path; GUIWindowManager.Process(); @@ -347,6 +368,8 @@ public void SetPath(string path) { + CheckRunning(); + SuspendThread(); /* if (path.Length > 30) @@ -365,6 +388,8 @@ /// <param name="text">Text</param> public void SetText(string text) { + CheckRunning(); + SuspendThread(); lblText1.Label = text; lblText2.Label = string.Empty; @@ -378,6 +403,8 @@ /// <param name="text2">Text for label 2.</param> public void SetText(string text1, string text2) { + CheckRunning(); + SuspendThread(); lblText1.Label = text1; lblText2.Label = text2; @@ -388,7 +415,7 @@ #region private members private void ProcessThread() { - while (running && GUIGraphicsContext.CurrentState == GUIGraphicsContext.State.RUNNING) + while (_running && GUIGraphicsContext.CurrentState == GUIGraphicsContext.State.RUNNING) { if (!Paused) { @@ -424,6 +451,16 @@ return filePath.Substring(index + 1); } + + private void CheckRunning() + { + if (processThread == null) + { + Reset(); + Type = this.type; + Show(GUIWindowManager.ActiveWindow); + } + } #endregion #region Overrides @@ -438,6 +475,12 @@ return Load(GUIGraphicsContext.Skin + "\\File Explorer_dialog.xml"); } + public override void Reset() + { + base.Reset(); + } + + /* public override void OnAction(Action action) { if (action.wID == Action.ActionType.ACTION_CLOSE_DIALOG || action.wID == Action.ActionType.ACTION_PREVIOUS_MENU) @@ -450,7 +493,9 @@ base.OnAction(action); } + */ + /* public override bool OnMessage(GUIMessage message) { if (message.TargetWindowId == GetID && message.Message == GUIMessage.MessageType.GUI_MSG_WINDOW_DEINIT) @@ -487,13 +532,17 @@ } return base.OnMessage(message); } + */ + /* protected override void OnPageLoad() { } + */ #endregion + /* #region IRenderLayer public bool ShouldRenderLayer() { @@ -508,5 +557,6 @@ } } #endregion + */ } } Modified: trunk/plugins/File Explorer/DrivesView.cs =================================================================== --- trunk/plugins/File Explorer/DrivesView.cs 2011-07-24 11:37:56 UTC (rev 4263) +++ trunk/plugins/File Explorer/DrivesView.cs 2011-08-11 21:34:55 UTC (rev 4264) @@ -418,7 +418,7 @@ { LoadPath(); FillListControl(); - if (updateSecondView && SecondView.currentDrive == currentDrive && SecondView.currentPath == currentPath) + if (updateSecondView) // && SecondView.currentDrive == currentDrive && SecondView.currentPath == currentPath) SecondView.Update(false); } @@ -780,7 +780,7 @@ ShowDialogOperation(GUIDialogOperation.DialogType.COPY); dlgOp.SetCurrentFile(GetFilename(src)); dlgOp.SetToPath(GetPath(dest)); - dlgOp.Show(winId); + //dlgOp.Show(winId); } System.IO.File.Copy(src, dest); if (showDlg) dlgOp.Close(); @@ -2237,7 +2237,7 @@ { lstFiles = new ArrayList(); ShowDialogOperation(GUIDialogOperation.DialogType.AUDIO_PLAYLIST_ADD); - dlgOp.Show(winId); + //dlgOp.Show(winId); ReadDirectories(item.Path, true, Utils.AudioExtensions); dlgOp.Close(); @@ -2397,7 +2397,7 @@ { lstFiles = new ArrayList(); ShowDialogOperation(GUIDialogOperation.DialogType.AUDIO_PLAYLIST_ADD); - dlgOp.Show(winId); + //dlgOp.Show(winId); ReadDirectories(item.Path, true, Utils.AudioExtensions); dlgOp.Close(); @@ -3194,6 +3194,7 @@ private void ShowDialogOperation(GUIDialogOperation.DialogType type) { dlgOp = (GUIDialogOperation)GUIWindowManager.GetWindow(Constants.WindowIDs.DIALOGOPERATION); + dlgOp.Reset(); dlgOp.Type = type; dlgOp.Show(winId); } Modified: trunk/plugins/File Explorer/File Explorer.cs =================================================================== --- trunk/plugins/File Explorer/File Explorer.cs 2011-07-24 11:37:56 UTC (rev 4263) +++ trunk/plugins/File Explorer/File Explorer.cs 2011-08-11 21:34:55 UTC (rev 4264) @@ -29,6 +29,8 @@ using System.IO; using MediaPortal.Configuration; +using Action = MediaPortal.GUI.Library.Action; + namespace FileExplorer { /// <summary> Modified: trunk/plugins/File Explorer/File Explorer.csproj =================================================================== --- trunk/plugins/File Explorer/File Explorer.csproj 2011-07-24 11:37:56 UTC (rev 4263) +++ trunk/plugins/File Explorer/File Explorer.csproj 2011-08-11 21:34:55 UTC (rev 4264) @@ -1,4 +1,5 @@ -<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="3.5"> +<?xml version="1.0" encoding="utf-8"?> +<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0"> <PropertyGroup> <OutputType>Library</OutputType> <RootNamespace>FileExplorer</RootNamespace> @@ -19,9 +20,11 @@ <StartProgram>C:\Programme\Team MediaPortal\MediaPortal\MediaPortal.exe</StartProgram> <FileUpgradeFlags> </FileUpgradeFlags> - <OldToolsVersion>2.0</OldToolsVersion> + <OldToolsVersion>3.5</OldToolsVersion> <UpgradeBackupLocation> </UpgradeBackupLocation> + <TargetFrameworkVersion>v3.5</TargetFrameworkVersion> + <TargetFrameworkProfile /> </PropertyGroup> <PropertyGroup Condition=" '$(Configuration)' == 'Debug' "> <OutputPath>bin\Debug\</OutputPath> @@ -30,6 +33,7 @@ <DebugSymbols>true</DebugSymbols> <DebugType>Full</DebugType> <CheckForOverflowUnderflow>True</CheckForOverflowUnderflow> + <CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet> </PropertyGroup> <PropertyGroup Condition=" '$(Configuration)' == 'Release' "> <OutputPath>bin\Release\</OutputPath> @@ -38,22 +42,17 @@ <DebugSymbols>false</DebugSymbols> <DebugType>None</DebugType> <CheckForOverflowUnderflow>False</CheckForOverflowUnderflow> + <CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet> </PropertyGroup> <ItemGroup> - <Reference Include="Common.Utils, Version=1.1.7.0, Culture=neutral, processorArchitecture=x86"> - <SpecificVersion>False</SpecificVersion> - <HintPath>..\..\mediaportal\xbmc\bin\Release\Common.Utils.dll</HintPath> - <Private>False</Private> + <Reference Include="Common.Utils"> + <HintPath>C:\Program Files\Team MediaPortal\MediaPortal\Common.Utils.dll</HintPath> </Reference> - <Reference Include="Core, Version=1.0.4.34667, Culture=neutral, processorArchitecture=x86"> - <SpecificVersion>False</SpecificVersion> - <HintPath>..\..\mediaportal\xbmc\bin\Release\Core.dll</HintPath> - <Private>False</Private> + <Reference Include="Core"> + <HintPath>C:\Program Files\Team MediaPortal\MediaPortal\Core.dll</HintPath> </Reference> - <Reference Include="Dialogs, Version=1.0.4.34668, Culture=neutral, processorArchitecture=x86"> - <SpecificVersion>False</SpecificVersion> - <HintPath>..\..\mediaportal\xbmc\bin\Release\plugins\Windows\Dialogs.dll</HintPath> - <Private>False</Private> + <Reference Include="Dialogs"> + <HintPath>C:\Program Files\Team MediaPortal\MediaPortal\plugins\Windows\Dialogs.dll</HintPath> </Reference> <Reference Include="System" /> <Reference Include="System.Xml" /> @@ -64,15 +63,11 @@ <Private>False</Private> </Reference> <Reference Include="Microsoft.VisualBasic" /> - <Reference Include="Utils, Version=2.2.7.34666, Culture=neutral, processorArchitecture=x86"> - <SpecificVersion>False</SpecificVersion> - <HintPath>..\..\mediaportal\xbmc\bin\Release\Utils.dll</HintPath> - <Private>False</Private> + <Reference Include="Utils"> + <HintPath>C:\Program Files\Team MediaPortal\MediaPortal\Utils.dll</HintPath> </Reference> - <Reference Include="WindowPlugins, Version=1.1.0.16062, Culture=neutral, processorArchitecture=x86"> - <SpecificVersion>False</SpecificVersion> - <HintPath>..\..\mediaportal\xbmc\bin\Release\plugins\Windows\WindowPlugins.dll</HintPath> - <Private>False</Private> + <Reference Include="WindowPlugins"> + <HintPath>C:\Program Files\Team MediaPortal\MediaPortal\plugins\Windows\WindowPlugins.dll</HintPath> </Reference> </ItemGroup> <ItemGroup> Modified: trunk/plugins/File Explorer/File Explorer.sln =================================================================== --- trunk/plugins/File Explorer/File Explorer.sln 2011-07-24 11:37:56 UTC (rev 4263) +++ trunk/plugins/File Explorer/File Explorer.sln 2011-08-11 21:34:55 UTC (rev 4264) @@ -1,6 +1,6 @@ -Microsoft Visual Studio Solution File, Format Version 10.00 -# Visual Studio 2008 +Microsoft Visual Studio Solution File, Format Version 11.00 +# Visual Studio 2010 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "File Explorer", "File Explorer.csproj", "{39A9A612-493E-45CF-AE39-E99BAE474679}" EndProject Global Modified: trunk/plugins/File Explorer/Preview/TextPreview.cs =================================================================== --- trunk/plugins/File Explorer/Preview/TextPreview.cs 2011-07-24 11:37:56 UTC (rev 4263) +++ trunk/plugins/File Explorer/Preview/TextPreview.cs 2011-08-11 21:34:55 UTC (rev 4264) @@ -29,13 +29,17 @@ using System; using System.IO; using MediaPortal.GUI.Library; +using MediaPortal.Dialogs; +using Action = MediaPortal.GUI.Library.Action; + namespace FileExplorer.Preview { /// <summary> /// Description of TextPreview. /// </summary> - public class TextPreview : GUIWindow, ISetupForm, IRenderLayer + //public class TextPreview : GUIWindow, ISetupForm, IRenderLayer + public class TextPreview : GUIDialogWindow { #region vars private int parentID; @@ -48,6 +52,7 @@ #endregion #region public members + /* public void DoModal(int parentID) { this.parentID = parentID; @@ -69,9 +74,12 @@ GUIWindowManager.Process(); } } + */ public bool LoadTextFile(string strFile) { + Reset(); + textArea.OnMessage(new GUIMessage(GUIMessage.MessageType.GUI_MSG_LABEL_RESET, GetID, 0, textArea.GetID, 0, 0, null)); if (labelHeading != null) labelHeading.OnMessage(new GUIMessage(GUIMessage.MessageType.GUI_MSG_LABEL_RESET, GetID, 0, labelHeading.GetID, 0, 0, null)); @@ -113,6 +121,8 @@ #endregion #region ISetupForm members + /* + /// <summary> /// Returns the name of the plugin which is shown in the plugin menu /// </summary> @@ -204,6 +214,8 @@ return false; } + */ + #endregion #region Overrides @@ -218,6 +230,7 @@ return Load(GUIGraphicsContext.Skin + "\\File Explorer_textpreview.xml"); } + /* public override void OnAction(Action action) { if (action.wID == Action.ActionType.ACTION_CLOSE_DIALOG || action.wID == Action.ActionType.ACTION_PREVIOUS_MENU) @@ -230,7 +243,9 @@ base.OnAction(action); } - + */ + + /* public override bool OnMessage(GUIMessage message) { if (message.Message == GUIMessage.MessageType.GUI_MSG_WINDOW_DEINIT) @@ -257,13 +272,17 @@ } return base.OnMessage(message); } + */ + /* protected override void OnPageLoad() { } + */ #endregion + /* #region IRenderLayer public bool ShouldRenderLayer() { @@ -275,5 +294,6 @@ Render(timePassed); } #endregion + */ } } Modified: trunk/plugins/File Explorer/Properties/AssemblyInfo.cs =================================================================== --- trunk/plugins/File Explorer/Properties/AssemblyInfo.cs 2011-07-24 11:37:56 UTC (rev 4263) +++ trunk/plugins/File Explorer/Properties/AssemblyInfo.cs 2011-08-11 21:34:55 UTC (rev 4264) @@ -29,7 +29,7 @@ // You can specify all values by your own or you can build default build and revision // numbers with the '*' character (the default): -[assembly: AssemblyVersion("1.5.0.0")] +[assembly: AssemblyVersion("1.6.0.0")] // MediaPortal plugin version compatibility [assembly: CompatibleVersion("1.1.7.0")] This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <eda...@us...> - 2013-12-09 20:06:11
|
Revision: 4704 http://sourceforge.net/p/mp-plugins/code/4704 Author: edalex86 Date: 2013-12-09 20:06:07 +0000 (Mon, 09 Dec 2013) Log Message: ----------- Added: - Compatibility with Mediaportal 1.2.0 alpha and after - Windows-based network browsing - Ability to add MP-TVSeries import path from FIle Explorer - Ability to add MP-TVSeries import path from FIle Explorer - Default and DefaultWide skins thx to catavolt - Titan skin thx to powermarcel10 Modified Paths: -------------- trunk/plugins/File Explorer/Constants.cs trunk/plugins/File Explorer/DrivesView.cs trunk/plugins/File Explorer/File Explorer.csproj trunk/plugins/File Explorer/LocalizeStrings.cs trunk/plugins/File Explorer/Properties/AssemblyInfo.cs trunk/plugins/File Explorer/Setup.cs Added Paths: ----------- trunk/plugins/File Explorer/Compression/Compression.dll trunk/plugins/File Explorer/Language/strings_it.xml trunk/plugins/File Explorer/MpeRelease/File Explorer.xml trunk/plugins/File Explorer/Skin/Default/ trunk/plugins/File Explorer/Skin/Default/File Explorer_dialog.xml trunk/plugins/File Explorer/Skin/Default/File Explorer_main.xml trunk/plugins/File Explorer/Skin/Default/File Explorer_modulepreview.xml trunk/plugins/File Explorer/Skin/Default/File Explorer_musicpreview.xml trunk/plugins/File Explorer/Skin/Default/File Explorer_textpreview.xml trunk/plugins/File Explorer/Skin/DefaultWide/ trunk/plugins/File Explorer/Skin/DefaultWide/File Explorer_dialog.xml trunk/plugins/File Explorer/Skin/DefaultWide/File Explorer_main.xml trunk/plugins/File Explorer/Skin/DefaultWide/File Explorer_modulepreview.xml trunk/plugins/File Explorer/Skin/DefaultWide/File Explorer_musicpreview.xml trunk/plugins/File Explorer/Skin/DefaultWide/File Explorer_textpreview.xml trunk/plugins/File Explorer/Skin/Titan/ trunk/plugins/File Explorer/Skin/Titan/File Explorer.xml trunk/plugins/File Explorer/Skin/Titan/File Explorer_dialog.xml trunk/plugins/File Explorer/Skin/Titan/File Explorer_main.xml trunk/plugins/File Explorer/Skin/Titan/File Explorer_textpreview.xml trunk/plugins/File Explorer/Skin/Titan/hover_file explorer.png Added: trunk/plugins/File Explorer/Compression/Compression.dll =================================================================== (Binary files differ) Index: trunk/plugins/File Explorer/Compression/Compression.dll =================================================================== --- trunk/plugins/File Explorer/Compression/Compression.dll 2013-12-06 21:12:34 UTC (rev 4703) +++ trunk/plugins/File Explorer/Compression/Compression.dll 2013-12-09 20:06:07 UTC (rev 4704) Property changes on: trunk/plugins/File Explorer/Compression/Compression.dll ___________________________________________________________________ Added: svn:mime-type ## -0,0 +1 ## +application/octet-stream \ No newline at end of property Modified: trunk/plugins/File Explorer/Constants.cs =================================================================== --- trunk/plugins/File Explorer/Constants.cs 2013-12-06 21:12:34 UTC (rev 4703) +++ trunk/plugins/File Explorer/Constants.cs 2013-12-09 20:06:07 UTC (rev 4704) @@ -341,6 +341,7 @@ public static readonly string REMOVEABLE = LocalizeStrings.Get((int)LocalizedMessages.Removeable); public static readonly string MENU = LocalizeStrings.Get((int)LocalizedMessages.Menu); public static readonly string SELECTDRIVE = LocalizeStrings.Get((int)LocalizedMessages.SelectDrive); + public static readonly string BROWSENETWORK = "Browse Network"; public static readonly string RENAME = LocalizeStrings.Get((int)LocalizedMessages.Rename); public static readonly string CREATEDIR = LocalizeStrings.Get((int)LocalizedMessages.CreateDir); public static readonly string ENCRYPT2 = LocalizeStrings.Get((int)LocalizedMessages.Encrypt2); Modified: trunk/plugins/File Explorer/DrivesView.cs =================================================================== --- trunk/plugins/File Explorer/DrivesView.cs 2013-12-06 21:12:34 UTC (rev 4703) +++ trunk/plugins/File Explorer/DrivesView.cs 2013-12-09 20:06:07 UTC (rev 4704) @@ -25,6 +25,9 @@ using System; using System.Collections; +using System.Linq; +using System.Reflection; +using System.Collections.Generic; using MediaPortal.GUI.Library; using MediaPortal.Util; using MediaPortal.Dialogs; @@ -34,6 +37,10 @@ using System.Runtime.InteropServices; using MediaPortal.Configuration; using MediaPortal.GUI.Pictures; +using WindowPlugins.GUITVSeries; +using MediaPortal.Plugins.MovingPictures; +using System.Management; +using System.DirectoryServices; namespace FileExplorer { @@ -132,10 +139,10 @@ private string currentPath = null; private string currentDrive = null; - private ArrayList drives = null; - private ArrayList currentPathList = null; + private List<Drive> drives = null; + private List<Info> currentPathList = null; - private ArrayList selectedList = null; + private List<Info> selectedList = null; private bool showExtensions; private bool trashcan; @@ -146,7 +153,7 @@ private DrivesView secondView = null; - private ArrayList lstFiles = null; + private List<string> lstFiles = null; private GUIDialogOperation dlgOp = null; @@ -171,7 +178,7 @@ #region private members private void CreateDrivesList() { - drives = new ArrayList(); + drives = new List<Drive>(); foreach (string d in Environment.GetLogicalDrives()) { @@ -265,7 +272,7 @@ return false; } - currentPathList = new ArrayList(); + currentPathList = new List<Info>(); foreach (string s in files) { @@ -311,7 +318,7 @@ currentPathList.Add(info); } - + currentPathList = currentPathList.OrderBy(e => e.Path.Name).ThenBy(y=>y.File.Name).ToList(); return true; } @@ -426,23 +433,24 @@ private struct MenuIDs { public const int SelectDrive = 0; - public const int Copy = 1; - public const int Move = 2; - public const int Delete = 3; - public const int Rename = 4; - public const int CreateDirectory = 5; - public const int EncryptDecrypt = 6; - public const int CompressUncomopress = 7; - public const int HideUnhide = 8; - public const int ReadOnlyFlag = 9; - public const int AudioPlaylist = 10; - public const int VideoPlayList = 11; - public const int AddToAudioPlaylist = 12; - public const int AddToVideoPlaylist = 13; - public const int SelectAll = 14; - public const int DisableSelections = 15; - public const int SelectionMode = 16; - public const int EmptyRecycleBin = 17; + public const int BrowseNetwrok = 1; + public const int Copy = 2; + public const int Move = 3; + public const int Delete = 4; + public const int Rename = 5; + public const int CreateDirectory = 6; + public const int EncryptDecrypt = 7; + public const int CompressUncomopress = 8; + public const int HideUnhide = 9; + public const int ReadOnlyFlag = 10; + public const int AudioPlaylist = 11; + public const int VideoPlayList = 12; + public const int AddToAudioPlaylist = 13; + public const int AddToVideoPlaylist = 14; + public const int SelectAll = 15; + public const int DisableSelections = 16; + public const int SelectionMode = 17; + public const int EmptyRecycleBin = 18; } #endregion @@ -463,6 +471,7 @@ mnu.Add("Add/Remove readonly flag"); */ mnu.SetHeading(Constants.View.MENU); mnu.Add(Constants.View.SELECTDRIVE); + mnu.Add(Constants.View.BROWSENETWORK); mnu.Add(Constants.Dialog.COPY); // was already defined in Dialog mnu.Add(Constants.Dialog.MOVE); // was already defined in Dialog mnu.Add(Constants.Dialog.DELETE); // was already defined in Dialog @@ -514,15 +523,43 @@ mnu.Add(Constants.Dialog.EMPTYRECYCLEBIN); + if (selectedList == null) + { + if (IsMPTVSeriesEnabled()) + { + mnu.Add("Add MPTV-Series Import Path"); + } + if (IsMovPicsEnabled()) + { + mnu.Add("Add MovingPictures Import Path"); + } + } + mnu.DoModal(GUIWindowManager.ActiveWindow); + if (mnu.SelectedLabelText == "Add MPTV-Series Import Path") + { + + AddToMPTVSeries(); + } + if (mnu.SelectedLabelText == "Add MovingPictures Import Path") + { + + AddToMovPics(); + } switch (mnu.SelectedLabel) { + case MenuIDs.SelectDrive: { SelectDrive(); break; } + case MenuIDs.BrowseNetwrok: + { + BrowseNetwork(); + break; + } case MenuIDs.Copy: { Copy(); @@ -675,6 +712,49 @@ } #endregion + #region Browse Netwrok routines + private void BrowseNetwork() + { + GUIDialogMenu dlg = (GUIDialogMenu)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_DIALOG_MENU); + dlg.Reset(); + dlg.SetHeading(Constants.View.BROWSENETWORK); + SelectQuery query = new SelectQuery("Win32_ComputerSystem"); + ManagementObjectSearcher searcher = new ManagementObjectSearcher(query); + string Workgroup = ""; + foreach (ManagementObject mo in searcher.Get()) + { + Workgroup = mo["domain"] as string; + } + DirectoryEntry entryPC; + entryPC = new DirectoryEntry(); + entryPC.Path = "WinNT://" + Workgroup; + foreach (DirectoryEntry child in entryPC.Children) + { + if (child.Name != "Schema") + dlg.Add(child.Name); + } + dlg.DoModal(GUIWindowManager.ActiveWindow); + + string PCName = dlg.SelectedLabelText; + dlg.Reset(); + dlg.SetHeading("Select Share"); + var path = string.Format(@"\\{0}\root\cimv2", PCName); + var q = "select * from win32_share"; + var worker = new ManagementObjectSearcher(path, q); + var shares = worker.Get(); + foreach (ManagementObject share in shares) + { + dlg.Add(share["Name"].ToString()); + } + dlg.DoModal(GUIWindowManager.ActiveWindow); + currentDrive = string.Format("\\\\{0}\\{1}", PCName, dlg.SelectedLabelText); + currentPath = string.Format("\\\\{0}\\{1}", PCName, dlg.SelectedLabelText); + LoadPath(); + FillListControl(); + + } + #endregion + #region Copy routines private void Copy() { @@ -1240,7 +1320,7 @@ GUIListItem item = null; Info info; - selectedList = new ArrayList(); + selectedList = new List<Info>(); int count = GUIControl.GetItemCount(winId, lstId); for (int i = 0; i < count; i++) @@ -1947,7 +2027,7 @@ private void CreateAudioPlaylist(string path, string plsFilename, bool subfolders) { /*ArrayList*/ - lstFiles = new ArrayList(); + lstFiles = new List<string>(); //dlgOp.SetCurrentFile(GetFilename("Reading files . . .")); // dlgOp.SetText("Reading files . . ."); dlgOp.SetText(Constants.Dialog.READFILE); @@ -1993,7 +2073,7 @@ if (!keyboard.IsConfirmed) return; - lstFiles = new ArrayList(); + lstFiles = new List<string>(); ShowDialogOperation(GUIDialogOperation.DialogType.AUDIO_PLAYLIST_CREATE); // dlgOp.SetText("Reading files . . ."); @@ -2094,7 +2174,7 @@ private void CreateVideoPlaylist(string path, string plsFilename, bool subfolders) { /*ArrayList*/ - lstFiles = new ArrayList(); + lstFiles = new List<string>(); //dlgOp.SetCurrentFile("Reading files . . ."); // dlgOp.SetText("Reading files . . ."); dlgOp.SetText(Constants.Dialog.READFILE); @@ -2139,7 +2219,7 @@ if (!keyboard.IsConfirmed) return; - lstFiles = new ArrayList(); + lstFiles = new List<string>(); ShowDialogOperation(GUIDialogOperation.DialogType.VIDEO_PLAYLIST_CREATE); // dlgOp.SetText("Reading files . . ."); @@ -2235,7 +2315,7 @@ if (item.IsFolder) { - lstFiles = new ArrayList(); + lstFiles = new List<string>(); ShowDialogOperation(GUIDialogOperation.DialogType.AUDIO_PLAYLIST_ADD); //dlgOp.Show(winId); ReadDirectories(item.Path, true, Utils.AudioExtensions); @@ -2304,7 +2384,7 @@ if ((mnu.SelectedLabel >= 0) && (mnu.SelectedLabel < files.Length)) { - lstFiles = new ArrayList(); + lstFiles = new List<string>(); ShowDialogOperation(GUIDialogOperation.DialogType.AUDIO_PLAYLIST_ADD); // dlgOp.SetText("Reading files . . ."); @@ -2395,7 +2475,7 @@ if (item.IsFolder) { - lstFiles = new ArrayList(); + lstFiles = new List<string>(); ShowDialogOperation(GUIDialogOperation.DialogType.AUDIO_PLAYLIST_ADD); //dlgOp.Show(winId); ReadDirectories(item.Path, true, Utils.AudioExtensions); @@ -2464,7 +2544,7 @@ if ((mnu.SelectedLabel >= 0) && (mnu.SelectedLabel < files.Length)) { - lstFiles = new ArrayList(); + lstFiles = new List<string>(); ShowDialogOperation(GUIDialogOperation.DialogType.AUDIO_PLAYLIST_ADD); // dlgOp.SetText("Reading files . . ."); @@ -2584,6 +2664,72 @@ } } #endregion + + private void AddToMPTVSeries() + { + + GUIListItem item = GUIControl.GetSelectedListItem(winId, lstId); + if (item.IsFolder) + { + DBImportPath[] pathes = DBImportPath.GetAll(); + + if (pathes.Select(p => p[DBImportPath.cPath].ToString().ToLowerInvariant()).Contains(item.Path.ToLowerInvariant())) + { + GUIDialogNotify dlg = (GUIDialogNotify)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_DIALOG_NOTIFY); + if (dlg == null) return; + dlg.SetHeading("Warning"); + dlg.SetText("Import path already exists"); + dlg.DoModal(GUIWindowManager.ActiveWindow); + } + else + { + DeviceManager.StopMonitor(); + DBImportPath path = new DBImportPath(); + path[DBImportPath.cEnabled] = "1"; + path[DBImportPath.cIndex] = pathes.Length; + path[DBImportPath.cPath] = item.Path; + path.Commit(); + GUIDialogNotify dialog = (GUIDialogNotify)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_DIALOG_NOTIFY); + if (dialog == null) return; + dialog.SetHeading("Success"); + dialog.SetText("Import path added"); + dialog.DoModal(GUIWindowManager.ActiveWindow); + DeviceManager.StartMonitor(); + } + } + } + + private void AddToMovPics() + { + + GUIListItem item = GUIControl.GetSelectedListItem(winId, lstId); + if (item.IsFolder) + { + + List<MediaPortal.Plugins.MovingPictures.Database.DBImportPath> pathes = MediaPortal.Plugins.MovingPictures.Database.DBImportPath.GetAllUserDefined(); + + if (pathes.Select(p => p.FullPath.ToLowerInvariant()).Contains(item.Path.ToLowerInvariant())) + { + GUIDialogNotify dlg = (GUIDialogNotify)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_DIALOG_NOTIFY); + if (dlg == null) return; + dlg.SetHeading("Warning"); + dlg.SetText("Import path already exists"); + dlg.DoModal(GUIWindowManager.ActiveWindow); + } + else + { + MovingPicturesCore.Importer.Stop(); + MediaPortal.Plugins.MovingPictures.Database.DBImportPath path = MediaPortal.Plugins.MovingPictures.Database.DBImportPath.Get(item.Path); + path.Commit(); + GUIDialogNotify dialog = (GUIDialogNotify)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_DIALOG_NOTIFY); + if (dialog == null) return; + dialog.SetHeading("Success"); + dialog.SetText("Import path added"); + dialog.DoModal(GUIWindowManager.ActiveWindow); + MovingPicturesCore.Importer.RestartScanner(); + } + } + } #endregion #region Events @@ -2633,7 +2779,7 @@ item.IsRemote = true; - if (selectedList == null) selectedList = new ArrayList(); + if (selectedList == null) selectedList = new List<Info>(); selectedList.Add((Info)item.MusicTag); @@ -2907,6 +3053,39 @@ #endregion #region Utils + + private bool IsMPTVSeriesEnabled() + { + Assembly[] all = AppDomain.CurrentDomain.GetAssemblies(); + try + { + if (all.Where(e => e.GetName().Name == "MP-TVSeries").Count() > 0) + { + return true; + } + } + catch + { + return false; + } + return false; + } + private bool IsMovPicsEnabled() + { + Assembly[] all = AppDomain.CurrentDomain.GetAssemblies(); + try + { + if (all.Where(e => e.GetName().Name == "Moving Pictures").Count() > 0) + { + return true; + } + } + catch + { + return false; + } + return false; + } private string SanitizePath(string path) { if ((path.EndsWith("\\")) || (path.EndsWith("/"))) Modified: trunk/plugins/File Explorer/File Explorer.csproj =================================================================== --- trunk/plugins/File Explorer/File Explorer.csproj 2013-12-06 21:12:34 UTC (rev 4703) +++ trunk/plugins/File Explorer/File Explorer.csproj 2013-12-09 20:06:07 UTC (rev 4704) @@ -45,16 +45,30 @@ <CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet> </PropertyGroup> <ItemGroup> - <Reference Include="Common.Utils"> - <HintPath>C:\Program Files\Team MediaPortal\MediaPortal\Common.Utils.dll</HintPath> + <Reference Include="Common.Utils, Version=1.5.100.0, Culture=neutral, processorArchitecture=MSIL"> + <SpecificVersion>False</SpecificVersion> + <HintPath>..\..\..\..\..\..\Program Files\Team MediaPortal\MediaPortal\Common.Utils.dll</HintPath> </Reference> - <Reference Include="Core"> - <HintPath>C:\Program Files\Team MediaPortal\MediaPortal\Core.dll</HintPath> + <Reference Include="Core, Version=1.5.100.0, Culture=neutral, processorArchitecture=x86"> + <SpecificVersion>False</SpecificVersion> + <HintPath>..\..\..\..\..\..\Program Files\Team MediaPortal\MediaPortal\Core.dll</HintPath> </Reference> + <Reference Include="Cornerstone, Version=1.5.1.1487, Culture=neutral, processorArchitecture=x86"> + <SpecificVersion>False</SpecificVersion> + <HintPath>..\..\..\..\..\..\Program Files\Team MediaPortal\MediaPortal\plugins\Windows\Cornerstone.dll</HintPath> + </Reference> <Reference Include="Dialogs"> - <HintPath>C:\Program Files\Team MediaPortal\MediaPortal\plugins\Windows\Dialogs.dll</HintPath> + <HintPath>..\..\..\..\..\..\Program Files\Team MediaPortal\MediaPortal\plugins\Windows\Dialogs.dll</HintPath> </Reference> + <Reference Include="MovingPictures"> + <HintPath>..\..\..\..\..\..\Program Files\Team MediaPortal\MediaPortal\plugins\Windows\MovingPictures.dll</HintPath> + </Reference> + <Reference Include="MP-TVSeries"> + <HintPath>..\..\..\..\..\..\Program Files\Team MediaPortal\MediaPortal\plugins\Windows\MP-TVSeries.dll</HintPath> + </Reference> <Reference Include="System" /> + <Reference Include="System.DirectoryServices" /> + <Reference Include="System.Management" /> <Reference Include="System.Xml" /> <Reference Include="System.Drawing"> <Private>False</Private> @@ -64,10 +78,10 @@ </Reference> <Reference Include="Microsoft.VisualBasic" /> <Reference Include="Utils"> - <HintPath>C:\Program Files\Team MediaPortal\MediaPortal\Utils.dll</HintPath> + <HintPath>..\..\..\..\..\..\Program Files\Team MediaPortal\MediaPortal\Utils.dll</HintPath> </Reference> <Reference Include="WindowPlugins"> - <HintPath>C:\Program Files\Team MediaPortal\MediaPortal\plugins\Windows\WindowPlugins.dll</HintPath> + <HintPath>..\..\..\..\..\..\Program Files\Team MediaPortal\MediaPortal\plugins\Windows\WindowPlugins.dll</HintPath> </Reference> </ItemGroup> <ItemGroup> Added: trunk/plugins/File Explorer/Language/strings_it.xml =================================================================== --- trunk/plugins/File Explorer/Language/strings_it.xml (rev 0) +++ trunk/plugins/File Explorer/Language/strings_it.xml 2013-12-09 20:06:07 UTC (rev 4704) @@ -0,0 +1,139 @@ +<?xml version="1.0" encoding="utf-8"?> +<Language name="English" characters="255"> + <Section name="unmapped"> + <String id="0">Gestione Risorse</String> + <String id="1">Configurazione Gestione Risorse</String> + <String id="2">Gestione Risorse</String> + <String id="3">Estensioni</String> + <String id="4">Cestino</String> + <String id="5">Tutti i files</String> + <String id="6">Files di sistema</String> + <String id="7">Cartelle di sistema</String> + <String id="8">Mostra estensione files</String> + <String id="9">Alla cancellazione copia i files nel cestino</String> + <String id="10">Mostra tutti i files</String> + <String id="11">Mostra files di sistema</String> + <String id="12">Mostra cartelle di sistema</String> + <String id="13">Applica</String> + <String id="14">Annulla</String> + <String id="15">Errore</String> + <String id="16">Errore sconosciuto!</String> + <String id="17">Accesso negato!</String> + <String id="18">Compressione/criptaggio file o cartella non possibile</String> + <String id="19">su un drive non NTFS.</String> + <String id="20">Lettura scrittura drive non possibile</String> + <String id="21">file o cartella.</String> + <String id="22">Crea playlist audio</String> + <String id="23">Aggiungi File: </String> + <String id="24">Percorso: </String> + <String id="25">Compressione</String> + <String id="26">Compressione file: </String> + <String id="27">Copia</String> + <String id="28">File: </String> + <String id="29">A: </String> + <String id="30">Decripta</String> + <String id="31">Cancella</String> + <String id="32">Cripta</String> + <String id="33">Nascondi</String> + <String id="34">Sposta</String> + <String id="35">Imposta l'attributo di sola lettura</String> + <String id="36">Rimuovi l'attributo di sola lettura</String> + <String id="37">Decompressione</String> + <String id="38">Mostra</String> + <String id="39">Crea playlist video</String> + <String id="40">Aggiungi alla playlist audio</String> + <String id="41">Lettura files . . . </String> + <String id="42">Aggiungi alla playlist video</String> + <String id="43">Menu 1</String> + <String id="44">Menu 2</String> + <String id="45">Cartella: </String> + <String id="46">Lettore CD/DVD</String> + <String id="47">HDD</String> + <String id="48">RamDisk</String> + <String id="49">Drive di rete</String> + <String id="50">Dispositivo rimovibile</String> + <String id="51">Menu</String> + <String id="52">Seleziona drive</String> + <String id="53">Rinomina</String> + <String id="54">Crea cartella</String> + <String id="55">Cripta/decripta (solo NTFS)</String> + <String id="56">Comprimi/decomprimi (solo NTFS)</String> + <String id="57">Nascondi/mostra</String> + <String id="58">Modifica attributo di sola lettura</String> + <String id="59">Crea playlist audio dalla cartella</String> + <String id="60">Crea playlist video dalla cartella</String> + <String id="61">Crea playlist audio dai files/cartelle selezionate</String> + <String id="62">Crea playlist video dai files/cartelle selezionate</String> + <String id="63">Aggiungi i files/cartelle selezionate alla plsylist audio</String> + <String id="64">Aggiungi i files/cartelle selezionate alla plsylist video</String> + <String id="65">Seleziona tutto</String> + <String id="66">Disabilita selezioni</String> + <String id="67">Disabilita modo selezione</String> + <String id="68">Abilita modo selezione</String> + <String id="69">Anteprima file</String> + <String id="70">Nessun plug-in di anteprima trovato per</String> + <String id="71">Aprire utilizzando l'anteprima testo?</String> + <String id="72">Attributi:</String> + <String id="73"> Nascosto;</String> + <String id="74"> Sola lettura;</String> + <String id="75"> File di sistema;</String> + <String id="76"> Compresso;</String> + <String id="77"> Criptato;</String> + <String id="78"> Nessuno</String> + <String id="79">Creato il: </String> + <String id="80">Ultimo accesso: </String> + <String id="81">Ultima scrittura: </String> + <String id="82"> cartella di sistema;</String> + <String id="83">Copia file </String> + <String id="84">da: </String> + <String id="85">Copia cartella </String> + <String id="86">Copia file in corso</String> + <String id="87">Il file </String> + <String id="88">esiste già!</String> + <String id="89">Vuoi sovrascrivere?</String> + <String id="90">Sposta file </String> + <String id="91">Sposta cartella </String> + <String id="92">Sposta file</String> + <String id="93">Sposta cartella</String> + <String id="94">La cartella </String> + <String id="95">Elimina cartella</String> + <String id="96">Vuoi veramente eliminare</String> + <String id="97">Dopo la cancellazione la cartella NON PUO' ESSERE RIPRISTINATA!</String> + <String id="98">Elimina file</String> + <String id="99">Errore</String> + <String id="100">Impossibile rinominare la cartella </String> + <String id="101">Impossibile rinominare il file </String> + <String id="102">Nuova cartella</String> + <String id="103">Creazione cartella non possibile </String> + <String id="104">Criptazione/decriptazione</String> + <String id="105">Vuoi modificare lo stato di criptazione</String> + <String id="106">per tutte le sotto-cartelle ed i files nella</String> + <String id="107">cartella?</String> + <String id="108">Vuoi modificare lo stato di compressione</String> + <String id="109">Nascondi/mostra i files/cartelle selezionate</String> + <String id="110">Nascondi i files selezionati</String> + <String id="111">Mostra i files selezionati</String> + <String id="112">Vuoi modificare lo stato di visualizzazione</String> + <String id="113">Modifica l'attributo di sola lettura dei files/cartelle selezionate</String> + <String id="114">Imposta l'attributo di sola lettura</String> + <String id="115">Rimuovi l'attributo di sola lettura</String> + <String id="116">Modifica l'attributo di sola lettura</String> + <String id="117">Vuoi modificare l'attributo di sola lettura</String> + <String id="118">Nuova playlist audio</String> + <String id="119">Vuoi includere tutti i files audio di</String> + <String id="120">le sotto-cartelle della cartella corrente?</String> + <String id="121">Nessun file audio trovato!</String> + <String id="122">Nuova playlist video</String> + <String id="123">Vuoi includere tutti i files video di</String> + <String id="124">No video files found!</String> + <String id="125">Nessuna playlist trovata</String> + <String id="126">Nessuna playlist trovata nella cartella</String> + <String id="127">Seleziona playlist</String> + <String id="128">Cartella predefinita per menu 1:</String> + <String id="129">Cartella predefinita per menu 2:</String> + <String id="130">Sfoglia</String> + <String id="131">Svuota cestino</String> + <String id="132">Conferma</String> + <String id="133">Svuotamento cestino non possibile</String> + </Section> +</Language> \ No newline at end of file Modified: trunk/plugins/File Explorer/LocalizeStrings.cs =================================================================== --- trunk/plugins/File Explorer/LocalizeStrings.cs 2013-12-06 21:12:34 UTC (rev 4703) +++ trunk/plugins/File Explorer/LocalizeStrings.cs 2013-12-09 20:06:07 UTC (rev 4704) @@ -82,24 +82,35 @@ //[Obsolete("This method has changed", true)] static public bool Load(string language) { - bool isPrefixEnabled = true; + try + { + bool isPrefixEnabled = true; - using (MediaPortal.Profile.Settings reader = new MediaPortal.Profile.Settings(MediaPortal.Configuration.Config.GetFile(MediaPortal.Configuration.Config.Dir.Config, "MediaPortal.xml"))) - { - isPrefixEnabled = reader.GetValueAsBool("gui", "myprefix", true); - language = reader.GetValueAsString("gui", "language", "English"); - } + using (MediaPortal.Profile.Settings reader = new MediaPortal.Profile.Settings(MediaPortal.Configuration.Config.GetFile(MediaPortal.Configuration.Config.Dir.Config, "MediaPortal.xml"))) + { + isPrefixEnabled = reader.GetValueAsBool("gui", "myprefix", true); + language = reader.GetValueAsString("gui", "language", "English"); + } - string directory = MediaPortal.Configuration.Config.GetSubFolder(MediaPortal.Configuration.Config.Dir.Language, "File Explorer"); - string cultureName = null; - if (language != null) - cultureName = GetCultureName(language); + string directory = MediaPortal.Configuration.Config.GetSubFolder(MediaPortal.Configuration.Config.Dir.Language, "File Explorer"); + string cultureName = null; + if (language != null) + cultureName = GetCultureName(language); - Log.Info("File Explorer: Loading localised Strings - Path: {0} Culture: {1} Language: {2} Prefix: {3}", directory, cultureName, language, isPrefixEnabled); + Log.Info("File Explorer: Loading localised Strings - Path: {0} Culture: {1} Language: {2} Prefix: {3}", directory, cultureName, language, isPrefixEnabled); - _stringProvider = new LocalisationProvider(directory, cultureName, isPrefixEnabled); + _stringProvider = new LocalisationProvider(directory, cultureName, isPrefixEnabled); - return true; + return true; + } + catch(Exception e) + { + Log.Error("File Explorer: Failed to load language file!"); + Log.Error(e); + + return false; + } + } /// <summary> @@ -279,7 +290,14 @@ for (int i = 0; i < cultureList.Length; i++) { + if(_cultures.ContainsKey(cultureList[i].EnglishName)) + { + Log.Error("duplicate culture"); + } + else + { _cultures.Add(cultureList[i].EnglishName, cultureList[i].Name); + } } } Added: trunk/plugins/File Explorer/MpeRelease/File Explorer.xml =================================================================== --- trunk/plugins/File Explorer/MpeRelease/File Explorer.xml (rev 0) +++ trunk/plugins/File Explorer/MpeRelease/File Explorer.xml 2013-12-09 20:06:07 UTC (rev 4704) @@ -0,0 +1,18 @@ +<?xml version="1.0" encoding="utf-8"?> +<profile> + <section name="explorer"> + <entry name="Extensions">yes</entry> + <entry name="Trashbin">yes</entry> + <entry name="AllFiles">yes</entry> + <entry name="SystemFiles">no</entry> + <entry name="SystemDirs">no</entry> + <entry name="Default folder for left menu :"></entry> + <entry name="Default folder for right menu :"></entry> + <entry name="Prullenbak">yes</entry> + <entry name="Alle bestanden">yes</entry> + <entry name="Systeem bestanden">no</entry> + <entry name="Systeemstations">no</entry> + <entry name="Standaard map voor linkder menu :"></entry> + <entry name="Standaard map voor rechter menu :"></entry> + </section> +</profile> \ No newline at end of file Modified: trunk/plugins/File Explorer/Properties/AssemblyInfo.cs =================================================================== --- trunk/plugins/File Explorer/Properties/AssemblyInfo.cs 2013-12-06 21:12:34 UTC (rev 4703) +++ trunk/plugins/File Explorer/Properties/AssemblyInfo.cs 2013-12-09 20:06:07 UTC (rev 4704) @@ -29,9 +29,8 @@ // You can specify all values by your own or you can build default build and revision // numbers with the '*' character (the default): -[assembly: AssemblyVersion("1.6.0.0")] +[assembly: AssemblyVersion("1.6.1.0")] // MediaPortal plugin version compatibility -[assembly: CompatibleVersion("1.1.7.0")] -[assembly: UsesSubsystem("MP.SkinEngine")] -[assembly: UsesSubsystem("MP.Config")] +//[assembly: CompatibleVersion("1.1.6.27644")] +[assembly: CompatibleVersion("1.1.6.27644")] \ No newline at end of file Modified: trunk/plugins/File Explorer/Setup.cs =================================================================== --- trunk/plugins/File Explorer/Setup.cs 2013-12-06 21:12:34 UTC (rev 4703) +++ trunk/plugins/File Explorer/Setup.cs 2013-12-09 20:06:07 UTC (rev 4704) @@ -78,7 +78,8 @@ /// <returns></returns> public string PluginName() { - return Constants.PlugInInfo.NAME; + return "FileExplorer"; + //return Constants.PlugInInfo.NAME; } /// <summary> @@ -87,7 +88,8 @@ /// <returns></returns> public string Description() { - return Constants.PlugInInfo.DESCRIPTION; + return "File managing plugin"; + //return Constants.PlugInInfo.DESCRIPTION; } /// <summary> @@ -96,7 +98,8 @@ /// <returns></returns> public string Author() { - return Constants.PlugInInfo.AUTHOR; + return "Andreas Groß, framug, SilentException, -ltb- (gfx)"; + //return Constants.PlugInInfo.AUTHOR; } /// <summary> Added: trunk/plugins/File Explorer/Skin/Default/File Explorer_dialog.xml =================================================================== --- trunk/plugins/File Explorer/Skin/Default/File Explorer_dialog.xml (rev 0) +++ trunk/plugins/File Explorer/Skin/Default/File Explorer_dialog.xml 2013-12-09 20:06:07 UTC (rev 4704) @@ -0,0 +1,61 @@ +<?xml version="1.0" encoding="utf-8" standalone="yes"?> +<!--version="1.0" encoding="utf-8" standalone="yes"--> +<!--version="1.0" encoding="utf-8" standalone="yes"--> +<window> + <id>557316</id> + <defaultcontrol>10</defaultcontrol> + <allowoverlay>no</allowoverlay> + <controls> + <control> + <type>image</type> + <id>0</id> + <width>960</width> + <height>720</height> + <texture>black.png</texture> + <colordiffuse>70ffffff</colordiffuse> + </control> + <control> + <type>image</type> + <id>0</id> + <posX>210</posX> + <posY>243</posY> + <width>515</width> + <height>280</height> + <texture>menu.png</texture> + </control> + <control> + <description>dialog Heading</description> + <type>label</type> + <id>2</id> + <posX>210</posX> + <posY>277</posY> + <width>515</width> + <label>-</label> + <font>Menutitle</font> + <textcolor>fff5deb3</textcolor> + <align>center</align> + </control> + <control> + <description>dialog line 1</description> + <type>label</type> + <id>3</id> + <posX>244</posX> + <posY>314</posY> + <label>-</label> + <width>456</width> + <font>font13</font> + <textcolor>white</textcolor> + </control> + <control> + <description>dialog line 2</description> + <type>label</type> + <id>4</id> + <posX>244</posX> + <posY>344</posY> + <label>-</label> + <width>456</width> + <font>font13</font> + <textcolor>white</textcolor> + </control> + </controls> +</window> \ No newline at end of file Added: trunk/plugins/File Explorer/Skin/Default/File Explorer_main.xml =================================================================== --- trunk/plugins/File Explorer/Skin/Default/File Explorer_main.xml (rev 0) +++ trunk/plugins/File Explorer/Skin/Default/File Explorer_main.xml 2013-12-09 20:06:07 UTC (rev 4704) @@ -0,0 +1,161 @@ +<?xml version="1.0" encoding="utf-8" standalone="yes"?> +<!--version="1.0" encoding="utf-8" standalone="yes"--> +<!--version="1.0" encoding="utf-8" standalone="yes"--> +<window> + <id>557311</id> + <defaultcontrol>3</defaultcontrol> + <allowoverlay>yes</allowoverlay> + <define>#header.label:7</define> + <define>#itemcount:</define> + <controls> + <control> + <description>BG</description> + <type>image</type> + <id>1</id> + <texture>Background.png</texture> + <width>960</width> + <height>720</height> + </control> + <import>common.window.xml</import> + <import>common.time.xml</import> + <control> + <description>General Overlay</description> + <id>0</id> + <type>image</type> + <posX>0</posX> + <posY>30</posY> + <width>960</width> + <height>720</height> + <texture>general_overlay.png</texture> + </control> + <control> + <description>Menu left</description> + <type>button</type> + <id>11</id> + <posX>150</posX> + <posY>122</posY> + <label>Menu left</label> + <onleft>3</onleft> + <onright>2</onright> + <onup>17</onup> + <ondown>3</ondown> + </control> + <control> + <description>Menu right</description> + <type>button</type> + <id>2</id> + <posX>600</posX> + <posY>122</posY> + <label>Menu right</label> + <onleft>11</onleft> + <onright>4</onright> + <onup>17</onup> + <ondown>4</ondown> + </control> + <control> + <description>file listcontrol</description> + <type>listcontrol</type> + <id>3</id> + <posX>42</posX> + <posY>196</posY> + <height>350</height> + <width>393</width> + <onright>4</onright> + <onleft>11</onleft> + <onup>3</onup> + <ondown>3</ondown> + <spinPosX>1231</spinPosX> + <spinPosY>1888</spinPosY> + <spinCanFocus>no</spinCanFocus> + <scrollbarHeight>400</scrollbarHeight> + <scrollbarbg>bar_vert.png</scrollbarbg> + <scrollbartop>mouse_left_horizontal.png</scrollbartop> + <scrollbarbottom>mouse_right_horizontal.png</scrollbarbottom> + <scrollbarXOff>4</scrollbarXOff> + <scrollbarYOff>0</scrollbarYOff> + <showScrollbar>yes</showScrollbar> + <scrollbarwidth>5</scrollbarwidth> + </control> + <control> + <description>divider</description> + <type>image</type> + <id>0</id> + <posX>472</posX> + <posY>160</posY> + <height>455</height> + <width>0</width> + <texture>slider_vertical.png</texture> + <colordiffuse>darkgray</colordiffuse> + </control> + <control> + <description>file listcontrol</description> + <type>listcontrol</type> + <id>4</id> + <posX>491</posX> + <posY>196</posY> + <height>350</height> + <width>393</width> + <onright>2</onright> + <onleft>3</onleft> + <onup>4</onup> + <ondown>4</ondown> + <spinPosX>1167</spinPosX> + <spinPosY>1888</spinPosY> + <spinCanFocus>no</spinCanFocus> + <scrollbarHeight>400</scrollbarHeight> + <scrollbarbg>bar_vert.png</scrollbarbg> + <scrollbartop>mouse_left_horizontal.png</scrollbartop> + <scrollbarbottom>mouse_right_horizontal.png</scrollbarbottom> + <scrollbarXOff>4</scrollbarXOff> + <scrollbarYOff>0</scrollbarYOff> + <showScrollbar>yes</showScrollbar> + <scrollbarwidth>5</scrollbarwidth> + </control> + <control> + <description>label left</description> + <type>label</type> + <id>6</id> + <posX>42</posX> + <posY>520</posY> + <label>Test</label> + <font>font9</font> + <align>left</align> + <textcolor>fff5deb3</textcolor> + </control> + <control> + <description>label right</description> + <type>label</type> + <id>7</id> + <posX>491</posX> + <posY>520</posY> + <label>Test</label> + <font>font9</font> + <align>left</align> + <textcolor>fff5deb3</textcolor> + </control> + <control> + <description>labeldir left</description> + <type>label</type> + <id>9</id> + <posX>42</posX> + <posY>159</posY> + <label>Test</label> + <width>351</width> + <font>font14</font> + <align>left</align> + <textcolor>fff5deb3</textcolor> + </control> + <control> + <description>labeldir right</description> + <type>label</type> + <id>10</id> + <posX>491</posX> + <posY>159</posY> + <label>Test</label> + <width>351</width> + <font>font14</font> + <align>left</align> + <textcolor>fff5deb3</textcolor> + </control> + </controls> +</window> \ No newline at end of file Added: trunk/plugins/File Explorer/Skin/Default/File Explorer_modulepreview.xml =================================================================== --- trunk/plugins/File Explorer/Skin/Default/File Explorer_modulepreview.xml (rev 0) +++ trunk/plugins/File Explorer/Skin/Default/File Explorer_modulepreview.xml 2013-12-09 20:06:07 UTC (rev 4704) @@ -0,0 +1,67 @@ +<?xml version="1.0" encoding="utf-8" standalone="yes"?> +<!--version="1.0" encoding="utf-8" standalone="yes"--> +<!--version="1.0" encoding="utf-8" standalone="yes"--> +<window> + <id>557313</id> + <defaultcontrol>10</defaultcontrol> + <allowoverlay>no</allowoverlay> + <controls> + <control> + <type>image</type> + <id>0</id> + <posX>123</posX> + <posY>210</posY> + <width>286</width> + <height>189</height> + <texture>dialog_background.png</texture> + </control> + <control> + <description>dialog Heading</description> + <type>label</type> + <id>2</id> + <posX>133</posX> + <posY>215</posY> + <label /> + <font>font13</font> + <textcolor>ffffffff</textcolor> + </control> + <control> + <description>dialog line 1</description> + <type>label</type> + <id>3</id> + <posX>133</posX> + <posY>243</posY> + <label /> + <font>font13</font> + <textcolor>ffffffff</textcolor> + </control> + <control> + <description>dialog line 2</description> + <type>label</type> + <id>4</id> + <posX>133</posX> + <posY>262</posY> + <label /> + <font>font13</font> + <textcolor>ffffffff</textcolor> + </control> + <control> + <description>OK button</description> + <type>button</type> + <id>10</id> + <posX>305</posX> + <posY>332</posY> + <textXOff>6</textXOff> + <textYOff>6</textYOff> + <width>73</width> + <height>35</height> + <textureFocus>small_button_focus.png</textureFocus> + <textureNoFocus>small_button_nofocus.png</textureNoFocus> + <label>186</label> + <onleft>10</onleft> + <onright>10</onright> + <onup>10</onup> + <ondown>10</ondown> + </control> + </controls> +</window> \ No newline at end of file Added: trunk/plugins/File Explorer/Skin/Default/File Explorer_musicpreview.xml =================================================================== --- trunk/plugins/File Explorer/Skin/Default/File Explorer_musicpreview.xml (rev 0) +++ trunk/plugins/File Explorer/Skin/Default/File Explorer_musicpreview.xml 2013-12-09 20:06:07 UTC (rev 4704) @@ -0,0 +1,67 @@ +<?xml version="1.0" encoding="utf-8" standalone="yes"?> +<!--version="1.0" encoding="utf-8" standalone="yes"--> +<!--version="1.0" encoding="utf-8" standalone="yes"--> +<window> + <id>557314</id> + <defaultcontrol>10</defaultcontrol> + <allowoverlay>no</allowoverlay> + <controls> + <control> + <type>image</type> + <id>0</id> + <posX>123</posX> + <posY>210</posY> + <width>286</width> + <height>189</height> + <texture>dialog_background.png</texture> + </control> + <control> + <description>dialog Heading</description> + <type>label</type> + <id>2</id> + <posX>133</posX> + <posY>215</posY> + <label /> + <font>font13</font> + <textcolor>ffffffff</textcolor> + </control> + <control> + <description>dialog line 1</description> + <type>label</type> + <id>3</id> + <posX>133</posX> + <posY>243</posY> + <label /> + <font>font13</font> + <textcolor>ffffffff</textcolor> + </control> + <control> + <description>dialog line 2</description> + <type>label</type> + <id>4</id> + <posX>133</posX> + <posY>262</posY> + <label /> + <font>font13</font> + <textcolor>ffffffff</textcolor> + </control> + <control> + <description>OK button</description> + <type>button</type> + <id>10</id> + <posX>305</posX> + <posY>332</posY> + <textXOff>6</textXOff> + <textYOff>6</textYOff> + <width>73</width> + <height>35</height> + <textureFocus>small_button_focus.png</textureFocus> + <textureNoFocus>small_button_nofocus.png</textureNoFocus> + <label>186</label> + <onleft>10</onleft> + <onright>10</onright> + <onup>10</onup> + <ondown>10</ondown> + </control> + </controls> +</window> \ No newline at end of file Added: trunk/plugins/File Explorer/Skin/Default/File Explorer_textpreview.xml =================================================================== --- trunk/plugins/File Explorer/Skin/Default/File Explorer_textpreview.xml (rev 0) +++ trunk/plugins/File Explorer/Skin/Default/File Explorer_textpreview.xml 2013-12-09 20:06:07 UTC (rev 4704) @@ -0,0 +1,44 @@ +<?xml version="1.0" encoding="utf-8" standalone="yes"?> +<!--version="1.0" encoding="utf-8" standalone="yes"--> +<!--version="1.0" encoding="utf-8" standalone="yes"--> +<window> + <id>557312</id> + <defaultcontrol>2</defaultcontrol> + <allowoverlay>yes</allowoverlay> + <define>#header.label:7</define> + <define>#itemcount:</define> + <controls> + <control> + <description>BG</description> + <type>image</type> + <id>1</id> + <texture>Background.png</texture> + <width>960</width> + <height>720</height> + </control> + <import>common.window.xml</import> + <import>common.time.xml</import> + <control> + <description>General Overlay</description> + <id>0</id> + <type>image</type> + <posX>0</posX> + <posY>30</posY> + <width>960</width> + <height>720</height> + <texture>general_overlay.png</texture> + </control> + <control> + <type>textbox</type> + <id>2</id> + <posX>229</posX> + <posY>166</posY> + <width>549</width> + <height>480</height> + <font>font12</font> + <textcolor>ivory</textcolor> + <spinPosX>249</spinPosX> + <spinPosY>633</spinPosY> + </control> + </controls> +</window> \ No newline at end of file Added: trunk/plugins/File Explorer/Skin/DefaultWide/File Explorer_dialog.xml =================================================================== --- trunk/plugins/File Explorer/Skin/DefaultWide/File Explorer_dialog.xml (rev 0) +++ trunk/plugins/File Explorer/Skin/DefaultWide/File Explorer_dialog.xml 2013-12-09 20:06:07 UTC (rev 4704) @@ -0,0 +1,60 @@ +<?xml version="1.0" encoding="utf-8" standalone="yes"?> +<!--version="1.0" encoding="utf-8" standalone="yes"--> +<window> + <id>557316</id> + <defaultcontrol>10</defaultcontrol> + <allowoverlay>no</allowoverlay> + <controls> + <control> + <type>image</type> + <id>0</id> + <width>1280</width> + <height>720</height> + <texture>black.png</texture> + <colordiffuse>70ffffff</colordiffuse> + </control> + <control> + <type>image</type> + <id>0</id> + <posX>280</posX> + <posY>243</posY> + <width>687</width> + <height>280</height> + <texture>menu.png</texture> + </control> + <control> + <description>dialog Heading</description> + <type>label</type> + <id>2</id> + <posX>280</posX> + <posY>277</posY> + <width>687</width> + <label>-</label> + <font>Menutitle</font> + <textcolor>fff5deb3</textcolor> + <align>center</align> + </control> + <control> + <description>dialog line 1</description> + <type>label</type> + <id>3</id> + <posX>326</posX> + <posY>314</posY> + <label>-</label> + <width>608</width> + <font>font13</font> + <textcolor>white</textcolor> + </control> + <control> + <description>dialog line 2</description> + <type>label</type> + <id>4</id> + <posX>326</posX> + <posY>344</posY> + <label>-</label> + <width>608</width> + <font>font13</font> + <textcolor>white</textcolor> + </control> + </controls> +</window> \ No newline at end of file Added: trunk/plugins/File Explorer/Skin/DefaultWide/File Explorer_main.xml =================================================================== --- trunk/plugins/File Explorer/Skin/DefaultWide/File Explorer_main.xml (rev 0) +++ trunk/plugins/File Explorer/Skin/DefaultWide/File Explorer_main.xml 2013-12-09 20:06:07 UTC (rev 4704) @@ -0,0 +1,161 @@ +<?xml version="1.0" encoding="utf-8" standalone="yes"?> +<!--version="1.0" encoding="utf-8" standalone="yes"--> +<window> + <id>557311</id> + <defaultcontrol>3</defaultcontrol> + <allowoverlay>yes</allowoverlay> + <define>#header.label:7</define> + <define>#itemcount:</define> + <controls> + <control> + <description>BG</description> + <type>image</type> + <id>1</id> + <texture>Background.png</texture> + <width>1280</width> + <height>720</height> + </control> + <import>common.window.xml</import> + <import>common.time.xml</import> + <control> + <description>General Overlay</description> + <id>0</id> + <type>image</type> + <posX>0</posX> + <posY>30</posY> + <width>1280</width> + <height>720</height> + <texture>general_overlay.png</texture> + </control> + <control> + <description>Menu left</description> + <type>button</type> + <id>11</id> + <posX>200</posX> + <posY>122</posY> + <label>Menu left</label> + <onleft>3</onleft> + <onright>2</onright> + <onup>17</onup> + <ondown>3</ondown> + </control> + <control> + <description>Menu right</description> + <type>button</type> + <id>2</id> + <posX>800</posX> + <posY>122</posY> + <label>Menu right</label> + <onleft>11</onleft> + <onright>4</onright> + <onup>17</onup> + <ondown>4</ondown> + </control> + <control> + <description>file listcontrol</description> + <type>listcontrol</type> + <id>3</id> + <posX>56</posX> + <posY>196</posY> + <height>350</height> + <width>524</width> + <onright>4</onright> + <onleft>11</onleft> + <onup>3</onup> + <ondown>3</ondown> + <spinPosX>1642</spinPosX> + <spinPosY>1888</spinPosY> + <spinCanFocus>no</spinCanFocus> + <scrollbarHeight>400</scrollbarHeight> + <scrollbarbg>bar_vert.png</scrollbarbg> + <scrollbartop>mouse_left_horizontal.png</scrollbartop> + <scrollbarbottom>mouse_right_horizontal.png</scrollbarbottom> + <scrollbarXOff>6</scrollbarXOff> + <scrollbarYOff>0</scrollbarYOff> + <showScrollbar>yes</showScrollbar> + <scrollbarwidth>5</scrollbarwidth> + </control> + <control> + <description>divider</description> + <type>image</type> + <id>0</id> + <posX>630</posX> + <posY>160</posY> + <height>455</height> + <width>1</width> + <texture>slider_vertical.png</texture> + <colordiffuse>darkgray</colordiffuse> + </control> + <control> + <description>file listcontrol</description> + <type>listcontrol</type> + <id>4</id> + <posX>655</posX> + <posY>196</posY> + <height>350</height> + <width>524</width> + <onright>2</onright> + <onleft>3</onleft> + <onup>4</onup> + <ondown>4</ondown> + <spinPosX>1556</spinPosX> + <spinPosY>1888</spinPosY> + <spinCanFocus>no</spinCanFocus> + <scrollbarHeight>400</scrollbarHeight> + <scrollbarbg>bar_vert.png</scrollbarbg> + <scrollbartop>mouse_left_horizontal.png</scrollbartop> + <scrollbarbottom>mouse_right_horizontal.png</scrollbarbottom> + <scrollbarXOff>6</scrollbarXOff> + <scrollbarYOff>0</scrollbarYOff> + <showScrollbar>yes</showScrollbar> + <scrollbarwidth>5</scrollbarwidth> + </control> + <control> + <description>label left</description> + <type>label</type> + <id>6</id> + <posX>56</posX> + <posY>520</posY> + <label>Test</label> + <font>font9</font> + <align>left</align> + <textcolor>fff5deb3</textcolor> + </control> + <control> + <description>label right</description> + <type>label</type> + <id>7</id> + <posX>655</posX> + <posY>520</posY> + <label>Test</label> + <font>font9</font> + <align>left</align> + <textcolor>fff5deb3</textcolor> + </control> + <control> + <description>labeldir left</description> + <type>label</type> + <id>9</id> + <posX>56</posX> + <posY>159</posY> + <label>Test</label> + <width>468</width> + <font>font14</font> + <align>left</align> + <textcolor>fff5deb3</textcolor> + </control> + <control> + <description>labeldir right</description> + <type>label</type> + <id>10</id> + <posX>655</posX> + <posY>159</posY> + <label>Test</label> + <width>468</width> + <font>font14</font> + <align>left</align> + <textcolor>fff5deb3</textcolor> + </control> + + </controls> +</window> Added: trunk/plugins/File Explorer/Skin/DefaultWide/File Explorer_modulepreview.xml =================================================================== --- trunk/plugins/File Explorer/Skin/DefaultWide/File Explorer_modulepreview.xml (rev 0) +++ trunk/plugins/File Explorer/Skin/DefaultWide/File Explorer_modulepreview.xml 2013-12-09 20:06:07 UTC (rev 4704) @@ -0,0 +1,66 @@ +<?xml version="1.0" encoding="utf-8" standalone="yes"?> +<!--version="1.0" encoding="utf-8" standalone="yes"--> +<window> + <id>557313</id> + <defaultcontrol>10</defaultcontrol> + <allowoverlay>no</allowoverlay> + <controls> + <control> + <type>image</type> + <id>0</id> + <posX>165</posX> + <posY>210</posY> + <width>382</width> + <height>189</height> + <texture>dialog_background.png</texture> + </control> + <control> + <description>dialog Heading</description> + <type>label</type> + <id>2</id> + <posX>178</posX> + <posY>215</posY> + <label /> + <font>font13</font> + <textcolor>ffffffff</textcolor> + </control> + <control> + <description>dialog line 1</description> + <type>label</type> + <id>3</id> + <posX>178</posX> + <posY>243</posY> + <label /> + <font>font13</font> + <textcolor>ffffffff</textcolor> + </control> + <control> + <description>dialog line 2</description> + <type>label</type> + <id>4</id> + <posX>178</posX> + <posY>262</posY> + <label /> + <font>font13</font> + <textcolor>ffffffff</textcolor> + </control> + <control> + <description>OK button</description> + <type>button</type> + <id>10</id> + <posX>407</posX> + <posY>332</posY> + <textXOff>9</textXOff> + <textYOff>6</textYOff> + <width>98</width> + <height>35</height> + <textureFocus>small_button_focus.png</textureFocus> + <textureNoFocus>small_button_nofocus.png</textureNoFocus> + <label>186</label> + <onleft>10</onleft> + <onright>10</onright> + <onup>10</onup> + <ondown>10</ondown> + </control> + </controls> +</window> \ No newline at end of file Added: trunk/plugins/File Explorer/Skin/DefaultWide/File Explorer_musicpreview.xml =================================================================== --- trunk/plugins/File Explorer/Skin/DefaultWide/File Explorer_musicpreview.xml (rev 0) +++ trunk/plugins/File Explorer/Skin/DefaultWide/File Explorer_musicpreview.xml 2013-12-09 20:06:07 UTC (rev 4704) @@ -0,0 +1,66 @@ +<?xml version="1.0" encoding="utf-8" standalone="yes"?> +<!--version="1.0" encoding="utf-8" standalone="yes"--> +<window> + <id>557314</id> + <defaultcontrol>10</defaultcontrol> + <allowoverlay>no</allowoverlay> + <controls> + <control> + <type>image</type> + <id>0</id> + <posX>165</posX> + <posY>210</posY> + <width>382</width> + <height>189</height> + <texture>dialog_background.png</texture> + </control> + <control> + <description>dialog Heading</description> + <type>label</type> + <id>2</id> + <posX>178</posX> + <posY>215</posY> + <label /> + <font>font13</font> + <textcolor>ffffffff</textcolor> + </control> + <control> + <description>dialog line 1</description> + <type>label</type> + <id>3</id> + <posX>178</posX> + <posY>243</posY> + <label /> + <font>font13</font> + <textcolor>ffffffff</textcolor> + </control> + <control> + <description>dialog line 2</description> + <type>label</type> + <id>4</id> + <posX>178</posX> + <posY>262</posY> + <label /> + <font>font13</font> + <textcolor>ffffffff</textcolor> + </control> + <control> + <description>OK button</description> + <type>button</type> + <id>10</id> + <posX>407</posX> + <posY>332</posY> + <textXOff>9</textXOff> + <textYOff>6</textYOff> + <width>98</width> + <height>35</height> + <textureFocus>small_button_focus.png</textureFocus> + <textureNoFocus>small_button_nofocus.png</textureNoFocus> + <label>186</label> + <onleft>10</onleft> + <onright>10</onright> + <onup>10</onup> + <ondown>10</ondown> + </control> + </controls> +</window> \ No newline at end of file Added: trunk/plugins/File Explorer/Skin/DefaultWide/File Explorer_textpreview.xml =================================================================== --- trunk/plugins/File Explorer/Skin/DefaultWide/File Explorer_textpreview.xml (rev 0) +++ trunk/plugins/File Explorer/Skin/DefaultWide/File Explorer_textpreview.xml 2013-12-09 20:06:07 UTC (rev 4704) @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="utf-8" standalone="yes"?> +<!--version="1.0" encoding="utf-8" standalone="yes"--> +<window> + <id>557312</id> + <defaultcontrol>2</defaultcontrol> + <allowoverlay>yes</allowoverlay> + <define>#header.label:7</define> + <define>#itemcount:</define> + <controls> + <control> + <description>BG</description> + <type>image</type> + <id>1</id> + <texture>Background.png</texture> + <width>1280</width> + <height>720</height> + </control> + <import>common.window.xml</import> + <import>common.time.xml</import> + <control> + <description>General Overlay</description> + <id>0</id> + <type>image</type> + <posX>0</posX> + <posY>30</posY> + <width>1280</width> + <height>720</height> + <texture>general_overlay.png</texture> + </control> + <control> + <type>textbox</type> + <id>2</id> + <posX>306</posX> + <posY>166</posY> + <width>733</width> + <height>480</height> + <font>font12</font> + <textcolor>ivory</textcolor> + <spinPosX>333</spinPosX> + <spinPosY>633</spinPosY> + </control> + </controls> +</window> Added: trunk/plugins/F... [truncated message content] |
From: <eda...@us...> - 2013-12-09 20:16:00
|
Revision: 4705 http://sourceforge.net/p/mp-plugins/code/4705 Author: edalex86 Date: 2013-12-09 20:15:54 +0000 (Mon, 09 Dec 2013) Log Message: ----------- Screenshots added Added Paths: ----------- trunk/plugins/File Explorer/Screenshots/ trunk/plugins/File Explorer/Screenshots/File Explorer2.jpg trunk/plugins/File Explorer/Screenshots/File Explorer3.jpg trunk/plugins/File Explorer/Screenshots/File Explorer4.jpg trunk/plugins/File Explorer/Screenshots/FileExplorer1.jpg Added: trunk/plugins/File Explorer/Screenshots/File Explorer2.jpg =================================================================== (Binary files differ) Index: trunk/plugins/File Explorer/Screenshots/File Explorer2.jpg =================================================================== --- trunk/plugins/File Explorer/Screenshots/File Explorer2.jpg 2013-12-09 20:06:07 UTC (rev 4704) +++ trunk/plugins/File Explorer/Screenshots/File Explorer2.jpg 2013-12-09 20:15:54 UTC (rev 4705) Property changes on: trunk/plugins/File Explorer/Screenshots/File Explorer2.jpg ___________________________________________________________________ Added: svn:mime-type ## -0,0 +1 ## +application/octet-stream \ No newline at end of property Added: trunk/plugins/File Explorer/Screenshots/File Explorer3.jpg =================================================================== (Binary files differ) Index: trunk/plugins/File Explorer/Screenshots/File Explorer3.jpg =================================================================== --- trunk/plugins/File Explorer/Screenshots/File Explorer3.jpg 2013-12-09 20:06:07 UTC (rev 4704) +++ trunk/plugins/File Explorer/Screenshots/File Explorer3.jpg 2013-12-09 20:15:54 UTC (rev 4705) Property changes on: trunk/plugins/File Explorer/Screenshots/File Explorer3.jpg ___________________________________________________________________ Added: svn:mime-type ## -0,0 +1 ## +application/octet-stream \ No newline at end of property Added: trunk/plugins/File Explorer/Screenshots/File Explorer4.jpg =================================================================== (Binary files differ) Index: trunk/plugins/File Explorer/Screenshots/File Explorer4.jpg =================================================================== --- trunk/plugins/File Explorer/Screenshots/File Explorer4.jpg 2013-12-09 20:06:07 UTC (rev 4704) +++ trunk/plugins/File Explorer/Screenshots/File Explorer4.jpg 2013-12-09 20:15:54 UTC (rev 4705) Property changes on: trunk/plugins/File Explorer/Screenshots/File Explorer4.jpg ___________________________________________________________________ Added: svn:mime-type ## -0,0 +1 ## +application/octet-stream \ No newline at end of property Added: trunk/plugins/File Explorer/Screenshots/FileExplorer1.jpg =================================================================== (Binary files differ) Index: trunk/plugins/File Explorer/Screenshots/FileExplorer1.jpg =================================================================== --- trunk/plugins/File Explorer/Screenshots/FileExplorer1.jpg 2013-12-09 20:06:07 UTC (rev 4704) +++ trunk/plugins/File Explorer/Screenshots/FileExplorer1.jpg 2013-12-09 20:15:54 UTC (rev 4705) Property changes on: trunk/plugins/File Explorer/Screenshots/FileExplorer1.jpg ___________________________________________________________________ Added: svn:mime-type ## -0,0 +1 ## +application/octet-stream \ No newline at end of property This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |