53 for (
int i=0;i<numResources;i++)
63 for (it.toFirst();(res=it.current());++it)
98 int width = (p[0]<<8)+p[1];
99 int height = (p[2]<<8)+p[3];
102 images[0].
width = width;
103 images[0].
height = height;
116 int width = (p[0]<<8)+p[1];
117 int height = (p[2]<<8)+p[3];
120 images[0].
width = width;
121 images[0].
height = height;
123 images[0].
alpha = &p[4+width*height];
138 if (
qstrcmp(name,
"navtree.css")==0)
154 err(
"requested resource '%s' not compiled in!\n",name);
QCString getAsString(const char *name) const
bool copyResource(const char *name, const char *targetDir) const
static ResourceMgr & instance()
QCString left(uint len) const
void writeColoredImgData(const char *dir, ColoredImgDataItem data[])
Simplified and optimized version of QTextStream.
const Resource * get(const char *name) const
#define Config_getInt(val)
int writeBlock(const char *data, uint len)
QDict< Resource > resources
const unsigned char * data
Singleton for managing resources compiled into an executable.
A bunch of utility functions.
void err(const char *fmt,...)
The QFile class is an I/O device that operates on files.
bool copyCategory(const char *categoryName, const char *targetDir) const
bool copyResourceAs(const char *name, const char *targetDir, const char *targetName) const
QCString replaceColorMarkers(const char *str)
void registerResources(const Resource resources[], int numResources)
Q_EXPORT int qstrcmp(const char *str1, const char *str2)
QCString substitute(const QCString &s, const QCString &src, const QCString &dst)
substitute all occurrences of src in s by dst