]> Creatis software - bbtk.git/commitdiff
*** empty log message ***
authorguigues <guigues>
Mon, 4 Feb 2008 14:12:47 +0000 (14:12 +0000)
committerguigues <guigues>
Mon, 4 Feb 2008 14:12:47 +0000 (14:12 +0000)
kernel/src/bbtkFactory.cxx

index 0339fa70fe29982d4d54039f8b362e88c9e47050..5429d74b5a406f52724bdaca17c352ccaba08be1 100644 (file)
@@ -4,8 +4,8 @@ Program:   bbtk
 Module:    $RCSfile: bbtkFactory.cxx,v $
 Language:  C++
 
-Date:      $Date: 2008/02/04 13:51:30 $
-Version:   $Revision: 1.10 $
+Date:      $Date: 2008/02/04 14:12:47 $
+Version:   $Revision: 1.11 $
                                                                                 
 
 Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
@@ -917,8 +917,10 @@ namespace bbtk
            std::vector<std::string> keys;
            if (type==Packages)
              {
-               keys.push_back(pack->GetName());
-               title = "Index by packages";
+               std::string k("");
+               k += pack->GetName();
+               keys.push_back(k);
+               title = "Index by package";
              }
            else if (type==Initials)
              {
@@ -939,7 +941,7 @@ namespace bbtk
                //  {
                //    keys.push_back(*si);
                //  }
-               title = "Index by keywords";
+               title = "Index by keyword";
              }
            
            std::vector<std::string>::const_iterator k;
@@ -999,11 +1001,20 @@ namespace bbtk
     //----------------------
     // Html body
     s << "<body>\n";
+    s << "<a name=\"Top\"></a>\n"; 
     s << "<h1 class=\"settitle\">"<<title<<"</h1>\n";
-
+    s << "<p>\n";
     IndexType::iterator ii;
     for (ii=index.begin();ii!=index.end();++ii)
       {
+       s << "<a href=\"#"<<ii->first<<"\">"<<ii->first<<"</a>&nbsp;";  
+      }
+
+    for (ii=index.begin();ii!=index.end();++ii)
+      {
+       s << "<p><hr>\n";
+       s << "<p><a href=\"#Top\">Top</a>";
+       s << "<a name=\""<<ii->first<<"\"></a>\n"; 
        s << "<p><b>"<<ii->first<<"</b>\n";
        s << "<ul>\n";