summaryrefslogtreecommitdiffstats
path: root/tools/qdoc3
diff options
context:
space:
mode:
authorMorten Engvoldsen <morten.engvoldsen@nokia.com>2010-07-08 09:13:17 (GMT)
committerMorten Engvoldsen <morten.engvoldsen@nokia.com>2010-07-08 09:13:17 (GMT)
commita538ccb93fd05b26dc7a7058bbb62e0dcb682f81 (patch)
tree992238dd2baa6cc89deff77ba102c0ee56e29bb5 /tools/qdoc3
parentbaab1d25cbae435a6a84ba75c2702350adb027cc (diff)
downloadQt-a538ccb93fd05b26dc7a7058bbb62e0dcb682f81.zip
Qt-a538ccb93fd05b26dc7a7058bbb62e0dcb682f81.tar.gz
Qt-a538ccb93fd05b26dc7a7058bbb62e0dcb682f81.tar.bz2
Doc: changing index page
Diffstat (limited to 'tools/qdoc3')
-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 5b6ea28..5c2d17a 100644
--- a/tools/qdoc3/htmlgenerator.cpp
+++ b/tools/qdoc3/htmlgenerator.cpp
@@ -1757,22 +1757,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";
@@ -1787,10 +1806,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\" />";
@@ -1807,6 +1841,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 e032d6f..550d80f 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" \