Here is the itch I had to scratch: When coding in Qt, it takes a lot of scrolling and time to find the right classes on the All Classes page. There is of course the Main Classes page, but you might not agree with the Trolls on which classes are the "main" ones.
With this short program it is easy to make a small & relevant page:
- The program takes one argument, the name of a directory where you keep source code for some big project.
- In that directory, all files with extention .cc .h and .cpp will be scanned for Qt classes.
- On stdout, the program will print a html page formatted just like Main Classes but with your classes instead.
- So direct the output to a file, say myclasses.html, in <Qt-installation-dir>/doc/html.
- edit <Qt-installation-dir>/doc/html/index.html Right after the first "middot", insert something like:
Qt Code:
<a href="myclasses.html"><font color="#004faf">Foobar's Classes</font></a> ·To copy to clipboard, switch view to plain text mode- Then, you can browse the docs with Qt Assistant or a web browser, as usual.
(Tested on Linux)
Bookmarks