added: "edit" button on threads

git-svn-id: svn://ttmath.org/publicrep/winix/trunk@616 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
2010-06-30 19:56:32 +00:00
parent 16bb238518
commit d9f5fbaf04
6 changed files with 35 additions and 3 deletions

View File

@@ -440,6 +440,17 @@ void item_tab_can_read(Info & i)
}
}
void item_tab_can_write(Info & i)
{
if( item_index < request.item_table.size() )
{
if( request.HasWriteAccess(request.item_table[item_index]) )
i.res = true;
}
}
void item_tab_info(Info & i)
{
if( static_cast<size_t>(locale.GetLang()) >= patterns.size() )
@@ -574,6 +585,15 @@ void item_tab_run(Info & i)
}
void item_tab_can_use_emacs(Info & i)
{
if( item_index < request.item_table.size() )
{
i.res = request.CanUseEmacs(request.item_table[item_index], true);
}
}