Orb/Doxygen/src/ftvhelp.cpp
changeset 4 468f4c8d3d5b
parent 0 42188c7ea2d9
equal deleted inserted replaced
3:d8fccb2cd802 4:468f4c8d3d5b
     1 /******************************************************************************
     1 /******************************************************************************
     2  * ftvhelp.cpp,v 1.0 2000/09/06 16:09:00
     2  * ftvhelp.cpp,v 1.0 2000/09/06 16:09:00
     3  *
     3  *
     4  * Copyright (C) 1997-2008 by Dimitri van Heesch.
     4  * Copyright (C) 1997-2010 by Dimitri van Heesch.
     5  *
     5  *
     6  * Permission to use, copy, modify, and distribute this software and its
     6  * Permission to use, copy, modify, and distribute this software and its
     7  * documentation under the terms of the GNU General Public License is hereby 
     7  * documentation under the terms of the GNU General Public License is hereby 
     8  * granted. No representations are made about the suitability of this software 
     8  * granted. No representations are made about the suitability of this software 
     9  * for any purpose. It is provided "as is" without express or implied warranty.
     9  * for any purpose. It is provided "as is" without express or implied warranty.
   633   QTextOStream t(OutString);
   633   QTextOStream t(OutString);
   634   t.setEncoding(QTextStream::UnicodeUTF8);
   634   t.setEncoding(QTextStream::UnicodeUTF8);
   635 
   635 
   636   if (m_topLevelIndex)
   636   if (m_topLevelIndex)
   637   {
   637   {
   638     if (searchEngine)
   638     //if (searchEngine)
   639     {
   639     //{
   640       t << "<!-- This comment will put IE 6, 7 and 8 in quirks mode -->" << endl;
   640     //  t << "<!-- This comment will put IE 6, 7 and 8 in quirks mode -->" << endl;
   641     }
   641     //}
   642     t << "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n";
   642     t << "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n";
   643     t << "<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"en\" lang=\"en\">\n";
   643     t << "<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"en\" lang=\"en\">\n";
   644     t << "  <head>\n";
   644     t << "  <head>\n";
   645     t << "    <meta http-equiv=\"Content-Type\" content=\"text/xhtml;charset=UTF-8\"/>\n";
   645     t << "    <meta http-equiv=\"Content-Type\" content=\"text/xhtml;charset=UTF-8\"/>\n";
   646     t << "    <meta http-equiv=\"Content-Style-Type\" content=\"text/css\" />\n";
   646     t << "    <meta http-equiv=\"Content-Style-Type\" content=\"text/css\" />\n";
   742       t << "      var searchBox = new SearchBox(\"searchBox\", \"search\", true, '" 
   742       t << "      var searchBox = new SearchBox(\"searchBox\", \"search\", true, '" 
   743         << theTranslator->trSearch() << "');\n";
   743         << theTranslator->trSearch() << "');\n";
   744       t << "      --></script>\n";
   744       t << "      --></script>\n";
   745       if (!serverBasedSearch)
   745       if (!serverBasedSearch)
   746       {
   746       {
   747         t << "      <div id=\"MSearchBox\" class=\"MSearchBoxInactive\">\n";
   747         t << "      <div class=\"tabsearch\">\n";
   748         t << "      <div class=\"MSearchBoxRow\"><span class=\"MSearchBoxLeft\">\n";
   748         t << "        <div id=\"MSearchBox\" class=\"MSearchBoxInactive\">\n";
   749         t << "      <a id=\"MSearchClose\" href=\"javascript:searchBox.CloseResultsWindow()\">"
   749         t << "          <span class=\"left\">\n";
       
   750         t << "            <a id=\"MSearchClose\" href=\"javascript:searchBox.CloseResultsWindow()\">"
   750           << "<img id=\"MSearchCloseImg\" border=\"0\" src=\"search/close.png\" alt=\"\"/></a>\n";
   751           << "<img id=\"MSearchCloseImg\" border=\"0\" src=\"search/close.png\" alt=\"\"/></a>\n";
   751         t << "      <input type=\"text\" id=\"MSearchField\" value=\"" 
   752         t << "            <input type=\"text\" id=\"MSearchField\" value=\"" 
   752           << theTranslator->trSearch() << "\" accesskey=\"S\"\n";
   753           << theTranslator->trSearch() << "\" accesskey=\"S\"\n";
   753         t << "           onfocus=\"searchBox.OnSearchFieldFocus(true)\" \n";
   754         t << "                   onfocus=\"searchBox.OnSearchFieldFocus(true)\" \n";
   754         t << "           onblur=\"searchBox.OnSearchFieldFocus(false)\" \n";
   755         t << "                   onblur=\"searchBox.OnSearchFieldFocus(false)\" \n";
   755         t << "           onkeyup=\"searchBox.OnSearchFieldChange(event)\"/>\n";
   756         t << "                   onkeyup=\"searchBox.OnSearchFieldChange(event)\"/>\n";
   756         t << "      </span><span class=\"MSearchBoxRight\">\n";
   757         t << "          </span><span class=\"right\">\n";
   757         t << "      <img id=\"MSearchSelect\" src=\"search/search.png\"\n";
   758         t << "            <img id=\"MSearchSelect\" src=\"search/mag_sel.png\"\n";
   758         t << "           onmouseover=\"return searchBox.OnSearchSelectShow()\"\n";
   759         t << "                 onmouseover=\"return searchBox.OnSearchSelectShow()\"\n";
   759         t << "           onmouseout=\"return searchBox.OnSearchSelectHide()\"\n";
   760         t << "                 onmouseout=\"return searchBox.OnSearchSelectHide()\"\n";
   760         t << "           alt=\"\"/>\n";
   761         t << "                 alt=\"\"/>\n";
   761         t << "      </span></div><div class=\"MSearchBoxSpacer\">&nbsp;</div>\n";
   762         t << "          </span>\n";
       
   763         t << "        </div>\n";
   762         t << "      </div>\n";
   764         t << "      </div>\n";
   763         HtmlGenerator::writeSearchFooter(t,QCString());
   765         HtmlGenerator::writeSearchFooter(t,QCString());
   764       }
   766       }
   765       else
   767       else
   766       {
   768       {
       
   769         t << "      <div class=\"tabsearch\">\n";
   767         t << "        <div id=\"MSearchBox\" class=\"MSearchBoxInactive\">\n";
   770         t << "        <div id=\"MSearchBox\" class=\"MSearchBoxInactive\">\n";
       
   771         t << "          <span class=\"left\">\n";
   768         t << "            <form id=\"FSearchBox\" action=\"search.php\" method=\"get\" target=\"basefrm\">\n";
   772         t << "            <form id=\"FSearchBox\" action=\"search.php\" method=\"get\" target=\"basefrm\">\n";
   769         t << "              <img id=\"MSearchSelect\" src=\"search/search.png\" alt=\"\"/>\n";
   773         t << "              <img id=\"MSearchSelect\" src=\"search/mag.png\" alt=\"\"/>\n";
   770         t << "              <input type=\"text\" id=\"MSearchField\" name=\"query\" value=\""
   774         t << "              <input type=\"text\" id=\"MSearchField\" name=\"query\" value=\""
   771           << theTranslator->trSearch() << "\" size=\"20\" accesskey=\"S\" \n";
   775           << theTranslator->trSearch() << "\" size=\"20\" accesskey=\"S\" \n";
   772         t << "                     onfocus=\"searchBox.OnSearchFieldFocus(true)\" \n";
   776         t << "                     onfocus=\"searchBox.OnSearchFieldFocus(true)\" \n";
   773         t << "                     onblur=\"searchBox.OnSearchFieldFocus(false)\"/>\n";
   777         t << "                     onblur=\"searchBox.OnSearchFieldFocus(false)\"/>\n";
   774         t << "            </form>\n";
   778         t << "            </form>\n";
   775         t << "          <div class=\"MSearchBoxSpacer\">&nbsp;</div>\n";
   779         t << "          </span><span class=\"right\"></span>\n";
   776         t << "        </div>\n";
   780         t << "        </div>\n";
       
   781         t << "      </div>\n";
   777       }
   782       }
   778     }
   783     }
   779     t << "    <div class=\"directory\">\n";
   784     t << "    <div class=\"directory\">\n";
   780     t << "      <h3 class=\"swap\"><span>";
   785     t << "      <h3 class=\"swap\"><span>";
   781     QCString &projName = Config_getString("PROJECT_NAME");
   786     QCString &projName = Config_getString("PROJECT_NAME");