Changeset 653 in dev
- Timestamp:
- Jun 17, 2008, 10:14:51 PM (16 years ago)
- Location:
- trunk/ab5.0/abdev/abdev
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ab5.0/abdev/abdev/CFileInfo.cpp
r651 r653 64 64 return 0; 65 65 } 66 void CDBFileInfo::SetTreeItem(int index,HTREEITEM hTreeItem){67 ppobj_FileInfo[index]->m_hTreeItem=hTreeItem;68 }69 void CDBFileInfo::ResetTree(void){70 TV_INSERTSTRUCT tv;71 72 pobj_FileTree->DeleteAllItems();73 74 tv.hInsertAfter=TVI_SORT;75 tv.item.mask=TVIF_TEXT|TVIF_IMAGE|TVIF_SELECTEDIMAGE;76 77 tv.hParent=TVI_ROOT;78 tv.item.iImage=0;79 tv.item.iSelectedImage=0;80 tv.item.pszText="Source Files";81 tv.hParent = pobj_FileTree->InsertItem( &tv );82 83 int i;84 char temporary[MAX_PATH],temp2[MAX_PATH];85 for(i=0;i<iNum;i++){86 _splitpath(ppobj_FileInfo[i]->GetPath().c_str(),0,0,temporary,temp2);87 lstrcat(temporary,temp2);88 tv.item.iImage=2;89 tv.item.iSelectedImage=2;90 tv.item.pszText=temporary;91 ppobj_FileInfo[i]->m_hTreeItem = pobj_FileTree->InsertItem( &tv );92 }93 }94 66 BOOL CDBFileInfo::dupli_check(char *path){ 95 67 //重複チェック -
trunk/ab5.0/abdev/abdev/Common.h
r652 r653 431 431 const std::string &GetPath(HTREEITEM hTreeItem); 432 432 BOOL IsMainFile(HTREEITEM hTreeItem); 433 434 void SetTreeItem(int index,HTREEITEM hTreeItem);435 void ResetTree(void);436 433 437 434 BOOL dupli_check(char *path); -
trunk/ab5.0/abdev/abdev/FileTree.cpp
r651 r653 189 189 } 190 190 191 HTREEITEM FileListTreeViewCtrl::insert(char *str){ 192 ////////////////////// 193 //ツリービューに追加 194 191 HTREEITEM FileListTreeViewCtrl::Insert( const std::string &str ) 192 { 193 return this->InsertItem( str.c_str(), 2, 2, this->GetRootItem(), TVI_SORT ); 194 } 195 196 void FileListTreeViewCtrl::Reset( CDBFileInfo *pFileInfos ) 197 { 195 198 TV_INSERTSTRUCT tv; 199 200 this->DeleteAllItems(); 201 196 202 tv.hInsertAfter=TVI_SORT; 197 203 tv.item.mask=TVIF_TEXT|TVIF_IMAGE|TVIF_SELECTEDIMAGE; 198 tv.item.iImage=2; 199 tv.item.iSelectedImage=2; 200 tv.hParent=this->GetRootItem(); 201 tv.item.pszText=str; 202 203 return this->InsertItem(&tv); 204 } 204 205 tv.hParent=TVI_ROOT; 206 tv.item.iImage=0; 207 tv.item.iSelectedImage=0; 208 tv.item.pszText="Source Files"; 209 tv.hParent = this->InsertItem( &tv ); 210 211 int i; 212 char temporary[MAX_PATH],temp2[MAX_PATH]; 213 for(i=0;i<pFileInfos->iNum;i++){ 214 _splitpath(pFileInfos->ppobj_FileInfo[i]->GetPath().c_str(),0,0,temporary,temp2); 215 lstrcat(temporary,temp2); 216 tv.item.iImage=2; 217 tv.item.iSelectedImage=2; 218 tv.item.pszText=temporary; 219 pFileInfos->ppobj_FileInfo[i]->m_hTreeItem = this->InsertItem( &tv ); 220 } 221 } -
trunk/ab5.0/abdev/abdev/FileTree.h
r651 r653 1 1 2 class CDBFileInfo; 2 3 3 4 class FileListTreeViewCtrl … … 11 12 void ContextMenu(POINT *pPos); 12 13 13 HTREEITEM insert(char *str); 14 HTREEITEM Insert( const std::string &str ); 15 void Reset( CDBFileInfo *pFileInfos ); 14 16 }; 15 17 -
trunk/ab5.0/abdev/abdev/ProjectControl.cpp
r651 r653 665 665 _splitpath(path,0,0,temporary,temp2); 666 666 lstrcat(temporary,temp2); 667 hTreeItem=pobj_FileTree-> insert(temporary);667 hTreeItem=pobj_FileTree->Insert( temporary ); 668 668 669 669 … … 1127 1127 1128 1128 //ファイル ツリー 1129 p rojectInfo.pobj_DBFileInfo->ResetTree();1129 pobj_FileTree->Reset( projectInfo.pobj_DBFileInfo ); 1130 1130 1131 1131 //関数ツリー -
trunk/ab5.0/abdev/abdev/include/ProjectManager/FileManager.h
r651 r653 28 28 { 29 29 Files files; 30 Folders folders;30 //Folders folders; 31 31 }; 32 32
Note:
See TracChangeset
for help on using the changeset viewer.