Changeset 655 in dev for trunk/ab5.0/abdev/abdev/include
- Timestamp:
- Jun 18, 2008, 11:03:59 PM (16 years ago)
- Location:
- trunk/ab5.0/abdev/abdev/include/ProjectManager
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ab5.0/abdev/abdev/include/ProjectManager/FileManager.h
r653 r655 6 6 class ItemBase 7 7 { 8 HTREEITEM hTreeItem; 9 10 public: 11 ItemBase( HTREEITEM hTreeItem ) 12 : hTreeItem( hTreeItem ) 13 { 14 } 15 16 HTREEITEM GetTreeItemHandle() const 17 { 18 return hTreeItem; 19 } 20 void SetTreeViewHandle( HTREEITEM hTreeItem ) 21 { 22 this->hTreeItem = hTreeItem; 23 } 8 24 }; 9 25 … … 12 28 { 13 29 std::string relationalPath; 30 31 public: 32 File( const std::string &relationalPath, HTREEITEM hTreeItem ); 33 34 const std::string &GetRelationalPath() const 35 { 36 return relationalPath; 37 } 38 const std::string GetFullPath() const; 14 39 }; 15 40 typedef std::vector<File> Files; … … 21 46 : public ItemBase 22 47 { 48 std::string name; 49 public: 23 50 Files files; 24 51 Folders folders; 52 53 Folder( const std::string &name, HTREEITEM hTreeItem ) 54 : ItemBase( hTreeItem ) 55 , name( name ) 56 { 57 } 58 59 const std::string &GetName() const 60 { 61 return name; 62 } 63 64 bool IsEmpty() const; 65 void Clear(); 66 File &FindFile( HTREEITEM hTreeItem ); 67 File &FindFile( const std::string &path ); 68 bool IsExistFile( HTREEITEM hTreeItem ) const; 69 bool IsExistFile( const std::string &path ) const; 70 void Remove( HTREEITEM hTreeItem ); 25 71 }; 26 72 27 73 class FileSystem 28 74 { 29 Files files; 30 //Folders folders; 75 public: 76 Folder root; 77 boost::mutex mutex; 78 79 FileSystem( const std::string &rootFolderName ) 80 : root( rootFolderName, NULL ) 81 { 82 } 31 83 }; 32 84 -
trunk/ab5.0/abdev/abdev/include/ProjectManager/ProjectManager.h
r624 r655 10 10 Project() 11 11 : workDir( "" ) 12 , fileSystem( "Source Files" ) 12 13 { 13 14 } … … 44 45 DWORD dwVersion; 45 46 46 CDBFileInfo *pobj_DBFileInfo;47 FM::FileSystem fileSystem; 47 48 48 49 int NumberOfMenu;
Note:
See TracChangeset
for help on using the changeset viewer.