summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/htmlgen.cpp4
-rwxr-xr-xsrc/res2cc_cmd.py9
-rw-r--r--src/resourcemgr.cpp12
-rw-r--r--src/resourcemgr.h2
4 files changed, 24 insertions, 3 deletions
diff --git a/src/htmlgen.cpp b/src/htmlgen.cpp
index d869a2b..7b125af 100644
--- a/src/htmlgen.cpp
+++ b/src/htmlgen.cpp
@@ -1016,7 +1016,7 @@ void HtmlGenerator::writeTabData()
mgr.copyResource("nav_h.lum",dname);
mgr.copyResource("nav_f.lum",dname);
mgr.copyResource("bc_s.luma",dname);
- mgr.copyResource("doxygen.luma",dname);
+ mgr.copyResource("doxygen.svg",dname);
mgr.copyResource("closed.luma",dname);
mgr.copyResource("open.luma",dname);
mgr.copyResource("bdwn.luma",dname);
@@ -1181,7 +1181,7 @@ QCString HtmlGenerator::writeLogoAsString(const char *path)
result += "&#160;\n<a href=\"http://www.doxygen.org/index.html\">\n"
"<img class=\"footer\" src=\"";
result += path;
- result += "doxygen.png\" alt=\"doxygen\"/></a> ";
+ result += "doxygen.svg\" width=\"104\" height=\"31\" alt=\"doxygen\"/></a> ";
result += getDoxygenVersion();
result += " ";
return result;
diff --git a/src/res2cc_cmd.py b/src/res2cc_cmd.py
index 86d999d..268ae86 100755
--- a/src/res2cc_cmd.py
+++ b/src/res2cc_cmd.py
@@ -58,6 +58,7 @@ class File(object):
if ext=='.lum': return LumFile(directory,subdir,fname)
if ext=='.luma': return LumaFile(directory,subdir,fname)
if ext=='.css': return CSSFile(directory,subdir,fname)
+ if ext=='.svg': return SVGFile(directory,subdir,fname)
return VerbatimFile(directory,subdir,fname)
class VerbatimFile(File):
@@ -76,6 +77,14 @@ class CSSFile(File):
def writeDirEntry(self,outputFile):
print(" { \"%s\", \"%s\", %s_data, %s_len, Resource::CSS }," % (self.subdir,self.fileName,self.bareName,self.bareName), file=outputFile)
+class SVGFile(File):
+ def __init__(self,directory,subdir,fileName):
+ File.__init__(self,directory,subdir,fileName,"r")
+ def writeContents(self,outputFile):
+ self.writeBytes(self.inputFile.read(),outputFile)
+ def writeDirEntry(self,outputFile):
+ print(" { \"%s\", \"%s\", %s_data, %s_len, Resource::SVG }," % (self.subdir,self.fileName,self.bareName,self.bareName), file=outputFile)
+
class LumFile(File):
def __init__(self,directory,subdir,fileName):
File.__init__(self,directory,subdir,fileName,"r")
diff --git a/src/resourcemgr.cpp b/src/resourcemgr.cpp
index 4ba3388..6d2946c 100644
--- a/src/resourcemgr.cpp
+++ b/src/resourcemgr.cpp
@@ -150,6 +150,18 @@ bool ResourceMgr::copyResourceAs(const char *name,const char *targetDir,const ch
}
}
break;
+ case Resource::SVG:
+ {
+ QFile f(pathName);
+ if (f.open(IO_WriteOnly))
+ {
+ QCString buf(res->size+1);
+ memcpy(buf.rawData(),res->data,res->size);
+ FTextStream t(&f);
+ t << replaceColorMarkers(buf);
+ return TRUE;
+ }
+ }
}
}
else
diff --git a/src/resourcemgr.h b/src/resourcemgr.h
index 6e1587d..1959ec4 100644
--- a/src/resourcemgr.h
+++ b/src/resourcemgr.h
@@ -20,7 +20,7 @@
/** @brief Compiled resource */
struct Resource
{
- enum Type { Verbatim, Luminance, LumAlpha, CSS };
+ enum Type { Verbatim, Luminance, LumAlpha, CSS, SVG };
const char *category;
const char *name;
const unsigned char *data;