Skip to content

Commit

Permalink
Bug 750930 - Representation of arrows
Browse files Browse the repository at this point in the history
  • Loading branch information
Dimitri van Heesch committed May 15, 2016
1 parent c2e0ce1 commit ab96c07
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 124 deletions.
8 changes: 4 additions & 4 deletions qtools/Doxyfile
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ HTML_COLORSTYLE_HUE = 220
HTML_COLORSTYLE_SAT = 100
HTML_COLORSTYLE_GAMMA = 80
HTML_TIMESTAMP = YES
HTML_DYNAMIC_SECTIONS = YES
HTML_DYNAMIC_SECTIONS = NO
HTML_INDEX_NUM_ENTRIES = 100
GENERATE_DOCSET = YES
DOCSET_FEEDNAME = "Doxygen generated docs"
Expand All @@ -175,7 +175,7 @@ QHG_LOCATION =
GENERATE_ECLIPSEHELP = YES
ECLIPSE_DOC_ID = org.doxygen.qtools
DISABLE_INDEX = NO
GENERATE_TREEVIEW = NO
GENERATE_TREEVIEW = YES
ENUM_VALUES_PER_LINE = 4
TREEVIEW_WIDTH = 250
EXT_LINKS_IN_WINDOW = NO
Expand Down Expand Up @@ -292,8 +292,8 @@ UML_LIMIT_NUM_FIELDS = 10
TEMPLATE_RELATIONS = YES
INCLUDE_GRAPH = YES
INCLUDED_BY_GRAPH = YES
CALL_GRAPH = YES
CALLER_GRAPH = YES
CALL_GRAPH = NO
CALLER_GRAPH = NO
GRAPHICAL_HIERARCHY = YES
DIRECTORY_GRAPH = YES
DOT_IMAGE_FORMAT = svg
Expand Down
2 changes: 0 additions & 2 deletions src/ftvhelp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -694,8 +694,6 @@ void FTVHelp::generateTreeViewImages()
rm.copyResource("doc.luma",dname);
rm.copyResource("folderopen.luma",dname);
rm.copyResource("folderclosed.luma",dname);
rm.copyResource("arrowdown.luma",dname);
rm.copyResource("arrowright.luma",dname);
rm.copyResource("splitbar.lum",dname);
}

Expand Down
49 changes: 0 additions & 49 deletions templates/html/arrowdown.luma

This file was deleted.

49 changes: 0 additions & 49 deletions templates/html/arrowright.luma

This file was deleted.

2 changes: 0 additions & 2 deletions templates/html/htmllayout.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@
{% resource 'doc.luma' %}
{% resource 'folderopen.luma' %}
{% resource 'folderclosed.luma' %}
{% resource 'arrowdown.luma' %}
{% resource 'arrowright.luma' %}
{% resource 'splitbar.lum' %}
{# general search resources #}
Expand Down
30 changes: 12 additions & 18 deletions templates/html/navtree.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
var navTreeSubIndices = new Array();
var arrowDown = '▼';
var arrowRight = '►';

function getData(varName)
{
Expand Down Expand Up @@ -94,31 +96,28 @@ function createIndent(o,domNode,node,level)
var n = node;
while (n.parentNode) { level++; n=n.parentNode; }
if (node.childrenData) {
var imgNode = document.createElement("img");
var imgNode = document.createElement("span");
imgNode.className = 'arrow';
imgNode.style.paddingLeft=(16*level).toString()+'px';
imgNode.width = 16;
imgNode.height = 22;
imgNode.border = 0;
imgNode.innerHTML=arrowRight;
node.plus_img = imgNode;
node.expandToggle = document.createElement("a");
node.expandToggle.href = "javascript:void(0)";
node.expandToggle.onclick = function() {
if (node.expanded) {
$(node.getChildrenUL()).slideUp("fast");
node.plus_img.src = node.relpath+"arrowright.png";
node.plus_img.innerHTML=arrowRight;
node.expanded = false;
} else {
expandNode(o, node, false, false);
}
}
node.expandToggle.appendChild(imgNode);
domNode.appendChild(node.expandToggle);
imgNode.src = node.relpath+"arrowright.png";
} else {
var span = document.createElement("span");
span.style.display = 'inline-block';
span.className = 'arrow';
span.style.width = 16*(level+1)+'px';
span.style.height = '22px';
span.innerHTML = ' ';
domNode.appendChild(span);
}
Expand Down Expand Up @@ -268,11 +267,7 @@ function expandNode(o, node, imm, showRoot)
} else {
$(node.getChildrenUL()).slideDown("fast");
}
if (node.isLast) {
node.plus_img.src = node.relpath+"arrowdown.png";
} else {
node.plus_img.src = node.relpath+"arrowdown.png";
}
node.plus_img.innerHTML = arrowDown;
node.expanded = true;
}
}
Expand Down Expand Up @@ -341,7 +336,7 @@ function showNode(o, node, index, hash)
getNode(o, node);
}
$(node.getChildrenUL()).css({'display':'block'});
node.plus_img.src = node.relpath+"arrowdown.png";
node.plus_img.innerHTML = arrowDown;
node.expanded = true;
var n = node.children[o.breadcrumbs[index]];
if (index+1<o.breadcrumbs.length) {
Expand Down Expand Up @@ -478,10 +473,9 @@ function initNavTree(toroot,relpath)
o.node.relpath = relpath;
o.node.expanded = false;
o.node.isLast = true;
o.node.plus_img = document.createElement("img");
o.node.plus_img.src = relpath+"arrowright.png";
o.node.plus_img.width = 16;
o.node.plus_img.height = 22;
o.node.plus_img = document.createElement("span");
o.node.plus_img.className = 'arrow';
o.node.plus_img.innerHTML = arrowRight;

if (localStorageSupported()) {
var navSync = $('#nav-sync');
Expand Down

0 comments on commit ab96c07

Please sign in to comment.