In the end I updated the toggleFolder function inside dynsections.js, just need
to know how to persist the changes (Doxygen overwrites the file)
Find the code below:
function toggleFolder(id)
{
//The clicked row
var currentRow = $('#row_'+id);
var currentRowImages = currentRow.find("img");
//All rows after the clicked row
var rows = currentRow.nextAll("tr");
//Only match elements AFTER this one (can't hide elements before)
var childRows = rows.filter(function() {
re = new RegExp('^row_'+id+'\\d+_$', "i"); //only one sub
return this.id.match(re);
});
//var n = $('[id^=row_'+id+']');
//var i = $('[id^=img_'+id+']');
//var a = $('[id^=arr_'+id+']');
// var c = n.slice(1); //get the FIRST element
//First row is visible we are HIDING
if (childRows.filter(':first').is(':visible')===true) {
currentRowImages.filter("[id^=arr]").attr('src', 'ftv2pnode.png');
currentRowImages.filter("[id^=img]").attr('src', 'ftv2folderclosed.png');
rows.filter("[id^=row_"+id+"]").hide();
//We are SHOWING
} else {
//All sub images
var childImages = childRows.find("img");
//Only the img images
var childImg = childImages.filter("[id^=img]");
//Only the arr images
var childArr = childImages.filter("[id^=arr]");
currentRow.find("[id^=arr]").attr('src', 'ftv2mnode.png'); //open row
currentRow.find("[id^=img]").attr('src', 'ftv2folderopen.png'); //open row
childImg.attr('src','ftv2folderclosed.png'); //children closed
childArr.attr('src','ftv2pnode.png'); //children closed
childRows.show(); //show all children
}
updateStripes();
}
Pez Cuckow | GSAM Trades Processing | +44 (0)20 7051 0671 |
pez.cuc...@gs.com<mailto:pez.cuc...@gs.com>
From: Cuckow, Pez [Tech]
Sent: Monday, September 10, 2012 12:50 PM
To: 'doxygen-users@lists.sourceforge.net'
Subject: File List Detail Level
Hi all,
Sorry for the second email of the day, hope you are all well!
I am trying to change Doxygen's file and class lists so they only expand to
show you the folders, rather than all the files.
When I open the file list in my browser I see the list like so:
· SRC_ROOT
o UAT
§ source
· PT
o PROJECT
When I click on the arrow next to project, the browser locks up for 30 seconds
or so and then loads (a massive) file list like:
· SRC_ROOT
o UAT
§ source
· PT
o PROJECT
§ Nav.lib
· File1.c
· File2.c
· File2.h
§ Cake.lib
· uk
o com
§ file.html
§ file.c
§ Console
· Window
o Register.c
o Buttons.c
· Console.c
§ Etc..
I'd like to change this behaviour (hopefully fixing the Javascript load also)
so that when you open the PROJECT folder it just opens that folder and displays
the folders and files in that folder (how Windows explorer works)
· SRC_ROOT
o UAT
§ source
· PT
o PROJECT
§ Nav.lib
§ Cake.lib
§ Console
§ Etc..
Does anyone know how to set this up or what files I need to change?
I have:
HTML_DYNAMIC_SECTIONS = YES
HTML_NUM_INDEX_ENTRIES = 10
Thanks,
Pez
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Doxygen-users mailing list
Doxygen-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/doxygen-users