]> Creatis software - bbtk.git/commitdiff
*** empty log message ***
authorguigues <guigues>
Tue, 5 Feb 2008 11:39:32 +0000 (11:39 +0000)
committerguigues <guigues>
Tue, 5 Feb 2008 11:39:32 +0000 (11:39 +0000)
kernel/doc/bbtkWebSite/CMakeLists.txt
kernel/doc/bbtkWebSite/make-index.bbs.in
kernel/doc/bbtkWebSite/menu.html
kernel/src/bbtkFactory.cxx
kernel/src/bbtkFactory.h
kernel/src/bbtkInterpreter.cxx

index 62e1307ef93433fc45fc5676970053211f40deba..e25309ab0e2f6edbcc67c8e64cbe0a283a82fbc1 100644 (file)
@@ -20,10 +20,10 @@ ENDFOREACH(page)
 # Index generation
 SET(BBTK_INDEX_ALPHA_FILE ${BBTK_BBDOC_BUILD_PATH}/index-alpha.html)
 SET(BBTK_INDEX_PACKAGES_FILE ${BBTK_BBDOC_BUILD_PATH}/index-package.html)
-SET(BBTK_INDEX_KEYWORDS_FILE ${BBTK_BBDOC_BUILD_PATH}/index-keyword.html)
+SET(BBTK_INDEX_CATEGORIES_FILE ${BBTK_BBDOC_BUILD_PATH}/index-category.html)
 SET(INDEX_OUTPUT 
   ${BBTK_INDEX_ALPHA_FILE} ${BBTK_INDEX_PACKAGES_FILE} 
-  ${BBTK_INDEX_KEYWORDS_FILE}
+  ${BBTK_INDEX_CATEGORIES_FILE}
   )
 CONFIGURE_FILE(
   ${CMAKE_CURRENT_SOURCE_DIR}/make-index.bbs.in
index 56794635b9db8b55e259a347c40dceb61ffa9c89..aa15bc7937079d9c27d041ca381be9f94859d89f 100644 (file)
@@ -1,4 +1,4 @@
 include *
 index @BBTK_INDEX_ALPHA_FILE@ Initials
 index @BBTK_INDEX_PACKAGES_FILE@ Packages
-index @BBTK_INDEX_KEYWORDS_FILE@ Keywords
+index @BBTK_INDEX_CATEGORIES_FILE@ Categories
index f69753ba0a2cd35d939c381de96bf1d6a71b1261..e51744f51ccbb747e6300fddee057de2065f0e8a 100644 (file)
@@ -45,12 +45,11 @@ Reference (pdf)<br>
 </small>
 <blockquote><small> </small></blockquote>
 <small><b></b></small><font size="2"><a target="information"
- href="../bbdoc/index-alpha.html">Alphabetical
-index</a><br>
-<a target="information" href="../bbdoc/index-package.html">Index by
+ href="../bbdoc/index-alpha.html">Alphabetical list</a><br>
+<a target="information" href="../bbdoc/index-package.html">List by
 package</a><br>
-<a target="information" href="../bbdoc/index-keyword.html">Index by
-keyword</a></font><br>
+<a target="information" href="../bbdoc/index-category.html">List by
+category</a></font><br>
 <ul>
 </ul>
 <hr style="width: 100%; height: 2px;"><small>
index 5429d74b5a406f52724bdaca17c352ccaba08be1..e994b382ec648ba44f1added22faf987f2f788a8 100644 (file)
@@ -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<std::string> keywords;
                std::string delimiters = ";,";
                Utilities::SplitString(j->second->GetKeyword(),
                                       delimiters,keys);
-               //std::vector<std::string>::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<std::string>::const_iterator k;
index 7eaefeb85eda4f767575c7c0a029607d16575a2a..9b2aab1949b1dca36878bcabc87a498ab6e7d7fc 100644 (file)
@@ -3,8 +3,8 @@
   Program:   bbtk
   Module:    $RCSfile: bbtkFactory.h,v $
   Language:  C++
-  Date:      $Date: 2008/02/04 13:02:58 $
-  Version:   $Revision: 1.3 $
+  Date:      $Date: 2008/02/05 11:39:32 $
+  Version:   $Revision: 1.4 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See doc/license.txt or
@@ -76,7 +76,7 @@ namespace bbtk
     typedef enum
       {
        Packages,
-       Keywords,
+       Categories,
        Initials
       }
       IndexEntryType;
index d5f08d28d644f82a03b86a4d5b2ec15de1e4e3c7..09954ef4fe723b386243bcfb143ffb6a9b9a7211 100644 (file)
@@ -3,8 +3,8 @@
   Program:   bbtk
   Module:    $RCSfile: bbtkInterpreter.cxx,v $ $
   Language:  C++
-  Date:      $Date: 2008/02/05 11:07:42 $
-  Version:   $Revision: 1.22 $
+  Date:      $Date: 2008/02/05 11:39:32 $
+  Version:   $Revision: 1.23 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -167,8 +167,8 @@ Interpreter* Interpreter::mGlobalInterpreter = NULL;
     info.argmin = 0;
     info.argmax = 2;
     info.code = cIndex;
-    info.syntax = "index [<filename> ['Initials'(default)|'Packages'|'Keywords']]";
-    info.help = "Creates an html index of known boxes. If filename is provided then save it to the file 'filename'. The default index entries are the initial letters of the names of the boxes. If 'Packages' or 'Keywords' is provided then the entries are either the package names or the keywords";
+    info.syntax = "index [<filename> ['Initials'(default)|'Packages'|'Categories']]";
+    info.help = "Creates an html index of known boxes. If filename is provided then save it to the file 'filename'. The default index entries are the initial letters of the names of the boxes. If 'Packages' or 'Categories' is provided then the entries are either the packages names or the categories";
     mCommandDict[info.keyword] = info;
 
     info.keyword = "reset";  //EED
@@ -1554,7 +1554,7 @@ void  Interpreter::Index(const std::string& filename,
 {
   Factory::IndexEntryType t;
   if (type=="Initials") t = Factory::Initials;
-  else if (type=="Keywords") t = Factory::Keywords;
+  else if (type=="Categories") t = Factory::Categories;
   else if (type=="Packages") t = Factory::Packages;
   
   GetGlobalFactory()->CreateHtmlIndex(t,filename);