|
From: Emilien K. <cur...@us...> - 2005-02-25 20:46:03
|
Update of /cvsroot/wxdevcenter/wxDevCenter/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6060/src Modified Files: FileSystemStandard.cpp Log Message: Transfert de la gestion des icones des types de fichier/dossier par les FileSystem. Index: FileSystemStandard.cpp =================================================================== RCS file: /cvsroot/wxdevcenter/wxDevCenter/src/FileSystemStandard.cpp,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** FileSystemStandard.cpp 26 Jan 2005 16:11:43 -0000 1.11 --- FileSystemStandard.cpp 25 Feb 2005 20:45:55 -0000 1.12 *************** *** 52,55 **** --- 52,75 ---- } + wxImageList* FileSystemStandardBase::GetImageList(int width) + { + return wxGetApp().GetDocManager().GetImageList(width); + } + + int FileSystemStandardBase::GetFileType(const FilePath& strPath) + { + long type; + if(strPath.IsEmpty()) + return -1; + if(IsDirectory(strPath)) + type = GetDirectorySystemType(strPath); + else + { + type = wxGetApp().GetDocManager().GetDocTemplateID(strPath.GetFileExt()); + if(type==-1) + type = WXDC_DOCMANAGER_TYPE_UNKNOW; + } + return type; + } |