diff options
author | deva <deva> | 2011-06-14 12:59:50 +0000 |
---|---|---|
committer | deva <deva> | 2011-06-14 12:59:50 +0000 |
commit | 72b7577583c0bdcc3b2b78687092b448e73a2e98 (patch) | |
tree | 1cad6420138d5ebe11f5e6deff781887177d92b9 /client/docgen/generate.cc | |
parent | a949a28ef255983bf1b3b52eb90f1859240a897b (diff) |
Create screenshots from xml code in the annotations.
Diffstat (limited to 'client/docgen/generate.cc')
-rw-r--r-- | client/docgen/generate.cc | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/client/docgen/generate.cc b/client/docgen/generate.cc index db7d0c9..b521f1f 100644 --- a/client/docgen/generate.cc +++ b/client/docgen/generate.cc @@ -230,11 +230,16 @@ QString generate(Doc &doc, QMap<QString, QVector<Method> > &meths, out += extendedBy(doc.name, docs); - if(doc.screenshot) { - genImage(doc.tag); + int idx = 0; + QVector<Screenshot>::iterator si = doc.screenshots.begin(); + while(si != doc.screenshots.end()) { + Screenshot &s = *si; + QString imgfile = genImage(s.xml, idx++); out += " <div class=\"screenshot\">\n"; - out += " <img src=\"gfx/" + doc.tag + ".png\"/>\n"; + out += " <img src=\"gfx/" + imgfile + "\"/><br/>\n"; + out += " <span class=\"caption\">"+s.caption+"</span>\n"; out += " </div>\n"; + si++; } out += " <div class=\"description\">\n"; |