added: new winix function: "sort"
sorting items in a directory (Item::sort_index is used) git-svn-id: svn://ttmath.org/publicrep/winix/trunk@754 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
@@ -196,6 +196,22 @@ DirContainer::Iterator i;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
void Dirs::MakePath(const std::vector<Item*> dir_tab, std::wstring & path, bool clear_path)
|
||||
{
|
||||
if( clear_path )
|
||||
path.clear();
|
||||
|
||||
for(size_t i=0 ; i<dir_tab.size() ; ++i)
|
||||
{
|
||||
path += dir_tab[i]->url;
|
||||
path += '/';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
size_t Dirs::DirLevel(long id)
|
||||
{
|
||||
DirContainer::Iterator i;
|
||||
|
Reference in New Issue
Block a user