37 err(
"failed to open map file %s for inclusion in the docs!\n" 38 "If you installed Graphviz/dot after a previous failing run, \n" 39 "try deleting the output directory and rerun doxygen.\n",mapName);
42 const int maxLineLen=1024;
50 int numBytes = f.
readLine(buf,maxLineLen);
56 sscanf(buf,
"rect %s %d,%d %d,%d",url,&x1,&y1,&x2,&y2);
61 sscanf(buf,
"rect %s %s %d,%d %d,%d",ref,url,&x1,&y1,&x2,&y2);
65 if (y2<y1) {
int temp=y2; y2=y1; y1=
temp; }
83 t <<
"\" shape=\"rect\" coords=\"" 84 << x1 <<
"," << y1 <<
"," << x2 <<
"," << y2 <<
"\"" 85 <<
" alt=\"\"/>" <<
endl;
129 mscArgs+=extension+
"\"";
142 epstopdfArgs.
sprintf(
"\"%s.eps\" --outfile=\"%s.pdf\"",
147 err(
"Problems running epstopdf. Check your TeX installation!\n");
170 QCString mscArgs =
"-T ismap -i \"";
173 mscArgs+=outFile +
"\"";
191 return result.
data();
203 t <<
"<img src=\"" << relPath << baseName <<
".";
219 << baseName <<
"\" border=\"0\" usemap=\"#" << mapName <<
"\"/>" <<
endl;
221 t <<
"<map name=\"" << mapName <<
"\" id=\"" << mapName <<
"\">" << imap <<
"</map>" <<
endl;
Traverses directory structures and contents in a platform-independent way.
Q_EXPORT int qstrncmp(const char *str1, const char *str2, uint len)
void portable_sysTimerStop()
QCString getMscImageMapFromFile(const QCString &inFile, const QCString &outDir, const QCString &relPath, const QCString &context)
void writeMscGraphFromFile(const char *inFile, const char *outDir, const char *outFile, MscOutputFormat format)
virtual bool remove(const QString &fileName, bool acceptAbsPath=TRUE)
static QCString htmlFileExtension
static bool format(QChar::Decomposition tag, QString &str, int index, int len)
int readLine(char *data, uint maxlen)
Simplified and optimized version of QTextStream.
static bool convertMapFile(FTextStream &t, const char *mapName, const QCString relPath, const QCString &context)
static const int maxCmdLine
void portable_sysTimerStart()
static QString currentDirPath()
A bunch of utility functions.
#define Config_getString(val)
#define Config_getBool(val)
void err(const char *fmt,...)
The QFile class is an I/O device that operates on files.
QCString & sprintf(const char *format,...)
const char * portable_commandExtension()
char portable_pathSeparator()
Q_EXPORT int qstrcmp(const char *str1, const char *str2)
Portable versions of functions that are platform dependent.
static bool setCurrent(const QString &path)
QTextStream & endl(QTextStream &s)
QCString externalRef(const QCString &relPath, const QCString &ref, bool href)
void writeMscImageMapFromFile(FTextStream &t, const QCString &inFile, const QCString &outDir, const QCString &relPath, const QCString &baseName, const QCString &context, MscOutputFormat format)
int portable_system(const char *command, const char *args, bool commandHasConsole)