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:
@@ -359,6 +359,10 @@ void item_file_size(Info & i)
|
||||
i.res = cur->request->item.file_size;
|
||||
}
|
||||
|
||||
void item_sort(Info & i)
|
||||
{
|
||||
i.out << cur->request->item.sort_index;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -372,6 +376,12 @@ void item_tab(Info & i)
|
||||
}
|
||||
|
||||
|
||||
void item_tab_index(Info & i)
|
||||
{
|
||||
i.out << item_index;
|
||||
}
|
||||
|
||||
|
||||
void item_tab_id(Info & i)
|
||||
{
|
||||
if( item_index < cur->request->item_tab.size() )
|
||||
@@ -690,6 +700,11 @@ void item_tab_file_size(Info & i)
|
||||
i.out << cur->request->item_tab[item_index].file_size;
|
||||
}
|
||||
|
||||
void item_tab_sort(Info & i)
|
||||
{
|
||||
if( item_index < cur->request->item_tab.size() )
|
||||
i.out << cur->request->item_tab[item_index].sort_index;
|
||||
}
|
||||
|
||||
void item_tab_has_next(Info & i)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user