summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorMorten Engvoldsen <morten.engvoldsen@nokia.com>2010-07-08 09:13:17 (GMT)
committerJason McDonald <jason.mcdonald@nokia.com>2010-07-16 07:55:05 (GMT)
commit67d7bf08c8adbb7a33c4ed76629a72e2c6ae00ac (patch)
tree0766a5659e9f9100cfcc6c1d12ab09227c13c07f /tools
parent82a04410abdcf8473758407a4c426b6dd882d733 (diff)
downloadQt-67d7bf08c8adbb7a33c4ed76629a72e2c6ae00ac.zip
Qt-67d7bf08c8adbb7a33c4ed76629a72e2c6ae00ac.tar.gz
Qt-67d7bf08c8adbb7a33c4ed76629a72e2c6ae00ac.tar.bz2
Doc: changing index page
(cherry picked from commit a538ccb93fd05b26dc7a7058bbb62e0dcb682f81)
Diffstat (limited to 'tools')
-rw-r--r--tools/qdoc3/htmlgenerator.cpp52
-rw-r--r--tools/qdoc3/test/qt-html-templates.qdocconf1
2 files changed, 46 insertions, 7 deletions
diff --git a/tools/qdoc3/htmlgenerator.cpp b/tools/qdoc3/htmlgenerator.cpp
index 8148895..a50e08a 100644
--- a/tools/qdoc3/htmlgenerator.cpp
+++ b/tools/qdoc3/htmlgenerator.cpp
@@ -1762,22 +1762,41 @@ void HtmlGenerator::generateHeader(const QString& title,
else
shortVersion = "Qt " + shortVersion + ": ";
}
-
+ // Generating page title
out() << " <title>" << shortVersion << protectEnc(title) << "</title>\n";
-
- //out() << " <title>Qt Reference Documentation</title>";
-
+ // Adding style sheet
+ out() << " <link rel=\"stylesheet\" type=\"text/css\" href=\"style/style.css\" />";
+ // Adding jquery and functions - providing online tools and search features
+ out() << " <script src=\"scripts/jquery.js\" type=\"text/javascript\"></script>\n";
+ out() << " <script src=\"scripts/functions.js\" type=\"text/javascript\"></script>\n";
+ // Adding style and js for small windows
+ out() << " <script src=\"./scripts/superfish.js\" type=\"text/javascript\"></script>\n";
+ out() << " <script src=\"./scripts/narrow.js\" type=\"text/javascript\"></script>\n";
+ out() << " <link rel=\"stylesheet\" type=\"text/css\" href=\"style/superfish.css\" />";
+ out() << " <link rel=\"stylesheet\" type=\"text/css\" href=\"style/narrow.css\" />";
+
+ // Adding syntax highlighter // future release
+
+ // Setting assistant configuration
if (offlineDocs)
{
+<<<<<<< Updated upstream:tools/qdoc3/htmlgenerator.cpp
out() << " <link rel=\"stylesheet\" type=\"text/css\" href=\"style/style.css\" />"; // Style common to all browsers
// out() << " <link rel=\"stylesheet\" type=\"text/css\" href=\"style/OfflineStyle.css\" />"; // Only for Qt Creator
out() << "</head>\n";
out() << "<body class=\"offline narrow\">\n"; // narrow mainly for Creator
out() << " <script src=\"scripts/jquery.js\" type=\"text/javascript\"></script>\n";
out() << " <script src=\"scripts/functions.js\" type=\"text/javascript\"></script>\n";
+=======
+ out() << "</head>\n";
+ out() << "<body class=\"offline narrow\" >\n"; // narrow mainly for Creator
+// out() << " <script src=\"scripts/functions.js\" type=\"text/javascript\"></script>\n";
+>>>>>>> Stashed changes:tools/qdoc3/htmlgenerator.cpp
}
+ // Setting online doc configuration
else
{
+<<<<<<< Updated upstream:tools/qdoc3/htmlgenerator.cpp
out() << " <link rel=\"stylesheet\" type=\"text/css\" href=\"style/style.css\"\n />";
// out() << " <!--[if IE]>\n";
// out() << "<meta name=\"MSSmartTagsPreventParsing\" content=\"true\">\n";
@@ -1792,10 +1811,25 @@ void HtmlGenerator::generateHeader(const QString& title,
// out() << "<!--[if IE 8]>\n";
// out() << "<link rel=\"stylesheet\" type=\"text/css\" href=\"style/style_ie8.css\">\n";
// out() << "<![endif]-->\n";
+=======
+ // Custom browser styles
+ out() << " <!--[if IE]>\n";
+ out() << "<meta name=\"MSSmartTagsPreventParsing\" content=\"true\">\n";
+ out() << "<meta http-equiv=\"imagetoolbar\" content=\"no\">\n";
+ out() << "<![endif]-->\n";
+ out() << "<!--[if lt IE 7]>\n";
+ out() << "<link rel=\"stylesheet\" type=\"text/css\" href=\"style/style_ie6.css\">\n";
+ out() << "<![endif]-->\n";
+ out() << "<!--[if IE 7]>\n";
+ out() << "<link rel=\"stylesheet\" type=\"text/css\" href=\"style/style_ie7.css\">\n";
+ out() << "<![endif]-->\n";
+ out() << "<!--[if IE 8]>\n";
+ out() << "<link rel=\"stylesheet\" type=\"text/css\" href=\"style/style_ie8.css\">\n";
+ out() << "<![endif]-->\n";
+>>>>>>> Stashed changes:tools/qdoc3/htmlgenerator.cpp
// jquery functions
- out() << " <script src=\"scripts/jquery.js\" type=\"text/javascript\"></script>\n";
- out() << " <script src=\"scripts/functions.js\" type=\"text/javascript\"></script>\n";
// menus and small docs js and css
+<<<<<<< Updated upstream:tools/qdoc3/htmlgenerator.cpp
// out() << " <script src=\"./scripts/superfish.js\" type=\"text/javascript\"></script>\n";
// out() << " <script src=\"./scripts/narrow.js\" type=\"text/javascript\"></script>\n";
// out() << " <link rel=\"stylesheet\" type=\"text/css\" href=\"style/superfish.css\" />";
@@ -1812,6 +1846,12 @@ void HtmlGenerator::generateHeader(const QString& title,
out() << "</head>\n";
out() << "<body class=\"\" onload=\"CheckEmptyAndLoadList();\">\n"; // CheckEmptyAndLoadList() activating online search
+=======
+
+ out() << "</head>\n";
+ // CheckEmptyAndLoadList activating search
+ out() << "<body class=\"\" onload=\"CheckEmptyAndLoadList();\">\n";
+>>>>>>> Stashed changes:tools/qdoc3/htmlgenerator.cpp
}
#ifdef GENERATE_MAC_REFS
diff --git a/tools/qdoc3/test/qt-html-templates.qdocconf b/tools/qdoc3/test/qt-html-templates.qdocconf
index 31c9d5a..19c768c 100644
--- a/tools/qdoc3/test/qt-html-templates.qdocconf
+++ b/tools/qdoc3/test/qt-html-templates.qdocconf
@@ -22,7 +22,6 @@ HTML.postheader = " <div class=\"header\" id=\"qtdocheader\">\n" \
" <li class=\"nav-topright-doc nav-topright-doc-active\"><a href=\"http://doc.qt.nokia.com/\">\n" \
" DOC</a></li>\n" \
" <li class=\"nav-topright-blog\"><a href=\"http://blog.qt.nokia.com/\">BLOG</a></li>\n" \
- " <li class=\"nav-topright-shop\"><a title=\"SHOP\" href=\"http://shop.qt.nokia.com\">SHOP</a></li>\n" \
" </ul>\n" \
" </div>\n" \
" <div id=\"shortCut\">\n" \