diff options
author | Dimitri van Heesch <doxygen@gmail.com> | 2021-05-08 14:36:12 (GMT) |
---|---|---|
committer | Dimitri van Heesch <doxygen@gmail.com> | 2021-05-08 14:36:12 (GMT) |
commit | 12a6d876e3ff0004e288f1c7fadb10d0431bfc24 (patch) | |
tree | cb8cec1ebb755d6e0a4a44dfa35ce01b141a8f18 /src | |
parent | 99f9fc74eda25616f3d5c3e40f030c8c7ecce4bb (diff) | |
download | Doxygen-12a6d876e3ff0004e288f1c7fadb10d0431bfc24.zip Doxygen-12a6d876e3ff0004e288f1c7fadb10d0431bfc24.tar.gz Doxygen-12a6d876e3ff0004e288f1c7fadb10d0431bfc24.tar.bz2 |
Optimized the layout in case DISABLE_INDEX=YES and GENERATE_TREEVIEW=YES
- also illustrated the various layouts in the customization section of
the manual to make choosing easier.
Diffstat (limited to 'src')
-rw-r--r-- | src/htmlgen.cpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/htmlgen.cpp b/src/htmlgen.cpp index ea20707..c15b205 100644 --- a/src/htmlgen.cpp +++ b/src/htmlgen.cpp @@ -385,6 +385,9 @@ static QCString substituteHtmlKeywords(const QCString &str, if (treeView) { treeViewCssJs = "<link href=\"$relpath^navtree.css\" rel=\"stylesheet\" type=\"text/css\"/>\n" + "<script type=\"text/javascript\">var page_layout="; + treeViewCssJs += Config_getBool(DISABLE_INDEX) ? "1" : "0"; + treeViewCssJs += ";</script>\n" "<script type=\"text/javascript\" src=\"$relpath^resize.js\"></script>\n" "<script type=\"text/javascript\" src=\"$relpath^navtreedata.js\"></script>\n" "<script type=\"text/javascript\" src=\"$relpath^navtree.js\"></script>\n"; @@ -2556,8 +2559,12 @@ QCString HtmlGenerator::writeSplitBarAsString(const QCString &name,const QCStrin // write split bar if (generateTreeView) { - result = QCString( - "<div id=\"side-nav\" class=\"ui-resizable side-nav-resizable\">\n" + if (!Config_getBool(DISABLE_INDEX)) + { + result += QCString( + "<div id=\"side-nav\" class=\"ui-resizable side-nav-resizable\">\n"); + } + result+= QCString( " <div id=\"nav-tree\">\n" " <div id=\"nav-tree-contents\">\n" " <div id=\"nav-sync\" class=\"sync\"></div>\n" |