X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=kernel%2Fsrc%2FbbtkFactory.cxx;h=e994b382ec648ba44f1added22faf987f2f788a8;hb=d73a7833a28e6111e1e805efae5df3ab18a240e2;hp=5429d74b5a406f52724bdaca17c352ccaba08be1;hpb=0bf62fb17685d06c51f76df9a97fd1df9237af57;p=bbtk.git diff --git a/kernel/src/bbtkFactory.cxx b/kernel/src/bbtkFactory.cxx index 5429d74..e994b38 100644 --- a/kernel/src/bbtkFactory.cxx +++ b/kernel/src/bbtkFactory.cxx @@ -4,8 +4,8 @@ Program: bbtk Module: $RCSfile: bbtkFactory.cxx,v $ Language: C++ -Date: $Date: 2008/02/04 14:12:47 $ -Version: $Revision: 1.11 $ +Date: $Date: 2008/02/05 11:39:32 $ +Version: $Revision: 1.12 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de @@ -920,28 +920,24 @@ namespace bbtk std::string k(""); k += pack->GetName(); keys.push_back(k); - title = "Index by package"; + title = "List by package"; } else if (type==Initials) { std::string init(" "); init[0] = std::toupper(j->second->GetTypeName()[0]); keys.push_back(init); - title = "Alphabetical index"; + title = "Alphabetical list"; } - else if (type==Keywords) + else if (type==Categories) { // Split the keyword string - //std::vector keywords; std::string delimiters = ";,"; Utilities::SplitString(j->second->GetKeyword(), delimiters,keys); - //std::vector::iterator si; - //for (si=keywords.begin();si!=keywords.end;++si) - // { - // keys.push_back(*si); - // } - title = "Index by keyword"; + if (keys.size()==0) + keys.push_back(" NONE"); + title = "List by category"; } std::vector::const_iterator k;