|
From: Emilien K. <cur...@us...> - 2005-09-15 09:54:44
|
Update of /cvsroot/wxdevcenter/wxDevCenter/include/wxDevCenter In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16672/include/wxDevCenter Modified Files: Project.h Application.h FileSystem.h FileSystemTreeCtrl.h Log Message: Modularize FileSystemManager. Use FileSystemManager::GetManager to retreive the unique manager object. Index: Project.h =================================================================== RCS file: /cvsroot/wxdevcenter/wxDevCenter/include/wxDevCenter/Project.h,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** Project.h 17 Aug 2005 16:33:17 -0000 1.8 --- Project.h 15 Sep 2005 09:54:25 -0000 1.9 *************** *** 32,36 **** #include <wxDevCenter/Manager.h> #include <wxDevCenter/FileTools.h> - #include <wxDevCenter/FileSystem.h> #include <wx/dynarray.h> --- 32,35 ---- Index: FileSystemTreeCtrl.h =================================================================== RCS file: /cvsroot/wxdevcenter/wxDevCenter/include/wxDevCenter/FileSystemTreeCtrl.h,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** FileSystemTreeCtrl.h 17 Aug 2005 15:01:06 -0000 1.2 --- FileSystemTreeCtrl.h 15 Sep 2005 09:54:25 -0000 1.3 *************** *** 23,26 **** --- 23,28 ---- #define __WXDEVCENTER_FILESYSTEMTREECTRL + #include <wxDevCenter/FileSystem.h> + #include <wx/treectrl.h> *************** *** 28,32 **** { - class FileSystem; class DocManager; class FilePath; --- 30,33 ---- Index: Application.h =================================================================== RCS file: /cvsroot/wxdevcenter/wxDevCenter/include/wxDevCenter/Application.h,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -d -r1.17 -r1.18 *** Application.h 14 Sep 2005 14:19:10 -0000 1.17 --- Application.h 15 Sep 2005 09:54:25 -0000 1.18 *************** *** 30,34 **** #include <wxDevCenter/DocView.h> #include <wxDevCenter/WorkBar.h> - #include <wxDevCenter/FileSystem.h> #include <wxDevCenter/Config.h> --- 30,33 ---- *************** *** 40,49 **** class FilePath; - class FileSystem; class Document; class MainFrame; ! class DocManager; - class FileSystemManager; --- 39,46 ---- class FilePath; class Document; class MainFrame; ! class FileSystem; class DocManager; *************** *** 73,78 **** /** Gestionnaire de types de documents et de vues.*/ DocManager m_DocManager; - /** Gestionnaire de systèmes de fichiers.*/ - FileSystemManager m_FileSystemManager; /** Gestionnaire de barres de travail.*/ --- 70,73 ---- *************** *** 200,215 **** * @return Adresse du système de fichier standard. */ ! FileSystem* GetStandardFileSystem() ! {return m_pStandardFileSystem;} ! /** Retourne le flux de lecture sur un fichier. ! * @param strPath Chemin du fichier à lire. ! * @return Adresse du flux de lecture, NULL si erreur de création.*/ ! virtual wxInputStream* GetInputStream(FilePath strPath) ! {return m_FileSystemManager.GetInputStream(strPath);} ! /** Retourne le flux d'écriture sur un fichier. ! * @param strPath Chemin du fichier à écrire. ! * @return Adresse du flux d'écriture, NULL si erreur de création.*/ ! virtual wxOutputStream* GetOutputStream(FilePath strPath) ! {return m_FileSystemManager.GetOutputStream(strPath);} /** @}*/ --- 195,199 ---- * @return Adresse du système de fichier standard. */ ! FileSystem* GetStandardFileSystem(){return m_pStandardFileSystem;} /** @}*/ Index: FileSystem.h =================================================================== RCS file: /cvsroot/wxdevcenter/wxDevCenter/include/wxDevCenter/FileSystem.h,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** FileSystem.h 17 Aug 2005 16:33:17 -0000 1.11 --- FileSystem.h 15 Sep 2005 09:54:25 -0000 1.12 *************** *** 245,249 **** --- 245,256 ---- class WXDC_DLL_BASE FileSystemManager : public Element, public ObjectManager<FileSystem> { + protected: + /** The only one FS manager.*/ + static FileSystemManager s_FileSystemManager; public: + /** Unique file system manager accessor.*/ + static FileSystemManager& GetManager(){return s_FileSystemManager;} + + FileSystemManager(); virtual ~FileSystemManager(); |